@gethydra/sdk 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +1172 -103
  2. package/dist/index.js +62 -0
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1207,6 +1207,10 @@ interface components {
1207
1207
  last_name: string;
1208
1208
  /** @example +14155550123 */
1209
1209
  phone: string | null;
1210
+ /** @example 1990-06-15 */
1211
+ dob: string | null;
1212
+ /** @example true */
1213
+ birthday_gift_opt_in: boolean;
1210
1214
  /** @example en */
1211
1215
  locale: string | null;
1212
1216
  /** @example 5 */
@@ -1624,6 +1628,11 @@ interface components {
1624
1628
  } | null;
1625
1629
  /** @example INV-0001 */
1626
1630
  invoice_number: string | null;
1631
+ /**
1632
+ * @example card
1633
+ * @enum {string|null}
1634
+ */
1635
+ payment_method: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card" | null;
1627
1636
  /** @example pi_3abc123def456 */
1628
1637
  stripe_payment_intent_id: string | null;
1629
1638
  /**
@@ -3293,6 +3302,21 @@ interface components {
3293
3302
  /** @example Visit our Birmingham retail location. */
3294
3303
  description?: string;
3295
3304
  };
3305
+ /** @example false */
3306
+ booking_enabled: boolean;
3307
+ /** @example 1 */
3308
+ room_count: number;
3309
+ /** @example 30 */
3310
+ slot_duration_minutes: number;
3311
+ /** @example 0 */
3312
+ buffer_minutes: number;
3313
+ /** @example {} */
3314
+ opening_hours: {
3315
+ [key: string]: {
3316
+ open: string;
3317
+ close: string;
3318
+ } | null;
3319
+ };
3296
3320
  /**
3297
3321
  * @description Number of variants with inventory at this location
3298
3322
  * @example 12
@@ -3321,6 +3345,137 @@ interface components {
3321
3345
  */
3322
3346
  transferred: number;
3323
3347
  };
3348
+ PosStaff: {
3349
+ /** @example pstaff_abc123def456ghi789 */
3350
+ id: string;
3351
+ /** @example Sophie */
3352
+ name: string;
3353
+ /** @example 1234 */
3354
+ pin: string;
3355
+ /** @example true */
3356
+ is_active: boolean;
3357
+ /**
3358
+ * Format: date-time
3359
+ * @example 2026-11-10T12:00:00.000Z
3360
+ */
3361
+ created_at: string;
3362
+ /**
3363
+ * Format: date-time
3364
+ * @example 2026-11-10T12:00:00.000Z
3365
+ */
3366
+ updated_at: string;
3367
+ };
3368
+ PinVerifyResult: {
3369
+ /** @example true */
3370
+ valid: boolean;
3371
+ staff?: components["schemas"]["PosStaff"];
3372
+ };
3373
+ DayAvailability: {
3374
+ /** @example 2026-11-20 */
3375
+ date: string;
3376
+ /** @example wednesday */
3377
+ day_of_week: string;
3378
+ slots: components["schemas"]["Slot"][];
3379
+ };
3380
+ Slot: {
3381
+ /** @example 10:00 */
3382
+ start_time: string;
3383
+ /** @example 10:30 */
3384
+ end_time: string;
3385
+ /** @example 2 */
3386
+ available: number;
3387
+ };
3388
+ SuggestedSlot: {
3389
+ /** @example 2026-11-20 */
3390
+ date: string;
3391
+ /** @example wednesday */
3392
+ day_of_week: string;
3393
+ /** @example 10:00 */
3394
+ start_time: string;
3395
+ /** @example 10:30 */
3396
+ end_time: string;
3397
+ };
3398
+ Appointment: {
3399
+ /** @example appt_abc123def456ghi789 */
3400
+ id: string;
3401
+ /** @example loc_abc123def456ghi789 */
3402
+ location_id: string;
3403
+ /** @example null */
3404
+ customer_id: string | null;
3405
+ /** @example Sophie Turner */
3406
+ customer_name: string;
3407
+ /** @example sophie@example.com */
3408
+ customer_email: string;
3409
+ /** @example +447123456789 */
3410
+ customer_phone: string | null;
3411
+ /** @example 2026-11-20 */
3412
+ scheduled_date: string;
3413
+ /** @example 10:00 */
3414
+ start_time: string;
3415
+ /** @example 10:30 */
3416
+ end_time: string;
3417
+ /**
3418
+ * @example confirmed
3419
+ * @enum {string}
3420
+ */
3421
+ status: "pending" | "confirmed" | "cancelled" | "completed" | "no_show";
3422
+ /**
3423
+ * @example online
3424
+ * @enum {string}
3425
+ */
3426
+ source: "online" | "walk_in" | "phone";
3427
+ /** @example 1000 */
3428
+ deposit_amount: number | null;
3429
+ /** @example null */
3430
+ stripe_payment_intent_id: string | null;
3431
+ /** @example null */
3432
+ notes: string | null;
3433
+ /** @example null */
3434
+ metadata: {
3435
+ [key: string]: unknown;
3436
+ } | null;
3437
+ /**
3438
+ * Format: date-time
3439
+ * @example null
3440
+ */
3441
+ cancelled_at: string | null;
3442
+ /**
3443
+ * Format: date-time
3444
+ * @example 2026-11-12T10:00:00.000Z
3445
+ */
3446
+ created_at: string;
3447
+ /**
3448
+ * Format: date-time
3449
+ * @example 2026-11-12T10:00:00.000Z
3450
+ */
3451
+ updated_at: string;
3452
+ };
3453
+ AvailabilityOverride: {
3454
+ /** @example avo_abc123def456ghi789 */
3455
+ id: string;
3456
+ /** @example loc_abc123def456ghi789 */
3457
+ location_id: string;
3458
+ /** @example 2026-12-25 */
3459
+ date: string;
3460
+ /** @example true */
3461
+ is_closed: boolean;
3462
+ /** @example null */
3463
+ open_time: string | null;
3464
+ /** @example null */
3465
+ close_time: string | null;
3466
+ /** @example Christmas Day */
3467
+ reason: string | null;
3468
+ /**
3469
+ * Format: date-time
3470
+ * @example 2026-11-12T10:00:00.000Z
3471
+ */
3472
+ created_at: string;
3473
+ /**
3474
+ * Format: date-time
3475
+ * @example 2026-11-12T10:00:00.000Z
3476
+ */
3477
+ updated_at: string;
3478
+ };
3324
3479
  Post: {
3325
3480
  /** @example post_abc123 */
3326
3481
  id: string;
@@ -4300,6 +4455,70 @@ interface operations {
4300
4455
  };
4301
4456
  };
4302
4457
  };
