@wix/auto_sdk_app-management_apps 1.0.0 → 1.0.2
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 +19 -19
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +173 -82
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +129 -56
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +19 -19
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +173 -82
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +129 -56
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -19
- package/build/internal/cjs/index.typings.d.ts +180 -82
- package/build/internal/cjs/meta.d.ts +136 -56
- package/build/internal/es/index.d.mts +19 -19
- package/build/internal/es/index.typings.d.mts +180 -82
- package/build/internal/es/meta.d.mts +136 -56
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ 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
|
|
15
|
-
* @returns
|
|
14
|
+
* @param - App to create.
|
|
15
|
+
* @returns Created app.
|
|
16
16
|
*/
|
|
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>>;
|
|
17
|
+
(app: V1App): 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>>;
|
|
18
18
|
}
|
|
19
19
|
declare function getApp$1(httpClient: HttpClient): GetAppSignature;
|
|
20
20
|
interface GetAppSignature {
|
|
@@ -22,10 +22,10 @@ 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 -
|
|
26
|
-
* @returns
|
|
25
|
+
* @param - App ID.
|
|
26
|
+
* @returns Retrieved app.
|
|
27
27
|
*/
|
|
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>>;
|
|
28
|
+
(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>>;
|
|
29
29
|
}
|
|
30
30
|
declare function updateApp$1(httpClient: HttpClient): UpdateAppSignature;
|
|
31
31
|
interface UpdateAppSignature {
|
|
@@ -38,16 +38,16 @@ 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
|
-
*
|
|
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
|
|
48
|
+
* @returns Updated app.
|
|
49
49
|
*/
|
|
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>>;
|
|
50
|
+
(_id: string, app: NonNullablePaths<UpdateApp, `revision`, 0>): 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>>;
|
|
51
51
|
}
|
|
52
52
|
declare function generateSlug$1(httpClient: HttpClient): GenerateSlugSignature;
|
|
53
53
|
interface GenerateSlugSignature {
|
|
@@ -56,9 +56,9 @@ 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 -
|
|
59
|
+
* @param - App ID.
|
|
60
60
|
*/
|
|
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>>;
|
|
61
|
+
(appId: string): Promise<NonNullablePaths<GenerateSlugResponse, `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>>;
|
|
62
62
|
}
|
|
63
63
|
declare function getNamespaceSuggestion$1(httpClient: HttpClient): GetNamespaceSuggestionSignature;
|
|
64
64
|
interface GetNamespaceSuggestionSignature {
|
|
@@ -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 -
|
|
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 -
|
|
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 -
|
|
101
|
-
* @param - Name used to derive the app's namespace component
|
|
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,9 +112,9 @@ 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 -
|
|
115
|
+
* @param - App ID.
|
|
116
116
|
*/
|
|
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>>;
|
|
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.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>>;
|
|
118
118
|
}
|
|
119
119
|
declare function revokeSecret$1(httpClient: HttpClient): RevokeSecretSignature;
|
|
120
120
|
interface RevokeSecretSignature {
|
|
@@ -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 -
|
|
127
|
-
* @param -
|
|
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
|
}
|