@riverbankcms/sdk 0.70.0 → 0.70.2

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 (52) hide show
  1. package/dist/_dts/ai/src/contracts/commandExposure.d.ts +8 -0
  2. package/dist/_dts/ai/src/contracts/feedback.d.ts +55 -0
  3. package/dist/_dts/ai/src/contracts/proposals.d.ts +34764 -0
  4. package/dist/_dts/ai/src/contracts.d.ts +5 -0
  5. package/dist/_dts/ai/src/designer/rfc6902.d.ts +16 -0
  6. package/dist/_dts/ai/src/designer/themePatch.d.ts +50 -0
  7. package/dist/_dts/api/src/aiPlayground.d.ts +1 -1
  8. package/dist/_dts/api/src/appointmentSetup.d.ts +19 -0
  9. package/dist/_dts/api/src/availability.d.ts +84 -2
  10. package/dist/_dts/api/src/bookingManagementEndpoints.d.ts +10 -1
  11. package/dist/_dts/api/src/contentRuntime.d.ts +1 -0
  12. package/dist/_dts/api/src/endpoints.d.ts +29 -0
  13. package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +4 -0
  14. package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +29 -1
  15. package/dist/_dts/api/src/types.d.ts +1 -1
  16. package/dist/_dts/billing/src/components/index.d.ts +41 -0
  17. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +219 -0
  18. package/dist/_dts/preview-next/src/client/preview/PreviewEditorSidebar.d.ts +2 -1
  19. package/dist/_dts/preview-next/src/client/preview/PreviewShell.d.ts +2 -1
  20. package/dist/_dts/preview-next/src/client/preview/PreviewShellLayout.d.ts +2 -1
  21. package/dist/_dts/preview-next/src/client/preview/SiteChromeCustomizeContext.d.ts +3 -1
  22. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.d.ts +3 -1
  23. package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +1 -0
  24. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorApplyPayload.d.ts +8 -0
  25. package/dist/_dts/preview-next/src/client/preview/styleConfiguratorSnapshot.d.ts +1 -0
  26. package/dist/_dts/sdk/src/cli/commands/style.d.ts +19 -0
  27. package/dist/_dts/sdk/src/client/management/index.d.ts +2 -1
  28. package/dist/_dts/sdk/src/client/management/theme.d.ts +3 -1
  29. package/dist/_dts/sdk/src/client/management/types.d.ts +23 -0
  30. package/dist/_dts/sdk/src/public-api/contracts.d.ts +1 -0
  31. package/dist/_dts/sdk/src/version.d.ts +1 -1
  32. package/dist/_dts/site-commands/src/commands.d.ts +25 -7
  33. package/dist/_dts/site-commands/src/metadata.d.ts +2 -2
  34. package/dist/cli/index.mjs +168 -10
  35. package/dist/client/client.mjs +56 -2
  36. package/dist/client/hooks.mjs +55 -1
  37. package/dist/client/rendering.mjs +55 -1
  38. package/dist/preview-next/before-render.mjs +39 -0
  39. package/dist/preview-next/client/runtime.mjs +152 -38
  40. package/dist/preview-next/middleware.mjs +39 -0
  41. package/dist/server/components.mjs +55 -1
  42. package/dist/server/config-validation.mjs +55 -1
  43. package/dist/server/config.mjs +55 -1
  44. package/dist/server/data.mjs +55 -1
  45. package/dist/server/index.mjs +40 -1
  46. package/dist/server/next.mjs +56 -2
  47. package/dist/server/prebuild.mjs +1 -1
  48. package/dist/server/rendering/server.mjs +55 -1
  49. package/dist/server/rendering.mjs +55 -1
  50. package/dist/server/routing.mjs +56 -2
  51. package/dist/server/server.mjs +56 -2
  52. package/package.json +1 -1
@@ -1198,6 +1198,24 @@ var ENDPOINT_DEFINITIONS = {
1198
1198
  "server:internal_error"
1199
1199
  ]
1200
1200
  },
