@seamapi/types 1.1119.0 → 1.1121.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 +201 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +816 -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 +225 -6
- package/src/lib/seam/connect/route-types.ts +648 -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',
|
|
@@ -63439,6 +63570,94 @@ const openapi: OpenAPISpec = {
|
|
|
63439
63570
|
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
63440
63571
|
},
|
|
63441
63572
|
},
|
|
63573
|
+
'/seam/customer/v1/automations/get_guest_phone_last4_usage': {
|
|
63574
|
+
get: {
|
|
63575
|
+
description:
|
|
63576
|
+
'Lists the automations in the workspace, workspace-level and per-customer, that still use the deprecated prefer_guest_phone_last4_as_code setting.',
|
|
63577
|
+
operationId: 'seamCustomerV1AutomationsGetGuestPhoneLast4UsageGet',
|
|
63578
|
+
parameters: [],
|
|
63579
|
+
responses: {
|
|
63580
|
+
'200': {
|
|
63581
|
+
content: {
|
|
63582
|
+
'application/json': {
|
|
63583
|
+
schema: {
|
|
63584
|
+
properties: {
|
|
63585
|
+
customer_count: {
|
|
63586
|
+
description:
|
|
63587
|
+
'Number of customers whose automation uses prefer_guest_phone_last4_as_code.',
|
|
63588
|
+
type: 'integer',
|
|
63589
|
+
},
|
|
63590
|
+
is_used_by_workspace: {
|
|
63591
|
+
description:
|
|
63592
|
+
'Whether the workspace-level automation uses prefer_guest_phone_last4_as_code.',
|
|
63593
|
+
type: 'boolean',
|
|
63594
|
+
},
|
|
63595
|
+
ok: { type: 'boolean' },
|
|
63596
|
+
},
|
|
63597
|
+
required: ['is_used_by_workspace', 'customer_count', 'ok'],
|
|
63598
|
+
type: 'object',
|
|
63599
|
+
},
|
|
63600
|
+
},
|
|
63601
|
+
},
|
|
63602
|
+
description: 'OK',
|
|
63603
|
+
},
|
|
63604
|
+
'400': { description: 'Bad Request' },
|
|
63605
|
+
'401': { description: 'Unauthorized' },
|
|
63606
|
+
},
|
|
63607
|
+
security: [{ console_session_with_workspace: [] }, { api_key: [] }],
|
|
63608
|
+
summary: '/seam/customer/v1/automations/get_guest_phone_last4_usage',
|
|
63609
|
+
tags: [],
|
|
63610
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'],
|
|
63611
|
+
'x-fern-sdk-method-name': 'get_guest_phone_last4_usage',
|
|
63612
|
+
'x-response-key': null,
|
|
63613
|
+
'x-title': 'Get Guest Phone Last 4 Usage',
|
|
63614
|
+
'x-undocumented': 'Internal endpoint for the console.',
|
|
63615
|
+
},
|
|
63616
|
+
},
|
|
63617
|
+
'/seam/customer/v1/automations/switch_to_guest_phone_last_digits': {
|
|
63618
|
+
post: {
|
|
63619
|
+
description:
|
|
63620
|
+
'Switches every automation in the workspace, workspace-level and per-customer, from the deprecated prefer_guest_phone_last4_as_code setting to prefer_guest_phone_last_digits_as_code.',
|
|
63621
|
+
operationId:
|
|
63622
|
+
'seamCustomerV1AutomationsSwitchToGuestPhoneLastDigitsPost',
|
|
63623
|
+
requestBody: {
|
|
63624
|
+
content: {
|
|
63625
|
+
'application/json': { schema: { properties: {}, type: 'object' } },
|
|
63626
|
+
},
|
|
63627
|
+
},
|
|
63628
|
+
responses: {
|
|
63629
|
+
'200': {
|
|
63630
|
+
content: {
|
|
63631
|
+
'application/json': {
|
|
63632
|
+
schema: {
|
|
63633
|
+
properties: {
|
|
63634
|
+
ok: { type: 'boolean' },
|
|
63635
|
+
switched_count: {
|
|
63636
|
+
description: 'Number of automations that were switched.',
|
|
63637
|
+
type: 'integer',
|
|
63638
|
+
},
|
|
63639
|
+
},
|
|
63640
|
+
required: ['switched_count', 'ok'],
|
|
63641
|
+
type: 'object',
|
|
63642
|
+
},
|
|
63643
|
+
},
|
|
63644
|
+
},
|
|
63645
|
+
description: 'OK',
|
|
63646
|
+
},
|
|
63647
|
+
'400': { description: 'Bad Request' },
|
|
63648
|
+
'401': { description: 'Unauthorized' },
|
|
63649
|
+
},
|
|
63650
|
+
security: [{ console_session_with_workspace: [] }, { api_key: [] }],
|
|
63651
|
+
summary:
|
|
63652
|
+
'/seam/customer/v1/automations/switch_to_guest_phone_last_digits',
|
|
63653
|
+
tags: [],
|
|
63654
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'],
|
|
63655
|
+
'x-fern-sdk-method-name': 'switch_to_guest_phone_last_digits',
|
|
63656
|
+
'x-response-key': null,
|
|
63657
|
+
'x-title': 'Switch to Guest Phone Last Digits',
|
|
63658
|
+
'x-undocumented': 'Internal endpoint for the console.',
|
|
63659
|
+
},
|
|
63660
|
+
},
|
|
63442
63661
|
'/seam/customer/v1/automations/update': {
|
|
63443
63662
|
patch: {
|
|
63444
63663
|
description:
|