@seamapi/types 1.67.0 → 1.69.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 (37) hide show
  1. package/dist/connect.cjs +132 -34
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +205 -38
  4. package/dist/devicedb.cjs +6 -0
  5. package/dist/devicedb.cjs.map +1 -1
  6. package/dist/devicedb.d.cts +62 -0
  7. package/lib/seam/connect/openapi.d.ts +143 -11
  8. package/lib/seam/connect/openapi.js +120 -22
  9. package/lib/seam/connect/openapi.js.map +1 -1
  10. package/lib/seam/connect/route-types.d.ts +62 -27
  11. package/lib/seam/connect/unstable/models/access-codes/unmanaged-access-code.d.ts +6 -6
  12. package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -7
  13. package/lib/seam/connect/unstable/models/acs/credential.js +3 -2
  14. package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
  15. package/lib/seam/connect/unstable/models/acs/user.d.ts +18 -9
  16. package/lib/seam/connect/unstable/models/acs/user.js +2 -3
  17. package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
  18. package/lib/seam/connect/unstable/models/schedule.d.ts +21 -0
  19. package/lib/seam/connect/unstable/models/schedule.js +12 -0
  20. package/lib/seam/connect/unstable/models/schedule.js.map +1 -0
  21. package/lib/seam/devicedb/public-models/device-model-v1.d.ts +10 -0
  22. package/lib/seam/devicedb/public-models/manufacturer.d.ts +4 -0
  23. package/lib/seam/devicedb/public-models/manufacturer.js +2 -0
  24. package/lib/seam/devicedb/public-models/manufacturer.js.map +1 -1
  25. package/lib/seam/devicedb/route-specs.d.ts +42 -0
  26. package/lib/seam/devicedb/route-specs.js +8 -0
  27. package/lib/seam/devicedb/route-specs.js.map +1 -1
  28. package/lib/seam/devicedb/route-types.d.ts +6 -0
  29. package/package.json +1 -1
  30. package/src/lib/seam/connect/openapi.ts +120 -22
  31. package/src/lib/seam/connect/route-types.ts +121 -27
  32. package/src/lib/seam/connect/unstable/models/acs/credential.ts +3 -2
  33. package/src/lib/seam/connect/unstable/models/acs/user.ts +3 -3
  34. package/src/lib/seam/connect/unstable/models/schedule.ts +13 -0
  35. package/src/lib/seam/devicedb/public-models/manufacturer.ts +2 -0
  36. package/src/lib/seam/devicedb/route-specs.ts +8 -0
  37. package/src/lib/seam/devicedb/route-types.ts +30 -0
@@ -235,6 +235,14 @@ export default {
235
235
  },
