@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.
@@ -1,4 +1,4 @@
1
- import { CreateProjectRequest as CreateProjectRequest$1, CreateProjectResponse as CreateProjectResponse$1, GetProjectRequest as GetProjectRequest$1, GetProjectResponse as GetProjectResponse$1, UpdateProjectRequest as UpdateProjectRequest$1, UpdateProjectResponse as UpdateProjectResponse$1, DeleteProjectRequest as DeleteProjectRequest$1, DeleteProjectResponse as DeleteProjectResponse$1, ResumeProjectRequest as ResumeProjectRequest$1, ResumeProjectResponse as ResumeProjectResponse$1, RegenerateProjectNameRequest as RegenerateProjectNameRequest$1, RegenerateProjectNameResponse as RegenerateProjectNameResponse$1, RegenerateProjectIconRequest as RegenerateProjectIconRequest$1, RegenerateProjectIconResponse as RegenerateProjectIconResponse$1, SaveProjectDesignRequest as SaveProjectDesignRequest$1, SaveProjectDesignResponse as SaveProjectDesignResponse$1, RestoreReleaseRequest as RestoreReleaseRequest$1, RestoreReleaseResponse as RestoreReleaseResponse$1, ListProjectsRequest as ListProjectsRequest$1, ListProjectsResponse as ListProjectsResponse$1, GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponse$1 } from './index.typings.mjs';
1
+ import { CreateProjectRequest as CreateProjectRequest$1, CreateProjectResponse as CreateProjectResponse$1, GetProjectRequest as GetProjectRequest$1, GetProjectResponse as GetProjectResponse$1, UpdateProjectRequest as UpdateProjectRequest$1, UpdateProjectResponse as UpdateProjectResponse$1, DeleteProjectRequest as DeleteProjectRequest$1, DeleteProjectResponse as DeleteProjectResponse$1, ResumeProjectRequest as ResumeProjectRequest$1, ResumeProjectResponse as ResumeProjectResponse$1, RegenerateProjectNameRequest as RegenerateProjectNameRequest$1, RegenerateProjectNameResponse as RegenerateProjectNameResponse$1, RegenerateProjectIconRequest as RegenerateProjectIconRequest$1, RegenerateProjectIconResponse as RegenerateProjectIconResponse$1, SaveProjectDesignRequest as SaveProjectDesignRequest$1, SaveProjectDesignResponse as SaveProjectDesignResponse$1, RestoreReleaseRequest as RestoreReleaseRequest$1, RestoreReleaseResponse as RestoreReleaseResponse$1, ListProjectsRequest as ListProjectsRequest$1, ListProjectsResponse as ListProjectsResponse$1, GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponse$1, StartMobileBuildRequest as StartMobileBuildRequest$1, StartMobileBuildResponse as StartMobileBuildResponse$1, GetLatestMobileBuildsRequest as GetLatestMobileBuildsRequest$1, GetLatestMobileBuildsResponse as GetLatestMobileBuildsResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -73,7 +73,7 @@ interface Project {
73
73
  * Platform that the project's app targets. Set when the project is created and can't be changed.
74
74
  * @immutable
75
75
  */
76
- platform?: PlatformWithLiterals;
76
+ platform?: V1PlatformWithLiterals;
77
77
  /**
78
78
  * URL of the app's icon.
79
79
  * @maxLength 2000
@@ -113,7 +113,7 @@ declare enum SandboxStatus {
113
113
  }
114
114
  /** @enumType */
115
115
  type SandboxStatusWithLiterals = SandboxStatus | 'NONE' | 'CREATING';
116
- declare enum Platform {
116
+ declare enum V1Platform {
117
117
  /** Native iOS app. Used by older projects. */
118
118
  IOS = "IOS",
119
119
  /** Native Android app. Used by older projects. */
@@ -125,7 +125,7 @@ declare enum Platform {
125
125
  HIMALAYA_MOBILE = "HIMALAYA_MOBILE"
126
126
  }
127
127
  /** @enumType */
128
- type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID' | 'HIMALAYA_MOBILE';
128
+ type V1PlatformWithLiterals = V1Platform | 'IOS' | 'ANDROID' | 'HIMALAYA_MOBILE';
129
129
  /** Details of a request to start a project's remote development environment. */
130
130
  interface ProjectStartRequested {
131
131
  /**
@@ -1234,6 +1234,224 @@ interface GetHimalayaAuthorizationResponse {
1234
1234
  /** Whether the current user can save the project's design. */
1235
1235
  saveDesign?: boolean;
1236
1236
  }
1237
+ interface StartMobileBuildRequest {
1238
+ /**
1239
+ * ID of the project to build.
1240
+ * @format GUID
1241
+ */
1242
+ projectId: string;
1243
+ /**
1244
+ * Platforms to build. One build is started for each platform.
1245
+ * @minSize 1
1246
+ * @maxSize 2
1247
+ */
1248
+ platforms: PlatformWithLiterals[];
1249
+ /**
1250
+ * ID of the app release to build. When not specified, the app's live release is built.
1251
+ * @maxLength 200
1252
+ */
1253
+ releaseId?: string;
1254
+ /**
1255
+ * Version label for the builds, for example `1.2.0`. It's stored with the builds and returned by
1256
+ * Get Latest Mobile Builds. It isn't written into the app.
1257
+ * @maxLength 50
1258
+ */
1259
+ appVersion?: string;
1260
+ /**
1261
+ * Short-lived control credential for the project's app.
1262
+ *
1263
+ * Used for this call only. It isn't stored or returned.
1264
+ * @maxLength 4096
1265
+ */
1266
+ himalayaControlToken: string;
1267
+ /**
1268
+ * Canonical slug of the project's app, exactly as returned in `canonicalApp` by
1269
+ * [Get Himalaya Authorization](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization).
1270
+ *
1271
+ * Required when the project's `platform` is `HIMALAYA_MOBILE`. The value is verified on the server.
1272
+ * @maxLength 200
1273
+ */
1274
+ canonicalApp?: string;
1275
+ /**
1276
+ * Android only. Kind of file to build. Default: `APK`.
1277
+ *
1278
+ * `AAB` builds the file to upload to Google Play, under the package name saved for the app in
1279
+ * Himalaya. With `AAB`, `platforms` must be only `ANDROID`, and `owner_authorization` is required.
1280
+ */
1281
+ androidFormat?: AndroidFormatWithLiterals;
1282
+ /**
1283
+ * The site owner's dashboard authorization: the signed `Authorization` header of this request.
1284
+ * Required with `android_format: AAB`: Himalaya checks that whoever starts a Google Play file owns the site.
1285
+ *
1286
+ * Used for this call only. It isn't stored or returned.
1287
+ * @maxLength 4096
1288
+ */
1289
+ ownerAuthorization?: string;
1290
+ }
1291
+ /** Platform that an app-file build targets. */
1292
+ declare enum Platform {
1293
+ /** iOS. The build makes an `.ipa` file and an install page. */
1294
+ IOS = "IOS",
1295
+ /** Android. The build makes an `.apk` file, or an `.aab` file for Google Play (see `androidFormat`). */
1296
+ ANDROID = "ANDROID"
1297
+ }
1298
+ /** @enumType */
1299
+ type PlatformWithLiterals = Platform | 'IOS' | 'ANDROID';
1300
+ /** Kind of file an Android build makes. */
1301
+ declare enum AndroidFormat {
1302
+ /** An `.apk` file, to install on a phone and test. */
1303
+ APK = "APK",
1304
+ /** An `.aab` file (Android App Bundle), the file to upload to Google Play. It can't be installed on a phone. */
1305
+ AAB = "AAB"
1306
+ }
1307
+ /** @enumType */
1308
+ type AndroidFormatWithLiterals = AndroidFormat | 'APK' | 'AAB';
1309
+ interface StartMobileBuildResponse {
1310
+ /**
1311
+ * Started builds, one for each platform that was accepted.
1312
+ * @maxSize 2
1313
+ */
1314
+ builds?: MobileBuild[];
1315
+ /**
1316
+ * Platforms whose build couldn't be started. Empty when every platform was started.
1317
+ * @maxSize 2
1318
+ */
1319
+ failedPlatforms?: FailedMobileBuildPlatform[];
1320
+ }
1321
+ /** One build of a project's installable app files, for one platform. */
1322
+ interface MobileBuild {
1323
+ /**
1324
+ * Build ID.
1325
+ * @maxLength 200
1326
+ */
1327
+ jobId?: string;
1328
+ /** Platform that the build targets. */
1329
+ platform?: PlatformWithLiterals;
1330
+ /**
1331
+ * ID of the app release that was built.
1332
+ * @maxLength 200
1333
+ */
1334
+ releaseId?: string;
1335
+ /**
1336
+ * Version label that the owner gave the build when it was started. Can be empty.
1337
+ * @maxLength 50
1338
+ */
1339
+ appVersion?: string;
1340
+ /** Build status. */
1341
+ status?: StatusWithLiterals;
1342
+ /** Why the build failed. Returned only when `status` is `FAILED`. */
1343
+ failureKind?: FailureKindWithLiterals;
1344
+ /**
1345
+ * Status reported by the build system, for diagnostics only.
1346
+ * @maxLength 50
1347
+ */
1348
+ himalayaStatus?: string;
1349
+ /**
1350
+ * Error text reported by the build system, for diagnostics only. Don't parse it.
1351
+ * @maxLength 2000
1352
+ */
1353
+ errorMessage?: string;
1354
+ /**
1355
+ * URL of the built file: an `.ipa` file for iOS, or an `.apk` or `.aab` file for Android.
1356
+ * Returned only when `status` is `SUCCEEDED`. Can be empty for iOS.
1357
+ * @format WEB_URL
1358
+ */
1359
+ downloadUrl?: string;
1360
+ /**
1361
+ * iOS only. URL of the page that installs the app on an iPhone.
1362
+ * Returned only when `status` is `SUCCEEDED`. Can be empty.
1363
+ * @format WEB_URL
1364
+ */
1365
+ installPageUrl?: string;
1366
+ /** Date and time the download links expire, about 7 days after the build. */
1367
+ downloadExpiresDate?: Date | null;
1368
+ /** Whether the download links have expired. To get new links, start a new build. */
1369
+ downloadExpired?: boolean;
1370
+ /** Date and time the build was started. */
1371
+ createdDate?: Date | null;
1372
+ /** Date and time the build was first seen as `SUCCEEDED`. */
1373
+ builtDate?: Date | null;
1374
+ /** Date and time the build last changed. */
1375
+ updatedDate?: Date | null;
1376
+ /** Android only. Kind of file the build made: an `.apk` to install and test, or an `.aab` to upload to Google Play. */
1377
+ androidFormat?: AndroidFormatWithLiterals;
1378
+ /**
1379
+ * Android `AAB` builds only. URL of an `.apk` file of the same build, to install on a phone and test.
1380
+ * Returned only when `status` is `SUCCEEDED`. Can be empty. Expires with `download_url`.
1381
+ * @format WEB_URL
1382
+ */
1383
+ apkDownloadUrl?: string;
1384
+ }
1385
+ /** Status of an app-file build. */
1386
+ declare enum Status {
1387
+ /** The build is queued or running. */
1388
+ IN_PROGRESS = "IN_PROGRESS",
1389
+ /** The build finished and its files can be downloaded until `downloadExpiresDate`. */
1390
+ SUCCEEDED = "SUCCEEDED",
1391
+ /** The build failed. See `failureKind`. */
1392
+ FAILED = "FAILED",
1393
+ /** The build was canceled. */
1394
+ CANCELED = "CANCELED"
1395
+ }
1396
+ /** @enumType */
1397
+ type StatusWithLiterals = Status | 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELED';
1398
+ /** Why an app-file build failed. */
1399
+ declare enum FailureKind {
1400
+ /** The app couldn't be signed. */
1401
+ SIGNING = "SIGNING",
1402
+ /** The build failed for another reason. */
1403
+ BUILD = "BUILD"
1404
+ }
1405
+ /** @enumType */
1406
+ type FailureKindWithLiterals = FailureKind | 'SIGNING' | 'BUILD';
1407
+ /** A platform whose build couldn't be started. */
1408
+ interface FailedMobileBuildPlatform {
1409
+ /** Platform. */
1410
+ platform?: PlatformWithLiterals;
1411
+ /**
1412
+ * Error code reported by the build system.
1413
+ * @maxLength 200
1414
+ */
1415
+ errorCode?: string;
1416
+ /**
1417
+ * Error text reported by the build system, for diagnostics only.
1418
+ * @maxLength 2000
1419
+ */
1420
+ errorMessage?: string;
1421
+ }
1422
+ interface GetLatestMobileBuildsRequest {
1423
+ /**
1424
+ * ID of the project.
1425
+ * @format GUID
1426
+ */
1427
+ projectId: string;
1428
+ /**
1429
+ * Short-lived control credential for the project's app.
1430
+ *
1431
+ * When specified, builds in progress are refreshed before the response. Used for this call only.
1432
+ * It isn't stored or returned.
1433
+ * @maxLength 4096
1434
+ */
1435
+ himalayaControlToken?: string;
1436
+ }
1437
+ interface GetLatestMobileBuildsResponse {
1438
+ /**
1439
+ * Latest builds for each platform: iOS first, then Android.
1440
+ * @maxSize 2
1441
+ */
1442
+ platforms?: PlatformMobileBuilds[];
1443
+ /** Whether refreshing builds in progress failed. When `true`, the stored state is returned. */
1444
+ refreshFailed?: boolean;
1445
+ }
1446
+ /** The latest app-file builds of a project for one platform. */
1447
+ interface PlatformMobileBuilds {
1448
+ /** Platform. */
1449
+ platform?: PlatformWithLiterals;
1450
+ /** The last build that was started, in any status. Not returned when no build was started. */
1451
+ lastAttempt?: MobileBuild;
1452
+ /** The last build that succeeded. Its links can be expired. Not returned when no build succeeded. */
1453
+ lastSuccessfulBuild?: MobileBuild;
1454
+ }
1237
1455
 
1238
1456
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1239
1457
  getUrl: (context: any) => string;
@@ -1274,5 +1492,11 @@ declare function listProjects(): __PublicMethodMetaInfo<'GET', {}, ListProjectsR
1274
1492
  declare function getHimalayaAuthorization(): __PublicMethodMetaInfo<'GET', {
1275
1493
  projectId: string;
1276
1494
  }, GetHimalayaAuthorizationRequest$1, GetHimalayaAuthorizationRequest, GetHimalayaAuthorizationResponse$1, GetHimalayaAuthorizationResponse>;
1495
+ declare function startMobileBuild(): __PublicMethodMetaInfo<'POST', {
1496
+ projectId: string;
1497
+ }, StartMobileBuildRequest$1, StartMobileBuildRequest, StartMobileBuildResponse$1, StartMobileBuildResponse>;
1498
+ declare function getLatestMobileBuilds(): __PublicMethodMetaInfo<'POST', {
1499
+ projectId: string;
1500
+ }, GetLatestMobileBuildsRequest$1, GetLatestMobileBuildsRequest, GetLatestMobileBuildsResponse$1, GetLatestMobileBuildsResponse>;
1277
1501
 
1278
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AdditionalDataFilterMismatchType as AdditionalDataFilterMismatchTypeOriginal, type AdditionalDataFilterMissingKey as AdditionalDataFilterMissingKeyOriginal, type AdditionalDataFilterMustHaveKey as AdditionalDataFilterMustHaveKeyOriginal, type AdditionalDataMissingValue as AdditionalDataMissingValueOriginal, type AdditionalFilterCantBeEmpty as AdditionalFilterCantBeEmptyOriginal, type ConductByScopeResponse as ConductByScopeResponseOriginal, type ConductByScopesResponse as ConductByScopesResponseOriginal, type ConductResponse as ConductResponseOriginal, type ConductionException as ConductionExceptionOriginal, type ConductionResult as ConductionResultOriginal, type ConductionStatus as ConductionStatusOriginal, type ConductionStatusStatusOneOf as ConductionStatusStatusOneOfOriginal, type CreateAgentSessionRequest as CreateAgentSessionRequestOriginal, type CreateAgentSessionResponse as CreateAgentSessionResponseOriginal, type CreateProjectRequest as CreateProjectRequestOriginal, type CreateProjectResponse as CreateProjectResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteProjectRequest as DeleteProjectRequestOriginal, type DeleteProjectResponse as DeleteProjectResponseOriginal, type DidNotFindEligibleFilter as DidNotFindEligibleFilterOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DynamicConfigConductionResult as DynamicConfigConductionResultOriginal, type DynamicConfigStatus as DynamicConfigStatusOriginal, type DynamicConfigStatusStatusOneOf as DynamicConfigStatusStatusOneOfOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FailedToFetchExperiment as FailedToFetchExperimentOriginal, type FailedToRunToss as FailedToRunTossOriginal, type FilterNotImplemented as FilterNotImplementedOriginal, type FilterNotSupported as FilterNotSupportedOriginal, type FilterOperandEmpty as FilterOperandEmptyOriginal, type GeneralError as GeneralErrorOriginal, type GetAgentConfigRequest as GetAgentConfigRequestOriginal, type GetAgentConfigResponse as GetAgentConfigResponseOriginal, type GetAgentExperimentsRequest as GetAgentExperimentsRequestOriginal, type GetAgentExperimentsResponse as GetAgentExperimentsResponseOriginal, type GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal, type GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponseOriginal, type GetProjectRequest as GetProjectRequestOriginal, type GetProjectResponse as GetProjectResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidLibraryConfiguration as InvalidLibraryConfigurationOriginal, type IsEnabledFieldNotFound as IsEnabledFieldNotFoundOriginal, type IsEnabledFieldNotOfTypeBoolean as IsEnabledFieldNotOfTypeBooleanOriginal, type ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal, type ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal, type ListProjectsRequest as ListProjectsRequestOriginal, type ListProjectsResponse as ListProjectsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MissingElementInContextForBiProfileError as MissingElementInContextForBiProfileErrorOriginal, type MissingExperimentId as MissingExperimentIdOriginal, type MissingFilterTarget as MissingFilterTargetOriginal, type MissingPlugins as MissingPluginsOriginal, type MissingSeedKeyType as MissingSeedKeyTypeOriginal, type MissingSeed as MissingSeedOriginal, type MissingSeedType as MissingSeedTypeOriginal, type NoResultForConduction as NoResultForConductionOriginal, type NotImplemented as NotImplementedOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type PopulationError as PopulationErrorOriginal, type Project as ProjectOriginal, type ProjectPlanReady as ProjectPlanReadyOriginal, type ProjectResumeRequested as ProjectResumeRequestedOriginal, type ProjectStartRequested as ProjectStartRequestedOriginal, ProjectStatus as ProjectStatusOriginal, type ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal, type RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal, type RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal, type RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal, type RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal, type RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal, type RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreReleaseRequest as RestoreReleaseRequestOriginal, type RestoreReleaseResponse as RestoreReleaseResponseOriginal, type ResumeProjectRequest as ResumeProjectRequestOriginal, type ResumeProjectResponse as ResumeProjectResponseOriginal, SandboxStatus as SandboxStatusOriginal, type SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal, type SaveProjectDesignRequest as SaveProjectDesignRequestOriginal, type SaveProjectDesignResponse as SaveProjectDesignResponseOriginal, type StartProjectRequest as StartProjectRequestOriginal, type StartProjectResponse as StartProjectResponseOriginal, type SuccessfulResult as SuccessfulResultOriginal, type UpdateProjectRequest as UpdateProjectRequestOriginal, type UpdateProjectResponse as UpdateProjectResponseOriginal, type V1AdditionalDataFilterMismatchType as V1AdditionalDataFilterMismatchTypeOriginal, type V1AdditionalDataFilterMissingKey as V1AdditionalDataFilterMissingKeyOriginal, type V1AdditionalDataFilterMustHaveKey as V1AdditionalDataFilterMustHaveKeyOriginal, type V1AdditionalDataMissingValue as V1AdditionalDataMissingValueOriginal, type V1AdditionalFilterCantBeEmpty as V1AdditionalFilterCantBeEmptyOriginal, type V1ConductionException as V1ConductionExceptionOriginal, type V1DidNotFindEligibleFilter as V1DidNotFindEligibleFilterOriginal, type V1FailedToFetchExperiment as V1FailedToFetchExperimentOriginal, type V1FailedToRunToss as V1FailedToRunTossOriginal, type V1FilterNotImplemented as V1FilterNotImplementedOriginal, type V1FilterNotSupported as V1FilterNotSupportedOriginal, type V1FilterOperandEmpty as V1FilterOperandEmptyOriginal, type V1GeneralError as V1GeneralErrorOriginal, type V1MissingElementInContextForBiProfileError as V1MissingElementInContextForBiProfileErrorOriginal, type V1MissingExperimentId as V1MissingExperimentIdOriginal, type V1MissingFilterTarget as V1MissingFilterTargetOriginal, type V1MissingPlugins as V1MissingPluginsOriginal, type V1MissingSeedKeyType as V1MissingSeedKeyTypeOriginal, type V1MissingSeed as V1MissingSeedOriginal, type V1MissingSeedType as V1MissingSeedTypeOriginal, type V1NoResultForConduction as V1NoResultForConductionOriginal, type V1PopulationError as V1PopulationErrorOriginal, type V1SuccessfulResult as V1SuccessfulResultOriginal, Variant as VariantOriginal, type VariantValue as VariantValueOriginal, type VariantValueValueOneOf as VariantValueValueOneOfOriginal, type VariantWithLiterals as VariantWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createProject, deleteProject, getHimalayaAuthorization, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, restoreRelease, resumeProject, saveProjectDesign, updateProject };
1502
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AdditionalDataFilterMismatchType as AdditionalDataFilterMismatchTypeOriginal, type AdditionalDataFilterMissingKey as AdditionalDataFilterMissingKeyOriginal, type AdditionalDataFilterMustHaveKey as AdditionalDataFilterMustHaveKeyOriginal, type AdditionalDataMissingValue as AdditionalDataMissingValueOriginal, type AdditionalFilterCantBeEmpty as AdditionalFilterCantBeEmptyOriginal, AndroidFormat as AndroidFormatOriginal, type AndroidFormatWithLiterals as AndroidFormatWithLiteralsOriginal, type ConductByScopeResponse as ConductByScopeResponseOriginal, type ConductByScopesResponse as ConductByScopesResponseOriginal, type ConductResponse as ConductResponseOriginal, type ConductionException as ConductionExceptionOriginal, type ConductionResult as ConductionResultOriginal, type ConductionStatus as ConductionStatusOriginal, type ConductionStatusStatusOneOf as ConductionStatusStatusOneOfOriginal, type CreateAgentSessionRequest as CreateAgentSessionRequestOriginal, type CreateAgentSessionResponse as CreateAgentSessionResponseOriginal, type CreateProjectRequest as CreateProjectRequestOriginal, type CreateProjectResponse as CreateProjectResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type DeleteProjectRequest as DeleteProjectRequestOriginal, type DeleteProjectResponse as DeleteProjectResponseOriginal, type DidNotFindEligibleFilter as DidNotFindEligibleFilterOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DynamicConfigConductionResult as DynamicConfigConductionResultOriginal, type DynamicConfigStatus as DynamicConfigStatusOriginal, type DynamicConfigStatusStatusOneOf as DynamicConfigStatusStatusOneOfOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FailedMobileBuildPlatform as FailedMobileBuildPlatformOriginal, type FailedToFetchExperiment as FailedToFetchExperimentOriginal, type FailedToRunToss as FailedToRunTossOriginal, FailureKind as FailureKindOriginal, type FailureKindWithLiterals as FailureKindWithLiteralsOriginal, type FilterNotImplemented as FilterNotImplementedOriginal, type FilterNotSupported as FilterNotSupportedOriginal, type FilterOperandEmpty as FilterOperandEmptyOriginal, type GeneralError as GeneralErrorOriginal, type GetAgentConfigRequest as GetAgentConfigRequestOriginal, type GetAgentConfigResponse as GetAgentConfigResponseOriginal, type GetAgentExperimentsRequest as GetAgentExperimentsRequestOriginal, type GetAgentExperimentsResponse as GetAgentExperimentsResponseOriginal, type GetHimalayaAuthorizationRequest as GetHimalayaAuthorizationRequestOriginal, type GetHimalayaAuthorizationResponse as GetHimalayaAuthorizationResponseOriginal, type GetLatestMobileBuildsRequest as GetLatestMobileBuildsRequestOriginal, type GetLatestMobileBuildsResponse as GetLatestMobileBuildsResponseOriginal, type GetProjectRequest as GetProjectRequestOriginal, type GetProjectResponse as GetProjectResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidLibraryConfiguration as InvalidLibraryConfigurationOriginal, type IsEnabledFieldNotFound as IsEnabledFieldNotFoundOriginal, type IsEnabledFieldNotOfTypeBoolean as IsEnabledFieldNotOfTypeBooleanOriginal, type ListProjectsForCurrentUserRequest as ListProjectsForCurrentUserRequestOriginal, type ListProjectsForCurrentUserResponse as ListProjectsForCurrentUserResponseOriginal, type ListProjectsRequest as ListProjectsRequestOriginal, type ListProjectsResponse as ListProjectsResponseOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MissingElementInContextForBiProfileError as MissingElementInContextForBiProfileErrorOriginal, type MissingExperimentId as MissingExperimentIdOriginal, type MissingFilterTarget as MissingFilterTargetOriginal, type MissingPlugins as MissingPluginsOriginal, type MissingSeedKeyType as MissingSeedKeyTypeOriginal, type MissingSeed as MissingSeedOriginal, type MissingSeedType as MissingSeedTypeOriginal, type MobileBuild as MobileBuildOriginal, type NoResultForConduction as NoResultForConductionOriginal, type NotImplemented as NotImplementedOriginal, type PlatformMobileBuilds as PlatformMobileBuildsOriginal, Platform as PlatformOriginal, type PlatformWithLiterals as PlatformWithLiteralsOriginal, type PopulationError as PopulationErrorOriginal, type Project as ProjectOriginal, type ProjectPlanReady as ProjectPlanReadyOriginal, type ProjectResumeRequested as ProjectResumeRequestedOriginal, type ProjectStartRequested as ProjectStartRequestedOriginal, ProjectStatus as ProjectStatusOriginal, type ProjectStatusWithLiterals as ProjectStatusWithLiteralsOriginal, type RefreshAgentSiteTokenRequest as RefreshAgentSiteTokenRequestOriginal, type RefreshAgentSiteTokenResponse as RefreshAgentSiteTokenResponseOriginal, type RegenerateProjectIconRequest as RegenerateProjectIconRequestOriginal, type RegenerateProjectIconResponse as RegenerateProjectIconResponseOriginal, type RegenerateProjectNameRequest as RegenerateProjectNameRequestOriginal, type RegenerateProjectNameResponse as RegenerateProjectNameResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreReleaseRequest as RestoreReleaseRequestOriginal, type RestoreReleaseResponse as RestoreReleaseResponseOriginal, type ResumeProjectRequest as ResumeProjectRequestOriginal, type ResumeProjectResponse as ResumeProjectResponseOriginal, SandboxStatus as SandboxStatusOriginal, type SandboxStatusWithLiterals as SandboxStatusWithLiteralsOriginal, type SaveProjectDesignRequest as SaveProjectDesignRequestOriginal, type SaveProjectDesignResponse as SaveProjectDesignResponseOriginal, type StartMobileBuildRequest as StartMobileBuildRequestOriginal, type StartMobileBuildResponse as StartMobileBuildResponseOriginal, type StartProjectRequest as StartProjectRequestOriginal, type StartProjectResponse as StartProjectResponseOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type SuccessfulResult as SuccessfulResultOriginal, type UpdateProjectRequest as UpdateProjectRequestOriginal, type UpdateProjectResponse as UpdateProjectResponseOriginal, type V1AdditionalDataFilterMismatchType as V1AdditionalDataFilterMismatchTypeOriginal, type V1AdditionalDataFilterMissingKey as V1AdditionalDataFilterMissingKeyOriginal, type V1AdditionalDataFilterMustHaveKey as V1AdditionalDataFilterMustHaveKeyOriginal, type V1AdditionalDataMissingValue as V1AdditionalDataMissingValueOriginal, type V1AdditionalFilterCantBeEmpty as V1AdditionalFilterCantBeEmptyOriginal, type V1ConductionException as V1ConductionExceptionOriginal, type V1DidNotFindEligibleFilter as V1DidNotFindEligibleFilterOriginal, type V1FailedToFetchExperiment as V1FailedToFetchExperimentOriginal, type V1FailedToRunToss as V1FailedToRunTossOriginal, type V1FilterNotImplemented as V1FilterNotImplementedOriginal, type V1FilterNotSupported as V1FilterNotSupportedOriginal, type V1FilterOperandEmpty as V1FilterOperandEmptyOriginal, type V1GeneralError as V1GeneralErrorOriginal, type V1MissingElementInContextForBiProfileError as V1MissingElementInContextForBiProfileErrorOriginal, type V1MissingExperimentId as V1MissingExperimentIdOriginal, type V1MissingFilterTarget as V1MissingFilterTargetOriginal, type V1MissingPlugins as V1MissingPluginsOriginal, type V1MissingSeedKeyType as V1MissingSeedKeyTypeOriginal, type V1MissingSeed as V1MissingSeedOriginal, type V1MissingSeedType as V1MissingSeedTypeOriginal, type V1NoResultForConduction as V1NoResultForConductionOriginal, V1Platform as V1PlatformOriginal, type V1PlatformWithLiterals as V1PlatformWithLiteralsOriginal, type V1PopulationError as V1PopulationErrorOriginal, type V1SuccessfulResult as V1SuccessfulResultOriginal, Variant as VariantOriginal, type VariantValue as VariantValueOriginal, type VariantValueValueOneOf as VariantValueValueOneOfOriginal, type VariantWithLiterals as VariantWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, createProject, deleteProject, getHimalayaAuthorization, getLatestMobileBuilds, getProject, listProjects, regenerateProjectIcon, regenerateProjectName, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild, updateProject };
package/build/es/meta.mjs CHANGED
@@ -15,6 +15,22 @@ var TRANSFORM_PATHS_3 = [
15
15
  { path: "projects.createdDate" },
16
16
  { path: "projects.updatedDate" }
17
17
  ];
18
+ var TRANSFORM_PATHS_4 = [
19
+ { path: "builds.downloadExpiresDate" },
20
+ { path: "builds.createdDate" },
21
+ { path: "builds.builtDate" },
22
+ { path: "builds.updatedDate" }
23
+ ];
24
+ var TRANSFORM_PATHS_5 = [
25
+ { path: "platforms.lastAttempt.downloadExpiresDate" },
26
+ { path: "platforms.lastAttempt.createdDate" },
27
+ { path: "platforms.lastAttempt.builtDate" },
28
+ { path: "platforms.lastAttempt.updatedDate" },
29
+ { path: "platforms.lastSuccessfulBuild.downloadExpiresDate" },
30
+ { path: "platforms.lastSuccessfulBuild.createdDate" },
31
+ { path: "platforms.lastSuccessfulBuild.builtDate" },
32
+ { path: "platforms.lastSuccessfulBuild.updatedDate" }
33
+ ];
18
34
  function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
19
35
  const domainToMappings = {
20
36
  "manage._base_domain_": [
@@ -322,6 +338,60 @@ function getHimalayaAuthorization(payload) {
322
338
  }
323
339
  return __getHimalayaAuthorization;
324
340
  }
341
+ function startMobileBuild(payload) {
342
+ function __startMobileBuild({ host }) {
343
+ const metadata = {
344
+ entityFqdn: "wix.containers.projects.v1.project",
345
+ method: "POST",
346
+ methodFqn: "wix.containers.projects.v1.ContainersProjects.StartMobileBuild",
347
+ packageName: PACKAGE_NAME,
348
+ migrationOptions: {
349
+ optInTransformResponse: true
350
+ },
351
+ url: resolveWixContainersProjectsV1ContainersProjectsUrl({
352
+ protoPath: "/v1/projects/{projectId}/mobile-builds",
353
+ data: payload,
354
+ host
355
+ }),
356
+ data: payload,
357
+ transformResponse: (payload2) => transformPaths(payload2, [
358
+ {
359
+ transformFn: transformRESTTimestampToSDKTimestamp,
360
+ paths: TRANSFORM_PATHS_4
361
+ }
362
+ ])
363
+ };
364
+ return metadata;
365
+ }
366
+ return __startMobileBuild;
367
+ }
368
+ function getLatestMobileBuilds(payload) {
369
+ function __getLatestMobileBuilds({ host }) {
370
+ const metadata = {
371
+ entityFqdn: "wix.containers.projects.v1.project",
372
+ method: "POST",
373
+ methodFqn: "wix.containers.projects.v1.ContainersProjects.GetLatestMobileBuilds",
374
+ packageName: PACKAGE_NAME,
375
+ migrationOptions: {
376
+ optInTransformResponse: true
377
+ },
378
+ url: resolveWixContainersProjectsV1ContainersProjectsUrl({
379
+ protoPath: "/v1/projects/{projectId}/mobile-builds/latest",
380
+ data: payload,
381
+ host
382
+ }),
383
+ data: payload,
384
+ transformResponse: (payload2) => transformPaths(payload2, [
385
+ {
386
+ transformFn: transformRESTTimestampToSDKTimestamp,
387
+ paths: TRANSFORM_PATHS_5
388
+ }
389
+ ])
390
+ };
391
+ return metadata;
392
+ }
393
+ return __getLatestMobileBuilds;
394
+ }
325
395
 
326
396
  // src/containers-projects-v1-project-projects.types.ts
327
397
  var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
@@ -335,12 +405,12 @@ var SandboxStatus = /* @__PURE__ */ ((SandboxStatus2) => {
335
405
  SandboxStatus2["CREATING"] = "CREATING";
336
406
  return SandboxStatus2;
337
407
  })(SandboxStatus || {});
338
- var Platform = /* @__PURE__ */ ((Platform2) => {
339
- Platform2["IOS"] = "IOS";
340
- Platform2["ANDROID"] = "ANDROID";
341
- Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
342
- return Platform2;
343
- })(Platform || {});
408
+ var V1Platform = /* @__PURE__ */ ((V1Platform2) => {
409
+ V1Platform2["IOS"] = "IOS";
410
+ V1Platform2["ANDROID"] = "ANDROID";
411
+ V1Platform2["HIMALAYA_MOBILE"] = "HIMALAYA_MOBILE";
412
+ return V1Platform2;
413
+ })(V1Platform || {});
344
414
  var Variant = /* @__PURE__ */ ((Variant2) => {
345
415
  Variant2["VARIANT_UNSPECIFIED"] = "VARIANT_UNSPECIFIED";
346
416
  Variant2["A"] = "A";
@@ -379,6 +449,28 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
379
449
  WebhookIdentityType2["APP"] = "APP";
380
450
  return WebhookIdentityType2;
381
451
  })(WebhookIdentityType || {});
452
+ var Platform = /* @__PURE__ */ ((Platform2) => {
453
+ Platform2["IOS"] = "IOS";
454
+ Platform2["ANDROID"] = "ANDROID";
455
+ return Platform2;
456
+ })(Platform || {});
457
+ var AndroidFormat = /* @__PURE__ */ ((AndroidFormat2) => {
458
+ AndroidFormat2["APK"] = "APK";
459
+ AndroidFormat2["AAB"] = "AAB";
460
+ return AndroidFormat2;
461
+ })(AndroidFormat || {});
462
+ var Status = /* @__PURE__ */ ((Status2) => {
463
+ Status2["IN_PROGRESS"] = "IN_PROGRESS";
464
+ Status2["SUCCEEDED"] = "SUCCEEDED";
465
+ Status2["FAILED"] = "FAILED";
466
+ Status2["CANCELED"] = "CANCELED";
467
+ return Status2;
468
+ })(Status || {});
469
+ var FailureKind = /* @__PURE__ */ ((FailureKind2) => {
470
+ FailureKind2["SIGNING"] = "SIGNING";
471
+ FailureKind2["BUILD"] = "BUILD";
472
+ return FailureKind2;
473
+ })(FailureKind || {});
382
474
 
383
475
  // src/containers-projects-v1-project-projects.meta.ts
384
476
  function createProject2() {
@@ -579,15 +671,56 @@ function getHimalayaAuthorization2() {
579
671
  __originalResponseType: null
580
672
  };
581
673
  }
674
+ function startMobileBuild2() {
675
+ const payload = { projectId: ":projectId" };
676
+ const getRequestOptions = startMobileBuild(payload);
677
+ const getUrl = (context) => {
678
+ const { url } = getRequestOptions(context);
679
+ return url;
680
+ };
681
+ return {
682
+ getUrl,
683
+ httpMethod: "POST",
684
+ path: "/v1/projects/{projectId}/mobile-builds",
685
+ pathParams: { projectId: "projectId" },
686
+ __requestType: null,
687
+ __originalRequestType: null,
688
+ __responseType: null,
689
+ __originalResponseType: null
690
+ };
691
+ }
692
+ function getLatestMobileBuilds2() {
693
+ const payload = { projectId: ":projectId" };
694
+ const getRequestOptions = getLatestMobileBuilds(payload);
695
+ const getUrl = (context) => {
696
+ const { url } = getRequestOptions(context);
697
+ return url;
698
+ };
699
+ return {
700
+ getUrl,
701
+ httpMethod: "POST",
702
+ path: "/v1/projects/{projectId}/mobile-builds/latest",
703
+ pathParams: { projectId: "projectId" },
704
+ __requestType: null,
705
+ __originalRequestType: null,
706
+ __responseType: null,
707
+ __originalResponseType: null
708
+ };
709
+ }
582
710
  export {
711
+ AndroidFormat as AndroidFormatOriginal,
712
+ FailureKind as FailureKindOriginal,
583
713
  Platform as PlatformOriginal,
584
714
  ProjectStatus as ProjectStatusOriginal,
585
715
  SandboxStatus as SandboxStatusOriginal,
716
+ Status as StatusOriginal,
717
+ V1Platform as V1PlatformOriginal,
586
718
  Variant as VariantOriginal,
587
719
  WebhookIdentityType as WebhookIdentityTypeOriginal,
588
720
  createProject2 as createProject,
589
721
  deleteProject2 as deleteProject,
590
722
  getHimalayaAuthorization2 as getHimalayaAuthorization,
723
+ getLatestMobileBuilds2 as getLatestMobileBuilds,
591
724
  getProject2 as getProject,
592
725
  listProjects2 as listProjects,
593
726
  regenerateProjectIcon2 as regenerateProjectIcon,
@@ -595,6 +728,7 @@ export {
595
728
  restoreRelease2 as restoreRelease,
596
729
  resumeProject2 as resumeProject,
597
730
  saveProjectDesign2 as saveProjectDesign,
731
+ startMobileBuild2 as startMobileBuild,
598
732
  updateProject2 as updateProject
599
733
  };
600
734
  //# sourceMappingURL=meta.mjs.map