@wix/auth-management 1.0.12 → 1.0.14

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 (48) hide show
  1. package/build/cjs/context.d.ts +1 -0
  2. package/build/cjs/context.js +28 -0
  3. package/build/cjs/context.js.map +1 -0
  4. package/build/cjs/index.js +5 -1
  5. package/build/cjs/index.js.map +1 -1
  6. package/build/cjs/index.typings.js +5 -1
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.js +5 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/src/headless-v1-o-auth-app.context.d.ts +6 -0
  11. package/build/cjs/src/headless-v1-o-auth-app.context.js +49 -0
  12. package/build/cjs/src/headless-v1-o-auth-app.context.js.map +1 -0
  13. package/build/cjs/src/headless-v1-o-auth-app.http.d.ts +1 -0
  14. package/build/cjs/src/headless-v1-o-auth-app.http.js +55 -43
  15. package/build/cjs/src/headless-v1-o-auth-app.http.js.map +1 -1
  16. package/build/cjs/src/headless-v1-o-auth-app.meta.d.ts +1 -1
  17. package/build/cjs/src/headless-v1-o-auth-app.meta.js +5 -1
  18. package/build/cjs/src/headless-v1-o-auth-app.meta.js.map +1 -1
  19. package/build/cjs/src/headless-v1-o-auth-app.public.d.ts +4 -3
  20. package/build/cjs/src/headless-v1-o-auth-app.public.js +10 -2
  21. package/build/cjs/src/headless-v1-o-auth-app.public.js.map +1 -1
  22. package/build/cjs/src/headless-v1-o-auth-app.types.d.ts +344 -7
  23. package/build/cjs/src/headless-v1-o-auth-app.types.js +93 -2
  24. package/build/cjs/src/headless-v1-o-auth-app.types.js.map +1 -1
  25. package/build/cjs/src/headless-v1-o-auth-app.universal.d.ts +369 -19
  26. package/build/cjs/src/headless-v1-o-auth-app.universal.js +129 -39
  27. package/build/cjs/src/headless-v1-o-auth-app.universal.js.map +1 -1
  28. package/build/es/context.d.ts +1 -0
  29. package/build/es/context.js +2 -0
  30. package/build/es/context.js.map +1 -0
  31. package/build/es/src/headless-v1-o-auth-app.context.d.ts +6 -0
  32. package/build/es/src/headless-v1-o-auth-app.context.js +42 -0
  33. package/build/es/src/headless-v1-o-auth-app.context.js.map +1 -0
  34. package/build/es/src/headless-v1-o-auth-app.http.d.ts +1 -0
  35. package/build/es/src/headless-v1-o-auth-app.http.js +55 -43
  36. package/build/es/src/headless-v1-o-auth-app.http.js.map +1 -1
  37. package/build/es/src/headless-v1-o-auth-app.meta.d.ts +1 -1
  38. package/build/es/src/headless-v1-o-auth-app.public.d.ts +4 -3
  39. package/build/es/src/headless-v1-o-auth-app.public.js +3 -2
  40. package/build/es/src/headless-v1-o-auth-app.public.js.map +1 -1
  41. package/build/es/src/headless-v1-o-auth-app.types.d.ts +344 -7
  42. package/build/es/src/headless-v1-o-auth-app.types.js +91 -0
  43. package/build/es/src/headless-v1-o-auth-app.types.js.map +1 -1
  44. package/build/es/src/headless-v1-o-auth-app.universal.d.ts +369 -19
  45. package/build/es/src/headless-v1-o-auth-app.universal.js +122 -36
  46. package/build/es/src/headless-v1-o-auth-app.universal.js.map +1 -1
  47. package/context/package.json +6 -0
  48. package/package.json +10 -9
@@ -1,9 +1,4 @@
1
- export declare const __debug: {
2
- verboseLogging: {
3
- on: () => boolean;
4
- off: () => boolean;
5
- };
6
- };
1
+ import { EventDefinition } from '@wix/sdk-types';
7
2
  /** An intermediary application that authorizes and authenticates an external client to access data on a Wix project or site. */
