import { APIResource } from "../core/resource.js"; import * as SharedAPI from "./shared.js"; import * as WalletsAPI from "./wallets/wallets.js"; export declare class Organizations extends APIResource { } /** * A Privy organization object. */ export interface Organization { /** * Unique organization identifier */ id: string; /** * Unix timestamp when the organization was created */ created_at: number; /** * A unique identifier for a key quorum. */ default_key_quorum_id: SharedAPI.KeyQuorumID; /** * Defaults applied to wallets created with the organization as their entity, keyed * by chain type. */ default_wallet_configurations: OrganizationDefaultWalletConfigurations; /** * Organization display name */ display_name: string; /** * Unix timestamp when the organization was last updated */ updated_at: number; } /** * Request body for creating an organization. */ export interface OrganizationCreateRequestBody { /** * A unique identifier for a key quorum. */ default_key_quorum_id: SharedAPI.KeyQuorumID; display_name: string; /** * Defaults applied to wallets created with the organization as their entity, keyed * by chain type. */ default_wallet_configurations?: OrganizationDefaultWalletConfigurations; } /** * Defaults applied to wallets created with the organization as their entity, keyed * by chain type. */ export interface OrganizationDefaultWalletConfigurations { /** * Default policies and additional signers for wallets of one chain type. */ ethereum?: OrganizationWalletConfiguration; /** * Default policies and additional signers for wallets of one chain type. */ solana?: OrganizationWalletConfiguration; /** * Default policies and additional signers for wallets of one chain type. */ tron?: OrganizationWalletConfiguration; [k: string]: OrganizationWalletConfiguration | undefined; } /** * Changes to the defaults, keyed by chain type. Omitted chains and fields are * unchanged, and `null` removes a chain. */ export interface OrganizationDefaultWalletConfigurationsUpdate { /** * Default policies and additional signers for wallets of one chain type. */ ethereum?: OrganizationWalletConfiguration | null; /** * Default policies and additional signers for wallets of one chain type. */ solana?: OrganizationWalletConfiguration | null; /** * Default policies and additional signers for wallets of one chain type. */ tron?: OrganizationWalletConfiguration | null; [k: string]: OrganizationWalletConfiguration | null | undefined; } /** * Request body for updating an organization. */ export interface OrganizationUpdateRequestBody { /** * A unique identifier for a key quorum. */ default_key_quorum_id?: SharedAPI.KeyQuorumID; /** * Changes to the defaults, keyed by chain type. Omitted chains and fields are * unchanged, and `null` removes a chain. */ default_wallet_configurations?: OrganizationDefaultWalletConfigurationsUpdate; display_name?: string; } /** * Default policies and additional signers for wallets of one chain type. */ export interface OrganizationWalletConfiguration { /** * Additional signers for the wallet. */ additional_signers?: WalletsAPI.AdditionalSignerInput; /** * An optional list of up to one policy ID to enforce on the wallet. */ policy_ids?: WalletsAPI.PolicyInput; } /** * Response returned when listing organizations for an app. */ export interface OrganizationsListResponse { /** * Items in this page. */ data: Array; /** * Cursor for the next page. Null when there are no further pages. */ next_cursor: string | null; } export declare namespace Organizations { export { type Organization as Organization, type OrganizationCreateRequestBody as OrganizationCreateRequestBody, type OrganizationDefaultWalletConfigurations as OrganizationDefaultWalletConfigurations, type OrganizationDefaultWalletConfigurationsUpdate as OrganizationDefaultWalletConfigurationsUpdate, type OrganizationUpdateRequestBody as OrganizationUpdateRequestBody, type OrganizationWalletConfiguration as OrganizationWalletConfiguration, type OrganizationsListResponse as OrganizationsListResponse, }; } //# sourceMappingURL=organizations.d.ts.map