import { APIResource } from '../resource.js'; import { APIPromise } from '../api-promise.js'; import type { RequestOptions } from '../internal/request-options.js'; export declare class OrganizationData extends APIResource { /** * You can get organization data using this API. * * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal. * @returns {APIPromise} Successful response * * @example * ```ts * const organizationData = await client.organizationData.fetchOrg(); * ``` */ fetchOrg(options?: RequestOptions): APIPromise; } export interface OrganizationDataFetchOrgResponse { /** * Organization ID */ id: string; /** * Primary email of the organization */ org_email: string; /** * Flag if account is blocked due to unpaid dues. False means account is not blocked. */ unpaid: boolean; /** * Org creation time. Epoch timestamp in milliseconds. */ created_at: number; /** * Subscription plan name */ plan: string; /** * Billing cycle. `monthly` or `yearly`. */ plan_cycle: 'monthly' | 'yearly'; plan_data: OrganizationDataFetchOrgResponse.PlanData; stripe_account_loc: 'ind' | 'sgp'; /** * Flag if SSO is enabled for org. */ sso_enabled?: boolean; got_free_trial?: boolean; metadata?: OrganizationDataFetchOrgResponse.Metadata; } export declare namespace OrganizationDataFetchOrgResponse { interface PlanData { image: PlanData.Image; video: PlanData.Video; } namespace PlanData { interface Image { /** * Image plan name */ plan: string; /** * Billing cycle. `monthly` or `yearly`. */ cycle: 'monthly' | 'yearly'; /** * If the plan is under trial or not. */ trialing: boolean; display_name: string; } interface Video { /** * Video plan name */ plan: string; /** * Billing cycle. `monthly` or `yearly`. */ cycle: 'monthly' | 'yearly'; /** * If the plan is under trial or not. */ trialing: boolean; display_name: string; } } interface Metadata { firstImageSourceCreated: boolean; firstVideoUploaded: boolean; /** * Flag is org is blocked for NSFW uploads. */ nsfw_blocked: boolean; } } export declare namespace OrganizationData { export { type OrganizationDataFetchOrgResponse as OrganizationDataFetchOrgResponse }; } //# sourceMappingURL=organization-data.d.ts.map