@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.
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-ROYtr-wC.d.mts} +51 -115
  2. 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
  3. package/build/index.d.mts +47 -0
  4. package/build/index.d.ts +47 -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-ROYtr-wC.d.mts} +51 -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-ROYtr-wC.d.ts} +51 -115
  11. package/build/internal/index.d.mts +47 -0
  12. package/build/internal/index.d.ts +47 -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 -11
  40. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -17
  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 -7
  43. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -138
  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 -36
  49. package/build/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -42
  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 -314
  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 -172
  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 -11
  67. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -11
  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 -7
  70. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -132
  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 -36
  76. package/build/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -33
  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 -314
  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 -143
  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 -11
  93. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -17
  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 -7
  96. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -138
  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 -36
  102. package/build/internal/cjs/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -42
  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 -314
  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 -172
  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 -11
  119. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.context.js +0 -11
  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 -7
  122. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.http.js +0 -132
  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 -36
  128. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.public.js +0 -33
  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 -314
  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 -143
  134. package/build/internal/es/src/devcenter-apps-v1-app-permission-app-permissions.universal.js.map +0 -1
@@ -1,15 +1,13 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
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 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.
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 details.
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
- export interface V1Permission {
26
+ interface V1Permission {
29
27
  /**
30
28
  * Permission ID.
31
29
  *
32
- * 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).
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
- export interface CreateAppPermissionRequest {
39
- /** App permission to create. */
36
+ interface CreateAppPermissionRequest {
37
+ /** Permission to add to the specified app. */
40
38
  appPermission: AppPermission;
41
39
  }
42
- export interface CreateAppPermissionResponse {
43
- /** Details of the created app permission. */
40
+ interface CreateAppPermissionResponse {
41
+ /** Details of permission that was added to the app. */
44
42
  appPermission?: AppPermission;
45
43
  }
46
- export interface GetAppPermissionRequest {
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, 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).
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
- export interface GetAppPermissionResponse {
61
+ interface GetAppPermissionResponse {
64
62
  /** Details of the retrieved app permission. */
65
63
  appPermission?: AppPermission;
66
64
  }
67
- export interface ListAppPermissionsRequest {
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 retrieved is up-to-date even immediately after an update.
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
- export interface CursorPaging {
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
- export interface ListAppPermissionsResponse {
100
- /** App permissions. */
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
- export interface CursorPagingMetadata {
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
- export interface Cursors {
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
- export interface DeleteAppPermissionRequest {
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, 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).
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
- export interface DeleteAppPermissionResponse {
145
+ interface DeleteAppPermissionResponse {
148
146
  }
149
- export interface PermissionActionDomainEventEntity {
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
- export declare enum ActionType {
153
+ declare enum ActionType {
156
154
  APP_PERMISSION_DELETED = "APP_PERMISSION_DELETED"
157
155
  }
158
- export interface DomainEvent extends DomainEventBodyOneOf {
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
- export interface DomainEventBodyOneOf {
199
+ interface DomainEventBodyOneOf {
202
200
  createdEvent?: EntityCreatedEvent;
203
201
  updatedEvent?: EntityUpdatedEvent;
204
202
  deletedEvent?: EntityDeletedEvent;
205
203
  actionEvent?: ActionEvent;
206
204
  }
207
- export interface EntityCreatedEvent {
205
+ interface EntityCreatedEvent {
208
206
  entity?: string;
209
207
  }
210
- export interface RestoreInfo {
208
+ interface RestoreInfo {
211
209
  deletedDate?: Date | null;
212
210
  }
213
- export interface EntityUpdatedEvent {
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
- export interface EntityDeletedEvent {
219
+ interface EntityDeletedEvent {
222
220
  /** Entity that was deleted */
223
221
  deletedEntity?: string | null;
224
222
  }
225
- export interface ActionEvent {
223
+ interface ActionEvent {
226
224
  body?: string;
227
225
  }
228
- export interface Empty {
226
+ interface Empty {
229
227
  }
230
- export interface OldPermissionChangedEvent {
228
+ interface OldPermissionChangedEvent {
231
229
  /** @format GUID */
232
230
  appId?: string;
233
231
  permission?: Permission;
234
232
  action?: Action;
235
233
  }
236
- export interface Permission {
234
+ interface Permission {
237
235
  permissionId?: string;
238
236
  }
239
- export declare enum Action {
237
+ declare enum Action {
240
238
  CREATED = "CREATED",
241
239
  UPDATED = "UPDATED",
242
240
  DELETED = "DELETED"
243
241
  }
244
- export interface MessageEnvelope {
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
- export interface IdentificationData extends IdentificationDataIdOneOf {
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
- export interface IdentificationDataIdOneOf {
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
- export declare enum WebhookIdentityType {
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
- export interface BaseEventMetadata {
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
- export interface EventMetadata extends BaseEventMetadata {
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
- export interface AppPermissionCreatedEnvelope {
364
+ interface AppPermissionCreatedEnvelope {
367
365
  entity: AppPermission;
368
366
  metadata: EventMetadata;
369
367
  }
370
- /** @permissionId DEV_CENTER.READ_APP_PERMISSIONS
371
- * @webhook
372
- * @eventType wix.devcenter.apps.v1.app_permission_created
373
- * @slug created
374
- * @documentationMaturity preview
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
- * Deletes the specified app permission.
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 };