@wix/auto_sdk_containers_projects 1.0.8 → 1.0.10

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
  /**
@@ -1231,6 +1231,224 @@ interface GetHimalayaAuthorizationResponse {
1231
1231
  /** Whether the current user can save the project's design. */
1232
1232
  saveDesign?: boolean;
1233
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
+ * Android only. Kind of file to build. Default: `APK`.
1274
+ *
1275
+ * `AAB` builds the file to upload to Google Play, under the package name saved for the app in
1276
+ * Himalaya. With `AAB`, `platforms` must be only `ANDROID`, and `owner_authorization` is required.
1277
+ */
1278
+ androidFormat?: AndroidFormatWithLiterals;
1279
+ /**
1280
+ * The site owner's dashboard authorization: the signed `Authorization` header of this request.
1281
+ * Required with `android_format: AAB`: Himalaya checks that whoever starts a Google Play file owns the site.
1282
+ *
1283
+ * Used for this call only. It isn't stored or returned.
1284
+ * @maxLength 4096
1285
+ */
1286
+ ownerAuthorization?: string;
1287
+ }
1288
+ /** Platform that an app-file build targets. */
1289
+ declare enum Platform {
1290
+ /** iOS. The build makes an `.ipa` file and an install page. */
1291
+ IOS = "IOS",
1292
+ /** Android. The build makes an `.apk` file, or an `.aab` file for Google Play (see `androidFormat`). */
1293
+ ANDROID = "ANDROID"
1294
+ }
1295
+ /** @enumType */
1296
+ type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID';
1297
+ /** Kind of file an Android build makes. */
1298
+ declare enum AndroidFormat {
1299
+ /** An `.apk` file, to install on a phone and test. */
1300
+ APK = "APK",
1301
+ /** An `.aab` file (Android App Bundle), the file to upload to Google Play. It can't be installed on a phone. */
1302
+ AAB = "AAB"
1303
+ }
1304
+ /** @enumType */
1305
+ type AndroidFormatWithLiterals = AndroidFormat | 'APK' | 'AAB';
1306
+ interface StartMobileBuildResponse {
1307
+ /**
1308
+ * Started builds, one for each platform that was accepted.
1309
+ * @maxSize 2
1310
+ */
1311
+ builds?: MobileBuild[];
1312
+ /**
1313
+ * Platforms whose build couldn't be started. Empty when every platform was started.
1314
+ * @maxSize 2
1315
+ */
1316
+ failedPlatforms?: FailedMobileBuildPlatform[];
1317
+ }
1318
+ /** One build of a project's installable app files, for one platform. */
1319
+ interface MobileBuild {
1320
+ /**
1321
+ * Build ID.
1322
+ * @maxLength 200
1323
+ */
1324
+ jobId?: string;
1325
+ /** Platform that the build targets. */
1326
+ platform?: PlatformWithLiterals;
1327
+ /**
1328
+ * ID of the app release that was built.
1329
+ * @maxLength 200
1330
+ */
1331
+ releaseId?: string;
1332
+ /**
1333
+ * Version label that the owner gave the build when it was started. Can be empty.
1334
+ * @maxLength 50
1335
+ */
1336
+ appVersion?: string;
1337
+ /** Build status. */
1338
+ status?: StatusWithLiterals;
1339
+ /** Why the build failed. Returned only when `status` is `FAILED`. */
1340
+ failureKind?: FailureKindWithLiterals;
1341
+ /**
1342
+ * Status reported by the build system, for diagnostics only.
1343
+ * @maxLength 50
1344
+ */
1345
+ himalayaStatus?: string;
1346
+ /**
1347
+ * Error text reported by the build system, for diagnostics only. Don't parse it.
1348
+ * @maxLength 2000
1349
+ */
1350
+ errorMessage?: string;
1351
+ /**
1352
+ * URL of the built file: an `.ipa` file for iOS, or an `.apk` or `.aab` file for Android.
1353
+ * Returned only when `status` is `SUCCEEDED`. Can be empty for iOS.
1354
+ * @format WEB_URL
1355
+ */
1356
+ downloadUrl?: string;
1357
+ /**
1358
+ * iOS only. URL of the page that installs the app on an iPhone.
1359
+ * Returned only when `status` is `SUCCEEDED`. Can be empty.
1360
+ * @format WEB_URL
1361
+ */
1362
+ installPageUrl?: string;
1363
+ /** Date and time the download links expire, about 7 days after the build. */
1364
+ downloadExpiresDate?: Date | null;
1365
+ /** Whether the download links have expired. To get new links, start a new build. */
1366
+ downloadExpired?: boolean;
1367
+ /** Date and time the build was started. */
1368
+ _createdDate?: Date | null;
1369
+ /** Date and time the build was first seen as `SUCCEEDED`. */
1370
+ builtDate?: Date | null;
1371
+ /** Date and time the build last changed. */
1372
+ _updatedDate?: Date | null;
1373
+ /** Android only. Kind of file the build made: an `.apk` to install and test, or an `.aab` to upload to Google Play. */
1374
+ androidFormat?: AndroidFormatWithLiterals;
1375
+ /**
1376
+ * Android `AAB` builds only. URL of an `.apk` file of the same build, to install on a phone and test.
1377
+ * Returned only when `status` is `SUCCEEDED`. Can be empty. Expires with `download_url`.
1378
+ * @format WEB_URL
1379
+ */
1380
+ apkDownloadUrl?: string;
1381
+ }
1382
+ /** Status of an app-file build. */
1383
+ declare enum Status {
1384
+ /** The build is queued or running. */
1385
+ IN_PROGRESS = "IN_PROGRESS",
1386
+ /** The build finished and its files can be downloaded until `downloadExpiresDate`. */
1387
+ SUCCEEDED = "SUCCEEDED",
1388
+ /** The build failed. See `failureKind`. */
1389
+ FAILED = "FAILED",
1390
+ /** The build was canceled. */
1391
+ CANCELED = "CANCELED"
1392
+ }
1393
+ /** @enumType */
1394
+ type StatusWithLiterals = Status | 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELED';
1395
+ /** Why an app-file build failed. */
1396
+ declare enum FailureKind {
1397
+ /** The app couldn't be signed. */
1398
+ SIGNING = "SIGNING",
1399
+ /** The build failed for another reason. */
1400
+ BUILD = "BUILD"
1401
+ }
1402
+ /** @enumType */
1403
+ type FailureKindWithLiterals = FailureKind | 'SIGNING' | 'BUILD';
1404
+ /** A platform whose build couldn't be started. */
1405
+ interface FailedMobileBuildPlatform {
1406
+ /** Platform. */
1407
+ platform?: PlatformWithLiterals;
1408
+ /**
1409
+ * Error code reported by the build system.
1410
+ * @maxLength 200
1411
+ */
1412
+ errorCode?: string;
1413
+ /**
1414
+ * Error text reported by the build system, for diagnostics only.
1415
+ * @maxLength 2000
1416
+ */
1417
+ errorMessage?: string;
1418
+ }
1419
+ interface GetLatestMobileBuildsRequest {
1420
+ /**
1421
+ * ID of the project.
1422
+ * @format GUID
1423
+ */
1424
+ projectId: string;
1425
+ /**
1426
+ * Short-lived control credential for the project's app.
1427
+ *
1428
+ * When specified, builds in progress are refreshed before the response. Used for this call only.
1429
+ * It isn't stored or returned.
1430
+ * @maxLength 4096
1431
+ */
1432
+ himalayaControlToken?: string;
1433
+ }
1434
+ interface GetLatestMobileBuildsResponse {
1435
+ /**
1436
+ * Latest builds for each platform: iOS first, then Android.
1437
+ * @maxSize 2
1438
+ */
1439
+ platforms?: PlatformMobileBuilds[];
1440
+ /** Whether refreshing builds in progress failed. When `true`, the stored state is returned. */
1441
+ refreshFailed?: boolean;
1442
+ }
1443
+ /** The latest app-file builds of a project for one platform. */
1444
+ interface PlatformMobileBuilds {
1445
+ /** Platform. */
1446
+ platform?: PlatformWithLiterals;
1447
+ /** The last build that was started, in any status. Not returned when no build was started. */
1448
+ lastAttempt?: MobileBuild;
1449
+ /** The last build that succeeded. Its links can be expired. Not returned when no build succeeded. */
1450
+ lastSuccessfulBuild?: MobileBuild;
1451
+ }
1234
1452
  /**
1235
1453
  * Retrieves a project.
1236
1454
  * @param projectId - ID of the project to retrieve.
@@ -1310,7 +1528,7 @@ interface UpdateProject {
1310
1528
  * Platform that the project's app targets. Set when the project is created and can't be changed.
1311
1529
  * @immutable
1312
1530
  */
