@wix/auto_sdk_app-management_apps 1.0.0 → 1.0.1
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 +14 -14
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +161 -77
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +122 -56
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +14 -14
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +161 -77
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +122 -56
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -14
- package/build/internal/cjs/index.typings.d.ts +161 -77
- package/build/internal/cjs/meta.d.ts +122 -56
- package/build/internal/es/index.d.mts +14 -14
- package/build/internal/es/index.typings.d.mts +161 -77
- package/build/internal/es/meta.d.mts +122 -56
- package/package.json +2 -2
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/devcenter-apps-v1-app-apps.http.ts","../../src/devcenter-apps-v1-app-apps.types.ts","../../src/devcenter-apps-v1-app-apps.meta.ts"],"sourcesContent":["export * from './src/devcenter-apps-v1-app-apps.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 = [\n { path: 'app.createdDate' },\n { path: 'app.updatedDate' },\n { path: 'app.appSecrets.previousSecretRevokeDate' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'mask' }];\nconst TRANSFORM_PATHS_2 = [{ path: 'previousSecretRevokeAt' }];\n\nfunction resolveWixDevcenterAppsV1AppsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/apps-service',\n destPath: '/api',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/_api/apps-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/apps/v1/apps',\n destPath: '/v1/apps',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/apps/v1/apps',\n destPath: '/v1/apps',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-management_apps';\n\n/**\n * Creates an app.\n *\n * Don't include `namespace` in the request; use Set Namespace after creating the app.\n * Setting `companionApp` to `true` is restricted to authorized companion-app provisioning services.\n * A supplied `slug` is ignored except for authorized companion-app provisioning callers; use Generate Slug after creation.\n * A supplied `codeIdentifier` must not contain `wix` (case-insensitive).\n */\nexport function createApp(payload: object): RequestOptionsFactory<any> {\n function __createApp({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'POST' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.CreateApp',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createApp;\n}\n\n/**\n * Retrieves an app by ID. App secrets are omitted by default.\n * To include `appSecrets`, add `APP_SECRETS` to `additionalFields`.\n * Retrieving secrets requires authorization to access the app's secrets.\n */\nexport function getApp(payload: object): RequestOptionsFactory<any> {\n function __getApp({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'GET' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.GetApp',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getApp;\n}\n\n/**\n * Updates an app.\n *\n * Each time the app is updated, `revision` increments by 1. The current `revision` must be passed\n * when updating the app. This ensures you're working with the latest app and prevents unintended overwrites.\n * Supports partial updates; specify the app's ID and the fields to change.\n *\n * This method cannot update `appSecrets`, `accountId`, `namespace`, `slug`, `createdBy`,\n * `companionApp`, or `codeIdentifier`. Including any of these fields or their nested fields in the\n * update mask causes the entire request to fail; they are not silently ignored.\n * Use Set Namespace to assign a namespace and Generate Slug to generate a slug. To rotate app\n * secrets, use Create Secondary Secret and Revoke Secret. This method does not support changing\n * the owning account, creator, companion-app designation, or code identifier.\n *\n * Changing `status` requires additional status-change authorization beyond permission to update other fields.\n */\nexport function updateApp(payload: object): RequestOptionsFactory<any> {\n function __updateApp({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_1,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'PATCH' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.UpdateApp',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{app.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateApp;\n}\n\n/**\n * Generates a slug for the app. If a slug already exists, returns the app with its existing slug.\n * Does not generate a slug for companion apps; a companion app without a slug is returned unchanged.\n * When generating a slug, the stored app name must not contain `wix` for non-Wix apps (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n */\nexport function generateSlug(payload: object): RequestOptionsFactory<any> {\n function __generateSlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'PATCH' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.GenerateSlug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/generate-slug',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateSlug;\n}\n\n/**\n * Suggests a namespace using the app's stored name and its owning account's slug or company name.\n * Falls back to the account slug when no company name is available.\n * Non-Wix app names must not contain `wix` (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n * If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.\n * Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.\n */\nexport function getNamespaceSuggestion(\n payload: object\n): RequestOptionsFactory<any> {\n function __getNamespaceSuggestion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'GET' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.GetNamespaceSuggestion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/suggest-namespace',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getNamespaceSuggestion;\n}\n\n/**\n * Suggests a namespace from the supplied app name and the caller's account or company context.\n * No app ID is required, so this method can be used before creating an app.\n * With `type` set to `COMPANY`, falls back to the account slug if no company name is available.\n * To suggest a namespace for an existing app using its stored name and ownership context, use Get Namespace Suggestion.\n * The supplied name must not contain `wix` (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n * If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.\n * Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.\n */\nexport function getNamespaceSuggestionByName(\n payload: object\n): RequestOptionsFactory<any> {\n function __getNamespaceSuggestionByName({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'GET' as any,\n methodFqn:\n 'wix.devcenter.apps.v1.AppsService.GetNamespaceSuggestionByName',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/suggest-namespace-by-name',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getNamespaceSuggestionByName;\n}\n\n/**\n * Sets the app namespace using the owning account's slug or company name and the supplied `appName`.\n * Falls back to the account slug when no company name is available. A namespace can be set only once.\n * For non-Wix apps, `appName` must not contain `wix` (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n * Unlike namespace suggestions, this method does not automatically add a suffix when the derived namespace is already used.\n * Suggestions are not reservations; on a collision, choose a different `appName` and retry.\n */\nexport function setNamespace(payload: object): RequestOptionsFactory<any> {\n function __setNamespace({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'PATCH' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.SetNamespace',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/set-namespace',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __setNamespace;\n}\n\n/**\n * Shares WIX_DEVELOPERS.MODIFY_APP with the sibling app-write RPCs, which declare no audience\n * (adding one here would break consistent-audience-for-shared-permission across all of them).\n * Renaming the permission would change who is actually authorized, so it stays as-is —\n * the real check is the MANUAL validateUpdateAppPermission(...) in code.\n */\nexport function createSecondarySecret(\n payload: object\n): RequestOptionsFactory<any> {\n function __createSecondarySecret({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'POST' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.CreateSecondarySecret',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/secrets/secondary',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSecondarySecret;\n}\n\n/**\n * Shares WIX_DEVELOPERS.MODIFY_APP with the sibling app-write RPCs, which declare no audience\n * (adding one here would break consistent-audience-for-shared-permission across all of them).\n * Renaming the permission would change who is actually authorized, so it stays as-is —\n * the real check is the MANUAL validateUpdateAppPermission(...) in code.\n */\nexport function revokeSecret(payload: object): RequestOptionsFactory<any> {\n function __revokeSecret({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'POST' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.RevokeSecret',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/secrets/revoke',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __revokeSecret;\n}\n","/**\n * An app defines the identity and configuration of an extension built for Wix.\n * It contains ownership information, identifiers, authentication settings, and installation preferences.\n * Components, permissions, webhooks, dependencies, and versions are managed through related APIs.\n */\nexport interface V1App {\n /**\n * App ID.\n * @format GUID\n */\n id?: string | null;\n /**\n * The display name of the application, shown to users and in App Market after publication. This is separate from the app namespace, slug, and code identifier.\n * @maxLength 50\n */\n name?: string;\n /**\n * ID of the account that owns the app.\n * @readonly\n * @format GUID\n */\n accountId?: string | null;\n /** Secrets for authentication and webhooks. */\n appSecrets?: AppSecrets;\n /**\n * Is Wix owned the application\n * @internal\n */\n wixApp?: boolean;\n /**\n * App namespace, combining an account or company identifier with an app-name component. For example, `@example-company/bookings-helper`.\n * @minLength 1\n * @maxLength 150\n */\n namespace?: string | null;\n /**\n * A JavaScript-compatible name for referencing the app in code, separate from its display name, namespace, and slug.\n * Unique for non-companion apps. Companion apps return the shared value `companionApp`; use `id` to uniquely identify an app.\n * For example, the namespace `@app-builder/my-cool-app` can be represented by the code identifier `AppBuilderMyCoolApp`.\n * @minLength 3\n * @maxLength 150\n */\n codeIdentifier?: string | null;\n /** The state of the application. */\n status?: StatusWithLiterals;\n /**\n * The type of application\n * @internal\n */\n appType?: AppTypeWithLiterals;\n /** Revision of the app. Changes each time the app is modified. */\n revision?: string | null;\n /**\n * A human-readable, URL-friendly identifier for the app.\n * @minLength 1\n * @maxLength 50\n */\n slug?: string | null;\n /**\n * @internal\n * @deprecated\n * @targetRemovalDate 2025-11-01\n */\n privateApp?: boolean;\n /** URLs used by the app's OAuth flow. */\n appUrls?: AppUrls;\n /**\n * Identity of the user or app that created the app, including its source template when applicable.\n * @immutable\n */\n createdBy?: CreatedBy;\n /** Settings for post-installation navigation, opening the app, and uninstalling it. */\n installationPreferences?: InstallationPreferences;\n /**\n * Date and time the app was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the app was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Changes not yet included in a released app version, grouped by type. */\n unreleasedChanges?: UnreleasedChanges;\n /**\n * The ownership tag of the application\n * @internal\n * @readonly\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string | null;\n /**\n * Indicates if the app is hipaa compliant - only for Wix Apps\n * @internal\n * @readonly\n */\n hipaaCompliant?: boolean | null;\n /**\n * Indicates if this app should be saved into runtime-cache\n * @internal\n * @readonly\n */\n cacheable?: boolean | null;\n /** Indicates whether this app is a companion app assigned to a specific site or account. */\n companionApp?: boolean | null;\n /**\n * Estimated app size if the app runtime data size exceeds soft limit threshold, otherwise None or 0\n * @internal\n * @readonly\n */\n exceededSize?: number | null;\n /**\n * Indicates if the app is partially consumable (only some components). Default is false (app consumed as a whole)\n * @internal\n */\n partiallyConsumable?: boolean | null;\n /**\n * Map from component ID to its metadata (e.g., latest version)\n * @internal\n */\n componentsMetadata?: Record<string, AppComponentMetadata>;\n /**\n * The project ID of the Nile/Ninja service this app belongs to\n * @internal\n * @readonly\n * @maxLength 150\n */\n serviceProjectId?: string | null;\n /**\n * Configuration for HOST_APP type apps\n * @internal\n */\n hostAppConfig?: HostAppConfig;\n}\n\nexport interface AppSecrets {\n /**\n * App authentication secret. Keep this value in a secure backend secret store.\n * @readonly\n * @format GUID\n */\n appSecret?: string;\n /**\n * PEM-encoded RSA public key used to verify webhook event payloads.\n * @readonly\n * @maxLength 2048\n */\n webhookPublicKey?: string;\n /**\n * Additional authentication secret used during rotation. Present while the app has two secrets.\n * @readonly\n * @format GUID\n */\n appSecondarySecret?: string | null;\n /**\n * Whether the secondary secret is used for token signing. This doesn't indicate whether it is accepted for authentication.\n * @readonly\n */\n secondarySecretActive?: boolean;\n /**\n * When the previous secret is scheduled to be deleted. Set only while a revocation is pending\n * @internal\n * @readonly\n */\n previousSecretRevokeDate?: Date | null;\n}\n\nexport enum Status {\n ACTIVE = 'ACTIVE',\n /** @internal */\n DEPRECATED = 'DEPRECATED',\n ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'ACTIVE' | 'ARCHIVED';\n\nexport enum AppType {\n /** A Regular app entity - used to installed on sites */\n SITE_APP = 'SITE_APP',\n /** represents an account API KEY to access wix services */\n API_KEY = 'API_KEY',\n /** represents an app developed for Velo editor */\n VELO_APP = 'VELO_APP',\n /**\n * deprecated. private apps are site apps which are released and unpublished\n * @internal\n */\n PRIVATE_APP = 'PRIVATE_APP',\n /** represents an External Headless (3rd party) App that has access to Wix Public Services */\n HEADLESS = 'HEADLESS',\n /** represents an app specific to a Meta Site that stores data about Activated Functions in that Meta Site */\n FUNCTION_ACTIVATION_APP = 'FUNCTION_ACTIVATION_APP',\n /**\n * represents an app for a Nile/Ninja service project\n * @internal\n */\n SERVICE_APP = 'SERVICE_APP',\n /**\n * represents a platform surface that other apps plug into\n * @internal\n */\n HOST_APP = 'HOST_APP',\n}\n\n/** @enumType */\nexport type AppTypeWithLiterals =\n | AppType\n | 'SITE_APP'\n | 'API_KEY'\n | 'VELO_APP'\n | 'HEADLESS'\n | 'FUNCTION_ACTIVATION_APP';\n\nexport interface AppUrls {\n /**\n * App URL used to initiate the OAuth flow.\n * @format WEB_URL\n */\n appUri?: string | null;\n /**\n * Allowed redirect URLs for the app's OAuth flow.\n * @format WEB_URL\n * @maxSize 100\n */\n redirectUris?: string[];\n}\n\nexport interface CreatedBy {\n /**\n * ID of the user or app that created the app.\n * @format GUID\n */\n id?: string;\n /** Type of identity that created the app. */\n type?: CreatedByTypeWithLiterals;\n /**\n * ID of the template used to create the app, when applicable.\n * @format GUID\n */\n sourceTemplateId?: string | null;\n}\n\nexport enum CreatedByType {\n USER = 'USER',\n APP = 'APP',\n CODE_GEN = 'CODE_GEN',\n APP_BUILDER_SELF_HOSTED = 'APP_BUILDER_SELF_HOSTED',\n}\n\n/** @enumType */\nexport type CreatedByTypeWithLiterals =\n | CreatedByType\n | 'USER'\n | 'APP'\n | 'CODE_GEN'\n | 'APP_BUILDER_SELF_HOSTED';\n\nexport interface InstallationPreferences\n extends InstallationPreferencesOpenButtonOptionsOneOf {\n /** Component to open when `openButtonAction` is `OPEN_COMPONENT_ID`. */\n openComponentIdOptions?: OpenComponentId;\n /** Destination for the user after installing the app. */\n overridePostInstallationRedirect?: RedirectTargetWithLiterals;\n /**\n * ID of the component the user is redirected to after installing the app.\n * @format GUID\n */\n postInstallationComponentId?: string | null;\n /** Action performed when the user selects the app's Open button after installation. */\n openButtonAction?: OpenButtonActionWithLiterals;\n /**\n * Indicates the different consent options the app could define post installation\n * @internal\n */\n consentOptions?: ConsentOptions;\n /** Action required before the app can be uninstalled. */\n uninstallAction?: UninstallActionsWithLiterals;\n}\n\n/** @oneof */\nexport interface InstallationPreferencesOpenButtonOptionsOneOf {\n /** Component to open when `openButtonAction` is `OPEN_COMPONENT_ID`. */\n openComponentIdOptions?: OpenComponentId;\n}\n\nexport enum ShowConsentBehaviour {\n DEFAULT_BEHAVIOUR = 'DEFAULT_BEHAVIOUR',\n SHOW_CONSENT = 'SHOW_CONSENT',\n SKIP_CONSENT = 'SKIP_CONSENT',\n}\n\n/** @enumType */\nexport type ShowConsentBehaviourWithLiterals =\n | ShowConsentBehaviour\n | 'DEFAULT_BEHAVIOUR'\n | 'SHOW_CONSENT'\n | 'SKIP_CONSENT';\n\nexport enum RedirectTarget {\n UNKNOWN_REDIRECT_TARGET = 'UNKNOWN_REDIRECT_TARGET',\n DASHBOARD = 'DASHBOARD',\n EDITOR = 'EDITOR',\n}\n\n/** @enumType */\nexport type RedirectTargetWithLiterals =\n | RedirectTarget\n | 'UNKNOWN_REDIRECT_TARGET'\n | 'DASHBOARD'\n | 'EDITOR';\n\nexport enum OpenButtonAction {\n UNKNOWN_ACTION = 'UNKNOWN_ACTION',\n OPEN_COMPONENT_ID = 'OPEN_COMPONENT_ID',\n}\n\n/** @enumType */\nexport type OpenButtonActionWithLiterals =\n | OpenButtonAction\n | 'UNKNOWN_ACTION'\n | 'OPEN_COMPONENT_ID';\n\nexport interface ConsentOptions {\n /** Indicates the different behaviours available for showing the consent form post installation */\n showConsentBehaviour?: ShowConsentBehaviourWithLiterals;\n}\n\nexport interface OpenComponentId {\n /**\n * ID of the component opened when the user selects the app's Open button.\n * @format GUID\n */\n componentId?: string;\n}\n\nexport enum UninstallActions {\n NONE_ACTION = 'NONE_ACTION',\n NO_ACTION = 'NO_ACTION',\n REMOVE_ALL_PRODUCT = 'REMOVE_ALL_PRODUCT',\n SHIPPING_RATES_REGION = 'SHIPPING_RATES_REGION',\n}\n\n/** @enumType */\nexport type UninstallActionsWithLiterals =\n | UninstallActions\n | 'NONE_ACTION'\n | 'NO_ACTION'\n | 'REMOVE_ALL_PRODUCT'\n | 'SHIPPING_RATES_REGION';\n\nexport interface UnreleasedChanges {\n /** Indicate components changes (create, update, delete) */\n componentsChanges?: boolean;\n /** Indicate app translations changes (create, update) */\n appTranslationsChanges?: boolean;\n /** Indicate components translations changes (create, update) */\n componentsTranslationChanges?: boolean;\n /**\n * Indicate components experiments changes (create, update, delete)\n * @internal\n */\n componentsExperimentsChanges?: boolean;\n /** Indicate app permissions changes (create, update, delete) */\n appPermissionsChanges?: boolean;\n /** Indicate app entity field changes (name, slug, namespace, codeIdentifier, partiallyConsumable) */\n appEntityChanges?: boolean;\n}\n\nexport interface AppComponentMetadata {\n /** Version counter for the component */\n versionCounter?: string | null;\n}\n\nexport interface HostAppConfig {\n /**\n * The domain this host app represents\n * @minLength 1\n * @maxLength 71\n */\n hostDomain?: string;\n /**\n * Permission levels allowed without security approval\n * @maxSize 3\n */\n allowedPermissionLevels?: PermissionLevelWithLiterals[];\n /** Whether login is required or optional for this host app */\n loginPolicy?: LoginPolicyWithLiterals;\n}\n\nexport enum PermissionLevel {\n PERMISSION_LEVEL_UNKNOWN = 'PERMISSION_LEVEL_UNKNOWN',\n PERMISSION_LEVEL_SITE = 'PERMISSION_LEVEL_SITE',\n PERMISSION_LEVEL_ACCOUNT = 'PERMISSION_LEVEL_ACCOUNT',\n PERMISSION_LEVEL_ORG = 'PERMISSION_LEVEL_ORG',\n}\n\n/** @enumType */\nexport type PermissionLevelWithLiterals =\n | PermissionLevel\n | 'PERMISSION_LEVEL_UNKNOWN'\n | 'PERMISSION_LEVEL_SITE'\n | 'PERMISSION_LEVEL_ACCOUNT'\n | 'PERMISSION_LEVEL_ORG';\n\nexport enum LoginPolicy {\n LOGIN_POLICY_UNKNOWN = 'LOGIN_POLICY_UNKNOWN',\n LOGIN_POLICY_REQUIRED = 'LOGIN_POLICY_REQUIRED',\n LOGIN_POLICY_OPTIONAL = 'LOGIN_POLICY_OPTIONAL',\n}\n\n/** @enumType */\nexport type LoginPolicyWithLiterals =\n | LoginPolicy\n | 'LOGIN_POLICY_UNKNOWN'\n | 'LOGIN_POLICY_REQUIRED'\n | 'LOGIN_POLICY_OPTIONAL';\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 AppOwnerChangedEvent {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId?: string;\n /**\n * the current account id\n * @format GUID\n */\n accountId?: string;\n /**\n * the previous account id\n * @format GUID\n */\n previousAccountId?: string;\n}\n\nexport interface CreateAppRequest {\n /** App to be created */\n app: V1App;\n}\n\nexport interface CreateAppResponse {\n /** The created App */\n app?: V1App;\n}\n\nexport interface GetAppRequest {\n /**\n * Id of the App to retrieve\n * @format GUID\n */\n appId: string;\n /**\n * Deprecated. Used only for supporting the old Apps Service. Use `additional_fields` instead.\n * @internal\n * @deprecated\n */\n withSecrets?: boolean;\n /** Whether to use a consistent read to retrieve the latest stored app data. Default: `false`. */\n consistent?: boolean;\n /**\n * Additional fields to include in the response. Include `APP_SECRETS` to return `app.appSecrets`, which is omitted by default.\n * Retrieving secrets requires authorization to access the app's secrets.\n * @maxSize 1\n */\n additionalFields?: RequestedFieldsWithLiterals[];\n}\n\n/** A list of possible additional fields to be included in the response. */\nexport enum RequestedFields {\n /** Includes `app.appSecrets` in the Get App response. Requires authorization to access the app's secrets. */\n APP_SECRETS = 'APP_SECRETS',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals = RequestedFields | 'APP_SECRETS';\n\nexport interface GetAppResponse {\n /** The retrieved App */\n app?: V1App;\n}\n\nexport interface UpdateAppRequest {\n /** App to be updated, may be partial */\n app: V1App;\n /**\n * Explicit list of fields to update\n * @internal\n */\n mask?: string[];\n}\n\nexport interface UpdateAppResponse {\n /** The updated App */\n app?: V1App;\n}\n\nexport interface GenerateSlugRequest {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId: string;\n}\n\nexport interface GenerateSlugResponse {\n /** The modified app */\n app?: V1App;\n}\n\nexport interface RenameSlugRequest {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId?: string;\n /**\n * rename slug to this value\n * @minLength 1\n * @maxLength 50\n */\n newSlug?: string;\n}\n\nexport interface RenameSlugResponse {\n /** The modified app */\n app?: V1App;\n}\n\nexport interface RenameCodeIdentifierRequest {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId?: string;\n /**\n * The new code identifier value\n * @minLength 3\n * @maxLength 150\n */\n newCodeIdentifier?: string;\n}\n\nexport interface RenameCodeIdentifierResponse {\n /** The modified app */\n app?: V1App;\n}\n\nexport interface GetNamespaceSuggestionRequest {\n /**\n * The id of the application\n * @format GUID\n */\n appId: string;\n /** Whether to derive the namespace from the owning account or company. Default: `ACCOUNT`. */\n type?: NamespaceTypeWithLiterals;\n}\n\nexport enum NamespaceType {\n /** Uses the account slug. */\n ACCOUNT = 'ACCOUNT',\n /** Uses the company name, falling back to the account slug when unavailable. */\n COMPANY = 'COMPANY',\n}\n\n/** @enumType */\nexport type NamespaceTypeWithLiterals = NamespaceType | 'ACCOUNT' | 'COMPANY';\n\nexport interface GetNamespaceSuggestionResponse {\n /** The suggested namespace */\n namespace?: string;\n}\n\nexport interface GetNamespaceSuggestionByNameRequest {\n /**\n * The name of the application\n * @maxLength 50\n */\n name: string;\n /** Whether to derive the namespace from the caller's account or company. Default: `ACCOUNT`. */\n type?: NamespaceTypeWithLiterals;\n}\n\nexport interface GetNamespaceSuggestionByNameResponse {\n /**\n * The suggested namespace\n * @minLength 1\n * @maxLength 150\n */\n namespace?: string;\n}\n\nexport interface SetNamespaceRequest {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId: string;\n /**\n * Name used to derive the app's namespace component, at most 50 characters before normalization.\n * Lowercased; runs of non-alphanumeric characters (including spaces and underscores) become hyphens, with leading/trailing separators removed.\n * For example, `Bookings Helper` and `Bookings_Helper` become `bookings-helper`. If no letters or digits remain, uses `untitled`.\n * Subject to the reserved-name restrictions documented on Set Namespace. For permitted Wix-owned apps, `wix` is removed before normalization.\n * @maxLength 50\n */\n appName: string;\n /** Whether to derive the namespace from the owning account or company. Default: `ACCOUNT`. */\n type?: NamespaceTypeWithLiterals;\n}\n\nexport interface SetNamespaceResponse {\n /** Assigned namespace in the format `@account-or-company/app-name`. */\n namespace?: string;\n}\n\nexport interface SuggestCodeIdentifierRequest {\n /**\n * App ID\n * @format GUID\n */\n appId?: string | null;\n /**\n * The namespace to convert to a code identifier\n * @minLength 1\n * @maxLength 150\n */\n namespace?: string;\n}\n\nexport interface SuggestCodeIdentifierResponse {\n /**\n * The suggested code identifier\n * @maxLength 150\n */\n codeIdentifier?: string;\n}\n\nexport interface SetCodeIdentifierRequest {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId?: string;\n /**\n * The code identifier to set\n * @minLength 3\n * @maxLength 150\n */\n codeIdentifier?: string;\n}\n\nexport interface SetCodeIdentifierResponse {\n /**\n * The set code identifier\n * @minLength 3\n * @maxLength 150\n */\n codeIdentifier?: string;\n}\n\nexport interface DeleteAppRequest {\n /**\n * Id of the App to delete\n * @format GUID\n */\n appId?: string;\n /**\n * @internal\n * @deprecated\n * @targetRemovalDate 2027-04-11\n */\n revision?: string;\n}\n\nexport interface DeleteAppResponse {}\n\nexport interface UpdateHostAppConfigRequest {\n /**\n * Id of the HOST_APP to update\n * @format GUID\n */\n appId?: string;\n /** Current revision for optimistic locking */\n revision?: string;\n /** The new host app configuration */\n hostAppConfig?: HostAppConfig;\n}\n\nexport interface UpdateHostAppConfigResponse {\n /** The updated Host App */\n app?: V1App;\n}\n\nexport interface ForceCascadeDeleteAppRequest {\n /**\n * Id of the (already-deleted) app whose orphaned satellite data should be purged\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface ForceCascadeDeleteAppResponse {\n /** What the call actually did */\n decision?: ForceCascadeDeleteAppDecisionWithLiterals;\n}\n\nexport enum ForceCascadeDeleteAppDecision {\n /** app still exists in apps-service — refused (never delete a live app) */\n SKIPPED_LIVE = 'SKIPPED_LIVE',\n /** app still exists in the old app-service (not deleted / un-migrated) — refused */\n SKIPPED_UNMIGRATED = 'SKIPPED_UNMIGRATED',\n /** orphan confirmed absent everywhere; cascade delete ran */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type ForceCascadeDeleteAppDecisionWithLiterals =\n | ForceCascadeDeleteAppDecision\n | 'SKIPPED_LIVE'\n | 'SKIPPED_UNMIGRATED'\n | 'DELETED';\n\nexport interface QueryAppRequest {\n /** WQL expression */\n query?: QueryV2;\n /** Using read-write connection? default \"false\" (using read connection) */\n consistent?: boolean;\n /** Should also count the total numbers of results? (NOTICE: It will have slight impact on performance) */\n countResults?: boolean;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset 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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\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 fields?: string[];\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 fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset 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 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\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 * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token 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 QueryAppResponse {\n /** The retrieved Apps */\n apps?: V1App[];\n /** Paging data when relevant */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\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 * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface SetPrivateAppRequest {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId?: string;\n /** The value to set to private app */\n privateApp?: boolean;\n /** The revision of the App */\n revision?: string;\n}\n\nexport interface SetPrivateAppResponse {\n /** The modified app */\n app?: V1App;\n}\n\nexport interface AppChangedEvent {\n app?: App;\n action?: ActionWithLiterals;\n updatedFields?: string[];\n}\n\n/** Fake main entity - once we'll refactor this service - we'll need to fill the properties here and start using it as the main service entity */\nexport interface App {\n /**\n * The id of the app\n * @format GUID\n */\n id?: string;\n /** The name of the App */\n name?: string;\n /**\n * App's icon, to be displayed in UI\n * @format URI\n */\n iconUrl?: string | null;\n /** App's latest GA version, formatted as xx.xx.xx */\n latestVersion?: string | null;\n /** Is it a Wix app? */\n isWixApp?: boolean;\n /** application status calculated from app versions status */\n appStatus?: string;\n /** Can the app be updated? */\n isEditable?: boolean;\n /** Used to create signed instances/authenticate with oauth provider */\n appSecret?: string;\n /** Used to sign webhooks that are sent to tpas */\n webhooksPublicKey?: string | null;\n /** Is it a core Wix app? */\n isCoreApp?: boolean;\n /** The namespace of the App */\n namespace?: string | null;\n /**\n * The team id which the App belongs to\n * @format GUID\n */\n teamId?: string | null;\n /** The company id which the App belongs to */\n companyId?: string | null;\n /** The type of App */\n classification?: string | null;\n /** if true, app will not show on the managed apps page */\n hideFromManagedApps?: boolean;\n /** true if and ony if the app is archived */\n isArchived?: boolean;\n /** updates only one time, when the app is published for the first time */\n firstPublishDate?: string | null;\n /** represents all the contactEmails */\n contactEmails?: ContactEmails;\n}\n\nexport interface ContactEmails {\n /** @format EMAIL */\n supportEmails?: string[];\n /** @format EMAIL */\n urgentEmails?: string[];\n /** @format EMAIL */\n billingEmails?: string[];\n}\n\nexport enum Action {\n CREATED = 'CREATED',\n UPDATED = 'UPDATED',\n DEPRECATED = 'DEPRECATED',\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type ActionWithLiterals =\n | Action\n | 'CREATED'\n | 'UPDATED'\n | 'DEPRECATED'\n | 'DELETED';\n\nexport interface Empty {}\n\nexport interface AppSlugChanged {\n /**\n * app id of the app with the changed slug\n * @format GUID\n */\n appId?: string;\n /**\n * The slug of the app. A human readable identifier of the app\n * @minLength 1\n * @maxLength 200\n */\n slug?: string;\n}\n\nexport interface SetAppOwnerRequest {\n /**\n * Id of the App to update\n * @format GUID\n */\n appId?: string;\n /**\n * Id of the account to update\n * @format GUID\n */\n accountId?: string;\n /** The revision of the App */\n revision?: string;\n}\n\nexport interface SetAppOwnerResponse {\n /** The modified app */\n app?: V1App;\n}\n\nexport interface AppUrlsChangedInOldServiceEvent\n extends AppUrlsChangedInOldServiceEventChangedUrlOneOf {\n /** the app url of OAuth */\n appUriMessage?: AppUriMessage;\n /** redirect uris */\n redirectUriMessage?: RedirectUrlMessage;\n /**\n * Id of the App to update\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface AppUrlsChangedInOldServiceEventChangedUrlOneOf {\n /** the app url of OAuth */\n appUriMessage?: AppUriMessage;\n /** redirect uris */\n redirectUriMessage?: RedirectUrlMessage;\n}\n\nexport interface AppUriMessage {\n /** the app url of OAuth */\n appUri?: string | null;\n}\n\nexport interface RedirectUrlMessage {\n /** list of redirect urls of OAuth */\n redirectUris?: string[];\n}\n\nexport interface CreateSecondarySecretRequest {\n /**\n * ID of the App to update\n * @format GUID\n */\n appId: string;\n /** Latest app revision, available from Get App. An outdated revision is rejected. */\n revision?: string;\n}\n\nexport interface CreateSecondarySecretResponse {\n /** Updated app, including the previous appSecrets.appSecret and new appSecrets.appSecondarySecret. */\n app?: V1App;\n}\n\nexport interface ActivateSecondarySecretRequest {\n /**\n * ID of the App you want to enable the secondary secret for\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface ActivateSecondarySecretResponse {\n /** The app with the new secrets state */\n app?: V1App;\n}\n\nexport interface RotateSecretRequest {\n /**\n * ID of the App to update\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface RotateSecretResponse {\n /** The app with the new secrets state */\n app?: V1App;\n}\n\nexport interface RollbackSecretRequest {\n /**\n * ID of the App to update\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface RollbackSecretResponse {\n /** The app with the new secrets state */\n app?: V1App;\n}\n\nexport interface RevokeSecretRequest {\n /**\n * ID of the App to update\n * @format GUID\n */\n appId: string;\n /** Which of the two secrets to get rid of */\n secretToRevoke: SecretToRevokeWithLiterals;\n}\n\n/** Which of the App's two secrets to get rid of */\nexport enum SecretToRevoke {\n /** The secret the App had before the second one was created */\n PREVIOUS_SECRET = 'PREVIOUS_SECRET',\n /** The second secret that was created most recently */\n NEW_SECRET = 'NEW_SECRET',\n}\n\n/** @enumType */\nexport type SecretToRevokeWithLiterals =\n | SecretToRevoke\n | 'PREVIOUS_SECRET'\n | 'NEW_SECRET';\n\nexport interface RevokeSecretResponse {\n /** Scheduled retirement time of the previous secret. Set only for PREVIOUS_SECRET; omitted for NEW_SECRET. */\n previousSecretRevokeAt?: Date | null;\n}\n\n/** payload for kafka event for this version on app submit */\nexport interface AppVersionStateChanged\n extends AppVersionStateChangedStateOneOf {\n created?: AppVersionCreated;\n submitted?: AppVersionSubmitted;\n published?: AppVersionPublished;\n declined?: AppVersionDeclined;\n released?: AppVersionReleased;\n approved?: AppVersionApproved;\n draftChanged?: AppVersionDraftChanged;\n archived?: AppVersionArchived;\n /** @format GUID */\n appId?: string;\n /** @readonly */\n version?: string;\n previousState?: VersionStatusWithLiterals;\n /**\n * If defined, only a partial snapshot of the app draft was updated\n * @internal\n */\n partialVersionOptions?: PartialVersionOptions;\n}\n\n/** @oneof */\nexport interface AppVersionStateChangedStateOneOf {\n created?: AppVersionCreated;\n submitted?: AppVersionSubmitted;\n published?: AppVersionPublished;\n declined?: AppVersionDeclined;\n released?: AppVersionReleased;\n approved?: AppVersionApproved;\n draftChanged?: AppVersionDraftChanged;\n archived?: AppVersionArchived;\n}\n\nexport interface AppVersionCreated {}\n\nexport interface AppVersionSubmitted {}\n\nexport interface AppVersionPublished {}\n\nexport interface AppVersionDeclined {}\n\nexport interface AppVersionReleased {}\n\nexport interface AppVersionApproved {}\n\nexport interface AppVersionDraftChanged {}\n\nexport interface AppVersionArchived {}\n\nexport enum VersionStatus {\n /** default, internal use status. do not use */\n NONE_STATUS = 'NONE_STATUS',\n /** a version which was created in the dev center and has not started the approval process yet */\n DRAFT = 'DRAFT',\n /** the version was submitted for review by the developer */\n SUBMITTED = 'SUBMITTED',\n /** the version is being reviewed by the app market team in cactus */\n IN_REVIEW = 'IN_REVIEW',\n /** our team approved the version */\n APPROVED = 'APPROVED',\n /** this version is published - only one version can be published at any given time; if this app was already published, the previously published version's status is now ARCHIVED */\n PUBLISHED = 'PUBLISHED',\n /** our team did not accept this version of the app */\n DECLINED = 'DECLINED',\n /** the status for versions that are no longer relevant */\n ARCHIVED = 'ARCHIVED',\n /** status for versions with no significant changes, e.g. for test app. for questions contact our team */\n HIDDEN = 'HIDDEN',\n /** mark apps as RELEASED, without adding to the apps cache, and allow users to install */\n RELEASED = 'RELEASED',\n}\n\n/** @enumType */\nexport type VersionStatusWithLiterals =\n | VersionStatus\n | 'NONE_STATUS'\n | 'DRAFT'\n | 'SUBMITTED'\n | 'IN_REVIEW'\n | 'APPROVED'\n | 'PUBLISHED'\n | 'DECLINED'\n | 'ARCHIVED'\n | 'HIDDEN'\n | 'RELEASED';\n\nexport interface PartialVersionOptions {\n /** Include dev center draft changes in the submitted data */\n includeDraftDevCenterData?: boolean;\n /** Include market listing draft data in the submitted data */\n includeDraftMarketListingData?: boolean;\n /** Include pricing info draft data in the submitted data */\n includeDraftPricingInfoData?: boolean;\n}\n\nexport interface SetOwnershipTagRequest {\n /**\n * App id of the app to act on\n * @format GUID\n */\n appId?: string;\n /**\n * Ownership tag to set\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string;\n}\n\nexport interface SetOwnershipTagResponse {}\n\nexport interface SetHipaaCompliantRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** Is the app HIPAA compliant */\n hipaaCompliant?: boolean;\n}\n\nexport interface SetHipaaCompliantResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface SetCacheableAppRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** Is the app cacheable */\n cacheable?: boolean;\n}\n\nexport interface SetCacheableAppResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface SetComponentsMetadataRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** Map from component ID to its metadata */\n componentsMetadata?: Record<string, AppComponentMetadata>;\n /** The revision of the App */\n revision?: string;\n}\n\nexport interface SetComponentsMetadataResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface SetExceededSizeRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** The size in bytes when app runtime data exceeds 4MB threshold */\n exceededSize?: number;\n}\n\nexport interface SetExceededSizeResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface CreateServiceAppRequest {\n /**\n * The NN project name, including prefix of group id, for example: com.wixpress.artifact-name. The full value is stored as service_project_id; the app name is derived from the final segment (artifact-name)\n * @minLength 1\n * @maxLength 150\n */\n projectName?: string;\n /**\n * Ownership tag of the service app\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string;\n}\n\nexport interface CreateServiceAppResponse {\n /** The created service app */\n app?: V1App;\n}\n\nexport interface AssociateServiceAppRequest {\n /**\n * Id of the existing Wix app to convert into a service app\n * @format GUID\n */\n appId?: string;\n /**\n * The NN project name, including prefix of group id, for example: com.wixpress.artifact-name. Stored as service_project_id\n * @minLength 1\n * @maxLength 150\n */\n projectName?: string;\n /**\n * Ownership tag. Set on the app when it has none yet; when the app is already tagged this is asserted to match the existing tag (a differing tag is rejected) — it cannot reassign ownership.\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string;\n}\n\nexport interface AssociateServiceAppResponse {\n /** The updated service app */\n app?: V1App;\n}\n","import * as ambassadorWixDevcenterAppsV1App from './devcenter-apps-v1-app-apps.http.js';\nimport * as ambassadorWixDevcenterAppsV1AppTypes from './devcenter-apps-v1-app-apps.types.js';\nimport * as ambassadorWixDevcenterAppsV1AppUniversalTypes from './devcenter-apps-v1-app-apps.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 createApp(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateAppRequest,\n ambassadorWixDevcenterAppsV1AppTypes.CreateAppRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateAppResponse,\n ambassadorWixDevcenterAppsV1AppTypes.CreateAppResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixDevcenterAppsV1App.createApp(payload);\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/apps',\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 getApp(): __PublicMethodMetaInfo<\n 'GET',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetAppRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GetAppRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetAppResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GetAppResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions = ambassadorWixDevcenterAppsV1App.getApp(payload);\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/apps/{appId}',\n pathParams: { appId: 'appId' },\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 updateApp(): __PublicMethodMetaInfo<\n 'PATCH',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.UpdateAppRequest,\n ambassadorWixDevcenterAppsV1AppTypes.UpdateAppRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.UpdateAppResponse,\n ambassadorWixDevcenterAppsV1AppTypes.UpdateAppResponse\n> {\n const payload = { app: { id: ':appId' } } as any;\n\n const getRequestOptions = ambassadorWixDevcenterAppsV1App.updateApp(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/apps/{app.id}',\n pathParams: { appId: 'appId' },\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 generateSlug(): __PublicMethodMetaInfo<\n 'PATCH',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GenerateSlugRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GenerateSlugRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GenerateSlugResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GenerateSlugResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.generateSlug(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/apps/{appId}/generate-slug',\n pathParams: { appId: 'appId' },\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 getNamespaceSuggestion(): __PublicMethodMetaInfo<\n 'GET',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.getNamespaceSuggestion(payload);\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/apps/{appId}/suggest-namespace',\n pathParams: { appId: 'appId' },\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 getNamespaceSuggestionByName(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionByNameRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionByNameRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionByNameResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionByNameResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.getNamespaceSuggestionByName(payload);\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/apps/suggest-namespace-by-name',\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 setNamespace(): __PublicMethodMetaInfo<\n 'PATCH',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.SetNamespaceRequest,\n ambassadorWixDevcenterAppsV1AppTypes.SetNamespaceRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.SetNamespaceResponse,\n ambassadorWixDevcenterAppsV1AppTypes.SetNamespaceResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.setNamespace(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/apps/{appId}/set-namespace',\n pathParams: { appId: 'appId' },\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 createSecondarySecret(): __PublicMethodMetaInfo<\n 'POST',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateSecondarySecretRequest,\n ambassadorWixDevcenterAppsV1AppTypes.CreateSecondarySecretRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateSecondarySecretResponse,\n ambassadorWixDevcenterAppsV1AppTypes.CreateSecondarySecretResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.createSecondarySecret(payload);\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/apps/{appId}/secrets/secondary',\n pathParams: { appId: 'appId' },\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 revokeSecret(): __PublicMethodMetaInfo<\n 'POST',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.RevokeSecretRequest,\n ambassadorWixDevcenterAppsV1AppTypes.RevokeSecretRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.RevokeSecretResponse,\n ambassadorWixDevcenterAppsV1AppTypes.RevokeSecretResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.revokeSecret(payload);\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/apps/{appId}/secrets/revoke',\n pathParams: { appId: 'appId' },\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 V1App as V1AppOriginal,\n AppSecrets as AppSecretsOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n AppType as AppTypeOriginal,\n AppTypeWithLiterals as AppTypeWithLiteralsOriginal,\n AppUrls as AppUrlsOriginal,\n CreatedBy as CreatedByOriginal,\n CreatedByType as CreatedByTypeOriginal,\n CreatedByTypeWithLiterals as CreatedByTypeWithLiteralsOriginal,\n InstallationPreferences as InstallationPreferencesOriginal,\n InstallationPreferencesOpenButtonOptionsOneOf as InstallationPreferencesOpenButtonOptionsOneOfOriginal,\n ShowConsentBehaviour as ShowConsentBehaviourOriginal,\n ShowConsentBehaviourWithLiterals as ShowConsentBehaviourWithLiteralsOriginal,\n RedirectTarget as RedirectTargetOriginal,\n RedirectTargetWithLiterals as RedirectTargetWithLiteralsOriginal,\n OpenButtonAction as OpenButtonActionOriginal,\n OpenButtonActionWithLiterals as OpenButtonActionWithLiteralsOriginal,\n ConsentOptions as ConsentOptionsOriginal,\n OpenComponentId as OpenComponentIdOriginal,\n UninstallActions as UninstallActionsOriginal,\n UninstallActionsWithLiterals as UninstallActionsWithLiteralsOriginal,\n UnreleasedChanges as UnreleasedChangesOriginal,\n AppComponentMetadata as AppComponentMetadataOriginal,\n HostAppConfig as HostAppConfigOriginal,\n PermissionLevel as PermissionLevelOriginal,\n PermissionLevelWithLiterals as PermissionLevelWithLiteralsOriginal,\n LoginPolicy as LoginPolicyOriginal,\n LoginPolicyWithLiterals as LoginPolicyWithLiteralsOriginal,\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 AppOwnerChangedEvent as AppOwnerChangedEventOriginal,\n CreateAppRequest as CreateAppRequestOriginal,\n CreateAppResponse as CreateAppResponseOriginal,\n GetAppRequest as GetAppRequestOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n GetAppResponse as GetAppResponseOriginal,\n UpdateAppRequest as UpdateAppRequestOriginal,\n UpdateAppResponse as UpdateAppResponseOriginal,\n GenerateSlugRequest as GenerateSlugRequestOriginal,\n GenerateSlugResponse as GenerateSlugResponseOriginal,\n RenameSlugRequest as RenameSlugRequestOriginal,\n RenameSlugResponse as RenameSlugResponseOriginal,\n RenameCodeIdentifierRequest as RenameCodeIdentifierRequestOriginal,\n RenameCodeIdentifierResponse as RenameCodeIdentifierResponseOriginal,\n GetNamespaceSuggestionRequest as GetNamespaceSuggestionRequestOriginal,\n NamespaceType as NamespaceTypeOriginal,\n NamespaceTypeWithLiterals as NamespaceTypeWithLiteralsOriginal,\n GetNamespaceSuggestionResponse as GetNamespaceSuggestionResponseOriginal,\n GetNamespaceSuggestionByNameRequest as GetNamespaceSuggestionByNameRequestOriginal,\n GetNamespaceSuggestionByNameResponse as GetNamespaceSuggestionByNameResponseOriginal,\n SetNamespaceRequest as SetNamespaceRequestOriginal,\n SetNamespaceResponse as SetNamespaceResponseOriginal,\n SuggestCodeIdentifierRequest as SuggestCodeIdentifierRequestOriginal,\n SuggestCodeIdentifierResponse as SuggestCodeIdentifierResponseOriginal,\n SetCodeIdentifierRequest as SetCodeIdentifierRequestOriginal,\n SetCodeIdentifierResponse as SetCodeIdentifierResponseOriginal,\n DeleteAppRequest as DeleteAppRequestOriginal,\n DeleteAppResponse as DeleteAppResponseOriginal,\n UpdateHostAppConfigRequest as UpdateHostAppConfigRequestOriginal,\n UpdateHostAppConfigResponse as UpdateHostAppConfigResponseOriginal,\n ForceCascadeDeleteAppRequest as ForceCascadeDeleteAppRequestOriginal,\n ForceCascadeDeleteAppResponse as ForceCascadeDeleteAppResponseOriginal,\n ForceCascadeDeleteAppDecision as ForceCascadeDeleteAppDecisionOriginal,\n ForceCascadeDeleteAppDecisionWithLiterals as ForceCascadeDeleteAppDecisionWithLiteralsOriginal,\n QueryAppRequest as QueryAppRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n AddressLocation as AddressLocationOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryAppResponse as QueryAppResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n SetPrivateAppRequest as SetPrivateAppRequestOriginal,\n SetPrivateAppResponse as SetPrivateAppResponseOriginal,\n AppChangedEvent as AppChangedEventOriginal,\n App as AppOriginal,\n ContactEmails as ContactEmailsOriginal,\n Action as ActionOriginal,\n ActionWithLiterals as ActionWithLiteralsOriginal,\n Empty as EmptyOriginal,\n AppSlugChanged as AppSlugChangedOriginal,\n SetAppOwnerRequest as SetAppOwnerRequestOriginal,\n SetAppOwnerResponse as SetAppOwnerResponseOriginal,\n AppUrlsChangedInOldServiceEvent as AppUrlsChangedInOldServiceEventOriginal,\n AppUrlsChangedInOldServiceEventChangedUrlOneOf as AppUrlsChangedInOldServiceEventChangedUrlOneOfOriginal,\n AppUriMessage as AppUriMessageOriginal,\n RedirectUrlMessage as RedirectUrlMessageOriginal,\n CreateSecondarySecretRequest as CreateSecondarySecretRequestOriginal,\n CreateSecondarySecretResponse as CreateSecondarySecretResponseOriginal,\n ActivateSecondarySecretRequest as ActivateSecondarySecretRequestOriginal,\n ActivateSecondarySecretResponse as ActivateSecondarySecretResponseOriginal,\n RotateSecretRequest as RotateSecretRequestOriginal,\n RotateSecretResponse as RotateSecretResponseOriginal,\n RollbackSecretRequest as RollbackSecretRequestOriginal,\n RollbackSecretResponse as RollbackSecretResponseOriginal,\n RevokeSecretRequest as RevokeSecretRequestOriginal,\n SecretToRevoke as SecretToRevokeOriginal,\n SecretToRevokeWithLiterals as SecretToRevokeWithLiteralsOriginal,\n RevokeSecretResponse as RevokeSecretResponseOriginal,\n AppVersionStateChanged as AppVersionStateChangedOriginal,\n AppVersionStateChangedStateOneOf as AppVersionStateChangedStateOneOfOriginal,\n AppVersionCreated as AppVersionCreatedOriginal,\n AppVersionSubmitted as AppVersionSubmittedOriginal,\n AppVersionPublished as AppVersionPublishedOriginal,\n AppVersionDeclined as AppVersionDeclinedOriginal,\n AppVersionReleased as AppVersionReleasedOriginal,\n AppVersionApproved as AppVersionApprovedOriginal,\n AppVersionDraftChanged as AppVersionDraftChangedOriginal,\n AppVersionArchived as AppVersionArchivedOriginal,\n VersionStatus as VersionStatusOriginal,\n VersionStatusWithLiterals as VersionStatusWithLiteralsOriginal,\n PartialVersionOptions as PartialVersionOptionsOriginal,\n SetOwnershipTagRequest as SetOwnershipTagRequestOriginal,\n SetOwnershipTagResponse as SetOwnershipTagResponseOriginal,\n SetHipaaCompliantRequest as SetHipaaCompliantRequestOriginal,\n SetHipaaCompliantResponse as SetHipaaCompliantResponseOriginal,\n SetCacheableAppRequest as SetCacheableAppRequestOriginal,\n SetCacheableAppResponse as SetCacheableAppResponseOriginal,\n SetComponentsMetadataRequest as SetComponentsMetadataRequestOriginal,\n SetComponentsMetadataResponse as SetComponentsMetadataResponseOriginal,\n SetExceededSizeRequest as SetExceededSizeRequestOriginal,\n SetExceededSizeResponse as SetExceededSizeResponseOriginal,\n CreateServiceAppRequest as CreateServiceAppRequestOriginal,\n CreateServiceAppResponse as CreateServiceAppResponseOriginal,\n AssociateServiceAppRequest as AssociateServiceAppRequestOriginal,\n AssociateServiceAppResponse as AssociateServiceAppResponseOriginal,\n} from './devcenter-apps-v1-app-apps.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,6BAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,cAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,oCAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,iBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,IAAM,oBAAoB;AAAA,EACxB,EAAE,MAAM,kBAAkB;AAAA,EAC1B,EAAE,MAAM,kBAAkB;AAAA,EAC1B,EAAE,MAAM,0CAA0C;AACpD;AACA,IAAM,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC;AAC3C,IAAM,oBAAoB,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAE7D,SAAS,wCACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,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B,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,EAAE,OAAO,SAAS;AAElC,QAAM,oBAC4B,aAAa,OAAO;AAEtD,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,EAAE,OAAO,QAAQ;AAAA,IAC7B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createApp","createSecondarySecret","generateSlug","getApp","getNamespaceSuggestion","getNamespaceSuggestionByName","revokeSecret","setNamespace","updateApp","import_timestamp","import_rest_modules","payload","Status","AppType","CreatedByType","ShowConsentBehaviour","RedirectTarget","OpenButtonAction","UninstallActions","PermissionLevel","LoginPolicy","WebhookIdentityType","RequestedFields","NamespaceType","ForceCascadeDeleteAppDecision","SortOrder","Action","SecretToRevoke","VersionStatus","createApp","getApp","updateApp","generateSlug","getNamespaceSuggestion","getNamespaceSuggestionByName","setNamespace","createSecondarySecret","revokeSecret"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/devcenter-apps-v1-app-apps.http.ts","../../src/devcenter-apps-v1-app-apps.types.ts","../../src/devcenter-apps-v1-app-apps.meta.ts"],"sourcesContent":["export * from './src/devcenter-apps-v1-app-apps.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\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 = [\n { path: 'app.createdDate' },\n { path: 'app.updatedDate' },\n { path: 'app.appSecrets.previousSecretRevokeDate' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'mask' }];\nconst TRANSFORM_PATHS_2 = [{ path: 'previousSecretRevokeAt' }];\n\nfunction resolveWixDevcenterAppsV1AppsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/apps-service',\n destPath: '/api',\n },\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/apps-service',\n destPath: '',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/_api/apps-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/apps/v1/apps',\n destPath: '/v1/apps',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/apps/v1/apps',\n destPath: '/v1/apps',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_app-management_apps';\n\n/**\n * Creates an app.\n *\n * Don't include `namespace` in the request; use Set Namespace after creating the app.\n * Setting `companionApp` to `true` is restricted to authorized companion-app provisioning services.\n * A supplied `slug` is ignored except for authorized companion-app provisioning callers; use Generate Slug after creation.\n * A supplied `codeIdentifier` must not contain `wix` (case-insensitive).\n */\nexport function createApp(payload: object): RequestOptionsFactory<any> {\n function __createApp({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'POST' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.CreateApp',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createApp;\n}\n\n/**\n * Retrieves an app by ID. App secrets are omitted by default.\n * To include `appSecrets`, add `APP_SECRETS` to `additionalFields`.\n * Retrieving secrets requires authorization to access the app's secrets.\n */\nexport function getApp(payload: object): RequestOptionsFactory<any> {\n function __getApp({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'GET' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.GetApp',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getApp;\n}\n\n/**\n * Updates an app.\n *\n * Each time the app is updated, `revision` increments by 1. The current `revision` must be passed\n * when updating the app. This ensures you're working with the latest app and prevents unintended overwrites.\n * Supports partial updates; specify the app's ID and the fields to change.\n *\n * This method cannot update `appSecrets`, `accountId`, `namespace`, `slug`, `createdBy`,\n * `companionApp`, or `codeIdentifier`. Including any of these fields or their nested fields in the\n * request causes the entire request to fail; they aren't silently ignored.\n * Use Set Namespace to assign a namespace and Generate Slug to generate a slug. To rotate app\n * secrets, use Create Secondary Secret and Revoke Secret. This method does not support changing\n * the owning account, creator, companion-app designation, or code identifier.\n *\n * Changing `status` requires additional status-change authorization beyond permission to update other fields.\n */\nexport function updateApp(payload: object): RequestOptionsFactory<any> {\n function __updateApp({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: TRANSFORM_PATHS_1,\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'PATCH' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.UpdateApp',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{app.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateApp;\n}\n\n/**\n * Generates a slug for the app. If a slug already exists, returns the app with its existing slug.\n * Does not generate a slug for companion apps; a companion app without a slug is returned unchanged.\n * When generating a slug, the stored app name must not contain `wix` for non-Wix apps (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n */\nexport function generateSlug(payload: object): RequestOptionsFactory<any> {\n function __generateSlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'PATCH' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.GenerateSlug',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/generate-slug',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __generateSlug;\n}\n\n/**\n * Suggests a namespace using the app's stored name and its owning account's slug or company name.\n * Falls back to the account slug when no company name is available.\n * Non-Wix app names must not contain `wix` (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n * If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.\n * Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.\n */\nexport function getNamespaceSuggestion(\n payload: object\n): RequestOptionsFactory<any> {\n function __getNamespaceSuggestion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'GET' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.GetNamespaceSuggestion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/suggest-namespace',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getNamespaceSuggestion;\n}\n\n/**\n * Suggests a namespace from the supplied app name and the caller's account or company context.\n * No app ID is required, so this method can be used before creating an app.\n * With `type` set to `COMPANY`, falls back to the account slug if no company name is available.\n * To suggest a namespace for an existing app using its stored name and ownership context, use Get Namespace Suggestion.\n * The supplied name must not contain `wix` (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n * If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.\n * Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.\n */\nexport function getNamespaceSuggestionByName(\n payload: object\n): RequestOptionsFactory<any> {\n function __getNamespaceSuggestionByName({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'GET' as any,\n methodFqn:\n 'wix.devcenter.apps.v1.AppsService.GetNamespaceSuggestionByName',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/suggest-namespace-by-name',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getNamespaceSuggestionByName;\n}\n\n/**\n * Sets the app namespace using the owning account's slug or company name and the supplied `appName`.\n * Falls back to the account slug when no company name is available. A namespace can be set only once.\n * For non-Wix apps, `appName` must not contain `wix` (case-insensitive).\n * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).\n * Unlike namespace suggestions, this method does not automatically add a suffix when the derived namespace is already used.\n * Suggestions are not reservations; on a collision, choose a different `appName` and retry.\n */\nexport function setNamespace(payload: object): RequestOptionsFactory<any> {\n function __setNamespace({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'PATCH' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.SetNamespace',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/set-namespace',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __setNamespace;\n}\n\n/**\n * Shares WIX_DEVELOPERS.MODIFY_APP with the sibling app-write RPCs, which declare no audience\n * (adding one here would break consistent-audience-for-shared-permission across all of them).\n * Renaming the permission would change who is actually authorized, so it stays as-is —\n * the real check is the MANUAL validateUpdateAppPermission(...) in code.\n */\nexport function createSecondarySecret(\n payload: object\n): RequestOptionsFactory<any> {\n function __createSecondarySecret({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'POST' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.CreateSecondarySecret',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/secrets/secondary',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSecondarySecret;\n}\n\n/**\n * Shares WIX_DEVELOPERS.MODIFY_APP with the sibling app-write RPCs, which declare no audience\n * (adding one here would break consistent-audience-for-shared-permission across all of them).\n * Renaming the permission would change who is actually authorized, so it stays as-is —\n * the real check is the MANUAL validateUpdateAppPermission(...) in code.\n */\nexport function revokeSecret(payload: object): RequestOptionsFactory<any> {\n function __revokeSecret({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.devcenter.apps.v1.app',\n method: 'POST' as any,\n methodFqn: 'wix.devcenter.apps.v1.AppsService.RevokeSecret',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixDevcenterAppsV1AppsServiceUrl({\n protoPath: '/v1/apps/{appId}/secrets/revoke',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: TRANSFORM_PATHS_2,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __revokeSecret;\n}\n","/**\n * An app defines the identity and configuration of an extension built for Wix.\n * It contains ownership information, identifiers, authentication settings, and installation preferences.\n * Components, permissions, webhooks, dependencies, and versions are managed through related APIs.\n */\nexport interface V1App {\n /**\n * App ID.\n * @format GUID\n */\n id?: string | null;\n /**\n * The display name shown to users and in App Market after publication, separate from the namespace, slug, and code identifier.\n * On creation and update, `<`, `>`, double quotes, and apostrophes are escaped as\n * `<`, `>`, `"`, and `'`. Responses contain the escaped value, which can be longer than the submitted name.\n * @maxLength 50\n */\n name?: string;\n /**\n * ID of the account that owns the app.\n * @readonly\n * @format GUID\n */\n accountId?: string | null;\n /**\n * Secrets for authentication and webhooks. Omitted from Get App responses by default.\n * To retrieve them, include `APP_SECRETS` in Get App's `additionalFields`.\n * Requires authorization to access the app's secrets.\n */\n appSecrets?: AppSecrets;\n /**\n * Is Wix owned the application\n * @internal\n */\n wixApp?: boolean;\n /**\n * App namespace, combining an account or company identifier with an app-name component.\n * For example, `@example-company/bookings-helper`.\n * Assign it once through Set Namespace after creating the app. Don't supply it to Create App\n * or Update App. Set Namespace fails if the app already has a namespace.\n * @minLength 1\n * @maxLength 150\n */\n namespace?: string | null;\n /**\n * An identifier for referencing the app in code, separate from its display name, namespace, and slug.\n * Must start with a letter, underscore, or dollar sign; remaining characters can also include digits.\n * JavaScript reserved words aren't rejected. Choose a non-reserved identifier if using this value as a JavaScript variable name.\n * Unique for non-companion apps. Companion apps return the shared value `companionApp`; use `id` to uniquely identify an app.\n * For example, the namespace `@app-builder/my-cool-app` can be represented by the code identifier `AppBuilderMyCoolApp`.\n * @minLength 3\n * @maxLength 150\n */\n codeIdentifier?: string | null;\n /** The state of the application. */\n status?: StatusWithLiterals;\n /**\n * The type of application\n * @internal\n */\n appType?: AppTypeWithLiterals;\n /**\n * Revision number, which increments by 1 each time the app is updated.\n * To prevent conflicting changes, supply the current revision when calling Update App.\n * Retrieve the latest revision through Get App before updating.\n * Ignored when creating an app.\n */\n revision?: string | null;\n /**\n * A human-readable, URL-friendly identifier for the app.\n * @minLength 1\n * @maxLength 50\n */\n slug?: string | null;\n /**\n * @internal\n * @deprecated\n * @targetRemovalDate 2025-11-01\n */\n privateApp?: boolean;\n /** URLs used by the app's OAuth flow. */\n appUrls?: AppUrls;\n /**\n * Identity and creation channel of the user or app that created the app, including its source template when applicable.\n * Create App derives `id` and `type` from the caller's identity, replacing any supplied values.\n * You can supply `sourceTemplateId` during creation. Creator information can't be changed through Update App.\n * @immutable\n */\n createdBy?: CreatedBy;\n /** Settings for post-installation navigation, opening the app, and uninstalling it. */\n installationPreferences?: InstallationPreferences;\n /**\n * Date and time the app was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the app was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Event-based tracking of unreleased changes, grouped by type. Updates asynchronously; see each flag for its tracking scope. */\n unreleasedChanges?: UnreleasedChanges;\n /**\n * The ownership tag of the application\n * @internal\n * @readonly\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string | null;\n /**\n * Indicates if the app is hipaa compliant - only for Wix Apps\n * @internal\n * @readonly\n */\n hipaaCompliant?: boolean | null;\n /**\n * Indicates if this app should be saved into runtime-cache\n * @internal\n * @readonly\n */\n cacheable?: boolean | null;\n /** Indicates whether this app is a companion app assigned to a specific site or account. */\n companionApp?: boolean | null;\n /**\n * Estimated app size if the app runtime data size exceeds soft limit threshold, otherwise None or 0\n * @internal\n * @readonly\n */\n exceededSize?: number | null;\n /**\n * Indicates if the app is partially consumable (only some components). Default is false (app consumed as a whole)\n * @internal\n */\n partiallyConsumable?: boolean | null;\n /**\n * Map from component ID to its metadata (e.g., latest version)\n * @internal\n */\n componentsMetadata?: Record<string, AppComponentMetadata>;\n /**\n * The project ID of the Nile/Ninja service this app belongs to\n * @internal\n * @readonly\n * @maxLength 150\n */\n serviceProjectId?: string | null;\n /**\n * Configuration for HOST_APP type apps\n * @internal\n */\n hostAppConfig?: HostAppConfig;\n}\n\nexport interface AppSecrets {\n /**\n * App authentication secret. Keep this value in a secure backend secret store.\n * During rotation, this field contains the previous secret while both secrets exist.\n * After the previous secret is retired, this field contains the replacement secret.\n * @readonly\n * @format GUID\n */\n appSecret?: string;\n /**\n * PEM-encoded RSA public key used to verify webhook event payloads.\n * @readonly\n * @maxLength 2048\n */\n webhookPublicKey?: string;\n /**\n * Replacement authentication secret used during rotation. Present while the app has two secrets.\n * After the previous secret is retired, this value moves to `appSecret` and this field is cleared.\n * @readonly\n * @format GUID\n */\n appSecondarySecret?: string | null;\n /**\n * Whether the secondary secret is used for token signing. This doesn't indicate whether it is accepted for authentication.\n * @readonly\n */\n secondarySecretActive?: boolean;\n /**\n * When the previous secret is scheduled to be deleted. Set only while a revocation is pending\n * @internal\n * @readonly\n */\n previousSecretRevokeDate?: Date | null;\n}\n\nexport enum Status {\n ACTIVE = 'ACTIVE',\n /** @internal */\n DEPRECATED = 'DEPRECATED',\n ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals = Status | 'ACTIVE' | 'ARCHIVED';\n\nexport enum AppType {\n /** A Regular app entity - used to installed on sites */\n SITE_APP = 'SITE_APP',\n /** represents an account API KEY to access wix services */\n API_KEY = 'API_KEY',\n /** represents an app developed for Velo editor */\n VELO_APP = 'VELO_APP',\n /**\n * deprecated. private apps are site apps which are released and unpublished\n * @internal\n */\n PRIVATE_APP = 'PRIVATE_APP',\n /** represents an External Headless (3rd party) App that has access to Wix Public Services */\n HEADLESS = 'HEADLESS',\n /** represents an app specific to a Meta Site that stores data about Activated Functions in that Meta Site */\n FUNCTION_ACTIVATION_APP = 'FUNCTION_ACTIVATION_APP',\n /**\n * represents an app for a Nile/Ninja service project\n * @internal\n */\n SERVICE_APP = 'SERVICE_APP',\n /**\n * represents a platform surface that other apps plug into\n * @internal\n */\n HOST_APP = 'HOST_APP',\n}\n\n/** @enumType */\nexport type AppTypeWithLiterals =\n | AppType\n | 'SITE_APP'\n | 'API_KEY'\n | 'VELO_APP'\n | 'HEADLESS'\n | 'FUNCTION_ACTIVATION_APP';\n\nexport interface AppUrls {\n /**\n * App URL used to initiate the OAuth flow.\n * @format WEB_URL\n */\n appUri?: string | null;\n /**\n * Allowed redirect URLs for the app's OAuth flow.\n * @format WEB_URL\n * @maxSize 100\n */\n redirectUris?: string[];\n}\n\nexport interface CreatedBy {\n /**\n * Creator ID derived from the caller's identity; a supplied value is replaced during creation.\n * Identifies a user for `USER`, `CODE_GEN`, and `APP_BUILDER_SELF_HOSTED`, or an app for `APP`.\n * @format GUID\n */\n id?: string;\n /** Creator identity or creation channel, derived from the caller's identity rather than a supplied value. */\n type?: CreatedByTypeWithLiterals;\n /**\n * ID of the source template, when applicable. Can be supplied to Create App.\n * @format GUID\n */\n sourceTemplateId?: string | null;\n}\n\nexport enum CreatedByType {\n /** Created by a user; `id` is the user's ID. */\n USER = 'USER',\n /** Created by an app; `id` is the app's ID. */\n APP = 'APP',\n /** Created through code generation; `id` is the initiating user's ID. */\n CODE_GEN = 'CODE_GEN',\n /** Created through the self-hosted app builder; `id` is the initiating user's ID. */\n APP_BUILDER_SELF_HOSTED = 'APP_BUILDER_SELF_HOSTED',\n}\n\n/** @enumType */\nexport type CreatedByTypeWithLiterals =\n | CreatedByType\n | 'USER'\n | 'APP'\n | 'CODE_GEN'\n | 'APP_BUILDER_SELF_HOSTED';\n\nexport interface InstallationPreferences\n extends InstallationPreferencesOpenButtonOptionsOneOf {\n /** Component to open. Supply `componentId` when `openButtonAction` is `OPEN_COMPONENT_ID`. */\n openComponentIdOptions?: OpenComponentId;\n /**\n * Preferred destination after installing an app with both editor and dashboard components.\n * A recognized dashboard page in `postInstallationComponentId` takes precedence over this preference.\n * Otherwise, `DASHBOARD` selects the dashboard and `EDITOR` selects the editor.\n * On sites without an editor, `EDITOR` falls back to the dashboard.\n * `UNKNOWN_REDIRECT_TARGET` leaves the default installation navigation unchanged.\n */\n overridePostInstallationRedirect?: RedirectTargetWithLiterals;\n /**\n * Optional ID of the app's dashboard page to open after installation.\n * A recognized dashboard page takes precedence over `overridePostInstallationRedirect`.\n * If omitted or not recognized as a dashboard page, navigation uses the redirect preference\n * or the default installation flow. This field doesn't select an editor component.\n * @format GUID\n */\n postInstallationComponentId?: string | null;\n /**\n * Action performed when the user selects the app's Open button after installation.\n * For `OPEN_COMPONENT_ID`, supply `openComponentIdOptions.componentId`.\n * `UNKNOWN_ACTION` means no explicit component-opening action is selected.\n */\n openButtonAction?: OpenButtonActionWithLiterals;\n /**\n * Indicates the different consent options the app could define post installation\n * @internal\n */\n consentOptions?: ConsentOptions;\n /**\n * Custom warning shown when a user tries to uninstall the app.\n * Select `NO_ACTION` for no custom warning; `NONE_ACTION` represents an unspecified preference.\n * The product and shipping values select warning text, rather than performing cleanup.\n */\n uninstallAction?: UninstallActionsWithLiterals;\n}\n\n/** @oneof */\nexport interface InstallationPreferencesOpenButtonOptionsOneOf {\n /** Component to open. Supply `componentId` when `openButtonAction` is `OPEN_COMPONENT_ID`. */\n openComponentIdOptions?: OpenComponentId;\n}\n\nexport enum ShowConsentBehaviour {\n DEFAULT_BEHAVIOUR = 'DEFAULT_BEHAVIOUR',\n SHOW_CONSENT = 'SHOW_CONSENT',\n SKIP_CONSENT = 'SKIP_CONSENT',\n}\n\n/** @enumType */\nexport type ShowConsentBehaviourWithLiterals =\n | ShowConsentBehaviour\n | 'DEFAULT_BEHAVIOUR'\n | 'SHOW_CONSENT'\n | 'SKIP_CONSENT';\n\nexport enum RedirectTarget {\n /** Use the default installation navigation. */\n UNKNOWN_REDIRECT_TARGET = 'UNKNOWN_REDIRECT_TARGET',\n /** Prefer the site dashboard for an app with editor and dashboard components. */\n DASHBOARD = 'DASHBOARD',\n /** Prefer the editor; use the dashboard on sites without an editor. */\n EDITOR = 'EDITOR',\n}\n\n/** @enumType */\nexport type RedirectTargetWithLiterals =\n | RedirectTarget\n | 'UNKNOWN_REDIRECT_TARGET'\n | 'DASHBOARD'\n | 'EDITOR';\n\nexport enum OpenButtonAction {\n /** No explicit component-opening action is selected. */\n UNKNOWN_ACTION = 'UNKNOWN_ACTION',\n /** Open the component specified by `openComponentIdOptions.componentId`. */\n OPEN_COMPONENT_ID = 'OPEN_COMPONENT_ID',\n}\n\n/** @enumType */\nexport type OpenButtonActionWithLiterals =\n | OpenButtonAction\n | 'UNKNOWN_ACTION'\n | 'OPEN_COMPONENT_ID';\n\nexport interface ConsentOptions {\n /** Indicates the different behaviours available for showing the consent form post installation */\n showConsentBehaviour?: ShowConsentBehaviourWithLiterals;\n}\n\nexport interface OpenComponentId {\n /**\n * ID of the component opened when the user selects the app's Open button.\n * @format GUID\n */\n componentId?: string;\n}\n\nexport enum UninstallActions {\n /** Unspecified warning preference. Use `NO_ACTION` to explicitly select no custom warning. */\n NONE_ACTION = 'NONE_ACTION',\n /** Show the standard uninstall message without a custom warning. Default when no preference is stored. */\n NO_ACTION = 'NO_ACTION',\n /** Warn users to remove all products associated with the app from their store. */\n REMOVE_ALL_PRODUCT = 'REMOVE_ALL_PRODUCT',\n /** Warn users that shipping to regions served only by the app will be removed from checkout. */\n SHIPPING_RATES_REGION = 'SHIPPING_RATES_REGION',\n}\n\n/** @enumType */\nexport type UninstallActionsWithLiterals =\n | UninstallActions\n | 'NONE_ACTION'\n | 'NO_ACTION'\n | 'REMOVE_ALL_PRODUCT'\n | 'SHIPPING_RATES_REGION';\n\n/**\n * Event-based tracking of changes not yet included in a released app version.\n * Flags update asynchronously and reset when a production app version is created or updated.\n */\nexport interface UnreleasedChanges {\n /** Whether components have unreleased creation, update, or deletion changes. */\n componentsChanges?: boolean;\n /** Whether app translations have unreleased creation or update changes. */\n appTranslationsChanges?: boolean;\n /**\n * Whether component translations have unreleased update changes.\n * Component-translation creation events currently aren't reflected in this flag.\n */\n componentsTranslationChanges?: boolean;\n /**\n * Indicate components experiments changes (create, update, delete)\n * @internal\n */\n componentsExperimentsChanges?: boolean;\n /**\n * Whether app permissions have unreleased creation or update changes.\n * Permission-deletion events currently aren't reflected in this flag.\n */\n appPermissionsChanges?: boolean;\n /**\n * Whether app identity fields have unreleased changes, such as `name`, `slug`, `namespace`, and `codeIdentifier`.\n * Doesn't track changes to `appUrls` or `installationPreferences`.\n * Updates asynchronously after the app's update event; the update response may not yet reflect this flag.\n */\n appEntityChanges?: boolean;\n}\n\nexport interface AppComponentMetadata {\n /** Version counter for the component */\n versionCounter?: string | null;\n}\n\nexport interface HostAppConfig {\n /**\n * The domain this host app represents\n * @minLength 1\n * @maxLength 71\n */\n hostDomain?: string;\n /**\n * Permission levels allowed without security approval\n * @maxSize 3\n */\n allowedPermissionLevels?: PermissionLevelWithLiterals[];\n /** Whether login is required or optional for this host app */\n loginPolicy?: LoginPolicyWithLiterals;\n}\n\nexport enum PermissionLevel {\n PERMISSION_LEVEL_UNKNOWN = 'PERMISSION_LEVEL_UNKNOWN',\n PERMISSION_LEVEL_SITE = 'PERMISSION_LEVEL_SITE',\n PERMISSION_LEVEL_ACCOUNT = 'PERMISSION_LEVEL_ACCOUNT',\n PERMISSION_LEVEL_ORG = 'PERMISSION_LEVEL_ORG',\n}\n\n/** @enumType */\nexport type PermissionLevelWithLiterals =\n | PermissionLevel\n | 'PERMISSION_LEVEL_UNKNOWN'\n | 'PERMISSION_LEVEL_SITE'\n | 'PERMISSION_LEVEL_ACCOUNT'\n | 'PERMISSION_LEVEL_ORG';\n\nexport enum LoginPolicy {\n LOGIN_POLICY_UNKNOWN = 'LOGIN_POLICY_UNKNOWN',\n LOGIN_POLICY_REQUIRED = 'LOGIN_POLICY_REQUIRED',\n LOGIN_POLICY_OPTIONAL = 'LOGIN_POLICY_OPTIONAL',\n}\n\n/** @enumType */\nexport type LoginPolicyWithLiterals =\n | LoginPolicy\n | 'LOGIN_POLICY_UNKNOWN'\n | 'LOGIN_POLICY_REQUIRED'\n | 'LOGIN_POLICY_OPTIONAL';\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 AppOwnerChangedEvent {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n /**\n * the current account id\n * @format GUID\n */\n accountId?: string;\n /**\n * the previous account id\n * @format GUID\n */\n previousAccountId?: string;\n}\n\nexport interface CreateAppRequest {\n /** App to create. */\n app: V1App;\n}\n\nexport interface CreateAppResponse {\n /** Created app. */\n app?: V1App;\n}\n\nexport interface GetAppRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId: string;\n /**\n * Deprecated. Used only for supporting the old Apps Service. Use `additional_fields` instead.\n * @internal\n * @deprecated\n */\n withSecrets?: boolean;\n /** Whether to use a consistent read to retrieve the latest stored app data. Default: `false`. */\n consistent?: boolean;\n /**\n * Additional fields to include in the response. Include `APP_SECRETS` to return `app.appSecrets`, which is omitted by default.\n * Retrieving secrets requires authorization to access the app's secrets.\n * @maxSize 1\n */\n additionalFields?: RequestedFieldsWithLiterals[];\n}\n\n/** A list of possible additional fields to be included in the response. */\nexport enum RequestedFields {\n /** Includes `app.appSecrets` in the Get App response. Requires authorization to access the app's secrets. */\n APP_SECRETS = 'APP_SECRETS',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals = RequestedFields | 'APP_SECRETS';\n\nexport interface GetAppResponse {\n /** Retrieved app. */\n app?: V1App;\n}\n\nexport interface UpdateAppRequest {\n /** App to update. Specify the app ID, current revision, and fields to change. */\n app: V1App;\n /**\n * Explicit list of fields to update\n * @internal\n */\n mask?: string[];\n}\n\nexport interface UpdateAppResponse {\n /** Updated app. */\n app?: V1App;\n}\n\nexport interface GenerateSlugRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId: string;\n}\n\nexport interface GenerateSlugResponse {\n /** App with its generated or existing slug. */\n app?: V1App;\n}\n\nexport interface RenameSlugRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n /**\n * rename slug to this value\n * @minLength 1\n * @maxLength 50\n */\n newSlug?: string;\n}\n\nexport interface RenameSlugResponse {\n /** App with its slug updated to the requested `newSlug`. */\n app?: V1App;\n}\n\nexport interface RenameCodeIdentifierRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n /**\n * The new code identifier value\n * @minLength 3\n * @maxLength 150\n */\n newCodeIdentifier?: string;\n}\n\nexport interface RenameCodeIdentifierResponse {\n /** App with its updated code identifier. */\n app?: V1App;\n}\n\nexport interface GetNamespaceSuggestionRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId: string;\n /** Whether to derive the namespace from the owning account or company. Default: `ACCOUNT`. */\n type?: NamespaceTypeWithLiterals;\n}\n\nexport enum NamespaceType {\n /** Uses the account slug. */\n ACCOUNT = 'ACCOUNT',\n /** Uses the company name, falling back to the account slug when unavailable. */\n COMPANY = 'COMPANY',\n}\n\n/** @enumType */\nexport type NamespaceTypeWithLiterals = NamespaceType | 'ACCOUNT' | 'COMPANY';\n\nexport interface GetNamespaceSuggestionResponse {\n /** Suggested namespace. */\n namespace?: string;\n}\n\nexport interface GetNamespaceSuggestionByNameRequest {\n /**\n * App display name used to derive a namespace suggestion.\n * @maxLength 50\n */\n name: string;\n /** Whether to derive the namespace from the caller's account or company. Default: `ACCOUNT`. */\n type?: NamespaceTypeWithLiterals;\n}\n\nexport interface GetNamespaceSuggestionByNameResponse {\n /**\n * Suggested namespace.\n * @minLength 1\n * @maxLength 150\n */\n namespace?: string;\n}\n\nexport interface SetNamespaceRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId: string;\n /**\n * Name used to derive the app's namespace component.\n * Lowercased; runs of non-alphanumeric characters (including spaces and underscores) become hyphens, with leading/trailing separators removed.\n * For example, `Bookings Helper` and `Bookings_Helper` become `bookings-helper`. If no letters or digits remain, uses `untitled`.\n * Subject to the reserved-name restrictions documented on Set Namespace. For permitted Wix-owned apps, `wix` is removed before normalization.\n * @maxLength 50\n */\n appName: string;\n /** Whether to derive the namespace from the owning account or company. Default: `ACCOUNT`. */\n type?: NamespaceTypeWithLiterals;\n}\n\nexport interface SetNamespaceResponse {\n /** Assigned namespace in the format `@account-or-company/app-name`. */\n namespace?: string;\n}\n\nexport interface SuggestCodeIdentifierRequest {\n /**\n * App ID\n * @format GUID\n */\n appId?: string | null;\n /**\n * The namespace to convert to a code identifier\n * @minLength 1\n * @maxLength 150\n */\n namespace?: string;\n}\n\nexport interface SuggestCodeIdentifierResponse {\n /**\n * The suggested code identifier\n * @maxLength 150\n */\n codeIdentifier?: string;\n}\n\nexport interface SetCodeIdentifierRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n /**\n * The code identifier to set\n * @minLength 3\n * @maxLength 150\n */\n codeIdentifier?: string;\n}\n\nexport interface SetCodeIdentifierResponse {\n /**\n * The set code identifier\n * @minLength 3\n * @maxLength 150\n */\n codeIdentifier?: string;\n}\n\nexport interface DeleteAppRequest {\n /**\n * Id of the App to delete\n * @format GUID\n */\n appId?: string;\n /**\n * @internal\n * @deprecated\n * @targetRemovalDate 2027-04-11\n */\n revision?: string;\n}\n\nexport interface DeleteAppResponse {}\n\nexport interface UpdateHostAppConfigRequest {\n /**\n * Id of the HOST_APP to update\n * @format GUID\n */\n appId?: string;\n /** Current revision for optimistic locking */\n revision?: string;\n /** The new host app configuration */\n hostAppConfig?: HostAppConfig;\n}\n\nexport interface UpdateHostAppConfigResponse {\n /** The updated Host App */\n app?: V1App;\n}\n\nexport interface ForceCascadeDeleteAppRequest {\n /**\n * Id of the (already-deleted) app whose orphaned satellite data should be purged\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface ForceCascadeDeleteAppResponse {\n /** What the call actually did */\n decision?: ForceCascadeDeleteAppDecisionWithLiterals;\n}\n\nexport enum ForceCascadeDeleteAppDecision {\n /** app still exists in apps-service — refused (never delete a live app) */\n SKIPPED_LIVE = 'SKIPPED_LIVE',\n /** app still exists in the old app-service (not deleted / un-migrated) — refused */\n SKIPPED_UNMIGRATED = 'SKIPPED_UNMIGRATED',\n /** orphan confirmed absent everywhere; cascade delete ran */\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type ForceCascadeDeleteAppDecisionWithLiterals =\n | ForceCascadeDeleteAppDecision\n | 'SKIPPED_LIVE'\n | 'SKIPPED_UNMIGRATED'\n | 'DELETED';\n\nexport interface QueryAppRequest {\n /** WQL expression */\n query?: QueryV2;\n /** Using read-write connection? default \"false\" (using read connection) */\n consistent?: boolean;\n /** Should also count the total numbers of results? (NOTICE: It will have slight impact on performance) */\n countResults?: boolean;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset 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.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n */\n sort?: Sorting[];\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 fields?: string[];\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 fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and offset 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 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\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 * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token 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 QueryAppResponse {\n /** The retrieved Apps */\n apps?: V1App[];\n /** Paging data when relevant */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\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 * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface SetPrivateAppRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n /** The value to set to private app */\n privateApp?: boolean;\n /** The revision of the App */\n revision?: string;\n}\n\nexport interface SetPrivateAppResponse {\n /** App with its `privateApp` setting updated to the requested value. */\n app?: V1App;\n}\n\nexport interface AppChangedEvent {\n app?: App;\n action?: ActionWithLiterals;\n updatedFields?: string[];\n}\n\n/** Fake main entity - once we'll refactor this service - we'll need to fill the properties here and start using it as the main service entity */\nexport interface App {\n /**\n * The id of the app\n * @format GUID\n */\n id?: string;\n /** The name of the App */\n name?: string;\n /**\n * App's icon, to be displayed in UI\n * @format URI\n */\n iconUrl?: string | null;\n /** App's latest GA version, formatted as xx.xx.xx */\n latestVersion?: string | null;\n /** Is it a Wix app? */\n isWixApp?: boolean;\n /** application status calculated from app versions status */\n appStatus?: string;\n /** Can the app be updated? */\n isEditable?: boolean;\n /** Used to create signed instances/authenticate with oauth provider */\n appSecret?: string;\n /** Used to sign webhooks that are sent to tpas */\n webhooksPublicKey?: string | null;\n /** Is it a core Wix app? */\n isCoreApp?: boolean;\n /** The namespace of the App */\n namespace?: string | null;\n /**\n * The team id which the App belongs to\n * @format GUID\n */\n teamId?: string | null;\n /** The company id which the App belongs to */\n companyId?: string | null;\n /** The type of App */\n classification?: string | null;\n /** if true, app will not show on the managed apps page */\n hideFromManagedApps?: boolean;\n /** true if and ony if the app is archived */\n isArchived?: boolean;\n /** updates only one time, when the app is published for the first time */\n firstPublishDate?: string | null;\n /** represents all the contactEmails */\n contactEmails?: ContactEmails;\n}\n\nexport interface ContactEmails {\n /** @format EMAIL */\n supportEmails?: string[];\n /** @format EMAIL */\n urgentEmails?: string[];\n /** @format EMAIL */\n billingEmails?: string[];\n}\n\nexport enum Action {\n CREATED = 'CREATED',\n UPDATED = 'UPDATED',\n DEPRECATED = 'DEPRECATED',\n DELETED = 'DELETED',\n}\n\n/** @enumType */\nexport type ActionWithLiterals =\n | Action\n | 'CREATED'\n | 'UPDATED'\n | 'DEPRECATED'\n | 'DELETED';\n\nexport interface Empty {}\n\nexport interface AppSlugChanged {\n /**\n * app id of the app with the changed slug\n * @format GUID\n */\n appId?: string;\n /**\n * The slug of the app. A human readable identifier of the app\n * @minLength 1\n * @maxLength 200\n */\n slug?: string;\n}\n\nexport interface SetAppOwnerRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n /**\n * Id of the account to update\n * @format GUID\n */\n accountId?: string;\n /** The revision of the App */\n revision?: string;\n}\n\nexport interface SetAppOwnerResponse {\n /** App owned by the requested `accountId`. */\n app?: V1App;\n}\n\nexport interface AppUrlsChangedInOldServiceEvent\n extends AppUrlsChangedInOldServiceEventChangedUrlOneOf {\n /** the app url of OAuth */\n appUriMessage?: AppUriMessage;\n /** redirect uris */\n redirectUriMessage?: RedirectUrlMessage;\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface AppUrlsChangedInOldServiceEventChangedUrlOneOf {\n /** the app url of OAuth */\n appUriMessage?: AppUriMessage;\n /** redirect uris */\n redirectUriMessage?: RedirectUrlMessage;\n}\n\nexport interface AppUriMessage {\n /** the app url of OAuth */\n appUri?: string | null;\n}\n\nexport interface RedirectUrlMessage {\n /** list of redirect urls of OAuth */\n redirectUris?: string[];\n}\n\nexport interface CreateSecondarySecretRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId: string;\n /** Latest app revision, available from Get App. An outdated revision is rejected. */\n revision?: string;\n}\n\nexport interface CreateSecondarySecretResponse {\n /** Updated app, including the previous appSecrets.appSecret and new appSecrets.appSecondarySecret. */\n app?: V1App;\n}\n\nexport interface ActivateSecondarySecretRequest {\n /**\n * ID of the App you want to enable the secondary secret for\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface ActivateSecondarySecretResponse {\n /** The app with the new secrets state */\n app?: V1App;\n}\n\nexport interface RotateSecretRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface RotateSecretResponse {\n /** The app with the new secrets state */\n app?: V1App;\n}\n\nexport interface RollbackSecretRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface RollbackSecretResponse {\n /** The app with the new secrets state */\n app?: V1App;\n}\n\nexport interface RevokeSecretRequest {\n /**\n * App ID.\n * @format GUID\n */\n appId: string;\n /** Credential to revoke. The app must have both a previous and a replacement secret. */\n secretToRevoke: SecretToRevokeWithLiterals;\n}\n\n/** Credential to revoke during app-secret rotation. */\nexport enum SecretToRevoke {\n /** Switch signing to the replacement secret and schedule retirement of the previous secret. */\n PREVIOUS_SECRET = 'PREVIOUS_SECRET',\n /** Discard the replacement secret and restore signing with the previous secret. */\n NEW_SECRET = 'NEW_SECRET',\n}\n\n/** @enumType */\nexport type SecretToRevokeWithLiterals =\n | SecretToRevoke\n | 'PREVIOUS_SECRET'\n | 'NEW_SECRET';\n\nexport interface RevokeSecretResponse {\n /** Scheduled retirement time of the previous secret. Returned for `PREVIOUS_SECRET` and omitted for `NEW_SECRET`. Use the latest returned timestamp. */\n previousSecretRevokeAt?: Date | null;\n}\n\n/** payload for kafka event for this version on app submit */\nexport interface AppVersionStateChanged\n extends AppVersionStateChangedStateOneOf {\n created?: AppVersionCreated;\n submitted?: AppVersionSubmitted;\n published?: AppVersionPublished;\n declined?: AppVersionDeclined;\n released?: AppVersionReleased;\n approved?: AppVersionApproved;\n draftChanged?: AppVersionDraftChanged;\n archived?: AppVersionArchived;\n /** @format GUID */\n appId?: string;\n /** @readonly */\n version?: string;\n previousState?: VersionStatusWithLiterals;\n /**\n * If defined, only a partial snapshot of the app draft was updated\n * @internal\n */\n partialVersionOptions?: PartialVersionOptions;\n}\n\n/** @oneof */\nexport interface AppVersionStateChangedStateOneOf {\n created?: AppVersionCreated;\n submitted?: AppVersionSubmitted;\n published?: AppVersionPublished;\n declined?: AppVersionDeclined;\n released?: AppVersionReleased;\n approved?: AppVersionApproved;\n draftChanged?: AppVersionDraftChanged;\n archived?: AppVersionArchived;\n}\n\nexport interface AppVersionCreated {}\n\nexport interface AppVersionSubmitted {}\n\nexport interface AppVersionPublished {}\n\nexport interface AppVersionDeclined {}\n\nexport interface AppVersionReleased {}\n\nexport interface AppVersionApproved {}\n\nexport interface AppVersionDraftChanged {}\n\nexport interface AppVersionArchived {}\n\nexport enum VersionStatus {\n /** default, internal use status. do not use */\n NONE_STATUS = 'NONE_STATUS',\n /** a version which was created in the dev center and has not started the approval process yet */\n DRAFT = 'DRAFT',\n /** the version was submitted for review by the developer */\n SUBMITTED = 'SUBMITTED',\n /** the version is being reviewed by the app market team in cactus */\n IN_REVIEW = 'IN_REVIEW',\n /** our team approved the version */\n APPROVED = 'APPROVED',\n /** this version is published - only one version can be published at any given time; if this app was already published, the previously published version's status is now ARCHIVED */\n PUBLISHED = 'PUBLISHED',\n /** our team did not accept this version of the app */\n DECLINED = 'DECLINED',\n /** the status for versions that are no longer relevant */\n ARCHIVED = 'ARCHIVED',\n /** status for versions with no significant changes, e.g. for test app. for questions contact our team */\n HIDDEN = 'HIDDEN',\n /** mark apps as RELEASED, without adding to the apps cache, and allow users to install */\n RELEASED = 'RELEASED',\n}\n\n/** @enumType */\nexport type VersionStatusWithLiterals =\n | VersionStatus\n | 'NONE_STATUS'\n | 'DRAFT'\n | 'SUBMITTED'\n | 'IN_REVIEW'\n | 'APPROVED'\n | 'PUBLISHED'\n | 'DECLINED'\n | 'ARCHIVED'\n | 'HIDDEN'\n | 'RELEASED';\n\nexport interface PartialVersionOptions {\n /** Include dev center draft changes in the submitted data */\n includeDraftDevCenterData?: boolean;\n /** Include market listing draft data in the submitted data */\n includeDraftMarketListingData?: boolean;\n /** Include pricing info draft data in the submitted data */\n includeDraftPricingInfoData?: boolean;\n}\n\nexport interface SetOwnershipTagRequest {\n /**\n * App id of the app to act on\n * @format GUID\n */\n appId?: string;\n /**\n * Ownership tag to set\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string;\n}\n\nexport interface SetOwnershipTagResponse {}\n\nexport interface SetHipaaCompliantRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** Is the app HIPAA compliant */\n hipaaCompliant?: boolean;\n}\n\nexport interface SetHipaaCompliantResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface SetCacheableAppRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** Is the app cacheable */\n cacheable?: boolean;\n}\n\nexport interface SetCacheableAppResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface SetComponentsMetadataRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** Map from component ID to its metadata */\n componentsMetadata?: Record<string, AppComponentMetadata>;\n /** The revision of the App */\n revision?: string;\n}\n\nexport interface SetComponentsMetadataResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface SetExceededSizeRequest {\n /**\n * App id of the app to update\n * @format GUID\n */\n appId?: string;\n /** The size in bytes when app runtime data exceeds 4MB threshold */\n exceededSize?: number;\n}\n\nexport interface SetExceededSizeResponse {\n /** The updated app */\n app?: V1App;\n}\n\nexport interface CreateServiceAppRequest {\n /**\n * The NN project name, including prefix of group id, for example: com.wixpress.artifact-name. The full value is stored as service_project_id; the app name is derived from the final segment (artifact-name)\n * @minLength 1\n * @maxLength 150\n */\n projectName?: string;\n /**\n * Ownership tag of the service app\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string;\n}\n\nexport interface CreateServiceAppResponse {\n /** The created service app */\n app?: V1App;\n}\n\nexport interface AssociateServiceAppRequest {\n /**\n * Id of the existing Wix app to convert into a service app\n * @format GUID\n */\n appId?: string;\n /**\n * The NN project name, including prefix of group id, for example: com.wixpress.artifact-name. Stored as service_project_id\n * @minLength 1\n * @maxLength 150\n */\n projectName?: string;\n /**\n * Ownership tag. Set on the app when it has none yet; when the app is already tagged this is asserted to match the existing tag (a differing tag is rejected) — it cannot reassign ownership.\n * @minLength 1\n * @maxLength 100\n */\n ownershipTag?: string;\n}\n\nexport interface AssociateServiceAppResponse {\n /** The updated service app */\n app?: V1App;\n}\n","import * as ambassadorWixDevcenterAppsV1App from './devcenter-apps-v1-app-apps.http.js';\nimport * as ambassadorWixDevcenterAppsV1AppTypes from './devcenter-apps-v1-app-apps.types.js';\nimport * as ambassadorWixDevcenterAppsV1AppUniversalTypes from './devcenter-apps-v1-app-apps.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 createApp(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateAppRequest,\n ambassadorWixDevcenterAppsV1AppTypes.CreateAppRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateAppResponse,\n ambassadorWixDevcenterAppsV1AppTypes.CreateAppResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixDevcenterAppsV1App.createApp(payload);\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/apps',\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 getApp(): __PublicMethodMetaInfo<\n 'GET',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetAppRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GetAppRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetAppResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GetAppResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions = ambassadorWixDevcenterAppsV1App.getApp(payload);\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/apps/{appId}',\n pathParams: { appId: 'appId' },\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 updateApp(): __PublicMethodMetaInfo<\n 'PATCH',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.UpdateAppRequest,\n ambassadorWixDevcenterAppsV1AppTypes.UpdateAppRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.UpdateAppResponse,\n ambassadorWixDevcenterAppsV1AppTypes.UpdateAppResponse\n> {\n const payload = { app: { id: ':appId' } } as any;\n\n const getRequestOptions = ambassadorWixDevcenterAppsV1App.updateApp(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/apps/{app.id}',\n pathParams: { appId: 'appId' },\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 generateSlug(): __PublicMethodMetaInfo<\n 'PATCH',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GenerateSlugRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GenerateSlugRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GenerateSlugResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GenerateSlugResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.generateSlug(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/apps/{appId}/generate-slug',\n pathParams: { appId: 'appId' },\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 getNamespaceSuggestion(): __PublicMethodMetaInfo<\n 'GET',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.getNamespaceSuggestion(payload);\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/apps/{appId}/suggest-namespace',\n pathParams: { appId: 'appId' },\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 getNamespaceSuggestionByName(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionByNameRequest,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionByNameRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.GetNamespaceSuggestionByNameResponse,\n ambassadorWixDevcenterAppsV1AppTypes.GetNamespaceSuggestionByNameResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.getNamespaceSuggestionByName(payload);\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/apps/suggest-namespace-by-name',\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 setNamespace(): __PublicMethodMetaInfo<\n 'PATCH',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.SetNamespaceRequest,\n ambassadorWixDevcenterAppsV1AppTypes.SetNamespaceRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.SetNamespaceResponse,\n ambassadorWixDevcenterAppsV1AppTypes.SetNamespaceResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.setNamespace(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/apps/{appId}/set-namespace',\n pathParams: { appId: 'appId' },\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 createSecondarySecret(): __PublicMethodMetaInfo<\n 'POST',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateSecondarySecretRequest,\n ambassadorWixDevcenterAppsV1AppTypes.CreateSecondarySecretRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.CreateSecondarySecretResponse,\n ambassadorWixDevcenterAppsV1AppTypes.CreateSecondarySecretResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.createSecondarySecret(payload);\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/apps/{appId}/secrets/secondary',\n pathParams: { appId: 'appId' },\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 revokeSecret(): __PublicMethodMetaInfo<\n 'POST',\n { appId: string },\n ambassadorWixDevcenterAppsV1AppUniversalTypes.RevokeSecretRequest,\n ambassadorWixDevcenterAppsV1AppTypes.RevokeSecretRequest,\n ambassadorWixDevcenterAppsV1AppUniversalTypes.RevokeSecretResponse,\n ambassadorWixDevcenterAppsV1AppTypes.RevokeSecretResponse\n> {\n const payload = { appId: ':appId' } as any;\n\n const getRequestOptions =\n ambassadorWixDevcenterAppsV1App.revokeSecret(payload);\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/apps/{appId}/secrets/revoke',\n pathParams: { appId: 'appId' },\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 V1App as V1AppOriginal,\n AppSecrets as AppSecretsOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n AppType as AppTypeOriginal,\n AppTypeWithLiterals as AppTypeWithLiteralsOriginal,\n AppUrls as AppUrlsOriginal,\n CreatedBy as CreatedByOriginal,\n CreatedByType as CreatedByTypeOriginal,\n CreatedByTypeWithLiterals as CreatedByTypeWithLiteralsOriginal,\n InstallationPreferences as InstallationPreferencesOriginal,\n InstallationPreferencesOpenButtonOptionsOneOf as InstallationPreferencesOpenButtonOptionsOneOfOriginal,\n ShowConsentBehaviour as ShowConsentBehaviourOriginal,\n ShowConsentBehaviourWithLiterals as ShowConsentBehaviourWithLiteralsOriginal,\n RedirectTarget as RedirectTargetOriginal,\n RedirectTargetWithLiterals as RedirectTargetWithLiteralsOriginal,\n OpenButtonAction as OpenButtonActionOriginal,\n OpenButtonActionWithLiterals as OpenButtonActionWithLiteralsOriginal,\n ConsentOptions as ConsentOptionsOriginal,\n OpenComponentId as OpenComponentIdOriginal,\n UninstallActions as UninstallActionsOriginal,\n UninstallActionsWithLiterals as UninstallActionsWithLiteralsOriginal,\n UnreleasedChanges as UnreleasedChangesOriginal,\n AppComponentMetadata as AppComponentMetadataOriginal,\n HostAppConfig as HostAppConfigOriginal,\n PermissionLevel as PermissionLevelOriginal,\n PermissionLevelWithLiterals as PermissionLevelWithLiteralsOriginal,\n LoginPolicy as LoginPolicyOriginal,\n LoginPolicyWithLiterals as LoginPolicyWithLiteralsOriginal,\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 AppOwnerChangedEvent as AppOwnerChangedEventOriginal,\n CreateAppRequest as CreateAppRequestOriginal,\n CreateAppResponse as CreateAppResponseOriginal,\n GetAppRequest as GetAppRequestOriginal,\n RequestedFields as RequestedFieldsOriginal,\n RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal,\n GetAppResponse as GetAppResponseOriginal,\n UpdateAppRequest as UpdateAppRequestOriginal,\n UpdateAppResponse as UpdateAppResponseOriginal,\n GenerateSlugRequest as GenerateSlugRequestOriginal,\n GenerateSlugResponse as GenerateSlugResponseOriginal,\n RenameSlugRequest as RenameSlugRequestOriginal,\n RenameSlugResponse as RenameSlugResponseOriginal,\n RenameCodeIdentifierRequest as RenameCodeIdentifierRequestOriginal,\n RenameCodeIdentifierResponse as RenameCodeIdentifierResponseOriginal,\n GetNamespaceSuggestionRequest as GetNamespaceSuggestionRequestOriginal,\n NamespaceType as NamespaceTypeOriginal,\n NamespaceTypeWithLiterals as NamespaceTypeWithLiteralsOriginal,\n GetNamespaceSuggestionResponse as GetNamespaceSuggestionResponseOriginal,\n GetNamespaceSuggestionByNameRequest as GetNamespaceSuggestionByNameRequestOriginal,\n GetNamespaceSuggestionByNameResponse as GetNamespaceSuggestionByNameResponseOriginal,\n SetNamespaceRequest as SetNamespaceRequestOriginal,\n SetNamespaceResponse as SetNamespaceResponseOriginal,\n SuggestCodeIdentifierRequest as SuggestCodeIdentifierRequestOriginal,\n SuggestCodeIdentifierResponse as SuggestCodeIdentifierResponseOriginal,\n SetCodeIdentifierRequest as SetCodeIdentifierRequestOriginal,\n SetCodeIdentifierResponse as SetCodeIdentifierResponseOriginal,\n DeleteAppRequest as DeleteAppRequestOriginal,\n DeleteAppResponse as DeleteAppResponseOriginal,\n UpdateHostAppConfigRequest as UpdateHostAppConfigRequestOriginal,\n UpdateHostAppConfigResponse as UpdateHostAppConfigResponseOriginal,\n ForceCascadeDeleteAppRequest as ForceCascadeDeleteAppRequestOriginal,\n ForceCascadeDeleteAppResponse as ForceCascadeDeleteAppResponseOriginal,\n ForceCascadeDeleteAppDecision as ForceCascadeDeleteAppDecisionOriginal,\n ForceCascadeDeleteAppDecisionWithLiterals as ForceCascadeDeleteAppDecisionWithLiteralsOriginal,\n QueryAppRequest as QueryAppRequestOriginal,\n QueryV2 as QueryV2Original,\n QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n AddressLocation as AddressLocationOriginal,\n Paging as PagingOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryAppResponse as QueryAppResponseOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n SetPrivateAppRequest as SetPrivateAppRequestOriginal,\n SetPrivateAppResponse as SetPrivateAppResponseOriginal,\n AppChangedEvent as AppChangedEventOriginal,\n App as AppOriginal,\n ContactEmails as ContactEmailsOriginal,\n Action as ActionOriginal,\n ActionWithLiterals as ActionWithLiteralsOriginal,\n Empty as EmptyOriginal,\n AppSlugChanged as AppSlugChangedOriginal,\n SetAppOwnerRequest as SetAppOwnerRequestOriginal,\n SetAppOwnerResponse as SetAppOwnerResponseOriginal,\n AppUrlsChangedInOldServiceEvent as AppUrlsChangedInOldServiceEventOriginal,\n AppUrlsChangedInOldServiceEventChangedUrlOneOf as AppUrlsChangedInOldServiceEventChangedUrlOneOfOriginal,\n AppUriMessage as AppUriMessageOriginal,\n RedirectUrlMessage as RedirectUrlMessageOriginal,\n CreateSecondarySecretRequest as CreateSecondarySecretRequestOriginal,\n CreateSecondarySecretResponse as CreateSecondarySecretResponseOriginal,\n ActivateSecondarySecretRequest as ActivateSecondarySecretRequestOriginal,\n ActivateSecondarySecretResponse as ActivateSecondarySecretResponseOriginal,\n RotateSecretRequest as RotateSecretRequestOriginal,\n RotateSecretResponse as RotateSecretResponseOriginal,\n RollbackSecretRequest as RollbackSecretRequestOriginal,\n RollbackSecretResponse as RollbackSecretResponseOriginal,\n RevokeSecretRequest as RevokeSecretRequestOriginal,\n SecretToRevoke as SecretToRevokeOriginal,\n SecretToRevokeWithLiterals as SecretToRevokeWithLiteralsOriginal,\n RevokeSecretResponse as RevokeSecretResponseOriginal,\n AppVersionStateChanged as AppVersionStateChangedOriginal,\n AppVersionStateChangedStateOneOf as AppVersionStateChangedStateOneOfOriginal,\n AppVersionCreated as AppVersionCreatedOriginal,\n AppVersionSubmitted as AppVersionSubmittedOriginal,\n AppVersionPublished as AppVersionPublishedOriginal,\n AppVersionDeclined as AppVersionDeclinedOriginal,\n AppVersionReleased as AppVersionReleasedOriginal,\n AppVersionApproved as AppVersionApprovedOriginal,\n AppVersionDraftChanged as AppVersionDraftChangedOriginal,\n AppVersionArchived as AppVersionArchivedOriginal,\n VersionStatus as VersionStatusOriginal,\n VersionStatusWithLiterals as VersionStatusWithLiteralsOriginal,\n PartialVersionOptions as PartialVersionOptionsOriginal,\n SetOwnershipTagRequest as SetOwnershipTagRequestOriginal,\n SetOwnershipTagResponse as SetOwnershipTagResponseOriginal,\n SetHipaaCompliantRequest as SetHipaaCompliantRequestOriginal,\n SetHipaaCompliantResponse as SetHipaaCompliantResponseOriginal,\n SetCacheableAppRequest as SetCacheableAppRequestOriginal,\n SetCacheableAppResponse as SetCacheableAppResponseOriginal,\n SetComponentsMetadataRequest as SetComponentsMetadataRequestOriginal,\n SetComponentsMetadataResponse as SetComponentsMetadataResponseOriginal,\n SetExceededSizeRequest as SetExceededSizeRequestOriginal,\n SetExceededSizeResponse as SetExceededSizeResponseOriginal,\n CreateServiceAppRequest as CreateServiceAppRequestOriginal,\n CreateServiceAppResponse as CreateServiceAppResponseOriginal,\n AssociateServiceAppRequest as AssociateServiceAppRequestOriginal,\n AssociateServiceAppResponse as AssociateServiceAppResponseOriginal,\n} from './devcenter-apps-v1-app-apps.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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A,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createApp","createSecondarySecret","generateSlug","getApp","getNamespaceSuggestion","getNamespaceSuggestionByName","revokeSecret","setNamespace","updateApp","import_timestamp","import_rest_modules","payload","Status","AppType","CreatedByType","ShowConsentBehaviour","RedirectTarget","OpenButtonAction","UninstallActions","PermissionLevel","LoginPolicy","WebhookIdentityType","RequestedFields","NamespaceType","ForceCascadeDeleteAppDecision","SortOrder","Action","SecretToRevoke","VersionStatus","createApp","getApp","updateApp","generateSlug","getNamespaceSuggestion","getNamespaceSuggestionByName","setNamespace","createSecondarySecret","revokeSecret"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -11,8 +11,8 @@ interface CreateAppSignature {
|
|
|
11
11
|
* Setting `companionApp` to `true` is restricted to authorized companion-app provisioning services.
|
|
12
12
|
* A supplied `slug` is ignored except for authorized companion-app provisioning callers; use Generate Slug after creation.
|
|
13
13
|
* A supplied `codeIdentifier` must not contain `wix` (case-insensitive).
|
|
14
|
-
* @param - App to
|
|
15
|
-
* @returns
|
|
14
|
+
* @param - App to create.
|
|
15
|
+
* @returns Created app.
|
|
16
16
|
*/
|
|
17
17
|
(app: V1App): Promise<NonNullablePaths<V1App, `name` | `appSecrets.appSecret` | `appSecrets.webhookPublicKey` | `appSecrets.secondarySecretActive` | `status` | `appUrls.redirectUris` | `createdBy._id` | `createdBy.type` | `installationPreferences.openComponentIdOptions.componentId` | `installationPreferences.overridePostInstallationRedirect` | `installationPreferences.openButtonAction` | `installationPreferences.uninstallAction` | `unreleasedChanges.componentsChanges` | `unreleasedChanges.appTranslationsChanges` | `unreleasedChanges.componentsTranslationChanges` | `unreleasedChanges.appPermissionsChanges` | `unreleasedChanges.appEntityChanges`, 2>>;
|
|
18
18
|
}
|
|
@@ -22,8 +22,8 @@ interface GetAppSignature {
|
|
|
22
22
|
* Retrieves an app by ID. App secrets are omitted by default.
|
|
23
23
|
* To include `appSecrets`, add `APP_SECRETS` to `additionalFields`.
|
|
24
24
|
* Retrieving secrets requires authorization to access the app's secrets.
|
|
25
|
-
* @param -
|
|
26
|
-
* @returns
|
|
25
|
+
* @param - App ID.
|
|
26
|
+
* @returns Retrieved app.
|
|
27
27
|
*/
|
|
28
28
|
(appId: string, options?: GetAppOptions): Promise<NonNullablePaths<V1App, `name` | `appSecrets.appSecret` | `appSecrets.webhookPublicKey` | `appSecrets.secondarySecretActive` | `status` | `appUrls.redirectUris` | `createdBy._id` | `createdBy.type` | `installationPreferences.openComponentIdOptions.componentId` | `installationPreferences.overridePostInstallationRedirect` | `installationPreferences.openButtonAction` | `installationPreferences.uninstallAction` | `unreleasedChanges.componentsChanges` | `unreleasedChanges.appTranslationsChanges` | `unreleasedChanges.componentsTranslationChanges` | `unreleasedChanges.appPermissionsChanges` | `unreleasedChanges.appEntityChanges`, 2>>;
|
|
29
29
|
}
|
|
@@ -38,14 +38,14 @@ interface UpdateAppSignature {
|
|
|
38
38
|
*
|
|
39
39
|
* This method cannot update `appSecrets`, `accountId`, `namespace`, `slug`, `createdBy`,
|
|
40
40
|
* `companionApp`, or `codeIdentifier`. Including any of these fields or their nested fields in the
|
|
41
|
-
*
|
|
41
|
+
* request causes the entire request to fail; they aren't silently ignored.
|
|
42
42
|
* Use Set Namespace to assign a namespace and Generate Slug to generate a slug. To rotate app
|
|
43
43
|
* secrets, use Create Secondary Secret and Revoke Secret. This method does not support changing
|
|
44
44
|
* the owning account, creator, companion-app designation, or code identifier.
|
|
45
45
|
*
|
|
46
46
|
* Changing `status` requires additional status-change authorization beyond permission to update other fields.
|
|
47
47
|
* @param - App ID.
|
|
48
|
-
* @returns
|
|
48
|
+
* @returns Updated app.
|
|
49
49
|
*/
|
|
50
50
|
(_id: string, app: NonNullablePaths<UpdateApp, `revision`, 0>): Promise<NonNullablePaths<V1App, `name` | `appSecrets.appSecret` | `appSecrets.webhookPublicKey` | `appSecrets.secondarySecretActive` | `status` | `appUrls.redirectUris` | `createdBy._id` | `createdBy.type` | `installationPreferences.openComponentIdOptions.componentId` | `installationPreferences.overridePostInstallationRedirect` | `installationPreferences.openButtonAction` | `installationPreferences.uninstallAction` | `unreleasedChanges.componentsChanges` | `unreleasedChanges.appTranslationsChanges` | `unreleasedChanges.componentsTranslationChanges` | `unreleasedChanges.appPermissionsChanges` | `unreleasedChanges.appEntityChanges`, 2>>;
|
|
51
51
|
}
|
|
@@ -56,7 +56,7 @@ interface GenerateSlugSignature {
|
|
|
56
56
|
* Does not generate a slug for companion apps; a companion app without a slug is returned unchanged.
|
|
57
57
|
* When generating a slug, the stored app name must not contain `wix` for non-Wix apps (case-insensitive).
|
|
58
58
|
* The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
|
|
59
|
-
* @param -
|
|
59
|
+
* @param - App ID.
|
|
60
60
|
*/
|
|
61
61
|
(appId: string): Promise<NonNullablePaths<GenerateSlugResponse, `app.name` | `app.appSecrets.appSecret` | `app.appSecrets.webhookPublicKey` | `app.appSecrets.secondarySecretActive` | `app.status` | `app.appUrls.redirectUris` | `app.createdBy._id` | `app.createdBy.type` | `app.installationPreferences.openComponentIdOptions.componentId` | `app.installationPreferences.overridePostInstallationRedirect` | `app.installationPreferences.openButtonAction` | `app.installationPreferences.uninstallAction` | `app.unreleasedChanges.componentsChanges` | `app.unreleasedChanges.appTranslationsChanges` | `app.unreleasedChanges.componentsTranslationChanges` | `app.unreleasedChanges.appPermissionsChanges` | `app.unreleasedChanges.appEntityChanges`, 3>>;
|
|
62
62
|
}
|
|
@@ -69,7 +69,7 @@ interface GetNamespaceSuggestionSignature {
|
|
|
69
69
|
* The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
|
|
70
70
|
* If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.
|
|
71
71
|
* Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.
|
|
72
|
-
* @param -
|
|
72
|
+
* @param - App ID.
|
|
73
73
|
*/
|
|
74
74
|
(appId: string, options?: GetNamespaceSuggestionOptions): Promise<NonNullablePaths<GetNamespaceSuggestionResponse, `namespace`, 0>>;
|
|
75
75
|
}
|
|
@@ -84,7 +84,7 @@ interface GetNamespaceSuggestionByNameSignature {
|
|
|
84
84
|
* The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
|
|
85
85
|
* If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.
|
|
86
86
|
* Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.
|
|
87
|
-
* @param -
|
|
87
|
+
* @param - App display name used to derive a namespace suggestion.
|
|
88
88
|
*/
|
|
89
89
|
(name: string, options?: GetNamespaceSuggestionByNameOptions): Promise<NonNullablePaths<GetNamespaceSuggestionByNameResponse, `namespace`, 0>>;
|
|
90
90
|
}
|
|
@@ -97,8 +97,8 @@ interface SetNamespaceSignature {
|
|
|
97
97
|
* The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
|
|
98
98
|
* Unlike namespace suggestions, this method does not automatically add a suffix when the derived namespace is already used.
|
|
99
99
|
* Suggestions are not reservations; on a collision, choose a different `appName` and retry.
|
|
100
|
-
* @param -
|
|
101
|
-
* @param - Name used to derive the app's namespace component
|
|
100
|
+
* @param - App ID.
|
|
101
|
+
* @param - Name used to derive the app's namespace component.
|
|
102
102
|
* Lowercased; runs of non-alphanumeric characters (including spaces and underscores) become hyphens, with leading/trailing separators removed.
|
|
103
103
|
* For example, `Bookings Helper` and `Bookings_Helper` become `bookings-helper`. If no letters or digits remain, uses `untitled`.
|
|
104
104
|
* Subject to the reserved-name restrictions documented on Set Namespace. For permitted Wix-owned apps, `wix` is removed before normalization.
|
|
@@ -112,7 +112,7 @@ interface CreateSecondarySecretSignature {
|
|
|
112
112
|
* (adding one here would break consistent-audience-for-shared-permission across all of them).
|
|
113
113
|
* Renaming the permission would change who is actually authorized, so it stays as-is —
|
|
114
114
|
* the real check is the MANUAL validateUpdateAppPermission(...) in code.
|
|
115
|
-
* @param -
|
|
115
|
+
* @param - App ID.
|
|
116
116
|
*/
|
|
117
117
|
(appId: string, options?: CreateSecondarySecretOptions): Promise<NonNullablePaths<CreateSecondarySecretResponse, `app.name` | `app.appSecrets.appSecret` | `app.appSecrets.webhookPublicKey` | `app.appSecrets.secondarySecretActive` | `app.status` | `app.appUrls.redirectUris` | `app.createdBy._id` | `app.createdBy.type` | `app.installationPreferences.openComponentIdOptions.componentId` | `app.installationPreferences.overridePostInstallationRedirect` | `app.installationPreferences.openButtonAction` | `app.installationPreferences.uninstallAction` | `app.unreleasedChanges.componentsChanges` | `app.unreleasedChanges.appTranslationsChanges` | `app.unreleasedChanges.componentsTranslationChanges` | `app.unreleasedChanges.appPermissionsChanges` | `app.unreleasedChanges.appEntityChanges`, 3>>;
|
|
118
118
|
}
|
|
@@ -123,8 +123,8 @@ interface RevokeSecretSignature {
|
|
|
123
123
|
* (adding one here would break consistent-audience-for-shared-permission across all of them).
|
|
124
124
|
* Renaming the permission would change who is actually authorized, so it stays as-is —
|
|
125
125
|
* the real check is the MANUAL validateUpdateAppPermission(...) in code.
|
|
126
|
-
* @param -
|
|
127
|
-
* @param -
|
|
126
|
+
* @param - App ID.
|
|
127
|
+
* @param - Credential to revoke. The app must have both a previous and a replacement secret.
|
|
128
128
|
*/
|
|
129
129
|
(appId: string, secretToRevoke: SecretToRevokeWithLiterals): Promise<RevokeSecretResponse>;
|
|
130
130
|
}
|