@wix/auto_sdk_redirects_redirects 1.0.6 → 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 (130) hide show
  1. package/build/{internal/cjs/src/headless-v1-redirect-session-redirects.universal.d.ts → headless-v1-redirect-session-redirects.universal-C1lXOxUS.d.mts} +68 -136
  2. package/build/{cjs/src/headless-v1-redirect-session-redirects.universal.d.ts → headless-v1-redirect-session-redirects.universal-C1lXOxUS.d.ts} +68 -136
  3. package/build/index.d.mts +30 -0
  4. package/build/index.d.ts +30 -0
  5. package/build/index.js +223 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +191 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/headless-v1-redirect-session-redirects.universal.d.ts → headless-v1-redirect-session-redirects.universal-C1lXOxUS.d.mts} +68 -136
  10. package/build/{es/src/headless-v1-redirect-session-redirects.universal.d.ts → internal/headless-v1-redirect-session-redirects.universal-C1lXOxUS.d.ts} +68 -136
  11. package/build/internal/index.d.mts +30 -0
  12. package/build/internal/index.d.ts +30 -0
  13. package/build/internal/index.js +223 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +191 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{cjs/src/headless-v1-redirect-session-redirects.types.d.ts → internal/meta.d.mts} +43 -336
  18. package/build/internal/{cjs/src/headless-v1-redirect-session-redirects.types.d.ts → meta.d.ts} +43 -336
  19. package/build/internal/meta.js +93 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +66 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{es/src/headless-v1-redirect-session-redirects.types.d.ts → meta.d.mts} +43 -336
  24. package/build/{internal/es/src/headless-v1-redirect-session-redirects.types.d.ts → meta.d.ts} +43 -336
  25. package/build/meta.js +93 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +66 -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/headless-v1-redirect-session-redirects.context.d.ts +0 -11
  40. package/build/cjs/src/headless-v1-redirect-session-redirects.context.js +0 -21
  41. package/build/cjs/src/headless-v1-redirect-session-redirects.context.js.map +0 -1
  42. package/build/cjs/src/headless-v1-redirect-session-redirects.http.d.ts +0 -14
  43. package/build/cjs/src/headless-v1-redirect-session-redirects.http.js +0 -58
  44. package/build/cjs/src/headless-v1-redirect-session-redirects.http.js.map +0 -1
  45. package/build/cjs/src/headless-v1-redirect-session-redirects.meta.d.ts +0 -13
  46. package/build/cjs/src/headless-v1-redirect-session-redirects.meta.js +0 -47
  47. package/build/cjs/src/headless-v1-redirect-session-redirects.meta.js.map +0 -1
  48. package/build/cjs/src/headless-v1-redirect-session-redirects.public.d.ts +0 -24
  49. package/build/cjs/src/headless-v1-redirect-session-redirects.public.js +0 -30
  50. package/build/cjs/src/headless-v1-redirect-session-redirects.public.js.map +0 -1
  51. package/build/cjs/src/headless-v1-redirect-session-redirects.types.js +0 -75
  52. package/build/cjs/src/headless-v1-redirect-session-redirects.types.js.map +0 -1
  53. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js +0 -182
  54. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/headless-v1-redirect-session-redirects.context.d.ts +0 -11
  66. package/build/es/src/headless-v1-redirect-session-redirects.context.js +0 -11
  67. package/build/es/src/headless-v1-redirect-session-redirects.context.js.map +0 -1
  68. package/build/es/src/headless-v1-redirect-session-redirects.http.d.ts +0 -14
  69. package/build/es/src/headless-v1-redirect-session-redirects.http.js +0 -54
  70. package/build/es/src/headless-v1-redirect-session-redirects.http.js.map +0 -1
  71. package/build/es/src/headless-v1-redirect-session-redirects.meta.d.ts +0 -13
  72. package/build/es/src/headless-v1-redirect-session-redirects.meta.js +0 -20
  73. package/build/es/src/headless-v1-redirect-session-redirects.meta.js.map +0 -1
  74. package/build/es/src/headless-v1-redirect-session-redirects.public.d.ts +0 -24
  75. package/build/es/src/headless-v1-redirect-session-redirects.public.js +0 -19
  76. package/build/es/src/headless-v1-redirect-session-redirects.public.js.map +0 -1
  77. package/build/es/src/headless-v1-redirect-session-redirects.types.js +0 -72
  78. package/build/es/src/headless-v1-redirect-session-redirects.types.js.map +0 -1
  79. package/build/es/src/headless-v1-redirect-session-redirects.universal.js +0 -155
  80. package/build/es/src/headless-v1-redirect-session-redirects.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.context.d.ts +0 -11
  91. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.context.js +0 -21
  92. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.context.js.map +0 -1
  93. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.http.d.ts +0 -14
  94. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.http.js +0 -58
  95. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.http.js.map +0 -1
  96. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.d.ts +0 -13
  97. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.js +0 -47
  98. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.js.map +0 -1
  99. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.d.ts +0 -24
  100. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.js +0 -30
  101. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.js.map +0 -1
  102. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.js +0 -75
  103. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.js.map +0 -1
  104. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js +0 -182
  105. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/headless-v1-redirect-session-redirects.context.d.ts +0 -11
  116. package/build/internal/es/src/headless-v1-redirect-session-redirects.context.js +0 -11
  117. package/build/internal/es/src/headless-v1-redirect-session-redirects.context.js.map +0 -1
  118. package/build/internal/es/src/headless-v1-redirect-session-redirects.http.d.ts +0 -14
  119. package/build/internal/es/src/headless-v1-redirect-session-redirects.http.js +0 -54
  120. package/build/internal/es/src/headless-v1-redirect-session-redirects.http.js.map +0 -1
  121. package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.d.ts +0 -13
  122. package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.js +0 -20
  123. package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.js.map +0 -1
  124. package/build/internal/es/src/headless-v1-redirect-session-redirects.public.d.ts +0 -24
  125. package/build/internal/es/src/headless-v1-redirect-session-redirects.public.js +0 -19
  126. package/build/internal/es/src/headless-v1-redirect-session-redirects.public.js.map +0 -1
  127. package/build/internal/es/src/headless-v1-redirect-session-redirects.types.js +0 -72
  128. package/build/internal/es/src/headless-v1-redirect-session-redirects.types.js.map +0 -1
  129. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js +0 -155
  130. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js.map +0 -1
