@wix/auto_sdk_containers_projects 1.0.3 → 1.0.5
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 +25 -5
- package/build/cjs/index.js +76 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +131 -3
- package/build/cjs/index.typings.js +66 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +63 -2
- package/build/cjs/meta.js +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +25 -5
- package/build/es/index.mjs +75 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +131 -3
- package/build/es/index.typings.mjs +65 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +63 -2
- package/build/es/meta.mjs +46 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +25 -5
- package/build/internal/cjs/index.typings.d.ts +131 -3
- package/build/internal/cjs/meta.d.ts +63 -2
- package/build/internal/es/index.d.mts +25 -5
- package/build/internal/es/index.typings.d.mts +131 -3
- package/build/internal/es/meta.d.mts +63 -2
- package/package.json +2 -2
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/containers-projects-v1-project-projects.http.ts","../../src/containers-projects-v1-project-projects.types.ts","../../src/containers-projects-v1-project-projects.meta.ts"],"sourcesContent":["export * from './src/containers-projects-v1-project-projects.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: 'project.createdDate' },\n { path: 'project.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'fieldMask' }];\nconst TRANSFORM_PATHS_2 = [{ path: 'previewTokenExpiresAt' }];\nconst TRANSFORM_PATHS_3 = [\n { path: 'projects.createdDate' },\n { path: 'projects.updatedDate' },\n];\n\nfunction resolveWixContainersProjectsV1ContainersProjectsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/containers-projects',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_containers_projects';\n\n/**\n * Creates a new Project from a template.\n * Looks up the template to find its backing source code, creates a dev-center app,\n * registers an AppProject, clones the template's git repository into a new\n * code-store project, and persists the Project.\n */\nexport function createProject(payload: object): RequestOptionsFactory<any> {\n function __createProject({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.CreateProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects',\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 __createProject;\n}\n\n/** Retrieves a Project by ID. */\nexport function getProject(payload: object): RequestOptionsFactory<any> {\n function __getProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'GET' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.GetProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}',\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 __getProject;\n}\n\n/** Updates an existing Project. */\nexport function updateProject(payload: object): RequestOptionsFactory<any> {\n function __updateProject({ 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.containers.projects.v1.project',\n method: 'PATCH' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.UpdateProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{project.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 __updateProject;\n}\n\n/** Deletes a Project. */\nexport function deleteProject(payload: object): RequestOptionsFactory<any> {\n function __deleteProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'DELETE' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.DeleteProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProject;\n}\n\n/** Requests Project resume by starting or reusing its configured remote machine asynchronously. */\nexport function resumeProject(payload: object): RequestOptionsFactory<any> {\n function __resumeProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.ResumeProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/resume',\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 __resumeProject;\n}\n\n/**\n * Generates a candidate display name for a Project from a user instruction, via the published\n * \"Regenerate app name\" Prompt Hub prompt. The current name and the project's description are\n * resolved server-side; the caller supplies only the instruction. Does not persist the result —\n * the caller saves an accepted name with UpdateProject.\n */\nexport function regenerateProjectName(\n payload: object\n): RequestOptionsFactory<any> {\n function __regenerateProjectName({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.RegenerateProjectName',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/regenerate-name',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateProjectName;\n}\n\n/**\n * Generates a candidate icon for a Project from a user instruction. The current project name,\n * icon, app description, and brand colors are resolved server-side. Does not persist the result —\n * the caller saves an accepted icon with UpdateProject.\n */\nexport function regenerateProjectIcon(\n payload: object\n): RequestOptionsFactory<any> {\n function __regenerateProjectIcon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.RegenerateProjectIcon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/regenerate-icon',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateProjectIcon;\n}\n\n/**\n * Persists a complete design-token document as a new Himalaya draft release, branched from the\n * release the client currently has displayed.\n *\n * Synchronous: the Himalaya write completes before this call returns. Never touches the project's\n * sandbox, runs a build, or activates the app — the saved release stays a draft, so what the live\n * app serves is unaffected. Persists nothing on our side: this creates no entity and posts no\n * chat checkpoint.\n */\nexport function saveProjectDesign(payload: object): RequestOptionsFactory<any> {\n function __saveProjectDesign({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.SaveProjectDesign',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/save-design',\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 __saveProjectDesign;\n}\n\n/**\n * Lists the Projects of the current site — the MetaSite in the call scope — regardless of who owns\n * them. Anyone with access to the site sees the site's projects; other sites in the same account are\n * separate tenants and never appear here. The dashboard uses this; ListProjectsForCurrentUser stays\n * owner-scoped for callers that still depend on it.\n */\nexport function listProjects(payload: object): RequestOptionsFactory<any> {\n function __listProjects({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'GET' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.ListProjects',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects',\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_3,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listProjects;\n}\n\n/**\n * Repeats authenticated Himalaya authorization for the current collaborator. This response is\n * a capability check only; every worker/design mutation performs a fresh check.\n */\nexport function getHimalayaAuthorization(\n payload: object\n): RequestOptionsFactory<any> {\n function __getHimalayaAuthorization({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'GET' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.GetHimalayaAuthorization',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/himalaya-authorization',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getHimalayaAuthorization;\n}\n","export interface Project {\n /**\n * Project ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Display name for the project.\n * @maxLength 200\n */\n name?: string;\n /** Current status of the project. */\n status?: ProjectStatusWithLiterals;\n /**\n * ID of the template used to create this project.\n * @format GUID\n * @immutable\n */\n templateId?: string | null;\n /**\n * ID of the git-code-store project (and backing dev-center app) for this project. Set on creation.\n * @format GUID\n * @readonly\n */\n codeStoreProjectId?: string | null;\n /**\n * The user id of the owner of this project\n * @format GUID\n * @readonly\n */\n ownerUserId?: string | null;\n /**\n * Revision number, which increments by 1 each time the Project is updated.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Project was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Project was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Transient lock marking that a sandbox is currently being created for this project.\n * Used to serialize concurrent dev-machine creation; liveness of the sandbox itself is resolved via ListSandboxes.\n * @readonly\n */\n sandboxStatus?: SandboxStatusWithLiterals;\n /**\n * Meta site IDs (MSIDs) of the Wix sites this project is related to.\n * Optional — a project is not required to be tied to a site; may relate to many sites.\n * Preserve the deployed input contract; see containers-projects/SDK_COMPATIBILITY.md.\n * @format GUID\n */\n metaSiteIds?: string[];\n /**\n * Platform this project targets (iOS/Android). Supplied by the client at creation; immutable after.\n * @immutable\n */\n platform?: PlatformWithLiterals;\n /**\n * Optional app icon URL supplied by the client from Wix Media Manager.\n * @maxLength 2000\n */\n appIconUrl?: string | null;\n}\n\nexport enum ProjectStatus {\n /** Project created; client (via containers-plans) is doing most of the work. */\n PLANNING = 'PLANNING',\n /** Generation job created; project moves onward to machine startup. */\n BUILDING = 'BUILDING',\n /** Plan finalized; project is about to create the initial generation job. */\n PLAN_READY = 'PLAN_READY',\n}\n\n/** @enumType */\nexport type ProjectStatusWithLiterals =\n | ProjectStatus\n | 'PLANNING'\n | 'BUILDING'\n | 'PLAN_READY';\n\nexport enum SandboxStatus {\n /** No sandbox creation in progress. */\n NONE = 'NONE',\n /** A caller is currently creating a sandbox for this project (creation lock held). */\n CREATING = 'CREATING',\n}\n\n/** @enumType */\nexport type SandboxStatusWithLiterals = SandboxStatus | 'NONE' | 'CREATING';\n\nexport enum Platform {\n IOS = 'IOS',\n ANDROID = 'ANDROID',\n /**\n * Himalaya Mobile (Wix SDUI/OTA content package): mobile apps built headlessly on the\n * on-demand remote machine via the himi CLI, instead of native iOS/Android pods.\n */\n HIMALAYA_MOBILE = 'HIMALAYA_MOBILE',\n}\n\n/** @enumType */\nexport type PlatformWithLiterals =\n | Platform\n | 'IOS'\n | 'ANDROID'\n | 'HIMALAYA_MOBILE';\n\nexport interface ProjectStartRequested {\n /**\n * ID of the Project to start.\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface ProjectResumeRequested {\n /**\n * ID of the Project to resume.\n * @format GUID\n */\n projectId?: string;\n}\n\n/**\n * Emitted when the project transitions PLANNING -> PLAN_READY (on plan finalization). The project\n * self-consumes this event to start the app generation: mint the agent session, attach it to the\n * finalized conversation, create the initial generation job, and move to BUILDING. The finalized\n * plan is read back from containers-plans by project id when the job is built.\n */\nexport interface ProjectPlanReady {\n /**\n * ID of the Project whose plan is ready.\n * @format GUID\n */\n projectId?: string;\n /**\n * ID of the conversation that led to this plan being finalized. The minted agent session id is\n * attached to this conversation so the build can --resume it. Propagated from PlanFinalized.\n * @format GUID\n */\n conversationId?: string;\n}\n\nexport interface CreateAgentSessionRequest {\n /**\n * ID of the Project to create an agent session for.\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface CreateAgentSessionResponse {\n /**\n * Agent session ID materialized for the Project.\n * @format GUID\n */\n agentSessionId?: string;\n}\n\nexport interface RefreshAgentSiteTokenRequest {\n /**\n * Exact project/job tuple whose initiating user's site token should be re-minted.\n * @format GUID\n */\n projectId?: string;\n /**\n * Job whose persisted initiating user and MetaSite provenance must be revalidated.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface RefreshAgentSiteTokenResponse {\n /**\n * A freshly minted site-scoped access token for the project owner. Sensitive credential material:\n * marked pii so the platform redacts it from request/response logging (never log it in app code either).\n * maxLength matches the sibling containers-project-versions token fields (4096) — ample for the\n * oauth2-ng user access token, and required by the string-validation standard.\n * @maxLength 4096\n */\n accessToken?: string;\n /** Seconds until the returned token expires, as reported by oauth2-ng. */\n expiresIn?: string;\n /** Version of the job-bound authorization response contract. */\n authorizationVersion?: number;\n /**\n * The project authorized by this refresh.\n * @format GUID\n */\n projectId?: string;\n /**\n * The job authorized by this refresh.\n * @format GUID\n */\n jobId?: string;\n /**\n * Trusted MetaSite captured when the job was created.\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Trusted dashboard USER captured when the job was created.\n * @format GUID\n */\n initiatingUserId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface CreateProjectRequest {\n /** Project to be created. */\n project: Project;\n}\n\nexport interface CreateProjectResponse {\n /** The created Project. */\n project?: Project;\n}\n\nexport interface GetProjectRequest {\n /**\n * ID of the Project to retrieve.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface GetProjectResponse {\n /** The requested Project. */\n project?: Project;\n}\n\nexport interface UpdateProjectRequest {\n /** Project to be updated, may be partial. */\n project: Project;\n /**\n * Set of fields to update.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateProjectResponse {\n /** Updated Project. */\n project?: Project;\n}\n\nexport interface DeleteProjectRequest {\n /**\n * Id of the Project to delete.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface DeleteProjectResponse {}\n\nexport interface StartProjectRequest {\n /**\n * ID of the Project to start.\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface StartProjectResponse {\n /** The Project for which start was requested. */\n project?: Project;\n}\n\nexport interface ResumeProjectRequest {\n /**\n * ID of the Project to resume.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface ResumeProjectResponse {\n /** The Project for which resume was requested. */\n project?: Project;\n}\n\nexport interface RegenerateProjectNameRequest {\n /**\n * ID of the Project to generate a new name for.\n * @format GUID\n */\n projectId: string;\n /**\n * The user's free-text renaming instruction, passed to the name-generation prompt.\n * @maxLength 4000\n */\n prompt: string;\n}\n\nexport interface RegenerateProjectNameResponse {\n /**\n * The generated display name, at most 30 characters. Not persisted.\n * @maxLength 30\n */\n name?: string;\n}\n\nexport interface RegenerateProjectIconRequest {\n /**\n * ID of the Project to generate a new icon for.\n * @format GUID\n */\n projectId: string;\n /**\n * The user's free-text icon instruction, passed to the icon-generation prompt.\n * @maxLength 4000\n */\n prompt: string;\n}\n\nexport interface RegenerateProjectIconResponse {\n /**\n * The generated icon URL. Not persisted.\n * @format WEB_URL\n */\n iconUrl?: string;\n}\n\nexport interface ListProjectsForCurrentUserRequest {\n /** Cursor paging options. */\n paging?: CursorPaging;\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 ListProjectsForCurrentUserResponse {\n /** Projects owned by the current user. */\n projects?: Project[];\n /** Paging metadata for cursor-based pagination. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\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 SaveProjectDesignRequest {\n /**\n * Project whose design is being saved. The caller must own it.\n * @format GUID\n */\n projectId: string;\n /**\n * The Himalaya release ID currently displayed by the client. The saved draft branches from\n * exactly this release, even when a newer release exists for the app.\n * @maxLength 100\n */\n baseReleaseId: string;\n /**\n * The complete edited design-token document, as a JSON object string — not a flattened set of\n * preview overrides. The caller is responsible for preserving unknown groups and light/dark\n * values it did not change.\n * @maxLength 65536\n */\n tokensJson: string;\n /**\n * Short-lived, app-scoped Himalaya control credential the client obtained from Himalaya's owner\n * embed-token endpoint. Forwarded to Himalaya for this call only — never logged, persisted, or\n * echoed back in any response, error, or event.\n *\n * The app this call writes to is NOT taken from this request. It is composed from the owner\n * prefix this credential carries plus project_id; see HimalayaAppSlug.\n * @maxLength 4096\n */\n himalayaControlToken: string;\n /**\n * Client assertion of the canonical app returned by authenticated Himalaya lookup. Catalyst\n * resolves and validates the same value; it is never used as an unchecked write target.\n * @maxLength 200\n */\n canonicalApp?: string;\n}\n\nexport interface SaveProjectDesignResponse {\n /**\n * The saved draft release. Always a draft, so the app's live release is untouched.\n * @maxLength 100\n */\n himalayaReleaseId?: string;\n /**\n * Short-lived credential for previewing the saved draft release. Response-only: never persisted\n * or placed in a preview URL by this service.\n * @maxLength 4096\n */\n previewToken?: string;\n /** When preview_token expires. */\n previewTokenExpiresAt?: Date | null;\n}\n\nexport interface ListProjectsRequest {\n /** Cursor paging options. */\n paging?: CursorPaging;\n}\n\nexport interface ListProjectsResponse {\n /** Projects in the current site. */\n projects?: Project[];\n /** Paging metadata for cursor-based pagination. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface GetHimalayaAuthorizationRequest {\n /**\n * Site-tenanted Containers project being authorized.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface GetHimalayaAuthorizationResponse {\n /** Version of the authorization capability contract. */\n authorizationVersion?: number;\n /**\n * Trusted MetaSite selected from request identity context.\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Site-tenanted Containers project authorized by the lookup.\n * @format GUID\n */\n projectId?: string;\n /**\n * Verified canonical Himalaya app slug.\n * @maxLength 200\n */\n canonicalApp?: string;\n /** Whether a fresh worker launch is currently authorized. */\n workerLaunch?: boolean;\n /** Whether a fresh design save is currently authorized. */\n saveDesign?: boolean;\n}\n","import * as ambassadorWixContainersProjectsV1Project from './containers-projects-v1-project-projects.http.js';\nimport * as ambassadorWixContainersProjectsV1ProjectTypes from './containers-projects-v1-project-projects.types.js';\nimport * as ambassadorWixContainersProjectsV1ProjectUniversalTypes from './containers-projects-v1-project-projects.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 createProject(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.CreateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.CreateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.CreateProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.CreateProjectResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.createProject(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/projects',\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 getProject(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.GetProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.GetProjectResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.getProject(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/projects/{projectId}',\n pathParams: { projectId: 'projectId' },\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 updateProject(): __PublicMethodMetaInfo<\n 'PATCH',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.UpdateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.UpdateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.UpdateProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.UpdateProjectResponse\n> {\n const payload = { project: { id: ':projectId' } } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.updateProject(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/projects/{project.id}',\n pathParams: { projectId: 'projectId' },\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 deleteProject(): __PublicMethodMetaInfo<\n 'DELETE',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.DeleteProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.DeleteProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.DeleteProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.DeleteProjectResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.deleteProject(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/projects/{projectId}',\n pathParams: { projectId: 'projectId' },\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 resumeProject(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ResumeProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.ResumeProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ResumeProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.ResumeProjectResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.resumeProject(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/projects/{projectId}/resume',\n pathParams: { projectId: 'projectId' },\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 regenerateProjectName(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectNameRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectNameRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectNameResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectNameResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.regenerateProjectName(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/projects/{projectId}/regenerate-name',\n pathParams: { projectId: 'projectId' },\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 regenerateProjectIcon(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectIconRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectIconRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectIconResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectIconResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.regenerateProjectIcon(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/projects/{projectId}/regenerate-icon',\n pathParams: { projectId: 'projectId' },\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 saveProjectDesign(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.SaveProjectDesignRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.SaveProjectDesignRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.SaveProjectDesignResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.SaveProjectDesignResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.saveProjectDesign(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/projects/{projectId}/save-design',\n pathParams: { projectId: 'projectId' },\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 listProjects(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ListProjectsRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.ListProjectsRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ListProjectsResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.ListProjectsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.listProjects(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/projects',\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 getHimalayaAuthorization(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetHimalayaAuthorizationRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.GetHimalayaAuthorizationRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetHimalayaAuthorizationResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.GetHimalayaAuthorizationResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.getHimalayaAuthorization(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/projects/{projectId}/himalaya-authorization',\n pathParams: { projectId: 'projectId' },\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 Project as ProjectOriginal,\n ProjectStatus as ProjectStatusOriginal,\n ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal,\n SandboxStatus as SandboxStatusOriginal,\n SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal,\n Platform as PlatformOriginal,\n PlatformWithLiterals as PlatformWithLiteralsOriginal,\n ProjectStartRequested as ProjectStartRequestedOriginal,\n ProjectResumeRequested as ProjectResumeRequestedOriginal,\n ProjectPlanReady as ProjectPlanReadyOriginal,\n CreateAgentSessionRequest as CreateAgentSessionRequestOriginal,\n CreateAgentSessionResponse as CreateAgentSessionResponseOriginal,\n RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal,\n RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal,\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 CreateProjectRequest as CreateProjectRequestOriginal,\n CreateProjectResponse as CreateProjectResponseOriginal,\n GetProjectRequest as GetProjectRequestOriginal,\n GetProjectResponse as GetProjectResponseOriginal,\n UpdateProjectRequest as UpdateProjectRequestOriginal,\n UpdateProjectResponse as UpdateProjectResponseOriginal,\n DeleteProjectRequest as DeleteProjectRequestOriginal,\n DeleteProjectResponse as DeleteProjectResponseOriginal,\n StartProjectRequest as StartProjectRequestOriginal,\n StartProjectResponse as StartProjectResponseOriginal,\n ResumeProjectRequest as ResumeProjectRequestOriginal,\n ResumeProjectResponse as ResumeProjectResponseOriginal,\n RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal,\n RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal,\n RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal,\n RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal,\n ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal,\n CursorPaging as CursorPagingOriginal,\n ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n SaveProjectDesignRequest as SaveProjectDesignRequestOriginal,\n SaveProjectDesignResponse as SaveProjectDesignResponseOriginal,\n ListProjectsRequest as ListProjectsRequestOriginal,\n ListProjectsResponse as ListProjectsResponseOriginal,\n GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal,\n GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponseOriginal,\n} from './containers-projects-v1-project-projects.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,qBAAAC;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,sBAAsB;AAAA,EAC9B,EAAE,MAAM,sBAAsB;A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A,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACqC,aAAa,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,4BAOd;AACA,QAAM,UAAU,EAAE,WAAW,aAAa;AAE1C,QAAM,oBACqC,yBAAyB,OAAO;AAE3E,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,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createProject","deleteProject","getHimalayaAuthorization","getProject","listProjects","regenerateProjectIcon","regenerateProjectName","resumeProject","saveProjectDesign","updateProject","import_timestamp","import_rest_modules","payload","ProjectStatus","SandboxStatus","Platform","WebhookIdentityType","createProject","getProject","updateProject","deleteProject","resumeProject","regenerateProjectName","regenerateProjectIcon","saveProjectDesign","listProjects","getHimalayaAuthorization"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/containers-projects-v1-project-projects.http.ts","../../src/containers-projects-v1-project-projects.types.ts","../../src/containers-projects-v1-project-projects.meta.ts"],"sourcesContent":["export * from './src/containers-projects-v1-project-projects.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: 'project.createdDate' },\n { path: 'project.updatedDate' },\n];\nconst TRANSFORM_PATHS_1 = [{ path: 'fieldMask' }];\nconst TRANSFORM_PATHS_2 = [{ path: 'previewTokenExpiresAt' }];\nconst TRANSFORM_PATHS_3 = [\n { path: 'projects.createdDate' },\n { path: 'projects.updatedDate' },\n];\n\nfunction resolveWixContainersProjectsV1ContainersProjectsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/containers-projects',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_containers_projects';\n\n/**\n * Creates a new Project from a template.\n * Looks up the template to find its backing source code, creates a dev-center app,\n * registers an AppProject, clones the template's git repository into a new\n * code-store project, and persists the Project.\n */\nexport function createProject(payload: object): RequestOptionsFactory<any> {\n function __createProject({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: TRANSFORM_PATHS_0,\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.CreateProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects',\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 __createProject;\n}\n\n/** Retrieves a Project by ID. */\nexport function getProject(payload: object): RequestOptionsFactory<any> {\n function __getProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'GET' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.GetProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}',\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 __getProject;\n}\n\n/** Updates an existing Project. */\nexport function updateProject(payload: object): RequestOptionsFactory<any> {\n function __updateProject({ 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.containers.projects.v1.project',\n method: 'PATCH' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.UpdateProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{project.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 __updateProject;\n}\n\n/** Deletes a Project. */\nexport function deleteProject(payload: object): RequestOptionsFactory<any> {\n function __deleteProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'DELETE' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.DeleteProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProject;\n}\n\n/** Requests Project resume by starting or reusing its configured remote machine asynchronously. */\nexport function resumeProject(payload: object): RequestOptionsFactory<any> {\n function __resumeProject({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.ResumeProject',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/resume',\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 __resumeProject;\n}\n\n/**\n * Generates a candidate display name for a Project from a user instruction, via the published\n * \"Regenerate app name\" Prompt Hub prompt. The current name and the project's description are\n * resolved server-side; the caller supplies only the instruction. Does not persist the result —\n * the caller saves an accepted name with UpdateProject.\n */\nexport function regenerateProjectName(\n payload: object\n): RequestOptionsFactory<any> {\n function __regenerateProjectName({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.RegenerateProjectName',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/regenerate-name',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateProjectName;\n}\n\n/**\n * Generates a candidate icon for a Project from a user instruction. The current project name,\n * icon, app description, and brand colors are resolved server-side. Does not persist the result —\n * the caller saves an accepted icon with UpdateProject.\n */\nexport function regenerateProjectIcon(\n payload: object\n): RequestOptionsFactory<any> {\n function __regenerateProjectIcon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.RegenerateProjectIcon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/regenerate-icon',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __regenerateProjectIcon;\n}\n\n/**\n * Persists a complete design-token document as a new Himalaya draft release, branched from the\n * release the client currently has displayed.\n *\n * Synchronous: the Himalaya write completes before this call returns. Never touches the project's\n * sandbox, runs a build, or activates the app — the saved release stays a draft, so what the live\n * app serves is unaffected. Persists no entity of its own. When `conversation_id` is supplied it\n * posts a CHECKPOINT message for the saved release into that conversation (best-effort — a chat\n * failure never fails the save); omit it to skip the checkpoint.\n */\nexport function saveProjectDesign(payload: object): RequestOptionsFactory<any> {\n function __saveProjectDesign({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.SaveProjectDesign',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/save-design',\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 __saveProjectDesign;\n}\n\n/**\n * Restores an earlier version by pointing the project's editable head at `release_id`: the client\n * then previews that release and the next edit (design save or AI edit) branches from it. Pure\n * project state — sets `head_release_id` and nothing in Himalaya: it does NOT activate the release,\n * so the live app end-users run is untouched (a later publish/build is what carries head live).\n *\n * `release_id` is a Himalaya release id the caller already holds from the project's own release\n * ledger, scoped to this project's app; the server stores it as head without re-reading Himalaya.\n * When `conversation_id` is supplied, a CHECKPOINT message for the restored release is posted into\n * it (best-effort — a chat failure never fails the restore); omit it to skip the checkpoint.\n */\nexport function restoreRelease(payload: object): RequestOptionsFactory<any> {\n function __restoreRelease({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'POST' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.RestoreRelease',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/restore-release',\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 __restoreRelease;\n}\n\n/**\n * Lists the Projects of the current site — the MetaSite in the call scope — regardless of who owns\n * them. Anyone with access to the site sees the site's projects; other sites in the same account are\n * separate tenants and never appear here. The dashboard uses this; ListProjectsForCurrentUser stays\n * owner-scoped for callers that still depend on it.\n */\nexport function listProjects(payload: object): RequestOptionsFactory<any> {\n function __listProjects({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'GET' as any,\n methodFqn: 'wix.containers.projects.v1.ContainersProjects.ListProjects',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects',\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_3,\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listProjects;\n}\n\n/**\n * Repeats authenticated Himalaya authorization for the current collaborator. This response is\n * a capability check only; every worker/design mutation performs a fresh check.\n */\nexport function getHimalayaAuthorization(\n payload: object\n): RequestOptionsFactory<any> {\n function __getHimalayaAuthorization({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.containers.projects.v1.project',\n method: 'GET' as any,\n methodFqn:\n 'wix.containers.projects.v1.ContainersProjects.GetHimalayaAuthorization',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixContainersProjectsV1ContainersProjectsUrl({\n protoPath: '/v1/projects/{projectId}/himalaya-authorization',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getHimalayaAuthorization;\n}\n","export interface Project {\n /**\n * Project ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Display name for the project.\n * @maxLength 200\n */\n name?: string;\n /** Current status of the project. */\n status?: ProjectStatusWithLiterals;\n /**\n * ID of the template used to create this project.\n * @format GUID\n * @immutable\n */\n templateId?: string | null;\n /**\n * ID of the git-code-store project (and backing dev-center app) for this project. Set on creation.\n * @format GUID\n * @readonly\n */\n codeStoreProjectId?: string | null;\n /**\n * The user id of the owner of this project\n * @format GUID\n * @readonly\n */\n ownerUserId?: string | null;\n /**\n * Revision number, which increments by 1 each time the Project is updated.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the Project was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Project was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Transient lock marking that a sandbox is currently being created for this project.\n * Used to serialize concurrent dev-machine creation; liveness of the sandbox itself is resolved via ListSandboxes.\n * @readonly\n */\n sandboxStatus?: SandboxStatusWithLiterals;\n /**\n * Meta site IDs (MSIDs) of the Wix sites this project is related to.\n * Optional — a project is not required to be tied to a site; may relate to many sites.\n * Preserve the deployed input contract; see containers-projects/SDK_COMPATIBILITY.md.\n * @format GUID\n */\n metaSiteIds?: string[];\n /**\n * Platform this project targets (iOS/Android). Supplied by the client at creation; immutable after.\n * @immutable\n */\n platform?: PlatformWithLiterals;\n /**\n * Optional app icon URL supplied by the client from Wix Media Manager.\n * @maxLength 2000\n */\n appIconUrl?: string | null;\n /**\n * The Himalaya release the editor is currently on — the \"head\" the client previews and the next\n * edit (design save or AI edit) branches from. Server-managed: set to the new draft after each\n * edit, and to the chosen release by RestoreRelease. Unset means \"newest release by date\" (the\n * pre-head default), so existing projects keep working until their first edit/restore sets it.\n * Not a GUID — a Himalaya release id (e.g. `rel-<hash>` / `<sha>-<hash>`).\n * @maxLength 200\n * @readonly\n */\n headReleaseId?: string | null;\n}\n\nexport enum ProjectStatus {\n /** Project created; client (via containers-plans) is doing most of the work. */\n PLANNING = 'PLANNING',\n /** Generation job created; project moves onward to machine startup. */\n BUILDING = 'BUILDING',\n /** Plan finalized; project is about to create the initial generation job. */\n PLAN_READY = 'PLAN_READY',\n}\n\n/** @enumType */\nexport type ProjectStatusWithLiterals =\n | ProjectStatus\n | 'PLANNING'\n | 'BUILDING'\n | 'PLAN_READY';\n\nexport enum SandboxStatus {\n /** No sandbox creation in progress. */\n NONE = 'NONE',\n /** A caller is currently creating a sandbox for this project (creation lock held). */\n CREATING = 'CREATING',\n}\n\n/** @enumType */\nexport type SandboxStatusWithLiterals = SandboxStatus | 'NONE' | 'CREATING';\n\nexport enum Platform {\n IOS = 'IOS',\n ANDROID = 'ANDROID',\n /**\n * Himalaya Mobile (Wix SDUI/OTA content package): mobile apps built headlessly on the\n * on-demand remote machine via the himi CLI, instead of native iOS/Android pods.\n */\n HIMALAYA_MOBILE = 'HIMALAYA_MOBILE',\n}\n\n/** @enumType */\nexport type PlatformWithLiterals =\n | Platform\n | 'IOS'\n | 'ANDROID'\n | 'HIMALAYA_MOBILE';\n\nexport interface ProjectStartRequested {\n /**\n * ID of the Project to start.\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface ProjectResumeRequested {\n /**\n * ID of the Project to resume.\n * @format GUID\n */\n projectId?: string;\n}\n\n/**\n * Emitted when the project transitions PLANNING -> PLAN_READY (on plan finalization). The project\n * self-consumes this event to start the app generation: mint the agent session, attach it to the\n * finalized conversation, create the initial generation job, and move to BUILDING. The finalized\n * plan is read back from containers-plans by project id when the job is built.\n */\nexport interface ProjectPlanReady {\n /**\n * ID of the Project whose plan is ready.\n * @format GUID\n */\n projectId?: string;\n /**\n * ID of the conversation that led to this plan being finalized. The minted agent session id is\n * attached to this conversation so the build can --resume it. Propagated from PlanFinalized.\n * @format GUID\n */\n conversationId?: string;\n}\n\nexport interface CreateAgentSessionRequest {\n /**\n * ID of the Project to create an agent session for.\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface CreateAgentSessionResponse {\n /**\n * Agent session ID materialized for the Project.\n * @format GUID\n */\n agentSessionId?: string;\n}\n\nexport interface RefreshAgentSiteTokenRequest {\n /**\n * Exact project/job tuple whose initiating user's site token should be re-minted.\n * @format GUID\n */\n projectId?: string;\n /**\n * Job whose persisted initiating user and MetaSite provenance must be revalidated.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface RefreshAgentSiteTokenResponse {\n /**\n * A freshly minted site-scoped access token for the project owner. Sensitive credential material:\n * marked pii so the platform redacts it from request/response logging (never log it in app code either).\n * maxLength matches the sibling containers-project-versions token fields (4096) — ample for the\n * oauth2-ng user access token, and required by the string-validation standard.\n * @maxLength 4096\n */\n accessToken?: string;\n /** Seconds until the returned token expires, as reported by oauth2-ng. */\n expiresIn?: string;\n /** Version of the job-bound authorization response contract. */\n authorizationVersion?: number;\n /**\n * The project authorized by this refresh.\n * @format GUID\n */\n projectId?: string;\n /**\n * The job authorized by this refresh.\n * @format GUID\n */\n jobId?: string;\n /**\n * Trusted MetaSite captured when the job was created.\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Trusted dashboard USER captured when the job was created.\n * @format GUID\n */\n initiatingUserId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /**\n * Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity\n * @internal\n */\n triggeredByUndelete?: boolean | null;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n /**\n * This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard\n * wont populate it / have any reference to it in the API.\n * The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,\n * the developer should send only the new (current) entity.\n * An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big\n * Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.\n * @internal\n * @deprecated\n */\n previousEntityAsJson?: string | null;\n /**\n * Map of fully qualified field paths to their previous values for fields that changed.\n * For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)\n * @internal\n */\n modifiedFields?: Record<string, any>;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface EntityDeletedEvent {\n /**\n * Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled\n * @internal\n */\n movedToTrash?: boolean | null;\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n /**\n * Optional domain-specific metadata defined by the API owner, encoded as JSON.\n * @internal\n */\n additionalMetadataAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface CreateProjectRequest {\n /** Project to be created. */\n project: Project;\n}\n\nexport interface CreateProjectResponse {\n /** The created Project. */\n project?: Project;\n}\n\nexport interface GetProjectRequest {\n /**\n * ID of the Project to retrieve.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface GetProjectResponse {\n /** The requested Project. */\n project?: Project;\n}\n\nexport interface UpdateProjectRequest {\n /** Project to be updated, may be partial. */\n project: Project;\n /**\n * Set of fields to update.\n * @internal\n */\n fieldMask?: string[];\n}\n\nexport interface UpdateProjectResponse {\n /** Updated Project. */\n project?: Project;\n}\n\nexport interface DeleteProjectRequest {\n /**\n * Id of the Project to delete.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface DeleteProjectResponse {}\n\nexport interface StartProjectRequest {\n /**\n * ID of the Project to start.\n * @format GUID\n */\n projectId?: string;\n}\n\nexport interface StartProjectResponse {\n /** The Project for which start was requested. */\n project?: Project;\n}\n\nexport interface ResumeProjectRequest {\n /**\n * ID of the Project to resume.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface ResumeProjectResponse {\n /** The Project for which resume was requested. */\n project?: Project;\n}\n\nexport interface RegenerateProjectNameRequest {\n /**\n * ID of the Project to generate a new name for.\n * @format GUID\n */\n projectId: string;\n /**\n * The user's free-text renaming instruction, passed to the name-generation prompt.\n * @maxLength 4000\n */\n prompt: string;\n}\n\nexport interface RegenerateProjectNameResponse {\n /**\n * The generated display name, at most 30 characters. Not persisted.\n * @maxLength 30\n */\n name?: string;\n}\n\nexport interface RegenerateProjectIconRequest {\n /**\n * ID of the Project to generate a new icon for.\n * @format GUID\n */\n projectId: string;\n /**\n * The user's free-text icon instruction, passed to the icon-generation prompt.\n * @maxLength 4000\n */\n prompt: string;\n}\n\nexport interface RegenerateProjectIconResponse {\n /**\n * The generated icon URL. Not persisted.\n * @format WEB_URL\n */\n iconUrl?: string;\n}\n\nexport interface ListProjectsForCurrentUserRequest {\n /** Cursor paging options. */\n paging?: CursorPaging;\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 ListProjectsForCurrentUserResponse {\n /** Projects owned by the current user. */\n projects?: Project[];\n /** Paging metadata for cursor-based pagination. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\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 SaveProjectDesignRequest {\n /**\n * Project whose design is being saved. The caller must own it.\n * @format GUID\n */\n projectId: string;\n /**\n * The Himalaya release ID currently displayed by the client. The saved draft branches from\n * exactly this release, even when a newer release exists for the app.\n * @maxLength 100\n */\n baseReleaseId: string;\n /**\n * The complete edited design-token document, as a JSON object string — not a flattened set of\n * preview overrides. The caller is responsible for preserving unknown groups and light/dark\n * values it did not change.\n * @maxLength 65536\n */\n tokensJson: string;\n /**\n * Short-lived, app-scoped Himalaya control credential the client obtained from Himalaya's owner\n * embed-token endpoint. Forwarded to Himalaya for this call only — never logged, persisted, or\n * echoed back in any response, error, or event.\n *\n * The app this call writes to is NOT taken from this request. It is composed from the owner\n * prefix this credential carries plus project_id; see HimalayaAppSlug.\n * @maxLength 4096\n */\n himalayaControlToken: string;\n /**\n * Client assertion of the canonical app returned by authenticated Himalaya lookup. Catalyst\n * resolves and validates the same value; it is never used as an unchecked write target.\n * @maxLength 200\n */\n canonicalApp?: string;\n /**\n * Conversation this design is saved from. When set, a CHECKPOINT message marking the saved\n * version is posted into it (best-effort). Optional — an older client that omits it still saves\n * the design; it just produces no checkpoint. Verified to belong to this project server-side.\n *\n * Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never\n * fail the save. A malformed/unexpected id is handled downstream (the ownership lookup rejects it\n * and the checkpoint is skipped) rather than hard-failing SaveProjectDesign at the request boundary.\n * @maxLength 100\n */\n conversationId?: string;\n}\n\nexport interface SaveProjectDesignResponse {\n /**\n * The saved draft release. Always a draft, so the app's live release is untouched.\n * @maxLength 100\n */\n himalayaReleaseId?: string;\n /**\n * Short-lived credential for previewing the saved draft release. Response-only: never persisted\n * or placed in a preview URL by this service.\n * @maxLength 4096\n */\n previewToken?: string;\n /** When preview_token expires. */\n previewTokenExpiresAt?: Date | null;\n}\n\nexport interface RestoreReleaseRequest {\n /**\n * Project whose head is being moved. The caller must own it.\n * @format GUID\n */\n projectId: string;\n /**\n * The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id\n * (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.\n * @maxLength 200\n */\n releaseId: string;\n /**\n * Short-lived, app-scoped Himalaya control credential (the same the client obtains from Himalaya's\n * owner embed-token endpoint and sends on SaveProjectDesign). When present, the server verifies\n * release_id belongs to this project's Himalaya app before moving head. Optional for back-compat:\n * an older client that omits it skips that check (the release still comes from the project's own\n * ledger). Forwarded to Himalaya for the ledger read only — never logged, persisted, or echoed.\n * @maxLength 4096\n */\n himalayaControlToken?: string;\n /**\n * Conversation this restore is made from. When set, a CHECKPOINT message marking the restored\n * version is posted into it (best-effort). Optional — a client that omits it still restores; it\n * just produces no checkpoint. Verified to belong to this project server-side.\n *\n * Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never\n * fail the restore. A malformed id is handled downstream (the ownership lookup rejects it and the\n * checkpoint is skipped) rather than hard-failing RestoreRelease at the request boundary.\n * @maxLength 100\n */\n conversationId?: string;\n}\n\nexport interface RestoreReleaseResponse {\n /** The project after the restore, with head_release_id set to the restored release. */\n project?: Project;\n}\n\nexport interface ListProjectsRequest {\n /** Cursor paging options. */\n paging?: CursorPaging;\n}\n\nexport interface ListProjectsResponse {\n /** Projects in the current site. */\n projects?: Project[];\n /** Paging metadata for cursor-based pagination. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface GetHimalayaAuthorizationRequest {\n /**\n * Site-tenanted Containers project being authorized.\n * @format GUID\n */\n projectId: string;\n}\n\nexport interface GetHimalayaAuthorizationResponse {\n /** Version of the authorization capability contract. */\n authorizationVersion?: number;\n /**\n * Trusted MetaSite selected from request identity context.\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Site-tenanted Containers project authorized by the lookup.\n * @format GUID\n */\n projectId?: string;\n /**\n * Verified canonical Himalaya app slug.\n * @maxLength 200\n */\n canonicalApp?: string;\n /** Whether a fresh worker launch is currently authorized. */\n workerLaunch?: boolean;\n /** Whether a fresh design save is currently authorized. */\n saveDesign?: boolean;\n}\n","import * as ambassadorWixContainersProjectsV1Project from './containers-projects-v1-project-projects.http.js';\nimport * as ambassadorWixContainersProjectsV1ProjectTypes from './containers-projects-v1-project-projects.types.js';\nimport * as ambassadorWixContainersProjectsV1ProjectUniversalTypes from './containers-projects-v1-project-projects.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 createProject(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.CreateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.CreateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.CreateProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.CreateProjectResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.createProject(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/projects',\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 getProject(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.GetProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.GetProjectResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.getProject(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/projects/{projectId}',\n pathParams: { projectId: 'projectId' },\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 updateProject(): __PublicMethodMetaInfo<\n 'PATCH',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.UpdateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.UpdateProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.UpdateProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.UpdateProjectResponse\n> {\n const payload = { project: { id: ':projectId' } } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.updateProject(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/projects/{project.id}',\n pathParams: { projectId: 'projectId' },\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 deleteProject(): __PublicMethodMetaInfo<\n 'DELETE',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.DeleteProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.DeleteProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.DeleteProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.DeleteProjectResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.deleteProject(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/projects/{projectId}',\n pathParams: { projectId: 'projectId' },\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 resumeProject(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ResumeProjectRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.ResumeProjectRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ResumeProjectResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.ResumeProjectResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.resumeProject(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/projects/{projectId}/resume',\n pathParams: { projectId: 'projectId' },\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 regenerateProjectName(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectNameRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectNameRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectNameResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectNameResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.regenerateProjectName(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/projects/{projectId}/regenerate-name',\n pathParams: { projectId: 'projectId' },\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 regenerateProjectIcon(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectIconRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectIconRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RegenerateProjectIconResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.RegenerateProjectIconResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.regenerateProjectIcon(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/projects/{projectId}/regenerate-icon',\n pathParams: { projectId: 'projectId' },\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 saveProjectDesign(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.SaveProjectDesignRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.SaveProjectDesignRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.SaveProjectDesignResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.SaveProjectDesignResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.saveProjectDesign(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/projects/{projectId}/save-design',\n pathParams: { projectId: 'projectId' },\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 restoreRelease(): __PublicMethodMetaInfo<\n 'POST',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RestoreReleaseRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.RestoreReleaseRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.RestoreReleaseResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.RestoreReleaseResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.restoreRelease(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/projects/{projectId}/restore-release',\n pathParams: { projectId: 'projectId' },\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 listProjects(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ListProjectsRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.ListProjectsRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.ListProjectsResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.ListProjectsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.listProjects(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/projects',\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 getHimalayaAuthorization(): __PublicMethodMetaInfo<\n 'GET',\n { projectId: string },\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetHimalayaAuthorizationRequest,\n ambassadorWixContainersProjectsV1ProjectTypes.GetHimalayaAuthorizationRequest,\n ambassadorWixContainersProjectsV1ProjectUniversalTypes.GetHimalayaAuthorizationResponse,\n ambassadorWixContainersProjectsV1ProjectTypes.GetHimalayaAuthorizationResponse\n> {\n const payload = { projectId: ':projectId' } as any;\n\n const getRequestOptions =\n ambassadorWixContainersProjectsV1Project.getHimalayaAuthorization(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/projects/{projectId}/himalaya-authorization',\n pathParams: { projectId: 'projectId' },\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 Project as ProjectOriginal,\n ProjectStatus as ProjectStatusOriginal,\n ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal,\n SandboxStatus as SandboxStatusOriginal,\n SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal,\n Platform as PlatformOriginal,\n PlatformWithLiterals as PlatformWithLiteralsOriginal,\n ProjectStartRequested as ProjectStartRequestedOriginal,\n ProjectResumeRequested as ProjectResumeRequestedOriginal,\n ProjectPlanReady as ProjectPlanReadyOriginal,\n CreateAgentSessionRequest as CreateAgentSessionRequestOriginal,\n CreateAgentSessionResponse as CreateAgentSessionResponseOriginal,\n RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal,\n RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal,\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 CreateProjectRequest as CreateProjectRequestOriginal,\n CreateProjectResponse as CreateProjectResponseOriginal,\n GetProjectRequest as GetProjectRequestOriginal,\n GetProjectResponse as GetProjectResponseOriginal,\n UpdateProjectRequest as UpdateProjectRequestOriginal,\n UpdateProjectResponse as UpdateProjectResponseOriginal,\n DeleteProjectRequest as DeleteProjectRequestOriginal,\n DeleteProjectResponse as DeleteProjectResponseOriginal,\n StartProjectRequest as StartProjectRequestOriginal,\n StartProjectResponse as StartProjectResponseOriginal,\n ResumeProjectRequest as ResumeProjectRequestOriginal,\n ResumeProjectResponse as ResumeProjectResponseOriginal,\n RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal,\n RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal,\n RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal,\n RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal,\n ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal,\n CursorPaging as CursorPagingOriginal,\n ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n SaveProjectDesignRequest as SaveProjectDesignRequestOriginal,\n SaveProjectDesignResponse as SaveProjectDesignResponseOriginal,\n RestoreReleaseRequest as RestoreReleaseRequestOriginal,\n RestoreReleaseResponse as RestoreReleaseResponseOriginal,\n ListProjectsRequest as ListProjectsRequestOriginal,\n ListProjectsResponse as ListProjectsResponseOriginal,\n GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal,\n GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationRes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AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACqC,aAAa,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,4BAOd;AACA,QAAM,UAAU,EAAE,WAAW,aAAa;AAE1C,QAAM,oBACqC,yBAAyB,OAAO;AAE3E,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,WAAW,YAAY;AAAA,IACrC,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createProject","deleteProject","getHimalayaAuthorization","getProject","listProjects","regenerateProjectIcon","regenerateProjectName","restoreRelease","resumeProject","saveProjectDesign","updateProject","import_timestamp","import_rest_modules","payload","ProjectStatus","SandboxStatus","Platform","WebhookIdentityType","createProject","getProject","updateProject","deleteProject","resumeProject","regenerateProjectName","regenerateProjectIcon","saveProjectDesign","restoreRelease","listProjects","getHimalayaAuthorization"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, GetHimalayaAuthorizationResponse } from './index.typings.mjs';
|
|
3
|
-
export { AccountInfo, ActionEvent, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteProjectRequest, DeleteProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetHimalayaAuthorizationRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsOptions, ListProjectsRequest, ListProjectsResponse, MessageEnvelope, Platform, PlatformWithLiterals, ProjectPlanReady, ProjectResumeRequested, ProjectStartRequested, ProjectStatus, ProjectStatusWithLiterals, RefreshAgentSiteTokenRequest, RefreshAgentSiteTokenResponse, RegenerateProjectIconRequest, RegenerateProjectIconResponse, RegenerateProjectNameRequest, RegenerateProjectNameResponse, RestoreInfo, ResumeProjectRequest, SandboxStatus, SandboxStatusWithLiterals, SaveProjectDesignRequest, StartProjectRequest, StartProjectResponse, UpdateProject, UpdateProjectRequest, UpdateProjectResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
2
|
+
import { Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, RestoreReleaseOptions, RestoreReleaseResponse, GetHimalayaAuthorizationResponse } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteProjectRequest, DeleteProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetHimalayaAuthorizationRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsOptions, ListProjectsRequest, ListProjectsResponse, MessageEnvelope, Platform, PlatformWithLiterals, ProjectPlanReady, ProjectResumeRequested, ProjectStartRequested, ProjectStatus, ProjectStatusWithLiterals, RefreshAgentSiteTokenRequest, RefreshAgentSiteTokenResponse, RegenerateProjectIconRequest, RegenerateProjectIconResponse, RegenerateProjectNameRequest, RegenerateProjectNameResponse, RestoreInfo, RestoreReleaseRequest, ResumeProjectRequest, SandboxStatus, SandboxStatusWithLiterals, SaveProjectDesignRequest, StartProjectRequest, StartProjectResponse, UpdateProject, UpdateProjectRequest, UpdateProjectResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
|
|
6
6
|
interface GetProjectSignature {
|
|
@@ -27,14 +27,33 @@ interface SaveProjectDesignSignature {
|
|
|
27
27
|
*
|
|
28
28
|
* Synchronous: the Himalaya write completes before this call returns. Never touches the project's
|
|
29
29
|
* sandbox, runs a build, or activates the app — the saved release stays a draft, so what the live
|
|
30
|
-
* app serves is unaffected. Persists
|
|
31
|
-
* chat
|
|
30
|
+
* app serves is unaffected. Persists no entity of its own. When `conversation_id` is supplied it
|
|
31
|
+
* posts a CHECKPOINT message for the saved release into that conversation (best-effort — a chat
|
|
32
|
+
* failure never fails the save); omit it to skip the checkpoint.
|
|
32
33
|
* @param - Project whose design is being saved. The caller must own it.
|
|
33
34
|
* @param - The Himalaya release ID currently displayed by the client. The saved draft branches from
|
|
34
35
|
* exactly this release, even when a newer release exists for the app.
|
|
35
36
|
*/
|
|
36
37
|
(projectId: string, baseReleaseId: string, options?: NonNullablePaths<SaveProjectDesignOptions, `himalayaControlToken` | `tokensJson`, 0>): Promise<NonNullablePaths<SaveProjectDesignResponse, `himalayaReleaseId` | `previewToken`, 0>>;
|
|
37
38
|
}
|
|
39
|
+
declare function restoreRelease$1(httpClient: HttpClient): RestoreReleaseSignature;
|
|
40
|
+
interface RestoreReleaseSignature {
|
|
41
|
+
/**
|
|
42
|
+
* Restores an earlier version by pointing the project's editable head at `release_id`: the client
|
|
43
|
+
* then previews that release and the next edit (design save or AI edit) branches from it. Pure
|
|
44
|
+
* project state — sets `head_release_id` and nothing in Himalaya: it does NOT activate the release,
|
|
45
|
+
* so the live app end-users run is untouched (a later publish/build is what carries head live).
|
|
46
|
+
*
|
|
47
|
+
* `release_id` is a Himalaya release id the caller already holds from the project's own release
|
|
48
|
+
* ledger, scoped to this project's app; the server stores it as head without re-reading Himalaya.
|
|
49
|
+
* When `conversation_id` is supplied, a CHECKPOINT message for the restored release is posted into
|
|
50
|
+
* it (best-effort — a chat failure never fails the restore); omit it to skip the checkpoint.
|
|
51
|
+
* @param - Project whose head is being moved. The caller must own it.
|
|
52
|
+
* @param - The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id
|
|
53
|
+
* (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.
|
|
54
|
+
*/
|
|
55
|
+
(projectId: string, releaseId: string, options?: RestoreReleaseOptions): Promise<NonNullablePaths<RestoreReleaseResponse, `project.name` | `project.status` | `project.sandboxStatus` | `project.metaSiteIds` | `project.platform`, 1>>;
|
|
56
|
+
}
|
|
38
57
|
declare function getHimalayaAuthorization$1(httpClient: HttpClient): GetHimalayaAuthorizationSignature;
|
|
39
58
|
interface GetHimalayaAuthorizationSignature {
|
|
40
59
|
/**
|
|
@@ -48,6 +67,7 @@ interface GetHimalayaAuthorizationSignature {
|
|
|
48
67
|
declare const getProject: MaybeContext<BuildRESTFunction<typeof getProject$1> & typeof getProject$1>;
|
|
49
68
|
declare const resumeProject: MaybeContext<BuildRESTFunction<typeof resumeProject$1> & typeof resumeProject$1>;
|
|
50
69
|
declare const saveProjectDesign: MaybeContext<BuildRESTFunction<typeof saveProjectDesign$1> & typeof saveProjectDesign$1>;
|
|
70
|
+
declare const restoreRelease: MaybeContext<BuildRESTFunction<typeof restoreRelease$1> & typeof restoreRelease$1>;
|
|
51
71
|
declare const getHimalayaAuthorization: MaybeContext<BuildRESTFunction<typeof getHimalayaAuthorization$1> & typeof getHimalayaAuthorization$1>;
|
|
52
72
|
|
|
53
|
-
export { GetHimalayaAuthorizationResponse, Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, getHimalayaAuthorization, getProject, resumeProject, saveProjectDesign };
|
|
73
|
+
export { GetHimalayaAuthorizationResponse, Project, RestoreReleaseOptions, RestoreReleaseResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, getHimalayaAuthorization, getProject, restoreRelease, resumeProject, saveProjectDesign };
|
package/build/es/index.mjs
CHANGED
|
@@ -248,6 +248,33 @@ function saveProjectDesign(payload) {
|
|
|
248
248
|
}
|
|
249
249
|
return __saveProjectDesign;
|
|
250
250
|
}
|
|
251
|
+
function restoreRelease(payload) {
|
|
252
|
+
function __restoreRelease({ host }) {
|
|
253
|
+
const metadata = {
|
|
254
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
255
|
+
method: "POST",
|
|
256
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.RestoreRelease",
|
|
257
|
+
packageName: PACKAGE_NAME,
|
|
258
|
+
migrationOptions: {
|
|
259
|
+
optInTransformResponse: true
|
|
260
|
+
},
|
|
261
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
262
|
+
protoPath: "/v1/projects/{projectId}/restore-release",
|
|
263
|
+
data: payload,
|
|
264
|
+
host
|
|
265
|
+
}),
|
|
266
|
+
data: payload,
|
|
267
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
268
|
+
{
|
|
269
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
270
|
+
paths: TRANSFORM_PATHS_0
|
|
271
|
+
}
|
|
272
|
+
])
|
|
273
|
+
};
|
|
274
|
+
return metadata;
|
|
275
|
+
}
|
|
276
|
+
return __restoreRelease;
|
|
277
|
+
}
|
|
251
278
|
function listProjects(payload) {
|
|
252
279
|
function __listProjects({ host }) {
|
|
253
280
|
const metadata = {
|
|
@@ -504,7 +531,8 @@ async function saveProjectDesign2(projectId, baseReleaseId, options) {
|
|
|
504
531
|
baseReleaseId,
|
|
505
532
|
tokensJson: options?.tokensJson,
|
|
506
533
|
himalayaControlToken: options?.himalayaControlToken,
|
|
507
|
-
canonicalApp: options?.canonicalApp
|
|
534
|
+
canonicalApp: options?.canonicalApp,
|
|
535
|
+
conversationId: options?.conversationId
|
|
508
536
|
});
|
|
509
537
|
const reqOpts = saveProjectDesign(payload);
|
|
510
538
|
sideEffects?.onSiteCall?.();
|
|
@@ -522,7 +550,8 @@ async function saveProjectDesign2(projectId, baseReleaseId, options) {
|
|
|
522
550
|
baseReleaseId: "$[1]",
|
|
523
551
|
tokensJson: "$[2].tokensJson",
|
|
524
552
|
himalayaControlToken: "$[2].himalayaControlToken",
|
|
525
|
-
canonicalApp: "$[2].canonicalApp"
|
|
553
|
+
canonicalApp: "$[2].canonicalApp",
|
|
554
|
+
conversationId: "$[2].conversationId"
|
|
526
555
|
},
|
|
527
556
|
singleArgumentUnchanged: false
|
|
528
557
|
},
|
|
@@ -532,6 +561,39 @@ async function saveProjectDesign2(projectId, baseReleaseId, options) {
|
|
|
532
561
|
throw transformedError;
|
|
533
562
|
}
|
|
534
563
|
}
|
|
564
|
+
async function restoreRelease2(projectId, releaseId, options) {
|
|
565
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
566
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
567
|
+
projectId,
|
|
568
|
+
releaseId,
|
|
569
|
+
himalayaControlToken: options?.himalayaControlToken,
|
|
570
|
+
conversationId: options?.conversationId
|
|
571
|
+
});
|
|
572
|
+
const reqOpts = restoreRelease(payload);
|
|
573
|
+
sideEffects?.onSiteCall?.();
|
|
574
|
+
try {
|
|
575
|
+
const result = await httpClient.request(reqOpts);
|
|
576
|
+
sideEffects?.onSuccess?.(result);
|
|
577
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
578
|
+
} catch (err) {
|
|
579
|
+
const transformedError = sdkTransformError(
|
|
580
|
+
err,
|
|
581
|
+
{
|
|
582
|
+
spreadPathsToArguments: {},
|
|
583
|
+
explicitPathsToArguments: {
|
|
584
|
+
projectId: "$[0]",
|
|
585
|
+
releaseId: "$[1]",
|
|
586
|
+
himalayaControlToken: "$[2].himalayaControlToken",
|
|
587
|
+
conversationId: "$[2].conversationId"
|
|
588
|
+
},
|
|
589
|
+
singleArgumentUnchanged: false
|
|
590
|
+
},
|
|
591
|
+
["projectId", "releaseId", "options"]
|
|
592
|
+
);
|
|
593
|
+
sideEffects?.onError?.(err);
|
|
594
|
+
throw transformedError;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
535
597
|
async function listProjects2(options) {
|
|
536
598
|
const { httpClient, sideEffects } = arguments[1];
|
|
537
599
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -645,6 +707,15 @@ function saveProjectDesign3(httpClient) {
|
|
|
645
707
|
{ httpClient }
|
|
646
708
|
);
|
|
647
709
|
}
|
|
710
|
+
function restoreRelease3(httpClient) {
|
|
711
|
+
return (projectId, releaseId, options) => restoreRelease2(
|
|
712
|
+
projectId,
|
|
713
|
+
releaseId,
|
|
714
|
+
options,
|
|
715
|
+
// @ts-ignore
|
|
716
|
+
{ httpClient }
|
|
717
|
+
);
|
|
718
|
+
}
|
|
648
719
|
function listProjects3(httpClient) {
|
|
649
720
|
return (options) => listProjects2(
|
|
650
721
|
options,
|
|
@@ -670,6 +741,7 @@ var resumeProject4 = /* @__PURE__ */ createRESTModule(resumeProject3);
|
|
|
670
741
|
var regenerateProjectName4 = /* @__PURE__ */ createRESTModule(regenerateProjectName3);
|
|
671
742
|
var regenerateProjectIcon4 = /* @__PURE__ */ createRESTModule(regenerateProjectIcon3);
|
|
672
743
|
var saveProjectDesign4 = /* @__PURE__ */ createRESTModule(saveProjectDesign3);
|
|
744
|
+
var restoreRelease4 = /* @__PURE__ */ createRESTModule(restoreRelease3);
|
|
673
745
|
var listProjects4 = /* @__PURE__ */ createRESTModule(listProjects3);
|
|
674
746
|
var getHimalayaAuthorization4 = /* @__PURE__ */ createRESTModule(getHimalayaAuthorization3);
|
|
675
747
|
export {
|
|
@@ -684,6 +756,7 @@ export {
|
|
|
684
756
|
listProjects4 as listProjects,
|
|
685
757
|
regenerateProjectIcon4 as regenerateProjectIcon,
|
|
686
758
|
regenerateProjectName4 as regenerateProjectName,
|
|
759
|
+
restoreRelease4 as restoreRelease,
|
|
687
760
|
resumeProject4 as resumeProject,
|
|
688
761
|
saveProjectDesign4 as saveProjectDesign,
|
|
689
762
|
updateProject4 as updateProject
|