@seamapi/types 1.560.0 → 1.562.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;
@@ -694,6 +694,32 @@ export default {
694
694
  required: ['message', 'is_access_code_error', 'error_code'],
695
695
  type: 'object',
696
696
  },
697
+ {
698
+ description: 'Admin role required—insufficient permissions to manage PINs on this Kwikset device. Please have a Home Admin update your role in the Kwikset app, or ask them to set the PIN.',
699
+ properties: {
700
+ created_at: {
701
+ description: 'Date and time at which Seam created the error.',
702
+ format: 'date-time',
703
+ type: 'string',
704
+ },
705
+ error_code: {
706
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
707
+ enum: ['kwikset_insufficient_permissions'],
708
+ type: 'string',
709
+ },
710
+ is_access_code_error: {
711
+ description: 'Indicates that this is an access code error.',
712
+ enum: [true],
713
+ type: 'boolean',
714
+ },
715
+ message: {
716
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
717
+ type: 'string',
718
+ },
719
+ },
720
+ required: ['message', 'is_access_code_error', 'error_code'],
721
+ type: 'object',
722
+ },
697
723
  {
698
724
  description: 'Indicates that the account is disconnected.',
699
725
  properties: {
@@ -19451,6 +19477,32 @@ export default {
19451
19477
  required: ['message', 'is_access_code_error', 'error_code'],
19452
19478
  type: 'object',
19453
19479
  },
19480
+ {
19481
+ description: 'Admin role required—insufficient permissions to manage PINs on this Kwikset device. Please have a Home Admin update your role in the Kwikset app, or ask them to set the PIN.',
19482
+ properties: {
19483
+ created_at: {
19484
+ description: 'Date and time at which Seam created the error.',
19485
+ format: 'date-time',
19486
+ type: 'string',
19487
+ },
19488
+ error_code: {
19489
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
19490
+ enum: ['kwikset_insufficient_permissions'],
19491
+ type: 'string',
19492
+ },
19493
+ is_access_code_error: {
19494
+ description: 'Indicates that this is an access code error.',
19495
+ enum: [true],
19496
+ type: 'boolean',
19497
+ },
19498
+ message: {
19499
+ description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
19500
+ type: 'string',
19501
+ },
19502
+ },
19503
+ required: ['message', 'is_access_code_error', 'error_code'],
19504
+ type: 'object',
19505
+ },
19454
19506
  {
19455
19507
  description: 'Indicates that the account is disconnected.',
19456
19508
  properties: {
@@ -45912,6 +45964,177 @@ export default {
45912
45964
  'x-undocumented': 'Internal endpoint for customer portals.',
45913
45965
  },
45914
45966
  },
45967
+ '/seam/customer/v1/reservations/get': {
45968
+ get: {
45969
+ description: 'Returns a single reservation for a specific customer by reservation ID.',
45970
+ operationId: 'seamCustomerV1ReservationsGetGet',
45971
+ parameters: [
45972
+ {
45973
+ in: 'query',
45974
+ name: 'reservation_id',
45975
+ schema: {
45976
+ description: 'ID of the reservation to retrieve.',
45977
+ format: 'uuid',
45978
+ type: 'string',
45979
+ },
45980
+ },
45981
+ {
45982
+ in: 'query',
45983
+ name: 'reservation_key',
45984
+ schema: {
45985
+ description: 'Key of the reservation to retrieve.',
45986
+ type: 'string',
45987
+ },
45988
+ },
45989
+ ],
45990
+ responses: {
45991
+ 200: {
45992
+ content: {
45993
+ 'application/json': {
45994
+ schema: {
45995
+ properties: {
45996
+ ok: { type: 'boolean' },
45997
+ reservation: {
45998
+ properties: {
45999
+ access_methods: {
46000
+ items: { $ref: '#/components/schemas/access_method' },
46001
+ type: 'array',
46002
+ },
46003
+ created_at: { format: 'date-time', type: 'string' },
46004
+ ends_at: {
46005
+ format: 'date-time',
46006
+ nullable: true,
46007
+ type: 'string',
46008
+ },
46009
+ guest_name: { nullable: true, type: 'string' },
46010
+ name: { nullable: true, type: 'string' },
46011
+ reservation_id: { format: 'uuid', type: 'string' },
46012
+ reservation_key: { type: 'string' },
46013
+ starts_at: {
46014
+ format: 'date-time',
46015
+ nullable: true,
46016
+ type: 'string',
46017
+ },
46018
+ },
46019
+ required: [
46020
+ 'reservation_id',
46021
+ 'reservation_key',
46022
+ 'name',
46023
+ 'starts_at',
46024
+ 'ends_at',
46025
+ 'created_at',
46026
+ 'guest_name',
46027
+ 'access_methods',
46028
+ ],
46029
+ type: 'object',
46030
+ },
46031
+ },
46032
+ required: ['reservation', 'ok'],
46033
+ type: 'object',
46034
+ },
46035
+ },
46036
+ },
46037
+ description: 'OK',
46038
+ },
46039
+ 400: { description: 'Bad Request' },
46040
+ 401: { description: 'Unauthorized' },
46041
+ },
46042
+ security: [{ client_session_with_customer: [] }],
46043
+ summary: '/seam/customer/v1/reservations/get',
46044
+ tags: [],
46045
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
46046
+ 'x-fern-sdk-method-name': 'get',
46047
+ 'x-fern-sdk-return-value': 'reservation',
46048
+ 'x-response-key': 'reservation',
46049
+ 'x-title': 'Get Reservation for Customer',
46050
+ 'x-undocumented': 'Internal endpoint for customer portals.',
46051
+ },
46052
+ post: {
46053
+ description: 'Returns a single reservation for a specific customer by reservation ID.',
46054
+ operationId: 'seamCustomerV1ReservationsGetPost',
46055
+ requestBody: {
46056
+ content: {
46057
+ 'application/json': {
46058
+ schema: {
46059
+ properties: {
46060
+ reservation_id: {
46061
+ description: 'ID of the reservation to retrieve.',
46062
+ format: 'uuid',
46063
+ type: 'string',
46064
+ },
46065
+ reservation_key: {
46066
+ description: 'Key of the reservation to retrieve.',
46067
+ type: 'string',
46068
+ },
46069
+ },
46070
+ type: 'object',
46071
+ },
46072
+ },
46073
+ },
46074
+ },
46075
+ responses: {
46076
+ 200: {
46077
+ content: {
46078
+ 'application/json': {
46079
+ schema: {
46080
+ properties: {
46081
+ ok: { type: 'boolean' },
46082
+ reservation: {
46083
+ properties: {
46084
+ access_methods: {
46085
+ items: { $ref: '#/components/schemas/access_method' },
46086
+ type: 'array',
46087
+ },
46088
+ created_at: { format: 'date-time', type: 'string' },
46089
+ ends_at: {
46090
+ format: 'date-time',
46091
+ nullable: true,
46092
+ type: 'string',
46093
+ },
46094
+ guest_name: { nullable: true, type: 'string' },
46095
+ name: { nullable: true, type: 'string' },
46096
+ reservation_id: { format: 'uuid', type: 'string' },
46097
+ reservation_key: { type: 'string' },
46098
+ starts_at: {
46099
+ format: 'date-time',
46100
+ nullable: true,
46101
+ type: 'string',
46102
+ },
46103
+ },
46104
+ required: [
46105
+ 'reservation_id',
46106
+ 'reservation_key',
46107
+ 'name',
46108
+ 'starts_at',
46109
+ 'ends_at',
46110
+ 'created_at',
46111
+ 'guest_name',
46112
+ 'access_methods',
46113
+ ],
46114
+ type: 'object',
46115
+ },
46116
+ },
46117
+ required: ['reservation', 'ok'],
46118
+ type: 'object',
46119
+ },
46120
+ },
46121
+ },
46122
+ description: 'OK',
46123
+ },
46124
+ 400: { description: 'Bad Request' },
46125
+ 401: { description: 'Unauthorized' },
46126
+ },
46127
+ security: [{ client_session_with_customer: [] }],
46128
+ summary: '/seam/customer/v1/reservations/get',
46129
+ tags: [],
46130
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
46131
+ 'x-fern-sdk-method-name': 'get',
46132
+ 'x-fern-sdk-return-value': 'reservation',
46133
+ 'x-response-key': 'reservation',
46134
+ 'x-title': 'Get Reservation for Customer',
46135
+ 'x-undocumented': 'Internal endpoint for customer portals.',
46136
+ },
46137
+ },
45915
46138
  '/seam/customer/v1/reservations/list': {
45916
46139
  get: {
45917
46140
  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 +46148,15 @@ export default {
45925
46148
  type: 'string',
45926
46149
  },
45927
46150
  },
46151
+ {
46152
+ in: 'query',
46153
+ name: 'space_id',
46154
+ schema: {
46155
+ description: 'Filter reservations by space ID (UUID).',
46156
+ format: 'uuid',
46157
+ type: 'string',
46158
+ },
46159
+ },
45928
46160
  {
45929
46161
  in: 'query',
45930
46162
  name: 'limit',
@@ -46048,6 +46280,11 @@ export default {
46048
46280
  nullable: true,
46049
46281
  type: 'string',
46050
46282
  },
46283
+ space_id: {
46284
+ description: 'Filter reservations by space ID (UUID).',
46285
+ format: 'uuid',
46286
+ type: 'string',
46287
+ },
46051
46288
  space_key: {
46052
46289
  description: 'Filter reservations by space key.',
46053
46290
  type: 'string',