@seamapi/types 1.1058.0 → 1.1060.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-method.d.ts +132 -0
- package/lib/seam/connect/models/access-grants/access-method.js +20 -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 +58 -0
- package/lib/seam/connect/models/action-attempts/assign-credential.d.ts +58 -0
- package/lib/seam/connect/openapi.js +135 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +576 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +27 -0
- package/src/lib/seam/connect/openapi.ts +160 -0
- package/src/lib/seam/connect/route-types.ts +658 -0
package/package.json
CHANGED
|
@@ -61,12 +61,34 @@ const delay_in_issuing_warning = common_access_method_warning
|
|
|
61
61
|
'Indicates that Seam has not yet issued this [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant), even though its access grant is about to begin, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.',
|
|
62
62
|
)
|
|
63
63
|
|
|
64
|
+
const user_identity_missing_email_address_warning = common_access_method_warning
|
|
65
|
+
.extend({
|
|
66
|
+
warning_code: z
|
|
67
|
+
.literal('user_identity_missing_email_address')
|
|
68
|
+
.describe(warning_code_description),
|
|
69
|
+
})
|
|
70
|
+
.describe(
|
|
71
|
+
"Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
const user_identity_missing_phone_number_warning = common_access_method_warning
|
|
75
|
+
.extend({
|
|
76
|
+
warning_code: z
|
|
77
|
+
.literal('user_identity_missing_phone_number')
|
|
78
|
+
.describe(warning_code_description),
|
|
79
|
+
})
|
|
80
|
+
.describe(
|
|
81
|
+
"Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/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
|
+
)
|
|
83
|
+
|
|
64
84
|
const access_method_warning = z
|
|
65
85
|
.discriminatedUnion('warning_code', [
|
|
66
86
|
being_deleted,
|
|
67
87
|
updating_access_times_warning,
|
|
68
88
|
pulled_backup_access_code_warning,
|
|
69
89
|
delay_in_issuing_warning,
|
|
90
|
+
user_identity_missing_email_address_warning,
|
|
91
|
+
user_identity_missing_phone_number_warning,
|
|
70
92
|
])
|
|
71
93
|
.describe(
|
|
72
94
|
'Warning associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).',
|
|
@@ -79,6 +101,11 @@ const _access_method_warning_map = z.object({
|
|
|
79
101
|
.optional()
|
|
80
102
|
.nullable(),
|
|
81
103
|
delay_in_issuing: delay_in_issuing_warning.optional().nullable(),
|
|
104
|
+
user_identity_missing_email_address:
|
|
105
|
+
user_identity_missing_email_address_warning.optional().nullable(),
|
|
106
|
+
user_identity_missing_phone_number: user_identity_missing_phone_number_warning
|
|
107
|
+
.optional()
|
|
108
|
+
.nullable(),
|
|
82
109
|
})
|
|
83
110
|
|
|
84
111
|
export type AccessMethodWarningMap = z.infer<typeof _access_method_warning_map>
|
|
@@ -2846,6 +2846,56 @@ const openapi: OpenAPISpec = {
|
|
|
2846
2846
|
required: ['created_at', 'message', 'warning_code'],
|
|
2847
2847
|
type: 'object',
|
|
2848
2848
|
},
|
|
2849
|
+
{
|
|
2850
|
+
description:
|
|
2851
|
+
"Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
|
|
2852
|
+
properties: {
|
|
2853
|
+
created_at: {
|
|
2854
|
+
description:
|
|
2855
|
+
'Date and time at which Seam created the warning.',
|
|
2856
|
+
format: 'date-time',
|
|
2857
|
+
type: 'string',
|
|
2858
|
+
},
|
|
2859
|
+
message: {
|
|
2860
|
+
description:
|
|
2861
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2862
|
+
type: 'string',
|
|
2863
|
+
},
|
|
2864
|
+
warning_code: {
|
|
2865
|
+
description:
|
|
2866
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2867
|
+
enum: ['user_identity_missing_email_address'],
|
|
2868
|
+
type: 'string',
|
|
2869
|
+
},
|
|
2870
|
+
},
|
|
2871
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
2872
|
+
type: 'object',
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
description:
|
|
2876
|
+
"Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/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.",
|
|
2877
|
+
properties: {
|
|
2878
|
+
created_at: {
|
|
2879
|
+
description:
|
|
2880
|
+
'Date and time at which Seam created the warning.',
|
|
2881
|
+
format: 'date-time',
|
|
2882
|
+
type: 'string',
|
|
2883
|
+
},
|
|
2884
|
+
message: {
|
|
2885
|
+
description:
|
|
2886
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2887
|
+
type: 'string',
|
|
2888
|
+
},
|
|
2889
|
+
warning_code: {
|
|
2890
|
+
description:
|
|
2891
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2892
|
+
enum: ['user_identity_missing_phone_number'],
|
|
2893
|
+
type: 'string',
|
|
2894
|
+
},
|
|
2895
|
+
},
|
|
2896
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
2897
|
+
type: 'object',
|
|
2898
|
+
},
|
|
2849
2899
|
],
|
|
2850
2900
|
},
|
|
2851
2901
|
type: 'array',
|
|
@@ -10241,6 +10291,56 @@ const openapi: OpenAPISpec = {
|
|
|
10241
10291
|
required: ['created_at', 'message', 'warning_code'],
|
|
10242
10292
|
type: 'object',
|
|
10243
10293
|
},
|
|
10294
|
+
{
|
|
10295
|
+
description:
|
|
10296
|
+
"Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
|
|
10297
|
+
properties: {
|
|
10298
|
+
created_at: {
|
|
10299
|
+
description:
|
|
10300
|
+
'Date and time at which Seam created the warning.',
|
|
10301
|
+
format: 'date-time',
|
|
10302
|
+
type: 'string',
|
|
10303
|
+
},
|
|
10304
|
+
message: {
|
|
10305
|
+
description:
|
|
10306
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
10307
|
+
type: 'string',
|
|
10308
|
+
},
|
|
10309
|
+
warning_code: {
|
|
10310
|
+
description:
|
|
10311
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
10312
|
+
enum: ['user_identity_missing_email_address'],
|
|
10313
|
+
type: 'string',
|
|
10314
|
+
},
|
|
10315
|
+
},
|
|
10316
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
10317
|
+
type: 'object',
|
|
10318
|
+
},
|
|
10319
|
+
{
|
|
10320
|
+
description:
|
|
10321
|
+
"Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/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.",
|
|
10322
|
+
properties: {
|
|
10323
|
+
created_at: {
|
|
10324
|
+
description:
|
|
10325
|
+
'Date and time at which Seam created the warning.',
|
|
10326
|
+
format: 'date-time',
|
|
10327
|
+
type: 'string',
|
|
10328
|
+
},
|
|
10329
|
+
message: {
|
|
10330
|
+
description:
|
|
10331
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
10332
|
+
type: 'string',
|
|
10333
|
+
},
|
|
10334
|
+
warning_code: {
|
|
10335
|
+
description:
|
|
10336
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
10337
|
+
enum: ['user_identity_missing_phone_number'],
|
|
10338
|
+
type: 'string',
|
|
10339
|
+
},
|
|
10340
|
+
},
|
|
10341
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
10342
|
+
type: 'object',
|
|
10343
|
+
},
|
|
10244
10344
|
],
|
|
10245
10345
|
},
|
|
10246
10346
|
type: 'array',
|
|
@@ -33939,6 +34039,56 @@ const openapi: OpenAPISpec = {
|
|
|
33939
34039
|
required: ['created_at', 'message', 'warning_code'],
|
|
33940
34040
|
type: 'object',
|
|
33941
34041
|
},
|
|
34042
|
+
{
|
|
34043
|
+
description:
|
|
34044
|
+
"Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
|
|
34045
|
+
properties: {
|
|
34046
|
+
created_at: {
|
|
34047
|
+
description:
|
|
34048
|
+
'Date and time at which Seam created the warning.',
|
|
34049
|
+
format: 'date-time',
|
|
34050
|
+
type: 'string',
|
|
34051
|
+
},
|
|
34052
|
+
message: {
|
|
34053
|
+
description:
|
|
34054
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
34055
|
+
type: 'string',
|
|
34056
|
+
},
|
|
34057
|
+
warning_code: {
|
|
34058
|
+
description:
|
|
34059
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
34060
|
+
enum: ['user_identity_missing_email_address'],
|
|
34061
|
+
type: 'string',
|
|
34062
|
+
},
|
|
34063
|
+
},
|
|
34064
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
34065
|
+
type: 'object',
|
|
34066
|
+
},
|
|
34067
|
+
{
|
|
34068
|
+
description:
|
|
34069
|
+
"Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/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.",
|
|
34070
|
+
properties: {
|
|
34071
|
+
created_at: {
|
|
34072
|
+
description:
|
|
34073
|
+
'Date and time at which Seam created the warning.',
|
|
34074
|
+
format: 'date-time',
|
|
34075
|
+
type: 'string',
|
|
34076
|
+
},
|
|
34077
|
+
message: {
|
|
34078
|
+
description:
|
|
34079
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
34080
|
+
type: 'string',
|
|
34081
|
+
},
|
|
34082
|
+
warning_code: {
|
|
34083
|
+
description:
|
|
34084
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
34085
|
+
enum: ['user_identity_missing_phone_number'],
|
|
34086
|
+
type: 'string',
|
|
34087
|
+
},
|
|
34088
|
+
},
|
|
34089
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
34090
|
+
type: 'object',
|
|
34091
|
+
},
|
|
33942
34092
|
],
|
|
33943
34093
|
},
|
|
33944
34094
|
type: 'array',
|
|
@@ -40639,6 +40789,16 @@ const openapi: OpenAPISpec = {
|
|
|
40639
40789
|
type: 'string',
|
|
40640
40790
|
},
|
|
40641
40791
|
},
|
|
40792
|
+
{
|
|
40793
|
+
in: 'query',
|
|
40794
|
+
name: 'search',
|
|
40795
|
+
schema: {
|
|
40796
|
+
description:
|
|
40797
|
+
'String for which to search. Filters returned Access Grants to include all records that satisfy a partial match using `name`, `access_grant_key`, `reservation_key`, `access_grant_id`, `user_identity_id`, `user_identity_full_name`, `user_identity_email_address` or `user_identity_phone_number`.',
|
|
40798
|
+
minLength: 1,
|
|
40799
|
+
type: 'string',
|
|
40800
|
+
},
|
|
40801
|
+
},
|
|
40642
40802
|
],
|
|
40643
40803
|
responses: {
|
|
40644
40804
|
'200': {
|