@wix/auto_sdk_containers_projects 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +22 -3
- package/build/cjs/index.js +66 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +47 -1
- package/build/cjs/index.typings.js +58 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -2
- package/build/cjs/meta.js +51 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +22 -3
- package/build/es/index.mjs +65 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +47 -1
- package/build/es/index.typings.mjs +57 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -2
- package/build/es/meta.mjs +50 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +22 -3
- package/build/internal/cjs/index.typings.d.ts +47 -1
- package/build/internal/cjs/meta.d.ts +31 -2
- package/build/internal/es/index.d.mts +22 -3
- package/build/internal/es/index.typings.d.mts +47 -1
- package/build/internal/es/meta.d.mts +31 -2
- package/package.json +3 -3
|
@@ -1449,6 +1449,32 @@ interface PlatformMobileBuilds {
|
|
|
1449
1449
|
/** The last build that succeeded. Its links can be expired. Not returned when no build succeeded. */
|
|
1450
1450
|
lastSuccessfulBuild?: MobileBuild;
|
|
1451
1451
|
}
|
|
1452
|
+
interface ClaimHimalayaAppRequest {
|
|
1453
|
+
/**
|
|
1454
|
+
* Site-tenanted Containers project to claim a Himalaya app for.
|
|
1455
|
+
* @format GUID
|
|
1456
|
+
*/
|
|
1457
|
+
projectId: string;
|
|
1458
|
+
}
|
|
1459
|
+
interface ClaimHimalayaAppResponse {
|
|
1460
|
+
/** Version of the authorization capability contract. Matches GetHimalayaAuthorizationResponse. */
|
|
1461
|
+
authorizationVersion?: number;
|
|
1462
|
+
/**
|
|
1463
|
+
* Trusted MetaSite selected from request identity context, never from the request body.
|
|
1464
|
+
* @format GUID
|
|
1465
|
+
*/
|
|
1466
|
+
metaSiteId?: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* Site-tenanted Containers project the app is bound to.
|
|
1469
|
+
* @format GUID
|
|
1470
|
+
*/
|
|
1471
|
+
projectId?: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* Canonical Himalaya app slug, newly claimed or already bound.
|
|
1474
|
+
* @maxLength 200
|
|
1475
|
+
*/
|
|
1476
|
+
canonicalApp?: string;
|
|
1477
|
+
}
|
|
1452
1478
|
/**
|
|
1453
1479
|
* Retrieves a project.
|
|
1454
1480
|
* @param projectId - ID of the project to retrieve.
|
|
@@ -1786,5 +1812,25 @@ interface GetLatestMobileBuildsOptions {
|
|
|
1786
1812
|
*/
|
|
1787
1813
|
himalayaControlToken?: string;
|
|
1788
1814
|
}
|
|
1815
|
+
/**
|
|
1816
|
+
* Claims the canonical Himalaya app for a NEW site-tenanted project, or returns the one already
|
|
1817
|
+
* bound to it.
|
|
1818
|
+
*
|
|
1819
|
+
* This exists so the BROWSER never asserts the (MetaSite, project) pair to Himalaya. Containers
|
|
1820
|
+
* is the authority on project -> MetaSite: it reads the project from its own store with a
|
|
1821
|
+
* consistent read and takes the MetaSite from this call's identity context, then claims
|
|
1822
|
+
* server-to-server with a site USER token minted for the initiating collaborator. Himalaya
|
|
1823
|
+
* recognises that token as minted by THIS service and trusts the pair on that basis. A dashboard
|
|
1824
|
+
* calling Himalaya directly could name another site's project UUID and reserve its global slug.
|
|
1825
|
+
*
|
|
1826
|
+
* Idempotent per pair: an already-claimed project returns its existing canonical app.
|
|
1827
|
+
* @param projectId - Site-tenanted Containers project to claim a Himalaya app for.
|
|
1828
|
+
* @public
|
|
1829
|
+
* @documentationMaturity preview
|
|
1830
|
+
* @requiredField projectId
|
|
1831
|
+
* @permissionId containers:projects:v1:project:claim_himalaya_app
|
|
1832
|
+
* @fqn wix.containers.projects.v1.ContainersProjects.ClaimHimalayaApp
|
|
1833
|
+
*/
|
|
1834
|
+
declare function claimHimalayaApp(projectId: string): Promise<NonNullablePaths<ClaimHimalayaAppResponse, `authorizationVersion` | `metaSiteId` | `projectId` | `canonicalApp`, 0>>;
|
|
1789
1835
|
|
|
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 };
|
|
1836
|
+
export { type AccountInfo, type ActionEvent, type AdditionalDataFilterMismatchType, type AdditionalDataFilterMissingKey, type AdditionalDataFilterMustHaveKey, type AdditionalDataMissingValue, type AdditionalFilterCantBeEmpty, AndroidFormat, type AndroidFormatWithLiterals, type ClaimHimalayaAppRequest, type ClaimHimalayaAppResponse, 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, claimHimalayaApp, getHimalayaAuthorization, getLatestMobileBuilds, getProject, restoreRelease, resumeProject, saveProjectDesign, startMobileBuild };
|
|
@@ -29,6 +29,7 @@ __export(index_typings_exports, {
|
|
|
29
29
|
V1Platform: () => V1Platform,
|
|
30
30
|
Variant: () => Variant,
|
|
31
31
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
32
|
+
claimHimalayaApp: () => claimHimalayaApp2,
|
|
32
33
|
createProject: () => createProject2,
|
|
33
34
|
deleteProject: () => deleteProject2,
|
|
34
35
|
getHimalayaAuthorization: () => getHimalayaAuthorization2,
|
|
@@ -94,6 +95,16 @@ function resolveWixContainersProjectsV1ContainersProjectsUrl(opts) {
|
|
|
94
95
|
{
|
|
95
96
|
srcPath: "/containers/projects",
|
|
96
97
|
destPath: ""
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
srcPath: "/containers/projects/v1/projects",
|
|
101
|
+
destPath: "/v1/projects"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
_: [
|
|
105
|
+
{
|
|
106
|
+
srcPath: "/containers/projects/v1/projects",
|
|
107
|
+
destPath: "/v1/projects"
|
|
97
108
|
}
|
|
98
109
|
]
|
|
99
110
|
};
|
|
@@ -443,6 +454,27 @@ function getLatestMobileBuilds(payload) {
|
|
|
443
454
|
}
|
|
444
455
|
return __getLatestMobileBuilds;
|
|
445
456
|
}
|
|
457
|
+
function claimHimalayaApp(payload) {
|
|
458
|
+
function __claimHimalayaApp({ host }) {
|
|
459
|
+
const metadata = {
|
|
460
|
+
entityFqdn: "wix.containers.projects.v1.project",
|
|
461
|
+
method: "POST",
|
|
462
|
+
methodFqn: "wix.containers.projects.v1.ContainersProjects.ClaimHimalayaApp",
|
|
463
|
+
packageName: PACKAGE_NAME,
|
|
464
|
+
migrationOptions: {
|
|
465
|
+
optInTransformResponse: true
|
|
466
|
+
},
|
|
467
|
+
url: resolveWixContainersProjectsV1ContainersProjectsUrl({
|
|
468
|
+
protoPath: "/v1/projects/{projectId}/himalaya-app-claim",
|
|
469
|
+
data: payload,
|
|
470
|
+
host
|
|
471
|
+
}),
|
|
472
|
+
data: payload
|
|
473
|
+
};
|
|
474
|
+
return metadata;
|
|
475
|
+
}
|
|
476
|
+
return __claimHimalayaApp;
|
|
477
|
+
}
|
|
446
478
|
|
|
447
479
|
// src/containers-projects-v1-project-projects.universal.ts
|
|
448
480
|
var ProjectStatus = /* @__PURE__ */ ((ProjectStatus2) => {
|
|
@@ -886,6 +918,31 @@ async function getLatestMobileBuilds2(projectId, options) {
|
|
|
886
918
|
throw transformedError;
|
|
887
919
|
}
|
|
888
920
|
}
|
|
921
|
+
async function claimHimalayaApp2(projectId) {
|
|
922
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
923
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
924
|
+
projectId
|
|
925
|
+
});
|
|
926
|
+
const reqOpts = claimHimalayaApp(payload);
|
|
927
|
+
sideEffects?.onSiteCall?.();
|
|
928
|
+
try {
|
|
929
|
+
const result = await httpClient.request(reqOpts);
|
|
930
|
+
sideEffects?.onSuccess?.(result);
|
|
931
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
932
|
+
} catch (err) {
|
|
933
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
934
|
+
err,
|
|
935
|
+
{
|
|
936
|
+
spreadPathsToArguments: {},
|
|
937
|
+
explicitPathsToArguments: { projectId: "$[0]" },
|
|
938
|
+
singleArgumentUnchanged: false
|
|
939
|
+
},
|
|
940
|
+
["projectId"]
|
|
941
|
+
);
|
|
942
|
+
sideEffects?.onError?.(err);
|
|
943
|
+
throw transformedError;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
889
946
|
// Annotate the CommonJS export names for ESM import in node:
|
|
890
947
|
0 && (module.exports = {
|
|
891
948
|
AndroidFormat,
|
|
@@ -897,6 +954,7 @@ async function getLatestMobileBuilds2(projectId, options) {
|
|
|
897
954
|
V1Platform,
|
|
898
955
|
Variant,
|
|
899
956
|
WebhookIdentityType,
|
|
957
|
+
claimHimalayaApp,
|
|
900
958
|
createProject,
|
|
901
959
|
deleteProject,
|
|
902
960
|
getHimalayaAuthorization,
|