/** * This file was automatically generated by hyperschema-to-ts: DO NOT MODIFY IT BY HAND. */ /** * JSON web token for the session * * This interface was referenced by `Session`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `Session`'s JSON-Schema * via the `definition` "id". */ export type SessionIdentity = string; /** * This interface was referenced by `Session`'s JSON-Schema * via the `definition` "type". */ export type SessionType = 'session'; /** * This interface was referenced by `Account`'s JSON-Schema * via the `definition` "type". */ export type AccountType = 'account'; /** * ID of account * * This interface was referenced by `Account`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `Account`'s JSON-Schema * via the `definition` "id". */ export type AccountIdentity = string; /** * This interface was referenced by `Session`'s JSON-Schema * via the `create.schema` link. */ export type SessionCreateSchema = { type?: 'email_credentials'; /** * Email */ email: string; /** * Password */ password: string; /** * Two-factor authentication one-time password */ otp_code?: string; } | { type?: 'password_reset'; /** * Reset token */ token: string; /** * Account ID */ account_id: string; /** * Password */ password: string; /** * Two-factor authentication one-time password */ otp_code?: string; }; /** * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `definition` "type". */ export type PerOwnerPricingSubscriptionType = 'per_owner_pricing_subscription'; /** * ID of subscription * * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `definition` "id". */ export type PerOwnerPricingSubscriptionIdentity = string; /** * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `definition` "type". */ export type PerOwnerPricingBillingProfileType = 'per_owner_pricing_billing_profile'; /** * ID of billing_profile * * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `definition` "id". */ export type PerOwnerPricingBillingProfileIdentity = string; /** * This interface was referenced by `Organization`'s JSON-Schema * via the `definition` "type". */ export type OrganizationType = 'organization'; /** * ID of organization * * This interface was referenced by `Organization`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `Organization`'s JSON-Schema * via the `definition` "id". */ export type OrganizationIdentity = string; /** * ID of job * * This interface was referenced by `Job`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `Job`'s JSON-Schema * via the `definition` "id". */ export type JobIdentity = string; /** * This interface was referenced by `Job`'s JSON-Schema * via the `definition` "type". */ export type JobType = 'job'; /** * This interface was referenced by `Account`'s JSON-Schema * via the `self.hrefSchema` link. */ export type AccountSelfHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`. */ include?: string; [k: string]: unknown; }; /** * This interface was referenced by `Organization`'s JSON-Schema * via the `instances.targetSchema` link. */ export type OrganizationInstancesTargetSchema = Organization[]; /** * This interface was referenced by `Organization`'s JSON-Schema * via the `instances.hrefSchema` link. */ export type OrganizationInstancesHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`. */ include?: string; [k: string]: unknown; }; /** * This interface was referenced by `Organization`'s JSON-Schema * via the `self.hrefSchema` link. */ export type OrganizationSelfHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`. */ include?: string; [k: string]: unknown; }; /** * ID of site * * This interface was referenced by `Site`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `Site`'s JSON-Schema * via the `definition` "id". */ export type SiteIdentity = string; /** * This interface was referenced by `Site`'s JSON-Schema * via the `definition` "type". */ export type SiteType = 'site'; /** * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `definition` "type". */ export type SiteSubscriptionType = 'site_subscription'; /** * ID of subscription * * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `definition` "id". */ export type SiteSubscriptionIdentity = string; /** * This interface was referenced by `SitePlan`'s JSON-Schema * via the `definition` "type". */ export type SitePlanType = 'site_plan'; /** * ID of plan * * This interface was referenced by `SitePlan`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `SitePlan`'s JSON-Schema * via the `definition` "id". */ export type SitePlanIdentity = string; /** * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `definition` "type". */ export type SiteTransferType = 'site_transfer'; /** * ID of site_transfer * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `definition` "id". */ export type SiteTransferIdentity = string; /** * This interface was referenced by `Site`'s JSON-Schema * via the `self.hrefSchema` link. */ export type SiteSelfHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`. */ include?: string; [k: string]: unknown; }; /** * This interface was referenced by `Site`'s JSON-Schema * via the `instances.targetSchema` link. */ export type SiteInstancesTargetSchema = Site[]; /** * This interface was referenced by `Site`'s JSON-Schema * via the `instances.hrefSchema` link. */ export type SiteInstancesHrefSchema = { /** * Sorts projects (default sorting is by ascending name) */ sort?: 'name' | '-name' | 'last_data_change_at' | '-last_data_change_at' | 'plan' | '-plan' | 'created_at' | '-created_at'; filters?: { /** * Filter by project name */ match?: string; [k: string]: unknown; }; /** * Parameters to control offset-based pagination */ page?: { /** * The (zero-based) offset of the first entity returned in the collection (defaults to 0) */ offset?: number; /** * The maximum number of entities to return (defaults to 20, maximum is 50) */ limit?: number; }; /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`. */ include?: string; [k: string]: unknown; }; /** * This interface was referenced by `Site`'s JSON-Schema * via the `create.targetSchema` link. */ export type SiteCreateTargetSchema = Site | Job; /** * This interface was referenced by `Site`'s JSON-Schema * via the `create.hrefSchema` link. */ export type SiteCreateHrefSchema = { /** * Confirm the creation of the project starting from a public template project, even if the copy of videos require significant use of Video Encoding resources */ confirm_mux_encoding_consumption?: string; [k: string]: unknown; }; /** * This interface was referenced by `Site`'s JSON-Schema * via the `destroy.targetSchema` link. */ export type SiteDestroyTargetSchema = Site | Job; /** * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `definition` "type". */ export type PerSitePricingBillingProfileType = 'per_site_pricing_billing_profile'; /** * ID of billing_profile * * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `definition` "id". */ export type PerSitePricingBillingProfileIdentity = string; /** * This interface was referenced by `Site`'s JSON-Schema * via the `duplicate.hrefSchema` link. */ export type SiteDuplicateHrefSchema = { /** * Confirm the operation, even if the copy of videos contained in the project requires significant use of Video Encoding resources */ confirm_mux_encoding_consumption?: string; [k: string]: unknown; }; /** * ID of next_invoice_estimate * * This interface was referenced by `NextInvoiceEstimate`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `NextInvoiceEstimate`'s JSON-Schema * via the `definition` "id". */ export type NextInvoiceEstimateIdentity = string; /** * This interface was referenced by `NextInvoiceEstimate`'s JSON-Schema * via the `definition` "type". */ export type NextInvoiceEstimateType = 'next_invoice_estimate'; /** * This interface was referenced by `PerOwnerPricingPlan`'s JSON-Schema * via the `definition` "type". */ export type PerOwnerPricingPlanType = 'per_owner_pricing_plan'; /** * ID of plan * * This interface was referenced by `PerOwnerPricingPlan`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `PerOwnerPricingPlan`'s JSON-Schema * via the `definition` "id". */ export type PerOwnerPricingPlanIdentity = string; /** * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `simulate.targetSchema` link. */ export type PerOwnerPricingSubscriptionSimulateTargetSchema = (NextInvoiceEstimate | PerOwnerPricingSubscription)[]; /** * This interface was referenced by `SitePlan`'s JSON-Schema * via the `instances.targetSchema` link. */ export type SitePlanInstancesTargetSchema = SitePlan[]; /** * This interface was referenced by `PerOwnerPricingPlan`'s JSON-Schema * via the `instances.targetSchema` link. */ export type PerOwnerPricingPlanInstancesTargetSchema = PerOwnerPricingPlan[]; /** * This interface was referenced by `PerOwnerPricingPlan`'s JSON-Schema * via the `activable_as_appointed_organization_instances.targetSchema` link. */ export type PerOwnerPricingPlanActivableAsAppointedOrganizationInstancesTargetSchema = PerOwnerPricingPlan[]; /** * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `instances.targetSchema` link. */ export type PerSitePricingBillingProfileInstancesTargetSchema = PerSitePricingBillingProfile[]; /** * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `self.hrefSchema` link. */ export type PerSitePricingBillingProfileSelfHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `item_types`, `item_types.fields`, `item_types.fieldsets`, `item_types.singleton_item`, `account`. */ include?: string; [k: string]: unknown; }; /** * ID of billing_profile * * This interface was referenced by `Invoice`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `Invoice`'s JSON-Schema * via the `definition` "id". */ export type InvoiceIdentity = string; /** * This interface was referenced by `Invoice`'s JSON-Schema * via the `definition` "type". */ export type InvoiceType = 'invoice'; /** * This interface was referenced by `Invoice`'s JSON-Schema * via the `per_owner_pricing_billing_profile_instances.targetSchema` link. */ export type InvoicePerOwnerPricingBillingProfileInstancesTargetSchema = Invoice[]; /** * This interface was referenced by `Invoice`'s JSON-Schema * via the `per_site_pricing_billing_profile_instances.targetSchema` link. */ export type InvoicePerSitePricingBillingProfileInstancesTargetSchema = Invoice[]; /** * This interface was referenced by `Invoice`'s JSON-Schema * via the `per_owner_pricing_billing_profile_collect_unpaid.targetSchema` link. */ export type InvoicePerOwnerPricingBillingProfileCollectUnpaidTargetSchema = Invoice[]; /** * This interface was referenced by `Invoice`'s JSON-Schema * via the `per_site_pricing_billing_profile_collect_unpaid.targetSchema` link. */ export type InvoicePerSitePricingBillingProfileCollectUnpaidTargetSchema = Invoice[]; /** * ID of billing_profile * * This interface was referenced by `ResourceUsage`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `ResourceUsage`'s JSON-Schema * via the `definition` "id". */ export type ResourceUsageIdentity = string; /** * This interface was referenced by `ResourceUsage`'s JSON-Schema * via the `definition` "type". */ export type ResourceUsageType = 'resource_usage'; /** * This interface was referenced by `ResourceUsage`'s JSON-Schema * via the `instances.targetSchema` link. */ export type ResourceUsageInstancesTargetSchema = ResourceUsage[]; /** * ID of site * * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `definition` "id". */ export type DailyUsageIdentity = string; /** * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `definition` "type". */ export type DailyUsageType = 'daily_usage'; /** * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `instances.targetSchema` link. */ export type DailyUsageInstancesTargetSchema = DailyUsage[]; /** * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `instances.hrefSchema` link. */ export type DailyUsageInstancesHrefSchema = { /** * Year of the daily usages to retrieve. Defaults to current year. */ year?: string; /** * Monthof the daily usages to retrieve. Defaults to current month. */ month?: string; [k: string]: unknown; }; /** * ID of job result * * This interface was referenced by `JobResult`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `JobResult`'s JSON-Schema * via the `definition` "id". */ export type JobResultIdentity = string; /** * This interface was referenced by `JobResult`'s JSON-Schema * via the `definition` "type". */ export type JobResultType = 'job_result'; /** * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `instances.targetSchema` link. */ export type SiteTransferInstancesTargetSchema = SiteTransfer[]; /** * ID of site invitation * * This interface was referenced by `SiteInvitation`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `SiteInvitation`'s JSON-Schema * via the `definition` "id". */ export type SiteInvitationIdentity = string; /** * This interface was referenced by `SiteInvitation`'s JSON-Schema * via the `definition` "type". */ export type SiteInvitationType = 'site_invitation'; /** * This interface was referenced by `SiteInvitation`'s JSON-Schema * via the `redeem.hrefSchema` link. */ export type SiteInvitationRedeemHrefSchema = { /** * The site invitation authorization token */ token?: string; [k: string]: unknown; }; /** * ID of limit * * This interface was referenced by `SubscriptionLimit`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `SubscriptionLimit`'s JSON-Schema * via the `definition` "id". */ export type SubscriptionLimitIdentity = string; /** * This interface was referenced by `SubscriptionLimit`'s JSON-Schema * via the `definition` "type". */ export type SubscriptionLimitType = 'subscription_limit'; /** * This interface was referenced by `SubscriptionLimit`'s JSON-Schema * via the `instances.targetSchema` link. */ export type SubscriptionLimitInstancesTargetSchema = SubscriptionLimit[]; /** * ID of feature * * This interface was referenced by `SubscriptionFeature`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `SubscriptionFeature`'s JSON-Schema * via the `definition` "id". */ export type SubscriptionFeatureIdentity = string; /** * This interface was referenced by `SubscriptionFeature`'s JSON-Schema * via the `definition` "type". */ export type SubscriptionFeatureType = 'subscription_feature'; /** * This interface was referenced by `SubscriptionFeature`'s JSON-Schema * via the `instances.targetSchema` link. */ export type SubscriptionFeatureInstancesTargetSchema = SubscriptionFeature[]; /** * ID of access_token * * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `definition` "id". */ export type OauthApplicationIdentity = string; /** * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `definition` "type". */ export type OauthApplicationType = 'oauth_application'; /** * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `instances.targetSchema` link. */ export type OauthApplicationInstancesTargetSchema = OauthApplication[]; /** * ID of access_token * * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `definition` "id". */ export type PaymentIntentIdentity = string; /** * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `definition` "type". */ export type PaymentIntentType = 'payment_intent'; /** * ID of payment_method * * This interface was referenced by `PaymentMethod`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `PaymentMethod`'s JSON-Schema * via the `definition` "id". */ export type PaymentMethodIdentity = string; /** * This interface was referenced by `PaymentMethod`'s JSON-Schema * via the `definition` "type". */ export type PaymentMethodType = 'payment_method'; /** * ID of otp_backup_codes * * This interface was referenced by `OtpBackupCodes`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `OtpBackupCodes`'s JSON-Schema * via the `definition` "id". */ export type OtpBackupCodesIdentity = string; /** * This interface was referenced by `OtpBackupCodes`'s JSON-Schema * via the `definition` "type". */ export type OtpBackupCodesType = 'otp_backup_codes'; /** * ID of role * * This interface was referenced by `OrganizationRole`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `OrganizationRole`'s JSON-Schema * via the `definition` "id". */ export type OrganizationRoleIdentity = string; /** * This interface was referenced by `OrganizationRole`'s JSON-Schema * via the `definition` "type". */ export type OrganizationRoleType = 'organization_role'; /** * This interface was referenced by `OrganizationRole`'s JSON-Schema * via the `instances.targetSchema` link. */ export type OrganizationRoleInstancesTargetSchema = OrganizationRole[]; /** * ID of invitation * * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `definition` "id". */ export type OrganizationInvitationIdentity = string; /** * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `definition` "type". */ export type OrganizationInvitationType = 'organization_invitation'; /** * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `instances.targetSchema` link. */ export type OrganizationInvitationInstancesTargetSchema = OrganizationInvitation[]; /** * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `redeem.hrefSchema` link. */ export type OrganizationInvitationRedeemHrefSchema = { /** * The organization invitation authorization token */ token?: string; [k: string]: unknown; }; /** * ID of membership * * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `definition` "id". */ export type OrganizationMembershipIdentity = string; /** * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `definition` "type". */ export type OrganizationMembershipType = 'organization_membership'; /** * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `instances.targetSchema` link. */ export type OrganizationMembershipInstancesTargetSchema = OrganizationMembership[]; /** * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `instances.hrefSchema` link. */ export type OrganizationMembershipInstancesHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `role`. */ include?: string; [k: string]: unknown; }; /** * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `self.hrefSchema` link. */ export type OrganizationMembershipSelfHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `role`. */ include?: string; [k: string]: unknown; }; /** * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `me.hrefSchema` link. */ export type OrganizationMembershipMeHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `role`. */ include?: string; [k: string]: unknown; }; /** * ID of mandate request * * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `definition` "id". */ export type OrganizationMandateRequestIdentity = string; /** * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `definition` "type". */ export type OrganizationMandateRequestType = 'organization_mandate_request'; /** * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `create.targetSchema` link. */ export type OrganizationMandateRequestCreateTargetSchema = OrganizationMandateRequest | OrganizationMandate; /** * ID of mandate * * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `definition` "id". */ export type OrganizationMandateIdentity = string; /** * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `definition` "type". */ export type OrganizationMandateType = 'organization_mandate'; /** * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `approved_instances.targetSchema` link. */ export type OrganizationMandateApprovedInstancesTargetSchema = OrganizationMandate[]; /** * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `given_instances.targetSchema` link. */ export type OrganizationMandateGivenInstancesTargetSchema = OrganizationMandate[]; /** * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `given_instances.hrefSchema` link. */ export type OrganizationMandateGivenInstancesHrefSchema = { /** * Comma-separated list of [relationship paths](https://jsonapi.org/format/#fetching-includes). A relationship path is a dot-separated list of relationship names. Allowed relationship paths: `active_plan`, `additional_enabled_plans`. */ include?: string; [k: string]: unknown; }; /** * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `create.hrefSchema` link. */ export type OrganizationMandateRequestCreateHrefSchema = { /** * If the account is also part of the target organization, the request can be automatically approved */ auto_approve?: string; [k: string]: unknown; }; /** * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `pending_instances.targetSchema` link. */ export type OrganizationMandateRequestPendingInstancesTargetSchema = OrganizationMandateRequest[]; /** * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `requested_instances.targetSchema` link. */ export type OrganizationMandateRequestRequestedInstancesTargetSchema = OrganizationMandateRequest[]; /** * ID of 2FA deactivate request * * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `definition` "identity". * * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `definition` "id". */ export type TfaDeactivateRequestIdentity = string; /** * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `definition` "type". */ export type TfaDeactivateRequestType = 'tfa_deactivate_request'; /** * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `instances.targetSchema` link. */ export type TfaDeactivateRequestInstancesTargetSchema = TfaDeactivateRequest[]; /** * A session is required to access to read-and-write API endpoints * * This interface was referenced by `Account`'s JSON-Schema * via the `create.targetSchema` link. * * This interface was referenced by `Account`'s JSON-Schema * via the `update.targetSchema` link. * * This interface was referenced by `Account`'s JSON-Schema * via the `activate_2fa.targetSchema` link. * * This interface was referenced by `Account`'s JSON-Schema * via the `confirm_email_change.targetSchema` link. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "session". */ export type Session = { id: SessionIdentity; type: SessionType; account: AccountData; }; export type SessionCreateTargetSchema = Session; export type AccountCreateTargetSchema = Session; export type AccountUpdateTargetSchema = Session; export type AccountActivate_2FaTargetSchema = Session; export type AccountConfirmEmailChangeTargetSchema = Session; /** * JSON API data * * This interface was referenced by `Account`'s JSON-Schema * via the `definition` "data". */ export type AccountData = { type: AccountType; id: AccountIdentity; }; /** * JSON API data * * This interface was referenced by `Session`'s JSON-Schema * via the `definition` "data". */ export type SessionData = { type: SessionType; id: SessionIdentity; }; /** * JSON API links * * This interface was referenced by `Session`'s JSON-Schema * via the `definition` "relationships". */ export type SessionRelationships = { account: AccountData; }; /** * DatoCMS account * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "account". */ export type Account = { id: AccountIdentity; type: AccountType; /** * Email */ email: string; /** * First name */ first_name: string | null; /** * Last name */ last_name: string | null; /** * Company name */ company: string | null; /** * API token */ api_token?: string; /** * Whether 2-factor authentication is active for this account or not */ is_2fa_active: boolean; /** * Pending email address awaiting confirmation (only present if confirmation token hasn't expired) */ pending_email?: string | null; active_subscription: null | PerOwnerPricingSubscriptionData; billing_profile: null | PerOwnerPricingBillingProfileData; default_organization: null | OrganizationData; meta: AccountMeta; }; export type AccountDestroyJobSchema = Account; export type AccountSelfTargetSchema = Account; export type AccountDeactivate_2FaTargetSchema = Account; /** * JSON API data * * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `definition` "data". */ export type PerOwnerPricingSubscriptionData = { type: PerOwnerPricingSubscriptionType; id: PerOwnerPricingSubscriptionIdentity; }; /** * JSON API data * * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `definition` "data". */ export type PerOwnerPricingBillingProfileData = { type: PerOwnerPricingBillingProfileType; id: PerOwnerPricingBillingProfileIdentity; }; /** * JSON API data * * This interface was referenced by `Organization`'s JSON-Schema * via the `definition` "data". */ export type OrganizationData = { type: OrganizationType; id: OrganizationIdentity; }; /** * JSON API meta * * This interface was referenced by `Account`'s JSON-Schema * via the `definition` "meta". */ export type AccountMeta = { /** * Whether the account email address has been verified */ email_verified: boolean; /** * Timestamp of when the last email verification token was sent, or null if none was sent yet */ email_verification_token_sent_at: string | null; }; /** * JSON API attributes * * This interface was referenced by `Account`'s JSON-Schema * via the `definition` "attributes". */ export type AccountAttributes = { /** * Email */ email: string; /** * First name */ first_name: string | null; /** * Last name */ last_name: string | null; /** * Company name */ company: string | null; /** * API token */ api_token?: string; /** * Whether 2-factor authentication is active for this account or not */ is_2fa_active: boolean; /** * Pending email address awaiting confirmation (only present if confirmation token hasn't expired) */ pending_email?: string | null; }; /** * JSON API links * * This interface was referenced by `Account`'s JSON-Schema * via the `definition` "relationships". */ export type AccountRelationships = { active_subscription: null | PerOwnerPricingSubscriptionData; billing_profile: null | PerOwnerPricingBillingProfileData; default_organization: null | OrganizationData; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `create.schema` link. */ export type AccountCreateSchema = { type?: AccountType; /** * Email */ email: string; /** * First name */ first_name?: string | null; /** * Last name */ last_name?: string | null; /** * Company name */ company?: string | null; /** * Password */ password: string; /** * Cloudflare Turnstile token proving the sign up was not automated. Obtained from the Turnstile widget rendered next to the sign up form, and valid for 300 seconds and a single verification. Required for browser-based sign ups. */ captcha_token?: string; /** * Whether the user opts-in to signup to DatoCMS newletter */ signup_to_newsletter?: boolean; /** * Role description that best describes you */ role_description?: 'cto' | 'lead_developer' | 'frontend_developer' | 'web_designer' | 'digital_marketing' | 'project_manager' | 'designer' | 'content'; /** * Context in which you perform your role */ role_context?: 'agency' | 'company' | 'freelancer' | 'student'; acquisition_method?: { source: string; medium: string; campaign?: string; }; latest_acquisition_method?: { source: string; medium: string; campaign?: string; }; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `update.schema` link. */ export type AccountUpdateSchema = { id?: AccountIdentity; type?: AccountType; /** * Email */ email?: string; /** * First name */ first_name?: string | null; /** * Last name */ last_name?: string | null; /** * Company name */ company?: string | null; /** * New password */ password?: string; /** * Current password (required if new_password or email is set) */ current_password?: string; /** * Two-factor authentication one-time password (required if new_password or email is set) */ otp_code?: string; default_organization?: null | OrganizationData; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `destroy.schema` link. */ export type AccountDestroySchema = { type?: 'account_destroy_request'; /** * OTP code */ otp_code: string; /** * Current password */ password: string; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `destroy.targetSchema` link. * * This interface was referenced by `Account`'s JSON-Schema * via the `convert_to_organization.targetSchema` link. * * This interface was referenced by `Organization`'s JSON-Schema * via the `destroy.targetSchema` link. * * This interface was referenced by `Site`'s JSON-Schema * via the `duplicate.targetSchema` link. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "job". */ export type Job = { id: JobIdentity; type: JobType; }; export type AccountDestroyTargetSchema = Job; export type AccountConvertToOrganizationTargetSchema = Job; export type OrganizationDestroyTargetSchema = Job; export type SiteDuplicateTargetSchema = Job; /** * JSON API data * * This interface was referenced by `Job`'s JSON-Schema * via the `definition` "data". */ export type JobData = { type: JobType; id: JobIdentity; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `reset_password.schema` link. */ export type AccountResetPasswordSchema = { type?: 'password_reset'; /** * Email */ email: string; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `activate_2fa.schema` link. */ export type AccountActivate_2FaSchema = { type?: string; /** * OTP code */ otp_code: string; /** * Current password */ password: string; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `reset_2fa.targetSchema` link. */ export type AccountReset_2FaTargetSchema = { /** * ID of account */ id: string; type: string; attributes: { /** * 2-factor authentication provisioning URI */ provisioning_2fa_uri: string; }; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `deactivate_2fa.schema` link. */ export type AccountDeactivate_2FaSchema = { type?: string; /** * OTP code */ otp_code: string; /** * Current password */ password: string; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `convert_to_organization.schema` link. */ export type AccountConvertToOrganizationSchema = { type?: 'organization_conversion'; /** * Name of the organization */ name: string; }; /** * Organizations allow you to collaborate with members on projects * * This interface was referenced by `Account`'s JSON-Schema * via the `convert_to_organization.jobSchema` link. * * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `redeem.targetSchema` link. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "organization". */ export type Organization = { id: OrganizationIdentity; type: OrganizationType; /** * Name of the organization */ name: string; active_subscription: PerOwnerPricingSubscriptionData; billing_profile: null | PerOwnerPricingBillingProfileData; meta: OrganizationMeta; }; export type OrganizationSelfTargetSchema = Organization; export type OrganizationCreateTargetSchema = Organization; export type OrganizationUpdateTargetSchema = Organization; export type OrganizationDestroyJobSchema = Organization; export type AccountConvertToOrganizationJobSchema = Organization; export type OrganizationInvitationRedeemTargetSchema = Organization; /** * JSON API meta * * This interface was referenced by `Organization`'s JSON-Schema * via the `definition` "meta". */ export type OrganizationMeta = { discount_on_public_plans: number; agency_partner: null | { datocms_website_access_token: null | string; enrollment_issues: null | { days_left_to_comply: number; missing_requirements: ('paid_activation' | 'published_profile' | 'published_showcase_project')[]; }; }; }; /** * JSON API attributes * * This interface was referenced by `Organization`'s JSON-Schema * via the `definition` "attributes". */ export type OrganizationAttributes = { /** * Name of the organization */ name: string; }; /** * JSON API links * * This interface was referenced by `Organization`'s JSON-Schema * via the `definition` "relationships". */ export type OrganizationRelationships = { active_subscription: PerOwnerPricingSubscriptionData; billing_profile: null | PerOwnerPricingBillingProfileData; }; /** * This interface was referenced by `Organization`'s JSON-Schema * via the `create.schema` link. */ export type OrganizationCreateSchema = { type?: OrganizationType; /** * Name of the organization */ name?: string; }; /** * This interface was referenced by `Organization`'s JSON-Schema * via the `update.schema` link. */ export type OrganizationUpdateSchema = { id?: OrganizationIdentity; type?: OrganizationType; /** * Name of the organization */ name?: string; }; /** * This interface was referenced by `Organization`'s JSON-Schema * via the `destroy.schema` link. */ export type OrganizationDestroySchema = { type?: 'organization_destroy_request'; /** * OTP code */ otp_code?: string; /** * Current password */ password: string; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `confirm_email_change.schema` link. */ export type AccountConfirmEmailChangeSchema = { type?: 'email_change_confirmation'; /** * Email confirmation token */ token: string; /** * Account ID */ account_id: string; }; /** * This interface was referenced by `Account`'s JSON-Schema * via the `complete_email_verification.schema` link. */ export type AccountCompleteEmailVerificationSchema = { type?: 'email_verification'; /** * Email verification token */ token: string; /** * Account ID */ account_id: string; }; /** * A project represents a specific DatoCMS administrative area * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `create.targetSchema` link. * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `destroy.targetSchema` link. * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `accept.targetSchema` link. * * This interface was referenced by `SiteInvitation`'s JSON-Schema * via the `redeem.targetSchema` link. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "site". */ export type Site = { id: SiteIdentity; type: SiteType; /** * Site name */ name: string; /** * Site domain */ domain: string | null; /** * Internal project domain */ internal_domain: string; /** * Internal project subdomain */ internal_subdomain?: string; /** * Specifies the last time when a change of data occurred */ last_data_change_at: null | string; /** * Date of project creation */ created_at: null | string; /** * Access token */ access_token: null | string; /** * Read-write API token */ readwrite_token?: null | string; /** * Read-only API token */ readonly_token?: null | string; /** * Status of project according to billing situation */ deactivated: boolean; /** * Whether the project can be used as a public template */ is_public_template?: boolean; /** * Status of the project */ status?: 'creating' | 'ready' | 'destroying'; active_subscription: null | SiteSubscriptionData; active_plan: null | SitePlanData; transfer: SiteTransferData | null; meta: SiteMeta; }; export type SiteSelfTargetSchema = Site; export type SiteCreateJobSchema = Site; export type SiteUpdateTargetSchema = Site; export type SiteDestroyJobSchema = Site; export type SiteDuplicateJobSchema = Site; export type SiteTransferCreateTargetSchema = Site; export type SiteTransferDestroyTargetSchema = Site; export type SiteTransferAcceptTargetSchema = Site; export type SiteInvitationRedeemTargetSchema = Site; /** * JSON API data * * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `definition` "data". */ export type SiteSubscriptionData = { type: SiteSubscriptionType; id: SiteSubscriptionIdentity; }; /** * JSON API data * * This interface was referenced by `SitePlan`'s JSON-Schema * via the `definition` "data". */ export type SitePlanData = { type: SitePlanType; id: SitePlanIdentity; }; /** * JSON API data * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `definition` "data". */ export type SiteTransferData = { type: SiteTransferType; id: SiteTransferIdentity; }; /** * Meta attributes * * This interface was referenced by `Site`'s JSON-Schema * via the `definition` "meta". */ export type SiteMeta = { /** * Specifies the last time when a change of data occurred */ last_data_change_at: null | string; /** * The creation date of the site */ created_at: null | string; /** * True when the site has been deactivated */ deactivated: null | boolean; /** * Site status */ status: string; /** * True if the site requires 2FA to enter */ require_2fa: boolean; owner: { /** * Type of owner */ type: 'account'; /** * Email of the account that owns the project */ email: string; } | { /** * Type of owner */ type: 'organization'; /** * Name of the organization that owns the project */ name: string; /** * ID of the organization that owns the project */ id: string; }; }; /** * JSON API data * * This interface was referenced by `Site`'s JSON-Schema * via the `definition` "data". */ export type SiteData = { type: SiteType; id: SiteIdentity; }; /** * JSON API attributes * * This interface was referenced by `Site`'s JSON-Schema * via the `definition` "attributes". */ export type SiteAttributes = { /** * Site name */ name: string; /** * Site domain */ domain: string | null; /** * Internal project domain */ internal_domain: string; /** * Internal project subdomain */ internal_subdomain?: string; /** * Specifies the last time when a change of data occurred */ last_data_change_at: null | string; /** * Date of project creation */ created_at: null | string; /** * Access token */ access_token: null | string; /** * Read-write API token */ readwrite_token?: null | string; /** * Read-only API token */ readonly_token?: null | string; /** * Status of project according to billing situation */ deactivated: boolean; /** * Whether the project can be used as a public template */ is_public_template?: boolean; /** * Status of the project */ status?: 'creating' | 'ready' | 'destroying'; }; /** * JSON API links * * This interface was referenced by `Site`'s JSON-Schema * via the `definition` "relationships". */ export type SiteRelationships = { active_subscription: null | SiteSubscriptionData; active_plan: null | SitePlanData; transfer: SiteTransferData | null; }; /** * This interface was referenced by `Site`'s JSON-Schema * via the `create.schema` link. */ export type SiteCreateSchema = { type?: SiteType; /** * Site name */ name: string; /** * Internal project subdomain */ internal_subdomain?: string; /** * Main locale for the project */ main_locale?: string; /** * Theme hue for the project (from 0 to 359) */ theme_hue?: number; /** * Site template */ template?: string | null; }; /** * This interface was referenced by `Site`'s JSON-Schema * via the `update.schema` link. */ export type SiteUpdateSchema = { id?: SiteIdentity; type?: SiteType; /** * Site name */ name?: string; /** * Site domain */ domain?: string | null; /** * Internal project subdomain */ internal_subdomain?: string; /** * Whether the project can be used as a public template */ is_public_template?: boolean; }; /** * This interface was referenced by `Site`'s JSON-Schema * via the `duplicate.schema` link. */ export type SiteDuplicateSchema = { type?: 'site_duplication'; /** * Site name */ name: string; /** * When duplicating a site it allows to duplicate only the schema */ ignore_content?: boolean; payment_intent_id?: string; /** * Type of recurrence (yearly/monthly) */ recurrence?: 'yearly' | 'monthly'; /** * Extra packets */ extra_packets?: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; }; billing_profile?: PerSitePricingBillingProfileData | null; plan?: SitePlanData; }; /** * JSON API data * * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `definition` "data". */ export type PerSitePricingBillingProfileData = { type: PerSitePricingBillingProfileType; id: PerSitePricingBillingProfileIdentity; }; /** * A per-project subscription record * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "site_subscription". */ export type SiteSubscription = { id: SiteSubscriptionIdentity; type: SiteSubscriptionType; /** * Date of creation of subscription */ created_at: string; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; price: number; /** * Extra packets */ extra_packets: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; }; plan: SitePlanData; billing_profile?: PerSitePricingBillingProfileData | null; site?: SiteData; }; export type SiteSubscriptionCreateTargetSchema = SiteSubscription; export type SiteSubscriptionValidateTargetSchema = SiteSubscription; /** * JSON API attributes * * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `definition` "attributes". */ export type SiteSubscriptionAttributes = { /** * Date of creation of subscription */ created_at: string; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; price: number; /** * Extra packets */ extra_packets: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; }; }; /** * JSON API links * * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `definition` "relationships". */ export type SiteSubscriptionRelationships = { plan: SitePlanData; billing_profile?: PerSitePricingBillingProfileData | null; site?: SiteData; }; /** * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `create.schema` link. */ export type SiteSubscriptionCreateSchema = { type?: SiteSubscriptionType; payment_intent_id?: string; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; /** * Extra packets */ extra_packets: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; }; billing_profile?: PerSitePricingBillingProfileData | null; plan: SitePlanData; }; /** * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `simulate.schema` link. */ export type SiteSubscriptionSimulateSchema = { type?: 'site_subscription_simulation'; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; /** * Extra packets */ extra_packets: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; }; is_duplicate?: boolean; ignore_content?: boolean; billing_profile?: PerSitePricingBillingProfileData | null; plan: SitePlanData; }; /** * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `simulate.targetSchema` link. * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `simulate_accept.targetSchema` link. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "next_invoice_estimate". */ export type NextInvoiceEstimate = { id: NextInvoiceEstimateIdentity; type: NextInvoiceEstimateType; amount: number; next_billing_at: string; discount_percentage?: number; tax_label: null | string; /** * VAT/tax percentage applied to the estimate, if any. */ tax_rate?: null | number; /** * Amount (in cents) deducted from the estimated invoice thanks to credits (promotional credits, refundable credits, or proration from an existing subscription) */ credits_applied?: number; }; export type SiteSubscriptionSimulateTargetSchema = NextInvoiceEstimate; export type SiteTransferSimulateAcceptTargetSchema = NextInvoiceEstimate; /** * JSON API data * * This interface was referenced by `NextInvoiceEstimate`'s JSON-Schema * via the `definition` "data". */ export type NextInvoiceEstimateData = { type: NextInvoiceEstimateType; id: NextInvoiceEstimateIdentity; }; /** * JSON API attributes * * This interface was referenced by `NextInvoiceEstimate`'s JSON-Schema * via the `definition` "attributes". */ export type NextInvoiceEstimateAttributes = { amount: number; next_billing_at: string; discount_percentage?: number; tax_label: null | string; /** * VAT/tax percentage applied to the estimate, if any. */ tax_rate?: null | number; /** * Amount (in cents) deducted from the estimated invoice thanks to credits (promotional credits, refundable credits, or proration from an existing subscription) */ credits_applied?: number; }; /** * This interface was referenced by `SiteSubscription`'s JSON-Schema * via the `validate.schema` link. */ export type SiteSubscriptionValidateSchema = { type?: 'site_subscription_validation'; /** * Extra packets */ extra_packets: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; }; /** * Skip compatibility checks on content (number of records and uploads) */ ignore_content?: boolean; /** * Specify is site is a duplicate of another site */ is_duplicate?: boolean; plan: SitePlanData; }; /** * A subscription record * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "per_owner_pricing_subscription". */ export type PerOwnerPricingSubscription = { id: PerOwnerPricingSubscriptionIdentity; type: PerOwnerPricingSubscriptionType; /** * Date of creation of subscription */ created_at: string; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; /** * Purchased extra-usage packets */ extra_packets: { /** * Type of packet */ id: string; /** * Number of purchased packets */ quantity: number; }[]; price: number; plan: PerOwnerPricingPlanData; meta: PerOwnerPricingSubscriptionMeta; }; export type PerOwnerPricingSubscriptionCreateTargetSchema = PerOwnerPricingSubscription; /** * JSON API data * * This interface was referenced by `PerOwnerPricingPlan`'s JSON-Schema * via the `definition` "data". */ export type PerOwnerPricingPlanData = { type: PerOwnerPricingPlanType; id: PerOwnerPricingPlanIdentity; }; /** * JSON API meta * * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `definition` "meta". */ export type PerOwnerPricingSubscriptionMeta = { /** * Whether payments collection will be performed off-line, without using credit cards */ manual_payments_collection: boolean; }; /** * JSON API attributes * * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `definition` "attributes". */ export type PerOwnerPricingSubscriptionAttributes = { /** * Date of creation of subscription */ created_at: string; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; /** * Purchased extra-usage packets */ extra_packets: { /** * Type of packet */ id: string; /** * Number of purchased packets */ quantity: number; }[]; price: number; }; /** * JSON API links * * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `definition` "relationships". */ export type PerOwnerPricingSubscriptionRelationships = { plan: PerOwnerPricingPlanData; }; /** * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `create.schema` link. */ export type PerOwnerPricingSubscriptionCreateSchema = { type?: PerOwnerPricingSubscriptionType; payment_intent_id?: string; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; billing_profile?: null | { address_line: string; city: string; company?: null | string; country: string; email: string; first_name: string; last_name: string; state: string; vat_number?: null | string; cf_cod_fiscale?: null | string; cf_cod_fiscale_partecipante_gruppo_iva?: null | string; po_number?: null | string; zip: string; }; /** * Reason for the downgrade (only considered in case of switch to free plan) */ downgrade_reason?: string; plan: PerOwnerPricingPlanData; }; /** * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `simulate.schema` link. */ export type PerOwnerPricingSubscriptionSimulateSchema = { type?: 'per_owner_pricing_subscription_simulation'; /** * Type of recurrence (yearly/monthly) */ recurrence: 'yearly' | 'monthly'; billing_profile?: null | { address_line: string; city: string; country: string; vat_number?: null | string; cf_cod_fiscale?: null | string; cf_cod_fiscale_partecipante_gruppo_iva?: null | string; po_number?: null | string; zip: string; [k: string]: unknown; }; plan: PerOwnerPricingPlanData; }; /** * This interface was referenced by `PerOwnerPricingSubscription`'s JSON-Schema * via the `validate.schema` link. */ export type PerOwnerPricingSubscriptionValidateSchema = { type?: 'per_owner_pricing_subscription_validation'; plan: PerOwnerPricingPlanData; }; /** * Stores the information regarding the current plan for the project. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "site_plan". */ export type SitePlan = { id: SitePlanIdentity; type: SitePlanType; /** * The name of the plan */ name: string; /** * Whether this plan is active or legacy */ active: boolean; /** * Whether custom domain can be enabled or not */ custom_domain: boolean; /** * Number of users that can be invited */ users: null | number; /** * Number of indexable pages */ indexable_pages: null | number; /** * Number of build triggers */ build_triggers: null | number; /** * Number of search indexes */ search_indexes: null | number; /** * Number of plugins */ plugins: null | number; /** * Number of webhooks */ webhooks: null | number; /** * Number of records allowed */ items: null | number; /** * Monthly price */ monthly_price: number; /** * Yearly price */ yearly_price: number; /** * Uploadable bytes */ uploadable_bytes: null | number; /** * Amount of asset data transferred between our Asset CDN and GraphQL Content Delivery API and content consumers */ traffic_bytes: null | number; /** * The number of requests made to both our Content Management and Content Delivery APIs */ api_calls: null | number; /** * The number of requests made to our Content Delivery API */ cda_api_calls?: null | number; /** * The number of requests made to our Content Management API */ cma_api_calls?: null | number; /** * The number of streaming seconds delivered by Mux.com */ mux_streaming_seconds: null | number; /** * The number of available encoding seconds to Mux.com */ mux_encoding_seconds: null | number; /** * The number of images you can analyze for smart tags detections */ smart_tags_detections: null | number; /** * Monthly cumulative execution-time budget (in seconds) for scripts run in the remote MCP sandbox */ mcp_sandbox_execution_seconds: number; /** * Per-execution timeout ceiling (in seconds) for scripts run in the remote MCP sandbox */ mcp_sandbox_timeout_seconds: number; /** * The number of different API tokens you can generate, each which different permissions */ access_tokens: null | number; /** * Number of roles allowed */ roles: null | number; /** * Number of locales allowed */ locales: null | number; /** * Number of sandbox environments allowed */ sandbox_environments: null | number; /** * Number of models allowed */ item_types: null | number; /** * Whether collaboration features are enabled or not */ item_locking: boolean; /** * Whether project is in white-label mode or not */ white_label: boolean; /** * Whether Single Sign-On feature is enabled or not */ sso: boolean; /** * Whether built-in image editor and smart-tagging is enabled or not */ advanced_media_area: boolean; /** * Maximum number of blocks a record can contain */ blocks_per_item: number; /** * Maximum level of block nesting for a record */ blocks_depth: number; /** * Whether video streaming with Mux.com is enabled or not */ video: boolean; /** * Days of version history retention */ history_retention_days: number | null; /** * Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project */ concurrent_realtime_connections: number; /** * The maximum GraphQL query complexity a client can perform on our CDA. */ gql_complexity: number; /** * Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one */ history_resolution_minutes: number; /** * Whether two-factor authentication can be enabled or not */ otp: boolean; /** * Whether workflows are enabled or not */ workflows: boolean; /** * Whether visual editing is enabled or not */ visual_editing: boolean; /** * Number of workflows allowed */ workflows_count: number; /** * Whether audit logs are enabled or not */ audit_log: boolean; /** * Whether translator roles are enabled or not */ translator_roles: boolean; /** * Whether or not use a static IP when sending webhooks */ static_webhooks_ip: boolean; /** * Maximum size in bytes for a single file upload */ maximum_single_upload_bytes: number; /** * Maximum size (in bytes) for a record, including its block records */ item_size_bytes: number; /** * Available extra packets */ extra_packets: { users?: { amount_per_packet: number; price: number; }; locales?: { amount_per_packet: number; price: number; }; item_types?: { amount_per_packet: number; price: number; }; roles?: { amount_per_packet: number; price: number; }; build_triggers?: { amount_per_packet: number; price: number; }; search_indexes?: { amount_per_packet: number; price: number; }; access_tokens?: { amount_per_packet: number; price: number; }; mux_encoding_seconds?: { amount_per_packet: number; price: number; }; sandbox_environments?: { amount_per_packet: number; price: number; }; }; /** * Automatic packets */ auto_packets: { traffic_bytes?: { amount_per_packet: number; price: number; }; api_calls?: { amount_per_packet: number; price: number; }; cda_api_calls?: { amount_per_packet: number; price: number; }; cma_api_calls?: { amount_per_packet: number; price: number; }; mux_streaming_seconds?: { amount_per_packet: number; price: number; }; }; }; /** * JSON API attributes * * This interface was referenced by `SitePlan`'s JSON-Schema * via the `definition` "attributes". */ export type SitePlanAttributes = { /** * The name of the plan */ name: string; /** * Whether this plan is active or legacy */ active: boolean; /** * Whether custom domain can be enabled or not */ custom_domain: boolean; /** * Number of users that can be invited */ users: null | number; /** * Number of indexable pages */ indexable_pages: null | number; /** * Number of build triggers */ build_triggers: null | number; /** * Number of search indexes */ search_indexes: null | number; /** * Number of plugins */ plugins: null | number; /** * Number of webhooks */ webhooks: null | number; /** * Number of records allowed */ items: null | number; /** * Monthly price */ monthly_price: number; /** * Yearly price */ yearly_price: number; /** * Uploadable bytes */ uploadable_bytes: null | number; /** * Amount of asset data transferred between our Asset CDN and GraphQL Content Delivery API and content consumers */ traffic_bytes: null | number; /** * The number of requests made to both our Content Management and Content Delivery APIs */ api_calls: null | number; /** * The number of requests made to our Content Delivery API */ cda_api_calls?: null | number; /** * The number of requests made to our Content Management API */ cma_api_calls?: null | number; /** * The number of streaming seconds delivered by Mux.com */ mux_streaming_seconds: null | number; /** * The number of available encoding seconds to Mux.com */ mux_encoding_seconds: null | number; /** * The number of images you can analyze for smart tags detections */ smart_tags_detections: null | number; /** * Monthly cumulative execution-time budget (in seconds) for scripts run in the remote MCP sandbox */ mcp_sandbox_execution_seconds: number; /** * Per-execution timeout ceiling (in seconds) for scripts run in the remote MCP sandbox */ mcp_sandbox_timeout_seconds: number; /** * The number of different API tokens you can generate, each which different permissions */ access_tokens: null | number; /** * Number of roles allowed */ roles: null | number; /** * Number of locales allowed */ locales: null | number; /** * Number of sandbox environments allowed */ sandbox_environments: null | number; /** * Number of models allowed */ item_types: null | number; /** * Whether collaboration features are enabled or not */ item_locking: boolean; /** * Whether project is in white-label mode or not */ white_label: boolean; /** * Whether Single Sign-On feature is enabled or not */ sso: boolean; /** * Whether built-in image editor and smart-tagging is enabled or not */ advanced_media_area: boolean; /** * Maximum number of blocks a record can contain */ blocks_per_item: number; /** * Maximum level of block nesting for a record */ blocks_depth: number; /** * Whether video streaming with Mux.com is enabled or not */ video: boolean; /** * Days of version history retention */ history_retention_days: number | null; /** * Maximum number of clients connected at the same time to the Realtime Updates API. The limit is per-project */ concurrent_realtime_connections: number; /** * The maximum GraphQL query complexity a client can perform on our CDA. */ gql_complexity: number; /** * Period (in minutes) in which bursts of changes made to the same record by the same user (or API token) will be grouped into a single one */ history_resolution_minutes: number; /** * Whether two-factor authentication can be enabled or not */ otp: boolean; /** * Whether workflows are enabled or not */ workflows: boolean; /** * Whether visual editing is enabled or not */ visual_editing: boolean; /** * Number of workflows allowed */ workflows_count: number; /** * Whether audit logs are enabled or not */ audit_log: boolean; /** * Whether translator roles are enabled or not */ translator_roles: boolean; /** * Whether or not use a static IP when sending webhooks */ static_webhooks_ip: boolean; /** * Maximum size in bytes for a single file upload */ maximum_single_upload_bytes: number; /** * Maximum size (in bytes) for a record, including its block records */ item_size_bytes: number; /** * Available extra packets */ extra_packets: { users?: { amount_per_packet: number; price: number; }; locales?: { amount_per_packet: number; price: number; }; item_types?: { amount_per_packet: number; price: number; }; roles?: { amount_per_packet: number; price: number; }; build_triggers?: { amount_per_packet: number; price: number; }; search_indexes?: { amount_per_packet: number; price: number; }; access_tokens?: { amount_per_packet: number; price: number; }; mux_encoding_seconds?: { amount_per_packet: number; price: number; }; sandbox_environments?: { amount_per_packet: number; price: number; }; }; /** * Automatic packets */ auto_packets: { traffic_bytes?: { amount_per_packet: number; price: number; }; api_calls?: { amount_per_packet: number; price: number; }; cda_api_calls?: { amount_per_packet: number; price: number; }; cma_api_calls?: { amount_per_packet: number; price: number; }; mux_streaming_seconds?: { amount_per_packet: number; price: number; }; }; }; /** * Stores the information regarding the current plan for the account. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "per_owner_pricing_plan". */ export type PerOwnerPricingPlan = { id: PerOwnerPricingPlanIdentity; type: PerOwnerPricingPlanType; /** * The name of the plan */ name: string; /** * Additional notes */ notes: null | string; /** * Additional enterprise features enabled */ enterprise_features: string[]; /** * Whether this plan is active */ active: boolean; /** * Monthly price for plan (EUR) */ monthly_price: number; /** * Yearly price for plan (EUR) */ yearly_price: number; limits: ({ id: string; type: 'activable_feature'; available: boolean; } | { id: string; type: 'boolean_system_limit'; available: boolean; } | { id: string; type: 'countable_system_limit'; limit: number; } | { id: string; type: 'possibly_incompatible_countable_system_limit'; limit: number; } | { id: string; type: 'owner_managed_resource'; free_of_charge_usage: number; extra_packets_available_in_some_plan: boolean; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; } | { id: string; type: 'per_site_quota_managed_site_resource'; free_of_charge_per_site_usage: number; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; extra_packets_available_in_some_plan: boolean; } | { id: string; type: 'per_environment_quota_managed_site_resource'; free_of_charge_per_environment_usage: number; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; extra_packets_available_in_some_plan: boolean; } | { id: string; type: 'shared_quota_managed_site_resource'; free_of_charge_usage: number; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; extra_packets_available_in_some_plan: boolean; } | { id: string; type: 'shared_quota_metered_site_resource'; free_of_charge_usage: number; extra_packets_available_in_some_plan?: boolean; extra_packet_amount: null | number; extra_packet_price: null | number; })[]; }; /** * JSON API attributes * * This interface was referenced by `PerOwnerPricingPlan`'s JSON-Schema * via the `definition` "attributes". */ export type PerOwnerPricingPlanAttributes = { /** * The name of the plan */ name: string; /** * Additional notes */ notes: null | string; /** * Additional enterprise features enabled */ enterprise_features: string[]; /** * Whether this plan is active */ active: boolean; /** * Monthly price for plan (EUR) */ monthly_price: number; /** * Yearly price for plan (EUR) */ yearly_price: number; limits: ({ id: string; type: 'activable_feature'; available: boolean; } | { id: string; type: 'boolean_system_limit'; available: boolean; } | { id: string; type: 'countable_system_limit'; limit: number; } | { id: string; type: 'possibly_incompatible_countable_system_limit'; limit: number; } | { id: string; type: 'owner_managed_resource'; free_of_charge_usage: number; extra_packets_available_in_some_plan: boolean; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; } | { id: string; type: 'per_site_quota_managed_site_resource'; free_of_charge_per_site_usage: number; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; extra_packets_available_in_some_plan: boolean; } | { id: string; type: 'per_environment_quota_managed_site_resource'; free_of_charge_per_environment_usage: number; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; extra_packets_available_in_some_plan: boolean; } | { id: string; type: 'shared_quota_managed_site_resource'; free_of_charge_usage: number; max_extra_packets: null | number; extra_packet_amount: null | number; extra_packet_price: null | number; extra_packets_available_in_some_plan: boolean; } | { id: string; type: 'shared_quota_metered_site_resource'; free_of_charge_usage: number; extra_packets_available_in_some_plan?: boolean; extra_packet_amount: null | number; extra_packet_price: null | number; })[]; }; /** * A billing profile * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "per_site_pricing_billing_profile". */ export type PerSitePricingBillingProfile = { id: PerSitePricingBillingProfileIdentity; type: PerSitePricingBillingProfileType; billing_profile: { first_name: string; last_name: string; company: null | string; card_last_4: string; next_billing_at: string; card_type: string; card_expiry_month: number; card_expiry_year: number; address_line: string; city: string; email: string; country: string; state: string; zip: string; vat_number: null | string; /** * Whether the subscription has been cancelled and all associated projects are frozen. */ defaulting: boolean; defaulting_since: null | string; credits: number; total_dues: number; cf_cod_fiscale: null | string; cf_cod_fiscale_partecipante_gruppo_iva: null | string; coupons: string[]; is_active: boolean; next_monthly_billing_at: null | string; next_yearly_billing_at: null | string; }; active_subscriptions: SiteSubscriptionData[]; }; export type PerSitePricingBillingProfileSelfTargetSchema = PerSitePricingBillingProfile; export type PerSitePricingBillingProfileUpdateCreditCardTargetSchema = PerSitePricingBillingProfile; export type PerSitePricingBillingProfileUpdateInfoTargetSchema = PerSitePricingBillingProfile; export type PerSitePricingBillingProfileCancelSubscriptionTargetSchema = PerSitePricingBillingProfile; export type PerSitePricingBillingProfileDestroyTargetSchema = PerSitePricingBillingProfile; /** * Billing profile info * * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `definition` "attributes". */ export type PerSitePricingBillingProfileAttributes = { billing_profile: { first_name: string; last_name: string; company: null | string; card_last_4: string; next_billing_at: string; card_type: string; card_expiry_month: number; card_expiry_year: number; address_line: string; city: string; email: string; country: string; state: string; zip: string; vat_number: null | string; /** * Whether the subscription has been cancelled and all associated projects are frozen. */ defaulting: boolean; defaulting_since: null | string; credits: number; total_dues: number; cf_cod_fiscale: null | string; cf_cod_fiscale_partecipante_gruppo_iva: null | string; coupons: string[]; is_active: boolean; next_monthly_billing_at: null | string; next_yearly_billing_at: null | string; }; }; /** * JSON API links * * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `definition` "relationships". */ export type PerSitePricingBillingProfileRelationships = { active_subscriptions: SiteSubscriptionData[]; }; /** * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `update_credit_card.schema` link. */ export type PerSitePricingBillingProfileUpdateCreditCardSchema = { type?: 'card'; payment_intent_id: string; }; /** * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `update_info.schema` link. */ export type PerSitePricingBillingProfileUpdateInfoSchema = { id?: PerSitePricingBillingProfileIdentity; type?: PerSitePricingBillingProfileType; billing_profile: { first_name: string; last_name: string; company: null | string; address_line: string; city: string; email: string; country: string; state: string; zip: string; vat_number?: null | string; cf_cod_fiscale?: null | string; cf_cod_fiscale_partecipante_gruppo_iva?: null | string; }; }; /** * This interface was referenced by `PerSitePricingBillingProfile`'s JSON-Schema * via the `cancel_subscription.schema` link. */ export type PerSitePricingBillingProfileCancelSubscriptionSchema = { type?: 'per_site_pricing_billing_profile'; reason?: string | null; }; /** * A billing profile * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "per_owner_pricing_billing_profile". */ export type PerOwnerPricingBillingProfile = { id: PerOwnerPricingBillingProfileIdentity; type: PerOwnerPricingBillingProfileType; billing_profile: { first_name: string; last_name: string; company: null | string; card_last_4: string; next_billing_at: string; card_type: string; card_expiry_month: number; card_expiry_year: number; address_line: string; city: string; email: string; country: string; state: string; zip: string; vat_number: null | string; /** * Whether the subscription has been cancelled and all associated projects are frozen. */ defaulting: boolean; defaulting_since: null | string; credits: number; total_dues: number; /** * Sum of the unpaid invoices (posted, payment due, not paid), in cents. Unlike `total_dues`, it includes posted invoices that are still within their payment terms. */ total_outstanding: number; cf_cod_fiscale: null | string; cf_cod_fiscale_partecipante_gruppo_iva: null | string; po_number: null | string; unbilled_charges: number; discount_percentage: number; }; }; export type PerOwnerPricingBillingProfileSelfTargetSchema = PerOwnerPricingBillingProfile; export type PerOwnerPricingBillingProfileUpdateCreditCardTargetSchema = PerOwnerPricingBillingProfile; export type PerOwnerPricingBillingProfileUpdateInfoTargetSchema = PerOwnerPricingBillingProfile; export type PerOwnerPricingBillingProfileCancelSubscriptionTargetSchema = PerOwnerPricingBillingProfile; /** * Billing profile info * * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `definition` "attributes". */ export type PerOwnerPricingBillingProfileAttributes = { billing_profile: { first_name: string; last_name: string; company: null | string; card_last_4: string; next_billing_at: string; card_type: string; card_expiry_month: number; card_expiry_year: number; address_line: string; city: string; email: string; country: string; state: string; zip: string; vat_number: null | string; /** * Whether the subscription has been cancelled and all associated projects are frozen. */ defaulting: boolean; defaulting_since: null | string; credits: number; total_dues: number; /** * Sum of the unpaid invoices (posted, payment due, not paid), in cents. Unlike `total_dues`, it includes posted invoices that are still within their payment terms. */ total_outstanding: number; cf_cod_fiscale: null | string; cf_cod_fiscale_partecipante_gruppo_iva: null | string; po_number: null | string; unbilled_charges: number; discount_percentage: number; }; }; /** * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `update_credit_card.schema` link. */ export type PerOwnerPricingBillingProfileUpdateCreditCardSchema = { type?: 'card'; payment_intent_id: string; }; /** * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `update_info.schema` link. */ export type PerOwnerPricingBillingProfileUpdateInfoSchema = { id?: PerOwnerPricingBillingProfileIdentity; type?: PerOwnerPricingBillingProfileType; billing_profile: { first_name: string; last_name: string; company: null | string; address_line: string; city: string; email: string; country: string; state: string; zip: string; vat_number?: null | string; cf_cod_fiscale?: null | string; cf_cod_fiscale_partecipante_gruppo_iva?: null | string; po_number?: null | string; }; }; /** * This interface was referenced by `PerOwnerPricingBillingProfile`'s JSON-Schema * via the `cancel_subscription.schema` link. */ export type PerOwnerPricingBillingProfileCancelSubscriptionSchema = { type?: 'per_owner_pricing_billing_profile'; reason?: string | null; }; /** * An invoice * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "invoice". */ export type Invoice = { id: InvoiceIdentity; type: InvoiceType; date: string; total: number; amount_due: number; status: string; last_failed_transaction: null | { code?: string; message?: string; [k: string]: unknown; }; billing_profile: PerSitePricingBillingProfileData | PerOwnerPricingBillingProfileData; }; /** * JSON API data * * This interface was referenced by `Invoice`'s JSON-Schema * via the `definition` "data". */ export type InvoiceData = { type: InvoiceType; id: InvoiceIdentity; }; /** * JSON API attributes * * This interface was referenced by `Invoice`'s JSON-Schema * via the `definition` "attributes". */ export type InvoiceAttributes = { date: string; total: number; amount_due: number; status: string; last_failed_transaction: null | { code?: string; message?: string; [k: string]: unknown; }; }; /** * JSON API links * * This interface was referenced by `Invoice`'s JSON-Schema * via the `definition` "relationships". */ export type InvoiceRelationships = { billing_profile: PerSitePricingBillingProfileData | PerOwnerPricingBillingProfileData; }; /** * This interface was referenced by `Invoice`'s JSON-Schema * via the `per_owner_pricing_billing_profile_collect_unpaid.schema` link. */ export type InvoicePerOwnerPricingBillingProfileCollectUnpaidSchema = { type?: 'invoice_collection'; payment_intent_id: string; }; /** * This interface was referenced by `Invoice`'s JSON-Schema * via the `per_site_pricing_billing_profile_collect_unpaid.schema` link. */ export type InvoicePerSitePricingBillingProfileCollectUnpaidSchema = { type?: 'invoice_collection'; payment_intent_id: string; }; /** * A resource usage * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "resource_usage". */ export type ResourceUsage = { id: ResourceUsageIdentity; type: ResourceUsageType; quota: string; current_usage: null | number; free_of_charge_usage: number; current_extra_usage: null | number; sites_current_usage: null | { site_id: string; site_name: string; current_usage: number; /** * The project was deleted this month. A deleted project shows only when it adds to the usage of a metered resource */ recently_deleted: boolean; }[]; usage_status: null | string; forecast_message: null | string; /** * The forecast of the end of the month. Null when the resource is not metered */ forecast: null | { /** * The usage expected at the end of the month, at the current rate. On the first day of the month, the usage until now */ expected_usage: number; /** * The expected price of the extra usage at the end of the month, in euros, before taxes. Null when the plan has no extra packets for this resource */ expected_extra_price: null | number; /** * The price of the extra usage until now, in euros, before taxes. Null when the plan has no extra packets for this resource */ current_extra_price: null | number; /** * The cheapest plan that includes the expected usage. Null when the current plan includes it, or when no plan does */ upgrade_plan: null | { id: string; name: string; free_of_charge_usage: number; }; }; }; /** * JSON API data * * This interface was referenced by `ResourceUsage`'s JSON-Schema * via the `definition` "data". */ export type ResourceUsageData = { type: ResourceUsageType; id: ResourceUsageIdentity; }; /** * JSON API attributes * * This interface was referenced by `ResourceUsage`'s JSON-Schema * via the `definition` "attributes". */ export type ResourceUsageAttributes = { quota: string; current_usage: null | number; free_of_charge_usage: number; current_extra_usage: null | number; sites_current_usage: null | { site_id: string; site_name: string; current_usage: number; /** * The project was deleted this month. A deleted project shows only when it adds to the usage of a metered resource */ recently_deleted: boolean; }[]; usage_status: null | string; forecast_message: null | string; /** * The forecast of the end of the month. Null when the resource is not metered */ forecast: null | { /** * The usage expected at the end of the month, at the current rate. On the first day of the month, the usage until now */ expected_usage: number; /** * The expected price of the extra usage at the end of the month, in euros, before taxes. Null when the plan has no extra packets for this resource */ expected_extra_price: null | number; /** * The price of the extra usage until now, in euros, before taxes. Null when the plan has no extra packets for this resource */ current_extra_price: null | number; /** * The cheapest plan that includes the expected usage. Null when the current plan includes it, or when no plan does */ upgrade_plan: null | { id: string; name: string; free_of_charge_usage: number; }; }; }; /** * DatoCMS resources usage organized by day * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "daily_usage". */ export type DailyUsage = { id: DailyUsageIdentity; type: DailyUsageType; /** * The date the data are referring to */ date: string; /** * Number of API calls to content delivery API */ cda_api_calls: number; /** * Number of API calls to content management API */ cma_api_calls: number; /** * Content delivery API traffic */ cda_traffic_bytes: number; /** * Content management API traffic */ cma_traffic_bytes: number; /** * Uploads requests traffic */ assets_traffic_bytes: number; /** * Regular video streaming (max 1080p), in seconds */ mux_delivered_seconds: number; /** * High-res video streaming (> 1080p), in seconds */ mux_high_resolution_delivered_seconds: number; /** * Video encoding seconds */ mux_encoded_seconds: number; /** * Number of images analyzed for smart tags */ smart_tags_detections: number; site: SiteData; }; /** * JSON API data * * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `definition` "data". */ export type DailyUsageData = { type: DailyUsageType; id: DailyUsageIdentity; }; /** * JSON API attributes * * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `definition` "attributes". */ export type DailyUsageAttributes = { /** * The date the data are referring to */ date: string; /** * Number of API calls to content delivery API */ cda_api_calls: number; /** * Number of API calls to content management API */ cma_api_calls: number; /** * Content delivery API traffic */ cda_traffic_bytes: number; /** * Content management API traffic */ cma_traffic_bytes: number; /** * Uploads requests traffic */ assets_traffic_bytes: number; /** * Regular video streaming (max 1080p), in seconds */ mux_delivered_seconds: number; /** * High-res video streaming (> 1080p), in seconds */ mux_high_resolution_delivered_seconds: number; /** * Video encoding seconds */ mux_encoded_seconds: number; /** * Number of images analyzed for smart tags */ smart_tags_detections: number; }; /** * JSON API links * * This interface was referenced by `DailyUsage`'s JSON-Schema * via the `definition` "relationships". */ export type DailyUsageRelationships = { site: SiteData; }; /** * Some API endpoint give results asynchronously, returning the ID of a job. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "job_result". */ export type JobResult = { id: JobResultIdentity; type: JobResultType; /** * Status of delayed HTTP response */ status: number; /** * JSON API response of the HTTP request */ payload: null | { [k: string]: unknown; }; }; export type JobResultSelfTargetSchema = JobResult; /** * JSON API data * * This interface was referenced by `JobResult`'s JSON-Schema * via the `definition` "data". */ export type JobResultData = { type: JobResultType; id: JobResultIdentity; }; /** * JSON API attributes * * This interface was referenced by `JobResult`'s JSON-Schema * via the `definition` "attributes". */ export type JobResultAttributes = { /** * Status of delayed HTTP response */ status: number; /** * JSON API response of the HTTP request */ payload: null | { [k: string]: unknown; }; }; /** * A request to transfer a site to another account * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "site_transfer". */ export type SiteTransfer = { id: SiteTransferIdentity; type: SiteTransferType; source: { /** * Type of owner */ type: 'account'; /** * Email of the account that owns the project */ email: string; } | { /** * Type of owner */ type: 'organization'; /** * Name of the organization that owns the project */ name: string; /** * ID of the organization that owns the project */ id: string; }; destination: { /** * Type of owner */ type: 'account'; /** * Email of the account that owns the project */ email: string; } | { /** * Type of owner */ type: 'organization'; /** * Name of the organization that owns the project */ name: string; /** * ID of the organization that owns the project */ id: string; }; /** * Name of the site to transfer */ site_name: string; recurrence?: ('yearly' | 'monthly') | null; extra_packets: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; } | null; plan: SitePlanData | null; meta: SiteTransferMeta; }; export type SiteTransferSelfTargetSchema = SiteTransfer; /** * JSON API meta * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `definition` "meta". */ export type SiteTransferMeta = { /** * Date of site transfer creation */ created_at: string; }; /** * JSON API attributes * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `definition` "attributes". */ export type SiteTransferAttributes = { source: { /** * Type of owner */ type: 'account'; /** * Email of the account that owns the project */ email: string; } | { /** * Type of owner */ type: 'organization'; /** * Name of the organization that owns the project */ name: string; /** * ID of the organization that owns the project */ id: string; }; destination: { /** * Type of owner */ type: 'account'; /** * Email of the account that owns the project */ email: string; } | { /** * Type of owner */ type: 'organization'; /** * Name of the organization that owns the project */ name: string; /** * ID of the organization that owns the project */ id: string; }; /** * Name of the site to transfer */ site_name: string; recurrence?: ('yearly' | 'monthly') | null; extra_packets: { users?: number; locales?: number; item_types?: number; roles?: number; build_triggers?: number; search_indexes?: number; access_tokens?: number; mux_encoding_seconds?: number; sandbox_environments?: number; items?: number; uploadable_bytes?: number; } | null; }; /** * JSON API links * * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `definition` "relationships". */ export type SiteTransferRelationships = { plan: SitePlanData | null; }; /** * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `create.schema` link. */ export type SiteTransferCreateSchema = { type?: SiteTransferType; destination?: AccountData | OrganizationData; }; /** * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `simulate_accept.schema` link. */ export type SiteTransferSimulateAcceptSchema = { type?: 'site_transfer_acceptance_simulation'; billing_profile: PerSitePricingBillingProfileData | null; }; /** * This interface was referenced by `SiteTransfer`'s JSON-Schema * via the `accept.schema` link. */ export type SiteTransferAcceptSchema = { type?: 'site_transfer_acceptance'; payment_intent_id?: string; billing_profile?: PerSitePricingBillingProfileData | null; }; /** * Site invitation * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "site_invitation". */ export type SiteInvitation = { id: SiteInvitationIdentity; type: SiteInvitationType; }; /** * JSON API data * * This interface was referenced by `SiteInvitation`'s JSON-Schema * via the `definition` "data". */ export type SiteInvitationData = { type: SiteInvitationType; id: SiteInvitationIdentity; }; /** * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "subscription_limit". */ export type SubscriptionLimit = { id: SubscriptionLimitIdentity; type: SubscriptionLimitType; /** * The codename for the limit */ code: string; /** * Current usage */ usage: number; /** * The actual limit */ limit: number | null; }; /** * JSON API data * * This interface was referenced by `SubscriptionLimit`'s JSON-Schema * via the `definition` "data". */ export type SubscriptionLimitData = { type: SubscriptionLimitType; id: SubscriptionLimitIdentity; }; /** * JSON API attributes * * This interface was referenced by `SubscriptionLimit`'s JSON-Schema * via the `definition` "attributes". */ export type SubscriptionLimitAttributes = { /** * The codename for the limit */ code: string; /** * Current usage */ usage: number; /** * The actual limit */ limit: number | null; }; /** * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "subscription_feature". */ export type SubscriptionFeature = { id: SubscriptionFeatureIdentity; type: SubscriptionFeatureType; /** * The codename for the feature */ code: string; /** * Whether the project is currently using the feature */ in_use?: boolean; /** * Whether the feature is available on the current project */ enabled: boolean; }; /** * JSON API data * * This interface was referenced by `SubscriptionFeature`'s JSON-Schema * via the `definition` "data". */ export type SubscriptionFeatureData = { type: SubscriptionFeatureType; id: SubscriptionFeatureIdentity; }; /** * JSON API attributes * * This interface was referenced by `SubscriptionFeature`'s JSON-Schema * via the `definition` "attributes". */ export type SubscriptionFeatureAttributes = { /** * The codename for the feature */ code: string; /** * Whether the project is currently using the feature */ in_use?: boolean; /** * Whether the feature is available on the current project */ enabled: boolean; }; /** * An OAuth application that allows access to our API from third party services. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "oauth_application". */ export type OauthApplication = { id: OauthApplicationIdentity; type: OauthApplicationType; /** * Name of application. For an MCP client that DatoCMS cannot verify, the name carries a warning and the host that identifies the client, e.g. "ChatGPT (unverified · evil.example)" */ name: string; /** * Date of token creation */ created_at: string; /** * Whether the application can access all projects or only selected ones */ site_access_mode: 'all' | 'selected'; /** * The level of access the account granted to the application, on top of its own permissions. Read-only: it is picked when authorizing the application, and changing it means authorizing the application again */ read_sites_permission_cap: 'content_view_only' | 'content_only' | 'unrestricted'; /** * Details of an MCP client application (for example ChatGPT, Claude or Cursor), which has its own projects and level of access. Null for any other application */ mcp_client: { /** * Name of the MCP client, without the note that name adds when DatoCMS cannot verify the client */ raw_name: string; /** * How the MCP client obtained its application */ registration: 'cimd' | 'dcr'; /** * How much DatoCMS trusts the identity of the MCP client */ trust_level: 'verified' | 'local' | 'unverified'; } | null; granted_sites: SiteData[]; }; export type OauthApplicationUpdateTargetSchema = OauthApplication; /** * JSON API data * * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `definition` "data". */ export type OauthApplicationData = { type: OauthApplicationType; id: OauthApplicationIdentity; }; /** * JSON API attributes * * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `definition` "attributes". */ export type OauthApplicationAttributes = { /** * Name of application. For an MCP client that DatoCMS cannot verify, the name carries a warning and the host that identifies the client, e.g. "ChatGPT (unverified · evil.example)" */ name: string; /** * Date of token creation */ created_at: string; /** * Whether the application can access all projects or only selected ones */ site_access_mode: 'all' | 'selected'; /** * The level of access the account granted to the application, on top of its own permissions. Read-only: it is picked when authorizing the application, and changing it means authorizing the application again */ read_sites_permission_cap: 'content_view_only' | 'content_only' | 'unrestricted'; /** * Details of an MCP client application (for example ChatGPT, Claude or Cursor), which has its own projects and level of access. Null for any other application */ mcp_client: { /** * Name of the MCP client, without the note that name adds when DatoCMS cannot verify the client */ raw_name: string; /** * How the MCP client obtained its application */ registration: 'cimd' | 'dcr'; /** * How much DatoCMS trusts the identity of the MCP client */ trust_level: 'verified' | 'local' | 'unverified'; } | null; }; /** * JSON API relationships * * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `definition` "relationships". */ export type OauthApplicationRelationships = { granted_sites: SiteData[]; }; /** * This interface was referenced by `OauthApplication`'s JSON-Schema * via the `update.schema` link. */ export type OauthApplicationUpdateSchema = { id?: OauthApplicationIdentity; type?: OauthApplicationType; /** * Whether the application can access all projects or only selected ones */ site_access_mode: 'all' | 'selected'; granted_sites?: SiteData[]; }; /** * Private entity to handle payments with Stripe * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "payment_intent". */ export type PaymentIntent = { id: PaymentIntentIdentity; type: PaymentIntentType; /** * Stripe PaymentIntent client_secret */ client_secret: string | null; /** * Stripe PaymentIntent status */ status: string; }; export type PaymentIntentCreateFromPaymentMethodTargetSchema = PaymentIntent; export type PaymentIntentCreateForPerSitePricingBillingProfileTargetSchema = PaymentIntent; export type PaymentIntentCreateForPerOwnerPricingBillingProfileTargetSchema = PaymentIntent; export type PaymentIntentConfirmTargetSchema = PaymentIntent; /** * JSON API data * * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `definition` "data". */ export type PaymentIntentData = { type: PaymentIntentType; id: PaymentIntentIdentity; }; /** * JSON API attributes * * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `definition` "attributes". */ export type PaymentIntentAttributes = { /** * Stripe PaymentIntent client_secret */ client_secret: string | null; /** * Stripe PaymentIntent status */ status: string; }; /** * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `create_from_payment_method.schema` link. */ export type PaymentIntentCreateFromPaymentMethodSchema = { type?: 'payment_intent'; /** * Amount to charge */ amount: number; }; /** * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `create_for_per_site_pricing_billing_profile.schema` link. */ export type PaymentIntentCreateForPerSitePricingBillingProfileSchema = { type?: 'payment_intent'; /** * Amount to charge */ amount: number; }; /** * This interface was referenced by `PaymentIntent`'s JSON-Schema * via the `create_for_per_owner_pricing_billing_profile.schema` link. */ export type PaymentIntentCreateForPerOwnerPricingBillingProfileSchema = { type?: 'payment_intent'; /** * Amount to charge */ amount: number; }; /** * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "payment_method". */ export type PaymentMethod = { id: PaymentMethodIdentity; type: PaymentMethodType; }; /** * JSON API data * * This interface was referenced by `PaymentMethod`'s JSON-Schema * via the `definition` "data". */ export type PaymentMethodData = { type: PaymentMethodType; id: PaymentMethodIdentity; }; /** * JSON API attributes * * This interface was referenced by `PaymentMethod`'s JSON-Schema * via the `definition` "attributes". */ export type PaymentMethodAttributes = {}; /** * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "otp_backup_codes". */ export type OtpBackupCodes = { id: OtpBackupCodesIdentity; type: OtpBackupCodesType; codes: string[]; }; /** * JSON API data * * This interface was referenced by `OtpBackupCodes`'s JSON-Schema * via the `definition` "data". */ export type OtpBackupCodesData = { type: OtpBackupCodesType; id: OtpBackupCodesIdentity; }; /** * JSON API attributes * * This interface was referenced by `OtpBackupCodes`'s JSON-Schema * via the `definition` "attributes". */ export type OtpBackupCodesAttributes = { codes: string[]; }; /** * Organization role * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "organization_role". */ export type OrganizationRole = { id: OrganizationRoleIdentity; type: OrganizationRoleType; /** * Name of role */ name: string; /** * Whether the role can read everything or not */ can_read_everything: boolean; /** * Whether the role can access projects as owner or not */ can_access_sites_as_owner: boolean; /** * Whether the role can create new sites or not */ can_create_new_sites: boolean; /** * Whether the role can edit projects or not */ can_edit_sites: boolean; /** * Whether the role can manage project transfers or not */ can_manage_site_transfers: boolean; /** * Whether the role can delete projects or not */ can_delete_sites: boolean; /** * Whether the role can manage members or not */ can_manage_members: boolean; /** * Whether the role can manage billing or not */ can_manage_billing: boolean; /** * Whether the role can manage organization or not */ can_manage_organization: boolean; }; export type OrganizationRoleSelfTargetSchema = OrganizationRole; /** * JSON API data * * This interface was referenced by `OrganizationRole`'s JSON-Schema * via the `definition` "data". */ export type OrganizationRoleData = { type: OrganizationRoleType; id: OrganizationRoleIdentity; }; /** * JSON API attributes * * This interface was referenced by `OrganizationRole`'s JSON-Schema * via the `definition` "attributes". */ export type OrganizationRoleAttributes = { /** * Name of role */ name: string; /** * Whether the role can read everything or not */ can_read_everything: boolean; /** * Whether the role can access projects as owner or not */ can_access_sites_as_owner: boolean; /** * Whether the role can create new sites or not */ can_create_new_sites: boolean; /** * Whether the role can edit projects or not */ can_edit_sites: boolean; /** * Whether the role can manage project transfers or not */ can_manage_site_transfers: boolean; /** * Whether the role can delete projects or not */ can_delete_sites: boolean; /** * Whether the role can manage members or not */ can_manage_members: boolean; /** * Whether the role can manage billing or not */ can_manage_billing: boolean; /** * Whether the role can manage organization or not */ can_manage_organization: boolean; }; /** * A DatoCMS organization can be accessed by multiple people. Every invitation is linked to a specific role, which describes what actions it will be able to perform once the user will register. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "organization_invitation". */ export type OrganizationInvitation = { id: OrganizationInvitationIdentity; type: OrganizationInvitationType; /** * Email */ email: string; role: OrganizationRoleData; meta: OrganizationInvitationMeta; }; export type OrganizationInvitationCreateTargetSchema = OrganizationInvitation; export type OrganizationInvitationUpdateTargetSchema = OrganizationInvitation; export type OrganizationInvitationSelfTargetSchema = OrganizationInvitation; export type OrganizationInvitationDestroyTargetSchema = OrganizationInvitation; /** * JSON API meta * * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `definition` "meta". */ export type OrganizationInvitationMeta = { /** * Whether the invitation has expired or not */ expired: boolean; }; /** * JSON API data * * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `definition` "data". */ export type OrganizationInvitationData = { type: OrganizationInvitationType; id: OrganizationInvitationIdentity; }; /** * JSON API attributes * * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `definition` "attributes". */ export type OrganizationInvitationAttributes = { /** * Email */ email: string; }; /** * JSON API links * * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `definition` "relationships". */ export type OrganizationInvitationRelationships = { role: OrganizationRoleData; }; /** * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `create.schema` link. */ export type OrganizationInvitationCreateSchema = { type?: OrganizationInvitationType; /** * Email */ email: string; role: OrganizationRoleData; }; /** * This interface was referenced by `OrganizationInvitation`'s JSON-Schema * via the `update.schema` link. */ export type OrganizationInvitationUpdateSchema = { id?: OrganizationInvitationIdentity; type?: OrganizationInvitationType; role?: OrganizationRoleData; }; /** * A DatoCMS organization can be accessed by multiple people. Every membership is linked to a specific role, which describes what actions it will be able to perform once the user will register. * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "organization_membership". */ export type OrganizationMembership = { id: OrganizationMembershipIdentity; type: OrganizationMembershipType; role: OrganizationRoleData; meta: OrganizationMembershipMeta; }; export type OrganizationMembershipUpdateTargetSchema = OrganizationMembership; export type OrganizationMembershipSelfTargetSchema = OrganizationMembership; export type OrganizationMembershipMeTargetSchema = OrganizationMembership; export type OrganizationMembershipDestroyTargetSchema = OrganizationMembership; /** * JSON API meta * * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `definition` "meta". */ export type OrganizationMembershipMeta = { /** * Email */ email: string; /** * First name */ first_name?: string | null; /** * Last name */ last_name?: string | null; }; /** * JSON API data * * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `definition` "data". */ export type OrganizationMembershipData = { type: OrganizationMembershipType; id: OrganizationMembershipIdentity; }; /** * JSON API links * * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `definition` "relationships". */ export type OrganizationMembershipRelationships = { role: OrganizationRoleData; }; /** * This interface was referenced by `OrganizationMembership`'s JSON-Schema * via the `update.schema` link. */ export type OrganizationMembershipUpdateSchema = { id?: OrganizationMembershipIdentity; type?: OrganizationMembershipType; role?: OrganizationRoleData; }; /** * Agencies enrolled in the DatoCMS Partner program can request a mandate to manage their client's organizations * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "organization_mandate_request". */ export type OrganizationMandateRequest = { id: OrganizationMandateRequestIdentity; type: OrganizationMandateRequestType; approver_organization: OrganizationData; requester_organization: OrganizationData; meta: OrganizationMandateRequestMeta; }; export type OrganizationMandateRequestDestroyTargetSchema = OrganizationMandateRequest; /** * JSON API meta * * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `definition` "meta". */ export type OrganizationMandateRequestMeta = { /** * Name of the organization requesting the mandate */ requester_organization_name: string; /** * Name of the organization approving the mandate */ approver_organization_name: string; }; /** * JSON API data * * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `definition` "data". */ export type OrganizationMandateRequestData = { type: OrganizationMandateRequestType; id: OrganizationMandateRequestIdentity; }; /** * JSON API links * * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `definition` "relationships". */ export type OrganizationMandateRequestRelationships = { approver_organization: OrganizationData; requester_organization: OrganizationData; }; /** * This interface was referenced by `OrganizationMandateRequest`'s JSON-Schema * via the `create.schema` link. */ export type OrganizationMandateRequestCreateSchema = { type?: OrganizationMandateRequestType; approver_organization: OrganizationData; }; /** * Agencies enrolled in the DatoCMS Partner program can request a mandate to manage their client's organizations * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "organization_mandate". */ export type OrganizationMandate = { id: OrganizationMandateIdentity; type: OrganizationMandateType; mandator_organization: OrganizationData; appointed_organization: OrganizationData; active_plan: PerOwnerPricingPlanData; additional_enabled_plans: PerOwnerPricingPlanData[]; meta: OrganizationMandateMeta; }; export type OrganizationMandateUpdateTargetSchema = OrganizationMandate; export type OrganizationMandateDestroyTargetSchema = OrganizationMandate; /** * JSON API meta * * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `definition` "meta". */ export type OrganizationMandateMeta = { /** * Name of the organization requesting the mandate */ appointed_organization_name: string; /** * Name of the organization approving the mandate */ mandator_organization_name: string; }; /** * JSON API data * * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `definition` "data". */ export type OrganizationMandateData = { type: OrganizationMandateType; id: OrganizationMandateIdentity; }; /** * JSON API links * * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `definition` "relationships". */ export type OrganizationMandateRelationships = { mandator_organization: OrganizationData; appointed_organization: OrganizationData; active_plan: PerOwnerPricingPlanData; additional_enabled_plans: PerOwnerPricingPlanData[]; }; /** * This interface was referenced by `OrganizationMandate`'s JSON-Schema * via the `update.schema` link. */ export type OrganizationMandateUpdateSchema = { id?: OrganizationMandateIdentity; type?: OrganizationMandateType; additional_enabled_plans?: PerOwnerPricingPlanData[]; }; /** * Accounts that belong to a single organization can ask owners to deactivate their two-factor authentication * * This interface was referenced by `DatoApi`'s JSON-Schema * via the `definition` "tfa_deactivate_request". */ export type TfaDeactivateRequest = { id: TfaDeactivateRequestIdentity; type: TfaDeactivateRequestType; organization: OrganizationData; account: AccountData; meta: TfaDeactivateRequestMeta; }; export type TfaDeactivateRequestCreateTargetSchema = TfaDeactivateRequest; /** * JSON API meta * * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `definition` "meta". */ export type TfaDeactivateRequestMeta = { /** * Email */ email: string; }; /** * JSON API data * * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `definition` "data". */ export type TfaDeactivateRequestData = { type: TfaDeactivateRequestType; id: TfaDeactivateRequestIdentity; }; /** * JSON API links * * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `definition` "relationships". */ export type TfaDeactivateRequestRelationships = { organization: OrganizationData; account: AccountData; }; /** * This interface was referenced by `TfaDeactivateRequest`'s JSON-Schema * via the `create.schema` link. */ export type TfaDeactivateRequestCreateSchema = { type?: 'tfa_deactivate_request'; /** * Email */ email: string; /** * Current password */ password: string; };