@seamapi/types 1.47.0 → 1.49.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 +359 -61
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +465 -37
- package/lib/seam/connect/openapi.d.ts +268 -23
- package/lib/seam/connect/openapi.js +358 -60
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +197 -14
- package/lib/seam/connect/unstable/model-types.d.ts +1 -1
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js +81 -21
- package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -4
- package/lib/seam/connect/unstable/models/acs/credential.js +2 -0
- package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
- package/lib/seam/connect/unstable/models/acs/credential_pool.d.ts +29 -0
- package/lib/seam/connect/unstable/models/acs/credential_pool.js +12 -0
- package/lib/seam/connect/unstable/models/acs/credential_pool.js.map +1 -0
- package/lib/seam/connect/unstable/models/acs/index.d.ts +1 -0
- package/lib/seam/connect/unstable/models/acs/index.js +1 -0
- package/lib/seam/connect/unstable/models/acs/index.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +14 -14
- package/lib/seam/connect/unstable/models/devices/managed-device.js +1 -1
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/unstable/schemas.d.ts +1 -1
- package/lib/seam/connect/unstable/schemas.js +1 -1
- package/lib/seam/connect/unstable/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +383 -60
- package/src/lib/seam/connect/route-types.ts +197 -14
- package/src/lib/seam/connect/unstable/model-types.ts +2 -0
- package/src/lib/seam/connect/unstable/models/access-codes/managed-access-code.ts +113 -21
- package/src/lib/seam/connect/unstable/models/acs/credential.ts +2 -0
- package/src/lib/seam/connect/unstable/models/acs/credential_pool.ts +19 -0
- package/src/lib/seam/connect/unstable/models/acs/index.ts +1 -0
- package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +1 -1
- package/src/lib/seam/connect/unstable/schemas.ts +2 -0
|
@@ -47,26 +47,49 @@ export interface Routes {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
access_code: {
|
|
50
|
+
/** Unique identifier for a group of access codes that share the same code. */
|
|
50
51
|
common_code_key: string | null;
|
|
52
|
+
/** Indicates whether the code is set on the device according to a preconfigured schedule. */
|
|
51
53
|
is_scheduled_on_device?: boolean | undefined;
|
|
54
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
52
55
|
type: 'time_bound' | 'ongoing';
|
|
56
|
+
/** Indicates whether the access code is waiting for a code assignment. */
|
|
53
57
|
is_waiting_for_code_assignment?: boolean | undefined;
|
|
58
|
+
/** Unique identifier for the access code. */
|
|
54
59
|
access_code_id: string;
|
|
60
|
+
/** Unique identifier for the device associated with the access code. */
|
|
55
61
|
device_id: string;
|
|
62
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
56
63
|
name: string | null;
|
|
64
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
57
65
|
code: string | null;
|
|
66
|
+
/** Date and time at which the access code was created. */
|
|
58
67
|
created_at: string;
|
|
68
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
59
69
|
errors?: any;
|
|
70
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
60
71
|
warnings?: any;
|
|
72
|
+
/** Indicates whether Seam manages the access code. */
|
|
61
73
|
is_managed: true;
|
|
74
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
62
75
|
starts_at?: (string | null) | undefined;
|
|
76
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
63
77
|
ends_at?: (string | null) | undefined;
|
|
78
|
+
/**
|
|
79
|
+
Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.
|
|
80
|
+
*/
|
|
64
81
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
|
|
82
|
+
/** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
|
|
65
83
|
is_backup_access_code_available: boolean;
|
|
84
|
+
/** Indicates whether the access code is a backup code. */
|
|
66
85
|
is_backup?: boolean | undefined;
|
|
86
|
+
/** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
|
|
67
87
|
pulled_backup_access_code_id?: (string | null) | undefined;
|
|
88
|
+
/** Indicates whether changes to the access code from external sources are permitted. */
|
|
68
89
|
is_external_modification_allowed: boolean;
|
|
90
|
+
/** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
|
|
69
91
|
is_one_time_use: boolean;
|
|
92
|
+
/** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
|
|
70
93
|
is_offline_access_code: boolean;
|
|
71
94
|
};
|
|
72
95
|
};
|
|
@@ -96,26 +119,49 @@ export interface Routes {
|
|
|
96
119
|
formData: {};
|
|
97
120
|
jsonResponse: {
|
|
98
121
|
access_codes: Array<{
|
|
122
|
+
/** Unique identifier for a group of access codes that share the same code. */
|
|
99
123
|
common_code_key: string | null;
|
|
124
|
+
/** Indicates whether the code is set on the device according to a preconfigured schedule. */
|
|
100
125
|
is_scheduled_on_device?: boolean | undefined;
|
|
126
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
101
127
|
type: 'time_bound' | 'ongoing';
|
|
128
|
+
/** Indicates whether the access code is waiting for a code assignment. */
|
|
102
129
|
is_waiting_for_code_assignment?: boolean | undefined;
|
|
130
|
+
/** Unique identifier for the access code. */
|
|
103
131
|
access_code_id: string;
|
|
132
|
+
/** Unique identifier for the device associated with the access code. */
|
|
104
133
|
device_id: string;
|
|
134
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
105
135
|
name: string | null;
|
|
136
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
106
137
|
code: string | null;
|
|
138
|
+
/** Date and time at which the access code was created. */
|
|
107
139
|
created_at: string;
|
|
140
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
108
141
|
errors?: any;
|
|
142
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
109
143
|
warnings?: any;
|
|
144
|
+
/** Indicates whether Seam manages the access code. */
|
|
110
145
|
is_managed: true;
|
|
146
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
111
147
|
starts_at?: (string | null) | undefined;
|
|
148
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
112
149
|
ends_at?: (string | null) | undefined;
|
|
150
|
+
/**
|
|
151
|
+
Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.
|
|
152
|
+
*/
|
|
113
153
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
|
|
154
|
+
/** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
|
|
114
155
|
is_backup_access_code_available: boolean;
|
|
156
|
+
/** Indicates whether the access code is a backup code. */
|
|
115
157
|
is_backup?: boolean | undefined;
|
|
158
|
+
/** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
|
|
116
159
|
pulled_backup_access_code_id?: (string | null) | undefined;
|
|
160
|
+
/** Indicates whether changes to the access code from external sources are permitted. */
|
|
117
161
|
is_external_modification_allowed: boolean;
|
|
162
|
+
/** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
|
|
118
163
|
is_one_time_use: boolean;
|
|
164
|
+
/** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
|
|
119
165
|
is_offline_access_code: boolean;
|
|
120
166
|
}>;
|
|
121
167
|
};
|
|
@@ -185,26 +231,49 @@ export interface Routes {
|
|
|
185
231
|
formData: {};
|
|
186
232
|
jsonResponse: {
|
|
187
233
|
access_code: {
|
|
234
|
+
/** Unique identifier for a group of access codes that share the same code. */
|
|
188
235
|
common_code_key: string | null;
|
|
236
|
+
/** Indicates whether the code is set on the device according to a preconfigured schedule. */
|
|
189
237
|
is_scheduled_on_device?: boolean | undefined;
|
|
238
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
190
239
|
type: 'time_bound' | 'ongoing';
|
|
240
|
+
/** Indicates whether the access code is waiting for a code assignment. */
|
|
191
241
|
is_waiting_for_code_assignment?: boolean | undefined;
|
|
242
|
+
/** Unique identifier for the access code. */
|
|
192
243
|
access_code_id: string;
|
|
244
|
+
/** Unique identifier for the device associated with the access code. */
|
|
193
245
|
device_id: string;
|
|
246
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
194
247
|
name: string | null;
|
|
248
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
195
249
|
code: string | null;
|
|
250
|
+
/** Date and time at which the access code was created. */
|
|
196
251
|
created_at: string;
|
|
252
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
197
253
|
errors?: any;
|
|
254
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
198
255
|
warnings?: any;
|
|
256
|
+
/** Indicates whether Seam manages the access code. */
|
|
199
257
|
is_managed: true;
|
|
258
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
200
259
|
starts_at?: (string | null) | undefined;
|
|
260
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
201
261
|
ends_at?: (string | null) | undefined;
|
|
262
|
+
/**
|
|
263
|
+
Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.
|
|
264
|
+
*/
|
|
202
265
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
|
|
266
|
+
/** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
|
|
203
267
|
is_backup_access_code_available: boolean;
|
|
268
|
+
/** Indicates whether the access code is a backup code. */
|
|
204
269
|
is_backup?: boolean | undefined;
|
|
270
|
+
/** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
|
|
205
271
|
pulled_backup_access_code_id?: (string | null) | undefined;
|
|
272
|
+
/** Indicates whether changes to the access code from external sources are permitted. */
|
|
206
273
|
is_external_modification_allowed: boolean;
|
|
274
|
+
/** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
|
|
207
275
|
is_one_time_use: boolean;
|
|
276
|
+
/** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
|
|
208
277
|
is_offline_access_code: boolean;
|
|
209
278
|
};
|
|
210
279
|
};
|
|
@@ -222,26 +291,49 @@ export interface Routes {
|
|
|
222
291
|
formData: {};
|
|
223
292
|
jsonResponse: {
|
|
224
293
|
access_codes: Array<{
|
|
294
|
+
/** Unique identifier for a group of access codes that share the same code. */
|
|
225
295
|
common_code_key: string | null;
|
|
296
|
+
/** Indicates whether the code is set on the device according to a preconfigured schedule. */
|
|
226
297
|
is_scheduled_on_device?: boolean | undefined;
|
|
298
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
227
299
|
type: 'time_bound' | 'ongoing';
|
|
300
|
+
/** Indicates whether the access code is waiting for a code assignment. */
|
|
228
301
|
is_waiting_for_code_assignment?: boolean | undefined;
|
|
302
|
+
/** Unique identifier for the access code. */
|
|
229
303
|
access_code_id: string;
|
|
304
|
+
/** Unique identifier for the device associated with the access code. */
|
|
230
305
|
device_id: string;
|
|
306
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
231
307
|
name: string | null;
|
|
308
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
232
309
|
code: string | null;
|
|
310
|
+
/** Date and time at which the access code was created. */
|
|
233
311
|
created_at: string;
|
|
312
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
234
313
|
errors?: any;
|
|
314
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
235
315
|
warnings?: any;
|
|
316
|
+
/** Indicates whether Seam manages the access code. */
|
|
236
317
|
is_managed: true;
|
|
318
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
237
319
|
starts_at?: (string | null) | undefined;
|
|
320
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
238
321
|
ends_at?: (string | null) | undefined;
|
|
322
|
+
/**
|
|
323
|
+
Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.
|
|
324
|
+
*/
|
|
239
325
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
|
|
326
|
+
/** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
|
|
240
327
|
is_backup_access_code_available: boolean;
|
|
328
|
+
/** Indicates whether the access code is a backup code. */
|
|
241
329
|
is_backup?: boolean | undefined;
|
|
330
|
+
/** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
|
|
242
331
|
pulled_backup_access_code_id?: (string | null) | undefined;
|
|
332
|
+
/** Indicates whether changes to the access code from external sources are permitted. */
|
|
243
333
|
is_external_modification_allowed: boolean;
|
|
334
|
+
/** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
|
|
244
335
|
is_one_time_use: boolean;
|
|
336
|
+
/** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
|
|
245
337
|
is_offline_access_code: boolean;
|
|
246
338
|
}>;
|
|
247
339
|
};
|
|
@@ -257,26 +349,49 @@ export interface Routes {
|
|
|
257
349
|
formData: {};
|
|
258
350
|
jsonResponse: {
|
|
259
351
|
backup_access_code: {
|
|
352
|
+
/** Unique identifier for a group of access codes that share the same code. */
|
|
260
353
|
common_code_key: string | null;
|
|
354
|
+
/** Indicates whether the code is set on the device according to a preconfigured schedule. */
|
|
261
355
|
is_scheduled_on_device?: boolean | undefined;
|
|
356
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
262
357
|
type: 'time_bound' | 'ongoing';
|
|
358
|
+
/** Indicates whether the access code is waiting for a code assignment. */
|
|
263
359
|
is_waiting_for_code_assignment?: boolean | undefined;
|
|
360
|
+
/** Unique identifier for the access code. */
|
|
264
361
|
access_code_id: string;
|
|
362
|
+
/** Unique identifier for the device associated with the access code. */
|
|
265
363
|
device_id: string;
|
|
364
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
266
365
|
name: string | null;
|
|
366
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
267
367
|
code: string | null;
|
|
368
|
+
/** Date and time at which the access code was created. */
|
|
268
369
|
created_at: string;
|
|
370
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
269
371
|
errors?: any;
|
|
372
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
270
373
|
warnings?: any;
|
|
374
|
+
/** Indicates whether Seam manages the access code. */
|
|
271
375
|
is_managed: true;
|
|
376
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
272
377
|
starts_at?: (string | null) | undefined;
|
|
378
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
273
379
|
ends_at?: (string | null) | undefined;
|
|
380
|
+
/**
|
|
381
|
+
Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.
|
|
382
|
+
*/
|
|
274
383
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
|
|
384
|
+
/** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
|
|
275
385
|
is_backup_access_code_available: boolean;
|
|
386
|
+
/** Indicates whether the access code is a backup code. */
|
|
276
387
|
is_backup?: boolean | undefined;
|
|
388
|
+
/** Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code. */
|
|
277
389
|
pulled_backup_access_code_id?: (string | null) | undefined;
|
|
390
|
+
/** Indicates whether changes to the access code from external sources are permitted. */
|
|
278
391
|
is_external_modification_allowed: boolean;
|
|
392
|
+
/** Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use. */
|
|
279
393
|
is_one_time_use: boolean;
|
|
394
|
+
/** Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection. */
|
|
280
395
|
is_offline_access_code: boolean;
|
|
281
396
|
};
|
|
282
397
|
};
|
|
@@ -294,16 +409,26 @@ export interface Routes {
|
|
|
294
409
|
formData: {};
|
|
295
410
|
jsonResponse: {
|
|
296
411
|
access_code: {
|
|
412
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
297
413
|
type: 'time_bound' | 'ongoing';
|
|
414
|
+
/** Unique identifier for the access code. */
|
|
298
415
|
access_code_id: string;
|
|
416
|
+
/** Unique identifier for the device associated with the access code. */
|
|
299
417
|
device_id: string;
|
|
418
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
300
419
|
name: string | null;
|
|
420
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
301
421
|
code: string | null;
|
|
422
|
+
/** Date and time at which the access code was created. */
|
|
302
423
|
created_at: string;
|
|
424
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
303
425
|
errors?: any;
|
|
426
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
304
427
|
warnings?: any;
|
|
305
428
|
is_managed: false;
|
|
429
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
306
430
|
starts_at?: (string | null) | undefined;
|
|
431
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
307
432
|
ends_at?: (string | null) | undefined;
|
|
308
433
|
status: 'set';
|
|
309
434
|
};
|
|
@@ -372,16 +497,26 @@ export interface Routes {
|
|
|
372
497
|
formData: {};
|
|
373
498
|
jsonResponse: {
|
|
374
499
|
access_code: {
|
|
500
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
375
501
|
type: 'time_bound' | 'ongoing';
|
|
502
|
+
/** Unique identifier for the access code. */
|
|
376
503
|
access_code_id: string;
|
|
504
|
+
/** Unique identifier for the device associated with the access code. */
|
|
377
505
|
device_id: string;
|
|
506
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
378
507
|
name: string | null;
|
|
508
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
379
509
|
code: string | null;
|
|
510
|
+
/** Date and time at which the access code was created. */
|
|
380
511
|
created_at: string;
|
|
512
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
381
513
|
errors?: any;
|
|
514
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
382
515
|
warnings?: any;
|
|
383
516
|
is_managed: false;
|
|
517
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
384
518
|
starts_at?: (string | null) | undefined;
|
|
519
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
385
520
|
ends_at?: (string | null) | undefined;
|
|
386
521
|
status: 'set';
|
|
387
522
|
};
|
|
@@ -399,16 +534,26 @@ export interface Routes {
|
|
|
399
534
|
formData: {};
|
|
400
535
|
jsonResponse: {
|
|
401
536
|
access_codes: Array<{
|
|
537
|
+
/** Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration. */
|
|
402
538
|
type: 'time_bound' | 'ongoing';
|
|
539
|
+
/** Unique identifier for the access code. */
|
|
403
540
|
access_code_id: string;
|
|
541
|
+
/** Unique identifier for the device associated with the access code. */
|
|
404
542
|
device_id: string;
|
|
543
|
+
/** Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. */
|
|
405
544
|
name: string | null;
|
|
545
|
+
/** Code used for access. Typically, a numeric or alphanumeric string. */
|
|
406
546
|
code: string | null;
|
|
547
|
+
/** Date and time at which the access code was created. */
|
|
407
548
|
created_at: string;
|
|
549
|
+
/** Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
408
550
|
errors?: any;
|
|
551
|
+
/** Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention. */
|
|
409
552
|
warnings?: any;
|
|
410
553
|
is_managed: false;
|
|
554
|
+
/** Date and time at which the time-bound access code becomes active. */
|
|
411
555
|
starts_at?: (string | null) | undefined;
|
|
556
|
+
/** Date and time after which the time-bound access code becomes inactive. */
|
|
412
557
|
ends_at?: (string | null) | undefined;
|
|
413
558
|
status: 'set';
|
|
414
559
|
}>;
|
|
@@ -582,6 +727,27 @@ export interface Routes {
|
|
|
582
727
|
formData: {};
|
|
583
728
|
jsonResponse: {};
|
|
584
729
|
};
|
|
730
|
+
'/acs/credential_pools/list': {
|
|
731
|
+
route: '/acs/credential_pools/list';
|
|
732
|
+
method: 'GET' | 'POST';
|
|
733
|
+
queryParams: {};
|
|
734
|
+
jsonBody: {};
|
|
735
|
+
commonParams: {
|
|
736
|
+
acs_system_id: string;
|
|
737
|
+
};
|
|
738
|
+
formData: {};
|
|
739
|
+
jsonResponse: {
|
|
740
|
+
acs_credential_pools: Array<{
|
|
741
|
+
acs_credential_pool_id: string;
|
|
742
|
+
acs_system_id: string;
|
|
743
|
+
display_name: string;
|
|
744
|
+
external_type: 'hid_part_number';
|
|
745
|
+
external_type_display_name: string;
|
|
746
|
+
created_at: string;
|
|
747
|
+
workspace_id: string;
|
|
748
|
+
}>;
|
|
749
|
+
};
|
|
750
|
+
};
|
|
585
751
|
'/acs/credentials/assign': {
|
|
586
752
|
route: '/acs/credentials/assign';
|
|
587
753
|
method: 'PATCH' | 'POST';
|
|
@@ -592,7 +758,20 @@ export interface Routes {
|
|
|
592
758
|
};
|
|
593
759
|
commonParams: {};
|
|
594
760
|
formData: {};
|
|
595
|
-
jsonResponse: {
|
|
761
|
+
jsonResponse: {
|
|
762
|
+
acs_credential: {
|
|
763
|
+
acs_credential_id: string;
|
|
764
|
+
acs_user_id?: string | undefined;
|
|
765
|
+
acs_credential_pool_id?: string | undefined;
|
|
766
|
+
acs_system_id: string;
|
|
767
|
+
display_name: string;
|
|
768
|
+
code: string | null;
|
|
769
|
+
external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
|
|
770
|
+
external_type_display_name: string;
|
|
771
|
+
created_at: string;
|
|
772
|
+
workspace_id: string;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
596
775
|
};
|
|
597
776
|
'/acs/credentials/create': {
|
|
598
777
|
route: '/acs/credentials/create';
|
|
@@ -608,10 +787,11 @@ export interface Routes {
|
|
|
608
787
|
acs_credential: {
|
|
609
788
|
acs_credential_id: string;
|
|
610
789
|
acs_user_id?: string | undefined;
|
|
790
|
+
acs_credential_pool_id?: string | undefined;
|
|
611
791
|
acs_system_id: string;
|
|
612
792
|
display_name: string;
|
|
613
793
|
code: string | null;
|
|
614
|
-
external_type: 'pti_card' | 'brivo_credential';
|
|
794
|
+
external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
|
|
615
795
|
external_type_display_name: string;
|
|
616
796
|
created_at: string;
|
|
617
797
|
workspace_id: string;
|
|
@@ -642,10 +822,11 @@ export interface Routes {
|
|
|
642
822
|
acs_credential: {
|
|
643
823
|
acs_credential_id: string;
|
|
644
824
|
acs_user_id?: string | undefined;
|
|
825
|
+
acs_credential_pool_id?: string | undefined;
|
|
645
826
|
acs_system_id: string;
|
|
646
827
|
display_name: string;
|
|
647
828
|
code: string | null;
|
|
648
|
-
external_type: 'pti_card' | 'brivo_credential';
|
|
829
|
+
external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
|
|
649
830
|
external_type_display_name: string;
|
|
650
831
|
created_at: string;
|
|
651
832
|
workspace_id: string;
|
|
@@ -670,10 +851,11 @@ export interface Routes {
|
|
|
670
851
|
acs_credentials: Array<{
|
|
671
852
|
acs_credential_id: string;
|
|
672
853
|
acs_user_id?: string | undefined;
|
|
854
|
+
acs_credential_pool_id?: string | undefined;
|
|
673
855
|
acs_system_id: string;
|
|
674
856
|
display_name: string;
|
|
675
857
|
code: string | null;
|
|
676
|
-
external_type: 'pti_card' | 'brivo_credential';
|
|
858
|
+
external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
|
|
677
859
|
external_type_display_name: string;
|
|
678
860
|
created_at: string;
|
|
679
861
|
workspace_id: string;
|
|
@@ -694,10 +876,11 @@ export interface Routes {
|
|
|
694
876
|
acs_credential: {
|
|
695
877
|
acs_credential_id: string;
|
|
696
878
|
acs_user_id?: string | undefined;
|
|
879
|
+
acs_credential_pool_id?: string | undefined;
|
|
697
880
|
acs_system_id: string;
|
|
698
881
|
display_name: string;
|
|
699
882
|
code: string | null;
|
|
700
|
-
external_type: 'pti_card' | 'brivo_credential';
|
|
883
|
+
external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
|
|
701
884
|
external_type_display_name: string;
|
|
702
885
|
created_at: string;
|
|
703
886
|
workspace_id: string;
|
|
@@ -1390,7 +1573,7 @@ export interface Routes {
|
|
|
1390
1573
|
display_name: string;
|
|
1391
1574
|
manufacturer_display_name: string;
|
|
1392
1575
|
offline_access_codes_supported?: boolean | undefined;
|
|
1393
|
-
|
|
1576
|
+
online_access_codes_supported?: boolean | undefined;
|
|
1394
1577
|
accessory_keypad_supported?: boolean | undefined;
|
|
1395
1578
|
};
|
|
1396
1579
|
has_direct_power?: boolean | undefined;
|
|
@@ -1809,7 +1992,7 @@ export interface Routes {
|
|
|
1809
1992
|
display_name: string;
|
|
1810
1993
|
manufacturer_display_name: string;
|
|
1811
1994
|
offline_access_codes_supported?: boolean | undefined;
|
|
1812
|
-
|
|
1995
|
+
online_access_codes_supported?: boolean | undefined;
|
|
1813
1996
|
accessory_keypad_supported?: boolean | undefined;
|
|
1814
1997
|
};
|
|
1815
1998
|
has_direct_power?: boolean | undefined;
|
|
@@ -2483,7 +2666,7 @@ export interface Routes {
|
|
|
2483
2666
|
display_name: string;
|
|
2484
2667
|
manufacturer_display_name: string;
|
|
2485
2668
|
offline_access_codes_supported?: boolean | undefined;
|
|
2486
|
-
|
|
2669
|
+
online_access_codes_supported?: boolean | undefined;
|
|
2487
2670
|
accessory_keypad_supported?: boolean | undefined;
|
|
2488
2671
|
};
|
|
2489
2672
|
has_direct_power?: boolean | undefined;
|
|
@@ -2880,7 +3063,7 @@ export interface Routes {
|
|
|
2880
3063
|
display_name: string;
|
|
2881
3064
|
manufacturer_display_name: string;
|
|
2882
3065
|
offline_access_codes_supported?: boolean | undefined;
|
|
2883
|
-
|
|
3066
|
+
online_access_codes_supported?: boolean | undefined;
|
|
2884
3067
|
accessory_keypad_supported?: boolean | undefined;
|
|
2885
3068
|
};
|
|
2886
3069
|
has_direct_power?: boolean | undefined;
|
|
@@ -3299,7 +3482,7 @@ export interface Routes {
|
|
|
3299
3482
|
display_name: string;
|
|
3300
3483
|
manufacturer_display_name: string;
|
|
3301
3484
|
offline_access_codes_supported?: boolean | undefined;
|
|
3302
|
-
|
|
3485
|
+
online_access_codes_supported?: boolean | undefined;
|
|
3303
3486
|
accessory_keypad_supported?: boolean | undefined;
|
|
3304
3487
|
};
|
|
3305
3488
|
has_direct_power?: boolean | undefined;
|
|
@@ -3696,7 +3879,7 @@ export interface Routes {
|
|
|
3696
3879
|
display_name: string;
|
|
3697
3880
|
manufacturer_display_name: string;
|
|
3698
3881
|
offline_access_codes_supported?: boolean | undefined;
|
|
3699
|
-
|
|
3882
|
+
online_access_codes_supported?: boolean | undefined;
|
|
3700
3883
|
accessory_keypad_supported?: boolean | undefined;
|
|
3701
3884
|
};
|
|
3702
3885
|
has_direct_power?: boolean | undefined;
|
|
@@ -4513,7 +4696,7 @@ export interface Routes {
|
|
|
4513
4696
|
display_name: string;
|
|
4514
4697
|
manufacturer_display_name: string;
|
|
4515
4698
|
offline_access_codes_supported?: boolean | undefined;
|
|
4516
|
-
|
|
4699
|
+
online_access_codes_supported?: boolean | undefined;
|
|
4517
4700
|
accessory_keypad_supported?: boolean | undefined;
|
|
4518
4701
|
};
|
|
4519
4702
|
has_direct_power?: boolean | undefined;
|
|
@@ -4962,7 +5145,7 @@ export interface Routes {
|
|
|
4962
5145
|
display_name: string;
|
|
4963
5146
|
manufacturer_display_name: string;
|
|
4964
5147
|
offline_access_codes_supported?: boolean | undefined;
|
|
4965
|
-
|
|
5148
|
+
online_access_codes_supported?: boolean | undefined;
|
|
4966
5149
|
accessory_keypad_supported?: boolean | undefined;
|
|
4967
5150
|
};
|
|
4968
5151
|
has_direct_power?: boolean | undefined;
|
|
@@ -5483,7 +5666,7 @@ export interface Routes {
|
|
|
5483
5666
|
display_name: string;
|
|
5484
5667
|
manufacturer_display_name: string;
|
|
5485
5668
|
offline_access_codes_supported?: boolean | undefined;
|
|
5486
|
-
|
|
5669
|
+
online_access_codes_supported?: boolean | undefined;
|
|
5487
5670
|
accessory_keypad_supported?: boolean | undefined;
|
|
5488
5671
|
};
|
|
5489
5672
|
has_direct_power?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AccessCodeConstraint, AcsAccessGroup, AcsAccessGroupExternalType, AcsCredential, AcsCredentialExternalType, AcsSystem, AcsSystemExternalType, AcsUser, AcsUserExternalType, AnyDeviceType, BatteryStatus, Capabilities, ClimateSetting, DeviceMetadata, LockDeviceType, ManagedAccessCode, ManagedDevice, ManagedDeviceWithBackendMetadata, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedAccessCode, UnmanagedDevice, } from './models/index.js';
|
|
1
|
+
export type { AccessCodeConstraint, AcsAccessGroup, AcsAccessGroupExternalType, AcsCredential, AcsCredentialExternalType, AcsCredentialPool, AcsCredentialPoolExternalType, AcsSystem, AcsSystemExternalType, AcsUser, AcsUserExternalType, AnyDeviceType, BatteryStatus, Capabilities, ClimateSetting, DeviceMetadata, LockDeviceType, ManagedAccessCode, ManagedDevice, ManagedDeviceWithBackendMetadata, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedAccessCode, UnmanagedDevice, } from './models/index.js';
|
|
@@ -1,25 +1,85 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const managed_access_code = z.object({
|
|
3
|
-
common_code_key: z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
common_code_key: z
|
|
4
|
+
.string()
|
|
5
|
+
.nullable()
|
|
6
|
+
.describe('Unique identifier for a group of access codes that share the same code.'),
|
|
7
|
+
is_scheduled_on_device: z
|
|
8
|
+
.boolean()
|
|
9
|
+
.optional()
|
|
10
|
+
.describe('Indicates whether the code is set on the device according to a preconfigured schedule.'),
|
|
11
|
+
type: z
|
|
12
|
+
.enum(['time_bound', 'ongoing'])
|
|
13
|
+
.describe('Nature of the access code. Values are "ongoing" for access codes that are active continuously until deactivated manually or "time_bound" for access codes that have a specific duration.'),
|
|
14
|
+
is_waiting_for_code_assignment: z
|
|
15
|
+
.boolean()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Indicates whether the access code is waiting for a code assignment.'),
|
|
18
|
+
access_code_id: z
|
|
19
|
+
.string()
|
|
20
|
+
.uuid()
|
|
21
|
+
.describe('Unique identifier for the access code.'),
|
|
22
|
+
device_id: z
|
|
23
|
+
.string()
|
|
24
|
+
.uuid()
|
|
25
|
+
.describe('Unique identifier for the device associated with the access code.'),
|
|
26
|
+
name: z
|
|
27
|
+
.string()
|
|
28
|
+
.nullable()
|
|
29
|
+
.describe('Name of the access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes.'),
|
|
30
|
+
code: z
|
|
31
|
+
.string()
|
|
32
|
+
.nullable()
|
|
33
|
+
.describe('Code used for access. Typically, a numeric or alphanumeric string.'),
|
|
34
|
+
created_at: z
|
|
35
|
+
.string()
|
|
36
|
+
.datetime()
|
|
37
|
+
.describe('Date and time at which the access code was created.'),
|
|
38
|
+
errors: z
|
|
39
|
+
.any()
|
|
40
|
+
.describe('Collection of errors associated with the access code, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues.'),
|
|
41
|
+
warnings: z
|
|
42
|
+
.any()
|
|
43
|
+
.describe('Collection of warnings associated with the access code, structured in a dictionary format. A unique "warning_code" keys each warning. Each warning entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the warning. "created_at" is a date that indicates when the warning was generated. This structure enables detailed tracking and timely response to potential issues that are not critical but that may require attention.'),
|
|
44
|
+
is_managed: z
|
|
45
|
+
.literal(true)
|
|
46
|
+
.describe('Indicates whether Seam manages the access code.'),
|
|
47
|
+
starts_at: z
|
|
48
|
+
.string()
|
|
49
|
+
.datetime()
|
|
50
|
+
.nullable()
|
|
51
|
+
.optional()
|
|
52
|
+
.describe('Date and time at which the time-bound access code becomes active.'),
|
|
53
|
+
ends_at: z
|
|
54
|
+
.string()
|
|
55
|
+
.datetime()
|
|
56
|
+
.nullable()
|
|
57
|
+
.optional()
|
|
58
|
+
.describe('Date and time after which the time-bound access code becomes inactive.'),
|
|
59
|
+
status: z.enum(['setting', 'set', 'unset', 'removing', 'unknown']).describe(`
|
|
60
|
+
Current status of the access code within the operational lifecycle. Values are "setting," a transitional phase that indicates that the code is being configured or activated; "set", which indicates that the code is active and operational; "unset," which indicates a deactivated or unused state, either before activation or after deliberate deactivation; "removing," which indicates a transitional period in which the code is being deleted or made inactive; and "unknown," which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting.
|
|
61
|
+
`),
|
|
62
|
+
is_backup_access_code_available: z
|
|
63
|
+
.boolean()
|
|
64
|
+
.describe('Indicates whether a backup access code is available for use if the primary access code is lost or compromised.'),
|
|
65
|
+
is_backup: z
|
|
66
|
+
.boolean()
|
|
67
|
+
.optional()
|
|
68
|
+
.describe('Indicates whether the access code is a backup code.'),
|
|
69
|
+
pulled_backup_access_code_id: z
|
|
70
|
+
.string()
|
|
71
|
+
.uuid()
|
|
72
|
+
.nullable()
|
|
73
|
+
.optional()
|
|
74
|
+
.describe('Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.'),
|
|
75
|
+
is_external_modification_allowed: z
|
|
76
|
+
.boolean()
|
|
77
|
+
.describe('Indicates whether changes to the access code from external sources are permitted.'),
|
|
78
|
+
is_one_time_use: z
|
|
79
|
+
.boolean()
|
|
80
|
+
.describe('Indicates whether the access code can only be used once. If "true," the code becomes invalid after the first use.'),
|
|
81
|
+
is_offline_access_code: z
|
|
82
|
+
.boolean()
|
|
83
|
+
.describe('Indicates whether the access code is intended for use in offline scenarios. If "true," this code can be created on a device without a network connection.'),
|
|
24
84
|
});
|
|
25
85
|
//# sourceMappingURL=managed-access-code.js.map
|