@seamapi/types 1.560.0 → 1.561.0

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.
@@ -40629,7 +40629,7 @@ declare const _default: {
40629
40629
  'x-undocumented': string;
40630
40630
  };
40631
40631
  };
40632
- '/seam/customer/v1/reservations/list': {
40632
+ '/seam/customer/v1/reservations/get': {
40633
40633
  get: {
40634
40634
  description: string;
40635
40635
  operationId: string;
@@ -40638,23 +40638,210 @@ declare const _default: {
40638
40638
  name: string;
40639
40639
  schema: {
40640
40640
  description: string;
40641
+ format: string;
40641
40642
  type: string;
40642
- default?: never;
40643
- exclusiveMinimum?: never;
40644
- minimum?: never;
40645
- format?: never;
40646
- nullable?: never;
40647
40643
  };
40648
40644
  } | {
40649
40645
  in: string;
40650
40646
  name: string;
40651
40647
  schema: {
40652
- default: number;
40653
40648
  description: string;
40654
- exclusiveMinimum: boolean;
40655
- minimum: number;
40656
40649
  type: string;
40657
40650
  format?: never;
40651
+ };
40652
+ })[];
40653
+ responses: {
40654
+ 200: {
40655
+ content: {
40656
+ 'application/json': {
40657
+ schema: {
40658
+ properties: {
40659
+ ok: {
40660
+ type: string;
40661
+ };
40662
+ reservation: {
40663
+ properties: {
40664
+ access_methods: {
40665
+ items: {
40666
+ $ref: string;
40667
+ };
40668
+ type: string;
40669
+ };
40670
+ created_at: {
40671
+ format: string;
40672
+ type: string;
40673
+ };
40674
+ ends_at: {
40675
+ format: string;
40676
+ nullable: boolean;
40677
+ type: string;
40678
+ };
40679
+ guest_name: {
40680
+ nullable: boolean;
40681
+ type: string;
40682
+ };
40683
+ name: {
40684
+ nullable: boolean;
40685
+ type: string;
40686
+ };
40687
+ reservation_id: {
40688
+ format: string;
40689
+ type: string;
40690
+ };
40691
+ reservation_key: {
40692
+ type: string;
40693
+ };
40694
+ starts_at: {
40695
+ format: string;
40696
+ nullable: boolean;
40697
+ type: string;
40698
+ };
40699
+ };
40700
+ required: string[];
40701
+ type: string;
40702
+ };
40703
+ };
40704
+ required: string[];
40705
+ type: string;
40706
+ };
40707
+ };
40708
+ };
40709
+ description: string;
40710
+ };
40711
+ 400: {
40712
+ description: string;
40713
+ };
40714
+ 401: {
40715
+ description: string;
40716
+ };
40717
+ };
40718
+ security: {
40719
+ client_session_with_customer: never[];
40720
+ }[];
40721
+ summary: string;
40722
+ tags: never[];
40723
+ 'x-fern-sdk-group-name': string[];
40724
+ 'x-fern-sdk-method-name': string;
40725
+ 'x-fern-sdk-return-value': string;
40726
+ 'x-response-key': string;
40727
+ 'x-title': string;
40728
+ 'x-undocumented': string;
40729
+ };
40730
+ post: {
40731
+ description: string;
40732
+ operationId: string;
40733
+ requestBody: {
40734
+ content: {
40735
+ 'application/json': {
40736
+ schema: {
40737
+ properties: {
40738
+ reservation_id: {
40739
+ description: string;
40740
+ format: string;
40741
+ type: string;
40742
+ };
40743
+ reservation_key: {
40744
+ description: string;
40745
+ type: string;
40746
+ };
40747
+ };
40748
+ type: string;
40749
+ };
40750
+ };
40751
+ };
40752
+ };
40753
+ responses: {
40754
+ 200: {
40755
+ content: {
40756
+ 'application/json': {
40757
+ schema: {
40758
+ properties: {
40759
+ ok: {
40760
+ type: string;
40761
+ };
40762
+ reservation: {
40763
+ properties: {
40764
+ access_methods: {
40765
+ items: {
40766
+ $ref: string;
40767
+ };
40768
+ type: string;
40769
+ };
40770
+ created_at: {
40771
+ format: string;
40772
+ type: string;
40773
+ };
40774
+ ends_at: {
40775
+ format: string;
40776
+ nullable: boolean;
40777
+ type: string;
40778
+ };
40779
+ guest_name: {
40780
+ nullable: boolean;
40781
+ type: string;
40782
+ };
40783
+ name: {
40784
+ nullable: boolean;
40785
+ type: string;
40786
+ };
40787
+ reservation_id: {
40788
+ format: string;
40789
+ type: string;
40790
+ };
40791
+ reservation_key: {
40792
+ type: string;
40793
+ };
40794
+ starts_at: {
40795
+ format: string;
40796
+ nullable: boolean;
40797
+ type: string;
40798
+ };
40799
+ };
40800
+ required: string[];
40801
+ type: string;
40802
+ };
40803
+ };
40804
+ required: string[];
40805
+ type: string;
40806
+ };
40807
+ };
40808
+ };
40809
+ description: string;
40810
+ };
40811
+ 400: {
40812
+ description: string;
40813
+ };
40814
+ 401: {
40815
+ description: string;
40816
+ };
40817
+ };
40818
+ security: {
40819
+ client_session_with_customer: never[];
40820
+ }[];
40821
+ summary: string;
40822
+ tags: never[];
40823
+ 'x-fern-sdk-group-name': string[];
40824
+ 'x-fern-sdk-method-name': string;
40825
+ 'x-fern-sdk-return-value': string;
40826
+ 'x-response-key': string;
40827
+ 'x-title': string;
40828
+ 'x-undocumented': string;
40829
+ };
40830
+ };
40831
+ '/seam/customer/v1/reservations/list': {
40832
+ get: {
40833
+ description: string;
40834
+ operationId: string;
40835
+ parameters: ({
40836
+ in: string;
40837
+ name: string;
40838
+ schema: {
40839
+ description: string;
40840
+ type: string;
40841
+ format?: never;
40842
+ default?: never;
40843
+ exclusiveMinimum?: never;
40844
+ minimum?: never;
40658
40845
  nullable?: never;
40659
40846
  };
40660
40847
  } | {
@@ -40669,6 +40856,18 @@ declare const _default: {
40669
40856
  minimum?: never;
40670
40857
  nullable?: never;
40671
40858
  };
40859
+ } | {
40860
+ in: string;
40861
+ name: string;
40862
+ schema: {
40863
+ default: number;
40864
+ description: string;
40865
+ exclusiveMinimum: boolean;
40866
+ minimum: number;
40867
+ type: string;
40868
+ format?: never;
40869
+ nullable?: never;
40870
+ };
40672
40871
  } | {
40673
40872
  in: string;
40674
40873
  name: string;
@@ -40676,10 +40875,10 @@ declare const _default: {
40676
40875
  description: string;
40677
40876
  nullable: boolean;
40678
40877
  type: string;
40878
+ format?: never;
40679
40879
  default?: never;
40680
40880
  exclusiveMinimum?: never;
40681
40881
  minimum?: never;
40682
- format?: never;
40683
40882
  };
40684
40883
  })[];
40685
40884
  responses: {
@@ -40790,6 +40989,11 @@ declare const _default: {
40790
40989
  nullable: boolean;
40791
40990
  type: string;
40792
40991
  };
40992
+ space_id: {
40993
+ description: string;
40994
+ format: string;
40995
+ type: string;
40996
+ };
40793
40997
  space_key: {
40794
40998
  description: string;
40795
40999
  type: string;
@@ -45912,6 +45912,177 @@ export default {
45912
45912
  'x-undocumented': 'Internal endpoint for customer portals.',
45913
45913
  },
45914
45914
  },
45915
+ '/seam/customer/v1/reservations/get': {
45916
+ get: {
45917
+ description: 'Returns a single reservation for a specific customer by reservation ID.',
45918
+ operationId: 'seamCustomerV1ReservationsGetGet',
45919
+ parameters: [
45920
+ {
45921
+ in: 'query',
45922
+ name: 'reservation_id',
45923
+ schema: {
45924
+ description: 'ID of the reservation to retrieve.',
45925
+ format: 'uuid',
45926
+ type: 'string',
45927
+ },
45928
+ },
45929
+ {
45930
+ in: 'query',
45931
+ name: 'reservation_key',
45932
+ schema: {
45933
+ description: 'Key of the reservation to retrieve.',
45934
+ type: 'string',
45935
+ },
45936
+ },
45937
+ ],
45938
+ responses: {
45939
+ 200: {
45940
+ content: {
45941
+ 'application/json': {
45942
+ schema: {
45943
+ properties: {
45944
+ ok: { type: 'boolean' },
45945
+ reservation: {
45946
+ properties: {
45947
+ access_methods: {
45948
+ items: { $ref: '#/components/schemas/access_method' },
45949
+ type: 'array',
45950
+ },
45951
+ created_at: { format: 'date-time', type: 'string' },
45952
+ ends_at: {
45953
+ format: 'date-time',
45954
+ nullable: true,
45955
+ type: 'string',
45956
+ },
45957
+ guest_name: { nullable: true, type: 'string' },
45958
+ name: { nullable: true, type: 'string' },
45959
+ reservation_id: { format: 'uuid', type: 'string' },
45960
+ reservation_key: { type: 'string' },
45961
+ starts_at: {
45962
+ format: 'date-time',
45963
+ nullable: true,
45964
+ type: 'string',
45965
+ },
45966
+ },
45967
+ required: [
45968
+ 'reservation_id',
45969
+ 'reservation_key',
45970
+ 'name',
45971
+ 'starts_at',
45972
+ 'ends_at',
45973
+ 'created_at',
45974
+ 'guest_name',
45975
+ 'access_methods',
45976
+ ],
45977
+ type: 'object',
45978
+ },
45979
+ },
45980
+ required: ['reservation', 'ok'],
45981
+ type: 'object',
45982
+ },
45983
+ },
45984
+ },
45985
+ description: 'OK',
45986
+ },
45987
+ 400: { description: 'Bad Request' },
45988
+ 401: { description: 'Unauthorized' },
45989
+ },
45990
+ security: [{ client_session_with_customer: [] }],
45991
+ summary: '/seam/customer/v1/reservations/get',
45992
+ tags: [],
45993
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
45994
+ 'x-fern-sdk-method-name': 'get',
45995
+ 'x-fern-sdk-return-value': 'reservation',
45996
+ 'x-response-key': 'reservation',
45997
+ 'x-title': 'Get Reservation for Customer',
45998
+ 'x-undocumented': 'Internal endpoint for customer portals.',
45999
+ },
46000
+ post: {
46001
+ description: 'Returns a single reservation for a specific customer by reservation ID.',
46002
+ operationId: 'seamCustomerV1ReservationsGetPost',
46003
+ requestBody: {
46004
+ content: {
46005
+ 'application/json': {
46006
+ schema: {
46007
+ properties: {
46008
+ reservation_id: {
46009
+ description: 'ID of the reservation to retrieve.',
46010
+ format: 'uuid',
46011
+ type: 'string',
46012
+ },
46013
+ reservation_key: {
46014
+ description: 'Key of the reservation to retrieve.',
46015
+ type: 'string',
46016
+ },
46017
+ },
46018
+ type: 'object',
46019
+ },
46020
+ },
46021
+ },
46022
+ },
46023
+ responses: {
46024
+ 200: {
46025
+ content: {
46026
+ 'application/json': {
46027
+ schema: {
46028
+ properties: {
46029
+ ok: { type: 'boolean' },
46030
+ reservation: {
46031
+ properties: {
46032
+ access_methods: {
46033
+ items: { $ref: '#/components/schemas/access_method' },
46034
+ type: 'array',
46035
+ },
46036
+ created_at: { format: 'date-time', type: 'string' },
46037
+ ends_at: {
46038
+ format: 'date-time',
46039
+ nullable: true,
46040
+ type: 'string',
46041
+ },
46042
+ guest_name: { nullable: true, type: 'string' },
46043
+ name: { nullable: true, type: 'string' },
46044
+ reservation_id: { format: 'uuid', type: 'string' },
46045
+ reservation_key: { type: 'string' },
46046
+ starts_at: {
46047
+ format: 'date-time',
46048
+ nullable: true,
46049
+ type: 'string',
46050
+ },
46051
+ },
46052
+ required: [
46053
+ 'reservation_id',
46054
+ 'reservation_key',
46055
+ 'name',
46056
+ 'starts_at',
46057
+ 'ends_at',
46058
+ 'created_at',
46059
+ 'guest_name',
46060
+ 'access_methods',
46061
+ ],
46062
+ type: 'object',
46063
+ },
46064
+ },
46065
+ required: ['reservation', 'ok'],
46066
+ type: 'object',
46067
+ },
46068
+ },
46069
+ },
46070
+ description: 'OK',
46071
+ },
46072
+ 400: { description: 'Bad Request' },
46073
+ 401: { description: 'Unauthorized' },
46074
+ },
46075
+ security: [{ client_session_with_customer: [] }],
46076
+ summary: '/seam/customer/v1/reservations/get',
46077
+ tags: [],
46078
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
46079
+ 'x-fern-sdk-method-name': 'get',
46080
+ 'x-fern-sdk-return-value': 'reservation',
46081
+ 'x-response-key': 'reservation',
46082
+ 'x-title': 'Get Reservation for Customer',
46083
+ 'x-undocumented': 'Internal endpoint for customer portals.',
46084
+ },
46085
+ },
45915
46086
  '/seam/customer/v1/reservations/list': {
45916
46087
  get: {
45917
46088
  description: 'Returns a list of reservations for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.',
@@ -45925,6 +46096,15 @@ export default {
45925
46096
  type: 'string',
45926
46097
  },
45927
46098
  },
46099
+ {
46100
+ in: 'query',
46101
+ name: 'space_id',
46102
+ schema: {
46103
+ description: 'Filter reservations by space ID (UUID).',
46104
+ format: 'uuid',
46105
+ type: 'string',
46106
+ },
46107
+ },
45928
46108
  {
45929
46109
  in: 'query',
45930
46110
  name: 'limit',
@@ -46048,6 +46228,11 @@ export default {
46048
46228
  nullable: true,
46049
46229
  type: 'string',
46050
46230
  },
46231
+ space_id: {
46232
+ description: 'Filter reservations by space ID (UUID).',
46233
+ format: 'uuid',
46234
+ type: 'string',
46235
+ },
46051
46236
  space_key: {
46052
46237
  description: 'Filter reservations by space key.',
46053
46238
  type: 'string',