@wix/auto_sdk_app-management_app-permissions 1.0.16 → 1.0.18

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.
Files changed (134) hide show
  1. package/build/{internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.mts} +40 -115
  2. package/build/{cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.ts} +40 -115
  3. package/build/index.d.mts +58 -0
  4. package/build/index.d.ts +58 -0
  5. package/build/index.js +351 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +320 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → internal/devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.mts} +40 -115
  10. package/build/internal/{es/src/devcenter-apps-v1-app-permission-app-permissions.universal.d.ts → devcenter-apps-v1-app-permission-app-permissions.universal-BrjAb5-h.d.ts} +40 -115
  11. package/build/internal/index.d.mts +58 -0
  12. package/build/internal/index.d.ts +58 -0
  13. package/build/internal/index.js +351 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +320 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +143 -0
  18. package/build/internal/meta.d.ts +143 -0
  19. package/build/internal/meta.js +220 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +191 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +143 -0
  24. package/build/meta.d.ts +143 -0
  25. package/build/meta.js +220 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +191 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
  40. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -24
  41. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
  42. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
  43. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -150
  44. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
  45. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
  46. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -85
  47. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
  48. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
  49. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -52
  50. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
  51. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
  52. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -22
  53. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
  54. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -177
  55. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
  67. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -18
  68. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
  69. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
  70. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -144
  71. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
  72. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
  73. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -56
  74. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
  75. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
  76. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -43
  77. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
  78. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
  79. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -19
  80. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
  81. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -148
  82. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
  93. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -24
  94. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
  95. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
  96. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -150
  97. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
  98. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
  99. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -85
  100. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
  101. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
  102. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -52
  103. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
  104. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
  105. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -22
  106. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
  107. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -177
  108. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.d.ts +0 -18
  119. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -18
  120. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js.map +0 -1
  121. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.d.ts +0 -19
  122. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -144
  123. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js.map +0 -1
  124. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.d.ts +0 -15
  125. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js +0 -56
  126. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.meta.js.map +0 -1
  127. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.d.ts +0 -46
  128. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -43
  129. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js.map +0 -1
  130. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.d.ts +0 -311
  131. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js +0 -19
  132. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.types.js.map +0 -1
  133. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js +0 -148
  134. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
