@wix/auto_sdk_containers_projects 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +25 -5
- package/build/cjs/index.js +76 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +126 -3
- package/build/cjs/index.typings.js +66 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +63 -2
- package/build/cjs/meta.js +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +25 -5
- package/build/es/index.mjs +75 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +126 -3
- package/build/es/index.typings.mjs +65 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +63 -2
- package/build/es/meta.mjs +46 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +25 -5
- package/build/internal/cjs/index.typings.d.ts +126 -3
- package/build/internal/cjs/meta.d.ts +63 -2
- package/build/internal/es/index.d.mts +25 -5
- package/build/internal/es/index.typings.d.mts +126 -3
- package/build/internal/es/meta.d.mts +63 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateProjectRequest as CreateProjectRequest$1, CreateProjectResponse as CreateProjectResponse$1, GetProjectRequest as GetProjectRequest$1, GetProjectResponse as GetProjectResponse$1, UpdateProjectRequest as UpdateProjectRequest$1, UpdateProjectResponse as UpdateProjectResponse$1, DeleteProjectRequest as DeleteProjectRequest$1, DeleteProjectResponse as DeleteProjectResponse$1, ResumeProjectRequest as ResumeProjectRequest$1, ResumeProjectResponse as ResumeProjectResponse$1, RegenerateProjectNameRequest as RegenerateProjectNameRequest$1, RegenerateProjectNameResponse as RegenerateProjectNameResponse$1, RegenerateProjectIconRequest as RegenerateProjectIconRequest$1, RegenerateProjectIconResponse as RegenerateProjectIconResponse$1, SaveProjectDesignRequest as SaveProjectDesignRequest$1, SaveProjectDesignResponse as SaveProjectDesignResponse$1, ListProjectsRequest as ListProjectsRequest$1, ListProjectsResponse as ListProjectsResponse$1, GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponse$1 } from './index.typings.js';
|
|
1
|
+
import { CreateProjectRequest as CreateProjectRequest$1, CreateProjectResponse as CreateProjectResponse$1, GetProjectRequest as GetProjectRequest$1, GetProjectResponse as GetProjectResponse$1, UpdateProjectRequest as UpdateProjectRequest$1, UpdateProjectResponse as UpdateProjectResponse$1, DeleteProjectRequest as DeleteProjectRequest$1, DeleteProjectResponse as DeleteProjectResponse$1, ResumeProjectRequest as ResumeProjectRequest$1, ResumeProjectResponse as ResumeProjectResponse$1, RegenerateProjectNameRequest as RegenerateProjectNameRequest$1, RegenerateProjectNameResponse as RegenerateProjectNameResponse$1, RegenerateProjectIconRequest as RegenerateProjectIconRequest$1, RegenerateProjectIconResponse as RegenerateProjectIconResponse$1, SaveProjectDesignRequest as SaveProjectDesignRequest$1, SaveProjectDesignResponse as SaveProjectDesignResponse$1, RestoreReleaseRequest as RestoreReleaseRequest$1, RestoreReleaseResponse as RestoreReleaseResponse$1, ListProjectsRequest as ListProjectsRequest$1, ListProjectsResponse as ListProjectsResponse$1, GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Project {
|
|
@@ -71,6 +71,16 @@ interface Project {
|
|
|
71
71
|
* @maxLength 2000
|
|
72
72
|
*/
|
|
73
73
|
appIconUrl?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The Himalaya release the editor is currently on — the "head" the client previews and the next
|
|
76
|
+
* edit (design save or AI edit) branches from. Server-managed: set to the new draft after each
|
|
77
|
+
* edit, and to the chosen release by RestoreRelease. Unset means "newest release by date" (the
|
|
78
|
+
* pre-head default), so existing projects keep working until their first edit/restore sets it.
|
|
79
|
+
* Not a GUID — a Himalaya release id (e.g. `rel-<hash>` / `<sha>-<hash>`).
|
|
80
|
+
* @maxLength 200
|
|
81
|
+
* @readonly
|
|
82
|
+
*/
|
|
83
|
+
headReleaseId?: string | null;
|
|
74
84
|
}
|
|
75
85
|
declare enum ProjectStatus {
|
|
76
86
|
/** Project created; client (via containers-plans) is doing most of the work. */
|
|
@@ -577,6 +587,17 @@ interface SaveProjectDesignRequest {
|
|
|
577
587
|
* @maxLength 200
|
|
578
588
|
*/
|
|
579
589
|
canonicalApp?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Conversation this design is saved from. When set, a CHECKPOINT message marking the saved
|
|
592
|
+
* version is posted into it (best-effort). Optional — an older client that omits it still saves
|
|
593
|
+
* the design; it just produces no checkpoint. Verified to belong to this project server-side.
|
|
594
|
+
*
|
|
595
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
596
|
+
* fail the save. A malformed/unexpected id is handled downstream (the ownership lookup rejects it
|
|
597
|
+
* and the checkpoint is skipped) rather than hard-failing SaveProjectDesign at the request boundary.
|
|
598
|
+
* @maxLength 100
|
|
599
|
+
*/
|
|
600
|
+
conversationId?: string;
|
|
580
601
|
}
|
|
581
602
|
interface SaveProjectDesignResponse {
|
|
582
603
|
/**
|
|
@@ -593,6 +614,43 @@ interface SaveProjectDesignResponse {
|
|
|
593
614
|
/** When preview_token expires. */
|
|
594
615
|
previewTokenExpiresAt?: Date | null;
|
|
595
616
|
}
|
|
617
|
+
interface RestoreReleaseRequest {
|
|
618
|
+
/**
|
|
619
|
+
* Project whose head is being moved. The caller must own it.
|
|
620
|
+
* @format GUID
|
|
621
|
+
*/
|
|
622
|
+
projectId: string;
|
|
623
|
+
/**
|
|
624
|
+
* The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id
|
|
625
|
+
* (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.
|
|
626
|
+
* @maxLength 200
|
|
627
|
+
*/
|
|
628
|
+
releaseId: string;
|
|
629
|
+
/**
|
|
630
|
+
* Short-lived, app-scoped Himalaya control credential (the same the client obtains from Himalaya's
|
|
631
|
+
* owner embed-token endpoint and sends on SaveProjectDesign). When present, the server verifies
|
|
632
|
+
* release_id belongs to this project's Himalaya app before moving head. Optional for back-compat:
|
|
633
|
+
* an older client that omits it skips that check (the release still comes from the project's own
|
|
634
|
+
* ledger). Forwarded to Himalaya for the ledger read only — never logged, persisted, or echoed.
|
|
635
|
+
* @maxLength 4096
|
|
636
|
+
*/
|
|
637
|
+
himalayaControlToken?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Conversation this restore is made from. When set, a CHECKPOINT message marking the restored
|
|
640
|
+
* version is posted into it (best-effort). Optional — a client that omits it still restores; it
|
|
641
|
+
* just produces no checkpoint. Verified to belong to this project server-side.
|
|
642
|
+
*
|
|
643
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
644
|
+
* fail the restore. A malformed id is handled downstream (the ownership lookup rejects it and the
|
|
645
|
+
* checkpoint is skipped) rather than hard-failing RestoreRelease at the request boundary.
|
|
646
|
+
* @maxLength 100
|
|
647
|
+
*/
|
|
648
|
+
conversationId?: string;
|
|
649
|
+
}
|
|
650
|
+
interface RestoreReleaseResponse {
|
|
651
|
+
/** The project after the restore, with head_release_id set to the restored release. */
|
|
652
|
+
project?: Project;
|
|
653
|
+
}
|
|
596
654
|
interface ListProjectsRequest {
|
|
597
655
|
/** Cursor paging options. */
|
|
598
656
|
paging?: CursorPaging;
|
|
@@ -666,9 +724,12 @@ declare function regenerateProjectIcon(): __PublicMethodMetaInfo<'POST', {
|
|
|
666
724
|
declare function saveProjectDesign(): __PublicMethodMetaInfo<'POST', {
|
|
667
725
|
projectId: string;
|
|
668
726
|
}, SaveProjectDesignRequest$1, SaveProjectDesignRequest, SaveProjectDesignResponse$1, SaveProjectDesignResponse>;
|
|
727
|
+
declare function restoreRelease(): __PublicMethodMetaInfo<'POST', {
|
|
728
|
+
projectId: string;
|
|
729
|
+
}, RestoreReleaseRequest$1, RestoreReleaseRequest, RestoreReleaseResponse$1, RestoreReleaseResponse>;
|
|
669
730
|
declare function listProjects(): __PublicMethodMetaInfo<'GET', {}, ListProjectsRequest$1, ListProjectsRequest, ListProjectsResponse$1, ListProjectsResponse>;
|
|
670
731
|
declare function getHimalayaAuthorization(): __PublicMethodMetaInfo<'GET', {
|
|
671
732
|
projectId: string;
|
|
672
733
|
}, GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationRequest, GetHimalayaAuthorizationResponse$1, GetHimalayaAuthorizationResponse>;
|
|
673
734
|
|
|
674
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type CreateAgentSessionRequest as CreateAgentSessionRequestOriginal, type CreateAgentSessionResponse as CreateAgentSessionResponseOriginal, type CreateProjectRequest as CreateProjectRequestOriginal, type CreateProjectResponse as CreateProjectResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteProjectRequest as DeleteProjectRequestOriginal, type DeleteProjectResponse as DeleteProjectResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal, type GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponseOriginal, type GetProjectRequest as GetProjectRequestOriginal, type GetProjectResponse as GetProjectResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal, type ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal, type ListProjectsRequest as ListProjectsRequestOriginal, type ListProjectsResponse as ListProjectsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type Project as ProjectOriginal, type ProjectPlanReady as ProjectPlanReadyOriginal, type ProjectResumeRequested as ProjectResumeRequestedOriginal, type ProjectStartRequested as ProjectStartRequestedOriginal, ProjectStatus as ProjectStatusOriginal, type ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal, type RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal, type RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal, type RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal, type RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal, type RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal, type RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type ResumeProjectRequest as ResumeProjectRequestOriginal, type ResumeProjectResponse as ResumeProjectResponseOriginal, SandboxStatus as SandboxStatusOriginal, type SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal, type SaveProjectDesignRequest as SaveProjectDesignRequestOriginal, type SaveProjectDesignResponse as SaveProjectDesignResponseOriginal, type StartProjectRequest as StartProjectRequestOriginal, type StartProjectResponse as StartProjectResponseOriginal, type UpdateProjectRequest as UpdateProjectRequestOriginal, type UpdateProjectResponse as UpdateProjectResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, resumeProject, saveProjectDesign, updateProject };
|
|
735
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type CreateAgentSessionRequest as CreateAgentSessionRequestOriginal, type CreateAgentSessionResponse as CreateAgentSessionResponseOriginal, type CreateProjectRequest as CreateProjectRequestOriginal, type CreateProjectResponse as CreateProjectResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteProjectRequest as DeleteProjectRequestOriginal, type DeleteProjectResponse as DeleteProjectResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal, type GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponseOriginal, type GetProjectRequest as GetProjectRequestOriginal, type GetProjectResponse as GetProjectResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal, type ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal, type ListProjectsRequest as ListProjectsRequestOriginal, type ListProjectsResponse as ListProjectsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type Project as ProjectOriginal, type ProjectPlanReady as ProjectPlanReadyOriginal, type ProjectResumeRequested as ProjectResumeRequestedOriginal, type ProjectStartRequested as ProjectStartRequestedOriginal, ProjectStatus as ProjectStatusOriginal, type ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal, type RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal, type RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal, type RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal, type RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal, type RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal, type RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreReleaseRequest as RestoreReleaseRequestOriginal, type RestoreReleaseResponse as RestoreReleaseResponseOriginal, type ResumeProjectRequest as ResumeProjectRequestOriginal, type ResumeProjectResponse as ResumeProjectResponseOriginal, SandboxStatus as SandboxStatusOriginal, type SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal, type SaveProjectDesignRequest as SaveProjectDesignRequestOriginal, type SaveProjectDesignResponse as SaveProjectDesignResponseOriginal, type StartProjectRequest as StartProjectRequestOriginal, type StartProjectResponse as StartProjectResponseOriginal, type UpdateProjectRequest as UpdateProjectRequestOriginal, type UpdateProjectResponse as UpdateProjectResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, restoreRelease, resumeProject, saveProjectDesign, updateProject };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { Project, UpdateProject, ResumeProjectResponse, RegenerateProjectNameResponse, RegenerateProjectIconResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, ListProjectsOptions, ListProjectsResponse, GetHimalayaAuthorizationResponse } from './index.typings.mjs';
|
|
3
|
-
export { AccountInfo, ActionEvent, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteProjectRequest, DeleteProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetHimalayaAuthorizationRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsRequest, MessageEnvelope, Platform, PlatformWithLiterals, ProjectPlanReady, ProjectResumeRequested, ProjectStartRequested, ProjectStatus, ProjectStatusWithLiterals, RefreshAgentSiteTokenRequest, RefreshAgentSiteTokenResponse, RegenerateProjectIconRequest, RegenerateProjectNameRequest, RestoreInfo, ResumeProjectRequest, SandboxStatus, SandboxStatusWithLiterals, SaveProjectDesignRequest, StartProjectRequest, StartProjectResponse, UpdateProjectRequest, UpdateProjectResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
2
|
+
import { Project, UpdateProject, ResumeProjectResponse, RegenerateProjectNameResponse, RegenerateProjectIconResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, RestoreReleaseOptions, RestoreReleaseResponse, ListProjectsOptions, ListProjectsResponse, GetHimalayaAuthorizationResponse } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteProjectRequest, DeleteProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetHimalayaAuthorizationRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsRequest, MessageEnvelope, Platform, PlatformWithLiterals, ProjectPlanReady, ProjectResumeRequested, ProjectStartRequested, ProjectStatus, ProjectStatusWithLiterals, RefreshAgentSiteTokenRequest, RefreshAgentSiteTokenResponse, RegenerateProjectIconRequest, RegenerateProjectNameRequest, RestoreInfo, RestoreReleaseRequest, ResumeProjectRequest, SandboxStatus, SandboxStatusWithLiterals, SaveProjectDesignRequest, StartProjectRequest, StartProjectResponse, UpdateProjectRequest, UpdateProjectResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
/** @internal */
|
|
6
6
|
declare function createProject$1(httpClient: HttpClient): CreateProjectSignature;
|
|
@@ -84,14 +84,33 @@ interface SaveProjectDesignSignature {
|
|
|
84
84
|
*
|
|
85
85
|
* Synchronous: the Himalaya write completes before this call returns. Never touches the project's
|
|
86
86
|
* sandbox, runs a build, or activates the app — the saved release stays a draft, so what the live
|
|
87
|
-
* app serves is unaffected. Persists
|
|
88
|
-
* chat
|
|
87
|
+
* app serves is unaffected. Persists no entity of its own. When `conversation_id` is supplied it
|
|
88
|
+
* posts a CHECKPOINT message for the saved release into that conversation (best-effort — a chat
|
|
89
|
+
* failure never fails the save); omit it to skip the checkpoint.
|
|
89
90
|
* @param - Project whose design is being saved. The caller must own it.
|
|
90
91
|
* @param - The Himalaya release ID currently displayed by the client. The saved draft branches from
|
|
91
92
|
* exactly this release, even when a newer release exists for the app.
|
|
92
93
|
*/
|
|
93
94
|
(projectId: string, baseReleaseId: string, options?: NonNullablePaths<SaveProjectDesignOptions, `himalayaControlToken` | `tokensJson`, 0>): Promise<NonNullablePaths<SaveProjectDesignResponse, `himalayaReleaseId` | `previewToken`, 0>>;
|
|
94
95
|
}
|
|
96
|
+
declare function restoreRelease$1(httpClient: HttpClient): RestoreReleaseSignature;
|
|
97
|
+
interface RestoreReleaseSignature {
|
|
98
|
+
/**
|
|
99
|
+
* Restores an earlier version by pointing the project's editable head at `release_id`: the client
|
|
100
|
+
* then previews that release and the next edit (design save or AI edit) branches from it. Pure
|
|
101
|
+
* project state — sets `head_release_id` and nothing in Himalaya: it does NOT activate the release,
|
|
102
|
+
* so the live app end-users run is untouched (a later publish/build is what carries head live).
|
|
103
|
+
*
|
|
104
|
+
* `release_id` is a Himalaya release id the caller already holds from the project's own release
|
|
105
|
+
* ledger, scoped to this project's app; the server stores it as head without re-reading Himalaya.
|
|
106
|
+
* When `conversation_id` is supplied, a CHECKPOINT message for the restored release is posted into
|
|
107
|
+
* it (best-effort — a chat failure never fails the restore); omit it to skip the checkpoint.
|
|
108
|
+
* @param - Project whose head is being moved. The caller must own it.
|
|
109
|
+
* @param - The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id
|
|
110
|
+
* (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.
|
|
111
|
+
*/
|
|
112
|
+
(projectId: string, releaseId: string, options?: RestoreReleaseOptions): Promise<NonNullablePaths<RestoreReleaseResponse, `project.name` | `project.status` | `project.sandboxStatus` | `project.metaSiteIds` | `project.platform`, 1>>;
|
|
113
|
+
}
|
|
95
114
|
/** @internal */
|
|
96
115
|
declare function listProjects$1(httpClient: HttpClient): ListProjectsSignature;
|
|
97
116
|
interface ListProjectsSignature {
|
|
@@ -126,8 +145,9 @@ declare const regenerateProjectName: MaybeContext<BuildRESTFunction<typeof regen
|
|
|
126
145
|
/** @internal */
|
|
127
146
|
declare const regenerateProjectIcon: MaybeContext<BuildRESTFunction<typeof regenerateProjectIcon$1> & typeof regenerateProjectIcon$1>;
|
|
128
147
|
declare const saveProjectDesign: MaybeContext<BuildRESTFunction<typeof saveProjectDesign$1> & typeof saveProjectDesign$1>;
|
|
148
|
+
declare const restoreRelease: MaybeContext<BuildRESTFunction<typeof restoreRelease$1> & typeof restoreRelease$1>;
|
|
129
149
|
/** @internal */
|
|
130
150
|
declare const listProjects: MaybeContext<BuildRESTFunction<typeof listProjects$1> & typeof listProjects$1>;
|
|
131
151
|
declare const getHimalayaAuthorization: MaybeContext<BuildRESTFunction<typeof getHimalayaAuthorization$1> & typeof getHimalayaAuthorization$1>;
|
|
132
152
|
|
|
133
|
-
export { GetHimalayaAuthorizationResponse, ListProjectsOptions, ListProjectsResponse, Project, RegenerateProjectIconResponse, RegenerateProjectNameResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, UpdateProject, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, resumeProject, saveProjectDesign, updateProject };
|
|
153
|
+
export { GetHimalayaAuthorizationResponse, ListProjectsOptions, ListProjectsResponse, Project, RegenerateProjectIconResponse, RegenerateProjectNameResponse, RestoreReleaseOptions, RestoreReleaseResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, UpdateProject, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, restoreRelease, resumeProject, saveProjectDesign, updateProject };
|
|
@@ -70,6 +70,16 @@ interface Project {
|
|
|
70
70
|
* @maxLength 2000
|
|
71
71
|
*/
|
|
72
72
|
appIconUrl?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* The Himalaya release the editor is currently on — the "head" the client previews and the next
|
|
75
|
+
* edit (design save or AI edit) branches from. Server-managed: set to the new draft after each
|
|
76
|
+
* edit, and to the chosen release by RestoreRelease. Unset means "newest release by date" (the
|
|
77
|
+
* pre-head default), so existing projects keep working until their first edit/restore sets it.
|
|
78
|
+
* Not a GUID — a Himalaya release id (e.g. `rel-<hash>` / `<sha>-<hash>`).
|
|
79
|
+
* @maxLength 200
|
|
80
|
+
* @readonly
|
|
81
|
+
*/
|
|
82
|
+
headReleaseId?: string | null;
|
|
73
83
|
}
|
|
74
84
|
declare enum ProjectStatus {
|
|
75
85
|
/** Project created; client (via containers-plans) is doing most of the work. */
|
|
@@ -532,6 +542,17 @@ interface SaveProjectDesignRequest {
|
|
|
532
542
|
* @maxLength 200
|
|
533
543
|
*/
|
|
534
544
|
canonicalApp?: string;
|
|
545
|
+
/**
|
|
546
|
+
* Conversation this design is saved from. When set, a CHECKPOINT message marking the saved
|
|
547
|
+
* version is posted into it (best-effort). Optional — an older client that omits it still saves
|
|
548
|
+
* the design; it just produces no checkpoint. Verified to belong to this project server-side.
|
|
549
|
+
*
|
|
550
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
551
|
+
* fail the save. A malformed/unexpected id is handled downstream (the ownership lookup rejects it
|
|
552
|
+
* and the checkpoint is skipped) rather than hard-failing SaveProjectDesign at the request boundary.
|
|
553
|
+
* @maxLength 100
|
|
554
|
+
*/
|
|
555
|
+
conversationId?: string;
|
|
535
556
|
}
|
|
536
557
|
interface SaveProjectDesignResponse {
|
|
537
558
|
/**
|
|
@@ -548,6 +569,43 @@ interface SaveProjectDesignResponse {
|
|
|
548
569
|
/** When preview_token expires. */
|
|
549
570
|
previewTokenExpiresAt?: Date | null;
|
|
550
571
|
}
|
|
572
|
+
interface RestoreReleaseRequest {
|
|
573
|
+
/**
|
|
574
|
+
* Project whose head is being moved. The caller must own it.
|
|
575
|
+
* @format GUID
|
|
576
|
+
*/
|
|
577
|
+
projectId: string;
|
|
578
|
+
/**
|
|
579
|
+
* The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id
|
|
580
|
+
* (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.
|
|
581
|
+
* @maxLength 200
|
|
582
|
+
*/
|
|
583
|
+
releaseId: string;
|
|
584
|
+
/**
|
|
585
|
+
* Short-lived, app-scoped Himalaya control credential (the same the client obtains from Himalaya's
|
|
586
|
+
* owner embed-token endpoint and sends on SaveProjectDesign). When present, the server verifies
|
|
587
|
+
* release_id belongs to this project's Himalaya app before moving head. Optional for back-compat:
|
|
588
|
+
* an older client that omits it skips that check (the release still comes from the project's own
|
|
589
|
+
* ledger). Forwarded to Himalaya for the ledger read only — never logged, persisted, or echoed.
|
|
590
|
+
* @maxLength 4096
|
|
591
|
+
*/
|
|
592
|
+
himalayaControlToken?: string;
|
|
593
|
+
/**
|
|
594
|
+
* Conversation this restore is made from. When set, a CHECKPOINT message marking the restored
|
|
595
|
+
* version is posted into it (best-effort). Optional — a client that omits it still restores; it
|
|
596
|
+
* just produces no checkpoint. Verified to belong to this project server-side.
|
|
597
|
+
*
|
|
598
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
599
|
+
* fail the restore. A malformed id is handled downstream (the ownership lookup rejects it and the
|
|
600
|
+
* checkpoint is skipped) rather than hard-failing RestoreRelease at the request boundary.
|
|
601
|
+
* @maxLength 100
|
|
602
|
+
*/
|
|
603
|
+
conversationId?: string;
|
|
604
|
+
}
|
|
605
|
+
interface RestoreReleaseResponse {
|
|
606
|
+
/** The project after the restore, with head_release_id set to the restored release. */
|
|
607
|
+
project?: Project;
|
|
608
|
+
}
|
|
551
609
|
interface ListProjectsRequest {
|
|
552
610
|
/** Cursor paging options. */
|
|
553
611
|
paging?: CursorPaging;
|
|
@@ -698,6 +756,16 @@ interface UpdateProject {
|
|
|
698
756
|
* @maxLength 2000
|
|
699
757
|
*/
|
|
700
758
|
appIconUrl?: string | null;
|
|
759
|
+
/**
|
|
760
|
+
* The Himalaya release the editor is currently on — the "head" the client previews and the next
|
|
761
|
+
* edit (design save or AI edit) branches from. Server-managed: set to the new draft after each
|
|
762
|
+
* edit, and to the chosen release by RestoreRelease. Unset means "newest release by date" (the
|
|
763
|
+
* pre-head default), so existing projects keep working until their first edit/restore sets it.
|
|
764
|
+
* Not a GUID — a Himalaya release id (e.g. `rel-<hash>` / `<sha>-<hash>`).
|
|
765
|
+
* @maxLength 200
|
|
766
|
+
* @readonly
|
|
767
|
+
*/
|
|
768
|
+
headReleaseId?: string | null;
|
|
701
769
|
}
|
|
702
770
|
/**
|
|
703
771
|
* Deletes a Project.
|
|
@@ -754,8 +822,9 @@ declare function regenerateProjectIcon(projectId: string, prompt: string): Promi
|
|
|
754
822
|
*
|
|
755
823
|
* Synchronous: the Himalaya write completes before this call returns. Never touches the project's
|
|
756
824
|
* sandbox, runs a build, or activates the app — the saved release stays a draft, so what the live
|
|
757
|
-
* app serves is unaffected. Persists
|
|
758
|
-
* chat
|
|
825
|
+
* app serves is unaffected. Persists no entity of its own. When `conversation_id` is supplied it
|
|
826
|
+
* posts a CHECKPOINT message for the saved release into that conversation (best-effort — a chat
|
|
827
|
+
* failure never fails the save); omit it to skip the checkpoint.
|
|
759
828
|
* @param projectId - Project whose design is being saved. The caller must own it.
|
|
760
829
|
* @param baseReleaseId - The Himalaya release ID currently displayed by the client. The saved draft branches from
|
|
761
830
|
* exactly this release, even when a newer release exists for the app.
|
|
@@ -793,6 +862,60 @@ interface SaveProjectDesignOptions {
|
|
|
793
862
|
* @maxLength 200
|
|
794
863
|
*/
|
|
795
864
|
canonicalApp?: string;
|
|
865
|
+
/**
|
|
866
|
+
* Conversation this design is saved from. When set, a CHECKPOINT message marking the saved
|
|
867
|
+
* version is posted into it (best-effort). Optional — an older client that omits it still saves
|
|
868
|
+
* the design; it just produces no checkpoint. Verified to belong to this project server-side.
|
|
869
|
+
*
|
|
870
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
871
|
+
* fail the save. A malformed/unexpected id is handled downstream (the ownership lookup rejects it
|
|
872
|
+
* and the checkpoint is skipped) rather than hard-failing SaveProjectDesign at the request boundary.
|
|
873
|
+
* @maxLength 100
|
|
874
|
+
*/
|
|
875
|
+
conversationId?: string;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Restores an earlier version by pointing the project's editable head at `release_id`: the client
|
|
879
|
+
* then previews that release and the next edit (design save or AI edit) branches from it. Pure
|
|
880
|
+
* project state — sets `head_release_id` and nothing in Himalaya: it does NOT activate the release,
|
|
881
|
+
* so the live app end-users run is untouched (a later publish/build is what carries head live).
|
|
882
|
+
*
|
|
883
|
+
* `release_id` is a Himalaya release id the caller already holds from the project's own release
|
|
884
|
+
* ledger, scoped to this project's app; the server stores it as head without re-reading Himalaya.
|
|
885
|
+
* When `conversation_id` is supplied, a CHECKPOINT message for the restored release is posted into
|
|
886
|
+
* it (best-effort — a chat failure never fails the restore); omit it to skip the checkpoint.
|
|
887
|
+
* @param projectId - Project whose head is being moved. The caller must own it.
|
|
888
|
+
* @param releaseId - The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id
|
|
889
|
+
* (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.
|
|
890
|
+
* @public
|
|
891
|
+
* @documentationMaturity preview
|
|
892
|
+
* @requiredField projectId
|
|
893
|
+
* @requiredField releaseId
|
|
894
|
+
* @permissionId containers:projects:v1:project:restore_release
|
|
895
|
+
* @fqn wix.containers.projects.v1.ContainersProjects.RestoreRelease
|
|
896
|
+
*/
|
|
897
|
+
declare function restoreRelease(projectId: string, releaseId: string, options?: RestoreReleaseOptions): Promise<NonNullablePaths<RestoreReleaseResponse, `project.name` | `project.status` | `project.sandboxStatus` | `project.metaSiteIds` | `project.platform`, 1>>;
|
|
898
|
+
interface RestoreReleaseOptions {
|
|
899
|
+
/**
|
|
900
|
+
* Short-lived, app-scoped Himalaya control credential (the same the client obtains from Himalaya's
|
|
901
|
+
* owner embed-token endpoint and sends on SaveProjectDesign). When present, the server verifies
|
|
902
|
+
* release_id belongs to this project's Himalaya app before moving head. Optional for back-compat:
|
|
903
|
+
* an older client that omits it skips that check (the release still comes from the project's own
|
|
904
|
+
* ledger). Forwarded to Himalaya for the ledger read only — never logged, persisted, or echoed.
|
|
905
|
+
* @maxLength 4096
|
|
906
|
+
*/
|
|
907
|
+
himalayaControlToken?: string;
|
|
908
|
+
/**
|
|
909
|
+
* Conversation this restore is made from. When set, a CHECKPOINT message marking the restored
|
|
910
|
+
* version is posted into it (best-effort). Optional — a client that omits it still restores; it
|
|
911
|
+
* just produces no checkpoint. Verified to belong to this project server-side.
|
|
912
|
+
*
|
|
913
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
914
|
+
* fail the restore. A malformed id is handled downstream (the ownership lookup rejects it and the
|
|
915
|
+
* checkpoint is skipped) rather than hard-failing RestoreRelease at the request boundary.
|
|
916
|
+
* @maxLength 100
|
|
917
|
+
*/
|
|
918
|
+
conversationId?: string;
|
|
796
919
|
}
|
|
797
920
|
/**
|
|
798
921
|
* Lists the Projects of the current site — the MetaSite in the call scope — regardless of who owns
|
|
@@ -821,4 +944,4 @@ interface ListProjectsOptions {
|
|
|
821
944
|
*/
|
|
822
945
|
declare function getHimalayaAuthorization(projectId: string): Promise<NonNullablePaths<GetHimalayaAuthorizationResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp` | `workerLaunch` | `saveDesign`, 0>>;
|
|
823
946
|
|
|
824
|
-
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, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, resumeProject, saveProjectDesign, updateProject };
|
|
947
|
+
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 RestoreReleaseOptions, type RestoreReleaseRequest, type RestoreReleaseResponse, 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, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, restoreRelease, resumeProject, saveProjectDesign, updateProject };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateProjectRequest as CreateProjectRequest$1, CreateProjectResponse as CreateProjectResponse$1, GetProjectRequest as GetProjectRequest$1, GetProjectResponse as GetProjectResponse$1, UpdateProjectRequest as UpdateProjectRequest$1, UpdateProjectResponse as UpdateProjectResponse$1, DeleteProjectRequest as DeleteProjectRequest$1, DeleteProjectResponse as DeleteProjectResponse$1, ResumeProjectRequest as ResumeProjectRequest$1, ResumeProjectResponse as ResumeProjectResponse$1, RegenerateProjectNameRequest as RegenerateProjectNameRequest$1, RegenerateProjectNameResponse as RegenerateProjectNameResponse$1, RegenerateProjectIconRequest as RegenerateProjectIconRequest$1, RegenerateProjectIconResponse as RegenerateProjectIconResponse$1, SaveProjectDesignRequest as SaveProjectDesignRequest$1, SaveProjectDesignResponse as SaveProjectDesignResponse$1, ListProjectsRequest as ListProjectsRequest$1, ListProjectsResponse as ListProjectsResponse$1, GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponse$1 } from './index.typings.mjs';
|
|
1
|
+
import { CreateProjectRequest as CreateProjectRequest$1, CreateProjectResponse as CreateProjectResponse$1, GetProjectRequest as GetProjectRequest$1, GetProjectResponse as GetProjectResponse$1, UpdateProjectRequest as UpdateProjectRequest$1, UpdateProjectResponse as UpdateProjectResponse$1, DeleteProjectRequest as DeleteProjectRequest$1, DeleteProjectResponse as DeleteProjectResponse$1, ResumeProjectRequest as ResumeProjectRequest$1, ResumeProjectResponse as ResumeProjectResponse$1, RegenerateProjectNameRequest as RegenerateProjectNameRequest$1, RegenerateProjectNameResponse as RegenerateProjectNameResponse$1, RegenerateProjectIconRequest as RegenerateProjectIconRequest$1, RegenerateProjectIconResponse as RegenerateProjectIconResponse$1, SaveProjectDesignRequest as SaveProjectDesignRequest$1, SaveProjectDesignResponse as SaveProjectDesignResponse$1, RestoreReleaseRequest as RestoreReleaseRequest$1, RestoreReleaseResponse as RestoreReleaseResponse$1, ListProjectsRequest as ListProjectsRequest$1, ListProjectsResponse as ListProjectsResponse$1, GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponse$1 } from './index.typings.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Project {
|
|
@@ -71,6 +71,16 @@ interface Project {
|
|
|
71
71
|
* @maxLength 2000
|
|
72
72
|
*/
|
|
73
73
|
appIconUrl?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The Himalaya release the editor is currently on — the "head" the client previews and the next
|
|
76
|
+
* edit (design save or AI edit) branches from. Server-managed: set to the new draft after each
|
|
77
|
+
* edit, and to the chosen release by RestoreRelease. Unset means "newest release by date" (the
|
|
78
|
+
* pre-head default), so existing projects keep working until their first edit/restore sets it.
|
|
79
|
+
* Not a GUID — a Himalaya release id (e.g. `rel-<hash>` / `<sha>-<hash>`).
|
|
80
|
+
* @maxLength 200
|
|
81
|
+
* @readonly
|
|
82
|
+
*/
|
|
83
|
+
headReleaseId?: string | null;
|
|
74
84
|
}
|
|
75
85
|
declare enum ProjectStatus {
|
|
76
86
|
/** Project created; client (via containers-plans) is doing most of the work. */
|
|
@@ -577,6 +587,17 @@ interface SaveProjectDesignRequest {
|
|
|
577
587
|
* @maxLength 200
|
|
578
588
|
*/
|
|
579
589
|
canonicalApp?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Conversation this design is saved from. When set, a CHECKPOINT message marking the saved
|
|
592
|
+
* version is posted into it (best-effort). Optional — an older client that omits it still saves
|
|
593
|
+
* the design; it just produces no checkpoint. Verified to belong to this project server-side.
|
|
594
|
+
*
|
|
595
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
596
|
+
* fail the save. A malformed/unexpected id is handled downstream (the ownership lookup rejects it
|
|
597
|
+
* and the checkpoint is skipped) rather than hard-failing SaveProjectDesign at the request boundary.
|
|
598
|
+
* @maxLength 100
|
|
599
|
+
*/
|
|
600
|
+
conversationId?: string;
|
|
580
601
|
}
|
|
581
602
|
interface SaveProjectDesignResponse {
|
|
582
603
|
/**
|
|
@@ -593,6 +614,43 @@ interface SaveProjectDesignResponse {
|
|
|
593
614
|
/** When preview_token expires. */
|
|
594
615
|
previewTokenExpiresAt?: Date | null;
|
|
595
616
|
}
|
|
617
|
+
interface RestoreReleaseRequest {
|
|
618
|
+
/**
|
|
619
|
+
* Project whose head is being moved. The caller must own it.
|
|
620
|
+
* @format GUID
|
|
621
|
+
*/
|
|
622
|
+
projectId: string;
|
|
623
|
+
/**
|
|
624
|
+
* The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id
|
|
625
|
+
* (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.
|
|
626
|
+
* @maxLength 200
|
|
627
|
+
*/
|
|
628
|
+
releaseId: string;
|
|
629
|
+
/**
|
|
630
|
+
* Short-lived, app-scoped Himalaya control credential (the same the client obtains from Himalaya's
|
|
631
|
+
* owner embed-token endpoint and sends on SaveProjectDesign). When present, the server verifies
|
|
632
|
+
* release_id belongs to this project's Himalaya app before moving head. Optional for back-compat:
|
|
633
|
+
* an older client that omits it skips that check (the release still comes from the project's own
|
|
634
|
+
* ledger). Forwarded to Himalaya for the ledger read only — never logged, persisted, or echoed.
|
|
635
|
+
* @maxLength 4096
|
|
636
|
+
*/
|
|
637
|
+
himalayaControlToken?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Conversation this restore is made from. When set, a CHECKPOINT message marking the restored
|
|
640
|
+
* version is posted into it (best-effort). Optional — a client that omits it still restores; it
|
|
641
|
+
* just produces no checkpoint. Verified to belong to this project server-side.
|
|
642
|
+
*
|
|
643
|
+
* Deliberately NOT (.wix.api.format) = GUID: posting the checkpoint is best-effort and must never
|
|
644
|
+
* fail the restore. A malformed id is handled downstream (the ownership lookup rejects it and the
|
|
645
|
+
* checkpoint is skipped) rather than hard-failing RestoreRelease at the request boundary.
|
|
646
|
+
* @maxLength 100
|
|
647
|
+
*/
|
|
648
|
+
conversationId?: string;
|
|
649
|
+
}
|
|
650
|
+
interface RestoreReleaseResponse {
|
|
651
|
+
/** The project after the restore, with head_release_id set to the restored release. */
|
|
652
|
+
project?: Project;
|
|
653
|
+
}
|
|
596
654
|
interface ListProjectsRequest {
|
|
597
655
|
/** Cursor paging options. */
|
|
598
656
|
paging?: CursorPaging;
|
|
@@ -666,9 +724,12 @@ declare function regenerateProjectIcon(): __PublicMethodMetaInfo<'POST', {
|
|
|
666
724
|
declare function saveProjectDesign(): __PublicMethodMetaInfo<'POST', {
|
|
667
725
|
projectId: string;
|
|
668
726
|
}, SaveProjectDesignRequest$1, SaveProjectDesignRequest, SaveProjectDesignResponse$1, SaveProjectDesignResponse>;
|
|
727
|
+
declare function restoreRelease(): __PublicMethodMetaInfo<'POST', {
|
|
728
|
+
projectId: string;
|
|
729
|
+
}, RestoreReleaseRequest$1, RestoreReleaseRequest, RestoreReleaseResponse$1, RestoreReleaseResponse>;
|
|
669
730
|
declare function listProjects(): __PublicMethodMetaInfo<'GET', {}, ListProjectsRequest$1, ListProjectsRequest, ListProjectsResponse$1, ListProjectsResponse>;
|
|
670
731
|
declare function getHimalayaAuthorization(): __PublicMethodMetaInfo<'GET', {
|
|
671
732
|
projectId: string;
|
|
672
733
|
}, GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationRequest, GetHimalayaAuthorizationResponse$1, GetHimalayaAuthorizationResponse>;
|
|
673
734
|
|
|
674
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type CreateAgentSessionRequest as CreateAgentSessionRequestOriginal, type CreateAgentSessionResponse as CreateAgentSessionResponseOriginal, type CreateProjectRequest as CreateProjectRequestOriginal, type CreateProjectResponse as CreateProjectResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteProjectRequest as DeleteProjectRequestOriginal, type DeleteProjectResponse as DeleteProjectResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal, type GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponseOriginal, type GetProjectRequest as GetProjectRequestOriginal, type GetProjectResponse as GetProjectResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal, type ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal, type ListProjectsRequest as ListProjectsRequestOriginal, type ListProjectsResponse as ListProjectsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type Project as ProjectOriginal, type ProjectPlanReady as ProjectPlanReadyOriginal, type ProjectResumeRequested as ProjectResumeRequestedOriginal, type ProjectStartRequested as ProjectStartRequestedOriginal, ProjectStatus as ProjectStatusOriginal, type ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal, type RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal, type RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal, type RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal, type RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal, type RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal, type RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type ResumeProjectRequest as ResumeProjectRequestOriginal, type ResumeProjectResponse as ResumeProjectResponseOriginal, SandboxStatus as SandboxStatusOriginal, type SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal, type SaveProjectDesignRequest as SaveProjectDesignRequestOriginal, type SaveProjectDesignResponse as SaveProjectDesignResponseOriginal, type StartProjectRequest as StartProjectRequestOriginal, type StartProjectResponse as StartProjectResponseOriginal, type UpdateProjectRequest as UpdateProjectRequestOriginal, type UpdateProjectResponse as UpdateProjectResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, resumeProject, saveProjectDesign, updateProject };
|
|
735
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type CreateAgentSessionRequest as CreateAgentSessionRequestOriginal, type CreateAgentSessionResponse as CreateAgentSessionResponseOriginal, type CreateProjectRequest as CreateProjectRequestOriginal, type CreateProjectResponse as CreateProjectResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteProjectRequest as DeleteProjectRequestOriginal, type DeleteProjectResponse as DeleteProjectResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal, type GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponseOriginal, type GetProjectRequest as GetProjectRequestOriginal, type GetProjectResponse as GetProjectResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal, type ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal, type ListProjectsRequest as ListProjectsRequestOriginal, type ListProjectsResponse as ListProjectsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type Project as ProjectOriginal, type ProjectPlanReady as ProjectPlanReadyOriginal, type ProjectResumeRequested as ProjectResumeRequestedOriginal, type ProjectStartRequested as ProjectStartRequestedOriginal, ProjectStatus as ProjectStatusOriginal, type ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal, type RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal, type RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal, type RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal, type RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal, type RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal, type RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreReleaseRequest as RestoreReleaseRequestOriginal, type RestoreReleaseResponse as RestoreReleaseResponseOriginal, type ResumeProjectRequest as ResumeProjectRequestOriginal, type ResumeProjectResponse as ResumeProjectResponseOriginal, SandboxStatus as SandboxStatusOriginal, type SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal, type SaveProjectDesignRequest as SaveProjectDesignRequestOriginal, type SaveProjectDesignResponse as SaveProjectDesignResponseOriginal, type StartProjectRequest as StartProjectRequestOriginal, type StartProjectResponse as StartProjectResponseOriginal, type UpdateProjectRequest as UpdateProjectRequestOriginal, type UpdateProjectResponse as UpdateProjectResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, restoreRelease, resumeProject, saveProjectDesign, updateProject };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_containers_projects",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.containers.projects.v1.project"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "a09b3c5383e9b836b12302ea2ebc2a27c229c2d227e0a755d4541410"
|
|
54
54
|
}
|