@wix/auto_sdk_app-management_apps 1.0.0 → 1.0.1

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.
@@ -11,8 +11,8 @@ interface CreateAppSignature {
11
11
  * Setting `companionApp` to `true` is restricted to authorized companion-app provisioning services.
12
12
  * A supplied `slug` is ignored except for authorized companion-app provisioning callers; use Generate Slug after creation.
13
13
  * A supplied `codeIdentifier` must not contain `wix` (case-insensitive).
14
- * @param - App to be created
15
- * @returns The created App
14
+ * @param - App to create.
15
+ * @returns Created app.
16
16
  */
17
17
  (app: V1App): Promise<NonNullablePaths<V1App, `name` | `appSecrets.appSecret` | `appSecrets.webhookPublicKey` | `appSecrets.secondarySecretActive` | `status` | `appUrls.redirectUris` | `createdBy._id` | `createdBy.type` | `installationPreferences.openComponentIdOptions.componentId` | `installationPreferences.overridePostInstallationRedirect` | `installationPreferences.openButtonAction` | `installationPreferences.uninstallAction` | `unreleasedChanges.componentsChanges` | `unreleasedChanges.appTranslationsChanges` | `unreleasedChanges.componentsTranslationChanges` | `unreleasedChanges.appPermissionsChanges` | `unreleasedChanges.appEntityChanges`, 2>>;
18
18
  }
@@ -22,8 +22,8 @@ interface GetAppSignature {
22
22
  * Retrieves an app by ID. App secrets are omitted by default.
23
23
  * To include `appSecrets`, add `APP_SECRETS` to `additionalFields`.
24
24
  * Retrieving secrets requires authorization to access the app's secrets.
25
- * @param - Id of the App to retrieve
26
- * @returns The retrieved App
25
+ * @param - App ID.
26
+ * @returns Retrieved app.
27
27
  */
28
28
  (appId: string, options?: GetAppOptions): Promise<NonNullablePaths<V1App, `name` | `appSecrets.appSecret` | `appSecrets.webhookPublicKey` | `appSecrets.secondarySecretActive` | `status` | `appUrls.redirectUris` | `createdBy._id` | `createdBy.type` | `installationPreferences.openComponentIdOptions.componentId` | `installationPreferences.overridePostInstallationRedirect` | `installationPreferences.openButtonAction` | `installationPreferences.uninstallAction` | `unreleasedChanges.componentsChanges` | `unreleasedChanges.appTranslationsChanges` | `unreleasedChanges.componentsTranslationChanges` | `unreleasedChanges.appPermissionsChanges` | `unreleasedChanges.appEntityChanges`, 2>>;
29
29
  }
@@ -38,14 +38,14 @@ interface UpdateAppSignature {
38
38
  *
39
39
  * This method cannot update `appSecrets`, `accountId`, `namespace`, `slug`, `createdBy`,
40
40
  * `companionApp`, or `codeIdentifier`. Including any of these fields or their nested fields in the
41
- * update mask causes the entire request to fail; they are not silently ignored.
41
+ * request causes the entire request to fail; they aren't silently ignored.
42
42
  * Use Set Namespace to assign a namespace and Generate Slug to generate a slug. To rotate app
43
43
  * secrets, use Create Secondary Secret and Revoke Secret. This method does not support changing
44
44
  * the owning account, creator, companion-app designation, or code identifier.
45
45
  *
46
46
  * Changing `status` requires additional status-change authorization beyond permission to update other fields.
47
47
  * @param - App ID.
48
- * @returns The updated App
48
+ * @returns Updated app.
49
49
  */
50
50
  (_id: string, app: NonNullablePaths<UpdateApp, `revision`, 0>): Promise<NonNullablePaths<V1App, `name` | `appSecrets.appSecret` | `appSecrets.webhookPublicKey` | `appSecrets.secondarySecretActive` | `status` | `appUrls.redirectUris` | `createdBy._id` | `createdBy.type` | `installationPreferences.openComponentIdOptions.componentId` | `installationPreferences.overridePostInstallationRedirect` | `installationPreferences.openButtonAction` | `installationPreferences.uninstallAction` | `unreleasedChanges.componentsChanges` | `unreleasedChanges.appTranslationsChanges` | `unreleasedChanges.componentsTranslationChanges` | `unreleasedChanges.appPermissionsChanges` | `unreleasedChanges.appEntityChanges`, 2>>;
51
51
  }
