@wix/auto_sdk_app-management_app-permissions 1.0.5 → 1.0.7
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/{internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → devcenter-apps-v1-app-permission-app-permissions.universal-ROYtr-wC.d.mts} +51 -115
- package/build/{cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → devcenter-apps-v1-app-permission-app-permissions.universal-ROYtr-wC.d.ts} +51 -115
- package/build/index.d.mts +47 -0
- package/build/index.d.ts +47 -0
- package/build/index.js +351 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +320 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → internal/devcenter-apps-v1-app-permission-app-permissions.universal-ROYtr-wC.d.mts} +51 -115
- package/build/internal/{es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → devcenter-apps-v1-app-permission-app-permissions.universal-ROYtr-wC.d.ts} +51 -115
- package/build/internal/index.d.mts +47 -0
- package/build/internal/index.d.ts +47 -0
- package/build/internal/index.js +351 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +320 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +143 -0
- package/build/internal/meta.d.ts +143 -0
- package/build/internal/meta.js +220 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +191 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +143 -0
- package/build/meta.d.ts +143 -0
- package/build/meta.js +220 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +191 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -11
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -17
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -7
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -138
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -85
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -36
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -42
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -314
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -22
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -172
- package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -11
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -11
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -7
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -132
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -56
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -36
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -33
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -314
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -19
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -143
- package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -11
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -17
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -7
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -138
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -85
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -36
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -42
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -314
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -22
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -172
- package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -11
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -11
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -7
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -132
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -56
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -36
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -33
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -314
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -19
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -143
- package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
/** AppPermission is the main entity of AppPermissionsService that define relation between app and permission */
|
|
3
|
-
export interface AppPermission {
|
|
1
|
+
interface AppPermission {
|
|
4
2
|
/**
|
|
5
3
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
6
4
|
*
|
|
7
|
-
* You can find the app ID
|
|
5
|
+
* You can find the app ID in the app's dashboard's [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home).
|
|
8
6
|
* @format GUID
|
|
9
7
|
*/
|
|
10
8
|
appId?: string;
|
|
11
9
|
/**
|
|
12
|
-
* Permission
|
|
10
|
+
* Permission to configure.
|
|
13
11
|
*
|
|
14
12
|
* Learn more [about permissions for Wix apps](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
15
13
|
*/
|
|
@@ -20,30 +18,30 @@ export interface AppPermission {
|
|
|
20
18
|
*/
|
|
21
19
|
_createdDate?: Date | null;
|
|
22
20
|
/**
|
|
23
|
-
* When the permission was last updated
|
|
21
|
+
* When the permission was last updated.
|
|
24
22
|
* @readonly
|
|
25
23
|
*/
|
|
26
24
|
_updatedDate?: Date | null;
|
|
27
25
|
}
|
|
28
|
-
|
|
26
|
+
interface V1Permission {
|
|
29
27
|
/**
|
|
30
28
|
* Permission ID.
|
|
31
29
|
*
|
|
32
|
-
* To find the permission ID,
|
|
30
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
33
31
|
* @minLength 1
|
|
34
32
|
* @maxLength 164
|
|
35
33
|
*/
|
|
36
34
|
permissionId?: string;
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
36
|
+
interface CreateAppPermissionRequest {
|
|
37
|
+
/** Permission to add to the specified app. */
|
|
40
38
|
appPermission: AppPermission;
|
|
41
39
|
}
|
|
42
|
-
|
|
43
|
-
/** Details of the
|
|
40
|
+
interface CreateAppPermissionResponse {
|
|
41
|
+
/** Details of permission that was added to the app. */
|
|
44
42
|
appPermission?: AppPermission;
|
|
45
43
|
}
|
|
46
|
-
|
|
44
|
+
interface GetAppPermissionRequest {
|
|
47
45
|
/**
|
|
48
46
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
49
47
|
*
|
|
@@ -54,17 +52,17 @@ export interface GetAppPermissionRequest {
|
|
|
54
52
|
/**
|
|
55
53
|
* Permission ID.
|
|
56
54
|
*
|
|
57
|
-
* To find the permission ID,
|
|
55
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
58
56
|
* @minLength 1
|
|
59
57
|
* @maxLength 164
|
|
60
58
|
*/
|
|
61
59
|
permissionId?: string;
|
|
62
60
|
}
|
|
63
|
-
|
|
61
|
+
interface GetAppPermissionResponse {
|
|
64
62
|
/** Details of the retrieved app permission. */
|
|
65
63
|
appPermission?: AppPermission;
|
|
66
64
|
}
|
|
67
|
-
|
|
65
|
+
interface ListAppPermissionsRequest {
|
|
68
66
|
/**
|
|
69
67
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
70
68
|
*
|
|
@@ -73,7 +71,7 @@ export interface ListAppPermissionsRequest {
|
|
|
73
71
|
*/
|
|
74
72
|
appId: string;
|
|
75
73
|
/**
|
|
76
|
-
* Whether to retrieve the most recent permissions information. This decreases performance but ensures the information
|
|
74
|
+
* Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.
|
|
77
75
|
*
|
|
78
76
|
* Default: `false`
|
|
79
77
|
*/
|
|
@@ -81,7 +79,7 @@ export interface ListAppPermissionsRequest {
|
|
|
81
79
|
/** Paging configuration. */
|
|
82
80
|
paging?: CursorPaging;
|
|
83
81
|
}
|
|
84
|
-
|
|
82
|
+
interface CursorPaging {
|
|
85
83
|
/**
|
|
86
84
|
* Maximum number of items to return in the results.
|
|
87
85
|
* @max 100
|
|
@@ -96,13 +94,13 @@ export interface CursorPaging {
|
|
|
96
94
|
*/
|
|
97
95
|
cursor?: string | null;
|
|
98
96
|
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
97
|
+
interface ListAppPermissionsResponse {
|
|
98
|
+
/** List of permissions for the specified app. */
|
|
101
99
|
appPermissions?: AppPermission[];
|
|
102
100
|
/** Paging metadata. */
|
|
103
101
|
pagingMetadata?: CursorPagingMetadata;
|
|
104
102
|
}
|
|
105
|
-
|
|
103
|
+
interface CursorPagingMetadata {
|
|
106
104
|
/** Number of items returned in current page. */
|
|
107
105
|
count?: number | null;
|
|
108
106
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -115,7 +113,7 @@ export interface CursorPagingMetadata {
|
|
|
115
113
|
*/
|
|
116
114
|
hasNext?: boolean | null;
|
|
117
115
|
}
|
|
118
|
-
|
|
116
|
+
interface Cursors {
|
|
119
117
|
/**
|
|
120
118
|
* Cursor string pointing to the next page in the list of results.
|
|
121
119
|
* @maxLength 16000
|
|
@@ -127,7 +125,7 @@ export interface Cursors {
|
|
|
127
125
|
*/
|
|
128
126
|
prev?: string | null;
|
|
129
127
|
}
|
|
130
|
-
|
|
128
|
+
interface DeleteAppPermissionRequest {
|
|
131
129
|
/**
|
|
132
130
|
* [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
133
131
|
*
|
|
@@ -138,24 +136,24 @@ export interface DeleteAppPermissionRequest {
|
|
|
138
136
|
/**
|
|
139
137
|
* Permission ID.
|
|
140
138
|
*
|
|
141
|
-
* To find the permission ID,
|
|
139
|
+
* To find the permission ID, navigate to the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
142
140
|
* @minLength 1
|
|
143
141
|
* @maxLength 164
|
|
144
142
|
*/
|
|
145
143
|
permissionId: string;
|
|
146
144
|
}
|
|
147
|
-
|
|
145
|
+
interface DeleteAppPermissionResponse {
|
|
148
146
|
}
|
|
149
|
-
|
|
147
|
+
interface PermissionActionDomainEventEntity {
|
|
150
148
|
/** The permission that had an event */
|
|
151
149
|
appPermission?: AppPermission;
|
|
152
150
|
/** The action which happened */
|
|
153
151
|
actionType?: ActionType;
|
|
154
152
|
}
|
|
155
|
-
|
|
153
|
+
declare enum ActionType {
|
|
156
154
|
APP_PERMISSION_DELETED = "APP_PERMISSION_DELETED"
|
|
157
155
|
}
|
|
158
|
-
|
|
156
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
159
157
|
createdEvent?: EntityCreatedEvent;
|
|
160
158
|
updatedEvent?: EntityUpdatedEvent;
|
|
161
159
|
deletedEvent?: EntityDeletedEvent;
|
|
@@ -198,19 +196,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
198
196
|
entityEventSequence?: string | null;
|
|
199
197
|
}
|
|
200
198
|
/** @oneof */
|
|
201
|
-
|
|
199
|
+
interface DomainEventBodyOneOf {
|
|
202
200
|
createdEvent?: EntityCreatedEvent;
|
|
203
201
|
updatedEvent?: EntityUpdatedEvent;
|
|
204
202
|
deletedEvent?: EntityDeletedEvent;
|
|
205
203
|
actionEvent?: ActionEvent;
|
|
206
204
|
}
|
|
207
|
-
|
|
205
|
+
interface EntityCreatedEvent {
|
|
208
206
|
entity?: string;
|
|
209
207
|
}
|
|
210
|
-
|
|
208
|
+
interface RestoreInfo {
|
|
211
209
|
deletedDate?: Date | null;
|
|
212
210
|
}
|
|
213
|
-
|
|
211
|
+
interface EntityUpdatedEvent {
|
|
214
212
|
/**
|
|
215
213
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
216
214
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -218,30 +216,30 @@ export interface EntityUpdatedEvent {
|
|
|
218
216
|
*/
|
|
219
217
|
currentEntity?: string;
|
|
220
218
|
}
|
|
221
|
-
|
|
219
|
+
interface EntityDeletedEvent {
|
|
222
220
|
/** Entity that was deleted */
|
|
223
221
|
deletedEntity?: string | null;
|
|
224
222
|
}
|
|
225
|
-
|
|
223
|
+
interface ActionEvent {
|
|
226
224
|
body?: string;
|
|
227
225
|
}
|
|
228
|
-
|
|
226
|
+
interface Empty {
|
|
229
227
|
}
|
|
230
|
-
|
|
228
|
+
interface OldPermissionChangedEvent {
|
|
231
229
|
/** @format GUID */
|
|
232
230
|
appId?: string;
|
|
233
231
|
permission?: Permission;
|
|
234
232
|
action?: Action;
|
|
235
233
|
}
|
|
236
|
-
|
|
234
|
+
interface Permission {
|
|
237
235
|
permissionId?: string;
|
|
238
236
|
}
|
|
239
|
-
|
|
237
|
+
declare enum Action {
|
|
240
238
|
CREATED = "CREATED",
|
|
241
239
|
UPDATED = "UPDATED",
|
|
242
240
|
DELETED = "DELETED"
|
|
243
241
|
}
|
|
244
|
-
|
|
242
|
+
interface MessageEnvelope {
|
|
245
243
|
/**
|
|
246
244
|
* App instance ID.
|
|
247
245
|
* @format GUID
|
|
@@ -257,7 +255,7 @@ export interface MessageEnvelope {
|
|
|
257
255
|
/** Stringify payload. */
|
|
258
256
|
data?: string;
|
|
259
257
|
}
|
|
260
|
-
|
|
258
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
261
259
|
/**
|
|
262
260
|
* ID of a site visitor that has not logged in to the site.
|
|
263
261
|
* @format GUID
|
|
@@ -282,7 +280,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
|
282
280
|
identityType?: WebhookIdentityType;
|
|
283
281
|
}
|
|
284
282
|
/** @oneof */
|
|
285
|
-
|
|
283
|
+
interface IdentificationDataIdOneOf {
|
|
286
284
|
/**
|
|
287
285
|
* ID of a site visitor that has not logged in to the site.
|
|
288
286
|
* @format GUID
|
|
@@ -304,14 +302,14 @@ export interface IdentificationDataIdOneOf {
|
|
|
304
302
|
*/
|
|
305
303
|
appId?: string;
|
|
306
304
|
}
|
|
307
|
-
|
|
305
|
+
declare enum WebhookIdentityType {
|
|
308
306
|
UNKNOWN = "UNKNOWN",
|
|
309
307
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
310
308
|
MEMBER = "MEMBER",
|
|
311
309
|
WIX_USER = "WIX_USER",
|
|
312
310
|
APP = "APP"
|
|
313
311
|
}
|
|
314
|
-
|
|
312
|
+
interface BaseEventMetadata {
|
|
315
313
|
/**
|
|
316
314
|
* App instance ID.
|
|
317
315
|
* @format GUID
|
|
@@ -325,7 +323,7 @@ export interface BaseEventMetadata {
|
|
|
325
323
|
/** The identification type and identity data. */
|
|
326
324
|
identity?: IdentificationData;
|
|
327
325
|
}
|
|
328
|
-
|
|
326
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
329
327
|
/**
|
|
330
328
|
* Unique event ID.
|
|
331
329
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -363,52 +361,16 @@ export interface EventMetadata extends BaseEventMetadata {
|
|
|
363
361
|
*/
|
|
364
362
|
entityEventSequence?: string | null;
|
|
365
363
|
}
|
|
366
|
-
|
|
364
|
+
interface AppPermissionCreatedEnvelope {
|
|
367
365
|
entity: AppPermission;
|
|
368
366
|
metadata: EventMetadata;
|
|
369
367
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
export declare function onAppPermissionCreated(handler: (event: AppPermissionCreatedEnvelope) => void | Promise<void>): void;
|
|
377
|
-
type AppPermissionNonNullablePaths = `appId` | `permission.permissionId`;
|
|
378
|
-
/**
|
|
379
|
-
* Creates a new app permission.
|
|
380
|
-
* @param appPermission - App permission to create.
|
|
381
|
-
* @public
|
|
382
|
-
* @documentationMaturity preview
|
|
383
|
-
* @requiredField appPermission
|
|
384
|
-
* @requiredField appPermission.appId
|
|
385
|
-
* @requiredField appPermission.permission
|
|
386
|
-
* @requiredField appPermission.permission.permissionId
|
|
387
|
-
* @permissionId DEV_CENTER.CREATE_APP_PERMISSION
|
|
388
|
-
* @permissionScope Write Dev Center App Permissions
|
|
389
|
-
* @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
|
|
390
|
-
* @applicableIdentity APP
|
|
391
|
-
* @returns Details of the created app permission.
|
|
392
|
-
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
|
|
393
|
-
*/
|
|
394
|
-
export declare function createAppPermission(appPermission: NonNullablePaths<AppPermission, `appId` | `permission` | `permission.permissionId`>): Promise<NonNullablePaths<AppPermission, AppPermissionNonNullablePaths>>;
|
|
395
|
-
/**
|
|
396
|
-
* Lists app permissions by app ID.
|
|
397
|
-
* @param appId - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
398
|
-
*
|
|
399
|
-
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
400
|
-
* @public
|
|
401
|
-
* @documentationMaturity preview
|
|
402
|
-
* @requiredField appId
|
|
403
|
-
* @permissionId DEV_CENTER.READ_APP_PERMISSIONS
|
|
404
|
-
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.ListAppPermissions
|
|
405
|
-
*/
|
|
406
|
-
export declare function listAppPermissions(appId: string, options?: ListAppPermissionsOptions): Promise<NonNullablePaths<ListAppPermissionsResponse, {
|
|
407
|
-
[P in AppPermissionNonNullablePaths]: `appPermissions.${number}.${P}`;
|
|
408
|
-
}[AppPermissionNonNullablePaths]>>;
|
|
409
|
-
export interface ListAppPermissionsOptions {
|
|
410
|
-
/**
|
|
411
|
-
* Whether to retrieve the most recent permissions information. This decreases performance but ensures the information retrieved is up-to-date even immediately after an update.
|
|
368
|
+
interface AppPermissionDeletedEnvelope {
|
|
369
|
+
metadata: EventMetadata;
|
|
370
|
+
}
|
|
371
|
+
interface ListAppPermissionsOptions {
|
|
372
|
+
/**
|
|
373
|
+
* Whether to retrieve the most recent permissions information. This decreases performance but ensures that the retrieved information is up-to-date, even immediately after an update.
|
|
412
374
|
*
|
|
413
375
|
* Default: `false`
|
|
414
376
|
*/
|
|
@@ -416,31 +378,5 @@ export interface ListAppPermissionsOptions {
|
|
|
416
378
|
/** Paging configuration. */
|
|
417
379
|
paging?: CursorPaging;
|
|
418
380
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
* @param appId - [App ID](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#app-id).
|
|
422
|
-
*
|
|
423
|
-
* You can find the app ID on the [Home page](https://manage.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%home) in the app's dashboard.
|
|
424
|
-
* @public
|
|
425
|
-
* @documentationMaturity preview
|
|
426
|
-
* @requiredField appId
|
|
427
|
-
* @requiredField options
|
|
428
|
-
* @requiredField options.permissionId
|
|
429
|
-
* @permissionId DEV_CENTER.DELETE_APP_PERMISSION
|
|
430
|
-
* @permissionScope Write Dev Center App Permissions
|
|
431
|
-
* @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
|
|
432
|
-
* @applicableIdentity APP
|
|
433
|
-
* @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.DeleteAppPermission
|
|
434
|
-
*/
|
|
435
|
-
export declare function deleteAppPermission(appId: string, options: NonNullablePaths<DeleteAppPermissionOptions, `permissionId`>): Promise<void>;
|
|
436
|
-
export interface DeleteAppPermissionOptions {
|
|
437
|
-
/**
|
|
438
|
-
* Permission ID.
|
|
439
|
-
*
|
|
440
|
-
* To find the permission ID, visit the [Permissions page](https://dev.wix.com/app-selector?title=Select+an+App&primaryButtonText=Select+Site&actionUrl=https%3A%2F%2Fdev.wix.com%2Fapps%2F%7BappId%7D%2Fdev-center-permissions/add) in the app's dashboard and search for the [permission you want to configure](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/configure-permissions-for-your-app#step-1--identify-required-permissions).
|
|
441
|
-
* @minLength 1
|
|
442
|
-
* @maxLength 164
|
|
443
|
-
*/
|
|
444
|
-
permissionId: string;
|
|
445
|
-
}
|
|
446
|
-
export {};
|
|
381
|
+
|
|
382
|
+
export { type AppPermission as A, type BaseEventMetadata as B, type CreateAppPermissionRequest as C, type DeleteAppPermissionRequest as D, type EntityCreatedEvent as E, type GetAppPermissionRequest as G, type IdentificationData as I, type ListAppPermissionsOptions as L, type MessageEnvelope as M, type OldPermissionChangedEvent as O, type PermissionActionDomainEventEntity as P, type RestoreInfo as R, type V1Permission as V, WebhookIdentityType as W, type ListAppPermissionsResponse as a, ActionType as b, Action as c, type CreateAppPermissionResponse as d, type GetAppPermissionResponse as e, type ListAppPermissionsRequest as f, type CursorPaging as g, type CursorPagingMetadata as h, type Cursors as i, type DeleteAppPermissionResponse as j, type DomainEvent as k, type DomainEventBodyOneOf as l, type EntityUpdatedEvent as m, type EntityDeletedEvent as n, type ActionEvent as o, type Empty as p, type Permission as q, type IdentificationDataIdOneOf as r, type EventMetadata as s, type AppPermissionCreatedEnvelope as t, type AppPermissionDeletedEnvelope as u };
|