import { APIResource } from "../core/resource.mjs"; import * as SharedAPI from "./shared.mjs"; export declare class Organizations extends APIResource { } /** * Response returned when creating a new organization secret. */ export interface CreateOrganizationSecretResponse extends OrganizationSecretView { /** * The plaintext organization secret. Returned only at creation time. */ organization_secret: string; } /** * 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; /** * 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; } /** * Request body for targeting a specific organization secret. */ export interface OrganizationSecretIDInput { /** * The organization secret ID. */ secret_id: string; } /** * View of an organization secret for list and management endpoints. */ export interface OrganizationSecretView { /** * Unique secret identifier */ id: string; /** * ISO 8601 creation timestamp */ created_at: string; /** * Last four characters of the secret */ last_four: string; /** * ISO 8601 revocation timestamp, or null if active */ revoked_at: string | null; /** * P-256 public key in PEM format for request signing, or null if not configured */ signing_public_key: string | null; } /** * Response returned when listing organization secrets for an account. */ export interface OrganizationSecretsListResponse { data: Array; } /** * Request body for updating an organization. */ export interface OrganizationUpdateRequestBody { /** * A unique identifier for a key quorum. */ default_key_quorum_id?: SharedAPI.KeyQuorumID; display_name?: string; } /** * Response returned when listing organizations for an app. */ export interface OrganizationsListResponse { data: Array; next_cursor: string | null; } /** * Request body for updating the signing public key on an organization secret. */ export interface UpdateOrganizationSecretSigningKeyInput extends OrganizationSecretIDInput { /** * P-256 public key in PEM format, or null to clear the configured signing key. */ signing_public_key: string | null; } export declare namespace Organizations { export { type CreateOrganizationSecretResponse as CreateOrganizationSecretResponse, type Organization as Organization, type OrganizationCreateRequestBody as OrganizationCreateRequestBody, type OrganizationSecretIDInput as OrganizationSecretIDInput, type OrganizationSecretView as OrganizationSecretView, type OrganizationSecretsListResponse as OrganizationSecretsListResponse, type OrganizationUpdateRequestBody as OrganizationUpdateRequestBody, type OrganizationsListResponse as OrganizationsListResponse, type UpdateOrganizationSecretSigningKeyInput as UpdateOrganizationSecretSigningKeyInput, }; } //# sourceMappingURL=organizations.d.mts.map