@seamapi/types 1.769.0 → 1.771.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 +777 -35
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1530 -269
- package/dist/index.cjs +777 -35
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +10 -10
- package/lib/seam/connect/models/access-grants/access-method.d.ts +6 -6
- package/lib/seam/connect/models/access-grants/access-method.js +2 -2
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -3
- package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +6 -6
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -4
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +15 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js +11 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +38 -17
- package/lib/seam/connect/models/phones/phone-session.d.ts +16 -16
- package/lib/seam/connect/openapi.d.ts +952 -0
- package/lib/seam/connect/openapi.js +758 -27
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +336 -63
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +2 -2
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +2 -2
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +4 -4
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +18 -0
- package/src/lib/seam/connect/openapi.ts +825 -27
- package/src/lib/seam/connect/route-types.ts +407 -63
package/package.json
CHANGED
|
@@ -220,9 +220,9 @@ export const access_method = z.object({
|
|
|
220
220
|
access_method_id: z.string().uuid().describe('ID of the access method.'),
|
|
221
221
|
display_name: z.string().describe('Display name of the access method.'),
|
|
222
222
|
mode: z
|
|
223
|
-
.enum(['code', 'card', 'mobile_key'])
|
|
223
|
+
.enum(['code', 'card', 'mobile_key', 'cloud_key'])
|
|
224
224
|
.describe(
|
|
225
|
-
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
|
|
225
|
+
'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.',
|
|
226
226
|
),
|
|
227
227
|
created_at: z
|
|
228
228
|
.string()
|
|
@@ -3,9 +3,9 @@ import { z } from 'zod'
|
|
|
3
3
|
export const requested_access_method = z.object({
|
|
4
4
|
display_name: z.string().describe('Display name of the access method.'),
|
|
5
5
|
mode: z
|
|
6
|
-
.enum(['code', 'card', 'mobile_key'])
|
|
6
|
+
.enum(['code', 'card', 'mobile_key', 'cloud_key'])
|
|
7
7
|
.describe(
|
|
8
|
-
'Access method mode. Supported values: `code`, `card`, `mobile_key`.',
|
|
8
|
+
'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.',
|
|
9
9
|
),
|
|
10
10
|
code: z
|
|
11
11
|
.string()
|
|
@@ -31,17 +31,17 @@ export const acs_entrance_capability_flags = z.object({
|
|
|
31
31
|
.describe(
|
|
32
32
|
'Indicates whether the ACS entrance can be unlocked with pin codes.',
|
|
33
33
|
),
|
|
34
|
-
|
|
34
|
+
can_unlock_with_cloud_key: z
|
|
35
35
|
.boolean()
|
|
36
36
|
.optional()
|
|
37
37
|
.describe(
|
|
38
|
-
'Indicates whether the ACS entrance can
|
|
38
|
+
'Indicates whether the ACS entrance can be unlocked with cloud key credentials.',
|
|
39
39
|
),
|
|
40
|
-
|
|
40
|
+
can_belong_to_reservation: z
|
|
41
41
|
.boolean()
|
|
42
42
|
.optional()
|
|
43
43
|
.describe(
|
|
44
|
-
'Indicates whether the ACS entrance can
|
|
44
|
+
'Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key.',
|
|
45
45
|
),
|
|
46
46
|
})
|
|
47
47
|
|
|
@@ -107,6 +107,23 @@ const bridge_disconnected_error = z
|
|
|
107
107
|
'Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.',
|
|
108
108
|
)
|
|
109
109
|
|
|
110
|
+
const encoding_interrupted_error = z
|
|
111
|
+
.object({
|
|
112
|
+
type: z
|
|
113
|
+
.literal('encoding_interrupted')
|
|
114
|
+
.describe(
|
|
115
|
+
'Error type to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.',
|
|
116
|
+
),
|
|
117
|
+
message: z
|
|
118
|
+
.string()
|
|
119
|
+
.describe(
|
|
120
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
121
|
+
),
|
|
122
|
+
})
|
|
123
|
+
.describe(
|
|
124
|
+
'Error to indicate that encoding was interrupted, for example, if the card was removed from the encoder before writing was complete.',
|
|
125
|
+
)
|
|
126
|
+
|
|
110
127
|
const error = z.union([
|
|
111
128
|
...common_action_attempt_errors,
|
|
112
129
|
no_credential_on_encoder_error,
|
|
@@ -115,6 +132,7 @@ const error = z.union([
|
|
|
115
132
|
encoder_not_online_error,
|
|
116
133
|
encoder_timeout_error,
|
|
117
134
|
bridge_disconnected_error,
|
|
135
|
+
encoding_interrupted_error,
|
|
118
136
|
])
|
|
119
137
|
|
|
120
138
|
const result = acs_credential
|