@wix/auto_sdk_containers_projects 1.0.7 → 1.0.9

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.
@@ -72,7 +72,7 @@ interface Project {
72
72
  * Platform that the project's app targets. Set when the project is created and can't be changed.
73
73
  * @immutable
74
74
  */
75
- platform?: PlatformWithLiterals;
75
+ platform?: V1PlatformWithLiterals;
76
76
  /**
77
77
  * URL of the app's icon.
78
78
  * @maxLength 2000
@@ -112,7 +112,7 @@ declare enum SandboxStatus {
112
112
  }
113
113
  /** @enumType */
114
114
  type SandboxStatusWithLiterals = SandboxStatus | 'NONE' | 'CREATING';
115
- declare enum Platform {
115
+ declare enum V1Platform {
116
116
  /** Native iOS app. Used by older projects. */
117
117
  IOS = "IOS",
118
118
  /** Native Android app. Used by older projects. */
@@ -124,7 +124,7 @@ declare enum Platform {
124
124
  HIMALAYA_MOBILE = "HIMALAYA_MOBILE"
125
125
  }
126
126
  /** @enumType */
127
- type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID' | 'HIMALAYA_MOBILE';
127
+ type V1PlatformWithLiterals = V1Platform | 'IOS' | 'ANDROID' | 'HIMALAYA_MOBILE';
128
128
  /** Details of a request to start a project's remote development environment. */
129
129
  interface ProjectStartRequested {
130
130
  /**
@@ -155,6 +155,588 @@ interface ProjectPlanReady {
155
155
  */
156
156
  conversationId?: string;
157
157
  }
158
+ interface GetAgentExperimentsRequest {
159
+ /**
160
+ * Project in the authenticated caller's SITE tenant.
161
+ * @format GUID
162
+ */
163
+ projectId?: string;
164
+ }
165
+ interface GetAgentExperimentsResponse {
166
+ /** Full typed outcomes for the fixed appsmith-agent scope, including unsuccessful conduction. */
167
+ result?: ConductByScopesResponse;
168
+ }
169
+ interface ConductByScopesResponse {
170
+ /** the result of each scope by scope id */
171
+ scopeToResult?: Record<string, ConductByScopeResponse>;
172
+ }
173
+ interface ConductByScopeResponse {
174
+ /** map of experiment id to conduction result */
175
+ experimentToConductionResult?: Record<string, ConductionResult>;
176
+ }
177
+ /**
178
+ * The result of conducting an experiment: the resolved variant and the outcome status.
179
+ * Mirrors conductor.library.src.ConductionResult.
180
+ */
181
+ interface ConductionResult {
182
+ /** The result variant e.g. A, B, C, ... Z */
183
+ variant?: VariantWithLiterals;
184
+ /** Extra information about the conduction, e.g. successful or failed with reason */
185
+ status?: ConductionStatus;
186
+ }
187
+ /** The resolved variant (A=Control, B-Z=Treatment). Mirrors conductor.result.Variants. */
188
+ declare enum Variant {
189
+ VARIANT_UNSPECIFIED = "VARIANT_UNSPECIFIED",
190
+ A = "A",
191
+ B = "B",
192
+ C = "C",
193
+ D = "D",
194
+ E = "E",
195
+ F = "F",
196
+ G = "G",
197
+ H = "H",
198
+ I = "I",
199
+ J = "J",
200
+ K = "K",
201
+ L = "L",
202
+ M = "M",
203
+ N = "N",
204
+ O = "O",
205
+ P = "P",
206
+ Q = "Q",
207
+ R = "R",
208
+ S = "S",
209
+ T = "T",
210
+ U = "U",
211
+ V = "V",
212
+ W = "W",
213
+ X = "X",
214
+ Y = "Y",
215
+ Z = "Z"
216
+ }
217
+ /** @enumType */
218
+ type VariantWithLiterals = Variant | 'VARIANT_UNSPECIFIED' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
219
+ /**
220
+ * Represents the status of a conduction result.
221
+ * This can be either a successful result or a specific type of failure, detailing the reason for the failure.
222
+ */
223
+ interface ConductionStatus extends ConductionStatusStatusOneOf {
224
+ /** Indicates a successful conduction with optional target group information */
225
+ successfulResult?: SuccessfulResult;
226
+ /** Indicates that a required seed value is missing */
227
+ missingSeed?: MissingSeed;
228
+ /** Indicates an error occurred while trying to filter based on populations */
229
+ populationError?: PopulationError;
230
+ /** Represents a general exception that occurred during conduction */
231
+ conductionException?: ConductionException;
232
+ /** Indicates that a required seed type is missing */
233
+ missingSeedType?: MissingSeedType;
234
+ /** Indicates that a required seed key type is missing */
235
+ missingSeedKeyType?: MissingSeedKeyType;
236
+ /** Indicates that no experiment with the given ID was found */
237
+ missingExperimentId?: MissingExperimentId;
238
+ /** Indicates a failure to fetch the experiment */
239
+ failedToFetchExperiment?: FailedToFetchExperiment;
240
+ /** Indicates that necessary plugins are missing for conduction */
241
+ missingPlugins?: MissingPlugins;
242
+ /** Indicates that the randomization process failed */
243
+ failedToRunToss?: FailedToRunToss;
244
+ /** Indicates that no eligible filter was found during evaluation */
245
+ didNotFindEligibleFilter?: DidNotFindEligibleFilter;
246
+ /** Indicates that a filter used in target groups is not supported */
247
+ filterNotSupported?: FilterNotSupported;
248
+ /** Indicates that a filter used in target groups is not implemented */
249
+ filterNotImplemented?: FilterNotImplemented;
250
+ /** Indicates that the user did not provide a required key in additional data */
251
+ additionalDataFilterMissingKey?: AdditionalDataFilterMissingKey;
252
+ /** Indicates that an additional data filter must have some key */
253
+ additionalDataFilterMustHaveKey?: AdditionalDataFilterMustHaveKey;
254
+ /** Indicates a type mismatch in additional data used by a filter */
255
+ additionalDataFilterMismatchType?: AdditionalDataFilterMismatchType;
256
+ /** Indicates that an additional filter cannot be empty */
257
+ additionalFilterCantBeEmpty?: AdditionalFilterCantBeEmpty;
258
+ /** Indicates that one or more filter operands are empty */
259
+ filterOperandEmpty?: FilterOperandEmpty;
260
+ /** Indicates that information required for evaluating filters is missing */
261
+ missingFilterTarget?: MissingFilterTarget;
262
+ /** Represents a general error during conduction */
263
+ generalError?: GeneralError;
264
+ /** Indicates an error occurred while trying to extract an element from context for the purpose of filtering by bi-profile service */
265
+ missingElementInContextForBiProfileError?: MissingElementInContextForBiProfileError;
266
+ /** Indicates that an additional data was provided a missing value */
267
+ additionalDataMissingValue?: AdditionalDataMissingValue;
268
+ /** Indicates that library configuration is invalid */
269
+ invalidLibraryConfiguration?: InvalidLibraryConfiguration;
270
+ /** Indicates that the conduction produced no result for this experiment */
271
+ noResultForConduction?: NoResultForConduction;
272
+ }
273
+ /** @oneof */
274
+ interface ConductionStatusStatusOneOf {
275
+ /** Indicates a successful conduction with optional target group information */
276
+ successfulResult?: SuccessfulResult;
277
+ /** Indicates that a required seed value is missing */
278
+ missingSeed?: MissingSeed;
279
+ /** Indicates an error occurred while trying to filter based on populations */
280
+ populationError?: PopulationError;
281
+ /** Represents a general exception that occurred during conduction */
282
+ conductionException?: ConductionException;
283
+ /** Indicates that a required seed type is missing */
284
+ missingSeedType?: MissingSeedType;
285
+ /** Indicates that a required seed key type is missing */
286
+ missingSeedKeyType?: MissingSeedKeyType;
287
+ /** Indicates that no experiment with the given ID was found */
288
+ missingExperimentId?: MissingExperimentId;
289
+ /** Indicates a failure to fetch the experiment */
290
+ failedToFetchExperiment?: FailedToFetchExperiment;
291
+ /** Indicates that necessary plugins are missing for conduction */
292
+ missingPlugins?: MissingPlugins;
293
+ /** Indicates that the randomization process failed */
294
+ failedToRunToss?: FailedToRunToss;
295
+ /** Indicates that no eligible filter was found during evaluation */
296
+ didNotFindEligibleFilter?: DidNotFindEligibleFilter;
297
+ /** Indicates that a filter used in target groups is not supported */
298
+ filterNotSupported?: FilterNotSupported;
299
+ /** Indicates that a filter used in target groups is not implemented */
300
+ filterNotImplemented?: FilterNotImplemented;
301
+ /** Indicates that the user did not provide a required key in additional data */
302
+ additionalDataFilterMissingKey?: AdditionalDataFilterMissingKey;
303
+ /** Indicates that an additional data filter must have some key */
304
+ additionalDataFilterMustHaveKey?: AdditionalDataFilterMustHaveKey;
305
+ /** Indicates a type mismatch in additional data used by a filter */
306
+ additionalDataFilterMismatchType?: AdditionalDataFilterMismatchType;
307
+ /** Indicates that an additional filter cannot be empty */
308
+ additionalFilterCantBeEmpty?: AdditionalFilterCantBeEmpty;
309
+ /** Indicates that one or more filter operands are empty */
310
+ filterOperandEmpty?: FilterOperandEmpty;
311
+ /** Indicates that information required for evaluating filters is missing */
312
+ missingFilterTarget?: MissingFilterTarget;
313
+ /** Represents a general error during conduction */
314
+ generalError?: GeneralError;
315
+ /** Indicates an error occurred while trying to extract an element from context for the purpose of filtering by bi-profile service */
316
+ missingElementInContextForBiProfileError?: MissingElementInContextForBiProfileError;
317
+ /** Indicates that an additional data was provided a missing value */
318
+ additionalDataMissingValue?: AdditionalDataMissingValue;
319
+ /** Indicates that library configuration is invalid */
320
+ invalidLibraryConfiguration?: InvalidLibraryConfiguration;
321
+ /** Indicates that the conduction produced no result for this experiment */
322
+ noResultForConduction?: NoResultForConduction;
323
+ }
324
+ /** Indicates a successful conduction */
325
+ interface SuccessfulResult {
326
+ /**
327
+ * Optional key representing the target group which matched with the caller's identity
328
+ * @maxLength 5000
329
+ */
330
+ targetGroupKey?: string;
331
+ }
332
+ /** Indicates that a required seed value is missing */
333
+ interface MissingSeed {
334
+ /**
335
+ * The name of the missing seed
336
+ * @maxLength 5000
337
+ */
338
+ seed?: string;
339
+ }
340
+ /** Indicates an error occurred while trying to filter based on populations */
341
+ interface PopulationError {
342
+ /**
343
+ * The serialized error message that occurred
344
+ * @maxLength 5000
345
+ */
346
+ error?: string;
347
+ /**
348
+ * The list of population IDs involved in the error
349
+ * @maxLength 5000
350
+ * @maxSize 5000
351
+ */
352
+ populationIds?: string[];
353
+ }
354
+ /** Represents a general exception that occurred during conduction */
355
+ interface ConductionException {
356
+ /**
357
+ * The serialized exception message
358
+ * @maxLength 5000
359
+ */
360
+ error?: string;
361
+ }
362
+ /** Indicates that a required seed type is missing */
363
+ interface MissingSeedType {
364
+ }
365
+ /** Indicates that a required seed key type is missing */
366
+ interface MissingSeedKeyType {
367
+ }
368
+ /** Indicates that no experiment with the given ID was found */
369
+ interface MissingExperimentId {
370
+ }
371
+ /** Indicates a failure to fetch the experiment */
372
+ interface FailedToFetchExperiment {
373
+ /**
374
+ * The serialized error message encountered while fetching
375
+ * @maxLength 5000
376
+ */
377
+ error?: string;
378
+ }
379
+ /** Indicates that necessary plugins are missing for conduction */
380
+ interface MissingPlugins {
381
+ }
382
+ /** Indicates that the randomization process failed */
383
+ interface FailedToRunToss {
384
+ }
385
+ /** Indicates that no eligible filter was found during evaluation */
386
+ interface DidNotFindEligibleFilter {
387
+ }
388
+ /** Indicates that a filter used in target groups is not supported */
389
+ interface FilterNotSupported {
390
+ }
391
+ /** Indicates that a filter used in target groups is not implemented */
392
+ interface FilterNotImplemented {
393
+ }
394
+ /** Indicates that the user did not provide a required key in additional data */
395
+ interface AdditionalDataFilterMissingKey {
396
+ /**
397
+ * The missing key in the additional data
398
+ * @maxLength 5000
399
+ */
400
+ key?: string;
401
+ }
402
+ /** Indicates that an additional data filter must have some key */
403
+ interface AdditionalDataFilterMustHaveKey {
404
+ }
405
+ /** Indicates a type mismatch in additional data used by a filter */
406
+ interface AdditionalDataFilterMismatchType {
407
+ }
408
+ /** Indicates that an additional filter cannot be empty */
409
+ interface AdditionalFilterCantBeEmpty {
410
+ }
411
+ /** Indicates that one or more filter operands are empty */
412
+ interface FilterOperandEmpty {
413
+ }
414
+ /** Indicates that information required for evaluating filters is missing */
415
+ interface MissingFilterTarget {
416
+ /**
417
+ * The type of filter that's missing its target
418
+ * @maxLength 5000
419
+ */
420
+ filterType?: string;
421
+ }
422
+ /** Represents a general error during conduction */
423
+ interface GeneralError {
424
+ /**
425
+ * The serialized error message
426
+ * @maxLength 5000
427
+ */
428
+ error?: string;
429
+ }
430
+ /** Indicates an error occurred while trying to extract an element from context for the purpose of filtering by bi-profile service */
431
+ interface MissingElementInContextForBiProfileError {
432
+ /**
433
+ * The specific type of element in the bi-profile filter that was being attempted to be extracted from the context
434
+ * @maxLength 100
435
+ */
436
+ biProfileType?: string;
437
+ }
438
+ /** Indicates that an additional data was provided a missing value */
439
+ interface AdditionalDataMissingValue {
440
+ /**
441
+ * The key that was missing a value
442
+ * @maxLength 5000
443
+ */
444
+ key?: string;
445
+ }
446
+ /** Indicates that library configuration is invalid */
447
+ interface InvalidLibraryConfiguration {
448
+ /**
449
+ * The reason why the configuration is invalid
450
+ * @maxLength 5000
451
+ */
452
+ reason?: string;
453
+ }
454
+ /** Indicates that the conduction produced no result for this experiment */
455
+ interface NoResultForConduction {
456
+ }
457
+ interface GetAgentConfigRequest {
458
+ /**
459
+ * Project in the authenticated caller's SITE tenant.
460
+ * @format GUID
461
+ */
462
+ projectId?: string;
463
+ }
464
+ interface GetAgentConfigResponse {
465
+ /** Full typed AppSmithSandboxAgent result; unsuccessful evaluation is not a successful default. */
466
+ result?: ConductResponse;
467
+ }
468
+ interface ConductResponse {
469
+ /** The result of conducting the dynamic config */
470
+ dynamicConfigResult?: DynamicConfigConductionResult;
471
+ }
472
+ interface DynamicConfigConductionResult {
473
+ /** The conducted value. A dynamic config's fields arrive in `struct_value` */
474
+ value?: VariantValue;
475
+ /**
476
+ * Provides additional information about the outcome of this dynamic config, so one failure
477
+ * does not obscure the rest of the scope
478
+ */
479
+ status?: DynamicConfigStatus;
480
+ }
481
+ interface VariantValue extends VariantValueValueOneOf {
482
+ intValue?: number;
483
+ strValue?: string;
484
+ booleanValue?: boolean;
485
+ timestampValue?: Date | null;
486
+ structValue?: Record<string, any> | null;
487
+ }
488
+ /** @oneof */
489
+ interface VariantValueValueOneOf {
490
+ intValue?: number;
491
+ strValue?: string;
492
+ booleanValue?: boolean;
493
+ timestampValue?: Date | null;
494
+ structValue?: Record<string, any> | null;
495
+ }
496
+ /** Represents the status of a dynamic config IsEnabled evaluation result. */
497
+ interface DynamicConfigStatus extends DynamicConfigStatusStatusOneOf {
498
+ /** Indicates a successful evaluation with optional target group information */
499
+ successfulResult?: V1SuccessfulResult;
500
+ /** Indicates that a required seed value is missing */
501
+ missingSeed?: V1MissingSeed;
502
+ /** Indicates an error occurred while trying to filter based on populations */
503
+ populationError?: V1PopulationError;
504
+ /** Represents a general exception that occurred during evaluation */
505
+ conductionException?: V1ConductionException;
506
+ /** Indicates that a required seed type is missing */
507
+ missingSeedType?: V1MissingSeedType;
508
+ /** Indicates that a required seed key type is missing */
509
+ missingSeedKeyType?: V1MissingSeedKeyType;
510
+ /** Indicates that no dynamic config with the given ID was found */
511
+ missingExperimentId?: V1MissingExperimentId;
512
+ /** Indicates a failure to fetch the dynamic config */
513
+ failedToFetchExperiment?: V1FailedToFetchExperiment;
514
+ /** Indicates that necessary plugins are missing for evaluation */
515
+ missingPlugins?: V1MissingPlugins;
516
+ /** Indicates that the randomization process failed */
517
+ failedToRunToss?: V1FailedToRunToss;
518
+ /** Indicates that no eligible filter was found during evaluation */
519
+ didNotFindEligibleFilter?: V1DidNotFindEligibleFilter;
520
+ /** Indicates that a filter used in target groups is not supported */
521
+ filterNotSupported?: V1FilterNotSupported;
522
+ /** Indicates that a filter used in target groups is not implemented */
523
+ filterNotImplemented?: V1FilterNotImplemented;
524
+ /** Indicates that the user did not provide a required key in additional data */
525
+ additionalDataFilterMissingKey?: V1AdditionalDataFilterMissingKey;
526
+ /** Indicates that an additional data filter must have some key */
527
+ additionalDataFilterMustHaveKey?: V1AdditionalDataFilterMustHaveKey;
528
+ /** Indicates a type mismatch in additional data used by a filter */
529
+ additionalDataFilterMismatchType?: V1AdditionalDataFilterMismatchType;
530
+ /** Indicates that an additional filter cannot be empty */
531
+ additionalFilterCantBeEmpty?: V1AdditionalFilterCantBeEmpty;
532
+ /** Indicates that one or more filter operands are empty */
533
+ filterOperandEmpty?: V1FilterOperandEmpty;
534
+ /** Indicates that information required for evaluating filters is missing */
535
+ missingFilterTarget?: V1MissingFilterTarget;
536
+ /** Represents a general error during evaluation */
537
+ generalError?: V1GeneralError;
538
+ /** Included for forward-compatibility; the DC library does not currently emit this */
539
+ noResultForConduction?: V1NoResultForConduction;
540
+ /** Indicates an error occurred while trying to extract an element from context for bi-profile filtering */
541
+ missingElementInContextForBiProfileError?: V1MissingElementInContextForBiProfileError;
542
+ /** Indicates that additional data was provided a missing value */
543
+ additionalDataMissingValue?: V1AdditionalDataMissingValue;
544
+ /** Indicates the preserved "isEnabled" field was not found in the dynamic config variant */
545
+ isEnabledFieldNotFound?: IsEnabledFieldNotFound;
546
+ /** Indicates the "isEnabled" field exists but is not of type Boolean */
547
+ isEnabledFieldNotOfTypeBoolean?: IsEnabledFieldNotOfTypeBoolean;
548
+ /** Indicates that this operation is not implemented by the library implementation */
549
+ notImplemented?: NotImplemented;
550
+ }
551
+ /** @oneof */
552
+ interface DynamicConfigStatusStatusOneOf {
553
+ /** Indicates a successful evaluation with optional target group information */
554
+ successfulResult?: V1SuccessfulResult;
555
+ /** Indicates that a required seed value is missing */
556
+ missingSeed?: V1MissingSeed;
557
+ /** Indicates an error occurred while trying to filter based on populations */
558
+ populationError?: V1PopulationError;
559
+ /** Represents a general exception that occurred during evaluation */
560
+ conductionException?: V1ConductionException;
561
+ /** Indicates that a required seed type is missing */
562
+ missingSeedType?: V1MissingSeedType;
563
+ /** Indicates that a required seed key type is missing */
564
+ missingSeedKeyType?: V1MissingSeedKeyType;
565
+ /** Indicates that no dynamic config with the given ID was found */
566
+ missingExperimentId?: V1MissingExperimentId;
567
+ /** Indicates a failure to fetch the dynamic config */
568
+ failedToFetchExperiment?: V1FailedToFetchExperiment;
569
+ /** Indicates that necessary plugins are missing for evaluation */
570
+ missingPlugins?: V1MissingPlugins;
571
+ /** Indicates that the randomization process failed */
572
+ failedToRunToss?: V1FailedToRunToss;
573
+ /** Indicates that no eligible filter was found during evaluation */
574
+ didNotFindEligibleFilter?: V1DidNotFindEligibleFilter;
575
+ /** Indicates that a filter used in target groups is not supported */
576
+ filterNotSupported?: V1FilterNotSupported;
577
+ /** Indicates that a filter used in target groups is not implemented */
578
+ filterNotImplemented?: V1FilterNotImplemented;
579
+ /** Indicates that the user did not provide a required key in additional data */
580
+ additionalDataFilterMissingKey?: V1AdditionalDataFilterMissingKey;
581
+ /** Indicates that an additional data filter must have some key */
582
+ additionalDataFilterMustHaveKey?: V1AdditionalDataFilterMustHaveKey;
583
+ /** Indicates a type mismatch in additional data used by a filter */
584
+ additionalDataFilterMismatchType?: V1AdditionalDataFilterMismatchType;
585
+ /** Indicates that an additional filter cannot be empty */
586
+ additionalFilterCantBeEmpty?: V1AdditionalFilterCantBeEmpty;
587
+ /** Indicates that one or more filter operands are empty */
588
+ filterOperandEmpty?: V1FilterOperandEmpty;
589
+ /** Indicates that information required for evaluating filters is missing */
590
+ missingFilterTarget?: V1MissingFilterTarget;
591
+ /** Represents a general error during evaluation */
592
+ generalError?: V1GeneralError;
593
+ /** Included for forward-compatibility; the DC library does not currently emit this */
594
+ noResultForConduction?: V1NoResultForConduction;
595
+ /** Indicates an error occurred while trying to extract an element from context for bi-profile filtering */
596
+ missingElementInContextForBiProfileError?: V1MissingElementInContextForBiProfileError;
597
+ /** Indicates that additional data was provided a missing value */
598
+ additionalDataMissingValue?: V1AdditionalDataMissingValue;
599
+ /** Indicates the preserved "isEnabled" field was not found in the dynamic config variant */
600
+ isEnabledFieldNotFound?: IsEnabledFieldNotFound;
601
+ /** Indicates the "isEnabled" field exists but is not of type Boolean */
602
+ isEnabledFieldNotOfTypeBoolean?: IsEnabledFieldNotOfTypeBoolean;
603
+ /** Indicates that this operation is not implemented by the library implementation */
604
+ notImplemented?: NotImplemented;
605
+ }
606
+ /** Indicates a successful dynamic config evaluation */
607
+ interface V1SuccessfulResult {
608
+ /**
609
+ * Optional key representing the target group which matched with the caller's identity
610
+ * @maxLength 5000
611
+ */
612
+ targetGroupKey?: string | null;
613
+ }
614
+ /** Indicates that a required seed value is missing */
615
+ interface V1MissingSeed {
616
+ /**
617
+ * The name of the missing seed
618
+ * @maxLength 5000
619
+ */
620
+ seed?: string | null;
621
+ }
622
+ /** Indicates an error occurred while trying to filter based on populations */
623
+ interface V1PopulationError {
624
+ /**
625
+ * The serialized error message that occurred
626
+ * @maxLength 5000
627
+ */
628
+ error?: string | null;
629
+ /**
630
+ * The list of population IDs involved in the error
631
+ * @maxLength 5000
632
+ * @maxSize 5000
633
+ */
634
+ populationIds?: string[] | null;
635
+ }
636
+ /** Represents a general exception that occurred during evaluation */
637
+ interface V1ConductionException {
638
+ /**
639
+ * The serialized exception message
640
+ * @maxLength 5000
641
+ */
642
+ error?: string | null;
643
+ }
644
+ /** Indicates that a required seed type is missing */
645
+ interface V1MissingSeedType {
646
+ }
647
+ /** Indicates that a required seed key type is missing */
648
+ interface V1MissingSeedKeyType {
649
+ }
650
+ /** Indicates that no dynamic config with the given ID was found */
651
+ interface V1MissingExperimentId {
652
+ }
653
+ /** Indicates a failure to fetch the dynamic config */
654
+ interface V1FailedToFetchExperiment {
655
+ /**
656
+ * The serialized error message encountered while fetching
657
+ * @maxLength 5000
658
+ */
659
+ error?: string | null;
660
+ }
661
+ /** Indicates that necessary plugins are missing for evaluation */
662
+ interface V1MissingPlugins {
663
+ }
664
+ /** Indicates that the randomization process failed */
665
+ interface V1FailedToRunToss {
666
+ }
667
+ /** Indicates that no eligible filter was found during evaluation */
668
+ interface V1DidNotFindEligibleFilter {
669
+ }
670
+ /** Indicates that a filter used in target groups is not supported */
671
+ interface V1FilterNotSupported {
672
+ }
673
+ /** Indicates that a filter used in target groups is not implemented */
674
+ interface V1FilterNotImplemented {
675
+ }
676
+ /** Indicates that the user did not provide a required key in additional data */
677
+ interface V1AdditionalDataFilterMissingKey {
678
+ /**
679
+ * The missing key in the additional data
680
+ * @maxLength 5000
681
+ */
682
+ key?: string | null;
683
+ }
684
+ /** Indicates that an additional data filter must have some key */
685
+ interface V1AdditionalDataFilterMustHaveKey {
686
+ }
687
+ /** Indicates a type mismatch in additional data used by a filter */
688
+ interface V1AdditionalDataFilterMismatchType {
689
+ }
690
+ /** Indicates that an additional filter cannot be empty */
691
+ interface V1AdditionalFilterCantBeEmpty {
692
+ }
693
+ /** Indicates that one or more filter operands are empty */
694
+ interface V1FilterOperandEmpty {
695
+ }
696
+ /** Indicates that information required for evaluating filters is missing */
697
+ interface V1MissingFilterTarget {
698
+ /**
699
+ * The type of filter that's missing its target
700
+ * @maxLength 5000
701
+ */
702
+ filterType?: string | null;
703
+ }
704
+ /** Represents a general error during evaluation */
705
+ interface V1GeneralError {
706
+ /**
707
+ * The serialized error message
708
+ * @maxLength 5000
709
+ */
710
+ error?: string | null;
711
+ }
712
+ /** Included for forward-compatibility; the DC library does not currently emit this */
713
+ interface V1NoResultForConduction {
714
+ }
715
+ /** Indicates an error occurred while trying to extract an element from context for bi-profile filtering */
716
+ interface V1MissingElementInContextForBiProfileError {
717
+ /**
718
+ * The specific type of element in the bi-profile filter
719
+ * @maxLength 100
720
+ */
721
+ biProfileType?: string | null;
722
+ }
723
+ /** Indicates that additional data was provided a missing value */
724
+ interface V1AdditionalDataMissingValue {
725
+ /**
726
+ * The key that is missing a value
727
+ * @maxLength 5000
728
+ */
729
+ key?: string | null;
730
+ }
731
+ /** Indicates the preserved "isEnabled" field was not found in the dynamic config variant */
732
+ interface IsEnabledFieldNotFound {
733
+ }
734
+ /** Indicates the "isEnabled" field exists but is not of type Boolean */
735
+ interface IsEnabledFieldNotOfTypeBoolean {
736
+ }
737
+ /** Indicates that this operation is not implemented by the library implementation */
738
+ interface NotImplemented {
739
+ }
158
740
  interface CreateAgentSessionRequest {
159
741
  /**
160
742
  * ID of the Project to create an agent session for.
@@ -649,6 +1231,192 @@ interface GetHimalayaAuthorizationResponse {
649
1231
  /** Whether the current user can save the project's design. */
650
1232
  saveDesign?: boolean;
651
1233
  }
1234
+ interface StartMobileBuildRequest {
1235
+ /**
1236
+ * ID of the project to build.
1237
+ * @format GUID
1238
+ */
1239
+ projectId: string;
1240
+ /**
1241
+ * Platforms to build. One build is started for each platform.
1242
+ * @minSize 1
1243
+ * @maxSize 2
1244
+ */
1245
+ platforms: PlatformWithLiterals[];
1246
+ /**
1247
+ * ID of the app release to build. When not specified, the app's live release is built.
1248
+ * @maxLength 200
1249
+ */
1250
+ releaseId?: string;
1251
+ /**
1252
+ * Version label for the builds, for example `1.2.0`. It's stored with the builds and returned by
1253
+ * Get Latest Mobile Builds. It isn't written into the app.
1254
+ * @maxLength 50
1255
+ */
1256
+ appVersion?: string;
1257
+ /**
1258
+ * Short-lived control credential for the project's app.
1259
+ *
1260
+ * Used for this call only. It isn't stored or returned.
1261
+ * @maxLength 4096
1262
+ */
1263
+ himalayaControlToken: string;
1264
+ /**
1265
+ * Canonical slug of the project's app, exactly as returned in `canonicalApp` by
1266
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
1267
+ *
1268
+ * Required when the project's `platform` is `HIMALAYA_MOBILE`. The value is verified on the server.
1269
+ * @maxLength 200
1270
+ */
1271
+ canonicalApp?: string;
1272
+ }
1273
+ /** Platform that an app-file build targets. */
1274
+ declare enum Platform {
1275
+ /** iOS. The build makes an `.ipa` file and an install page. */
1276
+ IOS = "IOS",
1277
+ /** Android. The build makes an `.apk` file. */
1278
+ ANDROID = "ANDROID"
1279
+ }
1280
+ /** @enumType */
1281
+ type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID';
1282
+ interface StartMobileBuildResponse {
1283
+ /**
1284
+ * Started builds, one for each platform that was accepted.
1285
+ * @maxSize 2
1286
+ */
1287
+ builds?: MobileBuild[];
1288
+ /**
1289
+ * Platforms whose build couldn't be started. Empty when every platform was started.
1290
+ * @maxSize 2
1291
+ */
1292
+ failedPlatforms?: FailedMobileBuildPlatform[];
1293
+ }
1294
+ /** One build of a project's installable app files, for one platform. */
1295
+ interface MobileBuild {
1296
+ /**
1297
+ * Build ID.
1298
+ * @maxLength 200
1299
+ */
1300
+ jobId?: string;
1301
+ /** Platform that the build targets. */
1302
+ platform?: PlatformWithLiterals;
1303
+ /**
1304
+ * ID of the app release that was built.
1305
+ * @maxLength 200
1306
+ */
1307
+ releaseId?: string;
1308
+ /**
1309
+ * Version label that the owner gave the build when it was started. Can be empty.
1310
+ * @maxLength 50
1311
+ */
1312
+ appVersion?: string;
1313
+ /** Build status. */
1314
+ status?: StatusWithLiterals;
1315
+ /** Why the build failed. Returned only when `status` is `FAILED`. */
1316
+ failureKind?: FailureKindWithLiterals;
1317
+ /**
1318
+ * Status reported by the build system, for diagnostics only.
1319
+ * @maxLength 50
1320
+ */
1321
+ himalayaStatus?: string;
1322
+ /**
1323
+ * Error text reported by the build system, for diagnostics only. Don't parse it.
1324
+ * @maxLength 2000
1325
+ */
1326
+ errorMessage?: string;
1327
+ /**
1328
+ * URL of the built file: an `.ipa` file for iOS, or an `.apk` file for Android.
1329
+ * Returned only when `status` is `SUCCEEDED`. Can be empty for iOS.
1330
+ * @format WEB_URL
1331
+ */
1332
+ downloadUrl?: string;
1333
+ /**
1334
+ * iOS only. URL of the page that installs the app on an iPhone.
1335
+ * Returned only when `status` is `SUCCEEDED`. Can be empty.
1336
+ * @format WEB_URL
1337
+ */
1338
+ installPageUrl?: string;
1339
+ /** Date and time the download links expire, about 7 days after the build. */
1340
+ downloadExpiresDate?: Date | null;
1341
+ /** Whether the download links have expired. To get new links, start a new build. */
1342
+ downloadExpired?: boolean;
1343
+ /** Date and time the build was started. */
1344
+ _createdDate?: Date | null;
1345
+ /** Date and time the build was first seen as `SUCCEEDED`. */
1346
+ builtDate?: Date | null;
1347
+ /** Date and time the build last changed. */
1348
+ _updatedDate?: Date | null;
1349
+ }
1350
+ /** Status of an app-file build. */
1351
+ declare enum Status {
1352
+ /** The build is queued or running. */
1353
+ IN_PROGRESS = "IN_PROGRESS",
1354
+ /** The build finished and its files can be downloaded until `downloadExpiresDate`. */
1355
+ SUCCEEDED = "SUCCEEDED",
1356
+ /** The build failed. See `failureKind`. */
1357
+ FAILED = "FAILED",
1358
+ /** The build was canceled. */
1359
+ CANCELED = "CANCELED"
1360
+ }
1361
+ /** @enumType */
1362
+ type StatusWithLiterals = Status | 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELED';
1363
+ /** Why an app-file build failed. */
1364
+ declare enum FailureKind {
1365
+ /** The app couldn't be signed. */
1366
+ SIGNING = "SIGNING",
1367
+ /** The build failed for another reason. */
1368
+ BUILD = "BUILD"
1369
+ }
1370
+ /** @enumType */
1371
+ type FailureKindWithLiterals = FailureKind | 'SIGNING' | 'BUILD';
1372
+ /** A platform whose build couldn't be started. */
1373
+ interface FailedMobileBuildPlatform {
1374
+ /** Platform. */
1375
+ platform?: PlatformWithLiterals;
1376
+ /**
1377
+ * Error code reported by the build system.
1378
+ * @maxLength 200
1379
+ */
1380
+ errorCode?: string;
1381
+ /**
1382
+ * Error text reported by the build system, for diagnostics only.
1383
+ * @maxLength 2000
1384
+ */
1385
+ errorMessage?: string;
1386
+ }
1387
+ interface GetLatestMobileBuildsRequest {
1388
+ /**
1389
+ * ID of the project.
1390
+ * @format GUID
1391
+ */
1392
+ projectId: string;
1393
+ /**
1394
+ * Short-lived control credential for the project's app.
1395
+ *
1396
+ * When specified, builds in progress are refreshed before the response. Used for this call only.
1397
+ * It isn't stored or returned.
1398
+ * @maxLength 4096
1399
+ */
1400
+ himalayaControlToken?: string;
1401
+ }
1402
+ interface GetLatestMobileBuildsResponse {
1403
+ /**
1404
+ * Latest builds for each platform: iOS first, then Android.
1405
+ * @maxSize 2
1406
+ */
1407
+ platforms?: PlatformMobileBuilds[];
1408
+ /** Whether refreshing builds in progress failed. When `true`, the stored state is returned. */
1409
+ refreshFailed?: boolean;
1410
+ }
1411
+ /** The latest app-file builds of a project for one platform. */
1412
+ interface PlatformMobileBuilds {
1413
+ /** Platform. */
1414
+ platform?: PlatformWithLiterals;
1415
+ /** The last build that was started, in any status. Not returned when no build was started. */
1416
+ lastAttempt?: MobileBuild;
1417
+ /** The last build that succeeded. Its links can be expired. Not returned when no build succeeded. */
1418
+ lastSuccessfulBuild?: MobileBuild;
1419
+ }
652
1420
  /**
653
1421
  * Retrieves a project.
654
1422
  * @param projectId - ID of the project to retrieve.
@@ -728,7 +1496,7 @@ interface UpdateProject {
728
1496
  * Platform that the project's app targets. Set when the project is created and can't be changed.
729
1497
  * @immutable
730
1498
  */
731
- platform?: PlatformWithLiterals;
1499
+ platform?: V1PlatformWithLiterals;
732
1500
  /**
733
1501
  * URL of the app's icon.
734
1502
  * @maxLength 2000
@@ -895,5 +1663,81 @@ interface ListProjectsOptions {
895
1663
  * @fqn wix.containers.projects.v1.ContainersProjects.GetHimalayaAuthorization
896
1664
  */
897
1665
  declare function getHimalayaAuthorization(projectId: string): Promise<NonNullablePaths<GetHimalayaAuthorizationResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp` | `workerLaunch` | `saveDesign`, 0>>;
1666
+ /**
1667
+ * Starts building the installable app files of a project, one build for each platform.
1668
+ *
1669
+ * The builds run in the background and take several minutes. To follow them, call
1670
+ * [Get Latest Mobile Builds](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-latest-mobile-builds)
1671
+ * with `himalayaControlToken`.
1672
+ *
1673
+ * For projects whose `platform` is `HIMALAYA_MOBILE`, call
1674
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization)
1675
+ * first, and specify the returned `canonicalApp`.
1676
+ * @param projectId - ID of the project to build.
1677
+ * @param platforms - Platforms to build. One build is started for each platform.
1678
+ * @public
1679
+ * @documentationMaturity preview
1680
+ * @requiredField options.himalayaControlToken
1681
+ * @requiredField platforms
1682
+ * @requiredField projectId
1683
+ * @permissionId containers:projects:v1:project:start_mobile_build
1684
+ * @fqn wix.containers.projects.v1.ContainersProjects.StartMobileBuild
1685
+ */
1686
+ declare function startMobileBuild(projectId: string, platforms: PlatformWithLiterals[], options?: NonNullablePaths<StartMobileBuildOptions, `himalayaControlToken`, 0>): Promise<NonNullablePaths<StartMobileBuildResponse, `builds` | `builds.${number}.jobId` | `builds.${number}.platform` | `builds.${number}.releaseId` | `builds.${number}.appVersion` | `builds.${number}.status` | `builds.${number}.failureKind` | `builds.${number}.himalayaStatus` | `builds.${number}.errorMessage` | `builds.${number}.downloadUrl` | `builds.${number}.installPageUrl` | `builds.${number}.downloadExpired` | `failedPlatforms` | `failedPlatforms.${number}.platform` | `failedPlatforms.${number}.errorCode` | `failedPlatforms.${number}.errorMessage`, 2>>;
1687
+ interface StartMobileBuildOptions {
1688
+ /**
1689
+ * ID of the app release to build. When not specified, the app's live release is built.
1690
+ * @maxLength 200
1691
+ */
1692
+ releaseId?: string;
1693
+ /**
1694
+ * Version label for the builds, for example `1.2.0`. It's stored with the builds and returned by
1695
+ * Get Latest Mobile Builds. It isn't written into the app.
1696
+ * @maxLength 50
1697
+ */
1698
+ appVersion?: string;
1699
+ /**
1700
+ * Short-lived control credential for the project's app.
1701
+ *
1702
+ * Used for this call only. It isn't stored or returned.
1703
+ * @maxLength 4096
1704
+ */
1705
+ himalayaControlToken: string;
1706
+ /**
1707
+ * Canonical slug of the project's app, exactly as returned in `canonicalApp` by
1708
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
1709
+ *
1710
+ * Required when the project's `platform` is `HIMALAYA_MOBILE`. The value is verified on the server.
1711
+ * @maxLength 200
1712
+ */
1713
+ canonicalApp?: string;
1714
+ }
1715
+ /**
1716
+ * Retrieves the latest app-file builds of a project: for each platform, the last build that was
1717
+ * started and the last build that succeeded.
1718
+ *
1719
+ * The caller must be authorized to work on the project's app, as for
1720
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
1721
+ *
1722
+ * When `himalayaControlToken` is specified, builds that are still in progress are refreshed
1723
+ * before the response. Without it, the stored state is returned as is.
1724
+ * @param projectId - ID of the project.
1725
+ * @public
1726
+ * @documentationMaturity preview
1727
+ * @requiredField projectId
1728
+ * @permissionId containers:projects:v1:project:get_latest_mobile_builds
1729
+ * @fqn wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds
1730
+ */
1731
+ declare function getLatestMobileBuilds(projectId: string, options?: GetLatestMobileBuildsOptions): Promise<NonNullablePaths<GetLatestMobileBuildsResponse, `platforms` | `platforms.${number}.platform` | `platforms.${number}.lastAttempt.jobId` | `platforms.${number}.lastAttempt.platform` | `platforms.${number}.lastAttempt.releaseId` | `platforms.${number}.lastAttempt.appVersion` | `platforms.${number}.lastAttempt.status` | `platforms.${number}.lastAttempt.failureKind` | `platforms.${number}.lastAttempt.himalayaStatus` | `platforms.${number}.lastAttempt.errorMessage` | `platforms.${number}.lastAttempt.downloadUrl` | `platforms.${number}.lastAttempt.installPageUrl` | `platforms.${number}.lastAttempt.downloadExpired` | `refreshFailed`, 3>>;
1732
+ interface GetLatestMobileBuildsOptions {
1733
+ /**
1734
+ * Short-lived control credential for the project's app.
1735
+ *
1736
+ * When specified, builds in progress are refreshed before the response. Used for this call only.
1737
+ * It isn't stored or returned.
1738
+ * @maxLength 4096
1739
+ */
1740
+ himalayaControlToken?: string;
1741
+ }
898
1742
 
899
- export { type AccountInfo, type ActionEvent, type CreateAgentSessionRequest, type CreateAgentSessionResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DeleteProjectRequest, type DeleteProjectResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GetHimalayaAuthorizationRequest, type GetHimalayaAuthorizationResponse, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListProjectsForCurrentUserRequest, type ListProjectsForCurrentUserResponse, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MessageEnvelope, Platform, type PlatformWithLiterals, type Project, type ProjectPlanReady, type ProjectResumeRequested, type ProjectStartRequested, ProjectStatus, type ProjectStatusWithLiterals, type RefreshAgentSiteTokenRequest, type RefreshAgentSiteTokenResponse, type RegenerateProjectIconRequest, type RegenerateProjectIconResponse, type RegenerateProjectNameRequest, type RegenerateProjectNameResponse, type RestoreInfo, type RestoreReleaseOptions, type RestoreReleaseRequest, type RestoreReleaseResponse, type ResumeProjectRequest, type ResumeProjectResponse, SandboxStatus, type SandboxStatusWithLiterals, type SaveProjectDesignOptions, type SaveProjectDesignRequest, type SaveProjectDesignResponse, type StartProjectRequest, type StartProjectResponse, type UpdateProject, type UpdateProjectRequest, type UpdateProjectResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getHimalayaAuthorization, getProject, restoreRelease, resumeProject, saveProjectDesign };
1743
+ export { type AccountInfo, type ActionEvent, type AdditionalDataFilterMismatchType, type AdditionalDataFilterMissingKey, type AdditionalDataFilterMustHaveKey, type AdditionalDataMissingValue, type AdditionalFilterCantBeEmpty, type ConductByScopeResponse, type ConductByScopesResponse, type ConductResponse, type ConductionException, type ConductionResult, type ConductionStatus, type ConductionStatusStatusOneOf, type CreateAgentSessionRequest, type CreateAgentSessionResponse, type CreateProjectRequest, type CreateProjectResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DeleteProjectRequest, type DeleteProjectResponse, type DidNotFindEligibleFilter, type DomainEvent, type DomainEventBodyOneOf, type DynamicConfigConductionResult, type DynamicConfigStatus, type DynamicConfigStatusStatusOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedMobileBuildPlatform, type FailedToFetchExperiment, type FailedToRunToss, FailureKind, type FailureKindWithLiterals, type FilterNotImplemented, type FilterNotSupported, type FilterOperandEmpty, type GeneralError, type GetAgentConfigRequest, type GetAgentConfigResponse, type GetAgentExperimentsRequest, type GetAgentExperimentsResponse, type GetHimalayaAuthorizationRequest, type GetHimalayaAuthorizationResponse, type GetLatestMobileBuildsOptions, type GetLatestMobileBuildsRequest, type GetLatestMobileBuildsResponse, type GetProjectRequest, type GetProjectResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidLibraryConfiguration, type IsEnabledFieldNotFound, type IsEnabledFieldNotOfTypeBoolean, type ListProjectsForCurrentUserRequest, type ListProjectsForCurrentUserResponse, type ListProjectsOptions, type ListProjectsRequest, type ListProjectsResponse, type MessageEnvelope, type MissingElementInContextForBiProfileError, type MissingExperimentId, type MissingFilterTarget, type MissingPlugins, type MissingSeed, type MissingSeedKeyType, type MissingSeedType, type MobileBuild, type NoResultForConduction, type NotImplemented, Platform, type PlatformMobileBuilds, type PlatformWithLiterals, type PopulationError, type Project, type ProjectPlanReady, type ProjectResumeRequested, type ProjectStartRequested, ProjectStatus, type ProjectStatusWithLiterals, type RefreshAgentSiteTokenRequest, type RefreshAgentSiteTokenResponse, type RegenerateProjectIconRequest, type RegenerateProjectIconResponse, type RegenerateProjectNameRequest, type RegenerateProjectNameResponse, type RestoreInfo, type RestoreReleaseOptions, type RestoreReleaseRequest, type RestoreReleaseResponse, type ResumeProjectRequest, type ResumeProjectResponse, SandboxStatus, type SandboxStatusWithLiterals, type SaveProjectDesignOptions, type SaveProjectDesignRequest, type SaveProjectDesignResponse, type StartMobileBuildOptions, type StartMobileBuildRequest, type StartMobileBuildResponse, type StartProjectRequest, type StartProjectResponse, Status, type StatusWithLiterals, type SuccessfulResult, type UpdateProject, type UpdateProjectRequest, type UpdateProjectResponse, type V1AdditionalDataFilterMismatchType, type V1AdditionalDataFilterMissingKey, type V1AdditionalDataFilterMustHaveKey, type V1AdditionalDataMissingValue, type V1AdditionalFilterCantBeEmpty, type V1ConductionException, type V1DidNotFindEligibleFilter, type V1FailedToFetchExperiment, type V1FailedToRunToss, type V1FilterNotImplemented, type V1FilterNotSupported, type V1FilterOperandEmpty, type V1GeneralError, type V1MissingElementInContextForBiProfileError, type V1MissingExperimentId, type V1MissingFilterTarget, type V1MissingPlugins, type V1MissingSeed, type V1MissingSeedKeyType, type V1MissingSeedType, type V1NoResultForConduction, V1Platform, type V1PlatformWithLiterals, type V1PopulationError, type V1SuccessfulResult, Variant, type VariantValue, type VariantValueValueOneOf, type VariantWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getHimalayaAuthorization, getLatestMobileBuilds, getProject, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild };