@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 };
@@ -39,12 +39,10 @@ __export(index_typings_exports, {
39
39
  VersionStatus: () => VersionStatus,
40
40
  WebhookIdentityType: () => WebhookIdentityType,
41
41
  createApp: () => createApp2,
42
- createSecondarySecret: () => createSecondarySecret2,
43
42
  generateSlug: () => generateSlug2,
44
43
  getApp: () => getApp2,
45
44
  getNamespaceSuggestion: () => getNamespaceSuggestion2,
46
45
  getNamespaceSuggestionByName: () => getNamespaceSuggestionByName2,
47
- revokeSecret: () => revokeSecret2,
48
46
  setNamespace: () => setNamespace2,
49
47
  updateApp: () => updateApp2
50
48
  });
@@ -67,7 +65,6 @@ var TRANSFORM_PATHS_0 = [
67
65
  { path: "app.appSecrets.previousSecretRevokeDate" }
68
66
  ];
69
67
  var TRANSFORM_PATHS_1 = [{ path: "mask" }];
70
- var TRANSFORM_PATHS_2 = [{ path: "previousSecretRevokeAt" }];
71
68
  function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
72
69
  const domainToMappings = {
73
70
  "editor._base_domain_": [
@@ -157,6 +154,12 @@ function resolveWixDevcenterAppsV1AppsServiceUrl(opts) {
157
154
  srcPath: "/apps/v1/apps",
158
155
  destPath: "/v1/apps"
159
156
  }
157
+ ],
158
+ "api._api_base_domain_": [
159
+ {
160
+ srcPath: "/apps-service",
161
+ destPath: ""
162
+ }
160
163
  ]
161
164
  };
162
165
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
@@ -349,60 +352,6 @@ function setNamespace(payload) {
349
352
  }
350
353
  return __setNamespace;
351
354
  }
352
- function createSecondarySecret(payload) {
353
- function __createSecondarySecret({ host }) {
354
- const metadata = {
355
- entityFqdn: "wix.devcenter.apps.v1.app",
356
- method: "POST",
357
- methodFqn: "wix.devcenter.apps.v1.AppsService.CreateSecondarySecret",
358
- packageName: PACKAGE_NAME,
359
- migrationOptions: {
360
- optInTransformResponse: true
361
- },
362
- url: resolveWixDevcenterAppsV1AppsServiceUrl({
363
- protoPath: "/v1/apps/{appId}/secrets/secondary",
364
- data: payload,
365
- host
366
- }),
367
- data: payload,
368
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
369
- {
370
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
371
- paths: TRANSFORM_PATHS_0
372
- }
373
- ])
374
- };
375
- return metadata;
376
- }
377
- return __createSecondarySecret;
378
- }
379
- function revokeSecret(payload) {
380
- function __revokeSecret({ host }) {
381
- const metadata = {
382
- entityFqdn: "wix.devcenter.apps.v1.app",
383
- method: "POST",
384
- methodFqn: "wix.devcenter.apps.v1.AppsService.RevokeSecret",
385
- packageName: PACKAGE_NAME,
386
- migrationOptions: {
387
- optInTransformResponse: true
388
- },
389
- url: resolveWixDevcenterAppsV1AppsServiceUrl({
390
- protoPath: "/v1/apps/{appId}/secrets/revoke",
391
- data: payload,
392
- host
393
- }),
394
- data: payload,
395
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
396
- {
397
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
398
- paths: TRANSFORM_PATHS_2
399
- }
400
- ])
401
- };
402
- return metadata;
403
- }
404
- return __revokeSecret;
405
- }
406
355
 
407
356
  // src/devcenter-apps-v1-app-apps.universal.ts
408
357
  var Status = /* @__PURE__ */ ((Status2) => {
@@ -551,7 +500,6 @@ async function getApp2(appId, options) {
551
500
  const { httpClient, sideEffects } = arguments[2];
552
501
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
553
502
  appId,
554
- consistent: options?.consistent,
555
503
  additionalFields: options?.additionalFields
556
504
  });
557
505
  const reqOpts = getApp(payload);
@@ -567,7 +515,6 @@ async function getApp2(appId, options) {
567
515
  spreadPathsToArguments: {},
568
516
  explicitPathsToArguments: {
569
517
  appId: "$[0]",
570
- consistent: "$[1].consistent",
571
518
  additionalFields: "$[1].additionalFields"
572
519
  },
573
520
  singleArgumentUnchanged: false
@@ -709,58 +656,6 @@ async function setNamespace2(appId, appName, options) {
709
656
  throw transformedError;
710
657
  }
711
658
  }
712
- async function createSecondarySecret2(appId, options) {
713
- const { httpClient, sideEffects } = arguments[2];
714
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
715
- appId,
716
- revision: options?.revision
717
- });
718
- const reqOpts = createSecondarySecret(payload);
719
- sideEffects?.onSiteCall?.();
720
- try {
721
- const result = await httpClient.request(reqOpts);
722
- sideEffects?.onSuccess?.(result);
723
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
724
- } catch (err) {
725
- const transformedError = (0, import_transform_error.transformError)(
726
- err,
727
- {
728
- spreadPathsToArguments: {},
729
- explicitPathsToArguments: { appId: "$[0]", revision: "$[1].revision" },
730
- singleArgumentUnchanged: false
731
- },
732
- ["appId", "options"]
733
- );
734
- sideEffects?.onError?.(err);
735
- throw transformedError;
736
- }
737
- }
738
- async function revokeSecret2(appId, secretToRevoke) {
739
- const { httpClient, sideEffects } = arguments[2];
740
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
741
- appId,
742
- secretToRevoke
743
- });
744
- const reqOpts = revokeSecret(payload);
745
- sideEffects?.onSiteCall?.();
746
- try {
747
- const result = await httpClient.request(reqOpts);
748
- sideEffects?.onSuccess?.(result);
749
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
750
- } catch (err) {
751
- const transformedError = (0, import_transform_error.transformError)(
752
- err,
753
- {
754
- spreadPathsToArguments: {},
755
- explicitPathsToArguments: { appId: "$[0]", secretToRevoke: "$[1]" },
756
- singleArgumentUnchanged: false
757
- },
758
- ["appId", "secretToRevoke"]
759
- );
760
- sideEffects?.onError?.(err);
761
- throw transformedError;
762
- }
763
- }
764
659
  // Annotate the CommonJS export names for ESM import in node:
765
660
  0 && (module.exports = {
766
661
  Action,
@@ -782,12 +677,10 @@ async function revokeSecret2(appId, secretToRevoke) {
782
677
  VersionStatus,
783
678
  WebhookIdentityType,
784
679
  createApp,
785
- createSecondarySecret,
786
680
  generateSlug,
787
681
  getApp,
788
682
  getNamespaceSuggestion,
789
683
  getNamespaceSuggestionByName,
790
- revokeSecret,
791
684
  setNamespace,
792
685
  updateApp
793
686
  });