@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.
@@ -13,7 +13,9 @@ interface V1App {
13
13
  */
14
14
  id?: string | null;
15
15
  /**
16
- * The display name of the application, shown to users and in App Market after publication. This is separate from the app namespace, slug, and code identifier.
16
+ * The display name shown to users and in App Market after publication, separate from the namespace, slug, and code identifier.
17
+ * On creation and update, `<`, `>`, double quotes, and apostrophes are escaped as
18
+ * `&lt;`, `&gt;`, `&quot;`, and `&apos;`. Responses contain the escaped value, which can be longer than the submitted name.
17
19
  * @maxLength 50
18
20
  */
19
21
  name?: string;
@@ -23,7 +25,11 @@ interface V1App {
23
25
  * @format GUID
24
26
  */
25
27
  accountId?: string | null;
26
- /** Secrets for authentication and webhooks. */
28
+ /**
29
+ * Secrets for authentication and webhooks. Omitted from Get App responses by default.
30
+ * To retrieve them, include `APP_SECRETS` in Get App's `additionalFields`.
31
+ * Requires authorization to access the app's secrets.
32
+ */
27
33
  appSecrets?: AppSecrets;
28
34
  /**
29
35
  * Is Wix owned the application
@@ -31,13 +37,18 @@ interface V1App {
31
37
  */
32
38
  wixApp?: boolean;
33
39
  /**
34
- * App namespace, combining an account or company identifier with an app-name component. For example, `@example-company/bookings-helper`.
40
+ * App namespace, combining an account or company identifier with an app-name component.
41
+ * For example, `@example-company/bookings-helper`.
42
+ * Assign it once through Set Namespace after creating the app. Don't supply it to Create App
43
+ * or Update App. Set Namespace fails if the app already has a namespace.
35
44
  * @minLength 1
36
45
  * @maxLength 150
37
46
  */
38
47
  namespace?: string | null;
39
48
  /**
40
- * A JavaScript-compatible name for referencing the app in code, separate from its display name, namespace, and slug.
49
+ * An identifier for referencing the app in code, separate from its display name, namespace, and slug.
50
+ * Must start with a letter, underscore, or dollar sign; remaining characters can also include digits.
51
+ * JavaScript reserved words aren't rejected. Choose a non-reserved identifier if using this value as a JavaScript variable name.
41
52
  * Unique for non-companion apps. Companion apps return the shared value `companionApp`; use `id` to uniquely identify an app.
42
53
  * For example, the namespace `@app-builder/my-cool-app` can be represented by the code identifier `AppBuilderMyCoolApp`.
43
54
  * @minLength 3
@@ -51,7 +62,12 @@ interface V1App {
51
62
  * @internal
52
63
  */
53
64
  appType?: AppTypeWithLiterals;
54
- /** Revision of the app. Changes each time the app is modified. */
65
+ /**
66
+ * Revision number, which increments by 1 each time the app is updated.
67
+ * To prevent conflicting changes, supply the current revision when calling Update App.
68
+ * Retrieve the latest revision through Get App before updating.
69
+ * Ignored when creating an app.
70
+ */
55
71
  revision?: string | null;
56
72
  /**
57
73
  * A human-readable, URL-friendly identifier for the app.
@@ -68,7 +84,9 @@ interface V1App {
68
84
  /** URLs used by the app's OAuth flow. */
69
85
  appUrls?: AppUrls;
70
86
  /**
71
- * Identity of the user or app that created the app, including its source template when applicable.
87
+ * Identity and creation channel of the user or app that created the app, including its source template when applicable.
88
+ * Create App derives `id` and `type` from the caller's identity, replacing any supplied values.
89
+ * You can supply `sourceTemplateId` during creation. Creator information can't be changed through Update App.
72
90
  * @immutable
73
91
  */
74
92
  createdBy?: CreatedBy;
@@ -84,7 +102,7 @@ interface V1App {
84
102
  * @readonly
85
103
  */
86
104
  updatedDate?: Date | null;
87
- /** Changes not yet included in a released app version, grouped by type. */
105
+ /** Event-based tracking of unreleased changes, grouped by type. Updates asynchronously; see each flag for its tracking scope. */
88
106
  unreleasedChanges?: UnreleasedChanges;
89
107
  /**
90
108
  * The ownership tag of the application
@@ -140,6 +158,8 @@ interface V1App {
140
158
  interface AppSecrets {
141
159
  /**
142
160
  * App authentication secret. Keep this value in a secure backend secret store.
161
+ * During rotation, this field contains the previous secret while both secrets exist.
162
+ * After the previous secret is retired, this field contains the replacement secret.
143
163
  * @readonly
144
164
  * @format GUID
145
165
  */
@@ -151,7 +171,8 @@ interface AppSecrets {
151
171
  */
152
172
  webhookPublicKey?: string;
153
173
  /**
154
- * Additional authentication secret used during rotation. Present while the app has two secrets.
174
+ * Replacement authentication secret used during rotation. Present while the app has two secrets.
175
+ * After the previous secret is retired, this value moves to `appSecret` and this field is cleared.
155
176
  * @readonly
156
177
  * @format GUID
157
178
  */
@@ -220,49 +241,71 @@ interface AppUrls {
220
241
  }
221
242
  interface CreatedBy {
222
243
  /**
223
- * ID of the user or app that created the app.
244
+ * Creator ID derived from the caller's identity; a supplied value is replaced during creation.
245
+ * Identifies a user for `USER`, `CODE_GEN`, and `APP_BUILDER_SELF_HOSTED`, or an app for `APP`.
224
246
  * @format GUID
225
247
  */
226
248
  id?: string;
227
- /** Type of identity that created the app. */
249
+ /** Creator identity or creation channel, derived from the caller's identity rather than a supplied value. */
228
250
  type?: CreatedByTypeWithLiterals;
229
251
  /**
230
- * ID of the template used to create the app, when applicable.
252
+ * ID of the source template, when applicable. Can be supplied to Create App.
231
253
  * @format GUID
232
254
  */
233
255
  sourceTemplateId?: string | null;
234
256
  }
235
257
  declare enum CreatedByType {
258
+ /** Created by a user; `id` is the user's ID. */
236
259
  USER = "USER",
260
+ /** Created by an app; `id` is the app's ID. */
237
261
  APP = "APP",
262
+ /** Created through code generation; `id` is the initiating user's ID. */
238
263
  CODE_GEN = "CODE_GEN",
264
+ /** Created through the self-hosted app builder; `id` is the initiating user's ID. */
239
265
  APP_BUILDER_SELF_HOSTED = "APP_BUILDER_SELF_HOSTED"
240
266
  }
241
267
  /** @enumType */
242
268
  type CreatedByTypeWithLiterals = CreatedByType | 'USER' | 'APP' | 'CODE_GEN' | 'APP_BUILDER_SELF_HOSTED';
243
269
  interface InstallationPreferences extends InstallationPreferencesOpenButtonOptionsOneOf {
244
- /** Component to open when `openButtonAction` is `OPEN_COMPONENT_ID`. */
270
+ /** Component to open. Supply `componentId` when `openButtonAction` is `OPEN_COMPONENT_ID`. */
245
271
  openComponentIdOptions?: OpenComponentId;
246
- /** Destination for the user after installing the app. */
272
+ /**
273
+ * Preferred destination after installing an app with both editor and dashboard components.
274
+ * A recognized dashboard page in `postInstallationComponentId` takes precedence over this preference.
275
+ * Otherwise, `DASHBOARD` selects the dashboard and `EDITOR` selects the editor.
276
+ * On sites without an editor, `EDITOR` falls back to the dashboard.
277
+ * `UNKNOWN_REDIRECT_TARGET` leaves the default installation navigation unchanged.
278
+ */
247
279
  overridePostInstallationRedirect?: RedirectTargetWithLiterals;
248
280
  /**
249
- * ID of the component the user is redirected to after installing the app.
281
+ * Optional ID of the app's dashboard page to open after installation.
282
+ * A recognized dashboard page takes precedence over `overridePostInstallationRedirect`.
283
+ * If omitted or not recognized as a dashboard page, navigation uses the redirect preference
284
+ * or the default installation flow. This field doesn't select an editor component.
250
285
  * @format GUID
251
286
  */
252
287
  postInstallationComponentId?: string | null;
253
- /** Action performed when the user selects the app's Open button after installation. */
288
+ /**
289
+ * Action performed when the user selects the app's Open button after installation.
290
+ * For `OPEN_COMPONENT_ID`, supply `openComponentIdOptions.componentId`.
291
+ * `UNKNOWN_ACTION` means no explicit component-opening action is selected.
292
+ */
254
293
  openButtonAction?: OpenButtonActionWithLiterals;
255
294
  /**
256
295
  * Indicates the different consent options the app could define post installation
257
296
  * @internal
258
297
  */
259
298
  consentOptions?: ConsentOptions;
260
- /** Action required before the app can be uninstalled. */
299
+ /**
300
+ * Custom warning shown when a user tries to uninstall the app.
301
+ * Select `NO_ACTION` for no custom warning; `NONE_ACTION` represents an unspecified preference.
302
+ * The product and shipping values select warning text, rather than performing cleanup.
303
+ */
261
304
  uninstallAction?: UninstallActionsWithLiterals;
262
305
  }
263
306
  /** @oneof */
264
307
  interface InstallationPreferencesOpenButtonOptionsOneOf {
265
- /** Component to open when `openButtonAction` is `OPEN_COMPONENT_ID`. */
308
+ /** Component to open. Supply `componentId` when `openButtonAction` is `OPEN_COMPONENT_ID`. */
266
309
  openComponentIdOptions?: OpenComponentId;
267
310
  }
268
311
  declare enum ShowConsentBehaviour {
@@ -273,14 +316,19 @@ declare enum ShowConsentBehaviour {
273
316
  /** @enumType */
274
317
  type ShowConsentBehaviourWithLiterals = ShowConsentBehaviour | 'DEFAULT_BEHAVIOUR' | 'SHOW_CONSENT' | 'SKIP_CONSENT';
275
318
  declare enum RedirectTarget {
319
+ /** Use the default installation navigation. */
276
320
  UNKNOWN_REDIRECT_TARGET = "UNKNOWN_REDIRECT_TARGET",
321
+ /** Prefer the site dashboard for an app with editor and dashboard components. */
277
322
  DASHBOARD = "DASHBOARD",
323
+ /** Prefer the editor; use the dashboard on sites without an editor. */
278
324
  EDITOR = "EDITOR"
279
325
  }
280
326
  /** @enumType */
281
327
  type RedirectTargetWithLiterals = RedirectTarget | 'UNKNOWN_REDIRECT_TARGET' | 'DASHBOARD' | 'EDITOR';
282
328
  declare enum OpenButtonAction {
329
+ /** No explicit component-opening action is selected. */
283
330
  UNKNOWN_ACTION = "UNKNOWN_ACTION",
331
+ /** Open the component specified by `openComponentIdOptions.componentId`. */
284
332
  OPEN_COMPONENT_ID = "OPEN_COMPONENT_ID"
285
333
  }
286
334
  /** @enumType */
@@ -297,28 +345,46 @@ interface OpenComponentId {
297
345
  componentId?: string;
298
346
  }
299
347
  declare enum UninstallActions {
348
+ /** Unspecified warning preference. Use `NO_ACTION` to explicitly select no custom warning. */
300
349
  NONE_ACTION = "NONE_ACTION",
350
+ /** Show the standard uninstall message without a custom warning. Default when no preference is stored. */
301
351
  NO_ACTION = "NO_ACTION",
352
+ /** Warn users to remove all products associated with the app from their store. */
302
353
  REMOVE_ALL_PRODUCT = "REMOVE_ALL_PRODUCT",
354
+ /** Warn users that shipping to regions served only by the app will be removed from checkout. */
303
355
  SHIPPING_RATES_REGION = "SHIPPING_RATES_REGION"
304
356
  }
305
357
  /** @enumType */
306
358
  type UninstallActionsWithLiterals = UninstallActions | 'NONE_ACTION' | 'NO_ACTION' | 'REMOVE_ALL_PRODUCT' | 'SHIPPING_RATES_REGION';
359
+ /**
360
+ * Event-based tracking of changes not yet included in a released app version.
361
+ * Flags update asynchronously and reset when a production app version is created or updated.
362
+ */
307
363
  interface UnreleasedChanges {
308
- /** Indicate components changes (create, update, delete) */
364
+ /** Whether components have unreleased creation, update, or deletion changes. */
309
365
  componentsChanges?: boolean;
310
- /** Indicate app translations changes (create, update) */
366
+ /** Whether app translations have unreleased creation or update changes. */
311
367
  appTranslationsChanges?: boolean;
312
- /** Indicate components translations changes (create, update) */
368
+ /**
369
+ * Whether component translations have unreleased update changes.
370
+ * Component-translation creation events currently aren't reflected in this flag.
371
+ */
313
372
  componentsTranslationChanges?: boolean;
314
373
  /**
315
374
  * Indicate components experiments changes (create, update, delete)
316
375
  * @internal
317
376
  */
318
377
  componentsExperimentsChanges?: boolean;
319
- /** Indicate app permissions changes (create, update, delete) */
378
+ /**
379
+ * Whether app permissions have unreleased creation or update changes.
380
+ * Permission-deletion events currently aren't reflected in this flag.
381
+ */
320
382
  appPermissionsChanges?: boolean;
321
- /** Indicate app entity field changes (name, slug, namespace, codeIdentifier, partiallyConsumable) */
383
+ /**
384
+ * Whether app identity fields have unreleased changes, such as `name`, `slug`, `namespace`, and `codeIdentifier`.
385
+ * Doesn't track changes to `appUrls` or `installationPreferences`.
386
+ * Updates asynchronously after the app's update event; the update response may not yet reflect this flag.
387
+ */
322
388
  appEntityChanges?: boolean;
323
389
  }
324
390
  interface AppComponentMetadata {
@@ -554,7 +620,7 @@ interface AccountInfo {
554
620
  }
555
621
  interface AppOwnerChangedEvent {
556
622
  /**
557
- * Id of the App to update
623
+ * App ID.
558
624
  * @format GUID
559
625
  */
560
626
  appId?: string;
@@ -570,16 +636,16 @@ interface AppOwnerChangedEvent {
570
636
  previousAccountId?: string;
571
637
  }
572
638
  interface CreateAppRequest {
573
- /** App to be created */
639
+ /** App to create. */
574
640
  app: V1App;
575
641
  }
576
642
  interface CreateAppResponse {
577
- /** The created App */
643
+ /** Created app. */
578
644
  app?: V1App;
579
645
  }
580
646
  interface GetAppRequest {
581
647
  /**
582
- * Id of the App to retrieve
648
+ * App ID.
583
649
  * @format GUID
584
650
  */
585
651
  appId: string;
@@ -606,11 +672,11 @@ declare enum RequestedFields {
606
672
  /** @enumType */
607
673
  type RequestedFieldsWithLiterals = RequestedFields | 'APP_SECRETS';
608
674
  interface GetAppResponse {
609
- /** The retrieved App */
675
+ /** Retrieved app. */
610
676
  app?: V1App;
611
677
  }
612
678
  interface UpdateAppRequest {
613
- /** App to be updated, may be partial */
679
+ /** App to update. Specify the app ID, current revision, and fields to change. */
614
680
  app: V1App;
615
681
  /**
616
682
  * Explicit list of fields to update
@@ -619,23 +685,23 @@ interface UpdateAppRequest {
619
685
  mask?: string[];
620
686
  }
621
687
  interface UpdateAppResponse {
622
- /** The updated App */
688
+ /** Updated app. */
623
689
  app?: V1App;
624
690
  }
625
691
  interface GenerateSlugRequest {
626
692
  /**
627
- * Id of the App to update
693
+ * App ID.
628
694
  * @format GUID
629
695
  */
630
696
  appId: string;
631
697
  }
632
698
  interface GenerateSlugResponse {
633
- /** The modified app */
699
+ /** App with its generated or existing slug. */
634
700
  app?: V1App;
635
701
  }
636
702
  interface RenameSlugRequest {
637
703
  /**
638
- * Id of the App to update
704
+ * App ID.
639
705
  * @format GUID
640
706
  */
641
707
  appId?: string;
@@ -647,12 +713,12 @@ interface RenameSlugRequest {
647
713
  newSlug?: string;
648
714
  }
649
715
  interface RenameSlugResponse {
650
- /** The modified app */
716
+ /** App with its slug updated to the requested `newSlug`. */
651
717
  app?: V1App;
652
718
  }
653
719
  interface RenameCodeIdentifierRequest {
654
720
  /**
655
- * Id of the App to update
721
+ * App ID.
656
722
  * @format GUID
657
723
  */
658
724
  appId?: string;
@@ -664,12 +730,12 @@ interface RenameCodeIdentifierRequest {
664
730
  newCodeIdentifier?: string;
665
731
  }
666
732
  interface RenameCodeIdentifierResponse {
667
- /** The modified app */
733
+ /** App with its updated code identifier. */
668
734
  app?: V1App;
669
735
  }
670
736
  interface GetNamespaceSuggestionRequest {
671
737
  /**
672
- * The id of the application
738
+ * App ID.
673
739
  * @format GUID
674
740
  */
675
741
  appId: string;
@@ -685,12 +751,12 @@ declare enum NamespaceType {
685
751
  /** @enumType */
686
752
  type NamespaceTypeWithLiterals = NamespaceType | 'ACCOUNT' | 'COMPANY';
687
753
  interface GetNamespaceSuggestionResponse {
688
- /** The suggested namespace */
754
+ /** Suggested namespace. */
689
755
  namespace?: string;
690
756
  }
691
757
  interface GetNamespaceSuggestionByNameRequest {
692
758
  /**
693
- * The name of the application
759
+ * App display name used to derive a namespace suggestion.
694
760
  * @maxLength 50
695
761
  */
696
762
  name: string;
@@ -699,7 +765,7 @@ interface GetNamespaceSuggestionByNameRequest {
699
765
  }
700
766
  interface GetNamespaceSuggestionByNameResponse {
701
767
  /**
702
- * The suggested namespace
768
+ * Suggested namespace.
703
769
  * @minLength 1
704
770
  * @maxLength 150
705
771
  */
@@ -707,12 +773,12 @@ interface GetNamespaceSuggestionByNameResponse {
707
773
  }
708
774
  interface SetNamespaceRequest {
709
775
  /**
710
- * Id of the App to update
776
+ * App ID.
711
777
  * @format GUID
712
778
  */
713
779
  appId: string;
714
780
  /**
715
- * Name used to derive the app's namespace component, at most 50 characters before normalization.
781
+ * Name used to derive the app's namespace component.
716
782
  * Lowercased; runs of non-alphanumeric characters (including spaces and underscores) become hyphens, with leading/trailing separators removed.
717
783
  * For example, `Bookings Helper` and `Bookings_Helper` become `bookings-helper`. If no letters or digits remain, uses `untitled`.
718
784
  * Subject to the reserved-name restrictions documented on Set Namespace. For permitted Wix-owned apps, `wix` is removed before normalization.
@@ -748,7 +814,7 @@ interface SuggestCodeIdentifierResponse {
748
814
  }
749
815
  interface SetCodeIdentifierRequest {
750
816
  /**
751
- * Id of the App to update
817
+ * App ID.
752
818
  * @format GUID
753
819
  */
754
820
  appId?: string;
@@ -955,7 +1021,7 @@ interface Cursors {
955
1021
  }
956
1022
  interface SetPrivateAppRequest {
957
1023
  /**
958
- * Id of the App to update
1024
+ * App ID.
959
1025
  * @format GUID
960
1026
  */
961
1027
  appId?: string;
@@ -965,7 +1031,7 @@ interface SetPrivateAppRequest {
965
1031
  revision?: string;
966
1032
  }
967
1033
  interface SetPrivateAppResponse {
968
- /** The modified app */
1034
+ /** App with its `privateApp` setting updated to the requested value. */
969
1035
  app?: V1App;
970
1036
  }
971
1037
  interface AppChangedEvent {
@@ -1054,7 +1120,7 @@ interface AppSlugChanged {
1054
1120
  }
1055
1121
  interface SetAppOwnerRequest {
1056
1122
  /**
1057
- * Id of the App to update
1123
+ * App ID.
1058
1124
  * @format GUID
1059
1125
  */
1060
1126
  appId?: string;
@@ -1067,7 +1133,7 @@ interface SetAppOwnerRequest {
1067
1133
  revision?: string;
1068
1134
  }
1069
1135
  interface SetAppOwnerResponse {
1070
- /** The modified app */
1136
+ /** App owned by the requested `accountId`. */
1071
1137
  app?: V1App;
1072
1138
  }
1073
1139
  interface AppUrlsChangedInOldServiceEvent extends AppUrlsChangedInOldServiceEventChangedUrlOneOf {
@@ -1076,7 +1142,7 @@ interface AppUrlsChangedInOldServiceEvent extends AppUrlsChangedInOldServiceEven
1076
1142
  /** redirect uris */
1077
1143
  redirectUriMessage?: RedirectUrlMessage;
1078
1144
  /**
1079
- * Id of the App to update
1145
+ * App ID.
1080
1146
  * @format GUID
1081
1147
  */
1082
1148
  appId?: string;
@@ -1098,7 +1164,7 @@ interface RedirectUrlMessage {
1098
1164
  }
1099
1165
  interface CreateSecondarySecretRequest {
1100
1166
  /**
1101
- * ID of the App to update
1167
+ * App ID.
1102
1168
  * @format GUID
1103
1169
  */
1104
1170
  appId: string;
@@ -1122,7 +1188,7 @@ interface ActivateSecondarySecretResponse {
1122
1188
  }
1123
1189
  interface RotateSecretRequest {
1124
1190
  /**
1125
- * ID of the App to update
1191
+ * App ID.
1126
1192
  * @format GUID
1127
1193
  */
1128
1194
  appId?: string;
@@ -1133,7 +1199,7 @@ interface RotateSecretResponse {
1133
1199
  }
1134
1200
  interface RollbackSecretRequest {
1135
1201
  /**
1136
- * ID of the App to update
1202
+ * App ID.
1137
1203
  * @format GUID
1138
1204
  */
1139
1205
  appId?: string;
@@ -1144,24 +1210,24 @@ interface RollbackSecretResponse {
1144
1210
  }
1145
1211
  interface RevokeSecretRequest {
1146
1212
  /**
1147
- * ID of the App to update
1213
+ * App ID.
1148
1214
  * @format GUID
1149
1215
  */
1150
1216
  appId: string;
1151
- /** Which of the two secrets to get rid of */
1217
+ /** Credential to revoke. The app must have both a previous and a replacement secret. */
1152
1218
  secretToRevoke: SecretToRevokeWithLiterals;
1153
1219
  }
1154
- /** Which of the App's two secrets to get rid of */
1220
+ /** Credential to revoke during app-secret rotation. */
1155
1221
  declare enum SecretToRevoke {
1156
- /** The secret the App had before the second one was created */
1222
+ /** Switch signing to the replacement secret and schedule retirement of the previous secret. */
1157
1223
  PREVIOUS_SECRET = "PREVIOUS_SECRET",
1158
- /** The second secret that was created most recently */
1224
+ /** Discard the replacement secret and restore signing with the previous secret. */
1159
1225
  NEW_SECRET = "NEW_SECRET"
1160
1226
  }
1161
1227
  /** @enumType */
1162
1228
  type SecretToRevokeWithLiterals = SecretToRevoke | 'PREVIOUS_SECRET' | 'NEW_SECRET';
1163
1229
  interface RevokeSecretResponse {
1164
- /** Scheduled retirement time of the previous secret. Set only for PREVIOUS_SECRET; omitted for NEW_SECRET. */
1230
+ /** Scheduled retirement time of the previous secret. Returned for `PREVIOUS_SECRET` and omitted for `NEW_SECRET`. Use the latest returned timestamp. */
1165
1231
  previousSecretRevokeAt?: Date | null;
1166
1232
  }
1167
1233
  /** payload for kafka event for this version on app submit */
@@ -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
  }