@seamapi/types 1.294.1 → 1.296.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 +760 -50
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3342 -298
- package/lib/seam/connect/models/acs/acs-credential.d.ts +264 -24
- package/lib/seam/connect/models/acs/acs-credential.js +59 -6
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -1
- package/lib/seam/connect/models/acs/acs-encoder.js +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +516 -84
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +226 -36
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +290 -48
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
- package/lib/seam/connect/models/devices/device-provider.js +2 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +115 -45
- package/lib/seam/connect/openapi.js +721 -42
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2496 -93
- package/package.json +2 -2
- package/src/lib/seam/connect/models/acs/acs-credential.ts +80 -12
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +1 -1
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
- package/src/lib/seam/connect/openapi.ts +851 -42
- package/src/lib/seam/connect/route-types.ts +3338 -488
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.296.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zod": "^3.21.4"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@seamapi/blueprint": "^0.
|
|
95
|
+
"@seamapi/blueprint": "^0.29.0",
|
|
96
96
|
"@types/node": "^20.8.10",
|
|
97
97
|
"concurrently": "^8.2.0",
|
|
98
98
|
"del-cli": "^5.0.0",
|
|
@@ -21,6 +21,75 @@ export type AcsCredentialExternalType = z.infer<
|
|
|
21
21
|
typeof acs_credential_external_type
|
|
22
22
|
>
|
|
23
23
|
|
|
24
|
+
const common_acs_credential_warning = z.object({
|
|
25
|
+
created_at: z
|
|
26
|
+
.string()
|
|
27
|
+
.datetime()
|
|
28
|
+
.describe('Date and time at which Seam created the warning.'),
|
|
29
|
+
message: z
|
|
30
|
+
.string()
|
|
31
|
+
.describe(
|
|
32
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
33
|
+
),
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
const warning_code_description =
|
|
37
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
|
|
38
|
+
|
|
39
|
+
const waiting_to_be_issued = common_acs_credential_warning
|
|
40
|
+
.extend({
|
|
41
|
+
warning_code: z
|
|
42
|
+
.literal('waiting_to_be_issued')
|
|
43
|
+
.describe(warning_code_description),
|
|
44
|
+
})
|
|
45
|
+
.describe('Indicates that the credential is waiting to be issued.')
|
|
46
|
+
|
|
47
|
+
const schedule_externally_modified = common_acs_credential_warning
|
|
48
|
+
.extend({
|
|
49
|
+
warning_code: z
|
|
50
|
+
.literal('schedule_externally_modified')
|
|
51
|
+
.describe(warning_code_description),
|
|
52
|
+
})
|
|
53
|
+
.describe(
|
|
54
|
+
"Indicates that the schedule of one of the credential's children was modified externally.",
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
const schedule_modified = common_acs_credential_warning
|
|
58
|
+
.extend({
|
|
59
|
+
warning_code: z
|
|
60
|
+
.literal('schedule_modified')
|
|
61
|
+
.describe(warning_code_description),
|
|
62
|
+
})
|
|
63
|
+
.describe(
|
|
64
|
+
'Indicates that the schedule of this credential was modified to avoid creating a credential with a start date in the past.',
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
const being_deleted = common_acs_credential_warning
|
|
68
|
+
.extend({
|
|
69
|
+
warning_code: z.literal('being_deleted').describe(warning_code_description),
|
|
70
|
+
})
|
|
71
|
+
.describe('Indicates that this credential is being deleted.')
|
|
72
|
+
|
|
73
|
+
const acs_credential_warning = z
|
|
74
|
+
.union([
|
|
75
|
+
waiting_to_be_issued,
|
|
76
|
+
schedule_externally_modified,
|
|
77
|
+
schedule_modified,
|
|
78
|
+
being_deleted,
|
|
79
|
+
])
|
|
80
|
+
.describe('Warning associated with the `acs_credential`.')
|
|
81
|
+
|
|
82
|
+
const acs_credential_warning_map = z.object({
|
|
83
|
+
waiting_to_be_issued: waiting_to_be_issued.optional().nullable(),
|
|
84
|
+
schedule_externally_modified: schedule_externally_modified
|
|
85
|
+
.optional()
|
|
86
|
+
.nullable(),
|
|
87
|
+
schedule_modified: schedule_modified.optional().nullable(),
|
|
88
|
+
being_deleted: being_deleted.optional().nullable(),
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
export type AcsCredentialWarningMap = z.infer<typeof acs_credential_warning_map>
|
|
92
|
+
|
|
24
93
|
const common_acs_credential = z.object({
|
|
25
94
|
acs_credential_id: z.string().uuid().describe('ID of the credential.'),
|
|
26
95
|
acs_user_id: z
|
|
@@ -86,18 +155,17 @@ const common_acs_credential = z.object({
|
|
|
86
155
|
.describe(
|
|
87
156
|
'Date and time at which the credential validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.',
|
|
88
157
|
),
|
|
89
|
-
errors: z
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
),
|
|
158
|
+
errors: z
|
|
159
|
+
.array(
|
|
160
|
+
z.object({
|
|
161
|
+
error_code: z.string(),
|
|
162
|
+
message: z.string(),
|
|
163
|
+
}),
|
|
164
|
+
)
|
|
165
|
+
.describe('Errors associated with the `acs_credential`.'),
|
|
166
|
+
warnings: z
|
|
167
|
+
.array(acs_credential_warning)
|
|
168
|
+
.describe('Warnings associated with the `acs_credential`.'),
|
|
101
169
|
is_multi_phone_sync_credential: z
|
|
102
170
|
.boolean()
|
|
103
171
|
.optional()
|
|
@@ -31,7 +31,7 @@ const acs_encoder_error =
|
|
|
31
31
|
// ])
|
|
32
32
|
.describe('Error associated with the `acs_encoder`.')
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
const acs_encoder_error_map = z.object({
|
|
35
35
|
acs_encoder_removed: acs_encoder_removed.optional().nullable(),
|
|
36
36
|
})
|
|
37
37
|
|
|
@@ -16,6 +16,7 @@ export const DEVICE_PROVIDERS = {
|
|
|
16
16
|
GENIE: 'genie',
|
|
17
17
|
DOORKING: 'doorking',
|
|
18
18
|
SALTO: 'salto',
|
|
19
|
+
SALTO_KS: 'salto_ks',
|
|
19
20
|
LOCKLY: 'lockly',
|
|
20
21
|
TTLOCK: 'ttlock',
|
|
21
22
|
LINEAR: 'linear',
|
|
@@ -108,7 +109,7 @@ export const PROVIDER_CATEGORY_MAP = {
|
|
|
108
109
|
'visionline',
|
|
109
110
|
'assa_abloy_credential_service',
|
|
110
111
|
'latch',
|
|
111
|
-
'
|
|
112
|
+
'salto_ks',
|
|
112
113
|
],
|
|
113
114
|
|
|
114
115
|
internal_beta: ALL_DEVICE_PROVIDERS,
|