@wix/auto_sdk_containers_projects 1.0.1 → 1.0.3

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.
@@ -1,616 +1,53 @@
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 {
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, 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, 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 {
410
7
  /**
411
- * The generated icon URL. Not persisted.
412
- * @format WEB_URL
8
+ * Retrieves a Project by ID.
9
+ * @param - ID of the Project to retrieve.
10
+ * @returns The requested Project.
413
11
  */
414
- iconUrl?: string;
12
+ (projectId: string): Promise<NonNullablePaths<Project, `name` | `status` | `sandboxStatus` | `metaSiteIds` | `platform`, 0>>;
415
13
  }
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;
14
+ declare function resumeProject$1(httpClient: HttpClient): ResumeProjectSignature;
15
+ interface ResumeProjectSignature {
426
16
  /**
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
17
+ * Requests Project resume by starting or reusing its configured remote machine asynchronously.
18
+ * @param - ID of the Project to resume.
432
19
  */
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;
20
+ (projectId: string): Promise<NonNullablePaths<ResumeProjectResponse, `project.name` | `project.status` | `project.sandboxStatus` | `project.metaSiteIds` | `project.platform`, 1>>;
440
21
  }
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;
22
+ declare function saveProjectDesign$1(httpClient: HttpClient): SaveProjectDesignSignature;
23
+ interface SaveProjectDesignSignature {
446
24
  /**
447
- * Whether there are more pages to retrieve following the current page.
25
+ * Persists a complete design-token document as a new Himalaya draft release, branched from the
26
+ * release the client currently has displayed.
448
27
  *
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
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 nothing on our side: this creates no entity and posts no
31
+ * chat checkpoint.
32
+ * @param - Project whose design is being saved. The caller must own it.
33
+ * @param - The Himalaya release ID currently displayed by the client. The saved draft branches from
474
34
  * 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
35
  */
590
- appIconUrl?: string | null;
36
+ (projectId: string, baseReleaseId: string, options?: NonNullablePaths<SaveProjectDesignOptions, `himalayaControlToken` | `tokensJson`, 0>): Promise<NonNullablePaths<SaveProjectDesignResponse, `himalayaReleaseId` | `previewToken`, 0>>;
591
37
  }
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;
38
+ declare function getHimalayaAuthorization$1(httpClient: HttpClient): GetHimalayaAuthorizationSignature;
39
+ interface GetHimalayaAuthorizationSignature {
600
40
  /**
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
41
+ * Repeats authenticated Himalaya authorization for the current collaborator. This response is
42
+ * a capability check only; every worker/design mutation performs a fresh check.
43
+ * @param - Site-tenanted Containers project being authorized.
608
44
  */
609
- himalayaControlToken: string;
610
- }
611
- interface ListProjectsOptions {
612
- /** Cursor paging options. */
613
- paging?: CursorPaging;
45
+ (projectId: string): Promise<NonNullablePaths<GetHimalayaAuthorizationResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp` | `workerLaunch` | `saveDesign`, 0>>;
614
46
  }
615
47
 
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 };
48
+ declare const getProject: MaybeContext<BuildRESTFunction<typeof getProject$1> & typeof getProject$1>;
49
+ declare const resumeProject: MaybeContext<BuildRESTFunction<typeof resumeProject$1> & typeof resumeProject$1>;
50
+ declare const saveProjectDesign: MaybeContext<BuildRESTFunction<typeof saveProjectDesign$1> & typeof saveProjectDesign$1>;
51
+ declare const getHimalayaAuthorization: MaybeContext<BuildRESTFunction<typeof getHimalayaAuthorization$1> & typeof getHimalayaAuthorization$1>;
52
+
53
+ export { GetHimalayaAuthorizationResponse, Project, ResumeProjectResponse, SaveProjectDesignOptions, SaveProjectDesignResponse, getHimalayaAuthorization, getProject, resumeProject, saveProjectDesign };