@seamapi/types 1.1037.0 → 1.1038.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 (121) hide show
  1. package/lib/seam/connect/models/access-codes/managed-access-code.js +6 -16
  2. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  3. package/lib/seam/connect/models/access-codes/pending-mutations.js +7 -20
  4. package/lib/seam/connect/models/access-codes/pending-mutations.js.map +1 -1
  5. package/lib/seam/connect/models/access-grants/access-grant.js +6 -19
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/access-method.js +10 -37
  8. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  9. package/lib/seam/connect/models/access-grants/pending-mutations.js +6 -22
  10. package/lib/seam/connect/models/access-grants/pending-mutations.js.map +1 -1
  11. package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -4
  12. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  13. package/lib/seam/connect/models/acs/acs-access-group.js +4 -12
  14. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  15. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +4 -10
  16. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -1
  17. package/lib/seam/connect/models/acs/acs-credential-pool.js +2 -1
  18. package/lib/seam/connect/models/acs/acs-credential-pool.js.map +1 -1
  19. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js +3 -5
  20. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js.map +1 -1
  21. package/lib/seam/connect/models/acs/acs-credential.js +9 -27
  22. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  23. package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js +2 -4
  24. package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js.map +1 -1
  25. package/lib/seam/connect/models/acs/acs-encoder.js +3 -8
  26. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  27. package/lib/seam/connect/models/acs/acs-entrance.js +4 -12
  28. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  29. package/lib/seam/connect/models/acs/acs-system.js +4 -12
  30. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  31. package/lib/seam/connect/models/acs/acs-users/acs-user.js +5 -13
  32. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  33. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +5 -13
  34. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
  35. package/lib/seam/connect/models/bridges/bridge-client-session.js +5 -15
  36. package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
  37. package/lib/seam/connect/models/bridges/bridge-connected-system.js +3 -8
  38. package/lib/seam/connect/models/bridges/bridge-connected-system.js.map +1 -1
  39. package/lib/seam/connect/models/bridges/bridge.js +2 -4
  40. package/lib/seam/connect/models/bridges/bridge.js.map +1 -1
  41. package/lib/seam/connect/models/client-sessions/client-session.js +3 -8
  42. package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
  43. package/lib/seam/connect/models/connect-webviews/connect-webview.js +3 -7
  44. package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
  45. package/lib/seam/connect/models/connected-accounts/connected-account.js +4 -11
  46. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  47. package/lib/seam/connect/models/customer/access-grant-resources.js +3 -6
  48. package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
  49. package/lib/seam/connect/models/customer/customer.js +2 -4
  50. package/lib/seam/connect/models/customer/customer.js.map +1 -1
  51. package/lib/seam/connect/models/customization-profiles/customization-profile.js +2 -1
  52. package/lib/seam/connect/models/customization-profiles/customization-profile.js.map +1 -1
  53. package/lib/seam/connect/models/datetime.d.ts +2 -0
  54. package/lib/seam/connect/models/datetime.js +3 -0
  55. package/lib/seam/connect/models/datetime.js.map +1 -0
  56. package/lib/seam/connect/models/devices/device.js +4 -12
  57. package/lib/seam/connect/models/devices/device.js.map +1 -1
  58. package/lib/seam/connect/models/devices/phone.js +3 -8
  59. package/lib/seam/connect/models/devices/phone.js.map +1 -1
  60. package/lib/seam/connect/models/events/common.js +5 -16
  61. package/lib/seam/connect/models/events/common.js.map +1 -1
  62. package/lib/seam/connect/models/index.d.ts +1 -0
  63. package/lib/seam/connect/models/index.js +1 -0
  64. package/lib/seam/connect/models/index.js.map +1 -1
  65. package/lib/seam/connect/models/instant-keys/instant-key.js +3 -8
  66. package/lib/seam/connect/models/instant-keys/instant-key.js.map +1 -1
  67. package/lib/seam/connect/models/partner/customer-portal.js +3 -8
  68. package/lib/seam/connect/models/partner/customer-portal.js.map +1 -1
  69. package/lib/seam/connect/models/partner/magic-link.js +3 -8
  70. package/lib/seam/connect/models/partner/magic-link.js.map +1 -1
  71. package/lib/seam/connect/models/schedule.js +3 -7
  72. package/lib/seam/connect/models/schedule.js.map +1 -1
  73. package/lib/seam/connect/models/spaces/space.js +2 -4
  74. package/lib/seam/connect/models/spaces/space.js.map +1 -1
  75. package/lib/seam/connect/models/thermostats/thermostat-program.js +3 -8
  76. package/lib/seam/connect/models/thermostats/thermostat-program.js.map +1 -1
  77. package/lib/seam/connect/models/thermostats/thermostat-schedule.js +5 -16
  78. package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
  79. package/lib/seam/connect/models/user-identities/user-identity.js +4 -12
  80. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  81. package/package.json +1 -1
  82. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  83. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +8 -16
  84. package/src/lib/seam/connect/models/access-codes/pending-mutations.ts +12 -22
  85. package/src/lib/seam/connect/models/access-grants/access-grant.ts +14 -19
  86. package/src/lib/seam/connect/models/access-grants/access-method.ts +19 -37
  87. package/src/lib/seam/connect/models/access-grants/pending-mutations.ts +9 -22
  88. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +5 -6
  89. package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -12
  90. package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +7 -10
  91. package/src/lib/seam/connect/models/acs/acs-credential-pool.ts +3 -1
  92. package/src/lib/seam/connect/models/acs/acs-credential-provisioning-automation.ts +6 -5
  93. package/src/lib/seam/connect/models/acs/acs-credential.ts +15 -29
  94. package/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts +5 -4
  95. package/src/lib/seam/connect/models/acs/acs-encoder.ts +8 -10
  96. package/src/lib/seam/connect/models/acs/acs-entrance.ts +10 -14
  97. package/src/lib/seam/connect/models/acs/acs-system.ts +11 -14
  98. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +11 -15
  99. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +7 -13
  100. package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +12 -17
  101. package/src/lib/seam/connect/models/bridges/bridge-connected-system.ts +8 -10
  102. package/src/lib/seam/connect/models/bridges/bridge.ts +5 -4
  103. package/src/lib/seam/connect/models/client-sessions/client-session.ts +8 -12
  104. package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +5 -7
  105. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +8 -11
  106. package/src/lib/seam/connect/models/customer/access-grant-resources.ts +3 -6
  107. package/src/lib/seam/connect/models/customer/customer.ts +5 -4
  108. package/src/lib/seam/connect/models/customization-profiles/customization-profile.ts +2 -1
  109. package/src/lib/seam/connect/models/datetime.ts +3 -0
  110. package/src/lib/seam/connect/models/devices/device.ts +10 -12
  111. package/src/lib/seam/connect/models/devices/phone.ts +7 -8
  112. package/src/lib/seam/connect/models/events/common.ts +12 -16
  113. package/src/lib/seam/connect/models/index.ts +1 -0
  114. package/src/lib/seam/connect/models/instant-keys/instant-key.ts +8 -8
  115. package/src/lib/seam/connect/models/partner/customer-portal.ts +8 -8
  116. package/src/lib/seam/connect/models/partner/magic-link.ts +8 -8
  117. package/src/lib/seam/connect/models/schedule.ts +6 -9
  118. package/src/lib/seam/connect/models/spaces/space.ts +5 -4
  119. package/src/lib/seam/connect/models/thermostats/thermostat-program.ts +8 -12
  120. package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +14 -22
  121. package/src/lib/seam/connect/models/user-identities/user-identity.ts +10 -12
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
3
4
  import { schedule } from '../schedule.js'