@@ -1,5 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface AppPermission {
1
+ interface AppPermission {
3
2
  /**
4
3
  * App ID.
5
4
  *
@@ -24,7 +23,7 @@ export interface AppPermission {
24
23
  */
25
24
  _updatedDate?: Date | null;
26
25
  }
27
- export interface V1Permission {
26
+ interface V1Permission {
28
27
  /**
29
28
  * Permission ID.
30
29
  *
@@ -34,15 +33,15 @@ export interface V1Permission {
34
33
  */
35
34
  permissionId?: string;
36
35
  }
37
- export interface CreateAppPermissionRequest {
36
+ interface CreateAppPermissionRequest {
38
37
  /** Permission to add to the specified app. */
39
38
  appPermission: AppPermission;
40
39
  }
41
- export interface CreateAppPermissionResponse {
40
+ interface CreateAppPermissionResponse {
42
41
  /** Details of permission that was added to the app. */
43
42
  appPermission?: AppPermission;
44
43
  }
45
- export interface GetAppPermissionRequest {
44
+ interface GetAppPermissionRequest {
46
45
  /**
47
46
  * App ID.
48
47
  *
@@ -59,11 +58,11 @@ export interface GetAppPermissionRequest {
59
58
  */
60
59
  permissionId?: string;
61
60
  }
62
- export interface GetAppPermissionResponse {
61
+ interface GetAppPermissionResponse {
63
62
  /** Details of the retrieved app permission. */
64
63
  appPermission?: AppPermission;
65
64
  }
66
- export interface ListAppPermissionsRequest {
65
+ interface ListAppPermissionsRequest {
67
66
  /**
68
67
  * App ID.
69
68
  *
@@ -80,7 +79,7 @@ export interface ListAppPermissionsRequest {
80
79
  /** Paging configuration. */
81
80
  paging?: CursorPaging;
82
81
  }
83
- export interface CursorPaging {
82
+ interface CursorPaging {
84
83
  /**
85
84
  * Maximum number of items to return in the results.
86
85
  * @max 100
@@ -95,13 +94,13 @@ export interface CursorPaging {
95
94
  */
96
95
  cursor?: string | null;
97
96
  }
98
- export interface ListAppPermissionsResponse {
97
+ interface ListAppPermissionsResponse {
99
98
  /** List of permissions for the specified app. */
100
99
  appPermissions?: AppPermission[];
101
100
  /** Paging metadata. */
102
101
  pagingMetadata?: CursorPagingMetadata;
103
102
  }
104
- export interface CursorPagingMetadata {
103
+ interface CursorPagingMetadata {
105
104
  /** Number of items returned in current page. */
106
105
  count?: number | null;
107
106
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -114,7 +113,7 @@ export interface CursorPagingMetadata {
114
113
  */
115
114
  hasNext?: boolean | null;
116
115
  }
117
- export interface Cursors {
116
+ interface Cursors {
118
117
  /**
119
118
  * Cursor string pointing to the next page in the list of results.
120
119
  * @maxLength 16000
@@ -126,7 +125,7 @@ export interface Cursors {
126
125
  */
127
126
  prev?: string | null;
128
127
  }
129
- export interface DeleteAppPermissionRequest {
128
+ interface DeleteAppPermissionRequest {
130
129
  /**
131
130
  * App ID.
132
131
  *
@@ -143,20 +142,20 @@ export interface DeleteAppPermissionRequest {
143
142
  */
144
143
  permissionId: string;
145
144
  }
146
- export interface DeleteAppPermissionResponse {
145
+ interface DeleteAppPermissionResponse {
147
146
  }
148
- export interface PermissionActionDomainEventEntity {
147
+ interface PermissionActionDomainEventEntity {
149
148
  /** The permission that had an event */
150
149
  appPermission?: AppPermission;
151
150
  /** The action which happened */
152
151
  actionType?: ActionTypeWithLiterals;
153
152
  }
154
- export declare enum ActionType {
153
+ declare enum ActionType {
155
154
  APP_PERMISSION_DELETED = "APP_PERMISSION_DELETED"
156
155
  }
157
156
  /** @enumType */
158
- export type ActionTypeWithLiterals = ActionType | 'APP_PERMISSION_DELETED';
159
- export interface DomainEvent extends DomainEventBodyOneOf {
157
+ type ActionTypeWithLiterals = ActionType | 'APP_PERMISSION_DELETED';
158
+ interface DomainEvent extends DomainEventBodyOneOf {
160
159
  createdEvent?: EntityCreatedEvent;
161
160
  updatedEvent?: EntityUpdatedEvent;
162
161
  deletedEvent?: EntityDeletedEvent;
@@ -191,19 +190,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
191
190
  entityEventSequence?: string | null;
192
191
  }
193
192
  /** @oneof */
194
- export interface DomainEventBodyOneOf {
193
+ interface DomainEventBodyOneOf {
195
194
  createdEvent?: EntityCreatedEvent;
196
195
  updatedEvent?: EntityUpdatedEvent;
197
196
  deletedEvent?: EntityDeletedEvent;
198
197
  actionEvent?: ActionEvent;
199
198
  }
200
- export interface EntityCreatedEvent {
199
+ interface EntityCreatedEvent {
201
200
  entity?: string;
202
201
  }
203
- export interface RestoreInfo {
202
+ interface RestoreInfo {
204
203
  deletedDate?: Date | null;
205
204
  }
206
- export interface EntityUpdatedEvent {
205
+ interface EntityUpdatedEvent {
207
206
  /**
208
207
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
209
208
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -211,32 +210,32 @@ export interface EntityUpdatedEvent {
211
210
  */
212
211
  currentEntity?: string;
213
212
  }
214
- export interface EntityDeletedEvent {
213
+ interface EntityDeletedEvent {
215
214
  /** Entity that was deleted. */
216
215
  deletedEntity?: string | null;
217
216
  }
218
- export interface ActionEvent {
217
+ interface ActionEvent {
219
218
  body?: string;
220
219
  }
221
- export interface Empty {
220
+ interface Empty {
222
221
  }
223
- export interface OldPermissionChangedEvent {
222
+ interface OldPermissionChangedEvent {
224
223
  /** @format GUID */
225
224
  appId?: string;
226
225
  permission?: Permission;
227
226
  action?: ActionWithLiterals;
228
227
  }
229
- export interface Permission {
228
+ interface Permission {
230
229
  permissionId?: string;
231
230
  }
232
- export declare enum Action {
231
+ declare enum Action {
233
232
  CREATED = "CREATED",
234
233
  UPDATED = "UPDATED",
235
234
  DELETED = "DELETED"
236
235
  }
237
236
  /** @enumType */
238
- export type ActionWithLiterals = Action | 'CREATED' | 'UPDATED' | 'DELETED';
239
- export interface MessageEnvelope {
237
+ type ActionWithLiterals = Action | 'CREATED' | 'UPDATED' | 'DELETED';
238
+ interface MessageEnvelope {
240
239
  /**
241
240
  * App instance ID.
242
241
  * @format GUID
@@ -252,7 +251,7 @@ export interface MessageEnvelope {
252
251
  /** Stringify payload. */
253
252
  data?: string;
254
253
  }
255
- export interface IdentificationData extends IdentificationDataIdOneOf {
254
+ interface IdentificationData extends IdentificationDataIdOneOf {
256
255
  /**
257
256
  * ID of a site visitor that has not logged in to the site.
258
257
  * @format GUID
@@ -277,7 +276,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
277
276
  identityType?: WebhookIdentityTypeWithLiterals;
278
277
  }
279
278
  /** @oneof */
280
- export interface IdentificationDataIdOneOf {
279
+ interface IdentificationDataIdOneOf {
281
280
  /**
282
281
  * ID of a site visitor that has not logged in to the site.
283
282
  * @format GUID
@@ -299,7 +298,7 @@ export interface IdentificationDataIdOneOf {
299
298
  */
300
299
  appId?: string;
301
300
  }
302
- export declare enum WebhookIdentityType {
301
+ declare enum WebhookIdentityType {
303
302
  UNKNOWN = "UNKNOWN",
304
303
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
305
304
  MEMBER = "MEMBER",
@@ -307,8 +306,8 @@ export declare enum WebhookIdentityType {
307
306
  APP = "APP"
308
307
  }
309
308
  /** @enumType */
310
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
311
- export interface BaseEventMetadata {
309
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
310
+ interface BaseEventMetadata {
312
311
  /**
313
312
  * App instance ID.
314
313
  * @format GUID
@@ -322,7 +321,7 @@ export interface BaseEventMetadata {
322
321
  /** The identification type and identity data. */
323
322
  identity?: IdentificationData;
324
323
  }
325
- export interface EventMetadata extends BaseEventMetadata {
324
+ interface EventMetadata extends BaseEventMetadata {
326
325
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
327
326
  _id?: string;
328
327
  /**
@@ -352,68 +351,14 @@ export interface EventMetadata extends BaseEventMetadata {
352
351
  */
353
352
  entityEventSequence?: string | null;
354
353
  }
355
- export interface AppPermissionCreatedEnvelope {
354
+ interface AppPermissionCreatedEnvelope {
356
355
  entity: AppPermission;
357
356
  metadata: EventMetadata;
358
357
  }
359
- /**
360
- * Triggered when a permission is added to an app.
361
- * @permissionId DEV_CENTER.READ_APP_PERMISSIONS
362
- * @webhook
363
- * @eventType wix.devcenter.apps.v1.app_permission_created
364
- * @slug created
365
- * @documentationMaturity preview
366
- */
367
- export declare function onAppPermissionCreated(handler: (event: AppPermissionCreatedEnvelope) => void | Promise<void>): void;
368
- export interface AppPermissionDeletedEnvelope {
358
+ interface AppPermissionDeletedEnvelope {
369
359
  metadata: EventMetadata;
370
360
  }
371
- /**
372
- * Triggered when a permission is deleted from an app.
373
- * @permissionId DEV_CENTER.READ_APP_PERMISSIONS
374
- * @webhook
375
- * @eventType wix.devcenter.apps.v1.app_permission_deleted
376
- * @slug deleted
377
- * @documentationMaturity preview
378
- */
379
- export declare function onAppPermissionDeleted(handler: (event: AppPermissionDeletedEnvelope) => void | Promise<void>): void;
380
- type AppPermissionNonNullablePaths = `appId` | `permission.permissionId`;
381
- /**
382
- * Adds a permission to the specified app.
383
- *
384
- * When users install your app on a site, it requests this permission.
385
- * @param appPermission - Permission to add to the specified app.
386
- * @public
387
- * @documentationMaturity preview
388
- * @requiredField appPermission
389
- * @requiredField appPermission.appId
390
- * @requiredField appPermission.permission
391
- * @requiredField appPermission.permission.permissionId
392
- * @permissionId DEV_CENTER.CREATE_APP_PERMISSION
393
- * @permissionScope Write Dev Center App Permissions
394
- * @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
395
- * @applicableIdentity APP
396
- * @returns Details of permission that was added to the app.
397
- * @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
398
- */
399
- export declare function createAppPermission(appPermission: NonNullablePaths<AppPermission, `appId` | `permission` | `permission.permissionId`>): Promise<NonNullablePaths<AppPermission, AppPermissionNonNullablePaths>>;
400
- /**
401
- * Lists all permissions for the specified app.
402
- *
403
- * These are the permissions your app requests when users install it on a site.
404
- * @param appId - App ID.
405
- *
406
- * 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.
407
- * @public
408
- * @documentationMaturity preview
409
- * @requiredField appId
410
- * @permissionId DEV_CENTER.READ_APP_PERMISSIONS
411
- * @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.ListAppPermissions
412
- */
413
- export declare function listAppPermissions(appId: string, options?: ListAppPermissionsOptions): Promise<NonNullablePaths<ListAppPermissionsResponse, {
414
- [P in AppPermissionNonNullablePaths]: `appPermissions.${number}.${P}`;
415
- }[AppPermissionNonNullablePaths]>>;
416
- export interface ListAppPermissionsOptions {
361
+ interface ListAppPermissionsOptions {
417
362
  /**
418
363
  * 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.
419
364
  *
@@ -423,25 +368,5 @@ export interface ListAppPermissionsOptions {
423
368
  /** Paging configuration. */
424
369
  paging?: CursorPaging;
425
370
  }
426
- /**
427
- * Deletes a permission from the specified app.
428
- *
429
- * After deleting a permission, your app no longer requests it when users install it on a site. As a result, the app can no longer make calls to APIs that require this permission.
430
- * @param appId - App ID.
431
- *
432
- * 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.
433
- * @param permissionId - Permission ID.
434
- *
435
- * 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).
436
- * @public
437
- * @documentationMaturity preview
438
- * @requiredField appId
439
- * @requiredField permissionId
440
- * @permissionId DEV_CENTER.DELETE_APP_PERMISSION
441
- * @permissionScope Write Dev Center App Permissions
442
- * @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
443
- * @applicableIdentity APP
444
- * @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.DeleteAppPermission
445
- */
446
- export declare function deleteAppPermission(appId: string, permissionId: string): Promise<void>;
447
- export {};
371
+
372
+ 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, type AppPermissionCreatedEnvelope as b, type AppPermissionDeletedEnvelope as c, ActionType as d, Action as e, type CreateAppPermissionResponse as f, type GetAppPermissionResponse as g, type ListAppPermissionsRequest as h, type CursorPaging as i, type CursorPagingMetadata as j, type Cursors as k, type DeleteAppPermissionResponse as l, type DomainEvent as m, type DomainEventBodyOneOf as n, type EntityUpdatedEvent as o, type EntityDeletedEvent as p, type ActionEvent as q, type Empty as r, type Permission as s, type IdentificationDataIdOneOf as t, type EventMetadata as u };
@@ -1,5 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface AppPermission {
1
+ interface AppPermission {
3
2
  /**
4
3
  * App ID.
5
4
  *
@@ -24,7 +23,7 @@ export interface AppPermission {
24
23
  */
25
24
  _updatedDate?: Date | null;
26
25
  }
27
- export interface V1Permission {
26
+ interface V1Permission {
28
27
  /**
29
28
  * Permission ID.
30
29
  *
@@ -34,15 +33,15 @@ export interface V1Permission {
34
33
  */
35
34
  permissionId?: string;
36
35
  }
37
- export interface CreateAppPermissionRequest {
36
+ interface CreateAppPermissionRequest {
38
37
  /** Permission to add to the specified app. */
39
38
  appPermission: AppPermission;
40
39
  }
41
- export interface CreateAppPermissionResponse {
40
+ interface CreateAppPermissionResponse {
42
41
  /** Details of permission that was added to the app. */
43
42
  appPermission?: AppPermission;
44
43
  }
45
- export interface GetAppPermissionRequest {
44
+ interface GetAppPermissionRequest {
46
45
  /**
47
46
  * App ID.
48
47
  *
@@ -59,11 +58,11 @@ export interface GetAppPermissionRequest {
59
58
  */
60
59
  permissionId?: string;
61
60
  }
62
- export interface GetAppPermissionResponse {
61
+ interface GetAppPermissionResponse {
63
62
  /** Details of the retrieved app permission. */
64
63
  appPermission?: AppPermission;
65
64
  }
66
- export interface ListAppPermissionsRequest {
65
+ interface ListAppPermissionsRequest {
67
66
  /**
68
67
  * App ID.
69
68
  *
@@ -80,7 +79,7 @@ export interface ListAppPermissionsRequest {
80
79
  /** Paging configuration. */
81
80
  paging?: CursorPaging;
82
81
  }
83
- export interface CursorPaging {
82
+ interface CursorPaging {
84
83
  /**
85
84
  * Maximum number of items to return in the results.
86
85
  * @max 100
@@ -95,13 +94,13 @@ export interface CursorPaging {
95
94
  */
96
95
  cursor?: string | null;
97
96
  }
98
- export interface ListAppPermissionsResponse {
97
+ interface ListAppPermissionsResponse {
99
98
  /** List of permissions for the specified app. */
100
99
  appPermissions?: AppPermission[];
101
100
  /** Paging metadata. */
102
101
  pagingMetadata?: CursorPagingMetadata;
103
102
  }
104
- export interface CursorPagingMetadata {
103
+ interface CursorPagingMetadata {
105
104
  /** Number of items returned in current page. */
106
105
  count?: number | null;
107
106
  /** Cursor strings that point to the next page, previous page, or both. */
@@ -114,7 +113,7 @@ export interface CursorPagingMetadata {
114
113
  */
115
114
  hasNext?: boolean | null;
116
115
  }
117
- export interface Cursors {
116
+ interface Cursors {
118
117
  /**
119
118
  * Cursor string pointing to the next page in the list of results.
120
119
  * @maxLength 16000
@@ -126,7 +125,7 @@ export interface Cursors {
126
125
  */
127
126
  prev?: string | null;
128
127
  }
129
- export interface DeleteAppPermissionRequest {
128
+ interface DeleteAppPermissionRequest {
130
129
  /**
131
130
  * App ID.
132
131
  *
@@ -143,20 +142,20 @@ export interface DeleteAppPermissionRequest {
143
142
  */
144
143
  permissionId: string;
145
144
  }
146
- export interface DeleteAppPermissionResponse {
145
+ interface DeleteAppPermissionResponse {
147
146
  }
148
- export interface PermissionActionDomainEventEntity {
147
+ interface PermissionActionDomainEventEntity {
149
148
  /** The permission that had an event */
150
149
  appPermission?: AppPermission;
151
150
  /** The action which happened */
152
151
  actionType?: ActionTypeWithLiterals;
153
152
  }
154
- export declare enum ActionType {
153
+ declare enum ActionType {
155
154
  APP_PERMISSION_DELETED = "APP_PERMISSION_DELETED"
156
155
  }
157
156
  /** @enumType */
158
- export type ActionTypeWithLiterals = ActionType | 'APP_PERMISSION_DELETED';
159
- export interface DomainEvent extends DomainEventBodyOneOf {
157
+ type ActionTypeWithLiterals = ActionType | 'APP_PERMISSION_DELETED';
158
+ interface DomainEvent extends DomainEventBodyOneOf {
160
159
  createdEvent?: EntityCreatedEvent;
161
160
  updatedEvent?: EntityUpdatedEvent;
162
161
  deletedEvent?: EntityDeletedEvent;
@@ -191,19 +190,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
191
190
  entityEventSequence?: string | null;
192
191
  }
193
192
  /** @oneof */
194
- export interface DomainEventBodyOneOf {
193
+ interface DomainEventBodyOneOf {
195
194
  createdEvent?: EntityCreatedEvent;
196
195
  updatedEvent?: EntityUpdatedEvent;
197
196
  deletedEvent?: EntityDeletedEvent;
198
197
  actionEvent?: ActionEvent;
199
198
  }
200
- export interface EntityCreatedEvent {
199
+ interface EntityCreatedEvent {
201
200
  entity?: string;
202
201
  }
203
- export interface RestoreInfo {
202
+ interface RestoreInfo {
204
203
  deletedDate?: Date | null;
205
204
  }
206
- export interface EntityUpdatedEvent {
205
+ interface EntityUpdatedEvent {
207
206
  /**
208
207
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
209
208
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -211,32 +210,32 @@ export interface EntityUpdatedEvent {
211
210
  */
212
211
  currentEntity?: string;
213
212
  }
214
- export interface EntityDeletedEvent {
213
+ interface EntityDeletedEvent {
215
214
  /** Entity that was deleted. */
216
215
  deletedEntity?: string | null;
217
216
  }
218
- export interface ActionEvent {
217
+ interface ActionEvent {
219
218
  body?: string;
220
219
  }
221
- export interface Empty {
220
+ interface Empty {
222
221
  }
223
- export interface OldPermissionChangedEvent {
222
+ interface OldPermissionChangedEvent {
224
223
  /** @format GUID */
225
224
  appId?: string;
226
225
  permission?: Permission;
227
226
  action?: ActionWithLiterals;
228
227
  }
229
- export interface Permission {
228
+ interface Permission {
230
229
  permissionId?: string;
231
230
  }
232
- export declare enum Action {
231
+ declare enum Action {
233
232
  CREATED = "CREATED",
234
233
  UPDATED = "UPDATED",
235
234
  DELETED = "DELETED"
236
235
  }
237
236
  /** @enumType */
238
- export type ActionWithLiterals = Action | 'CREATED' | 'UPDATED' | 'DELETED';
239
- export interface MessageEnvelope {
237
+ type ActionWithLiterals = Action | 'CREATED' | 'UPDATED' | 'DELETED';
238
+ interface MessageEnvelope {
240
239
  /**
241
240
  * App instance ID.
242
241
  * @format GUID
@@ -252,7 +251,7 @@ export interface MessageEnvelope {
252
251
  /** Stringify payload. */
253
252
  data?: string;
254
253
  }
255
- export interface IdentificationData extends IdentificationDataIdOneOf {
254
+ interface IdentificationData extends IdentificationDataIdOneOf {
256
255
  /**
257
256
  * ID of a site visitor that has not logged in to the site.
258
257
  * @format GUID
@@ -277,7 +276,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
277
276
  identityType?: WebhookIdentityTypeWithLiterals;
278
277
  }
279
278
  /** @oneof */
280
- export interface IdentificationDataIdOneOf {
279
+ interface IdentificationDataIdOneOf {
281
280
  /**
282
281
  * ID of a site visitor that has not logged in to the site.
283
282
  * @format GUID
@@ -299,7 +298,7 @@ export interface IdentificationDataIdOneOf {
299
298
  */
300
299
  appId?: string;
301
300
  }
302
- export declare enum WebhookIdentityType {
301
+ declare enum WebhookIdentityType {
303
302
  UNKNOWN = "UNKNOWN",
304
303
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
305
304
  MEMBER = "MEMBER",
@@ -307,8 +306,8 @@ export declare enum WebhookIdentityType {
307
306
  APP = "APP"
308
307
  }
309
308
  /** @enumType */
310
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
311
- export interface BaseEventMetadata {
309
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
310
+ interface BaseEventMetadata {
312
311
  /**
313
312
  * App instance ID.
314
313
  * @format GUID
@@ -322,7 +321,7 @@ export interface BaseEventMetadata {
322
321
  /** The identification type and identity data. */
323
322
  identity?: IdentificationData;
324
323
  }
325
- export interface EventMetadata extends BaseEventMetadata {
324
+ interface EventMetadata extends BaseEventMetadata {
326
325
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
327
326
  _id?: string;
328
327
  /**
@@ -352,68 +351,14 @@ export interface EventMetadata extends BaseEventMetadata {
352
351
  */
353
352
  entityEventSequence?: string | null;
354
353
  }
355
- export interface AppPermissionCreatedEnvelope {
354
+ interface AppPermissionCreatedEnvelope {
356
355
  entity: AppPermission;
357
356
  metadata: EventMetadata;
358
357
  }
359
- /**
360
- * Triggered when a permission is added to an app.
361
- * @permissionId DEV_CENTER.READ_APP_PERMISSIONS
362
- * @webhook
363
- * @eventType wix.devcenter.apps.v1.app_permission_created
364
- * @slug created
365
- * @documentationMaturity preview
366
- */
367
- export declare function onAppPermissionCreated(handler: (event: AppPermissionCreatedEnvelope) => void | Promise<void>): void;
368
- export interface AppPermissionDeletedEnvelope {
358
+ interface AppPermissionDeletedEnvelope {
369
359
  metadata: EventMetadata;
370
360
  }
371
- /**
372
- * Triggered when a permission is deleted from an app.
373
- * @permissionId DEV_CENTER.READ_APP_PERMISSIONS
374
- * @webhook
375
- * @eventType wix.devcenter.apps.v1.app_permission_deleted
376
- * @slug deleted
377
- * @documentationMaturity preview
378
- */
379
- export declare function onAppPermissionDeleted(handler: (event: AppPermissionDeletedEnvelope) => void | Promise<void>): void;
380
- type AppPermissionNonNullablePaths = `appId` | `permission.permissionId`;
381
- /**
382
- * Adds a permission to the specified app.
383
- *
384
- * When users install your app on a site, it requests this permission.
385
- * @param appPermission - Permission to add to the specified app.
386
- * @public
387
- * @documentationMaturity preview
388
- * @requiredField appPermission
389
- * @requiredField appPermission.appId
390
- * @requiredField appPermission.permission
391
- * @requiredField appPermission.permission.permissionId
392
- * @permissionId DEV_CENTER.CREATE_APP_PERMISSION
393
- * @permissionScope Write Dev Center App Permissions
394
- * @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
395
- * @applicableIdentity APP
396
- * @returns Details of permission that was added to the app.
397
- * @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.CreateAppPermission
398
- */
399
- export declare function createAppPermission(appPermission: NonNullablePaths<AppPermission, `appId` | `permission` | `permission.permissionId`>): Promise<NonNullablePaths<AppPermission, AppPermissionNonNullablePaths>>;
400
- /**
401
- * Lists all permissions for the specified app.
402
- *
403
- * These are the permissions your app requests when users install it on a site.
404
- * @param appId - App ID.
405
- *
406
- * 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.
407
- * @public
408
- * @documentationMaturity preview
409
- * @requiredField appId
410
- * @permissionId DEV_CENTER.READ_APP_PERMISSIONS
411
- * @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.ListAppPermissions
412
- */
413
- export declare function listAppPermissions(appId: string, options?: ListAppPermissionsOptions): Promise<NonNullablePaths<ListAppPermissionsResponse, {
414
- [P in AppPermissionNonNullablePaths]: `appPermissions.${number}.${P}`;
415
- }[AppPermissionNonNullablePaths]>>;
416
- export interface ListAppPermissionsOptions {
361
+ interface ListAppPermissionsOptions {
417
362
  /**
418
363
  * 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.
419
364
  *
@@ -423,25 +368,5 @@ export interface ListAppPermissionsOptions {
423
368
  /** Paging configuration. */
424
369
  paging?: CursorPaging;
425
370
  }
426
- /**
427
- * Deletes a permission from the specified app.
428
- *
429
- * After deleting a permission, your app no longer requests it when users install it on a site. As a result, the app can no longer make calls to APIs that require this permission.
430
- * @param appId - App ID.
431
- *
432
- * 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.
433
- * @param permissionId - Permission ID.
434
- *
435
- * 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).
436
- * @public
437
- * @documentationMaturity preview
438
- * @requiredField appId
439
- * @requiredField permissionId
440
- * @permissionId DEV_CENTER.DELETE_APP_PERMISSION
441
- * @permissionScope Write Dev Center App Permissions
442
- * @permissionScopeId SCOPE.DEV_CENTER.WRITE_PERMISSIONS
443
- * @applicableIdentity APP
444
- * @fqn wix.devcenter.apps.permissions.v1.AppPermissionsService.DeleteAppPermission
445
- */
446
- export declare function deleteAppPermission(appId: string, permissionId: string): Promise<void>;
447
- export {};
371
+
372
+ 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, type AppPermissionCreatedEnvelope as b, type AppPermissionDeletedEnvelope as c, ActionType as d, Action as e, type CreateAppPermissionResponse as f, type GetAppPermissionResponse as g, type ListAppPermissionsRequest as h, type CursorPaging as i, type CursorPagingMetadata as j, type Cursors as k, type DeleteAppPermissionResponse as l, type DomainEvent as m, type DomainEventBodyOneOf as n, type EntityUpdatedEvent as o, type EntityDeletedEvent as p, type ActionEvent as q, type Empty as r, type Permission as s, type IdentificationDataIdOneOf as t, type EventMetadata as u };