@seamapi/types 1.48.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.
Files changed (35) hide show
  1. package/dist/connect.cjs +252 -38
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +348 -17
  4. package/lib/seam/connect/openapi.d.ts +163 -3
  5. package/lib/seam/connect/openapi.js +251 -37
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +185 -14
  8. package/lib/seam/connect/unstable/model-types.d.ts +1 -1
  9. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js +81 -21
  10. package/lib/seam/connect/unstable/models/access-codes/managed-access-code.js.map +1 -1
  11. package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -4
  12. package/lib/seam/connect/unstable/models/acs/credential.js +2 -1
  13. package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
  14. package/lib/seam/connect/unstable/models/acs/credential_pool.d.ts +29 -0
  15. package/lib/seam/connect/unstable/models/acs/credential_pool.js +12 -0
  16. package/lib/seam/connect/unstable/models/acs/credential_pool.js.map +1 -0
  17. package/lib/seam/connect/unstable/models/acs/index.d.ts +1 -0
  18. package/lib/seam/connect/unstable/models/acs/index.js +1 -0
  19. package/lib/seam/connect/unstable/models/acs/index.js.map +1 -1
  20. package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +14 -14
  21. package/lib/seam/connect/unstable/models/devices/managed-device.js +1 -1
  22. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  23. package/lib/seam/connect/unstable/schemas.d.ts +1 -1
  24. package/lib/seam/connect/unstable/schemas.js +1 -1
  25. package/lib/seam/connect/unstable/schemas.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/openapi.ts +276 -37
  28. package/src/lib/seam/connect/route-types.ts +185 -14
  29. package/src/lib/seam/connect/unstable/model-types.ts +2 -0
  30. package/src/lib/seam/connect/unstable/models/access-codes/managed-access-code.ts +113 -21
  31. package/src/lib/seam/connect/unstable/models/acs/credential.ts +2 -1
  32. package/src/lib/seam/connect/unstable/models/acs/credential_pool.ts +19 -0
  33. package/src/lib/seam/connect/unstable/models/acs/index.ts +1 -0
  34. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +1 -1
  35. 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';
