@wix/auto_sdk_containers_projects 1.0.0
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 +616 -0
- package/build/cjs/index.js +681 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +599 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +560 -0
- package/build/cjs/meta.js +527 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +616 -0
- package/build/es/index.mjs +645 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +563 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +560 -0
- package/build/es/meta.mjs +488 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +129 -0
- package/build/internal/cjs/index.typings.d.ts +745 -0
- package/build/internal/cjs/meta.d.ts +608 -0
- package/build/internal/es/index.d.mts +129 -0
- package/build/internal/es/index.typings.d.mts +745 -0
- package/build/internal/es/meta.d.mts +608 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
interface Project {
|
|
2
|
+
/**
|
|
3
|
+
* Project ID.
|
|
4
|
+
* @format GUID
|
|
5
|
+
* @readonly
|
|
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
|
+
* ID of the Project whose owner site token should be re-minted.
|
|
151
|
+
* @format GUID
|
|
152
|
+
*/
|
|
153
|
+
projectId?: string;
|
|
154
|
+
}
|
|
155
|
+
interface RefreshAgentSiteTokenResponse {
|
|
156
|
+
/**
|
|
157
|
+
* A freshly minted site-scoped access token for the project owner. Sensitive credential material:
|
|
158
|
+
* marked pii so the platform redacts it from request/response logging (never log it in app code either).
|
|
159
|
+
* maxLength matches the sibling containers-project-versions token fields (4096) — ample for the
|
|
160
|
+
* oauth2-ng user access token, and required by the string-validation standard.
|
|
161
|
+
* @maxLength 4096
|
|
162
|
+
*/
|
|
163
|
+
accessToken?: string;
|
|
164
|
+
/** Seconds until the returned token expires, as reported by oauth2-ng. */
|
|
165
|
+
expiresIn?: string;
|
|
166
|
+
}
|
|
167
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
168
|
+
createdEvent?: EntityCreatedEvent;
|
|
169
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
170
|
+
deletedEvent?: EntityDeletedEvent;
|
|
171
|
+
actionEvent?: ActionEvent;
|
|
172
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
173
|
+
_id?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
176
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
177
|
+
*/
|
|
178
|
+
entityFqdn?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
181
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
182
|
+
*/
|
|
183
|
+
slug?: string;
|
|
184
|
+
/** ID of the entity associated with the event. */
|
|
185
|
+
entityId?: string;
|
|
186
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
187
|
+
eventTime?: Date | null;
|
|
188
|
+
/**
|
|
189
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
190
|
+
* (for example, GDPR).
|
|
191
|
+
*/
|
|
192
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
193
|
+
/** If present, indicates the action that triggered the event. */
|
|
194
|
+
originatedFrom?: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* 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.
|
|
197
|
+
* 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.
|
|
198
|
+
*/
|
|
199
|
+
entityEventSequence?: string | null;
|
|
200
|
+
}
|
|
201
|
+
/** @oneof */
|
|
202
|
+
interface DomainEventBodyOneOf {
|
|
203
|
+
createdEvent?: EntityCreatedEvent;
|
|
204
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
205
|
+
deletedEvent?: EntityDeletedEvent;
|
|
206
|
+
actionEvent?: ActionEvent;
|
|
207
|
+
}
|
|
208
|
+
interface EntityCreatedEvent {
|
|
209
|
+
entity?: string;
|
|
210
|
+
}
|
|
211
|
+
interface RestoreInfo {
|
|
212
|
+
deletedDate?: Date | null;
|
|
213
|
+
}
|
|
214
|
+
interface EntityUpdatedEvent {
|
|
215
|
+
/**
|
|
216
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
217
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
218
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
219
|
+
*/
|
|
220
|
+
currentEntity?: string;
|
|
221
|
+
}
|
|
222
|
+
interface EntityDeletedEvent {
|
|
223
|
+
/** Entity that was deleted. */
|
|
224
|
+
deletedEntity?: string | null;
|
|
225
|
+
}
|
|
226
|
+
interface ActionEvent {
|
|
227
|
+
body?: string;
|
|
228
|
+
}
|
|
229
|
+
interface MessageEnvelope {
|
|
230
|
+
/**
|
|
231
|
+
* App instance ID.
|
|
232
|
+
* @format GUID
|
|
233
|
+
*/
|
|
234
|
+
instanceId?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Event type.
|
|
237
|
+
* @maxLength 150
|
|
238
|
+
*/
|
|
239
|
+
eventType?: string;
|
|
240
|
+
/** The identification type and identity data. */
|
|
241
|
+
identity?: IdentificationData;
|
|
242
|
+
/** Stringify payload. */
|
|
243
|
+
data?: string;
|
|
244
|
+
/** Details related to the account */
|
|
245
|
+
accountInfo?: AccountInfo;
|
|
246
|
+
}
|
|
247
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
248
|
+
/**
|
|
249
|
+
* ID of a site visitor that has not logged in to the site.
|
|
250
|
+
* @format GUID
|
|
251
|
+
*/
|
|
252
|
+
anonymousVisitorId?: string;
|
|
253
|
+
/**
|
|
254
|
+
* ID of a site visitor that has logged in to the site.
|
|
255
|
+
* @format GUID
|
|
256
|
+
*/
|
|
257
|
+
memberId?: string;
|
|
258
|
+
/**
|
|
259
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
260
|
+
* @format GUID
|
|
261
|
+
*/
|
|
262
|
+
wixUserId?: string;
|
|
263
|
+
/**
|
|
264
|
+
* ID of an app.
|
|
265
|
+
* @format GUID
|
|
266
|
+
*/
|
|
267
|
+
appId?: string;
|
|
268
|
+
/** @readonly */
|
|
269
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
270
|
+
}
|
|
271
|
+
/** @oneof */
|
|
272
|
+
interface IdentificationDataIdOneOf {
|
|
273
|
+
/**
|
|
274
|
+
* ID of a site visitor that has not logged in to the site.
|
|
275
|
+
* @format GUID
|
|
276
|
+
*/
|
|
277
|
+
anonymousVisitorId?: string;
|
|
278
|
+
/**
|
|
279
|
+
* ID of a site visitor that has logged in to the site.
|
|
280
|
+
* @format GUID
|
|
281
|
+
*/
|
|
282
|
+
memberId?: string;
|
|
283
|
+
/**
|
|
284
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
285
|
+
* @format GUID
|
|
286
|
+
*/
|
|
287
|
+
wixUserId?: string;
|
|
288
|
+
/**
|
|
289
|
+
* ID of an app.
|
|
290
|
+
* @format GUID
|
|
291
|
+
*/
|
|
292
|
+
appId?: string;
|
|
293
|
+
}
|
|
294
|
+
declare enum WebhookIdentityType {
|
|
295
|
+
UNKNOWN = "UNKNOWN",
|
|
296
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
297
|
+
MEMBER = "MEMBER",
|
|
298
|
+
WIX_USER = "WIX_USER",
|
|
299
|
+
APP = "APP"
|
|
300
|
+
}
|
|
301
|
+
/** @enumType */
|
|
302
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
303
|
+
interface AccountInfo {
|
|
304
|
+
/**
|
|
305
|
+
* ID of the Wix account associated with the event.
|
|
306
|
+
* @format GUID
|
|
307
|
+
*/
|
|
308
|
+
accountId?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
311
|
+
* @format GUID
|
|
312
|
+
*/
|
|
313
|
+
parentAccountId?: string | null;
|
|
314
|
+
/**
|
|
315
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
316
|
+
* @format GUID
|
|
317
|
+
*/
|
|
318
|
+
siteId?: string | null;
|
|
319
|
+
}
|
|
320
|
+
interface CreateProjectRequest {
|
|
321
|
+
/** Project to be created. */
|
|
322
|
+
project: Project;
|
|
323
|
+
}
|
|
324
|
+
interface CreateProjectResponse {
|
|
325
|
+
/** The created Project. */
|
|
326
|
+
project?: Project;
|
|
327
|
+
}
|
|
328
|
+
interface GetProjectRequest {
|
|
329
|
+
/**
|
|
330
|
+
* ID of the Project to retrieve.
|
|
331
|
+
* @format GUID
|
|
332
|
+
*/
|
|
333
|
+
projectId: string;
|
|
334
|
+
}
|
|
335
|
+
interface GetProjectResponse {
|
|
336
|
+
/** The requested Project. */
|
|
337
|
+
project?: Project;
|
|
338
|
+
}
|
|
339
|
+
interface UpdateProjectRequest {
|
|
340
|
+
/** Project to be updated, may be partial. */
|
|
341
|
+
project: Project;
|
|
342
|
+
}
|
|
343
|
+
interface UpdateProjectResponse {
|
|
344
|
+
/** Updated Project. */
|
|
345
|
+
project?: Project;
|
|
346
|
+
}
|
|
347
|
+
interface DeleteProjectRequest {
|
|
348
|
+
/**
|
|
349
|
+
* Id of the Project to delete.
|
|
350
|
+
* @format GUID
|
|
351
|
+
*/
|
|
352
|
+
projectId: string;
|
|
353
|
+
}
|
|
354
|
+
interface DeleteProjectResponse {
|
|
355
|
+
}
|
|
356
|
+
interface StartProjectRequest {
|
|
357
|
+
/**
|
|
358
|
+
* ID of the Project to start.
|
|
359
|
+
* @format GUID
|
|
360
|
+
*/
|
|
361
|
+
projectId?: string;
|
|
362
|
+
}
|
|
363
|
+
interface StartProjectResponse {
|
|
364
|
+
/** The Project for which start was requested. */
|
|
365
|
+
project?: Project;
|
|
366
|
+
}
|
|
367
|
+
interface ResumeProjectRequest {
|
|
368
|
+
/**
|
|
369
|
+
* ID of the Project to resume.
|
|
370
|
+
* @format GUID
|
|
371
|
+
*/
|
|
372
|
+
projectId: string;
|
|
373
|
+
}
|
|
374
|
+
interface ResumeProjectResponse {
|
|
375
|
+
/** The Project for which resume was requested. */
|
|
376
|
+
project?: Project;
|
|
377
|
+
}
|
|
378
|
+
interface RegenerateProjectNameRequest {
|
|
379
|
+
/**
|
|
380
|
+
* ID of the Project to generate a new name for.
|
|
381
|
+
* @format GUID
|
|
382
|
+
*/
|
|
383
|
+
projectId: string;
|
|
384
|
+
/**
|
|
385
|
+
* The user's free-text renaming instruction, passed to the name-generation prompt.
|
|
386
|
+
* @maxLength 4000
|
|
387
|
+
*/
|
|
388
|
+
prompt: string;
|
|
389
|
+
}
|
|
390
|
+
interface RegenerateProjectNameResponse {
|
|
391
|
+
/**
|
|
392
|
+
* The generated display name, at most 30 characters. Not persisted.
|
|
393
|
+
* @maxLength 30
|
|
394
|
+
*/
|
|
395
|
+
name?: string;
|
|
396
|
+
}
|
|
397
|
+
interface RegenerateProjectIconRequest {
|
|
398
|
+
/**
|
|
399
|
+
* ID of the Project to generate a new icon for.
|
|
400
|
+
* @format GUID
|
|
401
|
+
*/
|
|
402
|
+
projectId: string;
|
|
403
|
+
/**
|
|
404
|
+
* The user's free-text icon instruction, passed to the icon-generation prompt.
|
|
405
|
+
* @maxLength 4000
|
|
406
|
+
*/
|
|
407
|
+
prompt: string;
|
|
408
|
+
}
|
|
409
|
+
interface RegenerateProjectIconResponse {
|
|
410
|
+
/**
|
|
411
|
+
* The generated icon URL. Not persisted.
|
|
412
|
+
* @format WEB_URL
|
|
413
|
+
*/
|
|
414
|
+
iconUrl?: string;
|
|
415
|
+
}
|
|
416
|
+
interface ListProjectsForCurrentUserRequest {
|
|
417
|
+
/** Cursor paging options. */
|
|
418
|
+
paging?: CursorPaging;
|
|
419
|
+
}
|
|
420
|
+
interface CursorPaging {
|
|
421
|
+
/**
|
|
422
|
+
* Maximum number of items to return in the results.
|
|
423
|
+
* @max 100
|
|
424
|
+
*/
|
|
425
|
+
limit?: number | null;
|
|
426
|
+
/**
|
|
427
|
+
* Pointer to the next or previous page in the list of results.
|
|
428
|
+
*
|
|
429
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
430
|
+
* Not relevant for the first request.
|
|
431
|
+
* @maxLength 16000
|
|
432
|
+
*/
|
|
433
|
+
cursor?: string | null;
|
|
434
|
+
}
|
|
435
|
+
interface ListProjectsForCurrentUserResponse {
|
|
436
|
+
/** Projects owned by the current user. */
|
|
437
|
+
projects?: Project[];
|
|
438
|
+
/** Paging metadata for cursor-based pagination. */
|
|
439
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
440
|
+
}
|
|
441
|
+
interface CursorPagingMetadata {
|
|
442
|
+
/** Number of items returned in current page. */
|
|
443
|
+
count?: number | null;
|
|
444
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
445
|
+
cursors?: Cursors;
|
|
446
|
+
/**
|
|
447
|
+
* Whether there are more pages to retrieve following the current page.
|
|
448
|
+
*
|
|
449
|
+
* + `true`: Another page of results can be retrieved.
|
|
450
|
+
* + `false`: This is the last page.
|
|
451
|
+
*/
|
|
452
|
+
hasNext?: boolean | null;
|
|
453
|
+
}
|
|
454
|
+
interface Cursors {
|
|
455
|
+
/**
|
|
456
|
+
* Cursor string pointing to the next page in the list of results.
|
|
457
|
+
* @maxLength 16000
|
|
458
|
+
*/
|
|
459
|
+
next?: string | null;
|
|
460
|
+
/**
|
|
461
|
+
* Cursor pointing to the previous page in the list of results.
|
|
462
|
+
* @maxLength 16000
|
|
463
|
+
*/
|
|
464
|
+
prev?: string | null;
|
|
465
|
+
}
|
|
466
|
+
interface SaveProjectDesignRequest {
|
|
467
|
+
/**
|
|
468
|
+
* Project whose design is being saved. The caller must own it.
|
|
469
|
+
* @format GUID
|
|
470
|
+
*/
|
|
471
|
+
projectId: string;
|
|
472
|
+
/**
|
|
473
|
+
* The Himalaya release ID currently displayed by the client. The saved draft branches from
|
|
474
|
+
* exactly this release, even when a newer release exists for the app.
|
|
475
|
+
* @maxLength 100
|
|
476
|
+
*/
|
|
477
|
+
baseReleaseId: string;
|
|
478
|
+
/**
|
|
479
|
+
* The complete edited design-token document, as a JSON object string — not a flattened set of
|
|
480
|
+
* preview overrides. The caller is responsible for preserving unknown groups and light/dark
|
|
481
|
+
* values it did not change.
|
|
482
|
+
* @maxLength 65536
|
|
483
|
+
*/
|
|
484
|
+
tokensJson: string;
|
|
485
|
+
/**
|
|
486
|
+
* Short-lived, app-scoped Himalaya control credential the client obtained from Himalaya's owner
|
|
487
|
+
* embed-token endpoint. Forwarded to Himalaya for this call only — never logged, persisted, or
|
|
488
|
+
* echoed back in any response, error, or event.
|
|
489
|
+
*
|
|
490
|
+
* The app this call writes to is NOT taken from this request. It is composed from the owner
|
|
491
|
+
* prefix this credential carries plus project_id; see HimalayaAppSlug.
|
|
492
|
+
* @maxLength 4096
|
|
493
|
+
*/
|
|
494
|
+
himalayaControlToken: string;
|
|
495
|
+
}
|
|
496
|
+
interface SaveProjectDesignResponse {
|
|
497
|
+
/**
|
|
498
|
+
* The saved draft release. Always a draft, so the app's live release is untouched.
|
|
499
|
+
* @maxLength 100
|
|
500
|
+
*/
|
|
501
|
+
himalayaReleaseId?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Short-lived credential for previewing the saved draft release. Response-only: never persisted
|
|
504
|
+
* or placed in a preview URL by this service.
|
|
505
|
+
* @maxLength 4096
|
|
506
|
+
*/
|
|
507
|
+
previewToken?: string;
|
|
508
|
+
/** When preview_token expires. */
|
|
509
|
+
previewTokenExpiresAt?: Date | null;
|
|
510
|
+
}
|
|
511
|
+
interface ListProjectsRequest {
|
|
512
|
+
/** Cursor paging options. */
|
|
513
|
+
paging?: CursorPaging;
|
|
514
|
+
}
|
|
515
|
+
interface ListProjectsResponse {
|
|
516
|
+
/** Projects in the current site. */
|
|
517
|
+
projects?: Project[];
|
|
518
|
+
/** Paging metadata for cursor-based pagination. */
|
|
519
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
520
|
+
}
|
|
521
|
+
interface UpdateProject {
|
|
522
|
+
/**
|
|
523
|
+
* Project ID.
|
|
524
|
+
* @format GUID
|
|
525
|
+
* @readonly
|
|
526
|
+
*/
|
|
527
|
+
_id?: string | null;
|
|
528
|
+
/**
|
|
529
|
+
* Display name for the project.
|
|
530
|
+
* @maxLength 200
|
|
531
|
+
*/
|
|
532
|
+
name?: string;
|
|
533
|
+
/** Current status of the project. */
|
|
534
|
+
status?: ProjectStatusWithLiterals;
|
|
535
|
+
/**
|
|
536
|
+
* ID of the template used to create this project.
|
|
537
|
+
* @format GUID
|
|
538
|
+
* @immutable
|
|
539
|
+
*/
|
|
540
|
+
templateId?: string | null;
|
|
541
|
+
/**
|
|
542
|
+
* ID of the git-code-store project (and backing dev-center app) for this project. Set on creation.
|
|
543
|
+
* @format GUID
|
|
544
|
+
* @readonly
|
|
545
|
+
*/
|
|
546
|
+
codeStoreProjectId?: string | null;
|
|
547
|
+
/**
|
|
548
|
+
* The user id of the owner of this project
|
|
549
|
+
* @format GUID
|
|
550
|
+
* @readonly
|
|
551
|
+
*/
|
|
552
|
+
ownerUserId?: string | null;
|
|
553
|
+
/**
|
|
554
|
+
* Revision number, which increments by 1 each time the Project is updated.
|
|
555
|
+
* @readonly
|
|
556
|
+
*/
|
|
557
|
+
revision?: string | null;
|
|
558
|
+
/**
|
|
559
|
+
* Date and time the Project was created.
|
|
560
|
+
* @readonly
|
|
561
|
+
*/
|
|
562
|
+
_createdDate?: Date | null;
|
|
563
|
+
/**
|
|
564
|
+
* Date and time the Project was last updated.
|
|
565
|
+
* @readonly
|
|
566
|
+
*/
|
|
567
|
+
_updatedDate?: Date | null;
|
|
568
|
+
/**
|
|
569
|
+
* Transient lock marking that a sandbox is currently being created for this project.
|
|
570
|
+
* Used to serialize concurrent dev-machine creation; liveness of the sandbox itself is resolved via ListSandboxes.
|
|
571
|
+
* @readonly
|
|
572
|
+
*/
|
|
573
|
+
sandboxStatus?: SandboxStatusWithLiterals;
|
|
574
|
+
/**
|
|
575
|
+
* Meta site IDs (MSIDs) of the Wix sites this project is related to.
|
|
576
|
+
* Optional — a project is not required to be tied to a site; may relate to many sites.
|
|
577
|
+
* Preserve the deployed input contract; see containers-projects/SDK_COMPATIBILITY.md.
|
|
578
|
+
* @format GUID
|
|
579
|
+
*/
|
|
580
|
+
metaSiteIds?: string[];
|
|
581
|
+
/**
|
|
582
|
+
* Platform this project targets (iOS/Android). Supplied by the client at creation; immutable after.
|
|
583
|
+
* @immutable
|
|
584
|
+
*/
|
|
585
|
+
platform?: PlatformWithLiterals;
|
|
586
|
+
/**
|
|
587
|
+
* Optional app icon URL supplied by the client from Wix Media Manager.
|
|
588
|
+
* @maxLength 2000
|
|
589
|
+
*/
|
|
590
|
+
appIconUrl?: string | null;
|
|
591
|
+
}
|
|
592
|
+
interface SaveProjectDesignOptions {
|
|
593
|
+
/**
|
|
594
|
+
* The complete edited design-token document, as a JSON object string — not a flattened set of
|
|
595
|
+
* preview overrides. The caller is responsible for preserving unknown groups and light/dark
|
|
596
|
+
* values it did not change.
|
|
597
|
+
* @maxLength 65536
|
|
598
|
+
*/
|
|
599
|
+
tokensJson: string;
|
|
600
|
+
/**
|
|
601
|
+
* Short-lived, app-scoped Himalaya control credential the client obtained from Himalaya's owner
|
|
602
|
+
* embed-token endpoint. Forwarded to Himalaya for this call only — never logged, persisted, or
|
|
603
|
+
* echoed back in any response, error, or event.
|
|
604
|
+
*
|
|
605
|
+
* The app this call writes to is NOT taken from this request. It is composed from the owner
|
|
606
|
+
* prefix this credential carries plus project_id; see HimalayaAppSlug.
|
|
607
|
+
* @maxLength 4096
|
|
608
|
+
*/
|
|
609
|
+
himalayaControlToken: string;
|
|
610
|
+
}
|
|
611
|
+
interface ListProjectsOptions {
|
|
612
|
+
/** Cursor paging options. */
|
|
613
|
+
paging?: CursorPaging;
|
|
614
|
+
}
|
|
615
|
+
|
|
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 };
|