@wix/auto_sdk_app-management_apps 1.0.5 → 1.0.6
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 +11 -30
- package/build/cjs/index.js +0 -131
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +32 -49
- package/build/cjs/index.typings.js +0 -113
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +18 -18
- package/build/cjs/meta.js +0 -95
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +11 -30
- package/build/es/index.mjs +0 -129
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +32 -49
- package/build/es/index.typings.mjs +0 -111
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +18 -18
- package/build/es/meta.mjs +0 -93
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -30
- package/build/internal/cjs/index.typings.d.ts +38 -50
- package/build/internal/cjs/meta.d.ts +24 -19
- package/build/internal/es/index.d.mts +11 -30
- package/build/internal/es/index.typings.d.mts +38 -50
- package/build/internal/es/meta.d.mts +24 -19
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ interface V1App {
|
|
|
13
13
|
_id?: string | null;
|
|
14
14
|
/**
|
|
15
15
|
* The display name shown to users and in App Market after publication, separate from the namespace, slug, and code identifier.
|
|
16
|
+
* Apps intended for publication in the Wix App Market should have a name of no more than 30 characters.
|
|
16
17
|
* On creation and update, `<`, `>`, double quotes, and apostrophes are escaped as
|
|
17
18
|
* `<`, `>`, `"`, and `'`. Responses contain the escaped value, which can be longer than the submitted name.
|
|
18
19
|
* @maxLength 50
|
|
@@ -64,7 +65,11 @@ interface V1App {
|
|
|
64
65
|
* @maxLength 50
|
|
65
66
|
*/
|
|
66
67
|
slug?: string | null;
|
|
67
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* URL settings for Advanced OAuth and post-installation navigation.
|
|
70
|
+
* Using Advanced OAuth through `appUri` and `redirectUris` is highly discouraged.
|
|
71
|
+
* See [Advanced OAuth](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/use-advanced-oauth).
|
|
72
|
+
*/
|
|
68
73
|
appUrls?: AppUrls;
|
|
69
74
|
/**
|
|
70
75
|
* Identity and creation channel of the user or app that created the app, including its source template when applicable.
|
|
@@ -85,7 +90,7 @@ interface V1App {
|
|
|
85
90
|
* @readonly
|
|
86
91
|
*/
|
|
87
92
|
_updatedDate?: Date | null;
|
|
88
|
-
/**
|
|
93
|
+
/** Automatically calculated, event-based tracking of unreleased changes, grouped by type. Updates asynchronously; see each flag for its tracking scope. */
|
|
89
94
|
unreleasedChanges?: UnreleasedChanges;
|
|
90
95
|
/** Indicates whether this app is a companion app assigned to a specific site or account. */
|
|
91
96
|
companionApp?: boolean | null;
|
|
@@ -140,19 +145,22 @@ declare enum AppType {
|
|
|
140
145
|
type AppTypeWithLiterals = AppType | 'SITE_APP' | 'API_KEY' | 'VELO_APP' | 'HEADLESS' | 'FUNCTION_ACTIVATION_APP';
|
|
141
146
|
interface AppUrls {
|
|
142
147
|
/**
|
|
143
|
-
* App URL used to initiate
|
|
148
|
+
* App URL used to initiate Advanced OAuth, whose use is highly discouraged.
|
|
144
149
|
* @format WEB_URL
|
|
145
150
|
*/
|
|
146
151
|
appUri?: string | null;
|
|
147
152
|
/**
|
|
148
|
-
* Allowed redirect URLs for
|
|
153
|
+
* Allowed redirect URLs for Advanced OAuth, whose use is highly discouraged.
|
|
149
154
|
* @format WEB_URL
|
|
150
155
|
* @maxSize 100
|
|
151
156
|
*/
|
|
152
157
|
redirectUris?: string[];
|
|
153
158
|
/**
|
|
154
159
|
* Allowed post-installation URLs, where Wix redirects the user after installing the app from an external install link.
|
|
155
|
-
*
|
|
160
|
+
* The `postInstallationUrl` must match an entry, unless it is a Wix-managed destination allowed separately.
|
|
161
|
+
* URLs are compared after normalizing whitespace and ignoring query strings and fragments.
|
|
162
|
+
* To replace this list without changing other URL settings, use Update App with
|
|
163
|
+
* `appUrls.postInstallationUrls` in the field mask.
|
|
156
164
|
* @format WEB_URL
|
|
157
165
|
* @maxSize 100
|
|
158
166
|
*/
|
|
@@ -529,8 +537,6 @@ interface GetAppRequest {
|
|
|
529
537
|
* @format GUID
|
|
530
538
|
*/
|
|
531
539
|
appId: string;
|
|
532
|
-
/** Whether to use a consistent read to retrieve the latest stored app data. Default: `false`. */
|
|
533
|
-
consistent?: boolean;
|
|
534
540
|
/**
|
|
535
541
|
* Additional fields to include in the response. Include `APP_SECRETS` to return `app.appSecrets`, which is omitted by default.
|
|
536
542
|
* Retrieving secrets requires authorization to access the app's secrets.
|
|
@@ -1009,7 +1015,7 @@ interface CreateSecondarySecretRequest {
|
|
|
1009
1015
|
* App ID.
|
|
1010
1016
|
* @format GUID
|
|
1011
1017
|
*/
|
|
1012
|
-
appId
|
|
1018
|
+
appId?: string;
|
|
1013
1019
|
/** Latest app revision, available from Get App. An outdated revision is rejected. */
|
|
1014
1020
|
revision?: string;
|
|
1015
1021
|
}
|
|
@@ -1055,9 +1061,9 @@ interface RevokeSecretRequest {
|
|
|
1055
1061
|
* App ID.
|
|
1056
1062
|
* @format GUID
|
|
1057
1063
|
*/
|
|
1058
|
-
appId
|
|
1064
|
+
appId?: string;
|
|
1059
1065
|
/** Credential to revoke. The app must have both a previous and a replacement secret. */
|
|
1060
|
-
secretToRevoke
|
|
1066
|
+
secretToRevoke?: SecretToRevokeWithLiterals;
|
|
1061
1067
|
}
|
|
1062
1068
|
/** Credential to revoke during app-secret rotation. */
|
|
1063
1069
|
declare enum SecretToRevoke {
|
|
@@ -1302,8 +1308,6 @@ declare function createApp(app: V1App): Promise<NonNullablePaths<V1App, `name` |
|
|
|
1302
1308
|
*/
|
|
1303
1309
|
declare function getApp(appId: string, options?: GetAppOptions): Promise<NonNullablePaths<V1App, `name` | `appSecrets.appSecret` | `appSecrets.webhookPublicKey` | `appSecrets.secondarySecretActive` | `status` | `appUrls.redirectUris` | `appUrls.postInstallationUrls` | `createdBy._id` | `createdBy.type` | `installationPreferences.openComponentIdOptions.componentId` | `installationPreferences.overridePostInstallationRedirect` | `installationPreferences.openButtonAction` | `installationPreferences.uninstallAction` | `unreleasedChanges.componentsChanges` | `unreleasedChanges.appTranslationsChanges` | `unreleasedChanges.componentsTranslationChanges` | `unreleasedChanges.appPermissionsChanges` | `unreleasedChanges.appEntityChanges`, 2>>;
|
|
1304
1310
|
interface GetAppOptions {
|
|
1305
|
-
/** Whether to use a consistent read to retrieve the latest stored app data. Default: `false`. */
|
|
1306
|
-
consistent?: boolean;
|
|
1307
1311
|
/**
|
|
1308
1312
|
* Additional fields to include in the response. Include `APP_SECRETS` to return `app.appSecrets`, which is omitted by default.
|
|
1309
1313
|
* Retrieving secrets requires authorization to access the app's secrets.
|
|
@@ -1318,11 +1322,17 @@ interface GetAppOptions {
|
|
|
1318
1322
|
* when updating the app. This ensures you're working with the latest app and prevents unintended overwrites.
|
|
1319
1323
|
* Supports partial updates; specify the app's ID and the fields to change.
|
|
1320
1324
|
*
|
|
1325
|
+
* In REST requests, explicitly set `mask.paths` to only the fields to
|
|
1326
|
+
* change, such as `["name"]`, excluding `id` and `revision`. Supply the app ID in the URL
|
|
1327
|
+
* and the current revision in the request body.
|
|
1328
|
+
* The published SDK's `apps.updateApp()` does not expose a field-mask argument. Use the
|
|
1329
|
+
* SDK-authenticated REST workaround shown in this method's SDK example, which sends an
|
|
1330
|
+
* explicit mask with `fetchWithAuth` from `@wix/sdk/context`.
|
|
1331
|
+
*
|
|
1321
1332
|
* This method cannot update `appSecrets`, `accountId`, `namespace`, `slug`, `createdBy`,
|
|
1322
1333
|
* `companionApp`, or `codeIdentifier`. Including any of these fields or their nested fields in the
|
|
1323
1334
|
* request causes the entire request to fail; they aren't silently ignored.
|
|
1324
|
-
* Use Set Namespace to assign a namespace and Generate Slug to generate a slug.
|
|
1325
|
-
* secrets, use Create Secondary Secret and Revoke Secret. This method does not support changing
|
|
1335
|
+
* Use Set Namespace to assign a namespace and Generate Slug to generate a slug. This method does not support changing
|
|
1326
1336
|
* the owning account, creator, companion-app designation, or code identifier.
|
|
1327
1337
|
*
|
|
1328
1338
|
* Changing `status` requires additional status-change authorization beyond permission to update other fields.
|
|
@@ -1347,6 +1357,7 @@ interface UpdateApp {
|
|
|
1347
1357
|
_id?: string | null;
|
|
1348
1358
|
/**
|
|
1349
1359
|
* The display name shown to users and in App Market after publication, separate from the namespace, slug, and code identifier.
|
|
1360
|
+
* Apps intended for publication in the Wix App Market should have a name of no more than 30 characters.
|
|
1350
1361
|
* On creation and update, `<`, `>`, double quotes, and apostrophes are escaped as
|
|
1351
1362
|
* `<`, `>`, `"`, and `'`. Responses contain the escaped value, which can be longer than the submitted name.
|
|
1352
1363
|
* @maxLength 50
|
|
@@ -1398,7 +1409,11 @@ interface UpdateApp {
|
|
|
1398
1409
|
* @maxLength 50
|
|
1399
1410
|
*/
|
|
1400
1411
|
slug?: string | null;
|
|
1401
|
-
/**
|
|
1412
|
+
/**
|
|
1413
|
+
* URL settings for Advanced OAuth and post-installation navigation.
|
|
1414
|
+
* Using Advanced OAuth through `appUri` and `redirectUris` is highly discouraged.
|
|
1415
|
+
* See [Advanced OAuth](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/use-advanced-oauth).
|
|
1416
|
+
*/
|
|
1402
1417
|
appUrls?: AppUrls;
|
|
1403
1418
|
/**
|
|
1404
1419
|
* Identity and creation channel of the user or app that created the app, including its source template when applicable.
|
|
@@ -1419,7 +1434,7 @@ interface UpdateApp {
|
|
|
1419
1434
|
* @readonly
|
|
1420
1435
|
*/
|
|
1421
1436
|
_updatedDate?: Date | null;
|
|
1422
|
-
/**
|
|
1437
|
+
/** Automatically calculated, event-based tracking of unreleased changes, grouped by type. Updates asynchronously; see each flag for its tracking scope. */
|
|
1423
1438
|
unreleasedChanges?: UnreleasedChanges;
|
|
1424
1439
|
/** Indicates whether this app is a companion app assigned to a specific site or account. */
|
|
1425
1440
|
companionApp?: boolean | null;
|
|
@@ -1505,37 +1520,5 @@ interface SetNamespaceOptions {
|
|
|
1505
1520
|
/** Whether to derive the namespace from the owning account or company. Default: `ACCOUNT`. */
|
|
1506
1521
|
type?: NamespaceTypeWithLiterals;
|
|
1507
1522
|
}
|
|
1508
|
-
/**
|
|
1509
|
-
* Shares WIX_DEVELOPERS.MODIFY_APP with the sibling app-write RPCs, which declare no audience
|
|
1510
|
-
* (adding one here would break consistent-audience-for-shared-permission across all of them).
|
|
1511
|
-
* Renaming the permission would change who is actually authorized, so it stays as-is —
|
|
1512
|
-
* the real check is the MANUAL validateUpdateAppPermission(...) in code.
|
|
1513
|
-
* @param appId - App ID.
|
|
1514
|
-
* @public
|
|
1515
|
-
* @documentationMaturity preview
|
|
1516
|
-
* @requiredField appId
|
|
1517
|
-
* @permissionId WIX_DEVELOPERS.MODIFY_APP
|
|
1518
|
-
* @fqn wix.devcenter.apps.v1.AppsService.CreateSecondarySecret
|
|
1519
|
-
*/
|
|
1520
|
-
declare function createSecondarySecret(appId: string, options?: CreateSecondarySecretOptions): Promise<NonNullablePaths<CreateSecondarySecretResponse, `app.name` | `app.appSecrets.appSecret` | `app.appSecrets.webhookPublicKey` | `app.appSecrets.secondarySecretActive` | `app.status` | `app.appUrls.redirectUris` | `app.appUrls.postInstallationUrls` | `app.createdBy._id` | `app.createdBy.type` | `app.installationPreferences.openComponentIdOptions.componentId` | `app.installationPreferences.overridePostInstallationRedirect` | `app.installationPreferences.openButtonAction` | `app.installationPreferences.uninstallAction` | `app.unreleasedChanges.componentsChanges` | `app.unreleasedChanges.appTranslationsChanges` | `app.unreleasedChanges.componentsTranslationChanges` | `app.unreleasedChanges.appPermissionsChanges` | `app.unreleasedChanges.appEntityChanges`, 3>>;
|
|
1521
|
-
interface CreateSecondarySecretOptions {
|
|
1522
|
-
/** Latest app revision, available from Get App. An outdated revision is rejected. */
|
|
1523
|
-
revision?: string;
|
|
1524
|
-
}
|
|
1525
|
-
/**
|
|
1526
|
-
* Shares WIX_DEVELOPERS.MODIFY_APP with the sibling app-write RPCs, which declare no audience
|
|
1527
|
-
* (adding one here would break consistent-audience-for-shared-permission across all of them).
|
|
1528
|
-
* Renaming the permission would change who is actually authorized, so it stays as-is —
|
|
1529
|
-
* the real check is the MANUAL validateUpdateAppPermission(...) in code.
|
|
1530
|
-
* @param appId - App ID.
|
|
1531
|
-
* @param secretToRevoke - Credential to revoke. The app must have both a previous and a replacement secret.
|
|
1532
|
-
* @public
|
|
1533
|
-
* @documentationMaturity preview
|
|
1534
|
-
* @requiredField appId
|
|
1535
|
-
* @requiredField secretToRevoke
|
|
1536
|
-
* @permissionId WIX_DEVELOPERS.MODIFY_APP
|
|
1537
|
-
* @fqn wix.devcenter.apps.v1.AppsService.RevokeSecret
|
|
1538
|
-
*/
|
|
1539
|
-
declare function revokeSecret(appId: string, secretToRevoke: SecretToRevokeWithLiterals): Promise<RevokeSecretResponse>;
|
|
1540
1523
|
|
|
1541
|
-
export { type AccountInfo, Action, type ActionEvent, type ActionWithLiterals, type ActivateSecondarySecretRequest, type ActivateSecondarySecretResponse, type AddressLocation, type App, type AppChangedEvent, type AppComponentMetadata, type AppOwnerChangedEvent, type AppSecrets, type AppSlugChanged, AppType, type AppTypeWithLiterals, type AppUriMessage, type AppUrls, type AppUrlsChangedInOldServiceEvent, type AppUrlsChangedInOldServiceEventChangedUrlOneOf, type AppVersionApproved, type AppVersionArchived, type AppVersionCreated, type AppVersionDeclined, type AppVersionDraftChanged, type AppVersionPublished, type AppVersionReleased, type AppVersionStateChanged, type AppVersionStateChangedStateOneOf, type AppVersionSubmitted, type AssociateServiceAppRequest, type AssociateServiceAppResponse, type CompanionAppOptions, type ConsentOptions, type ContactEmails, type CreateAppRequest, type CreateAppResponse, type
|
|
1524
|
+
export { type AccountInfo, Action, type ActionEvent, type ActionWithLiterals, type ActivateSecondarySecretRequest, type ActivateSecondarySecretResponse, type AddressLocation, type App, type AppChangedEvent, type AppComponentMetadata, type AppOwnerChangedEvent, type AppSecrets, type AppSlugChanged, AppType, type AppTypeWithLiterals, type AppUriMessage, type AppUrls, type AppUrlsChangedInOldServiceEvent, type AppUrlsChangedInOldServiceEventChangedUrlOneOf, type AppVersionApproved, type AppVersionArchived, type AppVersionCreated, type AppVersionDeclined, type AppVersionDraftChanged, type AppVersionPublished, type AppVersionReleased, type AppVersionStateChanged, type AppVersionStateChangedStateOneOf, type AppVersionSubmitted, type AssociateServiceAppRequest, type AssociateServiceAppResponse, type CompanionAppOptions, type ConsentOptions, type ContactEmails, type CreateAppRequest, type CreateAppResponse, type CreateSecondarySecretRequest, type CreateSecondarySecretResponse, type CreateServiceAppRequest, type CreateServiceAppResponse, type CreatedBy, CreatedByType, type CreatedByTypeWithLiterals, type CursorPaging, type Cursors, type DeleteAppRequest, type DeleteAppResponse, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ForceCascadeDeleteAppDecision, type ForceCascadeDeleteAppDecisionWithLiterals, type ForceCascadeDeleteAppRequest, type ForceCascadeDeleteAppResponse, type GenerateSlugRequest, type GenerateSlugResponse, type GetAppOptions, type GetAppRequest, type GetAppResponse, type GetNamespaceSuggestionByNameOptions, type GetNamespaceSuggestionByNameRequest, type GetNamespaceSuggestionByNameResponse, type GetNamespaceSuggestionOptions, type GetNamespaceSuggestionRequest, type GetNamespaceSuggestionResponse, type HostAppConfig, type IdentificationData, type IdentificationDataIdOneOf, type InstallationPreferences, type InstallationPreferencesOpenButtonOptionsOneOf, LoginPolicy, type LoginPolicyWithLiterals, type MessageEnvelope, NamespaceType, type NamespaceTypeWithLiterals, OpenButtonAction, type OpenButtonActionWithLiterals, type OpenComponentId, type Paging, type PagingMetadataV2, type PartialVersionOptions, PermissionLevel, type PermissionLevelWithLiterals, type QueryAppRequest, type QueryAppResponse, type QueryV2, type QueryV2PagingMethodOneOf, RedirectTarget, type RedirectTargetWithLiterals, type RedirectUrlMessage, type RenameCodeIdentifierRequest, type RenameCodeIdentifierResponse, type RenameSlugRequest, type RenameSlugResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type RevokeSecretRequest, type RevokeSecretResponse, type RollbackSecretRequest, type RollbackSecretResponse, type RotateSecretRequest, type RotateSecretResponse, SecretToRevoke, type SecretToRevokeWithLiterals, type SetAppOwnerRequest, type SetAppOwnerResponse, type SetCacheableAppRequest, type SetCacheableAppResponse, type SetCodeIdentifierRequest, type SetCodeIdentifierResponse, type SetCompanionAppOptionsRequest, type SetCompanionAppOptionsResponse, type SetComponentsMetadataRequest, type SetComponentsMetadataResponse, type SetExceededSizeRequest, type SetExceededSizeResponse, type SetHipaaCompliantRequest, type SetHipaaCompliantResponse, type SetNamespaceOptions, type SetNamespaceRequest, type SetNamespaceResponse, type SetOwnershipTagRequest, type SetOwnershipTagResponse, type SetPrivateAppRequest, type SetPrivateAppResponse, ShowConsentBehaviour, type ShowConsentBehaviourWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type SuggestCodeIdentifierRequest, type SuggestCodeIdentifierResponse, TenantType, type TenantTypeWithLiterals, UninstallActions, type UninstallActionsWithLiterals, type UnreleasedChanges, type UpdateApp, type UpdateAppRequest, type UpdateAppResponse, type UpdateHostAppConfigRequest, type UpdateHostAppConfigResponse, type V1App, VersionStatus, type VersionStatusWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, createApp, generateSlug, getApp, getNamespaceSuggestion, getNamespaceSuggestionByName, setNamespace, updateApp };
|
|
@@ -18,7 +18,6 @@ var TRANSFORM_PATHS_0 = [
|
|
|
18
18
|
{ path: "app.appSecrets.previousSecretRevokeDate" }
|
|
19
19
|
];
|
|
20
20
|
var TRANSFORM_PATHS_1 = [{ path: "mask" }];
|
|
21
|
-
var TRANSFORM_PATHS_2 = [{ path: "previousSecretRevokeAt" }];
|
|
22
21
|
function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
|
|
23
22
|
const domainToMappings = {
|
|
24
23
|
"editor._base_domain_": [
|
|
@@ -306,60 +305,6 @@ function setNamespace(payload) {
|
|
|
306
305
|
}
|
|
307
306
|
return __setNamespace;
|
|
308
307
|
}
|
|
309
|
-
function createSecondarySecret(payload) {
|
|
310
|
-
function __createSecondarySecret({ host }) {
|
|
311
|
-
const metadata = {
|
|
312
|
-
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
313
|
-
method: "POST",
|
|
314
|
-
methodFqn: "wix.devcenter.apps.v1.AppsService.CreateSecondarySecret",
|
|
315
|
-
packageName: PACKAGE_NAME,
|
|
316
|
-
migrationOptions: {
|
|
317
|
-
optInTransformResponse: true
|
|
318
|
-
},
|
|
319
|
-
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
320
|
-
protoPath: "/v1/apps/{appId}/secrets/secondary",
|
|
321
|
-
data: payload,
|
|
322
|
-
host
|
|
323
|
-
}),
|
|
324
|
-
data: payload,
|
|
325
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
326
|
-
{
|
|
327
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
328
|
-
paths: TRANSFORM_PATHS_0
|
|
329
|
-
}
|
|
330
|
-
])
|
|
331
|
-
};
|
|
332
|
-
return metadata;
|
|
333
|
-
}
|
|
334
|
-
return __createSecondarySecret;
|
|
335
|
-
}
|
|
336
|
-
function revokeSecret(payload) {
|
|
337
|
-
function __revokeSecret({ host }) {
|
|
338
|
-
const metadata = {
|
|
339
|
-
entityFqdn: "wix.devcenter.apps.v1.app",
|
|
340
|
-
method: "POST",
|
|
341
|
-
methodFqn: "wix.devcenter.apps.v1.AppsService.RevokeSecret",
|
|
342
|
-
packageName: PACKAGE_NAME,
|
|
343
|
-
migrationOptions: {
|
|
344
|
-
optInTransformResponse: true
|
|
345
|
-
},
|
|
346
|
-
url: resolveWixDevcenterAppsV1AppsServiceUrl({
|
|
347
|
-
protoPath: "/v1/apps/{appId}/secrets/revoke",
|
|
348
|
-
data: payload,
|
|
349
|
-
host
|
|
350
|
-
}),
|
|
351
|
-
data: payload,
|
|
352
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
353
|
-
{
|
|
354
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
355
|
-
paths: TRANSFORM_PATHS_2
|
|
356
|
-
}
|
|
357
|
-
])
|
|
358
|
-
};
|
|
359
|
-
return metadata;
|
|
360
|
-
}
|
|
361
|
-
return __revokeSecret;
|
|
362
|
-
}
|
|
363
308
|
|
|
364
309
|
// src/devcenter-apps-v1-app-apps.universal.ts
|
|
365
310
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -508,7 +453,6 @@ async function getApp2(appId, options) {
|
|
|
508
453
|
const { httpClient, sideEffects } = arguments[2];
|
|
509
454
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
510
455
|
appId,
|
|
511
|
-
consistent: options?.consistent,
|
|
512
456
|
additionalFields: options?.additionalFields
|
|
513
457
|
});
|
|
514
458
|
const reqOpts = getApp(payload);
|
|
@@ -524,7 +468,6 @@ async function getApp2(appId, options) {
|
|
|
524
468
|
spreadPathsToArguments: {},
|
|
525
469
|
explicitPathsToArguments: {
|
|
526
470
|
appId: "$[0]",
|
|
527
|
-
consistent: "$[1].consistent",
|
|
528
471
|
additionalFields: "$[1].additionalFields"
|
|
529
472
|
},
|
|
530
473
|
singleArgumentUnchanged: false
|
|
@@ -666,58 +609,6 @@ async function setNamespace2(appId, appName, options) {
|
|
|
666
609
|
throw transformedError;
|
|
667
610
|
}
|
|
668
611
|
}
|
|
669
|
-
async function createSecondarySecret2(appId, options) {
|
|
670
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
671
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
672
|
-
appId,
|
|
673
|
-
revision: options?.revision
|
|
674
|
-
});
|
|
675
|
-
const reqOpts = createSecondarySecret(payload);
|
|
676
|
-
sideEffects?.onSiteCall?.();
|
|
677
|
-
try {
|
|
678
|
-
const result = await httpClient.request(reqOpts);
|
|
679
|
-
sideEffects?.onSuccess?.(result);
|
|
680
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
681
|
-
} catch (err) {
|
|
682
|
-
const transformedError = sdkTransformError(
|
|
683
|
-
err,
|
|
684
|
-
{
|
|
685
|
-
spreadPathsToArguments: {},
|
|
686
|
-
explicitPathsToArguments: { appId: "$[0]", revision: "$[1].revision" },
|
|
687
|
-
singleArgumentUnchanged: false
|
|
688
|
-
},
|
|
689
|
-
["appId", "options"]
|
|
690
|
-
);
|
|
691
|
-
sideEffects?.onError?.(err);
|
|
692
|
-
throw transformedError;
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
async function revokeSecret2(appId, secretToRevoke) {
|
|
696
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
697
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
698
|
-
appId,
|
|
699
|
-
secretToRevoke
|
|
700
|
-
});
|
|
701
|
-
const reqOpts = revokeSecret(payload);
|
|
702
|
-
sideEffects?.onSiteCall?.();
|
|
703
|
-
try {
|
|
704
|
-
const result = await httpClient.request(reqOpts);
|
|
705
|
-
sideEffects?.onSuccess?.(result);
|
|
706
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
707
|
-
} catch (err) {
|
|
708
|
-
const transformedError = sdkTransformError(
|
|
709
|
-
err,
|
|
710
|
-
{
|
|
711
|
-
spreadPathsToArguments: {},
|
|
712
|
-
explicitPathsToArguments: { appId: "$[0]", secretToRevoke: "$[1]" },
|
|
713
|
-
singleArgumentUnchanged: false
|
|
714
|
-
},
|
|
715
|
-
["appId", "secretToRevoke"]
|
|
716
|
-
);
|
|
717
|
-
sideEffects?.onError?.(err);
|
|
718
|
-
throw transformedError;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
612
|
export {
|
|
722
613
|
Action,
|
|
723
614
|
AppType,
|
|
@@ -738,12 +629,10 @@ export {
|
|
|
738
629
|
VersionStatus,
|
|
739
630
|
WebhookIdentityType,
|
|
740
631
|
createApp2 as createApp,
|
|
741
|
-
createSecondarySecret2 as createSecondarySecret,
|
|
742
632
|
generateSlug2 as generateSlug,
|
|
743
633
|
getApp2 as getApp,
|
|
744
634
|
getNamespaceSuggestion2 as getNamespaceSuggestion,
|
|
745
635
|
getNamespaceSuggestionByName2 as getNamespaceSuggestionByName,
|
|
746
|
-
revokeSecret2 as revokeSecret,
|
|
747
636
|
setNamespace2 as setNamespace,
|
|
748
637
|
updateApp2 as updateApp
|
|
749
638
|
};
|