@wix/auto_sdk_app-management_apps 1.0.4 → 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.
@@ -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
  * `&lt;`, `&gt;`, `&quot;`, and `&apos;`. 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
- /** URLs used by the app's OAuth flow. */
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
- /** Event-based tracking of unreleased changes, grouped by type. Updates asynchronously; see each flag for its tracking scope. */
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 the OAuth flow.
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 the app's OAuth flow.
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
- * A `postInstallationUrl` matches an entry when they are equal, ignoring the query string.
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: string;
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: string;
1064
+ appId?: string;
1059
1065
  /** Credential to revoke. The app must have both a previous and a replacement secret. */
1060
- secretToRevoke: SecretToRevokeWithLiterals;
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. To rotate app
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
  * `&lt;`, `&gt;`, `&quot;`, and `&apos;`. 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
- /** URLs used by the app's OAuth flow. */
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
- /** Event-based tracking of unreleased changes, grouped by type. Updates asynchronously; see each flag for its tracking scope. */
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 CreateSecondarySecretOptions, 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, createSecondarySecret, generateSlug, getApp, getNamespaceSuggestion, getNamespaceSuggestionByName, revokeSecret, setNamespace, updateApp };
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_": [
@@ -108,6 +107,12 @@ function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
108
107
  srcPath: "/apps/v1/apps",
109
108
  destPath: "/v1/apps"
110
109
  }
110
+ ],
111
+ "api._api_base_domain_": [
112
+ {
113
+ srcPath: "/apps-service",
114
+ destPath: ""
115
+ }
111
116
  ]
112
117
  };
113
118
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -300,60 +305,6 @@ function setNamespace(payload) {
300
305
  }
301
306
  return __setNamespace;
302
307
  }
303
- function createSecondarySecret(payload) {
304
- function __createSecondarySecret({ host }) {
305
- const metadata = {
306
- entityFqdn: "wix.devcenter.apps.v1.app",
307
- method: "POST",
308
- methodFqn: "wix.devcenter.apps.v1.AppsService.CreateSecondarySecret",
309
- packageName: PACKAGE_NAME,
310
- migrationOptions: {
311
- optInTransformResponse: true
312
- },
313
- url: resolveWixDevcenterAppsV1AppsServiceUrl({
314
- protoPath: "/v1/apps/{appId}/secrets/secondary",
315
- data: payload,
316
- host
317
- }),
318
- data: payload,
319
- transformResponse: (payload2) => transformPaths(payload2, [
320
- {
321
- transformFn: transformRESTTimestampToSDKTimestamp,
322
- paths: TRANSFORM_PATHS_0
323
- }
324
- ])
325
- };
326
- return metadata;
327
- }
328
- return __createSecondarySecret;
329
- }
330
- function revokeSecret(payload) {
331
- function __revokeSecret({ host }) {
332
- const metadata = {
333
- entityFqdn: "wix.devcenter.apps.v1.app",
334
- method: "POST",
335
- methodFqn: "wix.devcenter.apps.v1.AppsService.RevokeSecret",
336
- packageName: PACKAGE_NAME,
337
- migrationOptions: {
338
- optInTransformResponse: true
339
- },
340
- url: resolveWixDevcenterAppsV1AppsServiceUrl({
341
- protoPath: "/v1/apps/{appId}/secrets/revoke",
342
- data: payload,
343
- host
344
- }),
345
- data: payload,
346
- transformResponse: (payload2) => transformPaths(payload2, [
347
- {
348
- transformFn: transformRESTTimestampToSDKTimestamp,
349
- paths: TRANSFORM_PATHS_2
350
- }
351
- ])
352
- };
353
- return metadata;
354
- }
355
- return __revokeSecret;
356
- }
357
308
 
358
309
  // src/devcenter-apps-v1-app-apps.universal.ts
359
310
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -502,7 +453,6 @@ async function getApp2(appId, options) {
502
453
  const { httpClient, sideEffects } = arguments[2];
503
454
  const payload = renameKeysFromSDKRequestToRESTRequest({
504
455
  appId,
505
- consistent: options?.consistent,
506
456
  additionalFields: options?.additionalFields
507
457
  });
508
458
  const reqOpts = getApp(payload);
@@ -518,7 +468,6 @@ async function getApp2(appId, options) {
518
468
  spreadPathsToArguments: {},
519
469
  explicitPathsToArguments: {
520
470
  appId: "$[0]",
521
- consistent: "$[1].consistent",
522
471
  additionalFields: "$[1].additionalFields"
523
472
  },
524
473
  singleArgumentUnchanged: false
@@ -660,58 +609,6 @@ async function setNamespace2(appId, appName, options) {
660
609
  throw transformedError;
661
610
  }
662
611
  }
663
- async function createSecondarySecret2(appId, options) {
664
- const { httpClient, sideEffects } = arguments[2];
665
- const payload = renameKeysFromSDKRequestToRESTRequest({
666
- appId,
667
- revision: options?.revision
668
- });
669
- const reqOpts = createSecondarySecret(payload);
670
- sideEffects?.onSiteCall?.();
671
- try {
672
- const result = await httpClient.request(reqOpts);
673
- sideEffects?.onSuccess?.(result);
674
- return renameKeysFromRESTResponseToSDKResponse(result.data);
675
- } catch (err) {
676
- const transformedError = sdkTransformError(
677
- err,
678
- {
679
- spreadPathsToArguments: {},
680
- explicitPathsToArguments: { appId: "$[0]", revision: "$[1].revision" },
681
- singleArgumentUnchanged: false
682
- },
683
- ["appId", "options"]
684
- );
685
- sideEffects?.onError?.(err);
686
- throw transformedError;
687
- }
688
- }
689
- async function revokeSecret2(appId, secretToRevoke) {
690
- const { httpClient, sideEffects } = arguments[2];
691
- const payload = renameKeysFromSDKRequestToRESTRequest({
692
- appId,
693
- secretToRevoke
694
- });
695
- const reqOpts = revokeSecret(payload);
696
- sideEffects?.onSiteCall?.();
697
- try {
698
- const result = await httpClient.request(reqOpts);
699
- sideEffects?.onSuccess?.(result);
700
- return renameKeysFromRESTResponseToSDKResponse(result.data);
701
- } catch (err) {
702
- const transformedError = sdkTransformError(
703
- err,
704
- {
705
- spreadPathsToArguments: {},
706
- explicitPathsToArguments: { appId: "$[0]", secretToRevoke: "$[1]" },
707
- singleArgumentUnchanged: false
708
- },
709
- ["appId", "secretToRevoke"]
710
- );
711
- sideEffects?.onError?.(err);
712
- throw transformedError;
713
- }
714
- }
715
612
  export {
716
613
  Action,
717
614
  AppType,
@@ -732,12 +629,10 @@ export {
732
629
  VersionStatus,
733
630
  WebhookIdentityType,
734
631
  createApp2 as createApp,
735
- createSecondarySecret2 as createSecondarySecret,
736
632
  generateSlug2 as generateSlug,
737
633
  getApp2 as getApp,
738
634
  getNamespaceSuggestion2 as getNamespaceSuggestion,
739
635
  getNamespaceSuggestionByName2 as getNamespaceSuggestionByName,
740
- revokeSecret2 as revokeSecret,
741
636
  setNamespace2 as setNamespace,
742
637
  updateApp2 as updateApp
743
638
  };