@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.
- package/dist/connect.cjs +245 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +502 -10
- package/dist/index.cjs +245 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +71 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +11 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +26 -0
- package/lib/seam/connect/models/batch.d.ts +144 -0
- package/lib/seam/connect/openapi.d.ts +214 -10
- package/lib/seam/connect/openapi.js +237 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +148 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +14 -0
- package/src/lib/seam/connect/openapi.ts +249 -0
- package/src/lib/seam/connect/route-types.ts +161 -0
|
@@ -1547,6 +1547,15 @@ export type Routes = {
|
|
|
1547
1547
|
created_at?: string | undefined;
|
|
1548
1548
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1549
1549
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
1550
|
+
} | {
|
|
1551
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1552
|
+
message: string;
|
|
1553
|
+
/** Indicates that this is an access code error. */
|
|
1554
|
+
is_access_code_error: true;
|
|
1555
|
+
/** Date and time at which Seam created the error. */
|
|
1556
|
+
created_at?: string | undefined;
|
|
1557
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1558
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
1550
1559
|
} | {
|
|
1551
1560
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1552
1561
|
message: string;
|
|
@@ -2092,6 +2101,15 @@ export type Routes = {
|
|
|
2092
2101
|
created_at?: string | undefined;
|
|
2093
2102
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
2094
2103
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
2104
|
+
} | {
|
|
2105
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2106
|
+
message: string;
|
|
2107
|
+
/** Indicates that this is an access code error. */
|
|
2108
|
+
is_access_code_error: true;
|
|
2109
|
+
/** Date and time at which Seam created the error. */
|
|
2110
|
+
created_at?: string | undefined;
|
|
2111
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
2112
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
2095
2113
|
} | {
|
|
2096
2114
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2097
2115
|
message: string;
|
|
@@ -3891,6 +3909,15 @@ export type Routes = {
|
|
|
3891
3909
|
created_at?: string | undefined;
|
|
3892
3910
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3893
3911
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
3912
|
+
} | {
|
|
3913
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3914
|
+
message: string;
|
|
3915
|
+
/** Indicates that this is an access code error. */
|
|
3916
|
+
is_access_code_error: true;
|
|
3917
|
+
/** Date and time at which Seam created the error. */
|
|
3918
|
+
created_at?: string | undefined;
|
|
3919
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3920
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
3894
3921
|
} | {
|
|
3895
3922
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3896
3923
|
message: string;
|
|
@@ -4410,6 +4437,15 @@ export type Routes = {
|
|
|
4410
4437
|
created_at?: string | undefined;
|
|
4411
4438
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4412
4439
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
4440
|
+
} | {
|
|
4441
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4442
|
+
message: string;
|
|
4443
|
+
/** Indicates that this is an access code error. */
|
|
4444
|
+
is_access_code_error: true;
|
|
4445
|
+
/** Date and time at which Seam created the error. */
|
|
4446
|
+
created_at?: string | undefined;
|
|
4447
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4448
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
4413
4449
|
} | {
|
|
4414
4450
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4415
4451
|
message: string;
|
|
@@ -4935,6 +4971,15 @@ export type Routes = {
|
|
|
4935
4971
|
created_at?: string | undefined;
|
|
4936
4972
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4937
4973
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
4974
|
+
} | {
|
|
4975
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4976
|
+
message: string;
|
|
4977
|
+
/** Indicates that this is an access code error. */
|
|
4978
|
+
is_access_code_error: true;
|
|
4979
|
+
/** Date and time at which Seam created the error. */
|
|
4980
|
+
created_at?: string | undefined;
|
|
4981
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4982
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
4938
4983
|
} | {
|
|
4939
4984
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4940
4985
|
message: string;
|
|
@@ -5438,6 +5483,15 @@ export type Routes = {
|
|
|
5438
5483
|
created_at?: string | undefined;
|
|
5439
5484
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5440
5485
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
5486
|
+
} | {
|
|
5487
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5488
|
+
message: string;
|
|
5489
|
+
/** Indicates that this is an access code error. */
|
|
5490
|
+
is_access_code_error: true;
|
|
5491
|
+
/** Date and time at which Seam created the error. */
|
|
5492
|
+
created_at?: string | undefined;
|
|
5493
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5494
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
5441
5495
|
} | {
|
|
5442
5496
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5443
5497
|
message: string;
|
|
@@ -5974,6 +6028,15 @@ export type Routes = {
|
|
|
5974
6028
|
created_at?: string | undefined;
|
|
5975
6029
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5976
6030
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
6031
|
+
} | {
|
|
6032
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6033
|
+
message: string;
|
|
6034
|
+
/** Indicates that this is an access code error. */
|
|
6035
|
+
is_access_code_error: true;
|
|
6036
|
+
/** Date and time at which Seam created the error. */
|
|
6037
|
+
created_at?: string | undefined;
|
|
6038
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6039
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
5977
6040
|
} | {
|
|
5978
6041
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5979
6042
|
message: string;
|
|
@@ -7760,6 +7823,15 @@ export type Routes = {
|
|
|
7760
7823
|
created_at?: string | undefined;
|
|
7761
7824
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7762
7825
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
7826
|
+
} | {
|
|
7827
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7828
|
+
message: string;
|
|
7829
|
+
/** Indicates that this is an access code error. */
|
|
7830
|
+
is_access_code_error: true;
|
|
7831
|
+
/** Date and time at which Seam created the error. */
|
|
7832
|
+
created_at?: string | undefined;
|
|
7833
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7834
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
7763
7835
|
} | {
|
|
7764
7836
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7765
7837
|
message: string;
|
|
@@ -8257,6 +8329,15 @@ export type Routes = {
|
|
|
8257
8329
|
created_at?: string | undefined;
|
|
8258
8330
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8259
8331
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
8332
|
+
} | {
|
|
8333
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8334
|
+
message: string;
|
|
8335
|
+
/** Indicates that this is an access code error. */
|
|
8336
|
+
is_access_code_error: true;
|
|
8337
|
+
/** Date and time at which Seam created the error. */
|
|
8338
|
+
created_at?: string | undefined;
|
|
8339
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
8340
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
8260
8341
|
} | {
|
|
8261
8342
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
8262
8343
|
message: string;
|
|
@@ -19401,6 +19482,15 @@ export type Routes = {
|
|
|
19401
19482
|
created_at?: string | undefined;
|
|
19402
19483
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
19403
19484
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
19485
|
+
} | {
|
|
19486
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
19487
|
+
message: string;
|
|
19488
|
+
/** Indicates that this is an access code error. */
|
|
19489
|
+
is_access_code_error: true;
|
|
19490
|
+
/** Date and time at which Seam created the error. */
|
|
19491
|
+
created_at?: string | undefined;
|
|
19492
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
19493
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
19404
19494
|
} | {
|
|
19405
19495
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
19406
19496
|
message: string;
|
|
@@ -19891,6 +19981,15 @@ export type Routes = {
|
|
|
19891
19981
|
created_at?: string | undefined;
|
|
19892
19982
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
19893
19983
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
19984
|
+
} | {
|
|
19985
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
19986
|
+
message: string;
|
|
19987
|
+
/** Indicates that this is an access code error. */
|
|
19988
|
+
is_access_code_error: true;
|
|
19989
|
+
/** Date and time at which Seam created the error. */
|
|
19990
|
+
created_at?: string | undefined;
|
|
19991
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
19992
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
19894
19993
|
} | {
|
|
19895
19994
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
19896
19995
|
message: string;
|
|
@@ -58017,6 +58116,35 @@ export type Routes = {
|
|
|
58017
58116
|
};
|
|
58018
58117
|
};
|
|
58019
58118
|
};
|
|
58119
|
+
'/seam/customer/v1/reservations/get': {
|
|
58120
|
+
route: '/seam/customer/v1/reservations/get';
|
|
58121
|
+
method: 'GET' | 'POST';
|
|
58122
|
+
queryParams: {};
|
|
58123
|
+
jsonBody: {};
|
|
58124
|
+
commonParams: {
|
|
58125
|
+
/** ID of the reservation to retrieve. */
|
|
58126
|
+
reservation_id?: string | undefined;
|
|
58127
|
+
/** Key of the reservation to retrieve. */
|
|
58128
|
+
reservation_key?: string | undefined;
|
|
58129
|
+
};
|
|
58130
|
+
formData: {};
|
|
58131
|
+
jsonResponse: {
|
|
58132
|
+
reservation: {
|
|
58133
|
+
reservation_id: string;
|
|
58134
|
+
reservation_key: string;
|
|
58135
|
+
name: string | null;
|
|
58136
|
+
starts_at: string | null;
|
|
58137
|
+
ends_at: string | null;
|
|
58138
|
+
created_at: string;
|
|
58139
|
+
guest_name: string | null;
|
|
58140
|
+
access_methods: {
|
|
58141
|
+
access_method_id: string;
|
|
58142
|
+
mode: string;
|
|
58143
|
+
is_issued: boolean;
|
|
58144
|
+
}[];
|
|
58145
|
+
};
|
|
58146
|
+
};
|
|
58147
|
+
};
|
|
58020
58148
|
'/seam/customer/v1/reservations/list': {
|
|
58021
58149
|
route: '/seam/customer/v1/reservations/list';
|
|
58022
58150
|
method: 'GET' | 'POST';
|
|
@@ -58025,6 +58153,8 @@ export type Routes = {
|
|
|
58025
58153
|
commonParams: {
|
|
58026
58154
|
/** Filter reservations by space key. */
|
|
58027
58155
|
space_key?: string | undefined;
|
|
58156
|
+
/** Filter reservations by space ID (UUID). */
|
|
58157
|
+
space_id?: string | undefined;
|
|
58028
58158
|
/** Maximum number of records to return per page. */
|
|
58029
58159
|
limit?: number;
|
|
58030
58160
|
/** Timestamp by which to limit returned reservations. Returns reservations created before this timestamp. */
|
|
@@ -85858,6 +85988,15 @@ export type Routes = {
|
|
|
85858
85988
|
created_at?: string | undefined;
|
|
85859
85989
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
85860
85990
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
85991
|
+
} | {
|
|
85992
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
85993
|
+
message: string;
|
|
85994
|
+
/** Indicates that this is an access code error. */
|
|
85995
|
+
is_access_code_error: true;
|
|
85996
|
+
/** Date and time at which Seam created the error. */
|
|
85997
|
+
created_at?: string | undefined;
|
|
85998
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
85999
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
85861
86000
|
} | {
|
|
85862
86001
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
85863
86002
|
message: string;
|
|
@@ -86348,6 +86487,15 @@ export type Routes = {
|
|
|
86348
86487
|
created_at?: string | undefined;
|
|
86349
86488
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
86350
86489
|
error_code: 'dormakaba_oracode_no_valid_user_level';
|
|
86490
|
+
} | {
|
|
86491
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
86492
|
+
message: string;
|
|
86493
|
+
/** Indicates that this is an access code error. */
|
|
86494
|
+
is_access_code_error: true;
|
|
86495
|
+
/** Date and time at which Seam created the error. */
|
|
86496
|
+
created_at?: string | undefined;
|
|
86497
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
86498
|
+
error_code: 'kwikset_insufficient_permissions';
|
|
86351
86499
|
} | {
|
|
86352
86500
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
86353
86501
|
message: string;
|
package/package.json
CHANGED
|
@@ -122,6 +122,16 @@ const kwikset_unable_to_confirm_deletion = common_access_code_error
|
|
|
122
122
|
'Unable to confirm the deletion of the access code on Kwikset device.',
|
|
123
123
|
)
|
|
124
124
|
|
|
125
|
+
const kwikset_insufficient_permissions = common_access_code_error
|
|
126
|
+
.extend({
|
|
127
|
+
error_code: z
|
|
128
|
+
.literal('kwikset_insufficient_permissions')
|
|
129
|
+
.describe(error_code_description),
|
|
130
|
+
})
|
|
131
|
+
.describe(
|
|
132
|
+
'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.',
|
|
133
|
+
)
|
|
134
|
+
|
|
125
135
|
const igloohome_offline_access_code_no_variance_available =
|
|
126
136
|
common_access_code_error
|
|
127
137
|
.extend({
|
|
@@ -254,6 +264,7 @@ const access_code_error = z
|
|
|
254
264
|
wyze_duplicate_code_name,
|
|
255
265
|
wyze_potential_duplicate_code,
|
|
256
266
|
dormakaba_oracode_no_valid_user_level,
|
|
267
|
+
kwikset_insufficient_permissions,
|
|
257
268
|
])
|
|
258
269
|
.describe(
|
|
259
270
|
'Errors associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).',
|
|
@@ -292,6 +303,9 @@ const _access_code_error_map = z.object({
|
|
|
292
303
|
kwikset_unable_to_confirm_deletion: kwikset_unable_to_confirm_deletion
|
|
293
304
|
.optional()
|
|
294
305
|
.nullable(),
|
|
306
|
+
kwikset_insufficient_permissions: kwikset_insufficient_permissions
|
|
307
|
+
.optional()
|
|
308
|
+
.nullable(),
|
|
295
309
|
code_modified_external_to_seam_error: code_modified_external_to_seam_error
|
|
296
310
|
.optional()
|
|
297
311
|
.nullable(),
|
|
@@ -807,6 +807,37 @@ export default {
|
|
|
807
807
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
808
808
|
type: 'object',
|
|
809
809
|
},
|
|
810
|
+
{
|
|
811
|
+
description:
|
|
812
|
+
'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.',
|
|
813
|
+
properties: {
|
|
814
|
+
created_at: {
|
|
815
|
+
description:
|
|
816
|
+
'Date and time at which Seam created the error.',
|
|
817
|
+
format: 'date-time',
|
|
818
|
+
type: 'string',
|
|
819
|
+
},
|
|
820
|
+
error_code: {
|
|
821
|
+
description:
|
|
822
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
823
|
+
enum: ['kwikset_insufficient_permissions'],
|
|
824
|
+
type: 'string',
|
|
825
|
+
},
|
|
826
|
+
is_access_code_error: {
|
|
827
|
+
description:
|
|
828
|
+
'Indicates that this is an access code error.',
|
|
829
|
+
enum: [true],
|
|
830
|
+
type: 'boolean',
|
|
831
|
+
},
|
|
832
|
+
message: {
|
|
833
|
+
description:
|
|
834
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
835
|
+
type: 'string',
|
|
836
|
+
},
|
|
837
|
+
},
|
|
838
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
839
|
+
type: 'object',
|
|
840
|
+
},
|
|
810
841
|
{
|
|
811
842
|
description: 'Indicates that the account is disconnected.',
|
|
812
843
|
properties: {
|
|
@@ -21663,6 +21694,37 @@ export default {
|
|
|
21663
21694
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
21664
21695
|
type: 'object',
|
|
21665
21696
|
},
|
|
21697
|
+
{
|
|
21698
|
+
description:
|
|
21699
|
+
'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.',
|
|
21700
|
+
properties: {
|
|
21701
|
+
created_at: {
|
|
21702
|
+
description:
|
|
21703
|
+
'Date and time at which Seam created the error.',
|
|
21704
|
+
format: 'date-time',
|
|
21705
|
+
type: 'string',
|
|
21706
|
+
},
|
|
21707
|
+
error_code: {
|
|
21708
|
+
description:
|
|
21709
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
21710
|
+
enum: ['kwikset_insufficient_permissions'],
|
|
21711
|
+
type: 'string',
|
|
21712
|
+
},
|
|
21713
|
+
is_access_code_error: {
|
|
21714
|
+
description:
|
|
21715
|
+
'Indicates that this is an access code error.',
|
|
21716
|
+
enum: [true],
|
|
21717
|
+
type: 'boolean',
|
|
21718
|
+
},
|
|
21719
|
+
message: {
|
|
21720
|
+
description:
|
|
21721
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
21722
|
+
type: 'string',
|
|
21723
|
+
},
|
|
21724
|
+
},
|
|
21725
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
21726
|
+
type: 'object',
|
|
21727
|
+
},
|
|
21666
21728
|
{
|
|
21667
21729
|
description: 'Indicates that the account is disconnected.',
|
|
21668
21730
|
properties: {
|
|
@@ -49837,6 +49899,179 @@ export default {
|
|
|
49837
49899
|
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
49838
49900
|
},
|
|
49839
49901
|
},
|
|
49902
|
+
'/seam/customer/v1/reservations/get': {
|
|
49903
|
+
get: {
|
|
49904
|
+
description:
|
|
49905
|
+
'Returns a single reservation for a specific customer by reservation ID.',
|
|
49906
|
+
operationId: 'seamCustomerV1ReservationsGetGet',
|
|
49907
|
+
parameters: [
|
|
49908
|
+
{
|
|
49909
|
+
in: 'query',
|
|
49910
|
+
name: 'reservation_id',
|
|
49911
|
+
schema: {
|
|
49912
|
+
description: 'ID of the reservation to retrieve.',
|
|
49913
|
+
format: 'uuid',
|
|
49914
|
+
type: 'string',
|
|
49915
|
+
},
|
|
49916
|
+
},
|
|
49917
|
+
{
|
|
49918
|
+
in: 'query',
|
|
49919
|
+
name: 'reservation_key',
|
|
49920
|
+
schema: {
|
|
49921
|
+
description: 'Key of the reservation to retrieve.',
|
|
49922
|
+
type: 'string',
|
|
49923
|
+
},
|
|
49924
|
+
},
|
|
49925
|
+
],
|
|
49926
|
+
responses: {
|
|
49927
|
+
200: {
|
|
49928
|
+
content: {
|
|
49929
|
+
'application/json': {
|
|
49930
|
+
schema: {
|
|
49931
|
+
properties: {
|
|
49932
|
+
ok: { type: 'boolean' },
|
|
49933
|
+
reservation: {
|
|
49934
|
+
properties: {
|
|
49935
|
+
access_methods: {
|
|
49936
|
+
items: { $ref: '#/components/schemas/access_method' },
|
|
49937
|
+
type: 'array',
|
|
49938
|
+
},
|
|
49939
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
49940
|
+
ends_at: {
|
|
49941
|
+
format: 'date-time',
|
|
49942
|
+
nullable: true,
|
|
49943
|
+
type: 'string',
|
|
49944
|
+
},
|
|
49945
|
+
guest_name: { nullable: true, type: 'string' },
|
|
49946
|
+
name: { nullable: true, type: 'string' },
|
|
49947
|
+
reservation_id: { format: 'uuid', type: 'string' },
|
|
49948
|
+
reservation_key: { type: 'string' },
|
|
49949
|
+
starts_at: {
|
|
49950
|
+
format: 'date-time',
|
|
49951
|
+
nullable: true,
|
|
49952
|
+
type: 'string',
|
|
49953
|
+
},
|
|
49954
|
+
},
|
|
49955
|
+
required: [
|
|
49956
|
+
'reservation_id',
|
|
49957
|
+
'reservation_key',
|
|
49958
|
+
'name',
|
|
49959
|
+
'starts_at',
|
|
49960
|
+
'ends_at',
|
|
49961
|
+
'created_at',
|
|
49962
|
+
'guest_name',
|
|
49963
|
+
'access_methods',
|
|
49964
|
+
],
|
|
49965
|
+
type: 'object',
|
|
49966
|
+
},
|
|
49967
|
+
},
|
|
49968
|
+
required: ['reservation', 'ok'],
|
|
49969
|
+
type: 'object',
|
|
49970
|
+
},
|
|
49971
|
+
},
|
|
49972
|
+
},
|
|
49973
|
+
description: 'OK',
|
|
49974
|
+
},
|
|
49975
|
+
400: { description: 'Bad Request' },
|
|
49976
|
+
401: { description: 'Unauthorized' },
|
|
49977
|
+
},
|
|
49978
|
+
security: [{ client_session_with_customer: [] }],
|
|
49979
|
+
summary: '/seam/customer/v1/reservations/get',
|
|
49980
|
+
tags: [],
|
|
49981
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
|
|
49982
|
+
'x-fern-sdk-method-name': 'get',
|
|
49983
|
+
'x-fern-sdk-return-value': 'reservation',
|
|
49984
|
+
'x-response-key': 'reservation',
|
|
49985
|
+
'x-title': 'Get Reservation for Customer',
|
|
49986
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
49987
|
+
},
|
|
49988
|
+
post: {
|
|
49989
|
+
description:
|
|
49990
|
+
'Returns a single reservation for a specific customer by reservation ID.',
|
|
49991
|
+
operationId: 'seamCustomerV1ReservationsGetPost',
|
|
49992
|
+
requestBody: {
|
|
49993
|
+
content: {
|
|
49994
|
+
'application/json': {
|
|
49995
|
+
schema: {
|
|
49996
|
+
properties: {
|
|
49997
|
+
reservation_id: {
|
|
49998
|
+
description: 'ID of the reservation to retrieve.',
|
|
49999
|
+
format: 'uuid',
|
|
50000
|
+
type: 'string',
|
|
50001
|
+
},
|
|
50002
|
+
reservation_key: {
|
|
50003
|
+
description: 'Key of the reservation to retrieve.',
|
|
50004
|
+
type: 'string',
|
|
50005
|
+
},
|
|
50006
|
+
},
|
|
50007
|
+
type: 'object',
|
|
50008
|
+
},
|
|
50009
|
+
},
|
|
50010
|
+
},
|
|
50011
|
+
},
|
|
50012
|
+
responses: {
|
|
50013
|
+
200: {
|
|
50014
|
+
content: {
|
|
50015
|
+
'application/json': {
|
|
50016
|
+
schema: {
|
|
50017
|
+
properties: {
|
|
50018
|
+
ok: { type: 'boolean' },
|
|
50019
|
+
reservation: {
|
|
50020
|
+
properties: {
|
|
50021
|
+
access_methods: {
|
|
50022
|
+
items: { $ref: '#/components/schemas/access_method' },
|
|
50023
|
+
type: 'array',
|
|
50024
|
+
},
|
|
50025
|
+
created_at: { format: 'date-time', type: 'string' },
|
|
50026
|
+
ends_at: {
|
|
50027
|
+
format: 'date-time',
|
|
50028
|
+
nullable: true,
|
|
50029
|
+
type: 'string',
|
|
50030
|
+
},
|
|
50031
|
+
guest_name: { nullable: true, type: 'string' },
|
|
50032
|
+
name: { nullable: true, type: 'string' },
|
|
50033
|
+
reservation_id: { format: 'uuid', type: 'string' },
|
|
50034
|
+
reservation_key: { type: 'string' },
|
|
50035
|
+
starts_at: {
|
|
50036
|
+
format: 'date-time',
|
|
50037
|
+
nullable: true,
|
|
50038
|
+
type: 'string',
|
|
50039
|
+
},
|
|
50040
|
+
},
|
|
50041
|
+
required: [
|
|
50042
|
+
'reservation_id',
|
|
50043
|
+
'reservation_key',
|
|
50044
|
+
'name',
|
|
50045
|
+
'starts_at',
|
|
50046
|
+
'ends_at',
|
|
50047
|
+
'created_at',
|
|
50048
|
+
'guest_name',
|
|
50049
|
+
'access_methods',
|
|
50050
|
+
],
|
|
50051
|
+
type: 'object',
|
|
50052
|
+
},
|
|
50053
|
+
},
|
|
50054
|
+
required: ['reservation', 'ok'],
|
|
50055
|
+
type: 'object',
|
|
50056
|
+
},
|
|
50057
|
+
},
|
|
50058
|
+
},
|
|
50059
|
+
description: 'OK',
|
|
50060
|
+
},
|
|
50061
|
+
400: { description: 'Bad Request' },
|
|
50062
|
+
401: { description: 'Unauthorized' },
|
|
50063
|
+
},
|
|
50064
|
+
security: [{ client_session_with_customer: [] }],
|
|
50065
|
+
summary: '/seam/customer/v1/reservations/get',
|
|
50066
|
+
tags: [],
|
|
50067
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'reservations'],
|
|
50068
|
+
'x-fern-sdk-method-name': 'get',
|
|
50069
|
+
'x-fern-sdk-return-value': 'reservation',
|
|
50070
|
+
'x-response-key': 'reservation',
|
|
50071
|
+
'x-title': 'Get Reservation for Customer',
|
|
50072
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
50073
|
+
},
|
|
50074
|
+
},
|
|
49840
50075
|
'/seam/customer/v1/reservations/list': {
|
|
49841
50076
|
get: {
|
|
49842
50077
|
description:
|
|
@@ -49851,6 +50086,15 @@ export default {
|
|
|
49851
50086
|
type: 'string',
|
|
49852
50087
|
},
|
|
49853
50088
|
},
|
|
50089
|
+
{
|
|
50090
|
+
in: 'query',
|
|
50091
|
+
name: 'space_id',
|
|
50092
|
+
schema: {
|
|
50093
|
+
description: 'Filter reservations by space ID (UUID).',
|
|
50094
|
+
format: 'uuid',
|
|
50095
|
+
type: 'string',
|
|
50096
|
+
},
|
|
50097
|
+
},
|
|
49854
50098
|
{
|
|
49855
50099
|
in: 'query',
|
|
49856
50100
|
name: 'limit',
|
|
@@ -49980,6 +50224,11 @@ export default {
|
|
|
49980
50224
|
nullable: true,
|
|
49981
50225
|
type: 'string',
|
|
49982
50226
|
},
|
|
50227
|
+
space_id: {
|
|
50228
|
+
description: 'Filter reservations by space ID (UUID).',
|
|
50229
|
+
format: 'uuid',
|
|
50230
|
+
type: 'string',
|
|
50231
|
+
},
|
|
49983
50232
|
space_key: {
|
|
49984
50233
|
description: 'Filter reservations by space key.',
|
|
49985
50234
|
type: 'string',
|