@seamapi/types 1.1118.0 → 1.1120.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-grants/access-grant.d.ts +74 -15
- package/lib/seam/connect/models/access-grants/access-grant.js +12 -2
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +96 -0
- package/lib/seam/connect/models/access-grants/access-method.js +15 -0
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +43 -0
- package/lib/seam/connect/models/action-attempts/assign-credential.d.ts +43 -0
- package/lib/seam/connect/openapi.js +143 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +804 -238
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +16 -2
- package/src/lib/seam/connect/models/access-grants/access-method.ts +18 -0
- package/src/lib/seam/connect/openapi.ts +169 -6
- package/src/lib/seam/connect/route-types.ts +637 -22
package/package.json
CHANGED
|
@@ -154,7 +154,17 @@ const requested_code_unavailable = common_access_grant_warning
|
|
|
154
154
|
device_id: z
|
|
155
155
|
.string()
|
|
156
156
|
.uuid()
|
|
157
|
-
.
|
|
157
|
+
.optional()
|
|
158
|
+
.describe(
|
|
159
|
+
'ID of the device where the requested code was unavailable. Present when the code was set directly on a device.',
|
|
160
|
+
),
|
|
161
|
+
access_method_id: z
|
|
162
|
+
.string()
|
|
163
|
+
.uuid()
|
|
164
|
+
.optional()
|
|
165
|
+
.describe(
|
|
166
|
+
'ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.',
|
|
167
|
+
),
|
|
158
168
|
original_code: z
|
|
159
169
|
.string()
|
|
160
170
|
.describe('The originally requested PIN code that was unavailable.'),
|
|
@@ -163,7 +173,7 @@ const requested_code_unavailable = common_access_grant_warning
|
|
|
163
173
|
.describe('The new PIN code that was assigned instead.'),
|
|
164
174
|
})
|
|
165
175
|
.describe(
|
|
166
|
-
'Indicates that the requested PIN code was already in use on a device,
|
|
176
|
+
'Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.',
|
|
167
177
|
)
|
|
168
178
|
|
|
169
179
|
const device_does_not_support_access_codes = common_access_grant_warning
|
|
@@ -228,6 +238,10 @@ const _access_grant_warning_map = z.object({
|
|
|
228
238
|
.record(z.string().uuid(), requested_code_unavailable)
|
|
229
239
|
.optional()
|
|
230
240
|
.nullable(),
|
|
241
|
+
requested_code_unavailable_by_access_method: z
|
|
242
|
+
.record(z.string().uuid(), requested_code_unavailable)
|
|
243
|
+
.optional()
|
|
244
|
+
.nullable(),
|
|
231
245
|
device_does_not_support_access_codes: z
|
|
232
246
|
.record(z.string().uuid(), device_does_not_support_access_codes)
|
|
233
247
|
.optional()
|
|
@@ -81,6 +81,20 @@ const user_identity_missing_phone_number_warning = common_access_method_warning
|
|
|
81
81
|
"Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://www.seam.co/docs/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.",
|
|
82
82
|
)
|
|
83
83
|
|
|
84
|
+
const requested_code_unavailable_warning = common_access_method_warning
|
|
85
|
+
.extend({
|
|
86
|
+
warning_code: z
|
|
87
|
+
.literal('requested_code_unavailable')
|
|
88
|
+
.describe(warning_code_description),
|
|
89
|
+
original_code: z
|
|
90
|
+
.string()
|
|
91
|
+
.describe('The originally requested PIN code that could not be used.'),
|
|
92
|
+
new_code: z.string().describe('The PIN code that was assigned instead.'),
|
|
93
|
+
})
|
|
94
|
+
.describe(
|
|
95
|
+
"Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.",
|
|
96
|
+
)
|
|
97
|
+
|
|
84
98
|
const access_method_warning = z
|
|
85
99
|
.discriminatedUnion('warning_code', [
|
|
86
100
|
being_deleted,
|
|
@@ -89,6 +103,7 @@ const access_method_warning = z
|
|
|
89
103
|
delay_in_issuing_warning,
|
|
90
104
|
user_identity_missing_email_address_warning,
|
|
91
105
|
user_identity_missing_phone_number_warning,
|
|
106
|
+
requested_code_unavailable_warning,
|
|
92
107
|
])
|
|
93
108
|
.describe(
|
|
94
109
|
'Warning associated with the [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant).',
|
|
@@ -106,6 +121,9 @@ const _access_method_warning_map = z.object({
|
|
|
106
121
|
user_identity_missing_phone_number: user_identity_missing_phone_number_warning
|
|
107
122
|
.optional()
|
|
108
123
|
.nullable(),
|
|
124
|
+
requested_code_unavailable: requested_code_unavailable_warning
|
|
125
|
+
.optional()
|
|
126
|
+
.nullable(),
|
|
109
127
|
})
|
|
110
128
|
|
|
111
129
|
export type AccessMethodWarningMap = z.infer<typeof _access_method_warning_map>
|
|
@@ -2287,8 +2287,14 @@ const openapi: OpenAPISpec = {
|
|
|
2287
2287
|
},
|
|
2288
2288
|
{
|
|
2289
2289
|
description:
|
|
2290
|
-
'Indicates that the requested PIN code was already in use on a device,
|
|
2290
|
+
'Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.',
|
|
2291
2291
|
properties: {
|
|
2292
|
+
access_method_id: {
|
|
2293
|
+
description:
|
|
2294
|
+
'ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.',
|
|
2295
|
+
format: 'uuid',
|
|
2296
|
+
type: 'string',
|
|
2297
|
+
},
|
|
2292
2298
|
created_at: {
|
|
2293
2299
|
description:
|
|
2294
2300
|
'Date and time at which Seam created the warning.',
|
|
@@ -2297,7 +2303,7 @@ const openapi: OpenAPISpec = {
|
|
|
2297
2303
|
},
|
|
2298
2304
|
device_id: {
|
|
2299
2305
|
description:
|
|
2300
|
-
'ID of the device where the requested code was unavailable.',
|
|
2306
|
+
'ID of the device where the requested code was unavailable. Present when the code was set directly on a device.',
|
|
2301
2307
|
format: 'uuid',
|
|
2302
2308
|
type: 'string',
|
|
2303
2309
|
},
|
|
@@ -2327,7 +2333,6 @@ const openapi: OpenAPISpec = {
|
|
|
2327
2333
|
'created_at',
|
|
2328
2334
|
'message',
|
|
2329
2335
|
'warning_code',
|
|
2330
|
-
'device_id',
|
|
2331
2336
|
'original_code',
|
|
2332
2337
|
'new_code',
|
|
2333
2338
|
],
|
|
@@ -2973,6 +2978,46 @@ const openapi: OpenAPISpec = {
|
|
|
2973
2978
|
required: ['created_at', 'message', 'warning_code'],
|
|
2974
2979
|
type: 'object',
|
|
2975
2980
|
},
|
|
2981
|
+
{
|
|
2982
|
+
description:
|
|
2983
|
+
"Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.",
|
|
2984
|
+
properties: {
|
|
2985
|
+
created_at: {
|
|
2986
|
+
description:
|
|
2987
|
+
'Date and time at which Seam created the warning.',
|
|
2988
|
+
format: 'date-time',
|
|
2989
|
+
type: 'string',
|
|
2990
|
+
},
|
|
2991
|
+
message: {
|
|
2992
|
+
description:
|
|
2993
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2994
|
+
type: 'string',
|
|
2995
|
+
},
|
|
2996
|
+
new_code: {
|
|
2997
|
+
description: 'The PIN code that was assigned instead.',
|
|
2998
|
+
type: 'string',
|
|
2999
|
+
},
|
|
3000
|
+
original_code: {
|
|
3001
|
+
description:
|
|
3002
|
+
'The originally requested PIN code that could not be used.',
|
|
3003
|
+
type: 'string',
|
|
3004
|
+
},
|
|
3005
|
+
warning_code: {
|
|
3006
|
+
description:
|
|
3007
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
3008
|
+
enum: ['requested_code_unavailable'],
|
|
3009
|
+
type: 'string',
|
|
3010
|
+
},
|
|
3011
|
+
},
|
|
3012
|
+
required: [
|
|
3013
|
+
'created_at',
|
|
3014
|
+
'message',
|
|
3015
|
+
'warning_code',
|
|
3016
|
+
'original_code',
|
|
3017
|
+
'new_code',
|
|
3018
|
+
],
|
|
3019
|
+
type: 'object',
|
|
3020
|
+
},
|
|
2976
3021
|
],
|
|
2977
3022
|
},
|
|
2978
3023
|
type: 'array',
|
|
@@ -10507,6 +10552,47 @@ const openapi: OpenAPISpec = {
|
|
|
10507
10552
|
required: ['created_at', 'message', 'warning_code'],
|
|
10508
10553
|
type: 'object',
|
|
10509
10554
|
},
|
|
10555
|
+
{
|
|
10556
|
+
description:
|
|
10557
|
+
"Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.",
|
|
10558
|
+
properties: {
|
|
10559
|
+
created_at: {
|
|
10560
|
+
description:
|
|
10561
|
+
'Date and time at which Seam created the warning.',
|
|
10562
|
+
format: 'date-time',
|
|
10563
|
+
type: 'string',
|
|
10564
|
+
},
|
|
10565
|
+
message: {
|
|
10566
|
+
description:
|
|
10567
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
10568
|
+
type: 'string',
|
|
10569
|
+
},
|
|
10570
|
+
new_code: {
|
|
10571
|
+
description:
|
|
10572
|
+
'The PIN code that was assigned instead.',
|
|
10573
|
+
type: 'string',
|
|
10574
|
+
},
|
|
10575
|
+
original_code: {
|
|
10576
|
+
description:
|
|
10577
|
+
'The originally requested PIN code that could not be used.',
|
|
10578
|
+
type: 'string',
|
|
10579
|
+
},
|
|
10580
|
+
warning_code: {
|
|
10581
|
+
description:
|
|
10582
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
10583
|
+
enum: ['requested_code_unavailable'],
|
|
10584
|
+
type: 'string',
|
|
10585
|
+
},
|
|
10586
|
+
},
|
|
10587
|
+
required: [
|
|
10588
|
+
'created_at',
|
|
10589
|
+
'message',
|
|
10590
|
+
'warning_code',
|
|
10591
|
+
'original_code',
|
|
10592
|
+
'new_code',
|
|
10593
|
+
],
|
|
10594
|
+
type: 'object',
|
|
10595
|
+
},
|
|
10510
10596
|
],
|
|
10511
10597
|
},
|
|
10512
10598
|
type: 'array',
|
|
@@ -36880,8 +36966,14 @@ const openapi: OpenAPISpec = {
|
|
|
36880
36966
|
},
|
|
36881
36967
|
{
|
|
36882
36968
|
description:
|
|
36883
|
-
'Indicates that the requested PIN code was already in use on a device,
|
|
36969
|
+
'Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.',
|
|
36884
36970
|
properties: {
|
|
36971
|
+
access_method_id: {
|
|
36972
|
+
description:
|
|
36973
|
+
'ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.',
|
|
36974
|
+
format: 'uuid',
|
|
36975
|
+
type: 'string',
|
|
36976
|
+
},
|
|
36885
36977
|
created_at: {
|
|
36886
36978
|
description:
|
|
36887
36979
|
'Date and time at which Seam created the warning.',
|
|
@@ -36890,7 +36982,7 @@ const openapi: OpenAPISpec = {
|
|
|
36890
36982
|
},
|
|
36891
36983
|
device_id: {
|
|
36892
36984
|
description:
|
|
36893
|
-
'ID of the device where the requested code was unavailable.',
|
|
36985
|
+
'ID of the device where the requested code was unavailable. Present when the code was set directly on a device.',
|
|
36894
36986
|
format: 'uuid',
|
|
36895
36987
|
type: 'string',
|
|
36896
36988
|
},
|
|
@@ -36920,7 +37012,6 @@ const openapi: OpenAPISpec = {
|
|
|
36920
37012
|
'created_at',
|
|
36921
37013
|
'message',
|
|
36922
37014
|
'warning_code',
|
|
36923
|
-
'device_id',
|
|
36924
37015
|
'original_code',
|
|
36925
37016
|
'new_code',
|
|
36926
37017
|
],
|
|
@@ -37547,6 +37638,46 @@ const openapi: OpenAPISpec = {
|
|
|
37547
37638
|
required: ['created_at', 'message', 'warning_code'],
|
|
37548
37639
|
type: 'object',
|
|
37549
37640
|
},
|
|
37641
|
+
{
|
|
37642
|
+
description:
|
|
37643
|
+
"Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.",
|
|
37644
|
+
properties: {
|
|
37645
|
+
created_at: {
|
|
37646
|
+
description:
|
|
37647
|
+
'Date and time at which Seam created the warning.',
|
|
37648
|
+
format: 'date-time',
|
|
37649
|
+
type: 'string',
|
|
37650
|
+
},
|
|
37651
|
+
message: {
|
|
37652
|
+
description:
|
|
37653
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
37654
|
+
type: 'string',
|
|
37655
|
+
},
|
|
37656
|
+
new_code: {
|
|
37657
|
+
description: 'The PIN code that was assigned instead.',
|
|
37658
|
+
type: 'string',
|
|
37659
|
+
},
|
|
37660
|
+
original_code: {
|
|
37661
|
+
description:
|
|
37662
|
+
'The originally requested PIN code that could not be used.',
|
|
37663
|
+
type: 'string',
|
|
37664
|
+
},
|
|
37665
|
+
warning_code: {
|
|
37666
|
+
description:
|
|
37667
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
37668
|
+
enum: ['requested_code_unavailable'],
|
|
37669
|
+
type: 'string',
|
|
37670
|
+
},
|
|
37671
|
+
},
|
|
37672
|
+
required: [
|
|
37673
|
+
'created_at',
|
|
37674
|
+
'message',
|
|
37675
|
+
'warning_code',
|
|
37676
|
+
'original_code',
|
|
37677
|
+
'new_code',
|
|
37678
|
+
],
|
|
37679
|
+
type: 'object',
|
|
37680
|
+
},
|
|
37550
37681
|
],
|
|
37551
37682
|
},
|
|
37552
37683
|
type: 'array',
|
|
@@ -63095,6 +63226,14 @@ const openapi: OpenAPISpec = {
|
|
|
63095
63226
|
type: 'string',
|
|
63096
63227
|
},
|
|
63097
63228
|
prefer_guest_phone_last4_as_code: {
|
|
63229
|
+
deprecated: true,
|
|
63230
|
+
type: 'boolean',
|
|
63231
|
+
'x-deprecated':
|
|
63232
|
+
'Use `prefer_guest_phone_last_digits_as_code`.',
|
|
63233
|
+
},
|
|
63234
|
+
prefer_guest_phone_last_digits_as_code: {
|
|
63235
|
+
description:
|
|
63236
|
+
"Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.",
|
|
63098
63237
|
type: 'boolean',
|
|
63099
63238
|
},
|
|
63100
63239
|
},
|
|
@@ -63486,6 +63625,14 @@ const openapi: OpenAPISpec = {
|
|
|
63486
63625
|
type: 'string',
|
|
63487
63626
|
},
|
|
63488
63627
|
prefer_guest_phone_last4_as_code: {
|
|
63628
|
+
deprecated: true,
|
|
63629
|
+
type: 'boolean',
|
|
63630
|
+
'x-deprecated':
|
|
63631
|
+
'Use `prefer_guest_phone_last_digits_as_code`.',
|
|
63632
|
+
},
|
|
63633
|
+
prefer_guest_phone_last_digits_as_code: {
|
|
63634
|
+
description:
|
|
63635
|
+
"Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.",
|
|
63489
63636
|
type: 'boolean',
|
|
63490
63637
|
},
|
|
63491
63638
|
},
|
|
@@ -64933,6 +65080,14 @@ const openapi: OpenAPISpec = {
|
|
|
64933
65080
|
type: 'string',
|
|
64934
65081
|
},
|
|
64935
65082
|
prefer_guest_phone_last4_as_code: {
|
|
65083
|
+
deprecated: true,
|
|
65084
|
+
type: 'boolean',
|
|
65085
|
+
'x-deprecated':
|
|
65086
|
+
'Use `prefer_guest_phone_last_digits_as_code`.',
|
|
65087
|
+
},
|
|
65088
|
+
prefer_guest_phone_last_digits_as_code: {
|
|
65089
|
+
description:
|
|
65090
|
+
"Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.",
|
|
64936
65091
|
type: 'boolean',
|
|
64937
65092
|
},
|
|
64938
65093
|
},
|
|
@@ -65341,6 +65496,14 @@ const openapi: OpenAPISpec = {
|
|
|
65341
65496
|
type: 'string',
|
|
65342
65497
|
},
|
|
65343
65498
|
prefer_guest_phone_last4_as_code: {
|
|
65499
|
+
deprecated: true,
|
|
65500
|
+
type: 'boolean',
|
|
65501
|
+
'x-deprecated':
|
|
65502
|
+
'Use `prefer_guest_phone_last_digits_as_code`.',
|
|
65503
|
+
},
|
|
65504
|
+
prefer_guest_phone_last_digits_as_code: {
|
|
65505
|
+
description:
|
|
65506
|
+
"Use the last digits of the guest's phone number as the PIN code. The code length is one that all locks in the reservation's spaces support, and digits that form a weak PIN, such as 0303, 1111, or 1234, are skipped in favor of a longer code.",
|
|
65344
65507
|
type: 'boolean',
|
|
65345
65508
|
},
|
|
65346
65509
|
},
|