@seamapi/types 1.1152.0 → 1.1154.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/lib/seam/connect/models/access-codes/managed-access-code.d.ts +71 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +10 -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/customer/access-grant-resources.d.ts +13 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js +4 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +14 -0
- package/lib/seam/connect/openapi.js +90 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +111 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +16 -0
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +106 -0
- package/src/lib/seam/connect/route-types.ts +122 -0
|
@@ -2606,6 +2606,15 @@ export type Routes = {
|
|
|
2606
2606
|
created_at?: string | undefined;
|
|
2607
2607
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
2608
2608
|
warning_code: 'being_deleted';
|
|
2609
|
+
} | {
|
|
2610
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
2611
|
+
message: string;
|
|
2612
|
+
/** Date and time at which Seam created the warning. */
|
|
2613
|
+
created_at?: string | undefined;
|
|
2614
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
2615
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
2616
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
2617
|
+
device_unreachable_since: string;
|
|
2609
2618
|
} | {
|
|
2610
2619
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
2611
2620
|
message: string;
|
|
@@ -3140,6 +3149,15 @@ export type Routes = {
|
|
|
3140
3149
|
created_at?: string | undefined;
|
|
3141
3150
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
3142
3151
|
warning_code: 'being_deleted';
|
|
3152
|
+
} | {
|
|
3153
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
3154
|
+
message: string;
|
|
3155
|
+
/** Date and time at which Seam created the warning. */
|
|
3156
|
+
created_at?: string | undefined;
|
|
3157
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
3158
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
3159
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
3160
|
+
device_unreachable_since: string;
|
|
3143
3161
|
} | {
|
|
3144
3162
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
3145
3163
|
message: string;
|
|
@@ -5883,6 +5901,15 @@ export type Routes = {
|
|
|
5883
5901
|
created_at?: string | undefined;
|
|
5884
5902
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5885
5903
|
warning_code: 'being_deleted';
|
|
5904
|
+
} | {
|
|
5905
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5906
|
+
message: string;
|
|
5907
|
+
/** Date and time at which Seam created the warning. */
|
|
5908
|
+
created_at?: string | undefined;
|
|
5909
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5910
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
5911
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
5912
|
+
device_unreachable_since: string;
|
|
5886
5913
|
} | {
|
|
5887
5914
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5888
5915
|
message: string;
|
|
@@ -6465,6 +6492,15 @@ export type Routes = {
|
|
|
6465
6492
|
created_at?: string | undefined;
|
|
6466
6493
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
6467
6494
|
warning_code: 'being_deleted';
|
|
6495
|
+
} | {
|
|
6496
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
6497
|
+
message: string;
|
|
6498
|
+
/** Date and time at which Seam created the warning. */
|
|
6499
|
+
created_at?: string | undefined;
|
|
6500
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
6501
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
6502
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
6503
|
+
device_unreachable_since: string;
|
|
6468
6504
|
} | {
|
|
6469
6505
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
6470
6506
|
message: string;
|
|
@@ -6990,6 +7026,15 @@ export type Routes = {
|
|
|
6990
7026
|
created_at?: string | undefined;
|
|
6991
7027
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
6992
7028
|
warning_code: 'being_deleted';
|
|
7029
|
+
} | {
|
|
7030
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7031
|
+
message: string;
|
|
7032
|
+
/** Date and time at which Seam created the warning. */
|
|
7033
|
+
created_at?: string | undefined;
|
|
7034
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7035
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
7036
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
7037
|
+
device_unreachable_since: string;
|
|
6993
7038
|
} | {
|
|
6994
7039
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
6995
7040
|
message: string;
|
|
@@ -7492,6 +7537,15 @@ export type Routes = {
|
|
|
7492
7537
|
created_at?: string | undefined;
|
|
7493
7538
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7494
7539
|
warning_code: 'being_deleted';
|
|
7540
|
+
} | {
|
|
7541
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7542
|
+
message: string;
|
|
7543
|
+
/** Date and time at which Seam created the warning. */
|
|
7544
|
+
created_at?: string | undefined;
|
|
7545
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7546
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
7547
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
7548
|
+
device_unreachable_since: string;
|
|
7495
7549
|
} | {
|
|
7496
7550
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7497
7551
|
message: string;
|
|
@@ -8027,6 +8081,15 @@ export type Routes = {
|
|
|
8027
8081
|
created_at?: string | undefined;
|
|
8028
8082
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
8029
8083
|
warning_code: 'being_deleted';
|
|
8084
|
+
} | {
|
|
8085
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
8086
|
+
message: string;
|
|
8087
|
+
/** Date and time at which Seam created the warning. */
|
|
8088
|
+
created_at?: string | undefined;
|
|
8089
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
8090
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
8091
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
8092
|
+
device_unreachable_since: string;
|
|
8030
8093
|
} | {
|
|
8031
8094
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
8032
8095
|
message: string;
|
|
@@ -10679,6 +10742,15 @@ export type Routes = {
|
|
|
10679
10742
|
created_at?: string | undefined;
|
|
10680
10743
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
10681
10744
|
warning_code: 'being_deleted';
|
|
10745
|
+
} | {
|
|
10746
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
10747
|
+
message: string;
|
|
10748
|
+
/** Date and time at which Seam created the warning. */
|
|
10749
|
+
created_at?: string | undefined;
|
|
10750
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
10751
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
10752
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
10753
|
+
device_unreachable_since: string;
|
|
10682
10754
|
} | {
|
|
10683
10755
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
10684
10756
|
message: string;
|
|
@@ -11100,6 +11172,15 @@ export type Routes = {
|
|
|
11100
11172
|
created_at?: string | undefined;
|
|
11101
11173
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11102
11174
|
warning_code: 'being_deleted';
|
|
11175
|
+
} | {
|
|
11176
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11177
|
+
message: string;
|
|
11178
|
+
/** Date and time at which Seam created the warning. */
|
|
11179
|
+
created_at?: string | undefined;
|
|
11180
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11181
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
11182
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
11183
|
+
device_unreachable_since: string;
|
|
11103
11184
|
} | {
|
|
11104
11185
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11105
11186
|
message: string;
|
|
@@ -49011,6 +49092,8 @@ export type Routes = {
|
|
|
49011
49092
|
preferred_code?: (string | null) | undefined;
|
|
49012
49093
|
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
49013
49094
|
sub_reservation_key: string;
|
|
49095
|
+
/** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
|
|
49096
|
+
is_primary?: boolean | undefined;
|
|
49014
49097
|
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
49015
49098
|
custom_metadata?: {
|
|
49016
49099
|
[x: string]: string | boolean | null;
|
|
@@ -49465,6 +49548,8 @@ export type Routes = {
|
|
|
49465
49548
|
preferred_code?: (string | null) | undefined;
|
|
49466
49549
|
/** Your identifier for the sub-reservation. Must be unique within its reservation. */
|
|
49467
49550
|
sub_reservation_key: string;
|
|
49551
|
+
/** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
|
|
49552
|
+
is_primary?: boolean | undefined;
|
|
49468
49553
|
/** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
|
|
49469
49554
|
custom_metadata?: {
|
|
49470
49555
|
[x: string]: string | boolean | null;
|
|
@@ -100184,10 +100269,14 @@ export type Routes = {
|
|
|
100184
100269
|
parent_reservation_id: string | null;
|
|
100185
100270
|
/** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
|
|
100186
100271
|
parent_reservation_key: string | null;
|
|
100272
|
+
/** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
|
|
100273
|
+
is_primary: boolean | null;
|
|
100187
100274
|
/** Parts of the reservation that each hold their own access, for example one per room. When present, the reservation's spaces are the union of its sub-reservations' spaces. */
|
|
100188
100275
|
sub_reservations: {
|
|
100189
100276
|
sub_reservation_id: string;
|
|
100190
100277
|
sub_reservation_key: string;
|
|
100278
|
+
/** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
|
|
100279
|
+
is_primary: boolean;
|
|
100191
100280
|
name: string | null;
|
|
100192
100281
|
starts_at: string | null;
|
|
100193
100282
|
ends_at: string | null;
|
|
@@ -100297,6 +100386,8 @@ export type Routes = {
|
|
|
100297
100386
|
sub_reservations: {
|
|
100298
100387
|
sub_reservation_id: string;
|
|
100299
100388
|
sub_reservation_key: string;
|
|
100389
|
+
/** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
|
|
100390
|
+
is_primary: boolean;
|
|
100300
100391
|
name: string | null;
|
|
100301
100392
|
starts_at: string | null;
|
|
100302
100393
|
ends_at: string | null;
|
|
@@ -100864,6 +100955,8 @@ export type Routes = {
|
|
|
100864
100955
|
parent_reservation_id: string | null;
|
|
100865
100956
|
/** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
|
|
100866
100957
|
parent_reservation_key: string | null;
|
|
100958
|
+
/** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
|
|
100959
|
+
is_primary: boolean | null;
|
|
100867
100960
|
}[];
|
|
100868
100961
|
};
|
|
100869
100962
|
maxDuration: undefined;
|
|
@@ -170717,6 +170810,15 @@ export type Routes = {
|
|
|
170717
170810
|
created_at?: string | undefined;
|
|
170718
170811
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
170719
170812
|
warning_code: 'being_deleted';
|
|
170813
|
+
} | {
|
|
170814
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
170815
|
+
message: string;
|
|
170816
|
+
/** Date and time at which Seam created the warning. */
|
|
170817
|
+
created_at?: string | undefined;
|
|
170818
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
170819
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
170820
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
170821
|
+
device_unreachable_since: string;
|
|
170720
170822
|
} | {
|
|
170721
170823
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
170722
170824
|
message: string;
|
|
@@ -171122,6 +171224,15 @@ export type Routes = {
|
|
|
171122
171224
|
created_at?: string | undefined;
|
|
171123
171225
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
171124
171226
|
warning_code: 'being_deleted';
|
|
171227
|
+
} | {
|
|
171228
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
171229
|
+
message: string;
|
|
171230
|
+
/** Date and time at which Seam created the warning. */
|
|
171231
|
+
created_at?: string | undefined;
|
|
171232
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
171233
|
+
warning_code: 'device_unreachable_for_extended_period';
|
|
171234
|
+
/** Date and time since which Seam has been unable to reach the device. */
|
|
171235
|
+
device_unreachable_since: string;
|
|
171125
171236
|
} | {
|
|
171126
171237
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
171127
171238
|
message: string;
|
package/package.json
CHANGED
|
@@ -342,6 +342,19 @@ const being_deleted = common_access_code_warning
|
|
|
342
342
|
})
|
|
343
343
|
.describe('Access code is being deleted.')
|
|
344
344
|
|
|
345
|
+
const device_unreachable_for_extended_period = common_access_code_warning
|
|
346
|
+
.extend({
|
|
347
|
+
warning_code: z
|
|
348
|
+
.literal('device_unreachable_for_extended_period')
|
|
349
|
+
.describe(warning_code_description),
|
|
350
|
+
device_unreachable_since: datetime.describe(
|
|
351
|
+
'Date and time since which Seam has been unable to reach the device.',
|
|
352
|
+
),
|
|
353
|
+
})
|
|
354
|
+
.describe(
|
|
355
|
+
"Seam had been unable to reach the device for an extended period when this access code was created, so the code is unlikely to be set until the device reconnects. Check the device's connection. This warning clears automatically when the device comes back online or the code is set on the device.",
|
|
356
|
+
)
|
|
357
|
+
|
|
345
358
|
const unknown_issue_with_access_code = common_access_code_warning
|
|
346
359
|
.extend({
|
|
347
360
|
warning_code: z
|
|
@@ -363,6 +376,7 @@ const access_code_warning = z
|
|
|
363
376
|
management_transferred,
|
|
364
377
|
using_backup_access_code,
|
|
365
378
|
being_deleted,
|
|
379
|
+
device_unreachable_for_extended_period,
|
|
366
380
|
unknown_issue_with_access_code,
|
|
367
381
|
])
|
|
368
382
|
.describe(
|
|
@@ -386,6 +400,8 @@ const _access_code_warning_map = z.object({
|
|
|
386
400
|
management_transferred: management_transferred.optional(),
|
|
387
401
|
using_backup_access_code: using_backup_access_code.optional(),
|
|
388
402
|
being_deleted: being_deleted.optional(),
|
|
403
|
+
device_unreachable_for_extended_period:
|
|
404
|
+
device_unreachable_for_extended_period.optional(),
|
|
389
405
|
unknown_issue_with_access_code: unknown_issue_with_access_code.optional(),
|
|
390
406
|
})
|
|
391
407
|
|
|
@@ -92,6 +92,12 @@ export const sub_reservation_resource = base_access_grant_resource
|
|
|
92
92
|
.describe(
|
|
93
93
|
'Your identifier for the sub-reservation. Must be unique within its reservation.',
|
|
94
94
|
),
|
|
95
|
+
is_primary: z
|
|
96
|
+
.boolean()
|
|
97
|
+
.optional()
|
|
98
|
+
.describe(
|
|
99
|
+
"Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
|
|
100
|
+
),
|
|
95
101
|
custom_metadata: custom_metadata_input
|
|
96
102
|
.optional()
|
|
97
103
|
.describe(
|
|
@@ -1715,6 +1715,41 @@ const openapi: OpenAPISpec = {
|
|
|
1715
1715
|
required: ['message', 'warning_code'],
|
|
1716
1716
|
type: 'object',
|
|
1717
1717
|
},
|
|
1718
|
+
{
|
|
1719
|
+
description:
|
|
1720
|
+
"Seam had been unable to reach the device for an extended period when this access code was created, so the code is unlikely to be set until the device reconnects. Check the device's connection. This warning clears automatically when the device comes back online or the code is set on the device.",
|
|
1721
|
+
properties: {
|
|
1722
|
+
created_at: {
|
|
1723
|
+
description:
|
|
1724
|
+
'Date and time at which Seam created the warning.',
|
|
1725
|
+
format: 'date-time',
|
|
1726
|
+
type: 'string',
|
|
1727
|
+
},
|
|
1728
|
+
device_unreachable_since: {
|
|
1729
|
+
description:
|
|
1730
|
+
'Date and time since which Seam has been unable to reach the device.',
|
|
1731
|
+
format: 'date-time',
|
|
1732
|
+
type: 'string',
|
|
1733
|
+
},
|
|
1734
|
+
message: {
|
|
1735
|
+
description:
|
|
1736
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
1737
|
+
type: 'string',
|
|
1738
|
+
},
|
|
1739
|
+
warning_code: {
|
|
1740
|
+
description:
|
|
1741
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
1742
|
+
enum: ['device_unreachable_for_extended_period'],
|
|
1743
|
+
type: 'string',
|
|
1744
|
+
},
|
|
1745
|
+
},
|
|
1746
|
+
required: [
|
|
1747
|
+
'message',
|
|
1748
|
+
'warning_code',
|
|
1749
|
+
'device_unreachable_since',
|
|
1750
|
+
],
|
|
1751
|
+
type: 'object',
|
|
1752
|
+
},
|
|
1718
1753
|
{
|
|
1719
1754
|
description:
|
|
1720
1755
|
'An unknown issue occurred with the access code.',
|
|
@@ -37361,6 +37396,41 @@ const openapi: OpenAPISpec = {
|
|
|
37361
37396
|
required: ['message', 'warning_code'],
|
|
37362
37397
|
type: 'object',
|
|
37363
37398
|
},
|
|
37399
|
+
{
|
|
37400
|
+
description:
|
|
37401
|
+
"Seam had been unable to reach the device for an extended period when this access code was created, so the code is unlikely to be set until the device reconnects. Check the device's connection. This warning clears automatically when the device comes back online or the code is set on the device.",
|
|
37402
|
+
properties: {
|
|
37403
|
+
created_at: {
|
|
37404
|
+
description:
|
|
37405
|
+
'Date and time at which Seam created the warning.',
|
|
37406
|
+
format: 'date-time',
|
|
37407
|
+
type: 'string',
|
|
37408
|
+
},
|
|
37409
|
+
device_unreachable_since: {
|
|
37410
|
+
description:
|
|
37411
|
+
'Date and time since which Seam has been unable to reach the device.',
|
|
37412
|
+
format: 'date-time',
|
|
37413
|
+
type: 'string',
|
|
37414
|
+
},
|
|
37415
|
+
message: {
|
|
37416
|
+
description:
|
|
37417
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
37418
|
+
type: 'string',
|
|
37419
|
+
},
|
|
37420
|
+
warning_code: {
|
|
37421
|
+
description:
|
|
37422
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
37423
|
+
enum: ['device_unreachable_for_extended_period'],
|
|
37424
|
+
type: 'string',
|
|
37425
|
+
},
|
|
37426
|
+
},
|
|
37427
|
+
required: [
|
|
37428
|
+
'message',
|
|
37429
|
+
'warning_code',
|
|
37430
|
+
'device_unreachable_since',
|
|
37431
|
+
],
|
|
37432
|
+
type: 'object',
|
|
37433
|
+
},
|
|
37364
37434
|
{
|
|
37365
37435
|
description:
|
|
37366
37436
|
'An unknown issue occurred with the access code.',
|
|
@@ -53665,6 +53735,11 @@ const openapi: OpenAPISpec = {
|
|
|
53665
53735
|
'Guest key associated with the access grant.',
|
|
53666
53736
|
type: 'string',
|
|
53667
53737
|
},
|
|
53738
|
+
is_primary: {
|
|
53739
|
+
description:
|
|
53740
|
+
"Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
|
|
53741
|
+
type: 'boolean',
|
|
53742
|
+
},
|
|
53668
53743
|
listing_keys: {
|
|
53669
53744
|
description:
|
|
53670
53745
|
'Listing keys associated with the access grant.',
|
|
@@ -54982,6 +55057,11 @@ const openapi: OpenAPISpec = {
|
|
|
54982
55057
|
'Guest key associated with the access grant.',
|
|
54983
55058
|
type: 'string',
|
|
54984
55059
|
},
|
|
55060
|
+
is_primary: {
|
|
55061
|
+
description:
|
|
55062
|
+
"Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
|
|
55063
|
+
type: 'boolean',
|
|
55064
|
+
},
|
|
54985
55065
|
listing_keys: {
|
|
54986
55066
|
description:
|
|
54987
55067
|
'Listing keys associated with the access grant.',
|
|
@@ -69969,6 +70049,12 @@ const openapi: OpenAPISpec = {
|
|
|
69969
70049
|
type: 'object',
|
|
69970
70050
|
},
|
|
69971
70051
|
guest_name: { nullable: true, type: 'string' },
|
|
70052
|
+
is_primary: {
|
|
70053
|
+
description:
|
|
70054
|
+
"Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.",
|
|
70055
|
+
nullable: true,
|
|
70056
|
+
type: 'boolean',
|
|
70057
|
+
},
|
|
69972
70058
|
is_resource_syncing: { type: 'boolean' },
|
|
69973
70059
|
last_automation_result: {
|
|
69974
70060
|
nullable: true,
|
|
@@ -70070,6 +70156,11 @@ const openapi: OpenAPISpec = {
|
|
|
70070
70156
|
nullable: true,
|
|
70071
70157
|
type: 'string',
|
|
70072
70158
|
},
|
|
70159
|
+
is_primary: {
|
|
70160
|
+
description:
|
|
70161
|
+
"Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.",
|
|
70162
|
+
type: 'boolean',
|
|
70163
|
+
},
|
|
70073
70164
|
is_resource_syncing: { type: 'boolean' },
|
|
70074
70165
|
name: { nullable: true, type: 'string' },
|
|
70075
70166
|
spaces: {
|
|
@@ -70102,6 +70193,7 @@ const openapi: OpenAPISpec = {
|
|
|
70102
70193
|
required: [
|
|
70103
70194
|
'sub_reservation_id',
|
|
70104
70195
|
'sub_reservation_key',
|
|
70196
|
+
'is_primary',
|
|
70105
70197
|
'name',
|
|
70106
70198
|
'starts_at',
|
|
70107
70199
|
'ends_at',
|
|
@@ -70132,6 +70224,7 @@ const openapi: OpenAPISpec = {
|
|
|
70132
70224
|
'last_automation_result',
|
|
70133
70225
|
'parent_reservation_id',
|
|
70134
70226
|
'parent_reservation_key',
|
|
70227
|
+
'is_primary',
|
|
70135
70228
|
'sub_reservations',
|
|
70136
70229
|
],
|
|
70137
70230
|
type: 'object',
|
|
@@ -70468,6 +70561,11 @@ const openapi: OpenAPISpec = {
|
|
|
70468
70561
|
nullable: true,
|
|
70469
70562
|
type: 'string',
|
|
70470
70563
|
},
|
|
70564
|
+
is_primary: {
|
|
70565
|
+
description:
|
|
70566
|
+
"Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.",
|
|
70567
|
+
type: 'boolean',
|
|
70568
|
+
},
|
|
70471
70569
|
is_resource_syncing: { type: 'boolean' },
|
|
70472
70570
|
name: { nullable: true, type: 'string' },
|
|
70473
70571
|
spaces: {
|
|
@@ -70500,6 +70598,7 @@ const openapi: OpenAPISpec = {
|
|
|
70500
70598
|
required: [
|
|
70501
70599
|
'sub_reservation_id',
|
|
70502
70600
|
'sub_reservation_key',
|
|
70601
|
+
'is_primary',
|
|
70503
70602
|
'name',
|
|
70504
70603
|
'starts_at',
|
|
70505
70604
|
'ends_at',
|
|
@@ -71263,6 +71362,12 @@ const openapi: OpenAPISpec = {
|
|
|
71263
71362
|
},
|
|
71264
71363
|
guest_name: { nullable: true, type: 'string' },
|
|
71265
71364
|
has_issued_access: { type: 'boolean' },
|
|
71365
|
+
is_primary: {
|
|
71366
|
+
description:
|
|
71367
|
+
"Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.",
|
|
71368
|
+
nullable: true,
|
|
71369
|
+
type: 'boolean',
|
|
71370
|
+
},
|
|
71266
71371
|
last_automation_result: {
|
|
71267
71372
|
nullable: true,
|
|
71268
71373
|
properties: {
|
|
@@ -71343,6 +71448,7 @@ const openapi: OpenAPISpec = {
|
|
|
71343
71448
|
'last_automation_result',
|
|
71344
71449
|
'parent_reservation_id',
|
|
71345
71450
|
'parent_reservation_key',
|
|
71451
|
+
'is_primary',
|
|
71346
71452
|
],
|
|
71347
71453
|
type: 'object',
|
|
71348
71454
|
},
|