236
236
  acs_user: {
237
237
  properties: {
238
+ access_schedule: {
239
+ properties: {
240
+ ends_at: { format: 'date-time', type: 'string' },
241
+ starts_at: { format: 'date-time', type: 'string' },
242
+ },
243
+ required: ['starts_at', 'ends_at'],
244
+ type: 'object',
245
+ },
238
246
  acs_system_id: { format: 'uuid', type: 'string' },
239
247
  acs_user_id: { format: 'uuid', type: 'string' },
240
248
  created_at: { format: 'date-time', type: 'string' },
@@ -245,7 +253,6 @@ export default {
245
253
  type: 'string',
246
254
  },
247
255
  email_address: { format: 'email', type: 'string' },
248
- ends_at: { format: 'date-time', type: 'string' },
249
256
  external_type: {
250
257
  enum: ['pti_user', 'brivo_user', 'hid_cm_user', 'salto_site_user'],
251
258
  type: 'string',
@@ -254,9 +261,7 @@ export default {
254
261
  full_name: { type: 'string' },
255
262
  hid_acs_system_id: { format: 'uuid', type: 'string' },
256
263
  is_suspended: { type: 'boolean' },
257
- is_virtual: { type: 'boolean' },
258
264
  phone_number: { nullable: true, type: 'string' },
259
- starts_at: { format: 'date-time', type: 'string' },
260
265
  workspace_id: { format: 'uuid', type: 'string' },
261
266
  },
262
267
  required: [
@@ -266,7 +271,6 @@ export default {
266
271
  'created_at',
267
272
  'display_name',
268
273
  'is_suspended',
269
- 'is_virtual',
270
274
  ],
271
275
  type: 'object',
272
276
  },
@@ -3659,6 +3663,7 @@ export default {
3659
3663
  'pti_card',
3660
3664
  'brivo_credential',
3661
3665
  'hid_credential',
3666
+ 'visionline_card',
3662
3667
  ],
3663
3668
  type: 'string',
3664
3669
  },
@@ -3670,8 +3675,6 @@ export default {
3670
3675
  'acs_system_id',
3671
3676
  'display_name',
3672
3677
  'access_method',
3673
- 'external_type',
3674
- 'external_type_display_name',
3675
3678
  'created_at',
3676
3679
  'workspace_id',
3677
3680
  ],
@@ -3741,6 +3744,7 @@ export default {
3741
3744
  'pti_card',
3742
3745
  'brivo_credential',
3743
3746
  'hid_credential',
3747
+ 'visionline_card',
3744
3748
  ],
3745
3749
  type: 'string',
3746
3750
  },
@@ -3752,8 +3756,6 @@ export default {
3752
3756
  'acs_system_id',
3753
3757
  'display_name',
3754
3758
  'access_method',
3755
- 'external_type',
3756
- 'external_type_display_name',
3757
3759
  'created_at',
3758
3760
  'workspace_id',
3759
3761
  ],
@@ -3795,7 +3797,23 @@ export default {
3795
3797
  type: 'string',
3796
3798
  },
3797
3799
  acs_user_id: { format: 'uuid', type: 'string' },
3800
+ assa_abloy_credential_service_mobile_endpoint_id: {
3801
+ format: 'uuid',
3802
+ type: 'string',
3803
+ },
3804
+ card_format: { enum: ['TLCode', 'rfid48'], type: 'string' },
3798
3805
  code: { pattern: '^\\d+$', type: 'string' },
3806
+ external_type: {
3807
+ enum: [
3808
+ 'pti_card',
3809
+ 'brivo_credential',
3810
+ 'hid_credential',
3811
+ 'visionline_card',
3812
+ ],
3813
+ type: 'string',
3814
+ },
3815
+ is_multi_phone_sync_credential: { type: 'boolean' },
3816
+ is_override_key: { type: 'boolean' },
3799
3817
  },
3800
3818
  required: ['acs_user_id', 'access_method'],
3801
3819
  type: 'object',
@@ -3830,6 +3848,7 @@ export default {
3830
3848
  'pti_card',
3831
3849
  'brivo_credential',
3832
3850
  'hid_credential',
3851
+ 'visionline_card',
3833
3852
  ],
3834
3853
  type: 'string',
3835
3854
  },
@@ -3841,8 +3860,6 @@ export default {
3841
3860
  'acs_system_id',
3842
3861
  'display_name',
3843
3862
  'access_method',
3844
- 'external_type',
3845
- 'external_type_display_name',
3846
3863
  'created_at',
3847
3864
  'workspace_id',
3848
3865
  ],
@@ -3957,6 +3974,7 @@ export default {
3957
3974
  'pti_card',
3958
3975
  'brivo_credential',
3959
3976
  'hid_credential',
3977
+ 'visionline_card',
3960
3978
  ],
3961
3979
  type: 'string',
3962
3980
  },
@@ -3968,8 +3986,6 @@ export default {
3968
3986
  'acs_system_id',
3969
3987
  'display_name',
3970
3988
  'access_method',
3971
- 'external_type',
3972
- 'external_type_display_name',
3973
3989
  'created_at',
3974
3990
  'workspace_id',
3975
3991
  ],
