@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,608 @@
|
|
|
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 } from './index.typings.js';
|
|
2
|
+
import '@wix/sdk-types';
|
|
3
|
+
|
|
4
|
+
interface Project {
|
|
5
|
+
/**
|
|
6
|
+
* Project ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Display name for the project.
|
|
13
|
+
* @maxLength 200
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/** Current status of the project. */
|
|
17
|
+
status?: ProjectStatusWithLiterals;
|
|
18
|
+
/**
|
|
19
|
+
* ID of the template used to create this project.
|
|
20
|
+
* @format GUID
|
|
21
|
+
* @immutable
|
|
22
|
+
*/
|
|
23
|
+
templateId?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the git-code-store project (and backing dev-center app) for this project. Set on creation.
|
|
26
|
+
* @format GUID
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
codeStoreProjectId?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The user id of the owner of this project
|
|
32
|
+
* @format GUID
|
|
33
|
+
* @readonly
|
|
34
|
+
*/
|
|
35
|
+
ownerUserId?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Revision number, which increments by 1 each time the Project is updated.
|
|
38
|
+
* @readonly
|
|
39
|
+
*/
|
|
40
|
+
revision?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Date and time the Project was created.
|
|
43
|
+
* @readonly
|
|
44
|
+
*/
|
|
45
|
+
createdDate?: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* Date and time the Project was last updated.
|
|
48
|
+
* @readonly
|
|
49
|
+
*/
|
|
50
|
+
updatedDate?: Date | null;
|
|
51
|
+
/**
|
|
52
|
+
* Transient lock marking that a sandbox is currently being created for this project.
|
|
53
|
+
* Used to serialize concurrent dev-machine creation; liveness of the sandbox itself is resolved via ListSandboxes.
|
|
54
|
+
* @readonly
|
|
55
|
+
*/
|
|
56
|
+
sandboxStatus?: SandboxStatusWithLiterals;
|
|
57
|
+
/**
|
|
58
|
+
* Meta site IDs (MSIDs) of the Wix sites this project is related to.
|
|
59
|
+
* Optional — a project is not required to be tied to a site; may relate to many sites.
|
|
60
|
+
* Preserve the deployed input contract; see containers-projects/SDK_COMPATIBILITY.md.
|
|
61
|
+
* @format GUID
|
|
62
|
+
*/
|
|
63
|
+
metaSiteIds?: string[];
|
|
64
|
+
/**
|
|
65
|
+
* Platform this project targets (iOS/Android). Supplied by the client at creation; immutable after.
|
|
66
|
+
* @immutable
|
|
67
|
+
*/
|
|
68
|
+
platform?: PlatformWithLiterals;
|
|
69
|
+
/**
|
|
70
|
+
* Optional app icon URL supplied by the client from Wix Media Manager.
|
|
71
|
+
* @maxLength 2000
|
|
72
|
+
*/
|
|
73
|
+
appIconUrl?: string | null;
|
|
74
|
+
}
|
|
75
|
+
declare enum ProjectStatus {
|
|
76
|
+
/** Project created; client (via containers-plans) is doing most of the work. */
|
|
77
|
+
PLANNING = "PLANNING",
|
|
78
|
+
/** Generation job created; project moves onward to machine startup. */
|
|
79
|
+
BUILDING = "BUILDING",
|
|
80
|
+
/** Plan finalized; project is about to create the initial generation job. */
|
|
81
|
+
PLAN_READY = "PLAN_READY"
|
|
82
|
+
}
|
|
83
|
+
/** @enumType */
|
|
84
|
+
type ProjectStatusWithLiterals = ProjectStatus | 'PLANNING' | 'BUILDING' | 'PLAN_READY';
|
|
85
|
+
declare enum SandboxStatus {
|
|
86
|
+
/** No sandbox creation in progress. */
|
|
87
|
+
NONE = "NONE",
|
|
88
|
+
/** A caller is currently creating a sandbox for this project (creation lock held). */
|
|
89
|
+
CREATING = "CREATING"
|
|
90
|
+
}
|
|
91
|
+
/** @enumType */
|
|
92
|
+
type SandboxStatusWithLiterals = SandboxStatus | 'NONE' | 'CREATING';
|
|
93
|
+
declare enum Platform {
|
|
94
|
+
IOS = "IOS",
|
|
95
|
+
ANDROID = "ANDROID",
|
|
96
|
+
/**
|
|
97
|
+
* Himalaya Mobile (Wix SDUI/OTA content package): mobile apps built headlessly on the
|
|
98
|
+
* on-demand remote machine via the himi CLI, instead of native iOS/Android pods.
|
|
99
|
+
*/
|
|
100
|
+
HIMALAYA_MOBILE = "HIMALAYA_MOBILE"
|
|
101
|
+
}
|
|
102
|
+
/** @enumType */
|
|
103
|
+
type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID' | 'HIMALAYA_MOBILE';
|
|
104
|
+
interface ProjectStartRequested {
|
|
105
|
+
/**
|
|
106
|
+
* ID of the Project to start.
|
|
107
|
+
* @format GUID
|
|
108
|
+
*/
|
|
109
|
+
projectId?: string;
|
|
110
|
+
}
|
|
111
|
+
interface ProjectResumeRequested {
|
|
112
|
+
/**
|
|
113
|
+
* ID of the Project to resume.
|
|
114
|
+
* @format GUID
|
|
115
|
+
*/
|
|
116
|
+
projectId?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Emitted when the project transitions PLANNING -> PLAN_READY (on plan finalization). The project
|
|
120
|
+
* self-consumes this event to start the app generation: mint the agent session, attach it to the
|
|
121
|
+
* finalized conversation, create the initial generation job, and move to BUILDING. The finalized
|
|
122
|
+
* plan is read back from containers-plans by project id when the job is built.
|
|
123
|
+
*/
|
|
124
|
+
interface ProjectPlanReady {
|
|
125
|
+
/**
|
|
126
|
+
* ID of the Project whose plan is ready.
|
|
127
|
+
* @format GUID
|
|
128
|
+
*/
|
|
129
|
+
projectId?: string;
|
|
130
|
+
/**
|
|
131
|
+
* ID of the conversation that led to this plan being finalized. The minted agent session id is
|
|
132
|
+
* attached to this conversation so the build can --resume it. Propagated from PlanFinalized.
|
|
133
|
+
* @format GUID
|
|
134
|
+
*/
|
|
135
|
+
conversationId?: string;
|
|
136
|
+
}
|
|
137
|
+
interface CreateAgentSessionRequest {
|
|
138
|
+
/**
|
|
139
|
+
* ID of the Project to create an agent session for.
|
|
140
|
+
* @format GUID
|
|
141
|
+
*/
|
|
142
|
+
projectId?: string;
|
|
143
|
+
}
|
|
144
|
+
interface CreateAgentSessionResponse {
|
|
145
|
+
/**
|
|
146
|
+
* Agent session ID materialized for the Project.
|
|
147
|
+
* @format GUID
|
|
148
|
+
*/
|
|
149
|
+
agentSessionId?: string;
|
|
150
|
+
}
|
|
151
|
+
interface RefreshAgentSiteTokenRequest {
|
|
152
|
+
/**
|
|
153
|
+
* ID of the Project whose owner site token should be re-minted.
|
|
154
|
+
* @format GUID
|
|
155
|
+
*/
|
|
156
|
+
projectId?: string;
|
|
157
|
+
}
|
|
158
|
+
interface RefreshAgentSiteTokenResponse {
|
|
159
|
+
/**
|
|
160
|
+
* A freshly minted site-scoped access token for the project owner. Sensitive credential material:
|
|
161
|
+
* marked pii so the platform redacts it from request/response logging (never log it in app code either).
|
|
162
|
+
* maxLength matches the sibling containers-project-versions token fields (4096) — ample for the
|
|
163
|
+
* oauth2-ng user access token, and required by the string-validation standard.
|
|
164
|
+
* @maxLength 4096
|
|
165
|
+
*/
|
|
166
|
+
accessToken?: string;
|
|
167
|
+
/** Seconds until the returned token expires, as reported by oauth2-ng. */
|
|
168
|
+
expiresIn?: string;
|
|
169
|
+
}
|
|
170
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
171
|
+
createdEvent?: EntityCreatedEvent;
|
|
172
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
173
|
+
deletedEvent?: EntityDeletedEvent;
|
|
174
|
+
actionEvent?: ActionEvent;
|
|
175
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
176
|
+
id?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
179
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
180
|
+
*/
|
|
181
|
+
entityFqdn?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
184
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
185
|
+
*/
|
|
186
|
+
slug?: string;
|
|
187
|
+
/** ID of the entity associated with the event. */
|
|
188
|
+
entityId?: string;
|
|
189
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
190
|
+
eventTime?: Date | null;
|
|
191
|
+
/**
|
|
192
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
193
|
+
* (for example, GDPR).
|
|
194
|
+
*/
|
|
195
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
196
|
+
/** If present, indicates the action that triggered the event. */
|
|
197
|
+
originatedFrom?: string | null;
|
|
198
|
+
/**
|
|
199
|
+
* 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.
|
|
200
|
+
* 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.
|
|
201
|
+
*/
|
|
202
|
+
entityEventSequence?: string | null;
|
|
203
|
+
}
|
|
204
|
+
/** @oneof */
|
|
205
|
+
interface DomainEventBodyOneOf {
|
|
206
|
+
createdEvent?: EntityCreatedEvent;
|
|
207
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
208
|
+
deletedEvent?: EntityDeletedEvent;
|
|
209
|
+
actionEvent?: ActionEvent;
|
|
210
|
+
}
|
|
211
|
+
interface EntityCreatedEvent {
|
|
212
|
+
entityAsJson?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
217
|
+
triggeredByUndelete?: boolean | null;
|
|
218
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
219
|
+
restoreInfo?: RestoreInfo;
|
|
220
|
+
/**
|
|
221
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
additionalMetadataAsJson?: string | null;
|
|
225
|
+
}
|
|
226
|
+
interface RestoreInfo {
|
|
227
|
+
deletedDate?: Date | null;
|
|
228
|
+
}
|
|
229
|
+
interface EntityUpdatedEvent {
|
|
230
|
+
/**
|
|
231
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
232
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
233
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
234
|
+
*/
|
|
235
|
+
currentEntityAsJson?: string;
|
|
236
|
+
/**
|
|
237
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
238
|
+
* wont populate it / have any reference to it in the API.
|
|
239
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
240
|
+
* the developer should send only the new (current) entity.
|
|
241
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
242
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
243
|
+
* @internal
|
|
244
|
+
* @deprecated
|
|
245
|
+
*/
|
|
246
|
+
previousEntityAsJson?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
249
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
250
|
+
* @internal
|
|
251
|
+
*/
|
|
252
|
+
modifiedFields?: Record<string, any>;
|
|
253
|
+
/**
|
|
254
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
255
|
+
* @internal
|
|
256
|
+
*/
|
|
257
|
+
additionalMetadataAsJson?: string | null;
|
|
258
|
+
}
|
|
259
|
+
interface EntityDeletedEvent {
|
|
260
|
+
/**
|
|
261
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
262
|
+
* @internal
|
|
263
|
+
*/
|
|
264
|
+
movedToTrash?: boolean | null;
|
|
265
|
+
/** Entity that was deleted. */
|
|
266
|
+
deletedEntityAsJson?: string | null;
|
|
267
|
+
/**
|
|
268
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
269
|
+
* @internal
|
|
270
|
+
*/
|
|
271
|
+
additionalMetadataAsJson?: string | null;
|
|
272
|
+
}
|
|
273
|
+
interface ActionEvent {
|
|
274
|
+
bodyAsJson?: string;
|
|
275
|
+
}
|
|
276
|
+
interface MessageEnvelope {
|
|
277
|
+
/**
|
|
278
|
+
* App instance ID.
|
|
279
|
+
* @format GUID
|
|
280
|
+
*/
|
|
281
|
+
instanceId?: string | null;
|
|
282
|
+
/**
|
|
283
|
+
* Event type.
|
|
284
|
+
* @maxLength 150
|
|
285
|
+
*/
|
|
286
|
+
eventType?: string;
|
|
287
|
+
/** The identification type and identity data. */
|
|
288
|
+
identity?: IdentificationData;
|
|
289
|
+
/** Stringify payload. */
|
|
290
|
+
data?: string;
|
|
291
|
+
/** Details related to the account */
|
|
292
|
+
accountInfo?: AccountInfo;
|
|
293
|
+
}
|
|
294
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
295
|
+
/**
|
|
296
|
+
* ID of a site visitor that has not logged in to the site.
|
|
297
|
+
* @format GUID
|
|
298
|
+
*/
|
|
299
|
+
anonymousVisitorId?: string;
|
|
300
|
+
/**
|
|
301
|
+
* ID of a site visitor that has logged in to the site.
|
|
302
|
+
* @format GUID
|
|
303
|
+
*/
|
|
304
|
+
memberId?: string;
|
|
305
|
+
/**
|
|
306
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
307
|
+
* @format GUID
|
|
308
|
+
*/
|
|
309
|
+
wixUserId?: string;
|
|
310
|
+
/**
|
|
311
|
+
* ID of an app.
|
|
312
|
+
* @format GUID
|
|
313
|
+
*/
|
|
314
|
+
appId?: string;
|
|
315
|
+
/** @readonly */
|
|
316
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
317
|
+
}
|
|
318
|
+
/** @oneof */
|
|
319
|
+
interface IdentificationDataIdOneOf {
|
|
320
|
+
/**
|
|
321
|
+
* ID of a site visitor that has not logged in to the site.
|
|
322
|
+
* @format GUID
|
|
323
|
+
*/
|
|
324
|
+
anonymousVisitorId?: string;
|
|
325
|
+
/**
|
|
326
|
+
* ID of a site visitor that has logged in to the site.
|
|
327
|
+
* @format GUID
|
|
328
|
+
*/
|
|
329
|
+
memberId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
332
|
+
* @format GUID
|
|
333
|
+
*/
|
|
334
|
+
wixUserId?: string;
|
|
335
|
+
/**
|
|
336
|
+
* ID of an app.
|
|
337
|
+
* @format GUID
|
|
338
|
+
*/
|
|
339
|
+
appId?: string;
|
|
340
|
+
}
|
|
341
|
+
declare enum WebhookIdentityType {
|
|
342
|
+
UNKNOWN = "UNKNOWN",
|
|
343
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
344
|
+
MEMBER = "MEMBER",
|
|
345
|
+
WIX_USER = "WIX_USER",
|
|
346
|
+
APP = "APP"
|
|
347
|
+
}
|
|
348
|
+
/** @enumType */
|
|
349
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
350
|
+
interface AccountInfo {
|
|
351
|
+
/**
|
|
352
|
+
* ID of the Wix account associated with the event.
|
|
353
|
+
* @format GUID
|
|
354
|
+
*/
|
|
355
|
+
accountId?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
358
|
+
* @format GUID
|
|
359
|
+
*/
|
|
360
|
+
parentAccountId?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
363
|
+
* @format GUID
|
|
364
|
+
*/
|
|
365
|
+
siteId?: string | null;
|
|
366
|
+
}
|
|
367
|
+
interface CreateProjectRequest {
|
|
368
|
+
/** Project to be created. */
|
|
369
|
+
project: Project;
|
|
370
|
+
}
|
|
371
|
+
interface CreateProjectResponse {
|
|
372
|
+
/** The created Project. */
|
|
373
|
+
project?: Project;
|
|
374
|
+
}
|
|
375
|
+
interface GetProjectRequest {
|
|
376
|
+
/**
|
|
377
|
+
* ID of the Project to retrieve.
|
|
378
|
+
* @format GUID
|
|
379
|
+
*/
|
|
380
|
+
projectId: string;
|
|
381
|
+
}
|
|
382
|
+
interface GetProjectResponse {
|
|
383
|
+
/** The requested Project. */
|
|
384
|
+
project?: Project;
|
|
385
|
+
}
|
|
386
|
+
interface UpdateProjectRequest {
|
|
387
|
+
/** Project to be updated, may be partial. */
|
|
388
|
+
project: Project;
|
|
389
|
+
/**
|
|
390
|
+
* Set of fields to update.
|
|
391
|
+
* @internal
|
|
392
|
+
*/
|
|
393
|
+
fieldMask?: string[];
|
|
394
|
+
}
|
|
395
|
+
interface UpdateProjectResponse {
|
|
396
|
+
/** Updated Project. */
|
|
397
|
+
project?: Project;
|
|
398
|
+
}
|
|
399
|
+
interface DeleteProjectRequest {
|
|
400
|
+
/**
|
|
401
|
+
* Id of the Project to delete.
|
|
402
|
+
* @format GUID
|
|
403
|
+
*/
|
|
404
|
+
projectId: string;
|
|
405
|
+
}
|
|
406
|
+
interface DeleteProjectResponse {
|
|
407
|
+
}
|
|
408
|
+
interface StartProjectRequest {
|
|
409
|
+
/**
|
|
410
|
+
* ID of the Project to start.
|
|
411
|
+
* @format GUID
|
|
412
|
+
*/
|
|
413
|
+
projectId?: string;
|
|
414
|
+
}
|
|
415
|
+
interface StartProjectResponse {
|
|
416
|
+
/** The Project for which start was requested. */
|
|
417
|
+
project?: Project;
|
|
418
|
+
}
|
|
419
|
+
interface ResumeProjectRequest {
|
|
420
|
+
/**
|
|
421
|
+
* ID of the Project to resume.
|
|
422
|
+
* @format GUID
|
|
423
|
+
*/
|
|
424
|
+
projectId: string;
|
|
425
|
+
}
|
|
426
|
+
interface ResumeProjectResponse {
|
|
427
|
+
/** The Project for which resume was requested. */
|
|
428
|
+
project?: Project;
|
|
429
|
+
}
|
|
430
|
+
interface RegenerateProjectNameRequest {
|
|
431
|
+
/**
|
|
432
|
+
* ID of the Project to generate a new name for.
|
|
433
|
+
* @format GUID
|
|
434
|
+
*/
|
|
435
|
+
projectId: string;
|
|
436
|
+
/**
|
|
437
|
+
* The user's free-text renaming instruction, passed to the name-generation prompt.
|
|
438
|
+
* @maxLength 4000
|
|
439
|
+
*/
|
|
440
|
+
prompt: string;
|
|
441
|
+
}
|
|
442
|
+
interface RegenerateProjectNameResponse {
|
|
443
|
+
/**
|
|
444
|
+
* The generated display name, at most 30 characters. Not persisted.
|
|
445
|
+
* @maxLength 30
|
|
446
|
+
*/
|
|
447
|
+
name?: string;
|
|
448
|
+
}
|
|
449
|
+
interface RegenerateProjectIconRequest {
|
|
450
|
+
/**
|
|
451
|
+
* ID of the Project to generate a new icon for.
|
|
452
|
+
* @format GUID
|
|
453
|
+
*/
|
|
454
|
+
projectId: string;
|
|
455
|
+
/**
|
|
456
|
+
* The user's free-text icon instruction, passed to the icon-generation prompt.
|
|
457
|
+
* @maxLength 4000
|
|
458
|
+
*/
|
|
459
|
+
prompt: string;
|
|
460
|
+
}
|
|
461
|
+
interface RegenerateProjectIconResponse {
|
|
462
|
+
/**
|
|
463
|
+
* The generated icon URL. Not persisted.
|
|
464
|
+
* @format WEB_URL
|
|
465
|
+
*/
|
|
466
|
+
iconUrl?: string;
|
|
467
|
+
}
|
|
468
|
+
interface ListProjectsForCurrentUserRequest {
|
|
469
|
+
/** Cursor paging options. */
|
|
470
|
+
paging?: CursorPaging;
|
|
471
|
+
}
|
|
472
|
+
interface CursorPaging {
|
|
473
|
+
/**
|
|
474
|
+
* Maximum number of items to return in the results.
|
|
475
|
+
* @max 100
|
|
476
|
+
*/
|
|
477
|
+
limit?: number | null;
|
|
478
|
+
/**
|
|
479
|
+
* Pointer to the next or previous page in the list of results.
|
|
480
|
+
*
|
|
481
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
482
|
+
* Not relevant for the first request.
|
|
483
|
+
* @maxLength 16000
|
|
484
|
+
*/
|
|
485
|
+
cursor?: string | null;
|
|
486
|
+
}
|
|
487
|
+
interface ListProjectsForCurrentUserResponse {
|
|
488
|
+
/** Projects owned by the current user. */
|
|
489
|
+
projects?: Project[];
|
|
490
|
+
/** Paging metadata for cursor-based pagination. */
|
|
491
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
492
|
+
}
|
|
493
|
+
interface CursorPagingMetadata {
|
|
494
|
+
/** Number of items returned in current page. */
|
|
495
|
+
count?: number | null;
|
|
496
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
497
|
+
cursors?: Cursors;
|
|
498
|
+
/**
|
|
499
|
+
* Whether there are more pages to retrieve following the current page.
|
|
500
|
+
*
|
|
501
|
+
* + `true`: Another page of results can be retrieved.
|
|
502
|
+
* + `false`: This is the last page.
|
|
503
|
+
*/
|
|
504
|
+
hasNext?: boolean | null;
|
|
505
|
+
}
|
|
506
|
+
interface Cursors {
|
|
507
|
+
/**
|
|
508
|
+
* Cursor string pointing to the next page in the list of results.
|
|
509
|
+
* @maxLength 16000
|
|
510
|
+
*/
|
|
511
|
+
next?: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* Cursor pointing to the previous page in the list of results.
|
|
514
|
+
* @maxLength 16000
|
|
515
|
+
*/
|
|
516
|
+
prev?: string | null;
|
|
517
|
+
}
|
|
518
|
+
interface SaveProjectDesignRequest {
|
|
519
|
+
/**
|
|
520
|
+
* Project whose design is being saved. The caller must own it.
|
|
521
|
+
* @format GUID
|
|
522
|
+
*/
|
|
523
|
+
projectId: string;
|
|
524
|
+
/**
|
|
525
|
+
* The Himalaya release ID currently displayed by the client. The saved draft branches from
|
|
526
|
+
* exactly this release, even when a newer release exists for the app.
|
|
527
|
+
* @maxLength 100
|
|
528
|
+
*/
|
|
529
|
+
baseReleaseId: string;
|
|
530
|
+
/**
|
|
531
|
+
* The complete edited design-token document, as a JSON object string — not a flattened set of
|
|
532
|
+
* preview overrides. The caller is responsible for preserving unknown groups and light/dark
|
|
533
|
+
* values it did not change.
|
|
534
|
+
* @maxLength 65536
|
|
535
|
+
*/
|
|
536
|
+
tokensJson: string;
|
|
537
|
+
/**
|
|
538
|
+
* Short-lived, app-scoped Himalaya control credential the client obtained from Himalaya's owner
|
|
539
|
+
* embed-token endpoint. Forwarded to Himalaya for this call only — never logged, persisted, or
|
|
540
|
+
* echoed back in any response, error, or event.
|
|
541
|
+
*
|
|
542
|
+
* The app this call writes to is NOT taken from this request. It is composed from the owner
|
|
543
|
+
* prefix this credential carries plus project_id; see HimalayaAppSlug.
|
|
544
|
+
* @maxLength 4096
|
|
545
|
+
*/
|
|
546
|
+
himalayaControlToken: string;
|
|
547
|
+
}
|
|
548
|
+
interface SaveProjectDesignResponse {
|
|
549
|
+
/**
|
|
550
|
+
* The saved draft release. Always a draft, so the app's live release is untouched.
|
|
551
|
+
* @maxLength 100
|
|
552
|
+
*/
|
|
553
|
+
himalayaReleaseId?: string;
|
|
554
|
+
/**
|
|
555
|
+
* Short-lived credential for previewing the saved draft release. Response-only: never persisted
|
|
556
|
+
* or placed in a preview URL by this service.
|
|
557
|
+
* @maxLength 4096
|
|
558
|
+
*/
|
|
559
|
+
previewToken?: string;
|
|
560
|
+
/** When preview_token expires. */
|
|
561
|
+
previewTokenExpiresAt?: Date | null;
|
|
562
|
+
}
|
|
563
|
+
interface ListProjectsRequest {
|
|
564
|
+
/** Cursor paging options. */
|
|
565
|
+
paging?: CursorPaging;
|
|
566
|
+
}
|
|
567
|
+
interface ListProjectsResponse {
|
|
568
|
+
/** Projects in the current site. */
|
|
569
|
+
projects?: Project[];
|
|
570
|
+
/** Paging metadata for cursor-based pagination. */
|
|
571
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
575
|
+
getUrl: (context: any) => string;
|
|
576
|
+
httpMethod: K;
|
|
577
|
+
path: string;
|
|
578
|
+
pathParams: M;
|
|
579
|
+
__requestType: T;
|
|
580
|
+
__originalRequestType: S;
|
|
581
|
+
__responseType: Q;
|
|
582
|
+
__originalResponseType: R;
|
|
583
|
+
};
|
|
584
|
+
declare function createProject(): __PublicMethodMetaInfo<'POST', {}, CreateProjectRequest$1, CreateProjectRequest, CreateProjectResponse$1, CreateProjectResponse>;
|
|
585
|
+
declare function getProject(): __PublicMethodMetaInfo<'GET', {
|
|
586
|
+
projectId: string;
|
|
587
|
+
}, GetProjectRequest$1, GetProjectRequest, GetProjectResponse$1, GetProjectResponse>;
|
|
588
|
+
declare function updateProject(): __PublicMethodMetaInfo<'PATCH', {
|
|
589
|
+
projectId: string;
|
|
590
|
+
}, UpdateProjectRequest$1, UpdateProjectRequest, UpdateProjectResponse$1, UpdateProjectResponse>;
|
|
591
|
+
declare function deleteProject(): __PublicMethodMetaInfo<'DELETE', {
|
|
592
|
+
projectId: string;
|
|
593
|
+
}, DeleteProjectRequest$1, DeleteProjectRequest, DeleteProjectResponse$1, DeleteProjectResponse>;
|
|
594
|
+
declare function resumeProject(): __PublicMethodMetaInfo<'POST', {
|
|
595
|
+
projectId: string;
|
|
596
|
+
}, ResumeProjectRequest$1, ResumeProjectRequest, ResumeProjectResponse$1, ResumeProjectResponse>;
|
|
597
|
+
declare function regenerateProjectName(): __PublicMethodMetaInfo<'POST', {
|
|
598
|
+
projectId: string;
|
|
599
|
+
}, RegenerateProjectNameRequest$1, RegenerateProjectNameRequest, RegenerateProjectNameResponse$1, RegenerateProjectNameResponse>;
|
|
600
|
+
declare function regenerateProjectIcon(): __PublicMethodMetaInfo<'POST', {
|
|
601
|
+
projectId: string;
|
|
602
|
+
}, RegenerateProjectIconRequest$1, RegenerateProjectIconRequest, RegenerateProjectIconResponse$1, RegenerateProjectIconResponse>;
|
|
603
|
+
declare function saveProjectDesign(): __PublicMethodMetaInfo<'POST', {
|
|
604
|
+
projectId: string;
|
|
605
|
+
}, SaveProjectDesignRequest$1, SaveProjectDesignRequest, SaveProjectDesignResponse$1, SaveProjectDesignResponse>;
|
|
606
|
+
declare function listProjects(): __PublicMethodMetaInfo<'GET', {}, ListProjectsRequest$1, ListProjectsRequest, ListProjectsResponse$1, ListProjectsResponse>;
|
|
607
|
+
|
|
608
|
+
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 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, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, resumeProject, saveProjectDesign, updateProject };
|