@wix/auto_sdk_containers_projects 1.0.2 → 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 +55 -667
- package/build/cjs/index.js +76 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +863 -1
- package/build/cjs/index.typings.js +66 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +64 -2
- package/build/cjs/meta.js +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +55 -667
- package/build/es/index.mjs +75 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +863 -1
- package/build/es/index.typings.mjs +65 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +64 -2
- package/build/es/meta.mjs +46 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +25 -13
- package/build/internal/cjs/index.typings.d.ts +130 -7
- package/build/internal/cjs/meta.d.ts +63 -2
- package/build/internal/es/index.d.mts +25 -13
- package/build/internal/es/index.typings.d.mts +130 -7
- package/build/internal/es/meta.d.mts +63 -2
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -1,685 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
_id?: string | null;
|
|
8
|
-
/**
|
|
9
|
-
* Display name for the project.
|
|
10
|
-
* @maxLength 200
|
|
11
|
-
*/
|
|
12
|
-
name?: string;
|
|
13
|
-
/** Current status of the project. */
|
|
14
|
-
status?: ProjectStatusWithLiterals;
|
|
15
|
-
/**
|
|
16
|
-
* ID of the template used to create this project.
|
|
17
|
-
* @format GUID
|
|
18
|
-
* @immutable
|
|
19
|
-
*/
|
|
20
|
-
templateId?: string | null;
|
|
21
|
-
/**
|
|
22
|
-
* ID of the git-code-store project (and backing dev-center app) for this project. Set on creation.
|
|
23
|
-
* @format GUID
|
|
24
|
-
* @readonly
|
|
25
|
-
*/
|
|
26
|
-
codeStoreProjectId?: string | null;
|
|
27
|
-
/**
|
|
28
|
-
* The user id of the owner of this project
|
|
29
|
-
* @format GUID
|
|
30
|
-
* @readonly
|
|
31
|
-
*/
|
|
32
|
-
ownerUserId?: string | null;
|
|
33
|
-
/**
|
|
34
|
-
* Revision number, which increments by 1 each time the Project is updated.
|
|
35
|
-
* @readonly
|
|
36
|
-
*/
|
|
37
|
-
revision?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
* Date and time the Project was created.
|
|
40
|
-
* @readonly
|
|
41
|
-
*/
|
|
42
|
-
_createdDate?: Date | null;
|
|
43
|
-
/**
|
|
44
|
-
* Date and time the Project was last updated.
|
|
45
|
-
* @readonly
|
|
46
|
-
*/
|
|
47
|
-
_updatedDate?: Date | null;
|
|
48
|
-
/**
|
|
49
|
-
* Transient lock marking that a sandbox is currently being created for this project.
|
|
50
|
-
* Used to serialize concurrent dev-machine creation; liveness of the sandbox itself is resolved via ListSandboxes.
|
|
51
|
-
* @readonly
|
|
52
|
-
*/
|
|
53
|
-
sandboxStatus?: SandboxStatusWithLiterals;
|
|
54
|
-
/**
|
|
55
|
-
* Meta site IDs (MSIDs) of the Wix sites this project is related to.
|
|
56
|
-
* Optional — a project is not required to be tied to a site; may relate to many sites.
|
|
57
|
-
* Preserve the deployed input contract; see containers-projects/SDK_COMPATIBILITY.md.
|
|
58
|
-
* @format GUID
|
|
59
|
-
*/
|
|
60
|
-
metaSiteIds?: string[];
|
|
61
|
-
/**
|
|
62
|
-
* Platform this project targets (iOS/Android). Supplied by the client at creation; immutable after.
|
|
63
|
-
* @immutable
|
|
64
|
-
*/
|
|
65
|
-
platform?: PlatformWithLiterals;
|
|
66
|
-
/**
|
|
67
|
-
* Optional app icon URL supplied by the client from Wix Media Manager.
|
|
68
|
-
* @maxLength 2000
|
|
69
|
-
*/
|
|
70
|
-
appIconUrl?: string | null;
|
|
71
|
-
}
|
|
72
|
-
declare enum ProjectStatus {
|
|
73
|
-
/** Project created; client (via containers-plans) is doing most of the work. */
|
|
74
|
-
PLANNING = "PLANNING",
|
|
75
|
-
/** Generation job created; project moves onward to machine startup. */
|
|
76
|
-
BUILDING = "BUILDING",
|
|
77
|
-
/** Plan finalized; project is about to create the initial generation job. */
|
|
78
|
-
PLAN_READY = "PLAN_READY"
|
|
79
|
-
}
|
|
80
|
-
/** @enumType */
|
|
81
|
-
type ProjectStatusWithLiterals = ProjectStatus | 'PLANNING' | 'BUILDING' | 'PLAN_READY';
|
|
82
|
-
declare enum SandboxStatus {
|
|
83
|
-
/** No sandbox creation in progress. */
|
|
84
|
-
NONE = "NONE",
|
|
85
|
-
/** A caller is currently creating a sandbox for this project (creation lock held). */
|
|
86
|
-
CREATING = "CREATING"
|
|
87
|
-
}
|
|
88
|
-
/** @enumType */
|
|
89
|
-
type SandboxStatusWithLiterals = SandboxStatus | 'NONE' | 'CREATING';
|
|
90
|
-
declare enum Platform {
|
|
91
|
-
IOS = "IOS",
|
|
92
|
-
ANDROID = "ANDROID",
|
|
93
|
-
/**
|
|
94
|
-
* Himalaya Mobile (Wix SDUI/OTA content package): mobile apps built headlessly on the
|
|
95
|
-
* on-demand remote machine via the himi CLI, instead of native iOS/Android pods.
|
|
96
|
-
*/
|
|
97
|
-
HIMALAYA_MOBILE = "HIMALAYA_MOBILE"
|
|
98
|
-
}
|
|
99
|
-
/** @enumType */
|
|
100
|
-
type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID' | 'HIMALAYA_MOBILE';
|
|
101
|
-
interface ProjectStartRequested {
|
|
102
|
-
/**
|
|
103
|
-
* ID of the Project to start.
|
|
104
|
-
* @format GUID
|
|
105
|
-
*/
|
|
106
|
-
projectId?: string;
|
|
107
|
-
}
|
|
108
|
-
interface ProjectResumeRequested {
|
|
109
|
-
/**
|
|
110
|
-
* ID of the Project to resume.
|
|
111
|
-
* @format GUID
|
|
112
|
-
*/
|
|
113
|
-
projectId?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Emitted when the project transitions PLANNING -> PLAN_READY (on plan finalization). The project
|
|
117
|
-
* self-consumes this event to start the app generation: mint the agent session, attach it to the
|
|
118
|
-
* finalized conversation, create the initial generation job, and move to BUILDING. The finalized
|
|
119
|
-
* plan is read back from containers-plans by project id when the job is built.
|
|
120
|
-
*/
|
|
121
|
-
interface ProjectPlanReady {
|
|
122
|
-
/**
|
|
123
|
-
* ID of the Project whose plan is ready.
|
|
124
|
-
* @format GUID
|
|
125
|
-
*/
|
|
126
|
-
projectId?: string;
|
|
127
|
-
/**
|
|
128
|
-
* ID of the conversation that led to this plan being finalized. The minted agent session id is
|
|
129
|
-
* attached to this conversation so the build can --resume it. Propagated from PlanFinalized.
|
|
130
|
-
* @format GUID
|
|
131
|
-
*/
|
|
132
|
-
conversationId?: string;
|
|
133
|
-
}
|
|
134
|
-
interface CreateAgentSessionRequest {
|
|
135
|
-
/**
|
|
136
|
-
* ID of the Project to create an agent session for.
|
|
137
|
-
* @format GUID
|
|
138
|
-
*/
|
|
139
|
-
projectId?: string;
|
|
140
|
-
}
|
|
141
|
-
interface CreateAgentSessionResponse {
|
|
142
|
-
/**
|
|
143
|
-
* Agent session ID materialized for the Project.
|
|
144
|
-
* @format GUID
|
|
145
|
-
*/
|
|
146
|
-
agentSessionId?: string;
|
|
147
|
-
}
|
|
148
|
-
interface RefreshAgentSiteTokenRequest {
|
|
149
|
-
/**
|
|
150
|
-
* Exact project/job tuple whose initiating user's site token should be re-minted.
|
|
151
|
-
* @format GUID
|
|
152
|
-
*/
|
|
153
|
-
projectId?: string;
|
|
154
|
-
/**
|
|
155
|
-
* Job whose persisted initiating user and MetaSite provenance must be revalidated.
|
|
156
|
-
* @format GUID
|
|
157
|
-
*/
|
|
158
|
-
jobId?: string;
|
|
159
|
-
}
|
|
160
|
-
interface RefreshAgentSiteTokenResponse {
|
|
161
|
-
/**
|
|
162
|
-
* A freshly minted site-scoped access token for the project owner. Sensitive credential material:
|
|
163
|
-
* marked pii so the platform redacts it from request/response logging (never log it in app code either).
|
|
164
|
-
* maxLength matches the sibling containers-project-versions token fields (4096) — ample for the
|
|
165
|
-
* oauth2-ng user access token, and required by the string-validation standard.
|
|
166
|
-
* @maxLength 4096
|
|
167
|
-
*/
|
|
168
|
-
accessToken?: string;
|
|
169
|
-
/** Seconds until the returned token expires, as reported by oauth2-ng. */
|
|
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;
|
|
193
|
-
}
|
|
194
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
195
|
-
createdEvent?: EntityCreatedEvent;
|
|
196
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
197
|
-
deletedEvent?: EntityDeletedEvent;
|
|
198
|
-
actionEvent?: ActionEvent;
|
|
199
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
200
|
-
_id?: string;
|
|
201
|
-
/**
|
|
202
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
203
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
204
|
-
*/
|
|
205
|
-
entityFqdn?: string;
|
|
206
|
-
/**
|
|
207
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
208
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
209
|
-
*/
|
|
210
|
-
slug?: string;
|
|
211
|
-
/** ID of the entity associated with the event. */
|
|
212
|
-
entityId?: string;
|
|
213
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
214
|
-
eventTime?: Date | null;
|
|
215
|
-
/**
|
|
216
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
217
|
-
* (for example, GDPR).
|
|
218
|
-
*/
|
|
219
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
220
|
-
/** If present, indicates the action that triggered the event. */
|
|
221
|
-
originatedFrom?: string | null;
|
|
222
|
-
/**
|
|
223
|
-
* 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.
|
|
224
|
-
* 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.
|
|
225
|
-
*/
|
|
226
|
-
entityEventSequence?: string | null;
|
|
227
|
-
}
|
|
228
|
-
/** @oneof */
|
|
229
|
-
interface DomainEventBodyOneOf {
|
|
230
|
-
createdEvent?: EntityCreatedEvent;
|
|
231
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
232
|
-
deletedEvent?: EntityDeletedEvent;
|
|
233
|
-
actionEvent?: ActionEvent;
|
|
234
|
-
}
|
|
235
|
-
interface EntityCreatedEvent {
|
|
236
|
-
entity?: string;
|
|
237
|
-
}
|
|
238
|
-
interface RestoreInfo {
|
|
239
|
-
deletedDate?: Date | null;
|
|
240
|
-
}
|
|
241
|
-
interface EntityUpdatedEvent {
|
|
242
|
-
/**
|
|
243
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
244
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
245
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
246
|
-
*/
|
|
247
|
-
currentEntity?: string;
|
|
248
|
-
}
|
|
249
|
-
interface EntityDeletedEvent {
|
|
250
|
-
/** Entity that was deleted. */
|
|
251
|
-
deletedEntity?: string | null;
|
|
252
|
-
}
|
|
253
|
-
interface ActionEvent {
|
|
254
|
-
body?: string;
|
|
255
|
-
}
|
|
256
|
-
interface MessageEnvelope {
|
|
257
|
-
/**
|
|
258
|
-
* App instance ID.
|
|
259
|
-
* @format GUID
|
|
260
|
-
*/
|
|
261
|
-
instanceId?: string | null;
|
|
262
|
-
/**
|
|
263
|
-
* Event type.
|
|
264
|
-
* @maxLength 150
|
|
265
|
-
*/
|
|
266
|
-
eventType?: string;
|
|
267
|
-
/** The identification type and identity data. */
|
|
268
|
-
identity?: IdentificationData;
|
|
269
|
-
/** Stringify payload. */
|
|
270
|
-
data?: string;
|
|
271
|
-
/** Details related to the account */
|
|
272
|
-
accountInfo?: AccountInfo;
|
|
273
|
-
}
|
|
274
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
275
|
-
/**
|
|
276
|
-
* ID of a site visitor that has not logged in to the site.
|
|
277
|
-
* @format GUID
|
|
278
|
-
*/
|
|
279
|
-
anonymousVisitorId?: string;
|
|
280
|
-
/**
|
|
281
|
-
* ID of a site visitor that has logged in to the site.
|
|
282
|
-
* @format GUID
|
|
283
|
-
*/
|
|
284
|
-
memberId?: string;
|
|
285
|
-
/**
|
|
286
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
287
|
-
* @format GUID
|
|
288
|
-
*/
|
|
289
|
-
wixUserId?: string;
|
|
290
|
-
/**
|
|
291
|
-
* ID of an app.
|
|
292
|
-
* @format GUID
|
|
293
|
-
*/
|
|
294
|
-
appId?: string;
|
|
295
|
-
/** @readonly */
|
|
296
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
297
|
-
}
|
|
298
|
-
/** @oneof */
|
|
299
|
-
interface IdentificationDataIdOneOf {
|
|
300
|
-
/**
|
|
301
|
-
* ID of a site visitor that has not logged in to the site.
|
|
302
|
-
* @format GUID
|
|
303
|
-
*/
|
|
304
|
-
anonymousVisitorId?: string;
|
|
305
|
-
/**
|
|
306
|
-
* ID of a site visitor that has logged in to the site.
|
|
307
|
-
* @format GUID
|
|
308
|
-
*/
|
|
309
|
-
memberId?: string;
|
|
310
|
-
/**
|
|
311
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
312
|
-
* @format GUID
|
|
313
|
-
*/
|
|
314
|
-
wixUserId?: string;
|
|
315
|
-
/**
|
|
316
|
-
* ID of an app.
|
|
317
|
-
* @format GUID
|
|
318
|
-
*/
|
|
319
|
-
appId?: string;
|
|
320
|
-
}
|
|
321
|
-
declare enum WebhookIdentityType {
|
|
322
|
-
UNKNOWN = "UNKNOWN",
|
|
323
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
324
|
-
MEMBER = "MEMBER",
|
|
325
|
-
WIX_USER = "WIX_USER",
|
|
326
|
-
APP = "APP"
|
|
327
|
-
}
|
|
328
|
-
/** @enumType */
|
|
329
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
330
|
-
interface AccountInfo {
|
|
331
|
-
/**
|
|
332
|
-
* ID of the Wix account associated with the event.
|
|
333
|
-
* @format GUID
|
|
334
|
-
*/
|
|
335
|
-
accountId?: string | null;
|
|
336
|
-
/**
|
|
337
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
338
|
-
* @format GUID
|
|
339
|
-
*/
|
|
340
|
-
parentAccountId?: string | null;
|
|
341
|
-
/**
|
|
342
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
343
|
-
* @format GUID
|
|
344
|
-
*/
|
|
345
|
-
siteId?: string | null;
|
|
346
|
-
}
|
|
347
|
-
interface CreateProjectRequest {
|
|
348
|
-
/** Project to be created. */
|
|
349
|
-
project: Project;
|
|
350
|
-
}
|
|
351
|
-
interface CreateProjectResponse {
|
|
352
|
-
/** The created Project. */
|
|
353
|
-
project?: Project;
|
|
354
|
-
}
|
|
355
|
-
interface GetProjectRequest {
|
|
356
|
-
/**
|
|
357
|
-
* ID of the Project to retrieve.
|
|
358
|
-
* @format GUID
|
|
359
|
-
*/
|
|
360
|
-
projectId: string;
|
|
361
|
-
}
|
|
362
|
-
interface GetProjectResponse {
|
|
363
|
-
/** The requested Project. */
|
|
364
|
-
project?: Project;
|
|
365
|
-
}
|
|
366
|
-
interface UpdateProjectRequest {
|
|
367
|
-
/** Project to be updated, may be partial. */
|
|
368
|
-
project: Project;
|
|
369
|
-
}
|
|
370
|
-
interface UpdateProjectResponse {
|
|
371
|
-
/** Updated Project. */
|
|
372
|
-
project?: Project;
|
|
373
|
-
}
|
|
374
|
-
interface DeleteProjectRequest {
|
|
375
|
-
/**
|
|
376
|
-
* Id of the Project to delete.
|
|
377
|
-
* @format GUID
|
|
378
|
-
*/
|
|
379
|
-
projectId: string;
|
|
380
|
-
}
|
|
381
|
-
interface DeleteProjectResponse {
|
|
382
|
-
}
|
|
383
|
-
interface StartProjectRequest {
|
|
384
|
-
/**
|
|
385
|
-
* ID of the Project to start.
|
|
386
|
-
* @format GUID
|
|
387
|
-
*/
|
|
388
|
-
projectId?: string;
|
|
389
|
-
}
|
|
390
|
-
interface StartProjectResponse {
|
|
391
|
-
/** The Project for which start was requested. */
|
|
392
|
-
project?: Project;
|
|
393
|
-
}
|
|
394
|
-
interface ResumeProjectRequest {
|
|
395
|
-
/**
|
|
396
|
-
* ID of the Project to resume.
|
|
397
|
-
* @format GUID
|
|
398
|
-
*/
|
|
399
|
-
projectId: string;
|
|
400
|
-
}
|
|
401
|
-
interface ResumeProjectResponse {
|
|
402
|
-
/** The Project for which resume was requested. */
|
|
403
|
-
project?: Project;
|
|
404
|
-
}
|
|
405
|
-
interface RegenerateProjectNameRequest {
|
|
406
|
-
/**
|
|
407
|
-
* ID of the Project to generate a new name for.
|
|
408
|
-
* @format GUID
|
|
409
|
-
*/
|
|
410
|
-
projectId: string;
|
|
411
|
-
/**
|
|
412
|
-
* The user's free-text renaming instruction, passed to the name-generation prompt.
|
|
413
|
-
* @maxLength 4000
|
|
414
|
-
*/
|
|
415
|
-
prompt: string;
|
|
416
|
-
}
|
|
417
|
-
interface RegenerateProjectNameResponse {
|
|
418
|
-
/**
|
|
419
|
-
* The generated display name, at most 30 characters. Not persisted.
|
|
420
|
-
* @maxLength 30
|
|
421
|
-
*/
|
|
422
|
-
name?: string;
|
|
423
|
-
}
|
|
424
|
-
interface RegenerateProjectIconRequest {
|
|
425
|
-
/**
|
|
426
|
-
* ID of the Project to generate a new icon for.
|
|
427
|
-
* @format GUID
|
|
428
|
-
*/
|
|
429
|
-
projectId: string;
|
|
1
|
+
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, RestoreReleaseOptions, RestoreReleaseResponse, GetHimalayaAuthorizationResponse } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, ActionEvent, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateProjectRequest, CreateProjectResponse, CursorPaging, CursorPagingMetadata, Cursors, DeleteProjectRequest, DeleteProjectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetHimalayaAuthorizationRequest, GetProjectRequest, GetProjectResponse, IdentificationData, IdentificationDataIdOneOf, ListProjectsForCurrentUserRequest, ListProjectsForCurrentUserResponse, ListProjectsOptions, ListProjectsRequest, ListProjectsResponse, MessageEnvelope, Platform, PlatformWithLiterals, ProjectPlanReady, ProjectResumeRequested, ProjectStartRequested, ProjectStatus, ProjectStatusWithLiterals, RefreshAgentSiteTokenRequest, RefreshAgentSiteTokenResponse, RegenerateProjectIconRequest, RegenerateProjectIconResponse, RegenerateProjectNameRequest, RegenerateProjectNameResponse, RestoreInfo, RestoreReleaseRequest, ResumeProjectRequest, SandboxStatus, SandboxStatusWithLiterals, SaveProjectDesignRequest, StartProjectRequest, StartProjectResponse, UpdateProject, UpdateProjectRequest, UpdateProjectResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
4
|
+
|
|
5
|
+
declare function getProject$1(httpClient: HttpClient): GetProjectSignature;
|
|
6
|
+
interface GetProjectSignature {
|
|
430
7
|
/**
|
|
431
|
-
*
|
|
432
|
-
* @
|
|
8
|
+
* Retrieves a Project by ID.
|
|
9
|
+
* @param - ID of the Project to retrieve.
|
|
10
|
+
* @returns The requested Project.
|
|
433
11
|
*/
|
|
434
|
-
|
|
12
|
+
(projectId: string): Promise<NonNullablePaths<Project, `name` | `status` | `sandboxStatus` | `metaSiteIds` | `platform`, 0>>;
|
|
435
13
|
}
|
|
436
|
-
|
|
14
|
+
declare function resumeProject$1(httpClient: HttpClient): ResumeProjectSignature;
|
|
15
|
+
interface ResumeProjectSignature {
|
|
437
16
|
/**
|
|
438
|
-
*
|
|
439
|
-
* @
|
|
17
|
+
* Requests Project resume by starting or reusing its configured remote machine asynchronously.
|
|
18
|
+
* @param - ID of the Project to resume.
|
|
440
19
|
*/
|
|
441
|
-
|
|
442
|
-
}
|
|
443
|
-
interface ListProjectsForCurrentUserRequest {
|
|
444
|
-
/** Cursor paging options. */
|
|
445
|
-
paging?: CursorPaging;
|
|
20
|
+
(projectId: string): Promise<NonNullablePaths<ResumeProjectResponse, `project.name` | `project.status` | `project.sandboxStatus` | `project.metaSiteIds` | `project.platform`, 1>>;
|
|
446
21
|
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
* Maximum number of items to return in the results.
|
|
450
|
-
* @max 100
|
|
451
|
-
*/
|
|
452
|
-
limit?: number | null;
|
|
22
|
+
declare function saveProjectDesign$1(httpClient: HttpClient): SaveProjectDesignSignature;
|
|
23
|
+
interface SaveProjectDesignSignature {
|
|
453
24
|
/**
|
|
454
|
-
*
|
|
25
|
+
* Persists a complete design-token document as a new Himalaya draft release, branched from the
|
|
26
|
+
* release the client currently has displayed.
|
|
455
27
|
*
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
/** Projects owned by the current user. */
|
|
464
|
-
projects?: Project[];
|
|
465
|
-
/** Paging metadata for cursor-based pagination. */
|
|
466
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
467
|
-
}
|
|
468
|
-
interface CursorPagingMetadata {
|
|
469
|
-
/** Number of items returned in current page. */
|
|
470
|
-
count?: number | null;
|
|
471
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
|
472
|
-
cursors?: Cursors;
|
|
473
|
-
/**
|
|
474
|
-
* Whether there are more pages to retrieve following the current page.
|
|
475
|
-
*
|
|
476
|
-
* + `true`: Another page of results can be retrieved.
|
|
477
|
-
* + `false`: This is the last page.
|
|
478
|
-
*/
|
|
479
|
-
hasNext?: boolean | null;
|
|
480
|
-
}
|
|
481
|
-
interface Cursors {
|
|
482
|
-
/**
|
|
483
|
-
* Cursor string pointing to the next page in the list of results.
|
|
484
|
-
* @maxLength 16000
|
|
485
|
-
*/
|
|
486
|
-
next?: string | null;
|
|
487
|
-
/**
|
|
488
|
-
* Cursor pointing to the previous page in the list of results.
|
|
489
|
-
* @maxLength 16000
|
|
490
|
-
*/
|
|
491
|
-
prev?: string | null;
|
|
492
|
-
}
|
|
493
|
-
interface SaveProjectDesignRequest {
|
|
494
|
-
/**
|
|
495
|
-
* Project whose design is being saved. The caller must own it.
|
|
496
|
-
* @format GUID
|
|
497
|
-
*/
|
|
498
|
-
projectId: string;
|
|
499
|
-
/**
|
|
500
|
-
* The Himalaya release ID currently displayed by the client. The saved draft branches from
|
|
28
|
+
* Synchronous: the Himalaya write completes before this call returns. Never touches the project's
|
|
29
|
+
* sandbox, runs a build, or activates the app — the saved release stays a draft, so what the live
|
|
30
|
+
* app serves is unaffected. Persists no entity of its own. When `conversation_id` is supplied it
|
|
31
|
+
* posts a CHECKPOINT message for the saved release into that conversation (best-effort — a chat
|
|
32
|
+
* failure never fails the save); omit it to skip the checkpoint.
|
|
33
|
+
* @param - Project whose design is being saved. The caller must own it.
|
|
34
|
+
* @param - The Himalaya release ID currently displayed by the client. The saved draft branches from
|
|
501
35
|
* exactly this release, even when a newer release exists for the app.
|
|
502
|
-
* @maxLength 100
|
|
503
36
|
*/
|
|
504
|
-
baseReleaseId: string
|
|
505
|
-
/**
|
|
506
|
-
* The complete edited design-token document, as a JSON object string — not a flattened set of
|
|
507
|
-
* preview overrides. The caller is responsible for preserving unknown groups and light/dark
|
|
508
|
-
* values it did not change.
|
|
509
|
-
* @maxLength 65536
|
|
510
|
-
*/
|
|
511
|
-
tokensJson: string;
|
|
512
|
-
/**
|
|
513
|
-
* Short-lived, app-scoped Himalaya control credential the client obtained from Himalaya's owner
|
|
514
|
-
* embed-token endpoint. Forwarded to Himalaya for this call only — never logged, persisted, or
|
|
515
|
-
* echoed back in any response, error, or event.
|
|
516
|
-
*
|
|
517
|
-
* The app this call writes to is NOT taken from this request. It is composed from the owner
|
|
518
|
-
* prefix this credential carries plus project_id; see HimalayaAppSlug.
|
|
519
|
-
* @maxLength 4096
|
|
520
|
-
*/
|
|
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;
|
|
528
|
-
}
|
|
529
|
-
interface SaveProjectDesignResponse {
|
|
530
|
-
/**
|
|
531
|
-
* The saved draft release. Always a draft, so the app's live release is untouched.
|
|
532
|
-
* @maxLength 100
|
|
533
|
-
*/
|
|
534
|
-
himalayaReleaseId?: string;
|
|
535
|
-
/**
|
|
536
|
-
* Short-lived credential for previewing the saved draft release. Response-only: never persisted
|
|
537
|
-
* or placed in a preview URL by this service.
|
|
538
|
-
* @maxLength 4096
|
|
539
|
-
*/
|
|
540
|
-
previewToken?: string;
|
|
541
|
-
/** When preview_token expires. */
|
|
542
|
-
previewTokenExpiresAt?: Date | null;
|
|
37
|
+
(projectId: string, baseReleaseId: string, options?: NonNullablePaths<SaveProjectDesignOptions, `himalayaControlToken` | `tokensJson`, 0>): Promise<NonNullablePaths<SaveProjectDesignResponse, `himalayaReleaseId` | `previewToken`, 0>>;
|
|
543
38
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
paging?: CursorPaging;
|
|
547
|
-
}
|
|
548
|
-
interface ListProjectsResponse {
|
|
549
|
-
/** Projects in the current site. */
|
|
550
|
-
projects?: Project[];
|
|
551
|
-
/** Paging metadata for cursor-based pagination. */
|
|
552
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
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
|
-
}
|
|
584
|
-
interface UpdateProject {
|
|
585
|
-
/**
|
|
586
|
-
* Project ID.
|
|
587
|
-
* @format GUID
|
|
588
|
-
* @readonly
|
|
589
|
-
*/
|
|
590
|
-
_id?: string | null;
|
|
591
|
-
/**
|
|
592
|
-
* Display name for the project.
|
|
593
|
-
* @maxLength 200
|
|
594
|
-
*/
|
|
595
|
-
name?: string;
|
|
596
|
-
/** Current status of the project. */
|
|
597
|
-
status?: ProjectStatusWithLiterals;
|
|
39
|
+
declare function restoreRelease$1(httpClient: HttpClient): RestoreReleaseSignature;
|
|
40
|
+
interface RestoreReleaseSignature {
|
|
598
41
|
/**
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
|
|
603
|
-
templateId?: string | null;
|
|
604
|
-
/**
|
|
605
|
-
* ID of the git-code-store project (and backing dev-center app) for this project. Set on creation.
|
|
606
|
-
* @format GUID
|
|
607
|
-
* @readonly
|
|
608
|
-
*/
|
|
609
|
-
codeStoreProjectId?: string | null;
|
|
610
|
-
/**
|
|
611
|
-
* The user id of the owner of this project
|
|
612
|
-
* @format GUID
|
|
613
|
-
* @readonly
|
|
614
|
-
*/
|
|
615
|
-
ownerUserId?: string | null;
|
|
616
|
-
/**
|
|
617
|
-
* Revision number, which increments by 1 each time the Project is updated.
|
|
618
|
-
* @readonly
|
|
619
|
-
*/
|
|
620
|
-
revision?: string | null;
|
|
621
|
-
/**
|
|
622
|
-
* Date and time the Project was created.
|
|
623
|
-
* @readonly
|
|
624
|
-
*/
|
|
625
|
-
_createdDate?: Date | null;
|
|
626
|
-
/**
|
|
627
|
-
* Date and time the Project was last updated.
|
|
628
|
-
* @readonly
|
|
629
|
-
*/
|
|
630
|
-
_updatedDate?: Date | null;
|
|
631
|
-
/**
|
|
632
|
-
* Transient lock marking that a sandbox is currently being created for this project.
|
|
633
|
-
* Used to serialize concurrent dev-machine creation; liveness of the sandbox itself is resolved via ListSandboxes.
|
|
634
|
-
* @readonly
|
|
635
|
-
*/
|
|
636
|
-
sandboxStatus?: SandboxStatusWithLiterals;
|
|
637
|
-
/**
|
|
638
|
-
* Meta site IDs (MSIDs) of the Wix sites this project is related to.
|
|
639
|
-
* Optional — a project is not required to be tied to a site; may relate to many sites.
|
|
640
|
-
* Preserve the deployed input contract; see containers-projects/SDK_COMPATIBILITY.md.
|
|
641
|
-
* @format GUID
|
|
642
|
-
*/
|
|
643
|
-
metaSiteIds?: string[];
|
|
644
|
-
/**
|
|
645
|
-
* Platform this project targets (iOS/Android). Supplied by the client at creation; immutable after.
|
|
646
|
-
* @immutable
|
|
647
|
-
*/
|
|
648
|
-
platform?: PlatformWithLiterals;
|
|
649
|
-
/**
|
|
650
|
-
* Optional app icon URL supplied by the client from Wix Media Manager.
|
|
651
|
-
* @maxLength 2000
|
|
652
|
-
*/
|
|
653
|
-
appIconUrl?: string | null;
|
|
654
|
-
}
|
|
655
|
-
interface SaveProjectDesignOptions {
|
|
656
|
-
/**
|
|
657
|
-
* The complete edited design-token document, as a JSON object string — not a flattened set of
|
|
658
|
-
* preview overrides. The caller is responsible for preserving unknown groups and light/dark
|
|
659
|
-
* values it did not change.
|
|
660
|
-
* @maxLength 65536
|
|
661
|
-
*/
|
|
662
|
-
tokensJson: string;
|
|
663
|
-
/**
|
|
664
|
-
* Short-lived, app-scoped Himalaya control credential the client obtained from Himalaya's owner
|
|
665
|
-
* embed-token endpoint. Forwarded to Himalaya for this call only — never logged, persisted, or
|
|
666
|
-
* echoed back in any response, error, or event.
|
|
42
|
+
* Restores an earlier version by pointing the project's editable head at `release_id`: the client
|
|
43
|
+
* then previews that release and the next edit (design save or AI edit) branches from it. Pure
|
|
44
|
+
* project state — sets `head_release_id` and nothing in Himalaya: it does NOT activate the release,
|
|
45
|
+
* so the live app end-users run is untouched (a later publish/build is what carries head live).
|
|
667
46
|
*
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
47
|
+
* `release_id` is a Himalaya release id the caller already holds from the project's own release
|
|
48
|
+
* ledger, scoped to this project's app; the server stores it as head without re-reading Himalaya.
|
|
49
|
+
* When `conversation_id` is supplied, a CHECKPOINT message for the restored release is posted into
|
|
50
|
+
* it (best-effort — a chat failure never fails the restore); omit it to skip the checkpoint.
|
|
51
|
+
* @param - Project whose head is being moved. The caller must own it.
|
|
52
|
+
* @param - The Himalaya release to make the project's editable head. Not a GUID — a Himalaya release id
|
|
53
|
+
* (e.g. `rel-<hash>` / `<sha>-<hash>`), taken from the project's own release ledger.
|
|
671
54
|
*/
|
|
672
|
-
|
|
55
|
+
(projectId: string, releaseId: string, options?: RestoreReleaseOptions): Promise<NonNullablePaths<RestoreReleaseResponse, `project.name` | `project.status` | `project.sandboxStatus` | `project.metaSiteIds` | `project.platform`, 1>>;
|
|
56
|
+
}
|
|
57
|
+
declare function getHimalayaAuthorization$1(httpClient: HttpClient): GetHimalayaAuthorizationSignature;
|
|
58
|
+
interface GetHimalayaAuthorizationSignature {
|
|
673
59
|
/**
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
* @
|
|
60
|
+
* Repeats authenticated Himalaya authorization for the current collaborator. This response is
|
|
61
|
+
* a capability check only; every worker/design mutation performs a fresh check.
|
|
62
|
+
* @param - Site-tenanted Containers project being authorized.
|
|
677
63
|
*/
|
|
678
|
-
canonicalApp
|
|
679
|
-
}
|
|
680
|
-
interface ListProjectsOptions {
|
|
681
|
-
/** Cursor paging options. */
|
|
682
|
-
paging?: CursorPaging;
|
|
64
|
+
(projectId: string): Promise<NonNullablePaths<GetHimalayaAuthorizationResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp` | `workerLaunch` | `saveDesign`, 0>>;
|
|
683
65
|
}
|
|
684
66
|
|
|
685
|
-
|
|
67
|
+
declare const getProject: MaybeContext<BuildRESTFunction<typeof getProject$1> & typeof getProject$1>;
|
|
68
|
+
declare const resumeProject: MaybeContext<BuildRESTFunction<typeof resumeProject$1> & typeof resumeProject$1>;
|
|
69
|
+
declare const saveProjectDesign: MaybeContext<BuildRESTFunction<typeof saveProjectDesign$1> & typeof saveProjectDesign$1>;
|
|
70
|
+
declare const restoreRelease: MaybeContext<BuildRESTFunction<typeof restoreRelease$1> & typeof restoreRelease$1>;
|
|
71
|
+
declare const getHimalayaAuthorization: MaybeContext<BuildRESTFunction<typeof getHimalayaAuthorization$1> & typeof getHimalayaAuthorization$1>;
|
|
72
|
+
|
|
73
|
+
export { GetHimalayaAuthorizationResponse, Project, RestoreReleaseOptions, RestoreReleaseResponse, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, getHimalayaAuthorization, getProject, restoreRelease, resumeProject, saveProjectDesign };
|