@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.
- package/build/cjs/index.d.ts +14 -14
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +161 -77
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +122 -56
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +14 -14
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +161 -77
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +122 -56
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -14
- package/build/internal/cjs/index.typings.d.ts +161 -77
- package/build/internal/cjs/meta.d.ts +122 -56
- package/build/internal/es/index.d.mts +14 -14
- package/build/internal/es/index.typings.d.mts +161 -77
- package/build/internal/es/meta.d.mts +122 -56
- package/package.json +2 -2
|
@@ -13,7 +13,9 @@ interface V1App {
|
|
|
13
13
|
*/
|
|
14
14
|
id?: string | null;
|
|
15
15
|
/**
|
|
16
|
-
* The display name
|
|
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
|
+
* `<`, `>`, `"`, and `'`. 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
|
-
/**
|
|
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.
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
364
|
+
/** Whether components have unreleased creation, update, or deletion changes. */
|
|
309
365
|
componentsChanges?: boolean;
|
|
310
|
-
/**
|
|
366
|
+
/** Whether app translations have unreleased creation or update changes. */
|
|
311
367
|
appTranslationsChanges?: boolean;
|
|
312
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
|
639
|
+
/** App to create. */
|
|
574
640
|
app: V1App;
|
|
575
641
|
}
|
|
576
642
|
interface CreateAppResponse {
|
|
577
|
-
/**
|
|
643
|
+
/** Created app. */
|
|
578
644
|
app?: V1App;
|
|
579
645
|
}
|
|
580
646
|
interface GetAppRequest {
|
|
581
647
|
/**
|
|
582
|
-
*
|
|
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
|
-
/**
|
|
675
|
+
/** Retrieved app. */
|
|
610
676
|
app?: V1App;
|
|
611
677
|
}
|
|
612
678
|
interface UpdateAppRequest {
|
|
613
|
-
/** App to
|
|
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
|
-
/**
|
|
688
|
+
/** Updated app. */
|
|
623
689
|
app?: V1App;
|
|
624
690
|
}
|
|
625
691
|
interface GenerateSlugRequest {
|
|
626
692
|
/**
|
|
627
|
-
*
|
|
693
|
+
* App ID.
|
|
628
694
|
* @format GUID
|
|
629
695
|
*/
|
|
630
696
|
appId: string;
|
|
631
697
|
}
|
|
632
698
|
interface GenerateSlugResponse {
|
|
633
|
-
/**
|
|
699
|
+
/** App with its generated or existing slug. */
|
|
634
700
|
app?: V1App;
|
|
635
701
|
}
|
|
636
702
|
interface RenameSlugRequest {
|
|
637
703
|
/**
|
|
638
|
-
*
|
|
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
|
-
/**
|
|
716
|
+
/** App with its slug updated to the requested `newSlug`. */
|
|
651
717
|
app?: V1App;
|
|
652
718
|
}
|
|
653
719
|
interface RenameCodeIdentifierRequest {
|
|
654
720
|
/**
|
|
655
|
-
*
|
|
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
|
-
/**
|
|
733
|
+
/** App with its updated code identifier. */
|
|
668
734
|
app?: V1App;
|
|
669
735
|
}
|
|
670
736
|
interface GetNamespaceSuggestionRequest {
|
|
671
737
|
/**
|
|
672
|
-
*
|
|
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
|
-
/**
|
|
754
|
+
/** Suggested namespace. */
|
|
689
755
|
namespace?: string;
|
|
690
756
|
}
|
|
691
757
|
interface GetNamespaceSuggestionByNameRequest {
|
|
692
758
|
/**
|
|
693
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
1213
|
+
* App ID.
|
|
1148
1214
|
* @format GUID
|
|
1149
1215
|
*/
|
|
1150
1216
|
appId: string;
|
|
1151
|
-
/**
|
|
1217
|
+
/** Credential to revoke. The app must have both a previous and a replacement secret. */
|
|
1152
1218
|
secretToRevoke: SecretToRevokeWithLiterals;
|
|
1153
1219
|
}
|
|
1154
|
-
/**
|
|
1220
|
+
/** Credential to revoke during app-secret rotation. */
|
|
1155
1221
|
declare enum SecretToRevoke {
|
|
1156
|
-
/**
|
|
1222
|
+
/** Switch signing to the replacement secret and schedule retirement of the previous secret. */
|
|
1157
1223
|
PREVIOUS_SECRET = "PREVIOUS_SECRET",
|
|
1158
|
-
/**
|
|
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.
|
|
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 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_app-management_apps",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.devcenter.apps.v1.app"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "38966f45e760fc4cdb319dd3ba3a32aaffef60e106aba3a209732f17"
|
|
54
54
|
}
|