@wix/auto_sdk_premium_google-subscriptions 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +76 -0
- package/build/cjs/index.js +779 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1299 -0
- package/build/cjs/index.typings.js +694 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1050 -0
- package/build/cjs/meta.js +555 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +76 -0
- package/build/es/index.mjs +740 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1299 -0
- package/build/es/index.typings.mjs +654 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1050 -0
- package/build/es/meta.mjs +514 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +96 -0
- package/build/internal/cjs/index.typings.d.ts +1339 -0
- package/build/internal/cjs/meta.d.ts +1099 -0
- package/build/internal/es/index.d.mts +96 -0
- package/build/internal/es/index.typings.d.mts +1339 -0
- package/build/internal/es/meta.d.mts +1099 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.http.ts","../../src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.types.ts","../../src/premium-google-subscriptions-v1-google-subscription-google-subscriptions.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKBytesToRESTBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nconst TRANSFORM_PATHS_0 = [{ path: 'body' }];\nconst TRANSFORM_PATHS_1 = [\n { path: 'googleSubscriptions.createdDate' },\n { path: 'googleSubscriptions.updatedDate' },\n];\n\nfunction resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n 'billing.base44.com': [\n {\n srcPath: '/_api/google-subscriptions',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/google-subscriptions',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_premium_google-subscriptions';\n\n/**\n * Checks whether the caller's account can purchase a Google product for a domain.\n *\n * Specify the product in `productTypeId`. Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.\n *\n * The response contains either an eligible result, with the maximum number of seats the account can purchase, or a not-eligible result that lists the reasons.\n *\n * To check eligibility to upgrade an existing Business Email subscription, specify `existingSubscriptionPremiumId`.\n */\nexport function isEligible(payload: object): RequestOptionsFactory<any> {\n function __isEligible({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'GET' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleProductEligibility.IsEligible',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({\n protoPath: '/v1/google-subscriptions/is-eligible',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __isEligible;\n}\n\n/**\n * Evaluates the email recovery state of the specified domains.\n *\n * Returns only how many domains were evaluated and how many were skipped. Results for individual domains aren't returned, and the method doesn't change any data.\n *\n * Domains the caller's account doesn't own are skipped. Up to 20 distinct domains are evaluated per request, and any others are counted in `skipped`.\n *\n * Evaluation isn't available for every caller. When it isn't available, every requested domain is counted in `skipped`.\n */\nexport function observeEmailActions(\n payload: object\n): RequestOptionsFactory<any> {\n function __observeEmailActions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleProductEligibility.ObserveEmailActions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleProductEligibilityUrl({\n protoPath: '/v1/google-subscriptions/observe-email-actions',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __observeEmailActions;\n}\n\n/** Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps. */\nexport function receiveCloudChannelPush(\n payload: object\n): RequestOptionsFactory<any> {\n function __receiveCloudChannelPush({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKBytesToRESTBytes,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.ReceiveCloudChannelPush',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google/cloud-channel-webhook',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __receiveCloudChannelPush;\n}\n\n/**\n * Retrieves a list of up to 1,000 Google subscriptions, given the provided paging, filtering, and sorting.\n *\n * Query Google Subscriptions runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `paging.limit` is `50`\n * - `paging.offset` is `0`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n */\nexport function queryGoogleSubscriptions(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryGoogleSubscriptions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.QueryGoogleSubscriptions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_1,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryGoogleSubscriptions;\n}\n\n/**\n * Retrieves the users of the Google Workspace on a domain owned by the caller's account.\n *\n * Returns all users, including administrators, up to 300 users. Additional users aren't returned, and the method doesn't support paging.\n */\nexport function retrieveUsersByDomain(\n payload: object\n): RequestOptionsFactory<any> {\n function __retrieveUsersByDomain({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'GET' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RetrieveUsersByDomain',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/retrieve-users/{domainName}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __retrieveUsersByDomain;\n}\n\n/**\n * Retrieves how much storage a Google Workspace has used out of its pooled quota.\n *\n * The numbers come from Google's daily usage report, so they trail live usage by about a day. `asOfDate` is the report day.\n *\n * The response is empty when no usage data is available. For example, when the subscription isn't live, when Google doesn't grant access to the customer's reports, or when the day's report isn't published yet.\n *\n * Storage usage isn't available for every caller. When it isn't available, the response is empty.\n */\nexport function getStorageUsage(payload: object): RequestOptionsFactory<any> {\n function __getStorageUsage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'GET' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.GetStorageUsage',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath:\n '/v1/google-subscriptions/storage-usage/{googleWorkspacePremiumId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getStorageUsage;\n}\n\n/** Assigns a Google subscription license to a user. */\nexport function assignLicense(payload: object): RequestOptionsFactory<any> {\n function __assignLicense({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.AssignLicense',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/license/assign',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __assignLicense;\n}\n\n/** Revokes a user's Google subscription license. */\nexport function revokeLicense(payload: object): RequestOptionsFactory<any> {\n function __revokeLicense({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.google_subscriptions.v1.google_subscription',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.googlesubscriptions.v1.GoogleSubscriptions.RevokeLicense',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumGooglesubscriptionsV1GoogleSubscriptionsUrl({\n protoPath: '/v1/google-subscriptions/license/revoke',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __revokeLicense;\n}\n","/**\n * A Google subscription is a Google Workspace subscription, such as Business Email, that a Wix account purchased for one of its domains.\n * It holds the number of licensed seats, the subscription's status, and the IDs Google uses for the customer and the subscription.\n */\nexport interface GoogleSubscription {\n /**\n * Google subscription ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the Google subscription is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the Google subscription.\n *\n * Ignored when creating a Google subscription.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Google subscription was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Google subscription was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Number of licensed seats in the subscription. Each seat is 1 user account.\n * @readonly\n * @min 1\n */\n seats?: number;\n /**\n * ID of the Wix premium subscription this Google subscription belongs to.\n * @format GUID\n * @readonly\n */\n subscriptionId?: string;\n /**\n * Domain the subscription is for. For example, `my-domain.com`.\n * @format HOSTNAME\n * @readonly\n */\n domainName?: string;\n /**\n * Subscription status.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * IDs Google uses for this subscription.\n * @readonly\n */\n googleData?: GoogleData;\n}\n\nexport enum Status {\n /** Unknown subscription status. */\n UNKNOWN = 'UNKNOWN',\n /** Subscription is live and its mailboxes work. */\n ACTIVE = 'ACTIVE',\n /** Subscription ended and wasn't renewed. */\n EXPIRED = 'EXPIRED',\n /** Subscription was purchased, but its administrator account isn't set up yet. */\n INCOMPLETE_SETUP = 'INCOMPLETE_SETUP',\n /** Google suspended the subscription until the customer accepts Google's terms of service. */\n SUSPENDED_TOS = 'SUSPENDED_TOS',\n /** Wix suspended the subscription, for example after a failed payment. */\n SUSPENDED_BY_WIX = 'SUSPENDED_BY_WIX',\n /** Subscription was transferred to another Google reseller. */\n TRANSFERRED_OUT = 'TRANSFERRED_OUT',\n /** Purchase is in progress and the subscription isn't created at Google yet. */\n PENDING = 'PENDING',\n /** Purchase couldn't be delivered, so no subscription was created at Google. */\n NOT_DELIVERED = 'NOT_DELIVERED',\n /** Purchase is waiting for the customer's Google Workspace to become available, for example until the customer accepts Google's terms of service. */\n PENDING_GWS = 'PENDING_GWS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN'\n | 'ACTIVE'\n | 'EXPIRED'\n | 'INCOMPLETE_SETUP'\n | 'SUSPENDED_TOS'\n | 'SUSPENDED_BY_WIX'\n | 'TRANSFERRED_OUT'\n | 'PENDING'\n | 'NOT_DELIVERED'\n | 'PENDING_GWS';\n\nexport interface GoogleData {\n /**\n * Google customer ID of the Google Workspace that owns the subscription.\n * @readonly\n * @maxLength 16\n */\n googleCustomerId?: string | null;\n /**\n * Subscription ID at Google.\n * @readonly\n * @maxLength 16\n */\n googleSubscriptionId?: string | null;\n /**\n * ID of the Google product SKU the subscription is for, such as a specific Google Workspace edition.\n * @readonly\n * @maxLength 16\n */\n googleSkuId?: string;\n}\n\nexport interface IsEligibleRequest {\n /**\n * Domain to check. For example, `my-domain.com`.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * ID of the product to check eligibility for.\n *\n * Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.\n * @format GUID\n */\n productTypeId?: string;\n /** Not-eligible reasons to ignore when calculating the result. */\n postEligibility?: PostEligibilityActions;\n /**\n * Premium subscription ID of an existing Business Email subscription, when checking eligibility to upgrade it.\n * @format GUID\n */\n existingSubscriptionPremiumId?: string | null;\n}\n\nexport interface PostEligibilityActions {\n /**\n * Not-eligible reasons to ignore.\n *\n * A reason is ignored only when it exactly matches a reason the check returns, including its fields, such as `domainName`.\n * @maxSize 10\n * @minSize 1\n */\n ignoreReasons?: NotEligibleReason[];\n}\n\nexport interface NotEligibleReason extends NotEligibleReasonReasonOneOf {\n /** Requested number of seats isn't valid. Reserved, and currently not returned. */\n invalidRequestedSeats?: InvalidRequestedSeats;\n /** The account has no active Business Email subscription, which the product requires. */\n noGwsFound?: NoGWSFound;\n /** The account's current Google Workspace product isn't compatible with the product. Reserved, and currently not returned. */\n incompatibleGws?: IncompatibleWithCurrentGWSProduct;\n /** The customer must accept Google's terms of service first. Reserved, and currently not returned. */\n acceptTosRequired?: AcceptTosRequired;\n /** Another Google customer already uses the domain. Reserved, and currently not returned. */\n alreadyTaken?: GoogleCustomerAlreadyTakenOnGoogle;\n /** The domain already has a Business Email package. */\n emailPackageAlreadyExists?: EmailPackageAlreadyExists;\n /** The caller's account doesn't own the domain. */\n domainNotOwnedByUser?: DomainNotOwnedByUser;\n /** Couldn't find the domain. */\n domainNotFound?: DomainNotFound;\n /** No products are available to purchase for the domain. Reserved, and currently not returned. */\n noPurchasableSkus?: NoPurchasableSkus;\n /** The account already has the add-on. */\n addonAlreadyExists?: AddonAlreadyExists;\n /** The product isn't available in the customer's country. */\n notEligibleCountry?: NotEligibleCountry;\n /** Google can't set up a Google Workspace for the domain, for example because a Google customer already exists for it. */\n notEligibleCloudIdentityType?: NotEligibleCloudIdentityType;\n /** The domain name isn't valid. */\n invalidDomainName?: InvalidDomainName;\n /** The domain already has a Google Workspace subscription. Reserved, and currently not returned. */\n workspaceSubscriptionAlreadyExists?: WorkspaceSubscriptionAlreadyExists;\n /** Google Workspace can't be set up on the domain, for example because it's a subdomain or contains a Google trademark. */\n restrictedDomainName?: RestrictedDomainName;\n /** Another check failed. `reason` describes the check. */\n validationFailure?: GoogleWorkspaceValidationFailure;\n /** Requested number of seats isn't compatible with the current subscription. Reserved, and currently not returned. */\n incompatibleSeats?: IncompatibleGWSSeats;\n}\n\n/** @oneof */\nexport interface NotEligibleReasonReasonOneOf {\n /** Requested number of seats isn't valid. Reserved, and currently not returned. */\n invalidRequestedSeats?: InvalidRequestedSeats;\n /** The account has no active Business Email subscription, which the product requires. */\n noGwsFound?: NoGWSFound;\n /** The account's current Google Workspace product isn't compatible with the product. Reserved, and currently not returned. */\n incompatibleGws?: IncompatibleWithCurrentGWSProduct;\n /** The customer must accept Google's terms of service first. Reserved, and currently not returned. */\n acceptTosRequired?: AcceptTosRequired;\n /** Another Google customer already uses the domain. Reserved, and currently not returned. */\n alreadyTaken?: GoogleCustomerAlreadyTakenOnGoogle;\n /** The domain already has a Business Email package. */\n emailPackageAlreadyExists?: EmailPackageAlreadyExists;\n /** The caller's account doesn't own the domain. */\n domainNotOwnedByUser?: DomainNotOwnedByUser;\n /** Couldn't find the domain. */\n domainNotFound?: DomainNotFound;\n /** No products are available to purchase for the domain. Reserved, and currently not returned. */\n noPurchasableSkus?: NoPurchasableSkus;\n /** The account already has the add-on. */\n addonAlreadyExists?: AddonAlreadyExists;\n /** The product isn't available in the customer's country. */\n notEligibleCountry?: NotEligibleCountry;\n /** Google can't set up a Google Workspace for the domain, for example because a Google customer already exists for it. */\n notEligibleCloudIdentityType?: NotEligibleCloudIdentityType;\n /** The domain name isn't valid. */\n invalidDomainName?: InvalidDomainName;\n /** The domain already has a Google Workspace subscription. Reserved, and currently not returned. */\n workspaceSubscriptionAlreadyExists?: WorkspaceSubscriptionAlreadyExists;\n /** Google Workspace can't be set up on the domain, for example because it's a subdomain or contains a Google trademark. */\n restrictedDomainName?: RestrictedDomainName;\n /** Another check failed. `reason` describes the check. */\n validationFailure?: GoogleWorkspaceValidationFailure;\n /** Requested number of seats isn't compatible with the current subscription. Reserved, and currently not returned. */\n incompatibleSeats?: IncompatibleGWSSeats;\n}\n\nexport interface InvalidRequestedSeats {\n /** Number of seats that can be purchased. */\n availableSeats?: number;\n /** Number of seats requested. */\n requestedSeat?: number;\n}\n\nexport interface NoGWSFound {}\n\nexport interface IncompatibleWithCurrentGWSProduct {\n /**\n * Google SKU ID of the account's current Google Workspace product.\n * @maxLength 16\n */\n gwsSkuId?: string;\n}\n\nexport interface AcceptTosRequired {\n /**\n * ID of the Google Workspace subscription whose terms of service must be accepted.\n * @format GUID\n */\n acceptTosGwsId?: string;\n}\n\nexport interface GoogleCustomerAlreadyTakenOnGoogle {\n /**\n * Domain another Google customer already uses.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface EmailPackageAlreadyExists {\n /**\n * Domain that already has a Business Email package.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * ID of the Wix account that owns the existing package.\n * @format GUID\n */\n targetAccountId?: string;\n}\n\nexport interface DomainNotOwnedByUser {\n /**\n * Domain the caller's account doesn't own.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface DomainNotFound {\n /**\n * Domain that couldn't be found.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface NoPurchasableSkus {\n /**\n * Domain with no products available to purchase.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface AddonAlreadyExists {\n /**\n * Domain whose Google Workspace already has the add-on.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * Status of the existing add-on subscription. For example, `ACTIVE`.\n * @maxLength 16\n */\n status?: string;\n /**\n * Product type ID of the existing add-on.\n * @format GUID\n */\n productTypeId?: string;\n}\n\nexport interface NotEligibleCountry {\n /**\n * Domain that was checked.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * 2-letter code, in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format, of the country where the product isn't available.\n * @minLength 2\n * @maxLength 2\n */\n countryCode?: string;\n}\n\nexport interface NotEligibleCloudIdentityType {\n /**\n * Domain that was checked.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * Why Google can't set up a Google Workspace for the domain.\n * @minLength 1\n * @maxLength 50\n */\n reason?: string;\n}\n\nexport interface InvalidDomainName {\n /**\n * Domain name that isn't valid.\n * @maxLength 200\n */\n domainName?: string;\n}\n\nexport interface WorkspaceSubscriptionAlreadyExists {\n /**\n * Domain that already has a Google Workspace subscription.\n * @format HOSTNAME\n */\n domainName?: string;\n /**\n * Status of the existing subscription. For example, `ACTIVE`.\n * @maxLength 16\n */\n status?: string;\n /**\n * Product type ID of the existing subscription.\n * @format GUID\n */\n productTypeId?: string;\n}\n\nexport interface RestrictedDomainName {\n /**\n * Restricted domain.\n * @maxLength 200\n */\n domainName?: string;\n /** Why the domain is restricted. */\n reason?: RestrictedDomainReasonWithLiterals;\n}\n\n/** Why a well-formed domain cannot host Google Workspace */\nexport enum RestrictedDomainReason {\n /** Unknown restriction reason. */\n RESTRICTED_DOMAIN_REASON_UNSPECIFIED = 'RESTRICTED_DOMAIN_REASON_UNSPECIFIED',\n /** Not a registrable domain, e.g. app.example.com */\n SUBDOMAIN = 'SUBDOMAIN',\n /** Contains a Google trademark, e.g. gmail / youtube */\n BRAND = 'BRAND',\n /** Top-level domain Google does not serve */\n TLD = 'TLD',\n}\n\n/** @enumType */\nexport type RestrictedDomainReasonWithLiterals =\n | RestrictedDomainReason\n | 'RESTRICTED_DOMAIN_REASON_UNSPECIFIED'\n | 'SUBDOMAIN'\n | 'BRAND'\n | 'TLD';\n\nexport interface GoogleWorkspaceValidationFailure {\n /**\n * Description of the check that failed.\n * @minLength 1\n * @maxLength 50\n */\n reason?: string;\n}\n\nexport interface IncompatibleGWSSeats {\n /** Number of seats in the current subscription. */\n seats?: number;\n}\n\nexport interface IsEligibleResponse {\n /**\n * Domain that was checked.\n * @format HOSTNAME\n */\n domainName?: string;\n /** Overall eligibility result. */\n result?: EligibilityResult;\n /**\n * Eligibility result for each product family.\n *\n * Returned only for the Google Voice add-on.\n */\n results?: EligibilityResult[];\n}\n\nexport interface EligibilityResult extends EligibilityResultResultOneOf {\n /** Returned when the account can purchase the product. */\n eligible?: Eligible;\n /** Returned when the account can't purchase the product. */\n notEligible?: NotEligible;\n /**\n * ID of the product family this result is for.\n *\n * Returned only in `results`.\n */\n productFamilyId?: string | null;\n}\n\n/** @oneof */\nexport interface EligibilityResultResultOneOf {\n /** Returned when the account can purchase the product. */\n eligible?: Eligible;\n /** Returned when the account can't purchase the product. */\n notEligible?: NotEligible;\n}\n\nexport interface Eligible {\n /**\n * Maximum number of seats the account can purchase.\n *\n * For a new Business Email purchase, `20`. For an upgrade, the subscription's current number of seats plus 20. For a repurchase or transfer, the previous subscription's number of seats.\n */\n seats?: number;\n /**\n * Whether the purchase includes a free trial.\n *\n * Currently always `false`.\n */\n freeTrial?: boolean;\n /** Whether, and how, the purchase renews a previous subscription. */\n renewalType?: RenewalTypeWithLiterals;\n}\n\n/** Whether, and how, a purchase renews a previous subscription. */\nexport enum RenewalType {\n /** Not a renewal. Returned for a new purchase. */\n RENEWAL_TYPE_UNSPECIFIED = 'RENEWAL_TYPE_UNSPECIFIED',\n /** New subscription purchase. Reserved, and currently not returned. A new purchase returns `RENEWAL_TYPE_UNSPECIFIED`. */\n NEW_PURCHASE = 'NEW_PURCHASE',\n /** Repurchase of a subscription that Wix suspended. */\n REPURCHASE = 'REPURCHASE',\n /** Transfer back to Wix of a subscription that was transferred out to another reseller. */\n TRANSFER_IN = 'TRANSFER_IN',\n}\n\n/** @enumType */\nexport type RenewalTypeWithLiterals =\n | RenewalType\n | 'RENEWAL_TYPE_UNSPECIFIED'\n | 'NEW_PURCHASE'\n | 'REPURCHASE'\n | 'TRANSFER_IN';\n\nexport interface NotEligible {\n /**\n * Reasons the account can't purchase the product.\n * @maxSize 10\n * @minSize 1\n */\n reasons?: NotEligibleReason[];\n}\n\nexport interface ResolveEmailActionRequest {\n /**\n * Domain to evaluate. Must be a domain the caller's account owns.\n * @format HOSTNAME\n */\n domainName?: string;\n}\n\nexport interface ResolveEmailActionResponse {\n /** Proposed recovery action. */\n action?: RecoveryActionWithLiterals;\n /** Why the action was proposed. */\n reason?: RecoveryReasonWithLiterals;\n}\n\n/** The action the resolver proposes for a mailbox target. */\nexport enum RecoveryAction {\n /** Unknown recovery action. */\n RECOVERY_ACTION_UNSPECIFIED = 'RECOVERY_ACTION_UNSPECIFIED',\n /** An unresolved paid purchase already exists; no new purchase. */\n RECOVERY_ACTION_PROCESSING = 'RECOVERY_ACTION_PROCESSING',\n /** Required evidence could not be read; offer a recheck rather than claim absence. */\n RECOVERY_ACTION_RETRY = 'RECOVERY_ACTION_RETRY',\n /** No safe action; existing shared unavailable/support experience. */\n RECOVERY_ACTION_UNAVAILABLE = 'RECOVERY_ACTION_UNAVAILABLE',\n /** Customer must accept Google Workspace terms. */\n RECOVERY_ACTION_ACCEPT_GOOGLE_TOS = 'RECOVERY_ACTION_ACCEPT_GOOGLE_TOS',\n /** Subscription is still in Wix's channel and restorable. */\n RECOVERY_ACTION_RENEW = 'RECOVERY_ACTION_RENEW',\n /** Customer must authorize Wix before a transfer can be attempted. */\n RECOVERY_ACTION_AUTHORIZE_WIX = 'RECOVERY_ACTION_AUTHORIZE_WIX',\n /** A supported transfer is available. */\n RECOVERY_ACTION_TRANSFER_IN = 'RECOVERY_ACTION_TRANSFER_IN',\n /** Healthy service; normal Business Email management. */\n RECOVERY_ACTION_MANAGE = 'RECOVERY_ACTION_MANAGE',\n /** Confirmed absence; hand off to unchanged initial purchase. */\n RECOVERY_ACTION_INITIAL_PURCHASE = 'RECOVERY_ACTION_INITIAL_PURCHASE',\n}\n\n/** @enumType */\nexport type RecoveryActionWithLiterals =\n | RecoveryAction\n | 'RECOVERY_ACTION_UNSPECIFIED'\n | 'RECOVERY_ACTION_PROCESSING'\n | 'RECOVERY_ACTION_RETRY'\n | 'RECOVERY_ACTION_UNAVAILABLE'\n | 'RECOVERY_ACTION_ACCEPT_GOOGLE_TOS'\n | 'RECOVERY_ACTION_RENEW'\n | 'RECOVERY_ACTION_AUTHORIZE_WIX'\n | 'RECOVERY_ACTION_TRANSFER_IN'\n | 'RECOVERY_ACTION_MANAGE'\n | 'RECOVERY_ACTION_INITIAL_PURCHASE';\n\n/** Why the resolver selected its action. */\nexport enum RecoveryReason {\n /** Unknown recovery reason. */\n RECOVERY_REASON_UNSPECIFIED = 'RECOVERY_REASON_UNSPECIFIED',\n /** A recovery for the domain is already in progress. */\n RECOVERY_REASON_RECOVERY_IN_PROGRESS = 'RECOVERY_REASON_RECOVERY_IN_PROGRESS',\n /** An earlier recovery for the domain needs attention before it can continue. */\n RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION = 'RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION',\n /** An earlier recovery for the domain is waiting for the customer to accept Google's terms of service. */\n RECOVERY_REASON_RECOVERY_TOS_REQUIRED = 'RECOVERY_REASON_RECOVERY_TOS_REQUIRED',\n /** Data needed for the decision couldn't be read. */\n RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE = 'RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE',\n /** The domain's Google identity needs a manual review. */\n RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW = 'RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW',\n /** The customer must accept Google's terms of service. */\n RECOVERY_REASON_GOOGLE_TOS_REQUIRED = 'RECOVERY_REASON_GOOGLE_TOS_REQUIRED',\n /** The subscription is still with Wix and can be renewed. */\n RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE = 'RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE',\n /** The customer must authorize Wix before the subscription can be transferred. */\n RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED = 'RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED',\n /** The subscription can be transferred to Wix. */\n RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE = 'RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE',\n /** The subscription is working normally. */\n RECOVERY_REASON_SUBSCRIPTION_HEALTHY = 'RECOVERY_REASON_SUBSCRIPTION_HEALTHY',\n /** Google has no customer for the domain. */\n RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED = 'RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED',\n /** Google has an organization for the domain, but it has no subscription. */\n RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION = 'RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION',\n /** The domain's state has no supported recovery. */\n RECOVERY_REASON_UNSUPPORTED_RECOVERY = 'RECOVERY_REASON_UNSUPPORTED_RECOVERY',\n /** The domain's release from its previous Google setup isn't resolved. */\n RECOVERY_REASON_RELEASE_UNRESOLVED = 'RECOVERY_REASON_RELEASE_UNRESOLVED',\n /** The available data doesn't support a decision. */\n RECOVERY_REASON_INCONCLUSIVE = 'RECOVERY_REASON_INCONCLUSIVE',\n /** The customer hasn't finished setting up Business Email: Google's terms of service aren't accepted and no seat is licensed yet. */\n RECOVERY_REASON_SETUP_INCOMPLETE = 'RECOVERY_REASON_SETUP_INCOMPLETE',\n}\n\n/** @enumType */\nexport type RecoveryReasonWithLiterals =\n | RecoveryReason\n | 'RECOVERY_REASON_UNSPECIFIED'\n | 'RECOVERY_REASON_RECOVERY_IN_PROGRESS'\n | 'RECOVERY_REASON_RECOVERY_NEEDS_ATTENTION'\n | 'RECOVERY_REASON_RECOVERY_TOS_REQUIRED'\n | 'RECOVERY_REASON_REQUIRED_EVIDENCE_UNAVAILABLE'\n | 'RECOVERY_REASON_IDENTITY_REQUIRES_REVIEW'\n | 'RECOVERY_REASON_GOOGLE_TOS_REQUIRED'\n | 'RECOVERY_REASON_RETAINED_SUBSCRIPTION_RENEWABLE'\n | 'RECOVERY_REASON_TRANSFER_AUTHORIZATION_REQUIRED'\n | 'RECOVERY_REASON_SUPPORTED_TRANSFER_AVAILABLE'\n | 'RECOVERY_REASON_SUBSCRIPTION_HEALTHY'\n | 'RECOVERY_REASON_GOOGLE_CUSTOMER_ABSENCE_CONFIRMED'\n | 'RECOVERY_REASON_EXISTING_ORGANIZATION_WITHOUT_SUBSCRIPTION'\n | 'RECOVERY_REASON_UNSUPPORTED_RECOVERY'\n | 'RECOVERY_REASON_RELEASE_UNRESOLVED'\n | 'RECOVERY_REASON_INCONCLUSIVE'\n | 'RECOVERY_REASON_SETUP_INCOMPLETE';\n\nexport interface ObserveEmailActionsRequest {\n /**\n * Domains to evaluate. For example, `my-domain.com`.\n *\n * Duplicates are ignored, regardless of case. Domains the caller's account doesn't own are skipped.\n *\n * Up to 20 distinct domains are evaluated per request. Any others are counted in `skipped`.\n * @maxSize 50\n * @minSize 1\n * @format HOSTNAME\n */\n domainNames?: string[];\n}\n\nexport interface ObserveEmailActionsResponse {\n /** Number of distinct domains that were evaluated. Includes domains where some of the data needed for the evaluation couldn't be read. */\n observed?: number;\n /** Number of requested domains that weren't evaluated. Includes duplicates, domains the caller's account doesn't own, domains beyond the per-request limit, and domains whose evaluation failed. */\n skipped?: number;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface RawHttpRequest {\n body?: Uint8Array;\n pathParams?: PathParametersEntry[];\n queryParams?: QueryParametersEntry[];\n headers?: HeadersEntry[];\n method?: string;\n rawPath?: string;\n rawQuery?: string;\n}\n\nexport interface PathParametersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface QueryParametersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface CreateGoogleSubscriptionRequest {\n /** Google subscription to create. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface CreateGoogleSubscriptionResponse {\n /** Created Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface GetGoogleSubscriptionRequest {\n /**\n * ID of the Google subscription to retrieve.\n * @format GUID\n */\n googleSubscriptionId?: string;\n}\n\nexport interface GetGoogleSubscriptionResponse {\n /** Retrieved Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface UpdateGoogleSubscriptionRequest {\n /** Google subscription to update. May be partial. */\n googleSubscription?: GoogleSubscription;\n /**\n * Set of fields to update.\n *\n * Fields that aren't included in `fieldMask.paths` are ignored.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateGoogleSubscriptionResponse {\n /** Updated Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface DeleteGoogleSubscriptionRequest {\n /**\n * ID of the Google subscription to delete.\n * @format GUID\n */\n googleSubscriptionId?: string;\n}\n\nexport interface DeleteGoogleSubscriptionResponse {}\n\nexport interface QueryGoogleSubscriptionsRequest {\n /** Query options. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 4\n */\n sort?: Sorting[];\n /**\n * Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /**\n * Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxLength 200\n * @maxSize 20\n */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 50\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryGoogleSubscriptionsResponse {\n /** Retrieved Google subscriptions. */\n googleSubscriptions?: GoogleSubscription[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor pointing to next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n id?: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace?: string;\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData?: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated Google subscription. */\n googleSubscription?: GoogleSubscription;\n}\n\nexport interface RetrieveUsersByDomainRequest {\n /**\n * Domain whose Google Workspace users to retrieve. Must be a domain the caller's account owns.\n * @format HOSTNAME\n */\n domainName: string;\n}\n\nexport interface RetrieveUsersByDomainResponse {\n /**\n * Retrieved users.\n *\n * Limited to 300 users.\n */\n users?: User[];\n}\n\n/**\n * A Google user is a user account in a Google Workspace, such as a Business Email mailbox.\n * It holds the user's primary email address, name, administrator role, and recovery details.\n */\nexport interface User {\n /**\n * Google user ID.\n * @minLength 1\n * @maxLength 36\n */\n id?: string;\n /**\n * User's primary email address. For example, `jane@my-domain.com`.\n * @format EMAIL\n */\n primaryEmail?: string;\n /** User's name. */\n name?: UserName;\n /** Whether the user is a super administrator of the Google Workspace. */\n admin?: boolean;\n /** Whether the user is a delegated administrator of the Google Workspace, with a subset of administrator privileges. */\n delegatedAdmin?: boolean;\n /**\n * Google customer ID of the Google Workspace the user belongs to.\n * @minLength 1\n * @maxLength 36\n */\n customerId?: string;\n /**\n * User's Google Voice phone number.\n *\n * Returned only when the user has a Google Voice number.\n * @maxLength 20\n */\n googleVoiceNumber?: string | null;\n /**\n * Product type IDs of the products licensed to the user, such as Business Email or the Google Voice add-on.\n *\n * Not returned by [Retrieve Users by Domain](https://dev.wix.com/docs/api-reference/account-level/premium/business-email/google-subscription-v1/retrieve-users-by-domain).\n * @format GUID\n * @maxSize 20\n */\n licensedProductTypeIds?: string[];\n /**\n * Recovery email address Google uses to verify the user when they can't sign in.\n * @maxLength 255\n */\n recoveryEmail?: string | null;\n /**\n * Recovery phone number Google uses to verify the user when they can't sign in, in [E.164](https://en.wikipedia.org/wiki/E.164) format. For example, `+12025550123`.\n * @maxLength 20\n */\n recoveryPhone?: string | null;\n}\n\nexport interface UserName {\n /**\n * User's given name (first name).\n * @maxLength 60\n */\n givenName?: string | null;\n /**\n * User's family name (last name).\n * @maxLength 60\n */\n familyName?: string | null;\n /**\n * User's full name. Calculated from `givenName` and `familyName`.\n * @maxLength 120\n * @readonly\n */\n fullName?: string | null;\n}\n\nexport interface GetStorageUsageRequest {\n /**\n * Premium subscription ID of the Google Workspace whose storage usage to retrieve.\n * @format GUID\n */\n googleWorkspacePremiumId: string;\n}\n\nexport interface GetStorageUsageResponse {\n /**\n * Day of the usage report the numbers describe, in `YYYY-MM-DD` format. Google publishes storage usage once a day, using the UTC-8 time zone, so the numbers trail live usage.\n *\n * Returned only when usage data is available.\n * @maxLength 10\n */\n asOfDate?: string | null;\n /** Storage used across the whole Google Workspace, in MB. Includes all mailboxes, Google Drive, and Google Photos. */\n usedMb?: string | null;\n /** Pooled storage quota, in MB, shared by all users. Equals the edition's storage allowance per seat multiplied by the number of licensed seats. */\n quotaMb?: string | null;\n}\n\nexport interface AssignLicenseRequest {\n /**\n * Premium subscription ID of the Google subscription.\n * @format GUID\n */\n premiumId?: string;\n /**\n * Primary email address of the user to assign the license to.\n * @format EMAIL\n */\n userEmail?: string;\n}\n\nexport interface AssignLicenseResponse {}\n\nexport interface RevokeLicenseRequest {\n /**\n * Premium subscription ID of the Google subscription.\n * @format GUID\n */\n premiumId?: string;\n /**\n * Primary email address of the user whose license to revoke.\n * @format EMAIL\n */\n userEmail?: string;\n}\n\nexport interface RevokeLicenseResponse {}\n\n/** @docsIgnore */\nexport type GetStorageUsageApplicationErrors =\n | {\n code?: 'NOT_FOUND_GWS_FOR_STORAGE_USAGE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PERMISSION_DENIED_FOR_STORAGE_USAGE';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.http.js';\nimport * as ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.types.js';\nimport * as ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function isEligible(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.IsEligibleRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.IsEligibleRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.IsEligibleResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.IsEligibleResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.isEligible(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/google-subscriptions/is-eligible',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function observeEmailActions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.ObserveEmailActionsRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.ObserveEmailActionsRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.ObserveEmailActionsResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.ObserveEmailActionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.observeEmailActions(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/google-subscriptions/observe-email-actions',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function receiveCloudChannelPush(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.RawHttpRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.RawHttpRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.RawHttpResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.receiveCloudChannelPush(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/google/cloud-channel-webhook',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryGoogleSubscriptions(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.QueryGoogleSubscriptionsRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.QueryGoogleSubscriptionsRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.QueryGoogleSubscriptionsResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.QueryGoogleSubscriptionsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.queryGoogleSubscriptions(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/google-subscriptions/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function retrieveUsersByDomain(): __PublicMethodMetaInfo<\n 'GET',\n { domainName: string },\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.RetrieveUsersByDomainRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.RetrieveUsersByDomainRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.RetrieveUsersByDomainResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.RetrieveUsersByDomainResponse\n> {\n const payload = { domainName: ':domainName' } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.retrieveUsersByDomain(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/google-subscriptions/retrieve-users/{domainName}',\n pathParams: { domainName: 'domainName' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getStorageUsage(): __PublicMethodMetaInfo<\n 'GET',\n { googleWorkspacePremiumId: string },\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.GetStorageUsageRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.GetStorageUsageRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.GetStorageUsageResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.GetStorageUsageResponse\n> {\n const payload = {\n googleWorkspacePremiumId: ':googleWorkspacePremiumId',\n } as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.getStorageUsage(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/google-subscriptions/storage-usage/{googleWorkspacePremiumId}',\n pathParams: { googleWorkspacePremiumId: 'googleWorkspacePremiumId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function assignLicense(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.AssignLicenseRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.AssignLicenseRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.AssignLicenseResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.AssignLicenseResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.assignLicense(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/google-subscriptions/license/assign',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function revokeLicense(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.RevokeLicenseRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.RevokeLicenseRequest,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionUniversalTypes.RevokeLicenseResponse,\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscriptionTypes.RevokeLicenseResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPremiumGoogleSubscriptionsV1GoogleSubscription.revokeLicense(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/google-subscriptions/license/revoke',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n GoogleSubscription as GoogleSubscriptionOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n GoogleData as GoogleDataOriginal,\n IsEligibleRequest as IsEligibleRequestOriginal,\n PostEligibilityActions as PostEligibilityActionsOriginal,\n NotEligibleReason as NotEligibleReasonOriginal,\n NotEligibleReasonReasonOneOf as NotEligibleReasonReasonOneOfOriginal,\n InvalidRequestedSeats as InvalidRequestedSeatsOriginal,\n NoGWSFound as NoGWSFoundOriginal,\n IncompatibleWithCurrentGWSProduct as IncompatibleWithCurrentGWSProductOriginal,\n AcceptTosRequired as AcceptTosRequiredOriginal,\n GoogleCustomerAlreadyTakenOnGoogle as GoogleCustomerAlreadyTakenOnGoogleOriginal,\n EmailPackageAlreadyExists as EmailPackageAlreadyExistsOriginal,\n DomainNotOwnedByUser as DomainNotOwnedByUserOriginal,\n DomainNotFound as DomainNotFoundOriginal,\n NoPurchasableSkus as NoPurchasableSkusOriginal,\n AddonAlreadyExists as AddonAlreadyExistsOriginal,\n NotEligibleCountry as NotEligibleCountryOriginal,\n NotEligibleCloudIdentityType as NotEligibleCloudIdentityTypeOriginal,\n InvalidDomainName as InvalidDomainNameOriginal,\n WorkspaceSubscriptionAlreadyExists as WorkspaceSubscriptionAlreadyExistsOriginal,\n RestrictedDomainName as RestrictedDomainNameOriginal,\n RestrictedDomainReason as RestrictedDomainReasonOriginal,\n RestrictedDomainReasonWithLiterals as RestrictedDomainReasonWithLiteralsOriginal,\n GoogleWorkspaceValidationFailure as GoogleWorkspaceValidationFailureOriginal,\n IncompatibleGWSSeats as IncompatibleGWSSeatsOriginal,\n IsEligibleResponse as IsEligibleResponseOriginal,\n EligibilityResult as EligibilityResultOriginal,\n EligibilityResultResultOneOf as EligibilityResultResultOneOfOriginal,\n Eligible as EligibleOriginal,\n RenewalType as RenewalTypeOriginal,\n RenewalTypeWithLiterals as RenewalTypeWithLiteralsOriginal,\n NotEligible as NotEligibleOriginal,\n ResolveEmailActionRequest as ResolveEmailActionRequestOriginal,\n ResolveEmailActionResponse as ResolveEmailActionResponseOriginal,\n RecoveryAction as RecoveryActionOriginal,\n RecoveryActionWithLiterals as RecoveryActionWithLiteralsOriginal,\n RecoveryReason as RecoveryReasonOriginal,\n RecoveryReasonWithLiterals as RecoveryReasonWithLiteralsOriginal,\n ObserveEmailActionsRequest as ObserveEmailActionsRequestOriginal,\n ObserveEmailActionsResponse as ObserveEmailActionsResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n RawHttpRequest as RawHttpRequestOriginal,\n PathParametersEntry as PathParametersEntryOriginal,\n QueryParametersEntry as QueryParametersEntryOriginal,\n HeadersEntry as HeadersEntryOriginal,\n RawHttpResponse as RawHttpResponseOriginal,\n CreateGoogleSubscriptionRequest as CreateGoogleSubscriptionRequestOriginal,\n CreateGoogleSubscriptionResponse as CreateGoogleSubscriptionResponseOriginal,\n GetGoogleSubscriptionRequest as GetGoogleSubscriptionRequestOriginal,\n GetGoogleSubscriptionResponse as GetGoogleSubscriptionResponseOriginal,\n UpdateGoogleSubscriptionRequest as UpdateGoogleSubscriptionRequestOriginal,\n UpdateGoogleSubscriptionResponse as UpdateGoogleSubscriptionResponseOriginal,\n DeleteGoogleSubscriptionRequest as DeleteGoogleSubscriptionRequestOriginal,\n DeleteGoogleSubscriptionResponse as DeleteGoogleSubscriptionResponseOriginal,\n QueryGoogleSubscriptionsRequest as QueryGoogleSubscriptionsRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryGoogleSubscriptionsResponse as QueryGoogleSubscriptionsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal,\n UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal,\n RetrieveUsersByDomainRequest as RetrieveUsersByDomainRequestOriginal,\n RetrieveUsersByDomainResponse as RetrieveUsersByDomainResponseOriginal,\n User as UserOriginal,\n UserName as UserNameOriginal,\n GetStorageUsageRequest as GetStorageUsageRequestOriginal,\n GetStorageUsageResponse as GetStorageUsageResponseOriginal,\n AssignLicenseRequest as AssignLicenseRequestOriginal,\n AssignLicenseResponse as AssignLicenseResponseOriginal,\n RevokeLicenseRequest as RevokeLicenseRequestOriginal,\n RevokeLicenseResponse as RevokeLicenseResponseOriginal,\n GetStorageUsageApplicationErrors as GetStorageUsageApplicationErrorsOriginal,\n} from './premium-google-subscriptions-v1-google-subscription-google-subscriptions.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,IAAM,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC;AAC3C,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,kCAAkC;AAAA,EAC1C,EAAE,MAAM,kCAAkC;AAC5C;AAEA,SAAS,6DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,SAAS,kEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IAC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AAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,0BAA0B,2BAA2B;AAAA,IACnE,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwD;AAAA,IAC1D;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACwD;AAAA,IAC1D;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Status","RestrictedDomainReason","RenewalType","RecoveryAction","RecoveryReason","WebhookIdentityType","SortOrder","isEligible","observeEmailActions","receiveCloudChannelPush","queryGoogleSubscriptions","retrieveUsersByDomain","getStorageUsage","assignLicense","revokeLicense"]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { IsEligibleOptions, IsEligibleResponse, ObserveEmailActionsOptions, ObserveEmailActionsResponse, ReceiveCloudChannelPushOptions, RawHttpResponse, RetrieveUsersByDomainResponse, GetStorageUsageResponse, GetStorageUsageApplicationErrors, AssignLicenseOptions, RevokeLicenseOptions, GoogleSubscriptionsQueryBuilder, GoogleSubscriptionQuery, typedQueryGoogleSubscriptions } from './index.typings.js';
|
|
3
|
+
export { AcceptTosRequired, AccountInfo, ActionEvent, AddonAlreadyExists, AssignLicenseRequest, AssignLicenseResponse, CommonQueryWithEntityContext, CreateGoogleSubscriptionRequest, CreateGoogleSubscriptionResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteGoogleSubscriptionRequest, DeleteGoogleSubscriptionResponse, DomainEvent, DomainEventBodyOneOf, DomainNotFound, DomainNotOwnedByUser, EligibilityResult, EligibilityResultResultOneOf, Eligible, EmailPackageAlreadyExists, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetGoogleSubscriptionRequest, GetGoogleSubscriptionResponse, GetStorageUsageRequest, GoogleCustomerAlreadyTakenOnGoogle, GoogleData, GoogleSubscription, GoogleSubscriptionQuerySpec, GoogleSubscriptionsQueryResult, GoogleWorkspaceValidationFailure, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, IncompatibleGWSSeats, IncompatibleWithCurrentGWSProduct, InvalidDomainName, InvalidRequestedSeats, IsEligibleRequest, MessageEnvelope, NoGWSFound, NoPurchasableSkus, NotEligible, NotEligibleCloudIdentityType, NotEligibleCountry, NotEligibleReason, NotEligibleReasonReasonOneOf, ObserveEmailActionsRequest, Paging, PathParametersEntry, PostEligibilityActions, QueryGoogleSubscriptionsRequest, QueryGoogleSubscriptionsResponse, QueryParametersEntry, QueryV2, QueryV2PagingMethodOneOf, RawHttpRequest, RecoveryAction, RecoveryActionWithLiterals, RecoveryReason, RecoveryReasonWithLiterals, RenewalType, RenewalTypeWithLiterals, ResolveEmailActionRequest, ResolveEmailActionResponse, RestoreInfo, RestrictedDomainName, RestrictedDomainReason, RestrictedDomainReasonWithLiterals, RetrieveUsersByDomainRequest, RevokeLicenseRequest, RevokeLicenseResponse, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateGoogleSubscriptionRequest, UpdateGoogleSubscriptionResponse, User, UserName, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WorkspaceSubscriptionAlreadyExists, utils } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function isEligible$1(httpClient: HttpClient): IsEligibleSignature;
|
|
6
|
+
interface IsEligibleSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Checks whether the caller's account can purchase a Google product for a domain.
|
|
9
|
+
*
|
|
10
|
+
* Specify the product in `productTypeId`. Supported products: Business Email, Business Email for Base44, Google Workspace, and the Google Voice add-on.
|
|
11
|
+
*
|
|
12
|
+
* The response contains either an eligible result, with the maximum number of seats the account can purchase, or a not-eligible result that lists the reasons.
|
|
13
|
+
*
|
|
14
|
+
* To check eligibility to upgrade an existing Business Email subscription, specify `existingSubscriptionPremiumId`.
|
|
15
|
+
*/
|
|
16
|
+
(options?: IsEligibleOptions): Promise<NonNullablePaths<IsEligibleResponse, `domainName` | `result.eligible.seats` | `result.eligible.freeTrial` | `result.eligible.renewalType` | `result.notEligible.reasons` | `result.notEligible.reasons.${number}.invalidRequestedSeats.availableSeats` | `result.notEligible.reasons.${number}.invalidRequestedSeats.requestedSeat` | `result.notEligible.reasons.${number}.incompatibleGws.gwsSkuId` | `result.notEligible.reasons.${number}.acceptTosRequired.acceptTosGwsId` | `result.notEligible.reasons.${number}.alreadyTaken.domainName` | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.domainName` | `result.notEligible.reasons.${number}.emailPackageAlreadyExists.targetAccountId` | `result.notEligible.reasons.${number}.domainNotOwnedByUser.domainName` | `result.notEligible.reasons.${number}.domainNotFound.domainName` | `result.notEligible.reasons.${number}.noPurchasableSkus.domainName` | `result.notEligible.reasons.${number}.addonAlreadyExists.domainName` | `result.notEligible.reasons.${number}.addonAlreadyExists.status` | `result.notEligible.reasons.${number}.addonAlreadyExists.productTypeId` | `result.notEligible.reasons.${number}.notEligibleCountry.domainName` | `result.notEligible.reasons.${number}.notEligibleCountry.countryCode` | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.domainName` | `result.notEligible.reasons.${number}.notEligibleCloudIdentityType.reason` | `result.notEligible.reasons.${number}.invalidDomainName.domainName` | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.domainName` | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.status` | `result.notEligible.reasons.${number}.workspaceSubscriptionAlreadyExists.productTypeId` | `result.notEligible.reasons.${number}.restrictedDomainName.domainName` | `result.notEligible.reasons.${number}.restrictedDomainName.reason` | `result.notEligible.reasons.${number}.validationFailure.reason` | `result.notEligible.reasons.${number}.incompatibleSeats.seats` | `results` | `results.${number}.eligible.seats` | `results.${number}.eligible.freeTrial` | `results.${number}.eligible.renewalType`, 5>>;
|
|
17
|
+
}
|
|
18
|
+
declare function observeEmailActions$1(httpClient: HttpClient): ObserveEmailActionsSignature;
|
|
19
|
+
interface ObserveEmailActionsSignature {
|
|
20
|
+
/**
|
|
21
|
+
* Evaluates the email recovery state of the specified domains.
|
|
22
|
+
*
|
|
23
|
+
* Returns only how many domains were evaluated and how many were skipped. Results for individual domains aren't returned, and the method doesn't change any data.
|
|
24
|
+
*
|
|
25
|
+
* Domains the caller's account doesn't own are skipped. Up to 20 distinct domains are evaluated per request, and any others are counted in `skipped`.
|
|
26
|
+
*
|
|
27
|
+
* Evaluation isn't available for every caller. When it isn't available, every requested domain is counted in `skipped`.
|
|
28
|
+
*/
|
|
29
|
+
(options?: ObserveEmailActionsOptions): Promise<NonNullablePaths<ObserveEmailActionsResponse, `observed` | `skipped`, 0>>;
|
|
30
|
+
}
|
|
31
|
+
declare function receiveCloudChannelPush$1(httpClient: HttpClient): ReceiveCloudChannelPushSignature;
|
|
32
|
+
interface ReceiveCloudChannelPushSignature {
|
|
33
|
+
/**
|
|
34
|
+
* Receives Google Cloud Channel push notifications about Business Email customers, and isn't intended to be called by apps.
|
|
35
|
+
*/
|
|
36
|
+
(options?: ReceiveCloudChannelPushOptions): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 2>>;
|
|
37
|
+
}
|
|
38
|
+
declare function retrieveUsersByDomain$1(httpClient: HttpClient): RetrieveUsersByDomainSignature;
|
|
39
|
+
interface RetrieveUsersByDomainSignature {
|
|
40
|
+
/**
|
|
41
|
+
* Retrieves the users of the Google Workspace on a domain owned by the caller's account.
|
|
42
|
+
*
|
|
43
|
+
* Returns all users, including administrators, up to 300 users. Additional users aren't returned, and the method doesn't support paging.
|
|
44
|
+
* @param - Domain whose Google Workspace users to retrieve. Must be a domain the caller's account owns.
|
|
45
|
+
*/
|
|
46
|
+
(domainName: string): Promise<NonNullablePaths<RetrieveUsersByDomainResponse, `users` | `users.${number}._id` | `users.${number}.primaryEmail` | `users.${number}.admin` | `users.${number}.delegatedAdmin` | `users.${number}.customerId`, 2>>;
|
|
47
|
+
}
|
|
48
|
+
declare function getStorageUsage$1(httpClient: HttpClient): GetStorageUsageSignature;
|
|
49
|
+
interface GetStorageUsageSignature {
|
|
50
|
+
/**
|
|
51
|
+
* Retrieves how much storage a Google Workspace has used out of its pooled quota.
|
|
52
|
+
*
|
|
53
|
+
* The numbers come from Google's daily usage report, so they trail live usage by about a day. `asOfDate` is the report day.
|
|
54
|
+
*
|
|
55
|
+
* The response is empty when no usage data is available. For example, when the subscription isn't live, when Google doesn't grant access to the customer's reports, or when the day's report isn't published yet.
|
|
56
|
+
*
|
|
57
|
+
* Storage usage isn't available for every caller. When it isn't available, the response is empty.
|
|
58
|
+
* @param - Premium subscription ID of the Google Workspace whose storage usage to retrieve.
|
|
59
|
+
*/
|
|
60
|
+
(googleWorkspacePremiumId: string): Promise<GetStorageUsageResponse & {
|
|
61
|
+
__applicationErrorsType?: GetStorageUsageApplicationErrors;
|
|
62
|
+
}>;
|
|
63
|
+
}
|
|
64
|
+
/** @internal */
|
|
65
|
+
declare function assignLicense$1(httpClient: HttpClient): AssignLicenseSignature;
|
|
66
|
+
interface AssignLicenseSignature {
|
|
67
|
+
/**
|
|
68
|
+
* Assigns a Google subscription license to a user.
|
|
69
|
+
*/
|
|
70
|
+
(options?: AssignLicenseOptions): Promise<void>;
|
|
71
|
+
}
|
|
72
|
+
/** @internal */
|
|
73
|
+
declare function revokeLicense$1(httpClient: HttpClient): RevokeLicenseSignature;
|
|
74
|
+
interface RevokeLicenseSignature {
|
|
75
|
+
/**
|
|
76
|
+
* Revokes a user's Google subscription license.
|
|
77
|
+
*/
|
|
78
|
+
(options?: RevokeLicenseOptions): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare function customQueryGoogleSubscriptions(httpClient: HttpClient): {
|
|
82
|
+
(): GoogleSubscriptionsQueryBuilder;
|
|
83
|
+
(query: GoogleSubscriptionQuery): ReturnType<typeof typedQueryGoogleSubscriptions>;
|
|
84
|
+
};
|
|
85
|
+
declare const isEligible: MaybeContext<BuildRESTFunction<typeof isEligible$1> & typeof isEligible$1>;
|
|
86
|
+
declare const observeEmailActions: MaybeContext<BuildRESTFunction<typeof observeEmailActions$1> & typeof observeEmailActions$1>;
|
|
87
|
+
declare const receiveCloudChannelPush: MaybeContext<BuildRESTFunction<typeof receiveCloudChannelPush$1> & typeof receiveCloudChannelPush$1>;
|
|
88
|
+
declare const retrieveUsersByDomain: MaybeContext<BuildRESTFunction<typeof retrieveUsersByDomain$1> & typeof retrieveUsersByDomain$1>;
|
|
89
|
+
declare const getStorageUsage: MaybeContext<BuildRESTFunction<typeof getStorageUsage$1> & typeof getStorageUsage$1>;
|
|
90
|
+
/** @internal */
|
|
91
|
+
declare const assignLicense: MaybeContext<BuildRESTFunction<typeof assignLicense$1> & typeof assignLicense$1>;
|
|
92
|
+
/** @internal */
|
|
93
|
+
declare const revokeLicense: MaybeContext<BuildRESTFunction<typeof revokeLicense$1> & typeof revokeLicense$1>;
|
|
94
|
+
declare const queryGoogleSubscriptions: MaybeContext<BuildRESTFunction<typeof customQueryGoogleSubscriptions> & typeof customQueryGoogleSubscriptions>;
|
|
95
|
+
|
|
96
|
+
export { AssignLicenseOptions, GetStorageUsageApplicationErrors, GetStorageUsageResponse, GoogleSubscriptionQuery, GoogleSubscriptionsQueryBuilder, IsEligibleOptions, IsEligibleResponse, ObserveEmailActionsOptions, ObserveEmailActionsResponse, RawHttpResponse, ReceiveCloudChannelPushOptions, RetrieveUsersByDomainResponse, RevokeLicenseOptions, assignLicense, getStorageUsage, isEligible, observeEmailActions, queryGoogleSubscriptions, receiveCloudChannelPush, retrieveUsersByDomain, revokeLicense };
|