@@ -596,10 +762,11 @@ export interface Routes {
596
762
  acs_credential: {
597
763
  acs_credential_id: string;
598
764
  acs_user_id?: string | undefined;
765
+ acs_credential_pool_id?: string | undefined;
599
766
  acs_system_id: string;
600
767
  display_name: string;
601
768
  code: string | null;
602
- external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
769
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
603
770
  external_type_display_name: string;
604
771
  created_at: string;
605
772
  workspace_id: string;
@@ -620,10 +787,11 @@ export interface Routes {
620
787
  acs_credential: {
621
788
  acs_credential_id: string;
622
789
  acs_user_id?: string | undefined;
790
+ acs_credential_pool_id?: string | undefined;
623
791
  acs_system_id: string;
624
792
  display_name: string;
625
793
  code: string | null;
626
- external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
794
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
627
795
  external_type_display_name: string;
628
796
  created_at: string;
629
797
  workspace_id: string;
@@ -654,10 +822,11 @@ export interface Routes {
654
822
  acs_credential: {
655
823
  acs_credential_id: string;
656
824
  acs_user_id?: string | undefined;
825
+ acs_credential_pool_id?: string | undefined;
657
826
  acs_system_id: string;
658
827
  display_name: string;
659
828
  code: string | null;
660
- external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
829
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
661
830
  external_type_display_name: string;
662
831
  created_at: string;
663
832
  workspace_id: string;
@@ -682,10 +851,11 @@ export interface Routes {
682
851
  acs_credentials: Array<{
683
852
  acs_credential_id: string;
684
853
  acs_user_id?: string | undefined;
854
+ acs_credential_pool_id?: string | undefined;
685
855
  acs_system_id: string;
686
856
  display_name: string;
687
857
  code: string | null;
688
- external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
858
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
689
859
  external_type_display_name: string;
690
860
  created_at: string;
691
861
  workspace_id: string;
@@ -706,10 +876,11 @@ export interface Routes {
706
876
  acs_credential: {
707
877
  acs_credential_id: string;
708
878
  acs_user_id?: string | undefined;
879
+ acs_credential_pool_id?: string | undefined;
709
880
  acs_system_id: string;
710
881
  display_name: string;
711
882
  code: string | null;
712
- external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
883
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
713
884
  external_type_display_name: string;
714
885
  created_at: string;
715
886
  workspace_id: string;
@@ -1402,7 +1573,7 @@ export interface Routes {
1402
1573
  display_name: string;
1403
1574
  manufacturer_display_name: string;
1404
1575
  offline_access_codes_supported?: boolean | undefined;
1405
- access_codes_supported?: boolean | undefined;
1576
+ online_access_codes_supported?: boolean | undefined;
1406
1577
  accessory_keypad_supported?: boolean | undefined;
1407
1578
  };
1408
1579
  has_direct_power?: boolean | undefined;
@@ -1821,7 +1992,7 @@ export interface Routes {
1821
1992
  display_name: string;
1822
1993
  manufacturer_display_name: string;
1823
1994
  offline_access_codes_supported?: boolean | undefined;
1824
- access_codes_supported?: boolean | undefined;
1995
+ online_access_codes_supported?: boolean | undefined;
1825
1996
  accessory_keypad_supported?: boolean | undefined;
1826
1997
  };
1827
1998
  has_direct_power?: boolean | undefined;
@@ -2495,7 +2666,7 @@ export interface Routes {
2495
2666
  display_name: string;
2496
2667
  manufacturer_display_name: string;
2497
2668
  offline_access_codes_supported?: boolean | undefined;
2498
- access_codes_supported?: boolean | undefined;
2669
+ online_access_codes_supported?: boolean | undefined;
2499
2670
  accessory_keypad_supported?: boolean | undefined;
2500
2671
  };
2501
2672
  has_direct_power?: boolean | undefined;
@@ -2892,7 +3063,7 @@ export interface Routes {
2892
3063
  display_name: string;
2893
3064
  manufacturer_display_name: string;
2894
3065
  offline_access_codes_supported?: boolean | undefined;
2895
- access_codes_supported?: boolean | undefined;
3066
+ online_access_codes_supported?: boolean | undefined;
2896
3067
  accessory_keypad_supported?: boolean | undefined;
2897
3068
  };
2898
3069
  has_direct_power?: boolean | undefined;
@@ -3311,7 +3482,7 @@ export interface Routes {
3311
3482
  display_name: string;
3312
3483
  manufacturer_display_name: string;
3313
3484
  offline_access_codes_supported?: boolean | undefined;
3314
- access_codes_supported?: boolean | undefined;
3485
+ online_access_codes_supported?: boolean | undefined;
3315
3486
  accessory_keypad_supported?: boolean | undefined;
3316
3487
  };
3317
3488
  has_direct_power?: boolean | undefined;
@@ -3708,7 +3879,7 @@ export interface Routes {
3708
3879
  display_name: string;
3709
3880
  manufacturer_display_name: string;
3710
3881
  offline_access_codes_supported?: boolean | undefined;
3711
- access_codes_supported?: boolean | undefined;
3882
+ online_access_codes_supported?: boolean | undefined;
3712
3883
  accessory_keypad_supported?: boolean | undefined;
3713
3884
  };
3714
3885
  has_direct_power?: boolean | undefined;
@@ -4525,7 +4696,7 @@ export interface Routes {
4525
4696
  display_name: string;
4526
4697
  manufacturer_display_name: string;
4527
4698
  offline_access_codes_supported?: boolean | undefined;
4528
- access_codes_supported?: boolean | undefined;
4699
+ online_access_codes_supported?: boolean | undefined;
4529
4700
  accessory_keypad_supported?: boolean | undefined;
4530
4701
  };
4531
4702
  has_direct_power?: boolean | undefined;
@@ -4974,7 +5145,7 @@ export interface Routes {
4974
5145
  display_name: string;
4975
5146
  manufacturer_display_name: string;
4976
5147
  offline_access_codes_supported?: boolean | undefined;
4977
- access_codes_supported?: boolean | undefined;
5148
+ online_access_codes_supported?: boolean | undefined;
4978
5149
  accessory_keypad_supported?: boolean | undefined;
4979
5150
  };
4980
5151
  has_direct_power?: boolean | undefined;
@@ -5495,7 +5666,7 @@ export interface Routes {
5495
5666
  display_name: string;
5496
5667
  manufacturer_display_name: string;
5497
5668
  offline_access_codes_supported?: boolean | undefined;
5498
- access_codes_supported?: boolean | undefined;
5669
+ online_access_codes_supported?: boolean | undefined;
5499
5670
  accessory_keypad_supported?: boolean | undefined;
5500
5671
  };
5501
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.string().nullable(),
4
- is_scheduled_on_device: z.boolean().optional(),
5
- type: z.enum(['time_bound', 'ongoing']),
6
- is_waiting_for_code_assignment: z.boolean().optional(),
7
- access_code_id: z.string().uuid(),
8
- device_id: z.string().uuid(),
9
- name: z.string().nullable(),
10
- code: z.string().nullable(),
11
- created_at: z.string().datetime(),
12
- errors: z.any(),
13
- warnings: z.any(),
14
- is_managed: z.literal(true),
15
- starts_at: z.string().datetime().nullable().optional(),
16
- ends_at: z.string().datetime().nullable().optional(),
17
- status: z.enum(['setting', 'set', 'unset', 'removing', 'unknown']),
18
- is_backup_access_code_available: z.boolean(),
19
- is_backup: z.boolean().optional(),
20
- pulled_backup_access_code_id: z.string().uuid().nullable().optional(),
21
- is_external_modification_allowed: z.boolean(),
22
- is_one_time_use: z.boolean(),
23
- is_offline_access_code: z.boolean(),
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