4
5
  import { acs_access_group_pending_mutations } from './acs-access-groups/pending-mutations.js'
5
6
 
@@ -22,10 +23,9 @@ export type AcsAccessGroupExternalType = z.infer<
22
23
  >
23
24
 
24
25
  const common_acs_access_group_error = z.object({
25
- created_at: z
26
- .string()
27
- .datetime()
28
- .describe('Date and time at which Seam created the error.'),
26
+ created_at: datetime.describe(
27
+ 'Date and time at which Seam created the error.',
28
+ ),
29
29
  message: z
30
30
  .string()
31
31
  .describe(
@@ -62,10 +62,9 @@ const _acs_access_group_error_map = z.object({
62
62
  export type AcsAccessGroupErrorMap = z.infer<typeof _acs_access_group_error_map>
63
63
 
64
64
  const common_acs_access_group_warning = z.object({
65
- created_at: z
66
- .string()
67
- .datetime()
68
- .describe('Date and time at which Seam created the warning.'),
65
+ created_at: datetime.describe(
66
+ 'Date and time at which Seam created the warning.',
67
+ ),
69
68
  message: z
70
69
  .string()
71
70
  .describe(
@@ -146,10 +145,9 @@ const common_acs_access_group = z.object({
146
145
  .describe(
147
146
  'Display name that corresponds to the brand-specific terminology for the access group type.',
148
147
  ),
149
- created_at: z
150
- .string()
151
- .datetime()
152
- .describe('Date and time at which the access group was created.'),
148
+ created_at: datetime.describe(
149
+ 'Date and time at which the access group was created.',
150
+ ),
153
151
  errors: z
154
152
  .array(acs_access_group_errors)
155
153
  .describe('Errors associated with the `acs_access_group`.'),
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../../datetime.js'
4
+
3
5
  const common_pending_mutation = z.object({
4
- created_at: z
5
- .string()
6
- .datetime()
7
- .describe('Date and time at which the mutation was created.'),
6
+ created_at: datetime.describe(
7
+ 'Date and time at which the mutation was created.',
8
+ ),
8
9
  message: z.string().describe('Detailed description of the mutation.'),
9
10
  })
10
11
 
@@ -56,14 +57,10 @@ const updating_group_information = common_pending_mutation
56
57
 
57
58
  const access_schedule = z
58
59
  .object({
59
- starts_at: z
60
- .string()
61
- .datetime()
60
+ starts_at: datetime
62
61
  .nullable()
63
62
  .describe('Starting time for the access schedule.'),
64
- ends_at: z
65
- .string()
66
- .datetime()
63
+ ends_at: datetime
67
64
  .nullable()
68
65
  .describe('Ending time for the access schedule.'),
69
66
  })
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  export const acs_credential_pool_external_type = z.enum(['hid_part_number'])
4
6
 
5
7
  export type AcsCredentialPoolExternalType = z.infer<
@@ -12,7 +14,7 @@ export const acs_credential_pool = z.object({
12
14
  display_name: z.string().min(1),
13
15
  external_type: acs_credential_pool_external_type,
14
16
  external_type_display_name: z.string(),
15
- created_at: z.string().datetime(),
17
+ created_at: datetime,
16
18
  workspace_id: z.string().uuid(),
17
19
  }).describe(`
18
20
  ---
@@ -1,10 +1,12 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  export const acs_credential_provisioning_automation = z.object({
4
6
  acs_credential_provisioning_automation_id: z.string().uuid(),
5
7
  credential_manager_acs_system_id: z.string().uuid(),
6
8
  user_identity_id: z.string().uuid(),
7
- created_at: z.string().datetime(),
9
+ created_at: datetime,
8
10
  workspace_id: z.string().uuid(),
9
11
  }).describe(`
10
12
  ---
@@ -31,10 +33,9 @@ export const enrollment_automation = z.object({
31
33
  .describe(
32
34
  'ID of the associated [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).',
33
35
  ),
34
- created_at: z
35
- .string()
36
- .datetime()
37
- .describe('Date and time at which the enrollment automation was created.'),
36
+ created_at: datetime.describe(
37
+ 'Date and time at which the enrollment automation was created.',
38
+ ),
38
39
  workspace_id: z
39
40
  .string()
40
41
  .uuid()
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
3
4
  import {
4
5
  acs_credential_akiles_metadata,
5
6
  acs_credential_visionline_metadata,
@@ -36,10 +37,9 @@ export type AcsCredentialExternalType = z.infer<
36
37
  >
37
38
 
38
39
  const common_acs_credential_warning = z.object({
39
- created_at: z
40
- .string()
41
- .datetime()
42
- .describe('Date and time at which Seam created the warning.'),
40
+ created_at: datetime.describe(
41
+ 'Date and time at which Seam created the warning.',
42
+ ),
43
43
  message: z
44
44
  .string()
45
45
  .describe(
@@ -231,9 +231,7 @@ const common_acs_credential = z.object({
231
231
  .describe(
232
232
  'Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.',
233
233
  ),
234
- issued_at: z
235
- .string()
236
- .datetime()
234
+ issued_at: datetime
237
235
  .optional()
238
236
  .nullable()
239
237
  .describe(
@@ -253,12 +251,9 @@ const common_acs_credential = z.object({
253
251
  .describe(
254
252
  'Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.',
255
253
  ),
256
- created_at: z
257
- .string()
258
- .datetime()
259
- .describe(
260
- 'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.',
261
- ),
254
+ created_at: datetime.describe(
255
+ 'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.',
256
+ ),
262
257
  workspace_id: z
263
258
  .string()
264
259
  .uuid()
@@ -282,10 +277,9 @@ const common_acs_credential = z.object({
282
277
  z.object({
283
278
  error_code: z.string(),
284
279
  message: z.string(),
285
- created_at: z
286
- .string()
287
- .datetime()
288
- .describe('Date and time at which Seam created the error.'),
280
+ created_at: datetime.describe(
281
+ 'Date and time at which Seam created the error.',
282
+ ),
289
283
  }),
290
284
  )
291
285
  .describe(
@@ -309,9 +303,7 @@ const common_acs_credential = z.object({
309
303
  .describe(
310
304
  'Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.',
311
305
  ),
312
- latest_desired_state_synced_with_provider_at: z
313
- .string()
314
- .datetime()
306
+ latest_desired_state_synced_with_provider_at: datetime
315
307
  .nullable()
316
308
  .optional()
317
309
  .describe(
@@ -366,9 +358,7 @@ export const unmanaged_acs_credential = common_acs_credential.merge(
366
358
  `)
367
359
 
368
360
  export const acs_credential_on_encoder = z.object({
369
- created_at: z
370
- .string()
371
- .datetime()
361
+ created_at: datetime
372
362
  .nullable()
373
363
  .describe(
374
364
  'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.',
@@ -381,16 +371,12 @@ export const acs_credential_on_encoder = z.object({
381
371
  'Indicates whether the credential has been issued (encoded onto a card).',
382
372
  ),
383
373
 
384
- starts_at: z
385
- .string()
386
- .datetime()
374
+ starts_at: datetime
387
375
  .nullable()
388
376
  .describe(
389
377
  'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) becomes usable.',
390
378
  ),
391
- ends_at: z
392
- .string()
393
- .datetime()
379
+ ends_at: datetime
394
380
  .nullable()
395
381
  .describe(
396
382
  'Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) will stop being usable.',
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../../datetime.js'
4
+
3
5
  const common_pending_mutation = z.object({
4
- created_at: z
5
- .string()
6
- .datetime()
7
- .describe('Date and time at which the mutation was created.'),
6
+ created_at: datetime.describe(
7
+ 'Date and time at which the mutation was created.',
8
+ ),
8
9
  message: z.string().describe('Detailed description of the mutation.'),
9
10
  })
10
11
 
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  const common_acs_encoder_error = z.object({
4
- created_at: z
5
- .string()
6
- .datetime()
7
- .describe('Date and time at which Seam created the error.'),
6
+ created_at: datetime.describe(
7
+ 'Date and time at which Seam created the error.',
8
+ ),
8
9
  message: z
9
10
  .string()
10
11
  .describe(
@@ -65,12 +66,9 @@ export const acs_encoder = z.object({
65
66
  .describe(
66
67
  'Errors associated with the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).',
67
68
  ),
68
- created_at: z
69
- .string()
70
- .datetime()
71
- .describe(
72
- 'Date and time at which the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) was created.',
73
- ),
69
+ created_at: datetime.describe(
70
+ 'Date and time at which the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) was created.',
71
+ ),
74
72
  display_name: z
75
73
  .string()
76
74
  .describe(
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
3
4
  import { acs_entrance_akiles_metadata } from './metadata/akiles.js'
4
5
  import { acs_entrance_avigilon_alta_metadata } from './metadata/avigilon-alta.js'
5
6
  import { acs_entrance_dormakaba_ambiance_metadata } from './metadata/dormakaba-ambiance.js'
@@ -18,10 +19,9 @@ const warning_code_description =
18
19
  'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
19
20
 
20
21
  const common_acs_entrance_warning = z.object({
21
- created_at: z
22
- .string()
23
- .datetime()
24
- .describe('Date and time at which Seam created the warning.'),
22
+ created_at: datetime.describe(
23
+ 'Date and time at which Seam created the warning.',
24
+ ),
25
25
  message: z
26
26
  .string()
27
27
  .describe(
@@ -152,12 +152,9 @@ export const acs_entrance = z
152
152
  space_ids: z
153
153
  .array(z.string().uuid())
154
154
  .describe('IDs of the spaces that the entrance is in.'),
155
- created_at: z
156
- .string()
157
- .datetime()
158
- .describe(
159
- 'Date and time at which the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) was created.',
160
- ),
155
+ created_at: datetime.describe(
156
+ 'Date and time at which the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) was created.',
157
+ ),
161
158
  display_name: z
162
159
  .string()
163
160
  .describe(
@@ -182,10 +179,9 @@ export const acs_entrance = z
182
179
  .describe(
183
180
  'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
184
181
  ),
185
- created_at: z
186
- .string()
187
- .datetime()
188
- .describe('Date and time at which Seam created the error.'),
182
+ created_at: datetime.describe(
183
+ 'Date and time at which Seam created the error.',
184
+ ),
189
185
  }),
190
186
  )
191
187
  .describe(
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  export const acs_system_capability_flags = z.object({
4
6
  // Access method type capability flags are not publicly exposed for ACS systems
5
7
  // They are only available for ACS entrances
@@ -38,10 +40,9 @@ export const acs_system_external_type = z.enum([
38
40
  export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>
39
41
 
40
42
  const common_acs_system_error = z.object({
41
- created_at: z
42
- .string()
43
- .datetime()
44
- .describe('Date and time at which Seam created the error.'),
43
+ created_at: datetime.describe(
44
+ 'Date and time at which Seam created the error.',
45
+ ),
45
46
  message: z
46
47
  .string()
47
48
  .describe(
@@ -200,10 +201,9 @@ const _acs_system_error_map = z.object({
200
201
  export type AcsSystemErrorMap = z.infer<typeof _acs_system_error_map>
201
202
 
202
203
  const common_acs_system_warning = z.object({
203
- created_at: z
204
- .string()
205
- .datetime()
206
- .describe('Date and time at which Seam created the warning.'),
204
+ created_at: datetime.describe(
205
+ 'Date and time at which Seam created the warning.',
206
+ ),
207
207
  message: z
208
208
  .string()
209
209
  .describe(
@@ -377,12 +377,9 @@ export const acs_system = z
377
377
  .describe(
378
378
  'Name of the [access control system](https://docs.seam.co/low-level-apis/access-systems).',
379
379
  ),
380
- created_at: z
381
- .string()
382
- .datetime()
383
- .describe(
384
- 'Date and time at which the [access control system](https://docs.seam.co/low-level-apis/access-systems) was created.',
385
- ),
380
+ created_at: datetime.describe(
381
+ 'Date and time at which the [access control system](https://docs.seam.co/low-level-apis/access-systems) was created.',
382
+ ),
386
383
  workspace_id: z
387
384
  .string()
388
385
  .uuid()
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../../datetime.js'
3
4
  import { loose_phone_number } from '../../phone-number.js'
4
5
  import { schedule } from '../../schedule.js'
5
6
  import { acs_user_salto_ks_metadata } from '../metadata/salto.js'
@@ -21,10 +22,9 @@ export const acs_user_external_type = z.enum([
21
22
  export type AcsUserExternalType = z.infer<typeof acs_user_external_type>
22
23
 
23
24
  const common_acs_user_error = z.object({
24
- created_at: z
25
- .string()
26
- .datetime()
27
- .describe('Date and time at which Seam created the error.'),
25
+ created_at: datetime.describe(
26
+ 'Date and time at which Seam created the error.',
27
+ ),
28
28
  message: z
29
29
  .string()
30
30
  .describe(
@@ -122,10 +122,9 @@ const _acs_users_error_map = z.object({
122
122
  export type AcsUsersErrorMap = z.infer<typeof _acs_users_error_map>
123
123
 
124
124
  const common_acs_user_warning = z.object({
125
- created_at: z
126
- .string()
127
- .datetime()
128
- .describe('Date and time at which Seam created the warning.'),
125
+ created_at: datetime.describe(
126
+ 'Date and time at which Seam created the warning.',
127
+ ),
129
128
  message: z
130
129
  .string()
131
130
  .describe(
@@ -254,12 +253,9 @@ const common_acs_user = z
254
253
  .describe(
255
254
  'ID of the workspace that contains the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).',
256
255
  ),
257
- created_at: z
258
- .string()
259
- .datetime()
260
- .describe(
261
- 'Date and time at which the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created.',
262
- ),
256
+ created_at: datetime.describe(
257
+ 'Date and time at which the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created.',
258
+ ),
263
259
  display_name: z
264
260
  .string()
265
261
  .describe(
@@ -330,7 +326,7 @@ const common_acs_user = z
330
326
  .describe(
331
327
  'Pending mutations associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.',
332
328
  ),
333
- last_successful_sync_at: z.string().datetime().nullable().describe(`
329
+ last_successful_sync_at: datetime.nullable().describe(`
334
330
  ---
335
331
  undocumented: Only used internally.
336
332
  ---
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../../datetime.js'
3
4
  import { loose_phone_number } from '../../phone-number.js'
4
5
 
5
6
  const common_pending_mutation = z.object({
6
- created_at: z
7
- .string()
8
- .datetime()
9
- .describe('Date and time at which the mutation was created.'),
7
+ created_at: datetime.describe(
8
+ 'Date and time at which the mutation was created.',
9
+ ),
10
10
  message: z.string().describe('Detailed description of the mutation.'),
11
11
  })
12
12
 
@@ -41,9 +41,7 @@ const deferring_creation = common_pending_mutation
41
41
  .describe(
42
42
  'Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time.',
43
43
  ),
44
- scheduled_at: z
45
- .string()
46
- .datetime()
44
+ scheduled_at: datetime
47
45
  .optional()
48
46
  .nullable()
49
47
  .describe('Optional: When the user creation is scheduled to occur.'),
@@ -83,14 +81,10 @@ export const updating_user_information_mutation =
83
81
 
84
82
  const access_schedule = z
85
83
  .object({
86
- starts_at: z
87
- .string()
88
- .datetime()
84
+ starts_at: datetime
89
85
  .nullable()
90
86
  .describe('Starting time for the access schedule.'),
91
- ends_at: z
92
- .string()
93
- .datetime()
87
+ ends_at: datetime
94
88
  .nullable()
95
89
  .describe('Starting time for the access schedule.'),
96
90
  })
@@ -1,15 +1,16 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  const common_bridge_client_session_error = z.object({
4
6
  message: z
5
7
  .string()
6
8
  .describe(
7
9
  'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
8
10
  ),
9
- created_at: z
10
- .string()
11
- .datetime()
12
- .describe('Date and time at which Seam created the error.'),
11
+ created_at: datetime.describe(
12
+ 'Date and time at which Seam created the error.',
13
+ ),
13
14
  })
14
15
 
15
16
  const error_code_description =
@@ -89,12 +90,9 @@ export type BridgeClientSessionErrorMap = z.infer<
89
90
  >
90
91
 
91
92
  export const bridge_client_session = z.object({
92
- created_at: z
93
- .string()
94
- .datetime()
95
- .describe(
96
- 'Date and time at which the Seam Bridge client session was created.',
97
- ),
93
+ created_at: datetime.describe(
94
+ 'Date and time at which the Seam Bridge client session was created.',
95
+ ),
98
96
  bridge_client_session_id: z
99
97
  .string()
100
98
  .uuid()
@@ -110,10 +108,9 @@ export const bridge_client_session = z.object({
110
108
  .describe(
111
109
  'Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace.',
112
110
  ),
113
- pairing_code_expires_at: z
114
- .string()
115
- .datetime()
116
- .describe('Date and time at which the pairing code expires.'),
111
+ pairing_code_expires_at: datetime.describe(
112
+ 'Date and time at which the pairing code expires.',
113
+ ),
117
114
  tailscale_hostname: z
118
115
  .string()
119
116
  .describe('Tailscale hostname for Seam Bridge.'),
@@ -137,9 +134,7 @@ export const bridge_client_session = z.object({
137
134
  .string()
138
135
  .nullable()
139
136
  .describe('Telemetry token for the Seam Bridge client session.'),
140
- telemetry_token_expires_at: z
141
- .string()
142
- .datetime()
137
+ telemetry_token_expires_at: datetime
143
138
  .nullable()
144
139
  .describe(
145
140
  'Date and time at which the telemetry token for the Seam Bridge client session expires.',
@@ -1,24 +1,22 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  export const bridge_connected_system = z.object({
4
6
  bridge_id: z
5
7
  .string()
6
8
  .uuid()
7
9
  .describe('ID of Seam Bridge connected to the access system.'),
8
- bridge_created_at: z
9
- .string()
10
- .datetime()
11
- .describe('Date and time at which Seam Bridge was created.'),
10
+ bridge_created_at: datetime.describe(
11
+ 'Date and time at which Seam Bridge was created.',
12
+ ),
12
13
  connected_account_id: z
13
14
  .string()
14
15
  .uuid()
15
16
  .describe('ID of the connected account associated with Seam Bridge.'),
16
- connected_account_created_at: z
17
- .string()
18
- .datetime()
19
- .describe(
20
- 'Date and time at which the connected account associated with Seam Bridge was created.',
21
- ),
17
+ connected_account_created_at: datetime.describe(
18
+ 'Date and time at which the connected account associated with Seam Bridge was created.',
19
+ ),
22
20
  acs_system_id: z
23
21
  .string()
24
22
  .uuid()
@@ -1,15 +1,16 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  export const bridge = z.object({
4
6
  bridge_id: z.string().uuid().describe('ID of Seam Bridge.'),
5
7
  workspace_id: z
6
8
  .string()
7
9
  .uuid()
8
10
  .describe('ID of the workspace that contains Seam Bridge.'),
9
- created_at: z
10
- .string()
11
- .datetime()
12
- .describe('Date and time at which Seam Bridge was created.'),
11
+ created_at: datetime.describe(
12
+ 'Date and time at which Seam Bridge was created.',
13
+ ),
13
14
  }).describe(`
14
15
  ---
15
16
  undocumented: Unreleased.
@@ -1,23 +1,19 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { datetime } from '../datetime.js'
4
+
3
5
  export const client_session = z.object({
4
6
  client_session_id: z.string().uuid().describe('ID of the client session.'),
5
7
  workspace_id: z
6
8
  .string()
7
9
  .uuid()
8
10
  .describe('ID of the workspace associated with the client session.'),
9
- created_at: z
10
- .string()
11
- .datetime()
12
- .describe(
13
- 'Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) was created.',
14
- ),
15
- expires_at: z
16
- .string()
17
- .datetime()
18
- .describe(
19
- 'Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) expires.',
20
- ),
11
+ created_at: datetime.describe(
12
+ 'Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) was created.',
13
+ ),
14
+ expires_at: datetime.describe(
15
+ 'Date and time at which the [client session](https://docs.seam.co/core-concepts/authentication/client-session-tokens) expires.',
16
+ ),
21
17
  token: z
22
18
  .string()
23
19
  .describe(
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  import { custom_metadata } from '../custom-metadata.js'
4
+ import { datetime } from '../datetime.js'
4
5
  import { provider_capability } from '../provider-capability.js'
5
6
 
6
7
  export const connect_webview_device_selection_mode = z.enum([
@@ -15,10 +16,9 @@ export const connect_webview = z.object({
15
16
  .string()
16
17
  .uuid()
17
18
  .describe('ID of the workspace that contains the Connect Webview.'),
18
- created_at: z
19
- .string()
20
- .datetime()
21
- .describe('Date and time at which the Connect Webview was created.'),
19
+ created_at: datetime.describe(
20
+ 'Date and time at which the Connect Webview was created.',
21
+ ),
22
22
  connected_account_id: z
23
23
  .string()
24
24
  .uuid()
@@ -104,9 +104,7 @@ export const connect_webview = z.object({
104
104
  .describe(
105
105
  'Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.',
106
106
  ),
107
- authorized_at: z
108
- .string()
109
- .datetime()
107
+ authorized_at: datetime
110
108
  .nullable()
111
109
  .describe(
112
110
  'Date and time at which the user authorized (through the Connect Webview) the management of their devices.',