@@ -4061,6 +4077,7 @@ export default {
4061
4077
  'pti_card',
4062
4078
  'brivo_credential',
4063
4079
  'hid_credential',
4080
+ 'visionline_card',
4064
4081
  ],
4065
4082
  type: 'string',
4066
4083
  },
@@ -4072,8 +4089,6 @@ export default {
4072
4089
  'acs_system_id',
4073
4090
  'display_name',
4074
4091
  'access_method',
4075
- 'external_type',
4076
- 'external_type_display_name',
4077
4092
  'created_at',
4078
4093
  'workspace_id',
4079
4094
  ],
@@ -4149,6 +4164,7 @@ export default {
4149
4164
  'pti_card',
4150
4165
  'brivo_credential',
4151
4166
  'hid_credential',
4167
+ 'visionline_card',
4152
4168
  ],
4153
4169
  type: 'string',
4154
4170
  },
@@ -4160,8 +4176,6 @@ export default {
4160
4176
  'acs_system_id',
4161
4177
  'display_name',
4162
4178
  'access_method',
4163
- 'external_type',
4164
- 'external_type_display_name',
4165
4179
  'created_at',
4166
4180
  'workspace_id',
4167
4181
  ],
@@ -4231,6 +4245,7 @@ export default {
4231
4245
  'pti_card',
4232
4246
  'brivo_credential',
4233
4247
  'hid_credential',
4248
+ 'visionline_card',
4234
4249
  ],
4235
4250
  type: 'string',
4236
4251
  },
@@ -4242,8 +4257,6 @@ export default {
4242
4257
  'acs_system_id',
4243
4258
  'display_name',
4244
4259
  'access_method',
4245
- 'external_type',
4246
- 'external_type_display_name',
4247
4260
  'created_at',
4248
4261
  'workspace_id',
4249
4262
  ],
@@ -4316,6 +4329,7 @@ export default {
4316
4329
  'pti_card',
4317
4330
  'brivo_credential',
4318
4331
  'hid_credential',
4332
+ 'visionline_card',
4319
4333
  ],
4320
4334
  type: 'string',
4321
4335
  },
@@ -4327,8 +4341,6 @@ export default {
4327
4341
  'acs_system_id',
4328
4342
  'display_name',
4329
4343
  'access_method',
4330
- 'external_type',
4331
- 'external_type_display_name',
4332
4344
  'created_at',
4333
4345
  'workspace_id',
4334
4346
  ],
@@ -4398,6 +4410,7 @@ export default {
4398
4410
  'pti_card',
4399
4411
  'brivo_credential',
4400
4412
  'hid_credential',
4413
+ 'visionline_card',
4401
4414
  ],
4402
4415
  type: 'string',
4403
4416
  },
@@ -4409,8 +4422,6 @@ export default {
4409
4422
  'acs_system_id',
4410
4423
  'display_name',
4411
4424
  'access_method',
4412
- 'external_type',
4413
- 'external_type_display_name',
4414
4425
  'created_at',
4415
4426
  'workspace_id',
4416
4427
  ],
@@ -4796,6 +4807,7 @@ export default {
4796
4807
  email_address: { format: 'email', type: 'string' },
4797
4808
  full_name: { type: 'string' },
4798
4809
  phone_number: { nullable: true, type: 'string' },
4810
+ user_identity_id: { format: 'uuid', type: 'string' },
4799
4811
  },
4800
4812
  required: ['acs_system_id'],
4801
4813
  type: 'object',
@@ -9459,6 +9471,92 @@ export default {
9459
9471
  'x-fern-sdk-method-name': 'create',
9460
9472
  },
9461
9473
  },