8
3
  export interface OAuthApp {
9
4
  /**
@@ -47,6 +42,8 @@ export interface OAuthApp {
47
42
  * Default: `true` until a secret has been generated for the OAuth App.
48
43
  */
49
44
  allowSecretGeneration?: boolean | null;
45
+ /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
46
+ logoutUrl?: string | null;
50
47
  }
51
48
  export interface CreateOAuthAppRequest {
52
49
  /** OAuth app to create. */
@@ -67,8 +64,6 @@ export interface GetOAuthAppResponse {
67
64
  export interface UpdateOAuthAppRequest {
68
65
  /** Updated OAuth app details. May include some or all fields. */
69
66
  oAuthApp: OAuthApp;
70
- /** Explicit list of fields to update. Only fields listed are updated. */
71
- mask: string[];
72
67
  }
73
68
  export interface UpdateOAuthAppResponse {
74
69
  /** Updated OAuth app info. */
@@ -128,13 +123,12 @@ export interface Paging {
128
123
  offset?: number | null;
129
124
  }
130
125
  export interface CursorPaging {
131
- /** Number of items to load. */
126
+ /** Maximum number of items to return in the results. */
132
127
  limit?: number | null;
133
128
  /**
134
129
  * Pointer to the next or previous page in the list of results.
135
130
  *
136
- * You can get the relevant cursor token
137
- * from the `pagingMetadata` object in the previous call's response.
131
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
138
132
  * Not relevant for the first request.
139
133
  */
140
134
  cursor?: string | null;
@@ -158,9 +152,9 @@ export interface PagingMetadataV2 {
158
152
  cursors?: Cursors;
159
153
  }
160
154
  export interface Cursors {
161
- /** Cursor pointing to next page in the list of results. */
155
+ /** Cursor string pointing to the next page in the list of results. */
162
156
  next?: string | null;
163
- /** Cursor pointing to previous page in the list of results. */
157
+ /** Cursor pointing to the previous page in the list of results. */
164
158
  prev?: string | null;
165
159
  }
166
160
  export interface GenerateOAuthAppSecretRequest {
@@ -171,6 +165,352 @@ export interface GenerateOAuthAppSecretResponse {
171
165
  /** Secret generated. */
172
166
  oAuthAppSecret?: string;
173
167
  }
168
+ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
169
+ /** Emitted on a meta site creation. */
170
+ siteCreated?: SiteCreated;
171
+ /** Emitted on a meta site transfer completion. */
172
+ siteTransferred?: SiteTransferred;
173
+ /** Emitted on a meta site deletion. */
174
+ siteDeleted?: SiteDeleted;
175
+ /** Emitted on a meta site restoration. */
176
+ siteUndeleted?: SiteUndeleted;
177
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
178
+ sitePublished?: SitePublished;
179
+ /** Emitted on a meta site unpublish. */
180
+ siteUnpublished?: SiteUnpublished;
181
+ /** Emitted when meta site is marked as template. */
182
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
183
+ /** Emitted when meta site is marked as a WixSite. */
184
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
185
+ /** Emitted when an application is provisioned (installed). */
186
+ serviceProvisioned?: ServiceProvisioned;
187
+ /** Emitted when an application is removed (uninstalled). */
188
+ serviceRemoved?: ServiceRemoved;
189
+ /** Emitted when meta site name (URL slug) is changed. */
190
+ siteRenamedPayload?: SiteRenamed;
191
+ /** Emitted when meta site was permanently deleted. */
192
+ hardDeleted?: SiteHardDeleted;
193
+ /** Emitted on a namespace change. */
194
+ namespaceChanged?: NamespaceChanged;
195
+ /** Emitted when Studio is attached. */
196
+ studioAssigned?: StudioAssigned;
197
+ /** Emitted when Studio is detached. */
198
+ studioUnassigned?: StudioUnassigned;
199
+ /** A meta site id. */
200
+ metaSiteId?: string;
201
+ /** A meta site version. Monotonically increasing. */
202
+ version?: string;
203
+ /** A timestamp of the event. */
204
+ timestamp?: string;
205
+ /** A list of "assets" (applications). The same as MetaSiteContext. */
206
+ assets?: Asset[];
207
+ }
208
+ /** @oneof */
209
+ export interface MetaSiteSpecialEventPayloadOneOf {
210
+ /** Emitted on a meta site creation. */
211
+ siteCreated?: SiteCreated;
212
+ /** Emitted on a meta site transfer completion. */
213
+ siteTransferred?: SiteTransferred;
214
+ /** Emitted on a meta site deletion. */
215
+ siteDeleted?: SiteDeleted;
216
+ /** Emitted on a meta site restoration. */
217
+ siteUndeleted?: SiteUndeleted;
218
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
219
+ sitePublished?: SitePublished;
220
+ /** Emitted on a meta site unpublish. */
221
+ siteUnpublished?: SiteUnpublished;
222
+ /** Emitted when meta site is marked as template. */
223
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
224
+ /** Emitted when meta site is marked as a WixSite. */
225
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
226
+ /** Emitted when an application is provisioned (installed). */
227
+ serviceProvisioned?: ServiceProvisioned;
228
+ /** Emitted when an application is removed (uninstalled). */
229
+ serviceRemoved?: ServiceRemoved;
230
+ /** Emitted when meta site name (URL slug) is changed. */
231
+ siteRenamedPayload?: SiteRenamed;
232
+ /** Emitted when meta site was permanently deleted. */
233
+ hardDeleted?: SiteHardDeleted;
234
+ /** Emitted on a namespace change. */
235
+ namespaceChanged?: NamespaceChanged;
236
+ /** Emitted when Studio is attached. */
237
+ studioAssigned?: StudioAssigned;
238
+ /** Emitted when Studio is detached. */
239
+ studioUnassigned?: StudioUnassigned;
240
+ }
241
+ export interface Asset {
242
+ /** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
243
+ appDefId?: string;
244
+ /** An instance id. For legacy reasons may be UUID or a string. */
245
+ instanceId?: string;
246
+ /** An application state. */
247
+ state?: State;
248
+ }
249
+ export declare enum State {
250
+ UNKNOWN = "UNKNOWN",
251
+ ENABLED = "ENABLED",
252
+ DISABLED = "DISABLED",
253
+ PENDING = "PENDING",
254
+ DEMO = "DEMO"
255
+ }
256
+ export interface SiteCreated {
257
+ /** A template identifier (empty if not created from a template). */
258
+ originTemplateId?: string;
259
+ /** An account id of the owner. */
260
+ ownerId?: string;
261
+ /** A context in which meta site was created. */
262
+ context?: SiteCreatedContext;
263
+ /**
264
+ * A meta site id from which this site was created.
265
+ *
266
+ * In case of a creation from a template it's a template id.
267
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
268
+ */
269
+ originMetaSiteId?: string | null;
270
+ /** A meta site name (URL slug). */
271
+ siteName?: string;
272
+ /** A namespace. */
273
+ namespace?: Namespace;
274
+ }
275
+ export declare enum SiteCreatedContext {
276
+ /** A valid option, we don't expose all reasons why site might be created. */
277
+ OTHER = "OTHER",
278
+ /** A meta site was created from template. */
279
+ FROM_TEMPLATE = "FROM_TEMPLATE",
280
+ /** A meta site was created by copying of the transfferred meta site. */
281
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
282
+ /** A copy of existing meta site. */
283
+ DUPLICATE = "DUPLICATE",
284
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
285
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
286
+ /** deprecated A meta site was created for Flash editor. */
287
+ FLASH = "FLASH"
288
+ }
289
+ export declare enum Namespace {
290
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
291
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
292
+ WIX = "WIX",
293
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
294
+ SHOUT_OUT = "SHOUT_OUT",
295
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
296
+ ALBUMS = "ALBUMS",
297
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
298
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
299
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
300
+ HOTELS = "HOTELS",
301
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
302
+ CLUBS = "CLUBS",
303
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
304
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
305
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
306
+ DEV_SITE = "DEV_SITE",
307
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
308
+ LOGOS = "LOGOS",
309
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
310
+ VIDEO_MAKER = "VIDEO_MAKER",
311
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
312
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
313
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
314
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
315
+ /**
316
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
317
+ *
318
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
319
+ */
320
+ HTML_DRAFT = "HTML_DRAFT",
321
+ /**
322
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
323
+ * Will be accessible from Site List and will not have a website app.
324
+ * Once the user attaches a site, the site will become a regular wixsite.
325
+ */
326
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
327
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
328
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
329
+ /** It is to be used in the Business First efforts. */
330
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
331
+ /** Bookings business flow with no site. */
332
+ ANYWHERE = "ANYWHERE",
333
+ /** Namespace for Headless Backoffice with no editor */
334
+ HEADLESS = "HEADLESS",
335
+ /**
336
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
337
+ * The site will be used for account level CSM feature for enterprise
338
+ */
339
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
340
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
341
+ RISE = "RISE",
342
+ /**
343
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
344
+ * There's a blank site behind the scene but it's blank).
345
+ * The Mobile company will be the owner of this namespace.
346
+ */
347
+ BRANDED_FIRST = "BRANDED_FIRST"
348
+ }
349
+ /** Site transferred to another user. */
350
+ export interface SiteTransferred {
351
+ /** A previous owner id (user that transfers meta site). */
352
+ oldOwnerId?: string;
353
+ /** A new owner id (user that accepts meta site). */
354
+ newOwnerId?: string;
355
+ }
356
+ /** Soft deletion of the meta site. Could be restored. */
357
+ export interface SiteDeleted {
358
+ /** A deletion context. */
359
+ deleteContext?: DeleteContext;
360
+ }
361
+ export interface DeleteContext {
362
+ /** When the meta site was deleted. */
363
+ dateDeleted?: Date;
364
+ /** A status. */
365
+ deleteStatus?: DeleteStatus;
366
+ /** A reason (flow). */
367
+ deleteOrigin?: string;
368
+ /** A service that deleted it. */
369
+ initiatorId?: string | null;
370
+ }
371
+ export declare enum DeleteStatus {
372
+ UNKNOWN = "UNKNOWN",
373
+ TRASH = "TRASH",
374
+ DELETED = "DELETED",
375
+ PENDING_PURGE = "PENDING_PURGE"
376
+ }
377
+ /** Restoration of the meta site. */
378
+ export interface SiteUndeleted {
379
+ }
380
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
381
+ export interface SitePublished {
382
+ }
383
+ export interface SiteUnpublished {
384
+ /** A list of URLs previously associated with the meta site. */
385
+ urls?: string[];
386
+ }
387
+ export interface SiteMarkedAsTemplate {
388
+ }
389
+ export interface SiteMarkedAsWixSite {
390
+ }
391
+ export interface ServiceProvisioned {
392
+ /** Either UUID or EmbeddedServiceType. */
393
+ appDefId?: string;
394
+ /** Not only UUID. Something here could be something weird. */
395
+ instanceId?: string;
396
+ /** An instance id from which this instance is originated. */
397
+ originInstanceId?: string;
398
+ /** A version. */
399
+ version?: string | null;
400
+ }
401
+ export interface ServiceRemoved {
402
+ /** Either UUID or EmbeddedServiceType. */
403
+ appDefId?: string;
404
+ /** Not only UUID. Something here could be something weird. */
405
+ instanceId?: string;
406
+ /** A version. */
407
+ version?: string | null;
408
+ }
409
+ /** Rename of the site. Meaning, free public url has been changed as well. */
410
+ export interface SiteRenamed {
411
+ /** A new meta site name (URL slug). */
412
+ newSiteName?: string;
413
+ /** A previous meta site name (URL slug). */
414
+ oldSiteName?: string;
415
+ }
416
+ /**
417
+ * Hard deletion of the meta site.
418
+ *
419
+ * Could not be restored. Therefore it's desirable to cleanup data.
420
+ */
421
+ export interface SiteHardDeleted {
422
+ /** A deletion context. */
423
+ deleteContext?: DeleteContext;
424
+ }
425
+ export interface NamespaceChanged {
426
+ /** A previous namespace. */
427
+ oldNamespace?: Namespace;
428
+ /** A new namespace. */
429
+ newNamespace?: Namespace;
430
+ }
431
+ /** Assigned Studio editor */
432
+ export interface StudioAssigned {
433
+ }
434
+ /** Unassigned Studio editor */
435
+ export interface StudioUnassigned {
436
+ }
437
+ export interface Empty {
438
+ }
439
+ export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
440
+ createdEvent?: EntityCreatedEvent<T>;
441
+ updatedEvent?: EntityUpdatedEvent<T>;
442
+ deletedEvent?: EntityDeletedEvent<T>;
443
+ actionEvent?: ActionEvent<T>;
444
+ /**
445
+ * Unique event ID.
446
+ * Allows clients to ignore duplicate webhooks.
447
+ */
448
+ _id?: string;
449
+ /**
450
+ * Assumes actions are also always typed to an entity_type
451
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
452
+ */
453
+ entityFqdn?: string;
454
+ /**
455
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
456
+ * This is although the created/updated/deleted notion is duplication of the oneof types
457
+ * Example: created/updated/deleted/started/completed/email_opened
458
+ */
459
+ slug?: string;
460
+ /** ID of the entity associated with the event. */
461
+ entityId?: string;
462
+ /** Event timestamp. */
463
+ eventTime?: Date;
464
+ /**
465
+ * Whether the event was triggered as a result of a privacy regulation application
466
+ * (for example, GDPR).
467
+ */
468
+ triggeredByAnonymizeRequest?: boolean | null;
469
+ /** If present, indicates the action that triggered the event. */
470
+ originatedFrom?: string | null;
471
+ /**
472
+ * A sequence number defining the order of updates to the underlying entity.
473
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
474
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
475
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
476
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
477
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
478
+ */
479
+ entityEventSequence?: string | null;
480
+ }
481
+ export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
482
+ }
483
+ export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
484
+ }
485
+ export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
486
+ }
487
+ export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
488
+ }
489
+ /** @oneof */
490
+ export interface DomainEventBodyOneOf<T> {
491
+ createdEvent?: EntityCreatedEvent<T>;
492
+ updatedEvent?: EntityUpdatedEvent<T>;
493
+ deletedEvent?: EntityDeletedEvent<T>;
494
+ actionEvent?: ActionEvent<T>;
495
+ }
496
+ export interface EntityCreatedEvent<T> {
497
+ entity?: T;
498
+ }
499
+ export interface EntityUpdatedEvent<T> {
500
+ /**
501
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
502
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
503
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
504
+ */
505
+ currentEntity?: T;
506
+ }
507
+ export interface EntityDeletedEvent<T> {
508
+ /** Entity that was deleted */
509
+ deletedEntity?: T | null;
510
+ }
511
+ export interface ActionEvent<T> {
512
+ body?: T;
513
+ }
174
514
  export interface CreateOAuthAppResponseNonNullableFields {
175
515
  oAuthApp?: {
176
516
  allowedRedirectUris: string[];
@@ -195,6 +535,9 @@ export interface QueryOAuthAppsResponseNonNullableFields {
195
535
  allowedRedirectDomains: string[];
196
536
  }[];
197
537
  }
538
+ export declare const onOAuthAppCreated: EventDefinition<DomainCreatedEvent<OAuthApp>, "wix.headless.v1.o_auth_app_created">;
539
+ export declare const onOAuthAppUpdated: EventDefinition<DomainUpdatedEvent<OAuthApp>, "wix.headless.v1.o_auth_app_updated">;
540
+ export declare const onOAuthAppDeleted: EventDefinition<DomainDeletedEvent<OAuthApp>, "wix.headless.v1.o_auth_app_deleted">;
198
541
  /**
199
542
  * Creates a new OAuth app for a Wix Headless client.
200
543
  *
@@ -208,6 +551,7 @@ export interface QueryOAuthAppsResponseNonNullableFields {
208
551
  * @requiredField oAuthApp
209
552
  * @requiredField oAuthApp.name
210
553
  * @permissionScope Manage OAuth Apps
554
+ * @permissionScopeId SCOPE.OAUTH_APP.MANAGE
211
555
  * @applicableIdentity APP
212
556
  * @returns Created OAuth app info.
213
557
  */
@@ -219,7 +563,9 @@ export declare function createOAuthApp(oAuthApp: OAuthApp): Promise<OAuthApp & N
219
563
  * @documentationMaturity preview
220
564
  * @requiredField oAuthAppId
221
565
  * @permissionScope Manage OAuth Apps
566
+ * @permissionScopeId SCOPE.OAUTH_APP.MANAGE
222
567
  * @permissionScope Read OAuth Apps
568
+ * @permissionScopeId SCOPE.OAUTH_APP.READ
223
569
  * @applicableIdentity APP
224
570
  * @returns Retrieved OAuth app info.
225
571
  */
@@ -235,18 +581,18 @@ export declare function getOAuthApp(oAuthAppId: string): Promise<OAuthApp & NonN
235
581
  * + `description`
236
582
  * + `allowedDomain`
237
583
  * + `loginUrl`
584
+ * + `logoutUrl`
238
585
  * @param _id - ID of the OAuth app.
239
- * @param mask - Explicit list of fields to update. Only fields listed are updated.
240
586
  * @public
241
587
  * @documentationMaturity preview
242
588
  * @requiredField _id
243
- * @requiredField mask
244
589
  * @requiredField oAuthApp
245
590
  * @permissionScope Manage OAuth Apps
591
+ * @permissionScopeId SCOPE.OAUTH_APP.MANAGE
246
592
  * @applicableIdentity APP
247
593
  * @returns Updated OAuth app info.
248
594
  */
249
- export declare function updateOAuthApp(_id: string | null, oAuthApp: UpdateOAuthApp, mask: string[]): Promise<OAuthApp & NonNullable<UpdateOAuthAppResponseNonNullableFields>['oAuthApp']>;
595
+ export declare function updateOAuthApp(_id: string | null, oAuthApp: UpdateOAuthApp): Promise<OAuthApp & NonNullable<UpdateOAuthAppResponseNonNullableFields>['oAuthApp']>;
250
596
  export interface UpdateOAuthApp {
251
597
  /**
252
598
  * ID of the OAuth app.
@@ -289,6 +635,8 @@ export interface UpdateOAuthApp {
289
635
  * Default: `true` until a secret has been generated for the OAuth App.
290
636
  */
291
637
  allowSecretGeneration?: boolean | null;
638
+ /** External logout URL to which we invoke when user logout at wix. If no logout URL is specified, the user is logged out only at Wix. */
639
+ logoutUrl?: string | null;
292
640
  }
293
641
  /**
294
642
  * Retrieves a list of OAuth apps, given the provided paging, filtering, and sorting.
@@ -300,14 +648,16 @@ export interface UpdateOAuthApp {
300
648
  * @public
301
649
  * @documentationMaturity preview
302
650
  * @permissionScope Manage OAuth Apps
651
+ * @permissionScopeId SCOPE.OAUTH_APP.MANAGE
303
652
  * @permissionScope Read OAuth Apps
653
+ * @permissionScopeId SCOPE.OAUTH_APP.READ
304
654
  * @applicableIdentity APP
305
655
  */
306
656
  export declare function queryOAuthApps(): OAuthAppsQueryBuilder;
307
657
  interface QueryOffsetResult {
308
- currentPage: number;
309
- totalPages: number;
310
- totalCount: number;
658
+ currentPage: number | undefined;
659
+ totalPages: number | undefined;
660
+ totalCount: number | undefined;
311
661
  hasNext: () => boolean;
312
662
  hasPrev: () => boolean;
313
663
  length: number;