@@ -1,6 +1,5 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
1
  /** Information for redirecting a visitor from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
3
- export interface RedirectSession {
2
+ interface RedirectSession {
4
3
  /**
5
4
  * ID of the redirect session created.
6
5
  * @format GUID
@@ -27,7 +26,7 @@ export interface RedirectSession {
27
26
  */
28
27
  shortUrl?: string;
29
28
  }
30
- export interface URLDetails {
29
+ interface URLDetails {
31
30
  /**
32
31
  * Endpoint of the url. This includes the base URL and the path to the endpoint, without query parameters.
33
32
  * For example: `https://mysite.com/_api/oauth2/authorize`.
@@ -38,7 +37,7 @@ export interface URLDetails {
38
37
  /** URL query parameters. */
39
38
  searchParams?: Record<string, string>;
40
39
  }
41
- export interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
40
+ interface CreateRedirectSessionRequest extends CreateRedirectSessionRequestIntentOneOf {
42
41
  /** Information required for generating a custom URL for a Wix Bookings checkout. */
43
42
  bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
44
43
  /** Information required for generating a custom URL for a Wix eCommerce checkout. */
@@ -69,7 +68,7 @@ export interface CreateRedirectSessionRequest extends CreateRedirectSessionReque
69
68
  preferences?: RedirectSessionPreferences;
70
69
  }
71
70
  /** @oneof */
72
- export interface CreateRedirectSessionRequestIntentOneOf {
71
+ interface CreateRedirectSessionRequestIntentOneOf {
73
72
  /** Information required for generating a custom URL for a Wix Bookings checkout. */
74
73
  bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
75
74
  /** Information required for generating a custom URL for a Wix eCommerce checkout. */
@@ -89,7 +88,7 @@ export interface CreateRedirectSessionRequestIntentOneOf {
89
88
  /** Information required for generating a custom URL for Wix bookings book page. */
90
89
  bookingsBook?: RedirectSessionBookingsBookParams;
91
90
  }
92
- export interface RedirectSessionBookingsCheckoutParams {
91
+ interface RedirectSessionBookingsCheckoutParams {
93
92
  /**
94
93
  * The timezone to use when presenting the selected slot to users, in [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) format. For example, `America/Santiago`.
95
94
  *
@@ -99,7 +98,7 @@ export interface RedirectSessionBookingsCheckoutParams {
99
98
  timezone?: string;
100
99
  slotAvailability?: SlotAvailability;
101
100
  }
102
- export interface SlotAvailability {
101
+ interface SlotAvailability {
103
102
  /**
104
103
  * The slot for the corresponding session, when the session is either a single session
105
104
  * or a specific session generated from a recurring session.
@@ -130,7 +129,7 @@ export interface SlotAvailability {
130
129
  locked?: boolean | null;
131
130
  isFromV2?: boolean;
132
131
  }
133
- export interface Slot {
132
+ interface Slot {
134
133
  /**
135
134
  * ID for the slot's corresponding session, when the session is either a single session
136
135
  * or a specific session generated from a recurring session.
@@ -188,7 +187,7 @@ export interface Slot {
188
187
  */
189
188
  eventId?: string | null;
190
189
  }
191
- export interface SlotResource {
190
+ interface SlotResource {
192
191
  /**
193
192
  * Resource ID.
194
193
  * @format GUID
@@ -201,7 +200,7 @@ export interface SlotResource {
201
200
  */
202
201
  name?: string | null;
203
202
  }
204
- export interface Location {
203
+ interface Location {
205
204
  /**
206
205
  * Business location ID. Available only for locations that are business locations,
207
206
  * meaning the `location_type` is `"OWNER_BUSINESS"`.
@@ -226,15 +225,15 @@ export interface Location {
226
225
  */
227
226
  locationType?: LocationTypeWithLiterals;
228
227
  }
229
- export declare enum LocationType {
228
+ declare enum LocationType {
230
229
  UNDEFINED = "UNDEFINED",
231
230
  OWNER_BUSINESS = "OWNER_BUSINESS",
232
231
  OWNER_CUSTOM = "OWNER_CUSTOM",
233
232
  CUSTOM = "CUSTOM"
234
233
  }
235
234
  /** @enumType */
236
- export type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
237
- export interface WaitingList {
235
+ type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
236
+ interface WaitingList {
238
237
  /**
239
238
  * Total number of spots and open spots for this waitlist.
240
239
  * For example, a Yoga class with 10 waitlist spots and 3 registered
@@ -244,7 +243,7 @@ export interface WaitingList {
244
243
  /** Number of open spots for this waitlist. */
245
244
  openSpots?: number | null;
246
245
  }
247
- export interface BookingPolicyViolations {
246
+ interface BookingPolicyViolations {
248
247
  /** Bookings policy violation. Too early to book this slot. */
249
248
  tooEarlyToBook?: boolean | null;
250
249
  /** Bookings policy violation. Too late to book this slot. */
@@ -252,7 +251,7 @@ export interface BookingPolicyViolations {
252
251
  /** Bookings policy violation. Online booking is disabled for this slot. */
253
252
  bookOnlineDisabled?: boolean | null;
254
253
  }
255
- export interface NestedTimeSlot {
254
+ interface NestedTimeSlot {
256
255
  /** @format GUID */
257
256
  serviceId?: string;
258
257
  /** @maxLength 30 */
@@ -263,7 +262,7 @@ export interface NestedTimeSlot {
263
262
  /** Schedule ID. */
264
263
  scheduleId?: string;
265
264
  }
266
- export interface RedirectSessionEcomCheckoutParams {
265
+ interface RedirectSessionEcomCheckoutParams {
267
266
  /**
268
267
  * - SDK: Use [Create Checkout](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/create-checkout) or [Create Checkout From Current Cart](https://dev.wix.com/docs/sdk/backend-modules/ecom/current-cart/create-checkout-from-current-cart).
269
268
  * - REST: Use [Create Checkout From Cart](https://dev.wix.com/docs/rest/business-solutions/e-commerce/cart/create-checkout-from-cart).
@@ -271,13 +270,13 @@ export interface RedirectSessionEcomCheckoutParams {
271
270
  */
272
271
  checkoutId?: string;
273
272
  }
274
- export interface RedirectSessionEventsCheckoutParams {
273
+ interface RedirectSessionEventsCheckoutParams {
275
274
  /** @format GUID */
276
275
  reservationId?: string;
277
276
  /** @maxLength 150 */
278
277
  eventSlug?: string;
279
278
  }
280
- export interface RedirectSessionPaidPlansCheckoutParams {
279
+ interface RedirectSessionPaidPlansCheckoutParams {
281
280
  /** @format GUID */
282
281
  planId?: string;
283
282
  /**
@@ -287,13 +286,13 @@ export interface RedirectSessionPaidPlansCheckoutParams {
287
286
  */
288
287
  checkoutData?: string | null;
289
288
  }
290
- export interface RedirectSessionLoginParams {
289
+ interface RedirectSessionLoginParams {
291
290
  }
292
- export interface RedirectSessionLogoutParams {
291
+ interface RedirectSessionLogoutParams {
293
292
  /** @format GUID */
294
293
  clientId?: string;
295
294
  }
296
- export interface RedirectSessionAuthParams {
295
+ interface RedirectSessionAuthParams {
297
296
  authRequest?: AuthorizeRequest;
298
297
  /** The type of prompt to use during the authorization process. */
299
298
  prompt?: PromptWithLiterals;
@@ -302,7 +301,7 @@ export interface RedirectSessionAuthParams {
302
301
  * AuthorizeRequest is sent by the client to the authorization server to initiate
303
302
  * the authorization process.
304
303
  */
305
- export interface AuthorizeRequest {
304
+ interface AuthorizeRequest {
306
305
  /**
307
306
  * ID of the Wix OAuth app requesting authorization.
308
307
  * @format GUID
@@ -368,7 +367,7 @@ export interface AuthorizeRequest {
368
367
  signInUrl?: string | null;
369
368
  }
370
369
  /** Specifies the behavior of the authorization flow regarding site member authentication and consent. */
371
- export declare enum Prompt {
370
+ declare enum Prompt {
372
371
  /** Display the login page to the member, prompting them to enter their credentials. */
373
372
  login = "login",
374
373
  /**
@@ -379,8 +378,8 @@ export declare enum Prompt {
379
378
  none = "none"
380
379
  }
381
380
  /** @enumType */
382
- export type PromptWithLiterals = Prompt | 'login' | 'none';
383
- export interface RedirectSessionMembersAccountParams {
381
+ type PromptWithLiterals = Prompt | 'login' | 'none';
382
+ interface RedirectSessionMembersAccountParams {
384
383
  /**
385
384
  * The member account page to redirect to.
386
385
  *
@@ -388,7 +387,7 @@ export interface RedirectSessionMembersAccountParams {
388
387
  */
389
388
  section?: MembersAccountSectionWithLiterals;
390
389
  }
391
- export declare enum MembersAccountSection {
390
+ declare enum MembersAccountSection {
392
391
  /** Account info section in "my account". */
393
392
  ACCOUNT_INFO = "ACCOUNT_INFO",
394
393
  /** My Bookings section in "my account". */
@@ -401,19 +400,19 @@ export declare enum MembersAccountSection {
401
400
  EVENTS = "EVENTS"
402
401
  }
403
402
  /** @enumType */
404
- export type MembersAccountSectionWithLiterals = MembersAccountSection | 'ACCOUNT_INFO' | 'BOOKINGS' | 'ORDERS' | 'SUBSCRIPTIONS' | 'EVENTS';
405
- export interface RedirectSessionStoresProductParams {
403
+ type MembersAccountSectionWithLiterals = MembersAccountSection | 'ACCOUNT_INFO' | 'BOOKINGS' | 'ORDERS' | 'SUBSCRIPTIONS' | 'EVENTS';
404
+ interface RedirectSessionStoresProductParams {
406
405
  /** @maxLength 150 */
407
406
  productSlug?: string;
408
407
  }
409
- export interface RedirectSessionBookingsBookParams {
408
+ interface RedirectSessionBookingsBookParams {
410
409
  /**
411
410
  * For use when filtering the bookings page by a specific resource.
412
411
  * @format GUID
413
412
  */
414
413
  resourceId?: string;
415
414
  }
416
- export interface CallbackParams {
415
+ interface CallbackParams {
417
416
  /**
418
417
  * The URL for a custom thank you page implemented on a site outside of Wix. The visitor is directed to this page after the Wix-managed process is completed.
419
418
  * When redirecting to this URL, Wix passes different query parameters depending on the preceding transaction:
@@ -472,7 +471,7 @@ export interface CallbackParams {
472
471
  */
473
472
  planListUrl?: string | null;
474
473
  }
475
- export interface RedirectSessionPreferences {
474
+ interface RedirectSessionPreferences {
476
475
  /**
477
476
  * Whether to use a standard Wix template for Wix-managed pages the visitor is redirected to. Set to `false` only if your client site connects with a Wix site that has custom pages.
478
477
  *
@@ -485,13 +484,9 @@ export interface RedirectSessionPreferences {
485
484
  * Default: `true`
486
485
  */
487
486
  maintainIdentity?: boolean | null;
488
- /**
489
- * Map of additional global query parameters to add to the created Wix URL.
490
- * For example, [UTM parameters](https://en.wikipedia.org/wiki/UTM_parameters).
491
- */
492
487
  additionalQueryParameters?: Record<string, string>;
493
488
  }
494
- export interface CustomMemberPaths {
489
+ interface CustomMemberPaths {
495
490
  /**
496
491
  * Path of the account page in the site's members area. Required if `useGenericWixPages` is `false` and the account page path has been changed in the Wix editor.
497
492
  * @format URL_SLUG
@@ -503,11 +498,11 @@ export interface CustomMemberPaths {
503
498
  */
504
499
  profilePagePath?: string | null;
505
500
  }
506
- export interface CreateRedirectSessionResponse {
501
+ interface CreateRedirectSessionResponse {
507
502
  /** Details for redirecting the visitor to a Wix page. */
508
503
  redirectSession?: RedirectSession;
509
504
  }
510
- export interface CreateAnonymousRedirectSessionRequest extends CreateAnonymousRedirectSessionRequestIntentOneOf {
505
+ interface CreateAnonymousRedirectSessionRequest extends CreateAnonymousRedirectSessionRequestIntentOneOf {
511
506
  /** Information required for generating a custom URL for a Wix Bookings checkout. */
512
507
  bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
513
508
  /** Information required for generating a custom URL for a Wix eCommerce checkout. */
@@ -524,7 +519,7 @@ export interface CreateAnonymousRedirectSessionRequest extends CreateAnonymousRe
524
519
  preferences?: RedirectSessionPreferences;
525
520
  }
526
521
  /** @oneof */
527
- export interface CreateAnonymousRedirectSessionRequestIntentOneOf {
522
+ interface CreateAnonymousRedirectSessionRequestIntentOneOf {
528
523
  /** Information required for generating a custom URL for a Wix Bookings checkout. */
529
524
  bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
530
525
  /** Information required for generating a custom URL for a Wix eCommerce checkout. */
@@ -538,18 +533,18 @@ export interface CreateAnonymousRedirectSessionRequestIntentOneOf {
538
533
  /** Information required for generating a custom URL for Wix bookings book page. */
539
534
  bookingsBook?: RedirectSessionBookingsBookParams;
540
535
  }
541
- export interface CreateAnonymousRedirectSessionResponse {
536
+ interface CreateAnonymousRedirectSessionResponse {
542
537
  /** Details for redirecting the visitor to a Wix page. */
543
538
  redirectSession?: RedirectSession;
544
539
  }
545
- export interface AttachPagesRequest {
540
+ interface AttachPagesRequest {
546
541
  /**
547
542
  * App ID that we want to inherit pages for.
548
543
  * @format GUID
549
544
  */
550
545
  appDefId?: string;
551
546
  }
552
- export interface AttachPagesResponse {
547
+ interface AttachPagesResponse {
553
548
  /** The status of the operation. */
554
549
  status?: AttachPagesResponseStatusWithLiterals;
555
550
  /**
@@ -562,7 +557,7 @@ export interface AttachPagesResponse {
562
557
  /** True if the site was already published */
563
558
  sitePublished?: boolean;
564
559
  }
565
- export declare enum AttachPagesResponseStatus {
560
+ declare enum AttachPagesResponseStatus {
566
561
  /** Invalid value. */
567
562
  UNKNOWN = "UNKNOWN",
568
563
  /** Pages were successfully attached. */
@@ -573,8 +568,8 @@ export declare enum AttachPagesResponseStatus {
573
568
  ERROR = "ERROR"
574
569
  }
575
570
  /** @enumType */
576
- export type AttachPagesResponseStatusWithLiterals = AttachPagesResponseStatus | 'UNKNOWN' | 'SUCCESS' | 'NO_ACTION' | 'ERROR';
577
- export interface ValidateCallbackURLRequest {
571
+ type AttachPagesResponseStatusWithLiterals = AttachPagesResponseStatus | 'UNKNOWN' | 'SUCCESS' | 'NO_ACTION' | 'ERROR';
572
+ interface ValidateCallbackURLRequest {
578
573
  /**
579
574
  * An external URL to validate
580
575
  * @maxLength 2048
@@ -588,7 +583,7 @@ export interface ValidateCallbackURLRequest {
588
583
  */
589
584
  clientId?: string;
590
585
  }
591
- export declare enum CallbackType {
586
+ declare enum CallbackType {
592
587
  /** Invalid value. */
593
588
  UNKNOWN = "UNKNOWN",
594
589
  /** Callback URL is used for the logout flow. */
@@ -599,29 +594,29 @@ export declare enum CallbackType {
599
594
  AUTHORIZE = "AUTHORIZE"
600
595
  }
601
596
  /** @enumType */
602
- export type CallbackTypeWithLiterals = CallbackType | 'UNKNOWN' | 'LOGOUT' | 'CHECKOUT' | 'AUTHORIZE';
603
- export interface ValidateCallbackURLResponse {
597
+ type CallbackTypeWithLiterals = CallbackType | 'UNKNOWN' | 'LOGOUT' | 'CHECKOUT' | 'AUTHORIZE';
598
+ interface ValidateCallbackURLResponse {
604
599
  /** Indicates if the provided URL is allowed for the given client id */
605
600
  isValid?: boolean;
606
601
  }
607
- export interface SignInURLRequest {
602
+ interface SignInURLRequest {
608
603
  /**
609
604
  * The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context
610
605
  * @format GUID
611
606
  */
612
607
  clientId?: string;
613
608
  }
614
- export interface SignInURLResponse {
609
+ interface SignInURLResponse {
615
610
  /** The Wix URL details to redirect into */
616
611
  redirectSession?: RedirectSession;
617
612
  }
618
- export interface AttachAllTemplatesRequest {
613
+ interface AttachAllTemplatesRequest {
619
614
  }
620
- export interface AttachAllTemplatesResponse {
615
+ interface AttachAllTemplatesResponse {
621
616
  /** The status of the operation. */
622
617
  status?: StatusWithLiterals;
623
618
  }
624
- export declare enum Status {
619
+ declare enum Status {
625
620
  /** Invalid value. */
626
621
  UNKNOWN = "UNKNOWN",
627
622
  /** Templates were successfully attached. */
@@ -630,8 +625,8 @@ export declare enum Status {
630
625
  ERROR = "ERROR"
631
626
  }
632
627
  /** @enumType */
633
- export type StatusWithLiterals = Status | 'UNKNOWN' | 'SUCCESS' | 'ERROR';
634
- export interface DomainEvent extends DomainEventBodyOneOf {
628
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'SUCCESS' | 'ERROR';
629
+ interface DomainEvent extends DomainEventBodyOneOf {
635
630
  createdEvent?: EntityCreatedEvent;
636
631
  updatedEvent?: EntityUpdatedEvent;
637
632
  deletedEvent?: EntityDeletedEvent;
@@ -666,19 +661,19 @@ export interface DomainEvent extends DomainEventBodyOneOf {
666
661
  entityEventSequence?: string | null;
667
662
  }
668
663
  /** @oneof */
669
- export interface DomainEventBodyOneOf {
664
+ interface DomainEventBodyOneOf {
670
665
  createdEvent?: EntityCreatedEvent;
671
666
  updatedEvent?: EntityUpdatedEvent;
672
667
  deletedEvent?: EntityDeletedEvent;
673
668
  actionEvent?: ActionEvent;
674
669
  }
675
- export interface EntityCreatedEvent {
670
+ interface EntityCreatedEvent {
676
671
  entity?: string;
677
672
  }
678
- export interface RestoreInfo {
673
+ interface RestoreInfo {
679
674
  deletedDate?: Date | null;
680
675
  }
681
- export interface EntityUpdatedEvent {
676
+ interface EntityUpdatedEvent {
682
677
  /**
683
678
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
684
679
  * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
@@ -686,14 +681,14 @@ export interface EntityUpdatedEvent {
686
681
  */
687
682
  currentEntity?: string;
688
683
  }
689
- export interface EntityDeletedEvent {
684
+ interface EntityDeletedEvent {
690
685
  /** Entity that was deleted. */
691
686
  deletedEntity?: string | null;
692
687
  }
693
- export interface ActionEvent {
688
+ interface ActionEvent {
694
689
  body?: string;
695
690
  }
696
- export interface MessageEnvelope {
691
+ interface MessageEnvelope {
697
692
  /**
698
693
  * App instance ID.
699
694
  * @format GUID
@@ -709,7 +704,7 @@ export interface MessageEnvelope {
709
704
  /** Stringify payload. */
710
705
  data?: string;
711
706
  }
712
- export interface IdentificationData extends IdentificationDataIdOneOf {
707
+ interface IdentificationData extends IdentificationDataIdOneOf {
713
708
  /**
714
709
  * ID of a site visitor that has not logged in to the site.
715
710
  * @format GUID
@@ -734,7 +729,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
734
729
  identityType?: WebhookIdentityTypeWithLiterals;
735
730
  }
736
731
  /** @oneof */
737
- export interface IdentificationDataIdOneOf {
732
+ interface IdentificationDataIdOneOf {
738
733
  /**
739
734
  * ID of a site visitor that has not logged in to the site.
740
735
  * @format GUID
@@ -756,7 +751,7 @@ export interface IdentificationDataIdOneOf {
756
751
  */
757
752
  appId?: string;
758
753
  }
759
- export declare enum WebhookIdentityType {
754
+ declare enum WebhookIdentityType {
760
755
  UNKNOWN = "UNKNOWN",
761
756
  ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
762
757
  MEMBER = "MEMBER",
@@ -764,8 +759,8 @@ export declare enum WebhookIdentityType {
764
759
  APP = "APP"
765
760
  }
766
761
  /** @enumType */
767
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
768
- export interface BaseEventMetadata {
762
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
763
+ interface BaseEventMetadata {
769
764
  /**
770
765
  * App instance ID.
771
766
  * @format GUID
@@ -779,7 +774,7 @@ export interface BaseEventMetadata {
779
774
  /** The identification type and identity data. */
780
775
  identity?: IdentificationData;
781
776
  }
782
- export interface EventMetadata extends BaseEventMetadata {
777
+ interface EventMetadata extends BaseEventMetadata {
783
778
  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
784
779
  _id?: string;
785
780
  /**
@@ -809,75 +804,11 @@ export interface EventMetadata extends BaseEventMetadata {
809
804
  */
810
805
  entityEventSequence?: string | null;
811
806
  }
812
- export interface RedirectSessionCreatedEnvelope {
807
+ interface RedirectSessionCreatedEnvelope {
813
808
  entity: RedirectSession;
814
809
  metadata: EventMetadata;
815
810
  }
816
- /**
817
- * Triggered when a redirect session is created.
818
- * @permissionScope Manage Stores
819
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
820
- * @permissionScope Manage Bookings Services and Settings
821
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
822
- * @permissionScope Manage Events
823
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
824
- * @permissionScope Manage Challenges
825
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
826
- * @permissionScope Manage Portfolio
827
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
828
- * @permissionScope Access Verticals by Automations
829
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
830
- * @permissionScope Manage Restaurants - all permissions
831
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
832
- * @permissionScope Set Up Automations
833
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
834
- * @permissionId WIX_HEADLESS.WIX_URL_CREATE
835
- * @webhook
836
- * @eventType wix.headless.v1.redirect_session_created
837
- * @serviceIdentifier wix.headless.v1.RedirectSessionService
838
- * @slug created
839
- */
840
- export declare function onRedirectSessionCreated(handler: (event: RedirectSessionCreatedEnvelope) => void | Promise<void>): void;
841
- type RedirectSessionNonNullablePaths = `_id` | `fullUrl` | `urlDetails.endpoint` | `shortUrl`;
842
- /**
843
- * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
844
- *
845
- * The Create Redirect Session method enables your external Wix Headless client site, built on any platform, to integrate Wix-managed frontend functionality for specific processes.
846
- * For example, your site can temporarily redirect a visitor to Wix for authentication, or for a checkout process for bookings, eCommerce, events, or paid plans transactions.
847
- *
848
- * To initiate a redirect session:
849
- *
850
- * 1. Call Create Redirect Session with the details required for Wix to take care of one specific process (for example, authentication or a bookings checkout). Provide one or more callback URLs, so Wix can redirect the visitor back to your site as appropriate when the process is over.
851
- * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
852
- * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
853
- * @public
854
- * @requiredField options.intent
855
- * @param options - Options for creating a redirect session.
856
- * @permissionId WIX_HEADLESS.WIX_URL_CREATE
857
- * @permissionScope Manage Stores
858
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
859
- * @permissionScope Manage Bookings Services and Settings
860
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
861
- * @permissionScope Manage Events
862
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
863
- * @permissionScope Manage Challenges
864
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
865
- * @permissionScope Manage Portfolio
866
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
867
- * @permissionScope Access Verticals by Automations
868
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
869
- * @permissionScope Manage Restaurants - all permissions
870
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
871
- * @permissionScope Set Up Automations
872
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
873
- * @applicableIdentity APP
874
- * @applicableIdentity VISITOR
875
- * @fqn wix.headless.v1.RedirectSessionService.CreateRedirectSession
876
- */
877
- export declare function createRedirectSession(options?: CreateRedirectSessionOptions): Promise<NonNullablePaths<CreateRedirectSessionResponse, {
878
- [P in RedirectSessionNonNullablePaths]: `redirectSession.${P}`;
879
- }[RedirectSessionNonNullablePaths]>>;
880
- export interface CreateRedirectSessionOptions extends CreateRedirectSessionOptionsIntentOneOf {
811
+ interface CreateRedirectSessionOptions extends CreateRedirectSessionOptionsIntentOneOf {
881
812
  /** Information required for generating a custom URL for a Wix Bookings checkout. */
882
813
  bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
883
814
  /** Information required for generating a custom URL for a Wix eCommerce checkout. */
@@ -906,7 +837,7 @@ export interface CreateRedirectSessionOptions extends CreateRedirectSessionOptio
906
837
  preferences?: RedirectSessionPreferences;
907
838
  }
908
839
  /** @oneof */
909
- export interface CreateRedirectSessionOptionsIntentOneOf {
840
+ interface CreateRedirectSessionOptionsIntentOneOf {
910
841
  /** Information required for generating a custom URL for a Wix Bookings checkout. */
911
842
  bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
912
843
  /** Information required for generating a custom URL for a Wix eCommerce checkout. */
@@ -926,4 +857,5 @@ export interface CreateRedirectSessionOptionsIntentOneOf {
926
857
  /** Information required for generating a custom URL for Wix bookings book page. */
927
858
  bookingsBook?: RedirectSessionBookingsBookParams;
928
859
  }
929
- export {};
860
+
861
+ export { type MessageEnvelope as $, AttachPagesResponseStatus as A, type BookingPolicyViolations as B, type CreateRedirectSessionOptions as C, type CreateAnonymousRedirectSessionResponse as D, type AttachPagesRequest as E, type AttachPagesResponse as F, type ValidateCallbackURLResponse as G, type SignInURLRequest as H, type SignInURLResponse as I, type AttachAllTemplatesRequest as J, type AttachAllTemplatesResponse as K, LocationType as L, MembersAccountSection as M, type NestedTimeSlot as N, type DomainEvent as O, Prompt as P, type DomainEventBodyOneOf as Q, type RedirectSessionCreatedEnvelope as R, Status as S, type EntityCreatedEvent as T, type URLDetails as U, type ValidateCallbackURLRequest as V, WebhookIdentityType as W, type RestoreInfo as X, type EntityUpdatedEvent as Y, type EntityDeletedEvent as Z, type ActionEvent as _, type CreateRedirectSessionResponse as a, type IdentificationData as a0, type IdentificationDataIdOneOf as a1, type BaseEventMetadata as a2, type EventMetadata as a3, type CreateRedirectSessionOptionsIntentOneOf as a4, CallbackType as b, type RedirectSession as c, type CreateRedirectSessionRequest as d, type CreateRedirectSessionRequestIntentOneOf as e, type RedirectSessionBookingsCheckoutParams as f, type SlotAvailability as g, type Slot as h, type SlotResource as i, type Location as j, type WaitingList as k, type RedirectSessionEcomCheckoutParams as l, type RedirectSessionEventsCheckoutParams as m, type RedirectSessionPaidPlansCheckoutParams as n, type RedirectSessionLoginParams as o, type RedirectSessionLogoutParams as p, type RedirectSessionAuthParams as q, type AuthorizeRequest as r, type RedirectSessionMembersAccountParams as s, type RedirectSessionStoresProductParams as t, type RedirectSessionBookingsBookParams as u, type CallbackParams as v, type RedirectSessionPreferences as w, type CustomMemberPaths as x, type CreateAnonymousRedirectSessionRequest as y, type CreateAnonymousRedirectSessionRequestIntentOneOf as z };