9474
+ '/user_identities/enrollment_automations/launch': {
9475
+ post: {
9476
+ operationId: 'userIdentitiesEnrollmentAutomationsLaunchPost',
9477
+ requestBody: {
9478
+ content: {
9479
+ 'application/json': {
9480
+ schema: {
9481
+ properties: {
9482
+ acs_credential_pool_id: { format: 'uuid', type: 'string' },
9483
+ create_credential_manager_user: { type: 'boolean' },
9484
+ credential_manager_acs_system_id: {
9485
+ format: 'uuid',
9486
+ type: 'string',
9487
+ },
9488
+ credential_manager_acs_user_id: {
9489
+ format: 'uuid',
9490
+ type: 'string',
9491
+ },
9492
+ user_identity_id: { format: 'uuid', type: 'string' },
9493
+ },
9494
+ required: [
9495
+ 'user_identity_id',
9496
+ 'credential_manager_acs_system_id',
9497
+ ],
9498
+ type: 'object',
9499
+ },
9500
+ },
9501
+ },
9502
+ },
9503
+ responses: {
9504
+ 200: {
9505
+ content: {
9506
+ 'application/json': {
9507
+ schema: {
9508
+ properties: {
9509
+ enrollment_automation: {
9510
+ properties: {
9511
+ acs_credential_provisioning_automation_id: {
9512
+ format: 'uuid',
9513
+ type: 'string',
9514
+ },
9515
+ created_at: { format: 'date-time', type: 'string' },
9516
+ credential_manager_acs_system_id: {
9517
+ format: 'uuid',
9518
+ type: 'string',
9519
+ },
9520
+ enrollment_automation_id: {
9521
+ format: 'uuid',
9522
+ type: 'string',
9523
+ },
9524
+ user_identity_id: { format: 'uuid', type: 'string' },
9525
+ workspace_id: { format: 'uuid', type: 'string' },
9526
+ },
9527
+ required: [
9528
+ 'acs_credential_provisioning_automation_id',
9529
+ 'credential_manager_acs_system_id',
9530
+ 'user_identity_id',
9531
+ 'created_at',
9532
+ 'workspace_id',
9533
+ 'enrollment_automation_id',
9534
+ ],
9535
+ type: 'object',
9536
+ },
9537
+ ok: { type: 'boolean' },
9538
+ },
9539
+ required: ['enrollment_automation', 'ok'],
9540
+ type: 'object',
9541
+ },
9542
+ },
9543
+ },
9544
+ description: 'OK',
9545
+ },
9546
+ 400: { description: 'Bad Request' },
9547
+ 401: { description: 'Unauthorized' },
9548
+ },
9549
+ security: [
9550
+ { pat_with_workspace: [] },
9551
+ { console_session: [] },
9552
+ { api_key: [] },
9553
+ ],
9554
+ summary: '/user_identities/enrollment_automations/launch',
9555
+ tags: [],
9556
+ 'x-fern-sdk-group-name': ['user_identities', 'enrollment_automations'],
9557
+ 'x-fern-sdk-method-name': 'launch',
9558
+ },
9559
+ },
9462
9560
  '/user_identities/get': {
9463
9561
  post: {
9464
9562
  operationId: 'userIdentitiesGetPost',
@@ -738,9 +738,12 @@ export interface Routes {
738
738
  | undefined
739
739
  external_type_display_name?: string | undefined
740
740
  is_suspended: boolean
741
- starts_at?: string | undefined
742
- ends_at?: string | undefined
743
- is_virtual: boolean
741
+ access_schedule?:
742
+ | {
743
+ starts_at: string
744
+ ends_at: string
745
+ }
746
+ | undefined
744
747
  full_name?: string | undefined
745
748
  /** Deprecated: use email_address. */
746
749
  email?: string | undefined
@@ -824,8 +827,15 @@ export interface Routes {
824
827
  display_name: string
825
828
  code?: (string | undefined) | null
826
829
  access_method: 'code' | 'card' | 'mobile_key'
827
- external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
828
- external_type_display_name: string
830
+ external_type?:
831
+ | (
832
+ | 'pti_card'
833
+ | 'brivo_credential'
834
+ | 'hid_credential'
835
+ | 'visionline_card'
836
+ )
837
+ | undefined
838
+ external_type_display_name?: string | undefined
829
839
  created_at: string
830
840
  workspace_id: string
831
841
  }
@@ -840,6 +850,18 @@ export interface Routes {
840
850
  acs_user_id: string
841
851
  access_method: 'code' | 'card' | 'mobile_key'
842
852
  code?: string | undefined
853
+ is_multi_phone_sync_credential?: boolean | undefined
854
+ assa_abloy_credential_service_mobile_endpoint_id?: string | undefined
855
+ external_type?:
856
+ | (
857
+ | 'pti_card'
858
+ | 'brivo_credential'
859
+ | 'hid_credential'
860
+ | 'visionline_card'
861
+ )
862
+ | undefined
863
+ card_format?: ('TLCode' | 'rfid48') | undefined
864
+ is_override_key?: boolean | undefined
843
865
  }
844
866
  formData: {}
845
867
  jsonResponse: {
@@ -851,8 +873,15 @@ export interface Routes {
851
873
  display_name: string
852
874
  code?: (string | undefined) | null
853
875
  access_method: 'code' | 'card' | 'mobile_key'
854
- external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
855
- external_type_display_name: string
876
+ external_type?:
877
+ | (
878
+ | 'pti_card'
879
+ | 'brivo_credential'
880
+ | 'hid_credential'
881
+ | 'visionline_card'
882
+ )
883
+ | undefined
884
+ external_type_display_name?: string | undefined
856
885
  created_at: string
857
886
  workspace_id: string
858
887
  }
@@ -887,8 +916,15 @@ export interface Routes {
887
916
  display_name: string
888
917
  code?: (string | undefined) | null
889
918
  access_method: 'code' | 'card' | 'mobile_key'
890
- external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
891
- external_type_display_name: string
919
+ external_type?:
920
+ | (
921
+ | 'pti_card'
922
+ | 'brivo_credential'
923
+ | 'hid_credential'
924
+ | 'visionline_card'
925
+ )
926
+ | undefined
927
+ external_type_display_name?: string | undefined
892
928
  created_at: string
893
929
  workspace_id: string
894
930
  }
@@ -920,8 +956,15 @@ export interface Routes {
920
956
  display_name: string
921
957
  code?: (string | undefined) | null
922
958
  access_method: 'code' | 'card' | 'mobile_key'
923
- external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
924
- external_type_display_name: string
959
+ external_type?:
960
+ | (
961
+ | 'pti_card'
962
+ | 'brivo_credential'
963
+ | 'hid_credential'
964
+ | 'visionline_card'
965
+ )
966
+ | undefined
967
+ external_type_display_name?: string | undefined
925
968
  created_at: string
926
969
  workspace_id: string
927
970
  }>
@@ -946,8 +989,15 @@ export interface Routes {
946
989
  display_name: string
947
990
  code?: (string | undefined) | null
948
991
  access_method: 'code' | 'card' | 'mobile_key'
949
- external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
950
- external_type_display_name: string
992
+ external_type?:
993
+ | (
994
+ | 'pti_card'
995
+ | 'brivo_credential'
996
+ | 'hid_credential'
997
+ | 'visionline_card'
998
+ )
999
+ | undefined
1000
+ external_type_display_name?: string | undefined
951
1001
  created_at: string
952
1002
  workspace_id: string
953
1003
  }
@@ -972,8 +1022,15 @@ export interface Routes {
972
1022
  display_name: string
973
1023
  code?: (string | undefined) | null
974
1024
  access_method: 'code' | 'card' | 'mobile_key'
975
- external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
976
- external_type_display_name: string
1025
+ external_type?:
1026
+ | (
1027
+ | 'pti_card'
1028
+ | 'brivo_credential'
1029
+ | 'hid_credential'
1030
+ | 'visionline_card'
1031
+ )
1032
+ | undefined
1033
+ external_type_display_name?: string | undefined
977
1034
  created_at: string
978
1035
  workspace_id: string
979
1036
  }
@@ -1124,6 +1181,7 @@ export interface Routes {
1124
1181
  jsonBody: {
1125
1182
  acs_system_id: string
1126
1183
  acs_access_group_ids?: string[]
1184
+ user_identity_id?: string | undefined
1127
1185
  access_schedule?:
1128
1186
  | {
1129
1187
  starts_at: string
@@ -1151,9 +1209,12 @@ export interface Routes {
1151
1209
  | undefined
1152
1210
  external_type_display_name?: string | undefined
1153
1211
  is_suspended: boolean
1154
- starts_at?: string | undefined
1155
- ends_at?: string | undefined
1156
- is_virtual: boolean
1212
+ access_schedule?:
1213
+ | {
1214
+ starts_at: string
1215
+ ends_at: string
1216
+ }
1217
+ | undefined
1157
1218
  full_name?: string | undefined
1158
1219
  /** Deprecated: use email_address. */
1159
1220
  email?: string | undefined
@@ -1195,9 +1256,12 @@ export interface Routes {
1195
1256
  | undefined
1196
1257
  external_type_display_name?: string | undefined
1197
1258
  is_suspended: boolean
1198
- starts_at?: string | undefined
1199
- ends_at?: string | undefined
1200
- is_virtual: boolean
1259
+ access_schedule?:
1260
+ | {
1261
+ starts_at: string
1262
+ ends_at: string
1263
+ }
1264
+ | undefined
1201
1265
  full_name?: string | undefined
1202
1266
  /** Deprecated: use email_address. */
1203
1267
  email?: string | undefined
@@ -1228,9 +1292,12 @@ export interface Routes {
1228
1292
  | undefined
1229
1293
  external_type_display_name?: string | undefined
1230
1294
  is_suspended: boolean
1231
- starts_at?: string | undefined
1232
- ends_at?: string | undefined
1233
- is_virtual: boolean
1295
+ access_schedule?:
1296
+ | {
1297
+ starts_at: string
1298
+ ends_at: string
1299
+ }
1300
+ | undefined
1234
1301
  full_name?: string | undefined
1235
1302
  /** Deprecated: use email_address. */
1236
1303
  email?: string | undefined
@@ -8494,6 +8561,30 @@ export interface Routes {
8494
8561
  }
8495
8562
  }
8496
8563
  }
8564
+ '/user_identities/enrollment_automations/launch': {
8565
+ route: '/user_identities/enrollment_automations/launch'
8566
+ method: 'POST'
8567
+ queryParams: {}
8568
+ jsonBody: {}
8569
+ commonParams: {
8570
+ user_identity_id: string
8571
+ credential_manager_acs_system_id: string
8572
+ acs_credential_pool_id?: string | undefined
8573
+ create_credential_manager_user?: boolean | undefined
8574
+ credential_manager_acs_user_id?: string | undefined
8575
+ }
8576
+ formData: {}
8577
+ jsonResponse: {
8578
+ enrollment_automation: {
8579
+ acs_credential_provisioning_automation_id: string
8580
+ credential_manager_acs_system_id: string
8581
+ user_identity_id: string
8582
+ created_at: string
8583
+ workspace_id: string
8584
+ enrollment_automation_id: string
8585
+ }
8586
+ }
8587
+ }
8497
8588
  '/user_identities/get': {
8498
8589
  route: '/user_identities/get'
8499
8590
  method: 'GET' | 'POST'
@@ -9224,9 +9315,12 @@ export interface Routes {
9224
9315
  | undefined
9225
9316
  external_type_display_name?: string | undefined
9226
9317
  is_suspended: boolean
9227
- starts_at?: string | undefined
9228
- ends_at?: string | undefined
9229
- is_virtual: boolean
9318
+ access_schedule?:
9319
+ | {
9320
+ starts_at: string
9321
+ ends_at: string
9322
+ }
9323
+ | undefined
9230
9324
  full_name?: string | undefined
9231
9325
  /** Deprecated: use email_address. */
9232
9326
  email?: string | undefined
@@ -4,6 +4,7 @@ export const acs_credential_external_type = z.enum([
4
4
  'pti_card',
5
5
  'brivo_credential',
6
6
  'hid_credential',
7
+ 'visionline_card',
7
8
  ])
8
9
 
9
10
  export const acs_credential_access_method_type = z.enum([
@@ -24,8 +25,8 @@ export const acs_credential = z.object({
24
25
  display_name: z.string().nonempty(),
25
26
  code: z.string().optional().nullable(),
26
27
  access_method: acs_credential_access_method_type,
27
- external_type: acs_credential_external_type,
28
- external_type_display_name: z.string(),
28
+ external_type: acs_credential_external_type.optional(),
29
+ external_type_display_name: z.string().optional(),
29
30
  created_at: z.string().datetime(),
30
31
  workspace_id: z.string().uuid(),
31
32
  })
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { schedule } from '../schedule.js'
4
+
3
5
  export const acs_user_external_type = z.enum([
4
6
  'pti_user',
5
7
  'brivo_user',
@@ -44,9 +46,7 @@ export const acs_user = z
44
46
  external_type: acs_user_external_type.optional(),
45
47
  external_type_display_name: z.string().optional(),
46
48
  is_suspended: z.boolean(),
47
- starts_at: z.string().datetime().optional(),
48
- ends_at: z.string().datetime().optional(),
49
- is_virtual: z.boolean(),
49
+ access_schedule: schedule.optional(),
50
50
  })
51
51
  .merge(user_fields)
52
52
 
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod'
2
+
3
+ export const start_end_schedule = z.object({
4
+ starts_at: z.string().datetime(),
5
+ ends_at: z.string().datetime(),
6
+ })
7
+
8
+ // export const schedule = z.union([
9
+ // start_end_schedule,
10
+ // daily_schedule,
11
+ // weekly_schedule
12
+ // ])
13
+ export const schedule = start_end_schedule
@@ -18,7 +18,9 @@ export const manufacturer = z.object({
18
18
  manufacturer_id: z.string().uuid(),
19
19
  display_name: z.string(),
20
20
  logo: image_reference.optional(),
21
+ /** @deprecated */
21
22
  integration: manufacturer_integration_support_level,
23
+ integration_support_level: manufacturer_integration_support_level,
22
24
  is_connect_webview_supported: z.boolean(),
23
25
  requires_seam_support_to_add_account: z.boolean(),
24
26
  device_model_count: z.number(),
@@ -22,7 +22,11 @@ export const routes = {
22
22
  main_category: schemas.device_category.optional(),
23
23
  manufacturer_id: z.string().uuid().optional(),
24
24
  manufacturer_ids: z.string().uuid().array().optional(),
25
+ /** @deprecated */
25
26
  integration_status: schemas.manufacturer.shape.integration.optional(),
27
+ integration_support_levels: z
28
+ .array(schemas.manufacturer_integration_support_level)
29
+ .optional(),
26
30
  text_search: z.string().optional(),
27
31
  include_if: z.array(dot_path).optional(),
28
32
  exclude_if: z.array(dot_path).optional(),
@@ -45,7 +49,11 @@ export const routes = {
45
49
  auth: 'publishable_key',
46
50
  methods: ['GET', 'OPTIONS'],
47
51
  queryParams: z.object({
52
+ /** @deprecated */
48
53
  integration_status: schemas.manufacturer.shape.integration.optional(),
54
+ integration_support_levels: z
55
+ .array(schemas.manufacturer_integration_support_level)
56
+ .optional(),
49
57
  liqe_query: z.string().optional(),
50
58
  }),
51
59
  jsonResponse: z.object({