4458
+ connectByoPaymentAccount: {
4459
+ parameters: {
4460
+ query?: never;
4461
+ header?: never;
4462
+ path?: never;
4463
+ cookie?: never;
4464
+ };
4465
+ requestBody?: {
4466
+ content: {
4467
+ "application/json": {
4468
+ secret_key: string;
4469
+ publishable_key: string;
4470
+ };
4471
+ };
4472
+ };
4473
+ responses: {
4474
+ /** @description BYO keys connected */
4475
+ 200: {
4476
+ headers: {
4477
+ [name: string]: unknown;
4478
+ };
4479
+ content?: never;
4480
+ };
4481
+ /** @description Invalid keys */
4482
+ 400: {
4483
+ headers: {
4484
+ [name: string]: unknown;
4485
+ };
4486
+ content?: never;
4487
+ };
4488
+ /** @description Payment account already connected via Connect */
4489
+ 409: {
4490
+ headers: {
4491
+ [name: string]: unknown;
4492
+ };
4493
+ content?: never;
4494
+ };
4495
+ };
4496
+ };
4497
+ disconnectByoPaymentAccount: {
4498
+ parameters: {
4499
+ query?: never;
4500
+ header?: never;
4501
+ path?: never;
4502
+ cookie?: never;
4503
+ };
4504
+ requestBody?: never;
4505
+ responses: {
4506
+ /** @description BYO keys removed */
4507
+ 200: {
4508
+ headers: {
4509
+ [name: string]: unknown;
4510
+ };
4511
+ content?: never;
4512
+ };
4513
+ /** @description Store is not in BYO mode */
4514
+ 400: {
4515
+ headers: {
4516
+ [name: string]: unknown;
4517
+ };
4518
+ content?: never;
4519
+ };
4520
+ };
4521
+ };
4303
4522
  getBillingStatus: {
4304
4523
  parameters: {
4305
4524
  query?: never;
@@ -9317,6 +9536,13 @@ interface operations {
9317
9536
  last_name: string;
9318
9537
  /** @example +14155550123 */
9319
9538
  phone?: string;
9539
+ /** @example 1990-06-15 */
9540
+ dob?: string | null;
9541
+ /**
9542
+ * @default false
9543
+ * @example true
9544
+ */
9545
+ birthday_gift_opt_in?: boolean;
9320
9546
  /** @example en */
9321
9547
  locale?: string | null;
9322
9548
  /** @default [] */
@@ -9427,6 +9653,10 @@ interface operations {
9427
9653
  last_name?: string;
9428
9654
  /** @example +14155550123 */
9429
9655
  phone?: string | null;
9656
+ /** @example 1990-06-15 */
9657
+ dob?: string | null;
9658
+ /** @example true */
9659
+ birthday_gift_opt_in?: boolean;
9430
9660
  /** @example en */
9431
9661
  locale?: string | null;
9432
9662
  /**
@@ -11142,6 +11372,7 @@ interface operations {
11142
11372
  financial_status?: "pending" | "paid" | "refunded" | "partially_refunded";
11143
11373
  fulfillment_status?: "unfulfilled" | "partial" | "fulfilled";
11144
11374
  customer_id?: string;
11375
+ payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11145
11376
  customer_email?: string;
11146
11377
  order_number?: number;
11147
11378
  created_after?: string;
@@ -11244,6 +11475,11 @@ interface operations {
11244
11475
  * @example 0
11245
11476
  */
11246
11477
  discount?: number;
11478
+ /**
11479
+ * @example card
11480
+ * @enum {string}
11481
+ */
11482
+ payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11247
11483
  /** @example Gift wrap requested. */
11248
11484
  notes?: string;
11249
11485
  /** @default {} */
@@ -11322,6 +11558,11 @@ interface operations {
11322
11558
  * @enum {string}
11323
11559
  */
11324
11560
  fulfillment_status?: "unfulfilled" | "partial" | "fulfilled";
11561
+ /**
11562
+ * @example card
11563
+ * @enum {string}
11564
+ */
11565
+ payment_method?: "card" | "cash" | "loyalty_points" | "store_credit" | "gift_card";
11325
11566
  /** @example Shipped via FedEx. */
11326
11567
  notes?: string;
11327
11568
  metadata?: {
@@ -12084,8 +12325,8 @@ interface operations {
12084
12325
  };
12085
12326
  searchSuggest: {
12086
12327
  parameters: {
12087
- query: {
12088
- q: string;
12328
+ query?: {
12329
+ q?: string;
12089
12330
  limit?: number;
12090
12331
  };
12091
12332
  header?: never;
@@ -12716,7 +12957,7 @@ interface operations {
12716
12957
  * "order.paid"
12717
12958
  * ]
12718
12959
  */
12719
- events: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning")[];
12960
+ events: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning" | "booking.created" | "booking.confirmed" | "booking.cancelled" | "booking.completed")[];
12720
12961
  /**
12721
12962
  * @default active
12722
12963
  * @example active
@@ -12810,7 +13051,7 @@ interface operations {
12810
13051
  * "product.updated"
12811
13052
  * ]
12812
13053
  */
12813
- events?: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning")[];
13054
+ events?: ("product.created" | "product.updated" | "product.deleted" | "order.created" | "order.paid" | "order.fulfilled" | "order.cancelled" | "order.refunded" | "channel.created" | "channel.updated" | "channel.archived" | "collection.created" | "collection.updated" | "collection.deleted" | "company.created" | "company.updated" | "company.deleted" | "customer.created" | "customer.updated" | "customer_photo.submitted" | "customer_photo.approved" | "customer_photo.rejected" | "discount.created" | "discount.updated" | "discount.deleted" | "draft_order.created" | "draft_order.updated" | "draft_order.completed" | "draft_order.deleted" | "filter_attribute.created" | "filter_attribute.updated" | "filter_attribute.deleted" | "fulfillment.created" | "fulfillment.updated" | "fulfillment.cancelled" | "fulfillment_order.created" | "inventory.low" | "location.created" | "location.updated" | "location.deleted" | "navigation.created" | "navigation.updated" | "navigation.deleted" | "shipping.zone.created" | "shipping.zone.updated" | "shipping.zone.deleted" | "post.created" | "post.updated" | "post.deleted" | "post.published" | "post.unpublished" | "promotion.created" | "promotion.updated" | "promotion.deleted" | "purchase_order.created" | "purchase_order.updated" | "purchase_order.received" | "purchase_order.cancelled" | "refund.created" | "refund.succeeded" | "refund.failed" | "return.requested" | "return.approved" | "return.received" | "return.rejected" | "return.cancelled" | "return.closed" | "store.published" | "store_credit.issued" | "store_credit.used" | "store_credit.expired" | "membership.created" | "membership.updated" | "membership.cancelled" | "membership.expired" | "usage.warning" | "booking.created" | "booking.confirmed" | "booking.cancelled" | "booking.completed")[];
12814
13055
  /**
12815
13056
  * @example active
12816
13057
  * @enum {string}
@@ -15513,6 +15754,33 @@ interface operations {
15513
15754
  metadata?: {
15514
15755
  [key: string]: string | number;
15515
15756
  };
15757
+ /** @example true */
15758
+ booking_enabled?: boolean;
15759
+ /** @example 2 */
15760
+ room_count?: number;
15761
+ /** @example 30 */
15762
+ slot_duration_minutes?: number;
15763
+ /** @example 10 */
15764
+ buffer_minutes?: number;
15765
+ /**
15766
+ * @example {
15767
+ * "monday": {
15768
+ * "open": "10:00",
15769
+ * "close": "18:00"
15770
+ * },
15771
+ * "tuesday": {
15772
+ * "open": "10:00",
15773
+ * "close": "18:00"
15774
+ * },
15775
+ * "sunday": null
15776
+ * }
15777
+ */
15778
+ opening_hours?: {
15779
+ [key: string]: {
15780
+ open: string;
15781
+ close: string;
15782
+ } | null;
15783
+ };
15516
15784
  };
15517
15785
  };
15518
15786
  };
@@ -15585,22 +15853,10 @@ interface operations {
15585
15853
  };
15586
15854
  };
15587
15855
  };
15588
- listPosts: {
15856
+ listPosStaff: {
15589
15857
  parameters: {
15590
15858
  query?: {
15591
- limit?: number;
15592
- cursor?: string;
15593
- fields?: string;
15594
- sort?: "created_at" | "updated_at" | "title" | "relevance";
15595
- order?: "asc" | "desc";
15596
- /** @description Filter by exact handle (URL slug) */
15597
- handle?: string;
15598
- type?: "page" | "post";
15599
- status?: "draft" | "published" | "archived";
15600
- category_id?: string;
15601
- tag?: string;
15602
- search?: string;
15603
- expand?: string;
15859
+ active?: "true" | "false";
15604
15860
  };
15605
15861
  header?: never;
15606
15862
  path?: never;
@@ -15608,25 +15864,20 @@ interface operations {
15608
15864
  };
15609
15865
  requestBody?: never;
15610
15866
  responses: {
15611
- /** @description Paginated post list */
15867
+ /** @description Staff list */
15612
15868
  200: {
15613
15869
  headers: {
15614
15870
  [name: string]: unknown;
15615
15871
  };
15616
15872
  content: {
15617
15873
  "application/json": {
15618
- data: components["schemas"]["Post"][];
15619
- pagination: {
15620
- cursor: string | null;
15621
- has_more: boolean;
15622
- total: number;
15623
- };
15874
+ data: components["schemas"]["PosStaff"][];
15624
15875
  };
15625
15876
  };
15626
15877
  };
15627
15878
  };
15628
15879
  };
15629
- createPost: {
15880
+ createPosStaff: {
15630
15881
  parameters: {
15631
15882
  query?: never;
15632
15883
  header?: never;
@@ -15636,81 +15887,28 @@ interface operations {
15636
15887
  requestBody?: {
15637
15888
  content: {
15638
15889
  "application/json": {
15639
- /** @example Getting Started with Hydra */
15640
- title: string;
15641
- /** @example getting-started-with-hydra */
15642
- handle?: string;
15643
- /**
15644
- * @example # Welcome
15645
- *
15646
- * This is your first post.
15647
- */
15648
- body?: string;
15649
- /** @example A quick introduction to Hydra headless commerce. */
15650
- excerpt?: string;
15651
- /**
15652
- * @default post
15653
- * @example post
15654
- * @enum {string}
15655
- */
15656
- type?: "page" | "post";
15657
- /**
15658
- * @default draft
15659
- * @example draft
15660
- * @enum {string}
15661
- */
15662
- status?: "draft" | "published" | "archived";
15663
- /** @example Jane Smith */
15664
- author_name?: string;
15665
- /** @example img_abc123 */
15666
- featured_image_id?: string | null;
15667
- /**
15668
- * Format: date-time
15669
- * @example 2026-08-24T12:00:00.000Z
15670
- */
15671
- published_at?: string | null;
15672
- /**
15673
- * @default []
15674
- * @example [
15675
- * "ccat_abc123"
15676
- * ]
15677
- */
15678
- category_ids?: string[];
15679
- /**
15680
- * @default []
15681
- * @example [
15682
- * "tutorials",
15683
- * "getting-started"
15684
- * ]
15685
- */
15686
- tags?: string[];
15687
- /** @default {} */
15688
- seo?: {
15689
- title?: string;
15690
- description?: string;
15691
- };
15692
- /** @default {} */
15693
- metadata?: {
15694
- [key: string]: string | number;
15695
- };
15890
+ /** @example Sophie */
15891
+ name: string;
15892
+ /** @example 1234 */
15893
+ pin: string;
15696
15894
  };
15697
15895
  };
15698
15896
  };
15699
15897
  responses: {
15700
- /** @description Post created */
15898
+ /** @description Staff member created */
15701
15899
  201: {
15702
15900
  headers: {
15703
15901
  [name: string]: unknown;
15704
15902
  };
15705
15903
  content: {
15706
15904
  "application/json": {
15707
- data: components["schemas"]["Post"];
15905
+ data: components["schemas"]["PosStaff"];
15708
15906
  };
15709
15907
  };
15710
15908
  };
15711
15909
  };
15712
15910
  };
15713
- getPost: {
15911
+ deletePosStaff: {
15714
15912
  parameters: {
15715
15913
  query?: never;
15716
15914
  header?: never;
@@ -15721,20 +15919,16 @@ interface operations {
15721
15919
  };
15722
15920
  requestBody?: never;
15723
15921
  responses: {
15724
- /** @description Post details */
15725
- 200: {
15922
+ /** @description Staff member deleted */
15923
+ 204: {
15726
15924
  headers: {
15727
15925
  [name: string]: unknown;
15728
15926
  };
15729
- content: {
15730
- "application/json": {
15731
- data: components["schemas"]["Post"];
15732
- };
15733
- };
15927
+ content?: never;
15734
15928
  };
15735
15929
  };
15736
15930
  };
15737
- deletePost: {
15931
+ updatePosStaff: {
15738
15932
  parameters: {
15739
15933
  query?: never;
15740
15934
  header?: never;
@@ -15743,12 +15937,836 @@ interface operations {
15743
15937
  };
15744
15938
  cookie?: never;
15745
15939
  };
15746
- requestBody?: never;
15747
- responses: {
15748
- /** @description Post deleted */
15749
- 204: {
15750
- headers: {
15751
- [name: string]: unknown;
15940
+ requestBody?: {
15941
+ content: {
15942
+ "application/json": {
15943
+ /** @example Sophie */
15944
+ name?: string;
15945
+ /** @example 1234 */
15946
+ pin?: string;
15947
+ /** @example true */
15948
+ is_active?: boolean;
15949
+ };
15950
+ };
15951
+ };
15952
+ responses: {
15953
+ /** @description Staff member updated */
15954
+ 200: {
15955
+ headers: {
15956
+ [name: string]: unknown;
15957
+ };
15958
+ content: {
15959
+ "application/json": {
15960
+ data: components["schemas"]["PosStaff"];
15961
+ };
15962
+ };
15963
+ };
15964
+ };
15965
+ };
15966
+ verifyPosPin: {
15967
+ parameters: {
15968
+ query?: never;
15969
+ header?: never;
15970
+ path?: never;
15971
+ cookie?: never;
15972
+ };
15973
+ requestBody?: {
15974
+ content: {
15975
+ "application/json": {
15976
+ /** @example pstaff_abc123 */
15977
+ staff_id?: string;
15978
+ /** @example 1234 */
15979
+ pin: string;
15980
+ };
15981
+ };
15982
+ };
15983
+ responses: {
15984
+ /** @description PIN verification result */
15985
+ 200: {
15986
+ headers: {
15987
+ [name: string]: unknown;
15988
+ };
15989
+ content: {
15990
+ "application/json": {
15991
+ data: components["schemas"]["PinVerifyResult"];
15992
+ };
15993
+ };
15994
+ };
15995
+ };
15996
+ };
15997
+ createTerminalConnectionToken: {
15998
+ parameters: {
15999
+ query?: never;
16000
+ header?: never;
16001
+ path?: never;
16002
+ cookie?: never;
16003
+ };
16004
+ requestBody?: {
16005
+ content: {
16006
+ "application/json": {
16007
+ location_id?: string;
16008
+ };
16009
+ };
16010
+ };
16011
+ responses: {
16012
+ /** @description Connection token created */
16013
+ 200: {
16014
+ headers: {
16015
+ [name: string]: unknown;
16016
+ };
16017
+ content: {
16018
+ "application/json": {
16019
+ data: {
16020
+ secret: string;
16021
+ };
16022
+ };
16023
+ };
16024
+ };
16025
+ };
16026
+ };
16027
+ createTerminalPaymentIntent: {
16028
+ parameters: {
16029
+ query?: never;
16030
+ header?: never;
16031
+ path?: never;
16032
+ cookie?: never;
16033
+ };
16034
+ requestBody?: {
16035
+ content: {
16036
+ "application/json": {
16037
+ amount: number;
16038
+ /** @default gbp */
16039
+ currency?: string;
16040
+ location_id: string;
16041
+ metadata?: {
16042
+ [key: string]: string;
16043
+ };
16044
+ };
16045
+ };
16046
+ };
16047
+ responses: {
16048
+ /** @description Payment intent created */
16049
+ 201: {
16050
+ headers: {
16051
+ [name: string]: unknown;
16052
+ };
16053
+ content: {
16054
+ "application/json": {
16055
+ data: {
16056
+ payment_intent_id: string;
16057
+ client_secret: string;
16058
+ };
16059
+ };
16060
+ };
16061
+ };
16062
+ };
16063
+ };
16064
+ getTerminalPaymentIntentStatus: {
16065
+ parameters: {
16066
+ query?: never;
16067
+ header?: never;
16068
+ path: {
16069
+ id: string;
16070
+ };
16071
+ cookie?: never;
16072
+ };
16073
+ requestBody?: never;
16074
+ responses: {
16075
+ /** @description Payment intent status */
16076
+ 200: {
16077
+ headers: {
16078
+ [name: string]: unknown;
16079
+ };
16080
+ content: {
16081
+ "application/json": {
16082
+ data: {
16083
+ status: string;
16084
+ amount: number;
16085
+ currency: string;
16086
+ };
16087
+ };
16088
+ };
16089
+ };
16090
+ };
16091
+ };
16092
+ completePosTerminalSale: {
16093
+ parameters: {
16094
+ query?: never;
16095
+ header?: never;
16096
+ path?: never;
16097
+ cookie?: never;
16098
+ };
16099
+ requestBody?: {
16100
+ content: {
16101
+ "application/json": {
16102
+ payment_intent_id: string;
16103
+ /** Format: email */
16104
+ customer_email: string;
16105
+ customer_id?: string;
16106
+ line_items: {
16107
+ variant_id: string;
16108
+ quantity: number;
16109
+ }[];
16110
+ location_id: string;
16111
+ /** @default 0 */
16112
+ discount?: number;
16113
+ discount_code?: string;
16114
+ notes?: string;
16115
+ metadata?: {
16116
+ [key: string]: string;
16117
+ };
16118
+ };
16119
+ };
16120
+ };
16121
+ responses: {
16122
+ /** @description Order created */
16123
+ 201: {
16124
+ headers: {
16125
+ [name: string]: unknown;
16126
+ };
16127
+ content: {
16128
+ "application/json": {
16129
+ data?: unknown;
16130
+ };
16131
+ };
16132
+ };
16133
+ };
16134
+ };
16135
+ cancelTerminalPaymentIntent: {
16136
+ parameters: {
16137
+ query?: never;
16138
+ header?: never;
16139
+ path?: never;
16140
+ cookie?: never;
16141
+ };
16142
+ requestBody?: {
16143
+ content: {
16144
+ "application/json": {
16145
+ payment_intent_id: string;
16146
+ location_id?: string;
16147
+ };
16148
+ };
16149
+ };
16150
+ responses: {
16151
+ /** @description Payment cancelled */
16152
+ 200: {
16153
+ headers: {
16154
+ [name: string]: unknown;
16155
+ };
16156
+ content: {
16157
+ "application/json": {
16158
+ data: {
16159
+ cancelled: boolean;
16160
+ };
16161
+ };
16162
+ };
16163
+ };
16164
+ };
16165
+ };
16166
+ getTerminalPendingPayment: {
16167
+ parameters: {
16168
+ query?: never;
16169
+ header?: never;
16170
+ path: {
16171
+ location_id: string;
16172
+ };
16173
+ cookie?: never;
16174
+ };
16175
+ requestBody?: never;
16176
+ responses: {
16177
+ /** @description Pending payment or null */
16178
+ 200: {
16179
+ headers: {
16180
+ [name: string]: unknown;
16181
+ };
16182
+ content: {
16183
+ "application/json": {
16184
+ data: {
16185
+ payment_intent_id: string;
16186
+ client_secret: string;
16187
+ amount: number;
16188
+ currency: string;
16189
+ created_at: string;
16190
+ } | null;
16191
+ };
16192
+ };
16193
+ };
16194
+ };
16195
+ };
16196
+ markTerminalPaymentCollected: {
16197
+ parameters: {
16198
+ query?: never;
16199
+ header?: never;
16200
+ path?: never;
16201
+ cookie?: never;
16202
+ };
16203
+ requestBody?: {
16204
+ content: {
16205
+ "application/json": {
16206
+ location_id: string;
16207
+ };
16208
+ };
16209
+ };
16210
+ responses: {
16211
+ /** @description Payment marked as collected */
16212
+ 200: {
16213
+ headers: {
16214
+ [name: string]: unknown;
16215
+ };
16216
+ content: {
16217
+ "application/json": {
16218
+ data: {
16219
+ collected: boolean;
16220
+ };
16221
+ };
16222
+ };
16223
+ };
16224
+ };
16225
+ };
16226
+ updateTerminalLocation: {
16227
+ parameters: {
16228
+ query?: never;
16229
+ header?: never;
16230
+ path: {
16231
+ id: string;
16232
+ };
16233
+ cookie?: never;
16234
+ };
16235
+ requestBody?: never;
16236
+ responses: {
16237
+ /** @description Location updated */
16238
+ 200: {
16239
+ headers: {
16240
+ [name: string]: unknown;
16241
+ };
16242
+ content: {
16243
+ "application/json": {
16244
+ data: {
16245
+ stripe_terminal_location_id: string;
16246
+ };
16247
+ };
16248
+ };
16249
+ };
16250
+ };
16251
+ };
16252
+ registerTerminalLocation: {
16253
+ parameters: {
16254
+ query?: never;
16255
+ header?: never;
16256
+ path: {
16257
+ id: string;
16258
+ };
16259
+ cookie?: never;
16260
+ };
16261
+ requestBody?: never;
16262
+ responses: {
16263
+ /** @description Location registered */
16264
+ 200: {
16265
+ headers: {
16266
+ [name: string]: unknown;
16267
+ };
16268
+ content: {
16269
+ "application/json": {
16270
+ data: {
16271
+ stripe_terminal_location_id: string;
16272
+ };
16273
+ };
16274
+ };
16275
+ };
16276
+ };
16277
+ };
16278
+ listBookableLocations: {
16279
+ parameters: {
16280
+ query?: never;
16281
+ header?: never;
16282
+ path?: never;
16283
+ cookie?: never;
16284
+ };
16285
+ requestBody?: never;
16286
+ responses: {
16287
+ /** @description Bookable locations */
16288
+ 200: {
16289
+ headers: {
16290
+ [name: string]: unknown;
16291
+ };
16292
+ content: {
16293
+ "application/json": {
16294
+ data: {
16295
+ id: string;
16296
+ name: string;
16297
+ address_line1: string | null;
16298
+ city: string | null;
16299
+ postal_code: string | null;
16300
+ phone: string | null;
16301
+ slot_duration_minutes: number;
16302
+ opening_hours: {
16303
+ [key: string]: {
16304
+ open: string;
16305
+ close: string;
16306
+ } | null;
16307
+ };
16308
+ }[];
16309
+ };
16310
+ };
16311
+ };
16312
+ };
16313
+ };
16314
+ getBookingAvailability: {
16315
+ parameters: {
16316
+ query: {
16317
+ location_id: string;
16318
+ date?: string;
16319
+ suggest?: number;
16320
+ };
16321
+ header?: never;
16322
+ path?: never;
16323
+ cookie?: never;
16324
+ };
16325
+ requestBody?: never;
16326
+ responses: {
16327
+ /** @description Available time slots */
16328
+ 200: {
16329
+ headers: {
16330
+ [name: string]: unknown;
16331
+ };
16332
+ content: {
16333
+ "application/json": {
16334
+ data: components["schemas"]["DayAvailability"][] | components["schemas"]["SuggestedSlot"][];
16335
+ };
16336
+ };
16337
+ };
16338
+ };
16339
+ };
16340
+ listAppointments: {
16341
+ parameters: {
16342
+ query?: {
16343
+ limit?: number;
16344
+ cursor?: string;
16345
+ fields?: string;
16346
+ sort?: "created_at" | "scheduled_date";
16347
+ order?: "asc" | "desc";
16348
+ location_id?: string;
16349
+ date_from?: string;
16350
+ date_to?: string;
16351
+ status?: "pending" | "confirmed" | "cancelled" | "completed" | "no_show";
16352
+ customer_email?: string;
16353
+ };
16354
+ header?: never;
16355
+ path?: never;
16356
+ cookie?: never;
16357
+ };
16358
+ requestBody?: never;
16359
+ responses: {
16360
+ /** @description Paginated appointment list */
16361
+ 200: {
16362
+ headers: {
16363
+ [name: string]: unknown;
16364
+ };
16365
+ content: {
16366
+ "application/json": {
16367
+ data: components["schemas"]["Appointment"][];
16368
+ pagination: {
16369
+ cursor: string | null;
16370
+ has_more: boolean;
16371
+ total: number;
16372
+ };
16373
+ };
16374
+ };
16375
+ };
16376
+ };
16377
+ };
16378
+ createAppointment: {
16379
+ parameters: {
16380
+ query?: never;
16381
+ header?: never;
16382
+ path?: never;
16383
+ cookie?: never;
16384
+ };
16385
+ requestBody?: {
16386
+ content: {
16387
+ "application/json": {
16388
+ /** @example loc_abc123def456ghi789 */
16389
+ location_id: string;
16390
+ /** @example Sophie Turner */
16391
+ customer_name: string;
16392
+ /**
16393
+ * Format: email
16394
+ * @example sophie@example.com
16395
+ */
16396
+ customer_email: string;
16397
+ /** @example +447123456789 */
16398
+ customer_phone?: string;
16399
+ /** @example 2026-11-20 */
16400
+ scheduled_date: string;
16401
+ /** @example 10:00 */
16402
+ start_time: string;
16403
+ /** @example First piercing appointment */
16404
+ notes?: string;
16405
+ /** @default {} */
16406
+ metadata?: {
16407
+ [key: string]: string | number;
16408
+ };
16409
+ };
16410
+ };
16411
+ };
16412
+ responses: {
16413
+ /** @description Appointment created with Stripe client_secret */
16414
+ 201: {
16415
+ headers: {
16416
+ [name: string]: unknown;
16417
+ };
16418
+ content: {
16419
+ "application/json": {
16420
+ data: components["schemas"]["Appointment"];
16421
+ client_secret: string;
16422
+ };
16423
+ };
16424
+ };
16425
+ };
16426
+ };
16427
+ confirmAppointment: {
16428
+ parameters: {
16429
+ query?: never;
16430
+ header?: never;
16431
+ path: {
16432
+ id: string;
16433
+ };
16434
+ cookie?: never;
16435
+ };
16436
+ requestBody?: never;
16437
+ responses: {
16438
+ /** @description Appointment confirmed */
16439
+ 200: {
16440
+ headers: {
16441
+ [name: string]: unknown;
16442
+ };
16443
+ content: {
16444
+ "application/json": {
16445
+ data: components["schemas"]["Appointment"];
16446
+ };
16447
+ };
16448
+ };
16449
+ };
16450
+ };
16451
+ getAppointment: {
16452
+ parameters: {
16453
+ query?: never;
16454
+ header?: never;
16455
+ path: {
16456
+ id: string;
16457
+ };
16458
+ cookie?: never;
16459
+ };
16460
+ requestBody?: never;
16461
+ responses: {
16462
+ /** @description Appointment details */
16463
+ 200: {
16464
+ headers: {
16465
+ [name: string]: unknown;
16466
+ };
16467
+ content: {
16468
+ "application/json": {
16469
+ data: components["schemas"]["Appointment"];
16470
+ };
16471
+ };
16472
+ };
16473
+ };
16474
+ };
16475
+ updateAppointment: {
16476
+ parameters: {
16477
+ query?: never;
16478
+ header?: never;
16479
+ path: {
16480
+ id: string;
16481
+ };
16482
+ cookie?: never;
16483
+ };
16484
+ requestBody?: {
16485
+ content: {
16486
+ "application/json": {
16487
+ /** @enum {string} */
16488
+ status?: "confirmed" | "cancelled" | "completed" | "no_show";
16489
+ notes?: string;
16490
+ metadata?: {
16491
+ [key: string]: string | number;
16492
+ };
16493
+ };
16494
+ };
16495
+ };
16496
+ responses: {
16497
+ /** @description Appointment updated */
16498
+ 200: {
16499
+ headers: {
16500
+ [name: string]: unknown;
16501
+ };
16502
+ content: {
16503
+ "application/json": {
16504
+ data: components["schemas"]["Appointment"];
16505
+ };
16506
+ };
16507
+ };
16508
+ };
16509
+ };
16510
+ listAvailabilityOverrides: {
16511
+ parameters: {
16512
+ query: {
16513
+ limit?: number;
16514
+ cursor?: string;
16515
+ fields?: string;
16516
+ location_id: string;
16517
+ date_from?: string;
16518
+ date_to?: string;
16519
+ };
16520
+ header?: never;
16521
+ path?: never;
16522
+ cookie?: never;
16523
+ };
16524
+ requestBody?: never;
16525
+ responses: {
16526
+ /** @description Override list */
16527
+ 200: {
16528
+ headers: {
16529
+ [name: string]: unknown;
16530
+ };
16531
+ content: {
16532
+ "application/json": {
16533
+ data: components["schemas"]["AvailabilityOverride"][];
16534
+ pagination: {
16535
+ cursor: string | null;
16536
+ has_more: boolean;
16537
+ total: number;
16538
+ };
16539
+ };
16540
+ };
16541
+ };
16542
+ };
16543
+ };
16544
+ createAvailabilityOverride: {
16545
+ parameters: {
16546
+ query?: never;
16547
+ header?: never;
16548
+ path?: never;
16549
+ cookie?: never;
16550
+ };
16551
+ requestBody?: {
16552
+ content: {
16553
+ "application/json": {
16554
+ /** @example loc_abc123def456ghi789 */
16555
+ location_id: string;
16556
+ /** @example 2026-12-25 */
16557
+ date: string;
16558
+ /**
16559
+ * @default false
16560
+ * @example true
16561
+ */
16562
+ is_closed?: boolean;
16563
+ /** @example 10:00 */
16564
+ open_time?: string;
16565
+ /** @example 14:00 */
16566
+ close_time?: string;
16567
+ /** @example Christmas Day */
16568
+ reason?: string;
16569
+ };
16570
+ };
16571
+ };
16572
+ responses: {
16573
+ /** @description Override created */
16574
+ 201: {
16575
+ headers: {
16576
+ [name: string]: unknown;
16577
+ };
16578
+ content: {
16579
+ "application/json": {
16580
+ data: components["schemas"]["AvailabilityOverride"];
16581
+ };
16582
+ };
16583
+ };
16584
+ };
16585
+ };
16586
+ deleteAvailabilityOverride: {
16587
+ parameters: {
16588
+ query?: never;
16589
+ header?: never;
16590
+ path: {
16591
+ id: string;
16592
+ };
16593
+ cookie?: never;
16594
+ };
16595
+ requestBody?: never;
16596
+ responses: {
16597
+ /** @description Override deleted */
16598
+ 204: {
16599
+ headers: {
16600
+ [name: string]: unknown;
16601
+ };
16602
+ content?: never;
16603
+ };
16604
+ };
16605
+ };
16606
+ listPosts: {
16607
+ parameters: {
16608
+ query?: {
16609
+ limit?: number;
16610
+ cursor?: string;
16611
+ fields?: string;
16612
+ sort?: "created_at" | "updated_at" | "title" | "relevance";
16613
+ order?: "asc" | "desc";
16614
+ /** @description Filter by exact handle (URL slug) */
16615
+ handle?: string;
16616
+ type?: "page" | "post";
16617
+ status?: "draft" | "published" | "archived";
16618
+ category_id?: string;
16619
+ tag?: string;
16620
+ search?: string;
16621
+ expand?: string;
16622
+ };
16623
+ header?: never;
16624
+ path?: never;
16625
+ cookie?: never;
16626
+ };
16627
+ requestBody?: never;
16628
+ responses: {
16629
+ /** @description Paginated post list */
16630
+ 200: {
16631
+ headers: {
16632
+ [name: string]: unknown;
16633
+ };
16634
+ content: {
16635
+ "application/json": {
16636
+ data: components["schemas"]["Post"][];
16637
+ pagination: {
16638
+ cursor: string | null;
16639
+ has_more: boolean;
16640
+ total: number;
16641
+ };
16642
+ };
16643
+ };
16644
+ };
16645
+ };
16646
+ };
16647
+ createPost: {
16648
+ parameters: {
16649
+ query?: never;
16650
+ header?: never;
16651
+ path?: never;
16652
+ cookie?: never;
16653
+ };
16654
+ requestBody?: {
16655
+ content: {
16656
+ "application/json": {
16657
+ /** @example Getting Started with Hydra */
16658
+ title: string;
16659
+ /** @example getting-started-with-hydra */
16660
+ handle?: string;
16661
+ /**
16662
+ * @example # Welcome
16663
+ *
16664
+ * This is your first post.
16665
+ */
16666
+ body?: string;
16667
+ /** @example A quick introduction to Hydra headless commerce. */
16668
+ excerpt?: string;
16669
+ /**
16670
+ * @default post
16671
+ * @example post
16672
+ * @enum {string}
16673
+ */
16674
+ type?: "page" | "post";
16675
+ /**
16676
+ * @default draft
16677
+ * @example draft
16678
+ * @enum {string}
16679
+ */
16680
+ status?: "draft" | "published" | "archived";
16681
+ /** @example Jane Smith */
16682
+ author_name?: string;
16683
+ /** @example img_abc123 */
16684
+ featured_image_id?: string | null;
16685
+ /**
16686
+ * Format: date-time
16687
+ * @example 2026-08-24T12:00:00.000Z
16688
+ */
16689
+ published_at?: string | null;
16690
+ /**
16691
+ * @default []
16692
+ * @example [
16693
+ * "ccat_abc123"
16694
+ * ]
16695
+ */
16696
+ category_ids?: string[];
16697
+ /**
16698
+ * @default []
16699
+ * @example [
16700
+ * "tutorials",
16701
+ * "getting-started"
16702
+ * ]
16703
+ */
16704
+ tags?: string[];
16705
+ /** @default {} */
16706
+ seo?: {
16707
+ title?: string;
16708
+ description?: string;
16709
+ };
16710
+ /** @default {} */
16711
+ metadata?: {
16712
+ [key: string]: string | number;
16713
+ };
16714
+ };
16715
+ };
16716
+ };
16717
+ responses: {
16718
+ /** @description Post created */
16719
+ 201: {
16720
+ headers: {
16721
+ [name: string]: unknown;
16722
+ };
16723
+ content: {
16724
+ "application/json": {
16725
+ data: components["schemas"]["Post"];
16726
+ };
16727
+ };
16728
+ };
16729
+ };
16730
+ };
16731
+ getPost: {
16732
+ parameters: {
16733
+ query?: never;
16734
+ header?: never;
16735
+ path: {
16736
+ id: string;
16737
+ };
16738
+ cookie?: never;
16739
+ };
16740
+ requestBody?: never;
16741
+ responses: {
16742
+ /** @description Post details */
16743
+ 200: {
16744
+ headers: {
16745
+ [name: string]: unknown;
16746
+ };
16747
+ content: {
16748
+ "application/json": {
16749
+ data: components["schemas"]["Post"];
16750
+ };
16751
+ };
16752
+ };
16753
+ };
16754
+ };
16755
+ deletePost: {
16756
+ parameters: {
16757
+ query?: never;
16758
+ header?: never;
16759
+ path: {
16760
+ id: string;
16761
+ };
16762
+ cookie?: never;
16763
+ };
16764
+ requestBody?: never;
16765
+ responses: {
16766
+ /** @description Post deleted */
16767
+ 204: {
16768
+ headers: {
16769
+ [name: string]: unknown;
15752
16770
  };
15753
16771
  content?: never;
15754
16772
  };
@@ -16538,7 +17556,7 @@ interface operations {
16538
17556
  sort?: "created_at" | "updated_at" | "title" | "relevance";
16539
17557
  order?: "asc" | "desc";
16540
17558
  /** @description Filter by notification type */
16541
- type?: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
17559
+ type?: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "booking_confirmation" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
16542
17560
  /** @description Filter by delivery status */
16543
17561
  status?: "sent" | "failed" | "skipped";
16544
17562
  /** @description Filter by recipient email */
@@ -16611,7 +17629,7 @@ interface operations {
16611
17629
  * @example new_order
16612
17630
  * @enum {string}
16613
17631
  */
16614
- type: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
17632
+ type: "email_verification" | "welcome" | "password_reset" | "password_changed" | "order_confirmation" | "order_cancelled" | "refund_issued" | "draft_order_payment_request" | "shipping_confirmation" | "delivery_confirmation" | "cart_recovery" | "booking_confirmation" | "new_order" | "low_stock" | "domain_warning" | "domain_revoked" | "domain_recovered";
16615
17633
  /**
16616
17634
  * Format: email
16617
17635
  * @description Email address to send the test to
@@ -17894,6 +18912,11 @@ type Post$1 = components['schemas']['Post'];
17894
18912
  type ContentCategory$1 = components['schemas']['ContentCategory'];
17895
18913
  type MembershipPlan$1 = components['schemas']['MembershipPlan'];
17896
18914
  type CustomerMembership$1 = components['schemas']['CustomerMembership'];
18915
+ type Appointment$1 = components['schemas']['Appointment'];
18916
+ type AvailabilityOverride$1 = components['schemas']['AvailabilityOverride'];
18917
+ type Slot = components['schemas']['Slot'];
18918
+ type DayAvailability$1 = components['schemas']['DayAvailability'];
18919
+ type SuggestedSlot$1 = components['schemas']['SuggestedSlot'];
17897
18920
  interface Pagination {
17898
18921
  cursor: string | null;
17899
18922
  has_more: boolean;
@@ -18979,6 +20002,51 @@ declare class MembershipPlansResource {
18979
20002
  listSubscriptions(params?: SubscriptionListParams): Promise<ListResponse<CustomerMembership>>;
18980
20003
  }
18981
20004
 
20005
+ type Appointment = components['schemas']['Appointment'];
20006
+ type AvailabilityOverride = components['schemas']['AvailabilityOverride'];
20007
+ type DayAvailability = components['schemas']['DayAvailability'];
20008
+ type SuggestedSlot = components['schemas']['SuggestedSlot'];
20009
+ type ListAppointmentsParams = NonNullable<operations['listAppointments']['parameters']['query']>;
20010
+ type CreateAppointmentBody = NonNullable<operations['createAppointment']['requestBody']>['content']['application/json'];
20011
+ type UpdateAppointmentBody = NonNullable<operations['updateAppointment']['requestBody']>['content']['application/json'];
20012
+ type AvailabilityParams = NonNullable<operations['getBookingAvailability']['parameters']['query']>;
20013
+ type CreateOverrideBody = NonNullable<operations['createAvailabilityOverride']['requestBody']>['content']['application/json'];
20014
+ type ListOverridesParams = NonNullable<operations['listAvailabilityOverrides']['parameters']['query']>;
20015
+ declare class BookingsResource {
20016
+ private client;
20017
+ constructor(client: Hydra);
20018
+ listLocations(): Promise<DataResponse<{
20019
+ id: string;
20020
+ name: string;
20021
+ address_line1: string | null;
20022
+ city: string | null;
20023
+ postal_code: string | null;
20024
+ phone: string | null;
20025
+ slot_duration_minutes: number;
20026
+ opening_hours: Record<string, {
20027
+ open: string;
20028
+ close: string;
20029
+ } | null>;
20030
+ }[]>>;
20031
+ getAvailability(params: AvailabilityParams): Promise<{
20032
+ data: DayAvailability[] | SuggestedSlot[];
20033
+ }>;
20034
+ createAppointment(body: CreateAppointmentBody, options?: ResourceRequestOptions): Promise<DataResponse<Appointment> & {
20035
+ client_secret: string;
20036
+ }>;
20037
+ confirmAppointment(id: string): Promise<DataResponse<Appointment>>;
20038
+ listAppointments(params?: ListAppointmentsParams): Promise<ListResponse<Appointment>>;
20039
+ iterateAppointments(params?: Omit<ListAppointmentsParams, 'cursor'>, options?: PaginateOptions): AsyncGenerator<Appointment, void, undefined>;
20040
+ toArrayAppointments(params?: Omit<ListAppointmentsParams, 'cursor'>, options?: PaginateOptions & {
20041
+ limit?: number;
20042
+ }): Promise<Appointment[]>;
20043
+ getAppointment(id: string): Promise<DataResponse<Appointment>>;
20044
+ updateAppointment(id: string, body: UpdateAppointmentBody): Promise<DataResponse<Appointment>>;
20045
+ createOverride(body: CreateOverrideBody, options?: ResourceRequestOptions): Promise<DataResponse<AvailabilityOverride>>;
20046
+ listOverrides(params: ListOverridesParams): Promise<ListResponse<AvailabilityOverride>>;
20047
+ deleteOverride(id: string): Promise<void>;
20048
+ }
20049
+
18982
20050
  interface AppInfo {
18983
20051
  /** Integration/plugin name (e.g. "MyShopTheme") */
18984
20052
  name: string;
@@ -19060,6 +20128,7 @@ declare class Hydra {
19060
20128
  readonly posts: PostsResource;
19061
20129
  readonly contentCategories: ContentCategoriesResource;
19062
20130
  readonly membershipPlans: MembershipPlansResource;
20131
+ readonly bookings: BookingsResource;
19063
20132
  constructor(config: HydraConfig);
19064
20133
  request<T>(method: string, path: string, options?: RequestOptions): Promise<T>;
19065
20134
  /** Multipart upload for file-based endpoints (e.g. images) */
@@ -19141,4 +20210,4 @@ declare class HydraIdempotencyError extends HydraError {
19141
20210
  constructor(body: HydraErrorBody, headers: Headers);
19142
20211
  }
19143
20212
 
19144
- export { AddressesResource, type AnalyticsActionItems$1 as AnalyticsActionItems, type AnalyticsOrdersSeries$1 as AnalyticsOrdersSeries, AnalyticsResource, type AnalyticsSummary$1 as AnalyticsSummary, type AnalyticsTimeSeries$1 as AnalyticsTimeSeries, type AnalyticsTopProduct$1 as AnalyticsTopProduct, type AppInfo, type Cart$1 as Cart, type CartItem, CartResource, type Channel$1 as Channel, ChannelsResource, type CheckoutCreate$1 as CheckoutCreate, type CheckoutGet$1 as CheckoutGet, type CheckoutListItem$1 as CheckoutListItem, CheckoutResource, CheckoutsResource, type Collection$1 as Collection, CollectionsResource, CompaniesResource, type Company$1 as Company, ContentCategoriesResource, type ContentCategory$1 as ContentCategory, type Customer$1 as Customer, type CustomerGroup$1 as CustomerGroup, CustomerGroupsResource, type CustomerMembership$1 as CustomerMembership, type CustomerPhoto$1 as CustomerPhoto, CustomerPhotosResource, CustomersResource, type DataResponse, type Discount$1 as Discount, DiscountsResource, type DraftOrder$1 as DraftOrder, DraftOrdersResource, type ExchangeRate$1 as ExchangeRate, ExchangeRatesResource, type Fulfillment$1 as Fulfillment, type FulfillmentOrder$2 as FulfillmentOrder, FulfillmentOrdersResource, FulfillmentsResource, type GenerateVariantsResult$1 as GenerateVariantsResult, Hydra, HydraAuthenticationError, type HydraConfig, HydraConnectionError, HydraError, type HydraErrorBody, HydraIdempotencyError, HydraNotFoundError, HydraPermissionError, HydraRateLimitError, HydraValidationError, type Image$2 as Image, ImagesResource, IntegrationsResource, type InventoryLevel$1 as InventoryLevel, InventoryResource, type ListResponse, type Location$1 as Location, LocationsResource, type MembershipPlan$1 as MembershipPlan, MembershipPlansResource, MetafieldsResource, type NotificationLog$1 as NotificationLog, NotificationsResource, type Order$2 as Order, OrdersResource, type PaginateOptions, type Pagination, type Post$1 as Post, PostsResource, type Product$1 as Product, type ProductStats$1 as ProductStats, ProductsResource, type Promotion$1 as Promotion, PromotionsResource, type PurchaseOrder$1 as PurchaseOrder, PurchaseOrdersResource, type Redirect$1 as Redirect, RedirectsResource, type Refund$1 as Refund, RefundsResource, type RequestOptions, type ResourceRequestOptions, type Return$1 as Return, ReturnsResource, SearchResource, type ShippingRate$1 as ShippingRate, ShippingResource, type ShippingZone$1 as ShippingZone, type Store$1 as Store, StoreCreditResource, StoreResource, type Tag$1 as Tag, TagsResource, type TaxExemption$1 as TaxExemption, type TaxGroup$1 as TaxGroup, type TaxRate$1 as TaxRate, TaxResource, type Variant$2 as Variant, type VariantPrice$1 as VariantPrice, VariantsResource, type Webhook$1 as Webhook, WebhooksResource, paginate, toArray };
20213
+ export { AddressesResource, type AnalyticsActionItems$1 as AnalyticsActionItems, type AnalyticsOrdersSeries$1 as AnalyticsOrdersSeries, AnalyticsResource, type AnalyticsSummary$1 as AnalyticsSummary, type AnalyticsTimeSeries$1 as AnalyticsTimeSeries, type AnalyticsTopProduct$1 as AnalyticsTopProduct, type AppInfo, type Appointment$1 as Appointment, type AvailabilityOverride$1 as AvailabilityOverride, BookingsResource, type Cart$1 as Cart, type CartItem, CartResource, type Channel$1 as Channel, ChannelsResource, type CheckoutCreate$1 as CheckoutCreate, type CheckoutGet$1 as CheckoutGet, type CheckoutListItem$1 as CheckoutListItem, CheckoutResource, CheckoutsResource, type Collection$1 as Collection, CollectionsResource, CompaniesResource, type Company$1 as Company, ContentCategoriesResource, type ContentCategory$1 as ContentCategory, type Customer$1 as Customer, type CustomerGroup$1 as CustomerGroup, CustomerGroupsResource, type CustomerMembership$1 as CustomerMembership, type CustomerPhoto$1 as CustomerPhoto, CustomerPhotosResource, CustomersResource, type DataResponse, type DayAvailability$1 as DayAvailability, type Discount$1 as Discount, DiscountsResource, type DraftOrder$1 as DraftOrder, DraftOrdersResource, type ExchangeRate$1 as ExchangeRate, ExchangeRatesResource, type Fulfillment$1 as Fulfillment, type FulfillmentOrder$2 as FulfillmentOrder, FulfillmentOrdersResource, FulfillmentsResource, type GenerateVariantsResult$1 as GenerateVariantsResult, Hydra, HydraAuthenticationError, type HydraConfig, HydraConnectionError, HydraError, type HydraErrorBody, HydraIdempotencyError, HydraNotFoundError, HydraPermissionError, HydraRateLimitError, HydraValidationError, type Image$2 as Image, ImagesResource, IntegrationsResource, type InventoryLevel$1 as InventoryLevel, InventoryResource, type ListResponse, type Location$1 as Location, LocationsResource, type MembershipPlan$1 as MembershipPlan, MembershipPlansResource, MetafieldsResource, type NotificationLog$1 as NotificationLog, NotificationsResource, type Order$2 as Order, OrdersResource, type PaginateOptions, type Pagination, type Post$1 as Post, PostsResource, type Product$1 as Product, type ProductStats$1 as ProductStats, ProductsResource, type Promotion$1 as Promotion, PromotionsResource, type PurchaseOrder$1 as PurchaseOrder, PurchaseOrdersResource, type Redirect$1 as Redirect, RedirectsResource, type Refund$1 as Refund, RefundsResource, type RequestOptions, type ResourceRequestOptions, type Return$1 as Return, ReturnsResource, SearchResource, type ShippingRate$1 as ShippingRate, ShippingResource, type ShippingZone$1 as ShippingZone, type Slot, type Store$1 as Store, StoreCreditResource, StoreResource, type SuggestedSlot$1 as SuggestedSlot, type Tag$1 as Tag, TagsResource, type TaxExemption$1 as TaxExemption, type TaxGroup$1 as TaxGroup, type TaxRate$1 as TaxRate, TaxResource, type Variant$2 as Variant, type VariantPrice$1 as VariantPrice, VariantsResource, type Webhook$1 as Webhook, WebhooksResource, paginate, toArray };