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