1313
- platform?: PlatformWithLiterals;
1531
+ platform?: V1PlatformWithLiterals;
1314
1532
  /**
1315
1533
  * URL of the app's icon.
1316
1534
  * @maxLength 2000
@@ -1477,5 +1695,96 @@ interface ListProjectsOptions {
1477
1695
  * @fqn wix.containers.projects.v1.ContainersProjects.GetHimalayaAuthorization
1478
1696
  */
1479
1697
  declare function getHimalayaAuthorization(projectId: string): Promise<NonNullablePaths<GetHimalayaAuthorizationResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp` | `workerLaunch` | `saveDesign`, 0>>;
1698
+ /**
1699
+ * Starts building the installable app files of a project, one build for each platform.
1700
+ *
1701
+ * The builds run in the background and take several minutes. To follow them, call
1702
+ * [Get Latest Mobile Builds](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-latest-mobile-builds)
1703
+ * with `himalayaControlToken`.
1704
+ *
1705
+ * For projects whose `platform` is `HIMALAYA_MOBILE`, call
1706
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization)
1707
+ * first, and specify the returned `canonicalApp`.
1708
+ * @param projectId - ID of the project to build.
1709
+ * @param platforms - Platforms to build. One build is started for each platform.
1710
+ * @public
1711
+ * @documentationMaturity preview
1712
+ * @requiredField options.himalayaControlToken
1713
+ * @requiredField platforms
1714
+ * @requiredField projectId
1715
+ * @permissionId containers:projects:v1:project:start_mobile_build
1716
+ * @fqn wix.containers.projects.v1.ContainersProjects.StartMobileBuild
1717
+ */
1718
+ 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` | `builds.${number}.androidFormat` | `builds.${number}.apkDownloadUrl` | `failedPlatforms` | `failedPlatforms.${number}.platform` | `failedPlatforms.${number}.errorCode` | `failedPlatforms.${number}.errorMessage`, 2>>;
1719
+ interface StartMobileBuildOptions {
1720
+ /**
1721
+ * ID of the app release to build. When not specified, the app's live release is built.
1722
+ * @maxLength 200
1723
+ */
1724
+ releaseId?: string;
1725
+ /**
1726
+ * Version label for the builds, for example `1.2.0`. It's stored with the builds and returned by
1727
+ * Get Latest Mobile Builds. It isn't written into the app.
1728
+ * @maxLength 50
1729
+ */
1730
+ appVersion?: string;
1731
+ /**
1732
+ * Short-lived control credential for the project's app.
1733
+ *
1734
+ * Used for this call only. It isn't stored or returned.
1735
+ * @maxLength 4096
1736
+ */
1737
+ himalayaControlToken: string;
1738
+ /**
1739
+ * Canonical slug of the project's app, exactly as returned in `canonicalApp` by
1740
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
1741
+ *
1742
+ * Required when the project's `platform` is `HIMALAYA_MOBILE`. The value is verified on the server.
1743
+ * @maxLength 200
1744
+ */
1745
+ canonicalApp?: string;
1746
+ /**
1747
+ * Android only. Kind of file to build. Default: `APK`.
1748
+ *
1749
+ * `AAB` builds the file to upload to Google Play, under the package name saved for the app in
1750
+ * Himalaya. With `AAB`, `platforms` must be only `ANDROID`, and `owner_authorization` is required.
1751
+ */
1752
+ androidFormat?: AndroidFormatWithLiterals;
1753
+ /**
1754
+ * The site owner's dashboard authorization: the signed `Authorization` header of this request.
1755
+ * Required with `android_format: AAB`: Himalaya checks that whoever starts a Google Play file owns the site.
1756
+ *
1757
+ * Used for this call only. It isn't stored or returned.
1758
+ * @maxLength 4096
1759
+ */
1760
+ ownerAuthorization?: string;
1761
+ }
1762
+ /**
1763
+ * Retrieves the latest app-file builds of a project: for each platform, the last build that was
1764
+ * started and the last build that succeeded.
1765
+ *
1766
+ * The caller must be authorized to work on the project's app, as for
1767
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
1768
+ *
1769
+ * When `himalayaControlToken` is specified, builds that are still in progress are refreshed
1770
+ * before the response. Without it, the stored state is returned as is.
1771
+ * @param projectId - ID of the project.
1772
+ * @public
1773
+ * @documentationMaturity preview
1774
+ * @requiredField projectId
1775
+ * @permissionId containers:projects:v1:project:get_latest_mobile_builds
1776
+ * @fqn wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds
1777
+ */
1778
+ 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` | `platforms.${number}.lastAttempt.androidFormat` | `platforms.${number}.lastAttempt.apkDownloadUrl` | `refreshFailed`, 3>>;
1779
+ interface GetLatestMobileBuildsOptions {
1780
+ /**
1781
+ * Short-lived control credential for the project's app.
1782
+ *
1783
+ * When specified, builds in progress are refreshed before the response. Used for this call only.
1784
+ * It isn't stored or returned.
1785
+ * @maxLength 4096
1786
+ */
1787
+ himalayaControlToken?: string;
1788
+ }
1480
1789
 
1481
- 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 FailedToFetchExperiment, type FailedToRunToss, type FilterNotImplemented, type FilterNotSupported, type FilterOperandEmpty, type GeneralError, type GetAgentConfigRequest, type GetAgentConfigResponse, type GetAgentExperimentsRequest, type GetAgentExperimentsResponse, type GetHimalayaAuthorizationRequest, type GetHimalayaAuthorizationResponse, 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 NoResultForConduction, type NotImplemented, Platform, 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 StartProjectRequest, type StartProjectResponse, 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, type V1PopulationError, type V1SuccessfulResult, Variant, type VariantValue, type VariantValueValueOneOf, type VariantWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getHimalayaAuthorization, getProject, restoreRelease, resumeProject, saveProjectDesign };
1790
+ export { type AccountInfo, type ActionEvent, type AdditionalDataFilterMismatchType, type AdditionalDataFilterMissingKey, type AdditionalDataFilterMustHaveKey, type AdditionalDataMissingValue, type AdditionalFilterCantBeEmpty, AndroidFormat, type AndroidFormatWithLiterals, 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 };
@@ -20,14 +20,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
+ AndroidFormat: () => AndroidFormat,
24
+ FailureKind: () => FailureKind,
23
25
  Platform: () => Platform,
24
26
  ProjectStatus: () => ProjectStatus,
25
27
  SandboxStatus: () => SandboxStatus,
28
+ Status: () => Status,
29
+ V1Platform: () => V1Platform,
26
30
  Variant: () => Variant,
27
31
  WebhookIdentityType: () => WebhookIdentityType,
28
32
  createProject: () => createProject2,
29
33
  deleteProject: () => deleteProject2,
30
34
  getHimalayaAuthorization: () => getHimalayaAuthorization2,
35
+ getLatestMobileBuilds: () => getLatestMobileBuilds2,
31
36
  getProject: () => getProject2,
32
37
  listProjects: () => listProjects2,
33
38
  regenerateProjectIcon: () => regenerateProjectIcon2,
@@ -35,6 +40,7 @@ __export(index_typings_exports, {
35
40
  restoreRelease: () => restoreRelease2,
36
41
  resumeProject: () => resumeProject2,
37
42
  saveProjectDesign: () => saveProjectDesign2,
43
+ startMobileBuild: () => startMobileBuild2,
38
44
  updateProject: () => updateProject2
39
45
  });
40
46
  module.exports = __toCommonJS(index_typings_exports);
@@ -60,6 +66,22 @@ var TRANSFORM_PATHS_3 = [
60
66
  { path: "projects.createdDate" },
61
67
  { path: "projects.updatedDate" }
62
68
  ];
69
+ var TRANSFORM_PATHS_4 = [
70
+ { path: "builds.downloadExpiresDate" },
71
+ { path: "builds.createdDate" },
72
+ { path: "builds.builtDate" },
73
+ { path: "builds.updatedDate" }
74
+ ];
75
+ var TRANSFORM_PATHS_5 = [
76
+ { path: "platforms.lastAttempt.downloadExpiresDate" },
77
+ { path: "platforms.lastAttempt.createdDate" },
78
+ { path: "platforms.lastAttempt.builtDate" },
79
+ { path: "platforms.lastAttempt.updatedDate" },
80
+ { path: "platforms.lastSuccessfulBuild.downloadExpiresDate" },
81
+ { path: "platforms.lastSuccessfulBuild.createdDate" },
82
+ { path: "platforms.lastSuccessfulBuild.builtDate" },
83
+ { path: "platforms.lastSuccessfulBuild.updatedDate" }
84
+ ];
63
85
  function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
64
86
  const domainToMappings = {
65
87
  "manage._base_domain_": [
@@ -367,6 +389,60 @@ function getHimalayaAuthorization(payload) {
367
389
  }
368
390
  return __getHimalayaAuthorization;
369
391
  }
392
+ function startMobileBuild(payload) {
393
+ function __startMobileBuild({ host }) {
394
+ const metadata = {
395
+ entityFqdn: "wix.containers.projects.v1.project",
396
+ method: "POST",
397
+ methodFqn: "wix.containers.projects.v1.ContainersProjects.StartMobileBuild",
398
+ packageName: PACKAGE_NAME,
399
+ migrationOptions: {
400
+ optInTransformResponse: true
401
+ },
402
+ url: resolveWixContainersProjectsV1ContainersProjectsUrl({
403
+ protoPath: "/v1/projects/{projectId}/mobile-builds",
404
+ data: payload,
405
+ host
406
+ }),
407
+ data: payload,
408
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
409
+ {
410
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
411
+ paths: TRANSFORM_PATHS_4
412
+ }
413
+ ])
414
+ };
415
+ return metadata;
416
+ }
417
+ return __startMobileBuild;
418
+ }
419
+ function getLatestMobileBuilds(payload) {
420
+ function __getLatestMobileBuilds({ host }) {
421
+ const metadata = {
422
+ entityFqdn: "wix.containers.projects.v1.project",
423
+ method: "POST",
424
+ methodFqn: "wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds",
425
+ packageName: PACKAGE_NAME,
426
+ migrationOptions: {
427
+ optInTransformResponse: true
428
+ },
429
+ url: resolveWixContainersProjectsV1ContainersProjectsUrl({
430
+ protoPath: "/v1/projects/{projectId}/mobile-builds/latest",
431
+ data: payload,
432
+ host
433
+ }),
434
+ data: payload,
435
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
436
+ {
437
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
438
+ paths: TRANSFORM_PATHS_5
439
+ }
440
+ ])
441
+ };
442
+ return metadata;
443
+ }
444
+ return __getLatestMobileBuilds;
445
+ }
370
446
 
371
447
  // src/containers-projects-v1-project-projects.universal.ts
372
448
  var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
@@ -380,12 +456,12 @@ var SandboxStatus = /* @__PURE__ */ ((SandboxStatus2) => {
380
456
  SandboxStatus2["CREATING"] = "CREATING";
381
457
  return SandboxStatus2;
382
458
  })(SandboxStatus || {});
383
- var Platform = /* @__PURE__ */ ((Platform2) => {
384
- Platform2["IOS"] = "IOS";
385
- Platform2["ANDROID"] = "ANDROID";
386
- Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
387
- return Platform2;
388
- })(Platform || {});
459
+ var V1Platform = /* @__PURE__ */ ((V1Platform2) => {
460
+ V1Platform2["IOS"] = "IOS";
461
+ V1Platform2["ANDROID"] = "ANDROID";
462
+ V1Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
463
+ return V1Platform2;
464
+ })(V1Platform || {});
389
465
  var Variant = /* @__PURE__ */ ((Variant2) => {
390
466
  Variant2["VARIANT_UNSPECIFIED"] = "VARIANT_UNSPECIFIED";
391
467
  Variant2["A"] = "A";
@@ -424,6 +500,28 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
424
500
  WebhookIdentityType2["APP"] = "APP";
425
501
  return WebhookIdentityType2;
426
502
  })(WebhookIdentityType || {});
503
+ var Platform = /* @__PURE__ */ ((Platform2) => {
504
+ Platform2["IOS"] = "IOS";
505
+ Platform2["ANDROID"] = "ANDROID";
506
+ return Platform2;
507
+ })(Platform || {});
508
+ var AndroidFormat = /* @__PURE__ */ ((AndroidFormat2) => {
509
+ AndroidFormat2["APK"] = "APK";
510
+ AndroidFormat2["AAB"] = "AAB";
511
+ return AndroidFormat2;
512
+ })(AndroidFormat || {});
513
+ var Status = /* @__PURE__ */ ((Status2) => {
514
+ Status2["IN_PROGRESS"] = "IN_PROGRESS";
515
+ Status2["SUCCEEDED"] = "SUCCEEDED";
516
+ Status2["FAILED"] = "FAILED";
517
+ Status2["CANCELED"] = "CANCELED";
518
+ return Status2;
519
+ })(Status || {});
520
+ var FailureKind = /* @__PURE__ */ ((FailureKind2) => {
521
+ FailureKind2["SIGNING"] = "SIGNING";
522
+ FailureKind2["BUILD"] = "BUILD";
523
+ return FailureKind2;
524
+ })(FailureKind || {});
427
525
  async function createProject2(project) {
428
526
  const { httpClient, sideEffects } = arguments[1];
429
527
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ project });
@@ -718,16 +816,91 @@ async function getHimalayaAuthorization2(projectId) {
718
816
  throw transformedError;
719
817
  }
720
818
  }
819
+ async function startMobileBuild2(projectId, platforms, options) {
820
+ const { httpClient, sideEffects } = arguments[3];
821
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
822
+ projectId,
823
+ platforms,
824
+ releaseId: options?.releaseId,
825
+ appVersion: options?.appVersion,
826
+ himalayaControlToken: options?.himalayaControlToken,
827
+ canonicalApp: options?.canonicalApp,
828
+ androidFormat: options?.androidFormat,
829
+ ownerAuthorization: options?.ownerAuthorization
830
+ });
831
+ const reqOpts = startMobileBuild(payload);
832
+ sideEffects?.onSiteCall?.();
833
+ try {
834
+ const result = await httpClient.request(reqOpts);
835
+ sideEffects?.onSuccess?.(result);
836
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
837
+ } catch (err) {
838
+ const transformedError = (0, import_transform_error.transformError)(
839
+ err,
840
+ {
841
+ spreadPathsToArguments: {},
842
+ explicitPathsToArguments: {
843
+ projectId: "$[0]",
844
+ platforms: "$[1]",
845
+ releaseId: "$[2].releaseId",
846
+ appVersion: "$[2].appVersion",
847
+ himalayaControlToken: "$[2].himalayaControlToken",
848
+ canonicalApp: "$[2].canonicalApp",
849
+ androidFormat: "$[2].androidFormat",
850
+ ownerAuthorization: "$[2].ownerAuthorization"
851
+ },
852
+ singleArgumentUnchanged: false
853
+ },
854
+ ["projectId", "platforms", "options"]
855
+ );
856
+ sideEffects?.onError?.(err);
857
+ throw transformedError;
858
+ }
859
+ }
860
+ async function getLatestMobileBuilds2(projectId, options) {
861
+ const { httpClient, sideEffects } = arguments[2];
862
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
863
+ projectId,
864
+ himalayaControlToken: options?.himalayaControlToken
865
+ });
866
+ const reqOpts = getLatestMobileBuilds(payload);
867
+ sideEffects?.onSiteCall?.();
868
+ try {
869
+ const result = await httpClient.request(reqOpts);
870
+ sideEffects?.onSuccess?.(result);
871
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
872
+ } catch (err) {
873
+ const transformedError = (0, import_transform_error.transformError)(
874
+ err,
875
+ {
876
+ spreadPathsToArguments: {},
877
+ explicitPathsToArguments: {
878
+ projectId: "$[0]",
879
+ himalayaControlToken: "$[1].himalayaControlToken"
880
+ },
881
+ singleArgumentUnchanged: false
882
+ },
883
+ ["projectId", "options"]
884
+ );
885
+ sideEffects?.onError?.(err);
886
+ throw transformedError;
887
+ }
888
+ }
721
889
  // Annotate the CommonJS export names for ESM import in node:
722
890
  0 && (module.exports = {
891
+ AndroidFormat,
892
+ FailureKind,
723
893
  Platform,
724
894
  ProjectStatus,
725
895
  SandboxStatus,
896
+ Status,
897
+ V1Platform,
726
898
  Variant,
727
899
  WebhookIdentityType,
728
900
  createProject,
729
901
  deleteProject,
730
902
  getHimalayaAuthorization,
903
+ getLatestMobileBuilds,
731
904
  getProject,
732
905
  listProjects,
733
906
  regenerateProjectIcon,
@@ -735,6 +908,7 @@ async function getHimalayaAuthorization2(projectId) {
735
908
  restoreRelease,
736
909
  resumeProject,
737
910
  saveProjectDesign,
911
+ startMobileBuild,
738
912
  updateProject
739
913
  });
740
914
  //# sourceMappingURL=index.typings.js.map