1201
+ setServiceSpecificAvailability: {
1202
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
1203
+ method: "PUT",
1204
+ auth: "user",
1205
+ responseKind: "json",
1206
+ errors: [
1207
+ "validation:invalid_input",
1208
+ "resource:not_found",
1209
+ "server:internal_error"
1210
+ ]
1211
+ },
1212
+ deleteServiceSpecificAvailability: {
1213
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
1214
+ method: "DELETE",
1215
+ auth: "user",
1216
+ responseKind: "json",
1217
+ errors: ["resource:not_found", "server:internal_error"]
1218
+ },
1201
1219
  listBlackouts: {
1202
1220
  path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
1203
1221
  method: "GET",
@@ -2833,6 +2851,20 @@ var ENDPOINT_DEFINITIONS = {
2833
2851
  auth: "user",
2834
2852
  responseKind: "json"
2835
2853
  },
2854
+ applySiteStyleSelection: {
2855
+ path: "/sites/{siteId}/theme/style-selection/apply",
2856
+ method: "POST",
2857
+ tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
2858
+ auth: "user",
2859
+ errors: [
2860
+ "validation:invalid_input",
2861
+ "auth:forbidden",
2862
+ "resource:not_found",
2863
+ "resource:conflict",
2864
+ "server:internal_error"
2865
+ ],
2866
+ responseKind: "json"
2867
+ },
2836
2868
  saveSiteChromeLookSelection: {
2837
2869
  path: "/sites/{siteId}/theme/site-chrome-look",
2838
2870
  method: "POST",
@@ -5576,6 +5608,13 @@ var ENDPOINT_DEFINITIONS = {
5576
5608
  auth: "service",
5577
5609
  responseKind: "json"
5578
5610
  },
5611
+ sdkApplySiteStyleSelection: {
5612
+ path: "/sdk/{siteId}/theme/style-selection/apply",
5613
+ method: "POST",
5614
+ auth: "service",
5615
+ responseKind: "json",
5616
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
5617
+ },
5579
5618
  sdkUpsertFooter: {
5580
5619
  path: "/sdk/{siteId}/footer",
5581
5620
  method: "POST",
@@ -31191,11 +31230,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z63.object({
31191
31230
  startTime: z63.string(),
31192
31231
  endTime: z63.string()
31193
31232
  });
31233
+ var appointmentSetupStartTimePolicyDraftSchema = z63.discriminatedUnion("kind", [
31234
+ z63.object({ kind: z63.literal("automatic_spacing") }),
31235
+ z63.object({
31236
+ kind: z63.literal("regular_interval"),
31237
+ intervalMinutes: z63.union([
31238
+ z63.literal(10),
31239
+ z63.literal(15),
31240
+ z63.literal(20),
31241
+ z63.literal(30),
31242
+ z63.literal(45),
31243
+ z63.literal(60)
31244
+ ])
31245
+ })
31246
+ ]);
31194
31247
  var appointmentSetupAvailabilityDraftSchema = z63.object({
31195
31248
  kind: z63.literal("weekly_windows"),
31196
31249
  resourceRef: appointmentSetupRefSchema,
31197
31250
  serviceRef: appointmentSetupRefSchema.nullable(),
31198
- windows: z63.array(appointmentSetupWeeklyWindowDraftSchema)
31251
+ windows: z63.array(appointmentSetupWeeklyWindowDraftSchema),
31252
+ startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
31199
31253
  });
31200
31254
  var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
31201
31255
  var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
@@ -1243,6 +1243,24 @@ var ENDPOINT_DEFINITIONS = {
1243
1243
  "server:internal_error"
1244
1244
  ]
1245
1245
  },
1246
+ setServiceSpecificAvailability: {
1247
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
1248
+ method: "PUT",
1249
+ auth: "user",
1250
+ responseKind: "json",
1251
+ errors: [
1252
+ "validation:invalid_input",
1253
+ "resource:not_found",
1254
+ "server:internal_error"
1255
+ ]
1256
+ },
1257
+ deleteServiceSpecificAvailability: {
1258
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
1259
+ method: "DELETE",
1260
+ auth: "user",
1261
+ responseKind: "json",
1262
+ errors: ["resource:not_found", "server:internal_error"]
1263
+ },
1246
1264
  listBlackouts: {
1247
1265
  path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
1248
1266
  method: "GET",
@@ -2878,6 +2896,20 @@ var ENDPOINT_DEFINITIONS = {
2878
2896
  auth: "user",
2879
2897
  responseKind: "json"
2880
2898
  },
2899
+ applySiteStyleSelection: {
2900
+ path: "/sites/{siteId}/theme/style-selection/apply",
2901
+ method: "POST",
2902
+ tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
2903
+ auth: "user",
2904
+ errors: [
2905
+ "validation:invalid_input",
2906
+ "auth:forbidden",
2907
+ "resource:not_found",
2908
+ "resource:conflict",
2909
+ "server:internal_error"
2910
+ ],
2911
+ responseKind: "json"
2912
+ },
2881
2913
  saveSiteChromeLookSelection: {
2882
2914
  path: "/sites/{siteId}/theme/site-chrome-look",
2883
2915
  method: "POST",
@@ -5621,6 +5653,13 @@ var ENDPOINT_DEFINITIONS = {
5621
5653
  auth: "service",
5622
5654
  responseKind: "json"
5623
5655
  },
5656
+ sdkApplySiteStyleSelection: {
5657
+ path: "/sdk/{siteId}/theme/style-selection/apply",
5658
+ method: "POST",
5659
+ auth: "service",
5660
+ responseKind: "json",
5661
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
5662
+ },
5624
5663
  sdkUpsertFooter: {
5625
5664
  path: "/sdk/{siteId}/footer",
5626
5665
  method: "POST",
@@ -31236,11 +31275,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z63.object({
31236
31275
  startTime: z63.string(),
31237
31276
  endTime: z63.string()
31238
31277
  });
31278
+ var appointmentSetupStartTimePolicyDraftSchema = z63.discriminatedUnion("kind", [
31279
+ z63.object({ kind: z63.literal("automatic_spacing") }),
31280
+ z63.object({
31281
+ kind: z63.literal("regular_interval"),
31282
+ intervalMinutes: z63.union([
31283
+ z63.literal(10),
31284
+ z63.literal(15),
31285
+ z63.literal(20),
31286
+ z63.literal(30),
31287
+ z63.literal(45),
31288
+ z63.literal(60)
31289
+ ])
31290
+ })
31291
+ ]);
31239
31292
  var appointmentSetupAvailabilityDraftSchema = z63.object({
31240
31293
  kind: z63.literal("weekly_windows"),
31241
31294
  resourceRef: appointmentSetupRefSchema,
31242
31295
  serviceRef: appointmentSetupRefSchema.nullable(),
31243
- windows: z63.array(appointmentSetupWeeklyWindowDraftSchema)
31296
+ windows: z63.array(appointmentSetupWeeklyWindowDraftSchema),
31297
+ startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
31244
31298
  });
31245
31299
  var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
31246
31300
  var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
@@ -1195,6 +1195,24 @@ var ENDPOINT_DEFINITIONS = {
1195
1195
  "server:internal_error"
1196
1196
  ]
1197
1197
  },
1198
+ setServiceSpecificAvailability: {
1199
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
1200
+ method: "PUT",
1201
+ auth: "user",
1202
+ responseKind: "json",
1203
+ errors: [
1204
+ "validation:invalid_input",
1205
+ "resource:not_found",
1206
+ "server:internal_error"
1207
+ ]
1208
+ },
1209
+ deleteServiceSpecificAvailability: {
1210
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
1211
+ method: "DELETE",
1212
+ auth: "user",
1213
+ responseKind: "json",
1214
+ errors: ["resource:not_found", "server:internal_error"]
1215
+ },
1198
1216
  listBlackouts: {
1199
1217
  path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
1200
1218
  method: "GET",
@@ -2830,6 +2848,20 @@ var ENDPOINT_DEFINITIONS = {
2830
2848
  auth: "user",
2831
2849
  responseKind: "json"
2832
2850
  },
2851
+ applySiteStyleSelection: {
2852
+ path: "/sites/{siteId}/theme/style-selection/apply",
2853
+ method: "POST",
2854
+ tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
2855
+ auth: "user",
2856
+ errors: [
2857
+ "validation:invalid_input",
2858
+ "auth:forbidden",
2859
+ "resource:not_found",
2860
+ "resource:conflict",
2861
+ "server:internal_error"
2862
+ ],
2863
+ responseKind: "json"
2864
+ },
2833
2865
  saveSiteChromeLookSelection: {
2834
2866
  path: "/sites/{siteId}/theme/site-chrome-look",
2835
2867
  method: "POST",
@@ -5573,6 +5605,13 @@ var ENDPOINT_DEFINITIONS = {
5573
5605
  auth: "service",
5574
5606
  responseKind: "json"
5575
5607
  },
5608
+ sdkApplySiteStyleSelection: {
5609
+ path: "/sdk/{siteId}/theme/style-selection/apply",
5610
+ method: "POST",
5611
+ auth: "service",
5612
+ responseKind: "json",
5613
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
5614
+ },
5576
5615
  sdkUpsertFooter: {
5577
5616
  path: "/sdk/{siteId}/footer",
5578
5617
  method: "POST",
@@ -31462,11 +31501,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z63.object({
31462
31501
  startTime: z63.string(),
31463
31502
  endTime: z63.string()
31464
31503
  });
31504
+ var appointmentSetupStartTimePolicyDraftSchema = z63.discriminatedUnion("kind", [
31505
+ z63.object({ kind: z63.literal("automatic_spacing") }),
31506
+ z63.object({
31507
+ kind: z63.literal("regular_interval"),
31508
+ intervalMinutes: z63.union([
31509
+ z63.literal(10),
31510
+ z63.literal(15),
31511
+ z63.literal(20),
31512
+ z63.literal(30),
31513
+ z63.literal(45),
31514
+ z63.literal(60)
31515
+ ])
31516
+ })
31517
+ ]);
31465
31518
  var appointmentSetupAvailabilityDraftSchema = z63.object({
31466
31519
  kind: z63.literal("weekly_windows"),
31467
31520
  resourceRef: appointmentSetupRefSchema,
31468
31521
  serviceRef: appointmentSetupRefSchema.nullable(),
31469
- windows: z63.array(appointmentSetupWeeklyWindowDraftSchema)
31522
+ windows: z63.array(appointmentSetupWeeklyWindowDraftSchema),
31523
+ startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
31470
31524
  });
31471
31525
  var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
31472
31526
  var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
@@ -1217,6 +1217,24 @@ var ENDPOINT_DEFINITIONS = {
1217
1217
  "server:internal_error"
1218
1218
  ]
1219
1219
  },
1220
+ setServiceSpecificAvailability: {
1221
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
1222
+ method: "PUT",
1223
+ auth: "user",
1224
+ responseKind: "json",
1225
+ errors: [
1226
+ "validation:invalid_input",
1227
+ "resource:not_found",
1228
+ "server:internal_error"
1229
+ ]
1230
+ },
1231
+ deleteServiceSpecificAvailability: {
1232
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
1233
+ method: "DELETE",
1234
+ auth: "user",
1235
+ responseKind: "json",
1236
+ errors: ["resource:not_found", "server:internal_error"]
1237
+ },
1220
1238
  listBlackouts: {
1221
1239
  path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
1222
1240
  method: "GET",
@@ -2852,6 +2870,20 @@ var ENDPOINT_DEFINITIONS = {
2852
2870
  auth: "user",
2853
2871
  responseKind: "json"
2854
2872
  },
2873
+ applySiteStyleSelection: {
2874
+ path: "/sites/{siteId}/theme/style-selection/apply",
2875
+ method: "POST",
2876
+ tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
2877
+ auth: "user",
2878
+ errors: [
2879
+ "validation:invalid_input",
2880
+ "auth:forbidden",
2881
+ "resource:not_found",
2882
+ "resource:conflict",
2883
+ "server:internal_error"
2884
+ ],
2885
+ responseKind: "json"
2886
+ },
2855
2887
  saveSiteChromeLookSelection: {
2856
2888
  path: "/sites/{siteId}/theme/site-chrome-look",
2857
2889
  method: "POST",
@@ -5595,6 +5627,13 @@ var ENDPOINT_DEFINITIONS = {
5595
5627
  auth: "service",
5596
5628
  responseKind: "json"
5597
5629
  },
5630
+ sdkApplySiteStyleSelection: {
5631
+ path: "/sdk/{siteId}/theme/style-selection/apply",
5632
+ method: "POST",
5633
+ auth: "service",
5634
+ responseKind: "json",
5635
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
5636
+ },
5598
5637
  sdkUpsertFooter: {
5599
5638
  path: "/sdk/{siteId}/footer",
5600
5639
  method: "POST",
@@ -6758,7 +6797,7 @@ var SimpleCache = class {
6758
6797
  };
6759
6798
 
6760
6799
  // src/version.ts
6761
- var SDK_VERSION = "0.70.0";
6800
+ var SDK_VERSION = "0.70.2";
6762
6801
 
6763
6802
  // src/client/error.ts
6764
6803
  var RiverbankApiError = class _RiverbankApiError extends Error {
@@ -1228,6 +1228,24 @@ var ENDPOINT_DEFINITIONS = {
1228
1228
  "server:internal_error"
1229
1229
  ]
1230
1230
  },
1231
+ setServiceSpecificAvailability: {
1232
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
1233
+ method: "PUT",
1234
+ auth: "user",
1235
+ responseKind: "json",
1236
+ errors: [
1237
+ "validation:invalid_input",
1238
+ "resource:not_found",
1239
+ "server:internal_error"
1240
+ ]
1241
+ },
1242
+ deleteServiceSpecificAvailability: {
1243
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
1244
+ method: "DELETE",
1245
+ auth: "user",
1246
+ responseKind: "json",
1247
+ errors: ["resource:not_found", "server:internal_error"]
1248
+ },
1231
1249
  listBlackouts: {
1232
1250
  path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
1233
1251
  method: "GET",
@@ -2863,6 +2881,20 @@ var ENDPOINT_DEFINITIONS = {
2863
2881
  auth: "user",
2864
2882
  responseKind: "json"
2865
2883
  },
2884
+ applySiteStyleSelection: {
2885
+ path: "/sites/{siteId}/theme/style-selection/apply",
2886
+ method: "POST",
2887
+ tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
2888
+ auth: "user",
2889
+ errors: [
2890
+ "validation:invalid_input",
2891
+ "auth:forbidden",
2892
+ "resource:not_found",
2893
+ "resource:conflict",
2894
+ "server:internal_error"
2895
+ ],
2896
+ responseKind: "json"
2897
+ },
2866
2898
  saveSiteChromeLookSelection: {
2867
2899
  path: "/sites/{siteId}/theme/site-chrome-look",
2868
2900
  method: "POST",
@@ -5606,6 +5638,13 @@ var ENDPOINT_DEFINITIONS = {
5606
5638
  auth: "service",
5607
5639
  responseKind: "json"
5608
5640
  },
5641
+ sdkApplySiteStyleSelection: {
5642
+ path: "/sdk/{siteId}/theme/style-selection/apply",
5643
+ method: "POST",
5644
+ auth: "service",
5645
+ responseKind: "json",
5646
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
5647
+ },
5609
5648
  sdkUpsertFooter: {
5610
5649
  path: "/sdk/{siteId}/footer",
5611
5650
  method: "POST",
@@ -55774,11 +55813,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z69.object({
55774
55813
  startTime: z69.string(),
55775
55814
  endTime: z69.string()
55776
55815
  });
55816
+ var appointmentSetupStartTimePolicyDraftSchema = z69.discriminatedUnion("kind", [
55817
+ z69.object({ kind: z69.literal("automatic_spacing") }),
55818
+ z69.object({
55819
+ kind: z69.literal("regular_interval"),
55820
+ intervalMinutes: z69.union([
55821
+ z69.literal(10),
55822
+ z69.literal(15),
55823
+ z69.literal(20),
55824
+ z69.literal(30),
55825
+ z69.literal(45),
55826
+ z69.literal(60)
55827
+ ])
55828
+ })
55829
+ ]);
55777
55830
  var appointmentSetupAvailabilityDraftSchema = z69.object({
55778
55831
  kind: z69.literal("weekly_windows"),
55779
55832
  resourceRef: appointmentSetupRefSchema,
55780
55833
  serviceRef: appointmentSetupRefSchema.nullable(),
55781
- windows: z69.array(appointmentSetupWeeklyWindowDraftSchema)
55834
+ windows: z69.array(appointmentSetupWeeklyWindowDraftSchema),
55835
+ startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
55782
55836
  });
55783
55837
  var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
55784
55838
  var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
@@ -58009,7 +58063,7 @@ var SimpleCache = class {
58009
58063
  };
58010
58064
 
58011
58065
  // src/version.ts
58012
- var SDK_VERSION = "0.70.0";
58066
+ var SDK_VERSION = "0.70.2";
58013
58067
 
58014
58068
  // src/client/error.ts
58015
58069
  var RiverbankApiError = class _RiverbankApiError extends Error {
@@ -4,7 +4,7 @@ import * as path from "path";
4
4
  import * as crypto from "crypto";
5
5
 
6
6
  // src/version.ts
7
- var SDK_VERSION = "0.70.0";
7
+ var SDK_VERSION = "0.70.2";
8
8
 
9
9
  // src/constants.ts
10
10
  var PREBUILD_PAGE_SIZE = 50;
@@ -50480,6 +50480,24 @@ var ENDPOINT_DEFINITIONS = {
50480
50480
  "server:internal_error"
50481
50481
  ]
50482
50482
  },
50483
+ setServiceSpecificAvailability: {
50484
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
50485
+ method: "PUT",
50486
+ auth: "user",
50487
+ responseKind: "json",
50488
+ errors: [
50489
+ "validation:invalid_input",
50490
+ "resource:not_found",
50491
+ "server:internal_error"
50492
+ ]
50493
+ },
50494
+ deleteServiceSpecificAvailability: {
50495
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
50496
+ method: "DELETE",
50497
+ auth: "user",
50498
+ responseKind: "json",
50499
+ errors: ["resource:not_found", "server:internal_error"]
50500
+ },
50483
50501
  listBlackouts: {
50484
50502
  path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
50485
50503
  method: "GET",
@@ -52115,6 +52133,20 @@ var ENDPOINT_DEFINITIONS = {
52115
52133
  auth: "user",
52116
52134
  responseKind: "json"
52117
52135
  },
52136
+ applySiteStyleSelection: {
52137
+ path: "/sites/{siteId}/theme/style-selection/apply",
52138
+ method: "POST",
52139
+ tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
52140
+ auth: "user",
52141
+ errors: [
52142
+ "validation:invalid_input",
52143
+ "auth:forbidden",
52144
+ "resource:not_found",
52145
+ "resource:conflict",
52146
+ "server:internal_error"
52147
+ ],
52148
+ responseKind: "json"
52149
+ },
52118
52150
  saveSiteChromeLookSelection: {
52119
52151
  path: "/sites/{siteId}/theme/site-chrome-look",
52120
52152
  method: "POST",
@@ -54858,6 +54890,13 @@ var ENDPOINT_DEFINITIONS = {
54858
54890
  auth: "service",
54859
54891
  responseKind: "json"
54860
54892
  },
54893
+ sdkApplySiteStyleSelection: {
54894
+ path: "/sdk/{siteId}/theme/style-selection/apply",
54895
+ method: "POST",
54896
+ auth: "service",
54897
+ responseKind: "json",
54898
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
54899
+ },
54861
54900
  sdkUpsertFooter: {
54862
54901
  path: "/sdk/{siteId}/footer",
54863
54902
  method: "POST",
@@ -56132,11 +56171,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z69.object({
56132
56171
  startTime: z69.string(),
56133
56172
  endTime: z69.string()
56134
56173
  });
56174
+ var appointmentSetupStartTimePolicyDraftSchema = z69.discriminatedUnion("kind", [
56175
+ z69.object({ kind: z69.literal("automatic_spacing") }),
56176
+ z69.object({
56177
+ kind: z69.literal("regular_interval"),
56178
+ intervalMinutes: z69.union([
56179
+ z69.literal(10),
56180
+ z69.literal(15),
56181
+ z69.literal(20),
56182
+ z69.literal(30),
56183
+ z69.literal(45),
56184
+ z69.literal(60)
56185
+ ])
56186
+ })
56187
+ ]);
56135
56188
  var appointmentSetupAvailabilityDraftSchema = z69.object({
56136
56189
  kind: z69.literal("weekly_windows"),
56137
56190
  resourceRef: appointmentSetupRefSchema,
56138
56191
  serviceRef: appointmentSetupRefSchema.nullable(),
56139
- windows: z69.array(appointmentSetupWeeklyWindowDraftSchema)
56192
+ windows: z69.array(appointmentSetupWeeklyWindowDraftSchema),
56193
+ startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
56140
56194
  });
56141
56195
  var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
56142
56196
  var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;
@@ -50503,6 +50503,24 @@ var ENDPOINT_DEFINITIONS = {
50503
50503
  "server:internal_error"
50504
50504
  ]
50505
50505
  },
50506
+ setServiceSpecificAvailability: {
50507
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
50508
+ method: "PUT",
50509
+ auth: "user",
50510
+ responseKind: "json",
50511
+ errors: [
50512
+ "validation:invalid_input",
50513
+ "resource:not_found",
50514
+ "server:internal_error"
50515
+ ]
50516
+ },
50517
+ deleteServiceSpecificAvailability: {
50518
+ path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability/{scheduleId}",
50519
+ method: "DELETE",
50520
+ auth: "user",
50521
+ responseKind: "json",
50522
+ errors: ["resource:not_found", "server:internal_error"]
50523
+ },
50506
50524
  listBlackouts: {
50507
50525
  path: "/sites/{siteId}/bookings/resources/{resourceId}/blackouts",
50508
50526
  method: "GET",
@@ -52138,6 +52156,20 @@ var ENDPOINT_DEFINITIONS = {
52138
52156
  auth: "user",
52139
52157
  responseKind: "json"
52140
52158
  },
52159
+ applySiteStyleSelection: {
52160
+ path: "/sites/{siteId}/theme/style-selection/apply",
52161
+ method: "POST",
52162
+ tags: [TAG_TEMPLATES.siteCollection, TAG_TEMPLATES.siteTheme],
52163
+ auth: "user",
52164
+ errors: [
52165
+ "validation:invalid_input",
52166
+ "auth:forbidden",
52167
+ "resource:not_found",
52168
+ "resource:conflict",
52169
+ "server:internal_error"
52170
+ ],
52171
+ responseKind: "json"
52172
+ },
52141
52173
  saveSiteChromeLookSelection: {
52142
52174
  path: "/sites/{siteId}/theme/site-chrome-look",
52143
52175
  method: "POST",
@@ -54881,6 +54913,13 @@ var ENDPOINT_DEFINITIONS = {
54881
54913
  auth: "service",
54882
54914
  responseKind: "json"
54883
54915
  },
54916
+ sdkApplySiteStyleSelection: {
54917
+ path: "/sdk/{siteId}/theme/style-selection/apply",
54918
+ method: "POST",
54919
+ auth: "service",
54920
+ responseKind: "json",
54921
+ errors: ["validation:invalid_input", "resource:not_found", "resource:conflict", "server:internal_error"]
54922
+ },
54884
54923
  sdkUpsertFooter: {
54885
54924
  path: "/sdk/{siteId}/footer",
54886
54925
  method: "POST",
@@ -56155,11 +56194,26 @@ var appointmentSetupWeeklyWindowDraftSchema = z69.object({
56155
56194
  startTime: z69.string(),
56156
56195
  endTime: z69.string()
56157
56196
  });
56197
+ var appointmentSetupStartTimePolicyDraftSchema = z69.discriminatedUnion("kind", [
56198
+ z69.object({ kind: z69.literal("automatic_spacing") }),
56199
+ z69.object({
56200
+ kind: z69.literal("regular_interval"),
56201
+ intervalMinutes: z69.union([
56202
+ z69.literal(10),
56203
+ z69.literal(15),
56204
+ z69.literal(20),
56205
+ z69.literal(30),
56206
+ z69.literal(45),
56207
+ z69.literal(60)
56208
+ ])
56209
+ })
56210
+ ]);
56158
56211
  var appointmentSetupAvailabilityDraftSchema = z69.object({
56159
56212
  kind: z69.literal("weekly_windows"),
56160
56213
  resourceRef: appointmentSetupRefSchema,
56161
56214
  serviceRef: appointmentSetupRefSchema.nullable(),
56162
- windows: z69.array(appointmentSetupWeeklyWindowDraftSchema)
56215
+ windows: z69.array(appointmentSetupWeeklyWindowDraftSchema),
56216
+ startTimePolicy: appointmentSetupStartTimePolicyDraftSchema.optional()
56163
56217
  });
56164
56218
  var APPOINTMENT_DEFAULT_MIN_LEAD_MINUTES_MAX = 28 * 24 * 60;
56165
56219
  var APPOINTMENT_DEFAULT_MAX_BOOKING_NOTICE_MINUTES_MAX = 10 * 365 * 24 * 60;