@wix/auto_sdk_containers_projects 1.0.0 → 1.0.2
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 +71 -2
- package/build/cjs/index.js +79 -32
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +71 -32
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +69 -3
- package/build/cjs/meta.js +60 -30
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +71 -2
- package/build/es/index.mjs +78 -32
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +70 -32
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +69 -3
- package/build/es/meta.mjs +59 -30
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +16 -4
- package/build/internal/cjs/index.typings.d.ts +83 -4
- package/build/internal/cjs/meta.d.ts +69 -3
- package/build/internal/es/index.d.mts +16 -4
- package/build/internal/es/index.typings.d.mts +83 -4
- package/build/internal/es/meta.d.mts +69 -3
- 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\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: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n ],\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: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n ],\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: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n ],\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: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n ],\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: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n ],\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: [\n { path: 'project.createdDate' },\n { path: 'project.updatedDate' },\n ],\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: [{ path: 'previewTokenExpiresAt' }],\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: [\n { path: 'projects.createdDate' },\n { path: 'projects.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listProjects;\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 * ID of the Project whose owner site token should be re-minted.\n * @format GUID\n */\n projectId?: 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}\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\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","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 {\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} from './containers-projects-v1-project-projects.types.js';\n"],"mappings":";;;;;;;;;;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,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,EAAE,WAAW,aAAa;AAE1C,QAAM,oBACqC,kBAAkB,OAAO;AAEpE,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;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;","names":["createProject","deleteProject","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"]}
|
|
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,0BA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AAI,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;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"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -147,10 +147,15 @@ interface CreateAgentSessionResponse {
|
|
|
147
147
|
}
|
|
148
148
|
interface RefreshAgentSiteTokenRequest {
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Exact project/job tuple whose initiating user's site token should be re-minted.
|
|
151
151
|
* @format GUID
|
|
152
152
|
*/
|
|
153
153
|
projectId?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Job whose persisted initiating user and MetaSite provenance must be revalidated.
|
|
156
|
+
* @format GUID
|
|
157
|
+
*/
|
|
158
|
+
jobId?: string;
|
|
154
159
|
}
|
|
155
160
|
interface RefreshAgentSiteTokenResponse {
|
|
156
161
|
/**
|
|
@@ -163,6 +168,28 @@ interface RefreshAgentSiteTokenResponse {
|
|
|
163
168
|
accessToken?: string;
|
|
164
169
|
/** Seconds until the returned token expires, as reported by oauth2-ng. */
|
|
165
170
|
expiresIn?: string;
|
|
171
|
+
/** Version of the job-bound authorization response contract. */
|
|
172
|
+
authorizationVersion?: number;
|
|
173
|
+
/**
|
|
174
|
+
* The project authorized by this refresh.
|
|
175
|
+
* @format GUID
|
|
176
|
+
*/
|
|
177
|
+
projectId?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The job authorized by this refresh.
|
|
180
|
+
* @format GUID
|
|
181
|
+
*/
|
|
182
|
+
jobId?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Trusted MetaSite captured when the job was created.
|
|
185
|
+
* @format GUID
|
|
186
|
+
*/
|
|
187
|
+
metaSiteId?: string;
|
|
188
|
+
/**
|
|
189
|
+
* Trusted dashboard USER captured when the job was created.
|
|
190
|
+
* @format GUID
|
|
191
|
+
*/
|
|
192
|
+
initiatingUserId?: string;
|
|
166
193
|
}
|
|
167
194
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
168
195
|
createdEvent?: EntityCreatedEvent;
|
|
@@ -492,6 +519,12 @@ interface SaveProjectDesignRequest {
|
|
|
492
519
|
* @maxLength 4096
|
|
493
520
|
*/
|
|
494
521
|
himalayaControlToken: string;
|
|
522
|
+
/**
|
|
523
|
+
* Client assertion of the canonical app returned by authenticated Himalaya lookup. Catalyst
|
|
524
|
+
* resolves and validates the same value; it is never used as an unchecked write target.
|
|
525
|
+
* @maxLength 200
|
|
526
|
+
*/
|
|
527
|
+
canonicalApp?: string;
|
|
495
528
|
}
|
|
496
529
|
interface SaveProjectDesignResponse {
|
|
497
530
|
/**
|
|
@@ -518,6 +551,36 @@ interface ListProjectsResponse {
|
|
|
518
551
|
/** Paging metadata for cursor-based pagination. */
|
|
519
552
|
pagingMetadata?: CursorPagingMetadata;
|
|
520
553
|
}
|
|
554
|
+
interface GetHimalayaAuthorizationRequest {
|
|
555
|
+
/**
|
|
556
|
+
* Site-tenanted Containers project being authorized.
|
|
557
|
+
* @format GUID
|
|
558
|
+
*/
|
|
559
|
+
projectId: string;
|
|
560
|
+
}
|
|
561
|
+
interface GetHimalayaAuthorizationResponse {
|
|
562
|
+
/** Version of the authorization capability contract. */
|
|
563
|
+
authorizationVersion?: number;
|
|
564
|
+
/**
|
|
565
|
+
* Trusted MetaSite selected from request identity context.
|
|
566
|
+
* @format GUID
|
|
567
|
+
*/
|
|
568
|
+
metaSiteId?: string;
|
|
569
|
+
/**
|
|
570
|
+
* Site-tenanted Containers project authorized by the lookup.
|
|
571
|
+
* @format GUID
|
|
572
|
+
*/
|
|
573
|
+
projectId?: string;
|
|
574
|
+
/**
|
|
575
|
+
* Verified canonical Himalaya app slug.
|
|
576
|
+
* @maxLength 200
|
|
577
|
+
*/
|
|
578
|
+
canonicalApp?: string;
|
|
579
|
+
/** Whether a fresh worker launch is currently authorized. */
|
|
580
|
+
workerLaunch?: boolean;
|
|
581
|
+
/** Whether a fresh design save is currently authorized. */
|
|
582
|
+
saveDesign?: boolean;
|
|
583
|
+
}
|
|
521
584
|
interface UpdateProject {
|
|
522
585
|
/**
|
|
523
586
|
* Project ID.
|
|
@@ -607,10 +670,16 @@ interface SaveProjectDesignOptions {
|
|
|
607
670
|
* @maxLength 4096
|
|
608
671
|
*/
|
|
609
672
|
himalayaControlToken: string;
|
|
673
|
+
/**
|
|
674
|
+
* Client assertion of the canonical app returned by authenticated Himalaya lookup. Catalyst
|
|
675
|
+
* resolves and validates the same value; it is never used as an unchecked write target.
|
|
676
|
+
* @maxLength 200
|
|
677
|
+
*/
|
|
678
|
+
canonicalApp?: string;
|
|
610
679
|
}
|
|
611
680
|
interface ListProjectsOptions {
|
|
612
681
|
/** Cursor paging options. */
|
|
613
682
|
paging?: CursorPaging;
|
|
614
683
|
}
|
|
615
684
|
|
|
616
|
-
export { type AccountInfo, type ActionEvent, type CreateAgentSessionRequest, type CreateAgentSessionResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DeleteProjectRequest, type DeleteProjectResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListProjectsForCurrentUserRequest, type ListProjectsForCurrentUserResponse, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MessageEnvelope, Platform, type PlatformWithLiterals, type Project, type ProjectPlanReady, type ProjectResumeRequested, type ProjectStartRequested, ProjectStatus, type ProjectStatusWithLiterals, type RefreshAgentSiteTokenRequest, type RefreshAgentSiteTokenResponse, type RegenerateProjectIconRequest, type RegenerateProjectIconResponse, type RegenerateProjectNameRequest, type RegenerateProjectNameResponse, type RestoreInfo, type ResumeProjectRequest, type ResumeProjectResponse, SandboxStatus, type SandboxStatusWithLiterals, type SaveProjectDesignOptions, type SaveProjectDesignRequest, type SaveProjectDesignResponse, type StartProjectRequest, type StartProjectResponse, type UpdateProject, type UpdateProjectRequest, type UpdateProjectResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
|
|
685
|
+
export { type AccountInfo, type ActionEvent, type CreateAgentSessionRequest, type CreateAgentSessionResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DeleteProjectRequest, type DeleteProjectResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetHimalayaAuthorizationRequest, type GetHimalayaAuthorizationResponse, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListProjectsForCurrentUserRequest, type ListProjectsForCurrentUserResponse, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MessageEnvelope, Platform, type PlatformWithLiterals, type Project, type ProjectPlanReady, type ProjectResumeRequested, type ProjectStartRequested, ProjectStatus, type ProjectStatusWithLiterals, type RefreshAgentSiteTokenRequest, type RefreshAgentSiteTokenResponse, type RegenerateProjectIconRequest, type RegenerateProjectIconResponse, type RegenerateProjectNameRequest, type RegenerateProjectNameResponse, type RestoreInfo, type ResumeProjectRequest, type ResumeProjectResponse, SandboxStatus, type SandboxStatusWithLiterals, type SaveProjectDesignOptions, type SaveProjectDesignRequest, type SaveProjectDesignResponse, type StartProjectRequest, type StartProjectResponse, type UpdateProject, type UpdateProjectRequest, type UpdateProjectResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals };
|
package/build/es/index.mjs
CHANGED
|
@@ -12,6 +12,16 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
12
12
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
13
13
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
14
14
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
15
|
+
var TRANSFORM_PATHS_0 = [
|
|
16
|
+
{ path: "project.createdDate" },
|
|
17
|
+
{ path: "project.updatedDate" }
|
|
18
|
+
];
|
|
19
|
+
var TRANSFORM_PATHS_1 = [{ path: "fieldMask" }];
|
|
20
|
+
var TRANSFORM_PATHS_2 = [{ path: "previewTokenExpiresAt" }];
|
|
21
|
+
var TRANSFORM_PATHS_3 = [
|
|
22
|
+
{ path: "projects.createdDate" },
|
|
23
|
+
{ path: "projects.updatedDate" }
|
|
24
|
+
];
|
|
15
25
|
function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
|
|
16
26
|
const domainToMappings = {
|
|
17
27
|
"manage._base_domain_": [
|
|
@@ -29,10 +39,7 @@ function createProject(payload) {
|
|
|
29
39
|
const serializedData = transformPaths(payload, [
|
|
30
40
|
{
|
|
31
41
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
32
|
-
paths:
|
|
33
|
-
{ path: "project.createdDate" },
|
|
34
|
-
{ path: "project.updatedDate" }
|
|
35
|
-
]
|
|
42
|
+
paths: TRANSFORM_PATHS_0
|
|
36
43
|
}
|
|
37
44
|
]);
|
|
38
45
|
const metadata = {
|
|
@@ -52,10 +59,7 @@ function createProject(payload) {
|
|
|
52
59
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
53
60
|
{
|
|
54
61
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
55
|
-
paths:
|
|
56
|
-
{ path: "project.createdDate" },
|
|
57
|
-
{ path: "project.updatedDate" }
|
|
58
|
-
]
|
|
62
|
+
paths: TRANSFORM_PATHS_0
|
|
59
63
|
}
|
|
60
64
|
])
|
|
61
65
|
};
|
|
@@ -82,10 +86,7 @@ function getProject(payload) {
|
|
|
82
86
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
83
87
|
{
|
|
84
88
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
85
|
-
paths:
|
|
86
|
-
{ path: "project.createdDate" },
|
|
87
|
-
{ path: "project.updatedDate" }
|
|
88
|
-
]
|
|
89
|
+
paths: TRANSFORM_PATHS_0
|
|
89
90
|
}
|
|
90
91
|
])
|
|
91
92
|
};
|
|
@@ -98,14 +99,11 @@ function updateProject(payload) {
|
|
|
98
99
|
const serializedData = transformPaths(payload, [
|
|
99
100
|
{
|
|
100
101
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
101
|
-
paths:
|
|
102
|
+
paths: TRANSFORM_PATHS_1
|
|
102
103
|
},
|
|
103
104
|
{
|
|
104
105
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
105
|
-
paths:
|
|
106
|
-
{ path: "project.createdDate" },
|
|
107
|
-
{ path: "project.updatedDate" }
|
|
108
|
-
]
|
|
106
|
+
paths: TRANSFORM_PATHS_0
|
|
109
107
|
}
|
|
110
108
|
]);
|
|
111
109
|
const metadata = {
|
|
@@ -125,10 +123,7 @@ function updateProject(payload) {
|
|
|
125
123
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
126
124
|
{
|
|
127
125
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
128
|
-
paths:
|
|
129
|
-
{ path: "project.createdDate" },
|
|
130
|
-
{ path: "project.updatedDate" }
|
|
131
|
-
]
|
|
126
|
+
paths: TRANSFORM_PATHS_0
|
|
132
127
|
}
|
|
133
128
|
])
|
|
134
129
|
};
|
|
@@ -176,10 +171,7 @@ function resumeProject(payload) {
|
|
|
176
171
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
177
172
|
{
|
|
178
173
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
179
|
-
paths:
|
|
180
|
-
{ path: "project.createdDate" },
|
|
181
|
-
{ path: "project.updatedDate" }
|
|
182
|
-
]
|
|
174
|
+
paths: TRANSFORM_PATHS_0
|
|
183
175
|
}
|
|
184
176
|
])
|
|
185
177
|
};
|
|
@@ -248,7 +240,7 @@ function saveProjectDesign(payload) {
|
|
|
248
240
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
249
241
|
{
|
|
250
242
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
251
|
-
paths:
|
|
243
|
+
paths: TRANSFORM_PATHS_2
|
|
252
244
|
}
|
|
253
245
|
])
|
|
254
246
|
};
|
|
@@ -275,10 +267,7 @@ function listProjects(payload) {
|
|
|
275
267
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
276
268
|
{
|
|
277
269
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
278
|
-
paths:
|
|
279
|
-
{ path: "projects.createdDate" },
|
|
280
|
-
{ path: "projects.updatedDate" }
|
|
281
|
-
]
|
|
270
|
+
paths: TRANSFORM_PATHS_3
|
|
282
271
|
}
|
|
283
272
|
])
|
|
284
273
|
};
|
|
@@ -286,6 +275,27 @@ function listProjects(payload) {
|
|
|
286
275
|
}
|
|
287
276
|
return __listProjects;
|
|
288
277
|
}
|
|
278
|
+
function getHimalayaAuthorization(payload) {
|
|
279
|
+
function __getHimalayaAuthorization({ host }) {
|
|
280
|
+
const metadata = {
|
|
281
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
282
|
+
method: "GET",
|
|
283
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.GetHimalayaAuthorization",
|
|
284
|
+
packageName: PACKAGE_NAME,
|
|
285
|
+
migrationOptions: {
|
|
286
|
+
optInTransformResponse: true
|
|
287
|
+
},
|
|
288
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
289
|
+
protoPath: "/v1/projects/{projectId}/himalaya-authorization",
|
|
290
|
+
data: payload,
|
|
291
|
+
host
|
|
292
|
+
}),
|
|
293
|
+
params: toURLSearchParams(payload)
|
|
294
|
+
};
|
|
295
|
+
return metadata;
|
|
296
|
+
}
|
|
297
|
+
return __getHimalayaAuthorization;
|
|
298
|
+
}
|
|
289
299
|
|
|
290
300
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
291
301
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -493,7 +503,8 @@ async function saveProjectDesign2(projectId, baseReleaseId, options) {
|
|
|
493
503
|
projectId,
|
|
494
504
|
baseReleaseId,
|
|
495
505
|
tokensJson: options?.tokensJson,
|
|
496
|
-
himalayaControlToken: options?.himalayaControlToken
|
|
506
|
+
himalayaControlToken: options?.himalayaControlToken,
|
|
507
|
+
canonicalApp: options?.canonicalApp
|
|
497
508
|
});
|
|
498
509
|
const reqOpts = saveProjectDesign(payload);
|
|
499
510
|
sideEffects?.onSiteCall?.();
|
|
@@ -510,7 +521,8 @@ async function saveProjectDesign2(projectId, baseReleaseId, options) {
|
|
|
510
521
|
projectId: "$[0]",
|
|
511
522
|
baseReleaseId: "$[1]",
|
|
512
523
|
tokensJson: "$[2].tokensJson",
|
|
513
|
-
himalayaControlToken: "$[2].himalayaControlToken"
|
|
524
|
+
himalayaControlToken: "$[2].himalayaControlToken",
|
|
525
|
+
canonicalApp: "$[2].canonicalApp"
|
|
514
526
|
},
|
|
515
527
|
singleArgumentUnchanged: false
|
|
516
528
|
},
|
|
@@ -545,6 +557,31 @@ async function listProjects2(options) {
|
|
|
545
557
|
throw transformedError;
|
|
546
558
|
}
|
|
547
559
|
}
|
|
560
|
+
async function getHimalayaAuthorization2(projectId) {
|
|
561
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
562
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
563
|
+
projectId
|
|
564
|
+
});
|
|
565
|
+
const reqOpts = getHimalayaAuthorization(payload);
|
|
566
|
+
sideEffects?.onSiteCall?.();
|
|
567
|
+
try {
|
|
568
|
+
const result = await httpClient.request(reqOpts);
|
|
569
|
+
sideEffects?.onSuccess?.(result);
|
|
570
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
571
|
+
} catch (err) {
|
|
572
|
+
const transformedError = sdkTransformError(
|
|
573
|
+
err,
|
|
574
|
+
{
|
|
575
|
+
spreadPathsToArguments: {},
|
|
576
|
+
explicitPathsToArguments: { projectId: "$[0]" },
|
|
577
|
+
singleArgumentUnchanged: false
|
|
578
|
+
},
|
|
579
|
+
["projectId"]
|
|
580
|
+
);
|
|
581
|
+
sideEffects?.onError?.(err);
|
|
582
|
+
throw transformedError;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
548
585
|
|
|
549
586
|
// src/containers-projects-v1-project-projects.public.ts
|
|
550
587
|
function createProject3(httpClient) {
|
|
@@ -615,6 +652,13 @@ function listProjects3(httpClient) {
|
|
|
615
652
|
{ httpClient }
|
|
616
653
|
);
|
|
617
654
|
}
|
|
655
|
+
function getHimalayaAuthorization3(httpClient) {
|
|
656
|
+
return (projectId) => getHimalayaAuthorization2(
|
|
657
|
+
projectId,
|
|
658
|
+
// @ts-ignore
|
|
659
|
+
{ httpClient }
|
|
660
|
+
);
|
|
661
|
+
}
|
|
618
662
|
|
|
619
663
|
// src/containers-projects-v1-project-projects.context.ts
|
|
620
664
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -627,6 +671,7 @@ var regenerateProjectName4 = /* @__PURE__ */ createRESTModule(regenerateProjectN
|
|
|
627
671
|
var regenerateProjectIcon4 = /* @__PURE__ */ createRESTModule(regenerateProjectIcon3);
|
|
628
672
|
var saveProjectDesign4 = /* @__PURE__ */ createRESTModule(saveProjectDesign3);
|
|
629
673
|
var listProjects4 = /* @__PURE__ */ createRESTModule(listProjects3);
|
|
674
|
+
var getHimalayaAuthorization4 = /* @__PURE__ */ createRESTModule(getHimalayaAuthorization3);
|
|
630
675
|
export {
|
|
631
676
|
Platform,
|
|
632
677
|
ProjectStatus,
|
|
@@ -634,6 +679,7 @@ export {
|
|
|
634
679
|
WebhookIdentityType,
|
|
635
680
|
createProject4 as createProject,
|
|
636
681
|
deleteProject4 as deleteProject,
|
|
682
|
+
getHimalayaAuthorization4 as getHimalayaAuthorization,
|
|
637
683
|
getProject4 as getProject,
|
|
638
684
|
listProjects4 as listProjects,
|
|
639
685
|
regenerateProjectIcon4 as regenerateProjectIcon,
|