@seamapi/types 1.559.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.
- package/dist/connect.cjs +400 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +532 -0
- package/dist/index.cjs +400 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +459 -0
- package/lib/seam/connect/openapi.js +400 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +73 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +409 -0
- package/src/lib/seam/connect/route-types.ts +73 -0
|
@@ -45912,6 +45912,406 @@ 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
|
+
},
|
|
46086
|
+
'/seam/customer/v1/reservations/list': {
|
|
46087
|
+
get: {
|
|
46088
|
+
description: 'Returns a list of reservations for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.',
|
|
46089
|
+
operationId: 'seamCustomerV1ReservationsListGet',
|
|
46090
|
+
parameters: [
|
|
46091
|
+
{
|
|
46092
|
+
in: 'query',
|
|
46093
|
+
name: 'space_key',
|
|
46094
|
+
schema: {
|
|
46095
|
+
description: 'Filter reservations by space key.',
|
|
46096
|
+
type: 'string',
|
|
46097
|
+
},
|
|
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
|
+
},
|
|
46108
|
+
{
|
|
46109
|
+
in: 'query',
|
|
46110
|
+
name: 'limit',
|
|
46111
|
+
schema: {
|
|
46112
|
+
default: 500,
|
|
46113
|
+
description: 'Maximum number of records to return per page.',
|
|
46114
|
+
exclusiveMinimum: true,
|
|
46115
|
+
minimum: 0,
|
|
46116
|
+
type: 'integer',
|
|
46117
|
+
},
|
|
46118
|
+
},
|
|
46119
|
+
{
|
|
46120
|
+
in: 'query',
|
|
46121
|
+
name: 'created_before',
|
|
46122
|
+
schema: {
|
|
46123
|
+
description: 'Timestamp by which to limit returned reservations. Returns reservations created before this timestamp.',
|
|
46124
|
+
format: 'date-time',
|
|
46125
|
+
type: 'string',
|
|
46126
|
+
},
|
|
46127
|
+
},
|
|
46128
|
+
{
|
|
46129
|
+
in: 'query',
|
|
46130
|
+
name: 'page_cursor',
|
|
46131
|
+
schema: {
|
|
46132
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
46133
|
+
nullable: true,
|
|
46134
|
+
type: 'string',
|
|
46135
|
+
},
|
|
46136
|
+
},
|
|
46137
|
+
],
|
|
46138
|
+
responses: {
|
|
46139
|
+
200: {
|
|
46140
|
+
content: {
|
|
46141
|
+
'application/json': {
|
|
46142
|
+
schema: {
|
|
46143
|
+
properties: {
|
|
46144
|
+
ok: { type: 'boolean' },
|
|
46145
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
46146
|
+
reservations: {
|
|
46147
|
+
items: {
|
|
46148
|
+
properties: {
|
|
46149
|
+
access_methods: {
|
|
46150
|
+
items: {
|
|
46151
|
+
$ref: '#/components/schemas/access_method',
|
|
46152
|
+
},
|
|
46153
|
+
type: 'array',
|
|
46154
|
+
},
|
|
46155
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
46156
|
+
ends_at: {
|
|
46157
|
+
format: 'date-time',
|
|
46158
|
+
nullable: true,
|
|
46159
|
+
type: 'string',
|
|
46160
|
+
},
|
|
46161
|
+
guest_name: { nullable: true, type: 'string' },
|
|
46162
|
+
name: { nullable: true, type: 'string' },
|
|
46163
|
+
reservation_id: { format: 'uuid', type: 'string' },
|
|
46164
|
+
reservation_key: { type: 'string' },
|
|
46165
|
+
starts_at: {
|
|
46166
|
+
format: 'date-time',
|
|
46167
|
+
nullable: true,
|
|
46168
|
+
type: 'string',
|
|
46169
|
+
},
|
|
46170
|
+
},
|
|
46171
|
+
required: [
|
|
46172
|
+
'reservation_id',
|
|
46173
|
+
'reservation_key',
|
|
46174
|
+
'name',
|
|
46175
|
+
'starts_at',
|
|
46176
|
+
'ends_at',
|
|
46177
|
+
'created_at',
|
|
46178
|
+
'guest_name',
|
|
46179
|
+
'access_methods',
|
|
46180
|
+
],
|
|
46181
|
+
type: 'object',
|
|
46182
|
+
},
|
|
46183
|
+
type: 'array',
|
|
46184
|
+
},
|
|
46185
|
+
},
|
|
46186
|
+
required: ['reservations', 'pagination', 'ok'],
|
|
46187
|
+
type: 'object',
|
|
46188
|
+
},
|
|
46189
|
+
},
|
|
46190
|
+
},
|
|
46191
|
+
description: 'OK',
|
|
46192
|
+
},
|
|
46193
|
+
400: { description: 'Bad Request' },
|
|
46194
|
+
401: { description: 'Unauthorized' },
|
|
46195
|
+
},
|
|
46196
|
+
security: [{ client_session_with_customer: [] }],
|
|
46197
|
+
summary: '/seam/customer/v1/reservations/list',
|
|
46198
|
+
tags: [],
|
|
46199
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
|
|
46200
|
+
'x-fern-sdk-method-name': 'list',
|
|
46201
|
+
'x-fern-sdk-return-value': 'reservations',
|
|
46202
|
+
'x-response-key': 'reservations',
|
|
46203
|
+
'x-title': 'List Reservations for Customer Space',
|
|
46204
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
46205
|
+
},
|
|
46206
|
+
post: {
|
|
46207
|
+
description: 'Returns a list of reservations for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.',
|
|
46208
|
+
operationId: 'seamCustomerV1ReservationsListPost',
|
|
46209
|
+
requestBody: {
|
|
46210
|
+
content: {
|
|
46211
|
+
'application/json': {
|
|
46212
|
+
schema: {
|
|
46213
|
+
properties: {
|
|
46214
|
+
created_before: {
|
|
46215
|
+
description: 'Timestamp by which to limit returned reservations. Returns reservations created before this timestamp.',
|
|
46216
|
+
format: 'date-time',
|
|
46217
|
+
type: 'string',
|
|
46218
|
+
},
|
|
46219
|
+
limit: {
|
|
46220
|
+
default: 500,
|
|
46221
|
+
description: 'Maximum number of records to return per page.',
|
|
46222
|
+
exclusiveMinimum: true,
|
|
46223
|
+
minimum: 0,
|
|
46224
|
+
type: 'integer',
|
|
46225
|
+
},
|
|
46226
|
+
page_cursor: {
|
|
46227
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
46228
|
+
nullable: true,
|
|
46229
|
+
type: 'string',
|
|
46230
|
+
},
|
|
46231
|
+
space_id: {
|
|
46232
|
+
description: 'Filter reservations by space ID (UUID).',
|
|
46233
|
+
format: 'uuid',
|
|
46234
|
+
type: 'string',
|
|
46235
|
+
},
|
|
46236
|
+
space_key: {
|
|
46237
|
+
description: 'Filter reservations by space key.',
|
|
46238
|
+
type: 'string',
|
|
46239
|
+
},
|
|
46240
|
+
},
|
|
46241
|
+
type: 'object',
|
|
46242
|
+
},
|
|
46243
|
+
},
|
|
46244
|
+
},
|
|
46245
|
+
},
|
|
46246
|
+
responses: {
|
|
46247
|
+
200: {
|
|
46248
|
+
content: {
|
|
46249
|
+
'application/json': {
|
|
46250
|
+
schema: {
|
|
46251
|
+
properties: {
|
|
46252
|
+
ok: { type: 'boolean' },
|
|
46253
|
+
pagination: { $ref: '#/components/schemas/pagination' },
|
|
46254
|
+
reservations: {
|
|
46255
|
+
items: {
|
|
46256
|
+
properties: {
|
|
46257
|
+
access_methods: {
|
|
46258
|
+
items: {
|
|
46259
|
+
$ref: '#/components/schemas/access_method',
|
|
46260
|
+
},
|
|
46261
|
+
type: 'array',
|
|
46262
|
+
},
|
|
46263
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
46264
|
+
ends_at: {
|
|
46265
|
+
format: 'date-time',
|
|
46266
|
+
nullable: true,
|
|
46267
|
+
type: 'string',
|
|
46268
|
+
},
|
|
46269
|
+
guest_name: { nullable: true, type: 'string' },
|
|
46270
|
+
name: { nullable: true, type: 'string' },
|
|
46271
|
+
reservation_id: { format: 'uuid', type: 'string' },
|
|
46272
|
+
reservation_key: { type: 'string' },
|
|
46273
|
+
starts_at: {
|
|
46274
|
+
format: 'date-time',
|
|
46275
|
+
nullable: true,
|
|
46276
|
+
type: 'string',
|
|
46277
|
+
},
|
|
46278
|
+
},
|
|
46279
|
+
required: [
|
|
46280
|
+
'reservation_id',
|
|
46281
|
+
'reservation_key',
|
|
46282
|
+
'name',
|
|
46283
|
+
'starts_at',
|
|
46284
|
+
'ends_at',
|
|
46285
|
+
'created_at',
|
|
46286
|
+
'guest_name',
|
|
46287
|
+
'access_methods',
|
|
46288
|
+
],
|
|
46289
|
+
type: 'object',
|
|
46290
|
+
},
|
|
46291
|
+
type: 'array',
|
|
46292
|
+
},
|
|
46293
|
+
},
|
|
46294
|
+
required: ['reservations', 'pagination', 'ok'],
|
|
46295
|
+
type: 'object',
|
|
46296
|
+
},
|
|
46297
|
+
},
|
|
46298
|
+
},
|
|
46299
|
+
description: 'OK',
|
|
46300
|
+
},
|
|
46301
|
+
400: { description: 'Bad Request' },
|
|
46302
|
+
401: { description: 'Unauthorized' },
|
|
46303
|
+
},
|
|
46304
|
+
security: [{ client_session_with_customer: [] }],
|
|
46305
|
+
summary: '/seam/customer/v1/reservations/list',
|
|
46306
|
+
tags: [],
|
|
46307
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
|
|
46308
|
+
'x-fern-sdk-method-name': 'list',
|
|
46309
|
+
'x-fern-sdk-return-value': 'reservations',
|
|
46310
|
+
'x-response-key': 'reservations',
|
|
46311
|
+
'x-title': 'List Reservations for Customer Space',
|
|
46312
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
46313
|
+
},
|
|
46314
|
+
},
|
|
45915
46315
|
'/seam/customer/v1/settings/get': {
|
|
45916
46316
|
get: {
|
|
45917
46317
|
description: 'Retrieves the settings for a customer portal workspace.',
|