@@ -56,7 +56,7 @@ interface GenerateSlugSignature {
56
56
  * Does not generate a slug for companion apps; a companion app without a slug is returned unchanged.
57
57
  * When generating a slug, the stored app name must not contain `wix` for non-Wix apps (case-insensitive).
58
58
  * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
59
- * @param - Id of the App to update
59
+ * @param - App ID.
60
60
  */
61
61
  (appId: string): Promise<NonNullablePaths<GenerateSlugResponse, `app.name` | `app.appSecrets.appSecret` | `app.appSecrets.webhookPublicKey` | `app.appSecrets.secondarySecretActive` | `app.status` | `app.appUrls.redirectUris` | `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>>;
62
62
  }
@@ -69,7 +69,7 @@ interface GetNamespaceSuggestionSignature {
69
69
  * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
70
70
  * If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.
71
71
  * Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.
72
- * @param - The id of the application
72
+ * @param - App ID.
73
73
  */
74
74
  (appId: string, options?: GetNamespaceSuggestionOptions): Promise<NonNullablePaths<GetNamespaceSuggestionResponse, `namespace`, 0>>;
75
75
  }
@@ -84,7 +84,7 @@ interface GetNamespaceSuggestionByNameSignature {
84
84
  * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
85
85
  * If the base namespace is already used, suggests an alternative with a numeric suffix. Suggestions do not reserve a namespace.
86
86
  * Set Namespace derives its own namespace from `appName` without automatically adding a collision suffix. Choose a different `appName` and retry if it conflicts.
87
- * @param - The name of the application
87
+ * @param - App display name used to derive a namespace suggestion.
88
88
  */
89
89
  (name: string, options?: GetNamespaceSuggestionByNameOptions): Promise<NonNullablePaths<GetNamespaceSuggestionByNameResponse, `namespace`, 0>>;
90
90
  }
@@ -97,8 +97,8 @@ interface SetNamespaceSignature {
97
97
  * The exact names `google`, `facebook`, and `amazon` require privileged authorization (case-insensitive).
98
98
  * Unlike namespace suggestions, this method does not automatically add a suffix when the derived namespace is already used.
99
99
  * Suggestions are not reservations; on a collision, choose a different `appName` and retry.
100
- * @param - Id of the App to update
101
- * @param - Name used to derive the app's namespace component, at most 50 characters before normalization.
100
+ * @param - App ID.
101
+ * @param - Name used to derive the app's namespace component.
102
102
  * Lowercased; runs of non-alphanumeric characters (including spaces and underscores) become hyphens, with leading/trailing separators removed.
103
103
  * For example, `Bookings Helper` and `Bookings_Helper` become `bookings-helper`. If no letters or digits remain, uses `untitled`.
104
104
  * Subject to the reserved-name restrictions documented on Set Namespace. For permitted Wix-owned apps, `wix` is removed before normalization.
@@ -112,7 +112,7 @@ interface CreateSecondarySecretSignature {
112
112
  * (adding one here would break consistent-audience-for-shared-permission across all of them).
113
113
  * Renaming the permission would change who is actually authorized, so it stays as-is —
114
114
  * the real check is the MANUAL validateUpdateAppPermission(...) in code.
115
- * @param - ID of the App to update
115
+ * @param - App ID.
116
116
  */
117
117
  (appId: string, options?: CreateSecondarySecretOptions): Promise<NonNullablePaths<CreateSecondarySecretResponse, `app.name` | `app.appSecrets.appSecret` | `app.appSecrets.webhookPublicKey` | `app.appSecrets.secondarySecretActive` | `app.status` | `app.appUrls.redirectUris` | `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>>;
118
118
  }
@@ -123,8 +123,8 @@ interface RevokeSecretSignature {
123
123
  * (adding one here would break consistent-audience-for-shared-permission across all of them).
124
124
  * Renaming the permission would change who is actually authorized, so it stays as-is —
125
125
  * the real check is the MANUAL validateUpdateAppPermission(...) in code.
126
- * @param - ID of the App to update
127
- * @param - Which of the two secrets to get rid of
126
+ * @param - App ID.
127
+ * @param - Credential to revoke. The app must have both a previous and a replacement secret.
128
128
  */
129
129
  (appId: string, secretToRevoke: SecretToRevokeWithLiterals): Promise<RevokeSecretResponse>;
130
130
  }