@seamapi/types 1.43.0 → 1.44.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 (36) hide show
  1. package/dist/connect.cjs +243 -11
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +456 -18
  4. package/lib/seam/connect/openapi.d.ts +329 -0
  5. package/lib/seam/connect/openapi.js +224 -8
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +98 -15
  8. package/lib/seam/connect/stable/model-types.d.ts +1 -1
  9. package/lib/seam/connect/stable/models/connect-webview.d.ts +21 -0
  10. package/lib/seam/connect/stable/models/connect-webview.js +8 -0
  11. package/lib/seam/connect/stable/models/connect-webview.js.map +1 -1
  12. package/lib/seam/connect/stable/models/custom-metadata.d.ts +3 -0
  13. package/lib/seam/connect/stable/models/custom-metadata.js +7 -0
  14. package/lib/seam/connect/stable/models/custom-metadata.js.map +1 -0
  15. package/lib/seam/connect/stable/models/index.d.ts +1 -0
  16. package/lib/seam/connect/stable/models/index.js +1 -0
  17. package/lib/seam/connect/stable/models/index.js.map +1 -1
  18. package/lib/seam/connect/stable/schemas.d.ts +1 -1
  19. package/lib/seam/connect/stable/schemas.js +1 -1
  20. package/lib/seam/connect/stable/schemas.js.map +1 -1
  21. package/lib/seam/connect/unstable/models/acs/credential.d.ts +7 -7
  22. package/lib/seam/connect/unstable/models/acs/credential.js +5 -2
  23. package/lib/seam/connect/unstable/models/acs/credential.js.map +1 -1
  24. package/lib/seam/connect/unstable/models/acs/user.d.ts +4 -4
  25. package/lib/seam/connect/unstable/models/acs/user.js +1 -1
  26. package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/openapi.ts +224 -8
  29. package/src/lib/seam/connect/route-types.ts +98 -15
  30. package/src/lib/seam/connect/stable/model-types.ts +1 -1
  31. package/src/lib/seam/connect/stable/models/connect-webview.ts +9 -0
  32. package/src/lib/seam/connect/stable/models/custom-metadata.ts +12 -0
  33. package/src/lib/seam/connect/stable/models/index.ts +1 -0
  34. package/src/lib/seam/connect/stable/schemas.ts +1 -1
  35. package/src/lib/seam/connect/unstable/models/acs/credential.ts +5 -2
  36. package/src/lib/seam/connect/unstable/models/acs/user.ts +1 -1
@@ -139,7 +139,7 @@ export default {
139
139
  type: 'string',
140
140
  },
141
141
  email_address: { format: 'email', type: 'string' },
142
- external_type: { enum: ['pti_user'], type: 'string' },
142
+ external_type: { enum: ['pti_user', 'brivo_user'], type: 'string' },
143
143
  external_type_display_name: { type: 'string' },
144
144
  full_name: { type: 'string' },
145
145
  is_suspended: { type: 'boolean' },
@@ -286,16 +286,46 @@ export default {
286
286
  accepted_providers: { items: { type: 'string' }, type: 'array' },
287
287
  any_device_allowed: { type: 'boolean' },
288
288
  any_provider_allowed: { type: 'boolean' },
289
+ authorized_at: {
290
+ format: 'date-time',
291
+ nullable: true,
292
+ type: 'string',
293
+ },
294
+ automatically_manage_new_devices: { type: 'boolean' },
289
295
  connect_webview_id: { format: 'uuid', type: 'string' },
290
296
  connected_account_id: { format: 'uuid', type: 'string' },
291
297
  created_at: { format: 'date-time', type: 'string' },
298
+ custom_metadata: {
299
+ additionalProperties: {
300
+ nullable: true,
301
+ oneOf: [
302
+ { maxLength: 500, type: 'string' },
303
+ { type: 'number' },
304
+ { format: 'null', nullable: true, type: 'string' },
305
+ { type: 'boolean' },
306
+ ],
307
+ },
308
+ type: 'object',
309
+ },
310
+ custom_redirect_failure_url: {
311
+ format: 'uri',
312
+ nullable: true,
313
+ type: 'string',
314
+ },
315
+ custom_redirect_url: {
316
+ format: 'uri',
317
+ nullable: true,
318
+ type: 'string',
319
+ },
292
320
  device_selection_mode: {
293
321
  enum: ['none', 'single', 'multiple'],
294
322
  type: 'string',
295
323
  },
296
324
  login_successful: { type: 'boolean' },
325
+ selected_provider: { nullable: true, type: 'string' },
297
326
  status: { enum: ['pending', 'failed', 'authorized'], type: 'string' },
298
327
  url: { format: 'uri', type: 'string' },
328
+ wait_for_device_creation: { type: 'boolean' },
299
329
  workspace_id: { format: 'uuid', type: 'string' },
300
330
  },
301
331
  required: [
@@ -310,6 +340,13 @@ export default {
310
340
  'created_at',
311
341
  'login_successful',
312
342
  'status',
343
+ 'custom_redirect_url',
344
+ 'custom_redirect_failure_url',
345
+ 'custom_metadata',
346
+ 'automatically_manage_new_devices',
347
+ 'wait_for_device_creation',
348
+ 'authorized_at',
349
+ 'selected_provider',
313
350
  ],
314
351
  type: 'object',
315
352
  },
@@ -3113,6 +3150,91 @@ export default {
3113
3150
  'x-fern-sdk-method-name': 'update',
3114
3151
  },
3115
3152
  },
3153
+ '/acs/credentials/assign': {
3154
+ patch: {
3155
+ operationId: 'acsCredentialsAssignPatch',
3156
+ requestBody: {
3157
+ content: {
3158
+ 'application/json': {
3159
+ schema: {
3160
+ properties: {
3161
+ acs_credential_id: { format: 'uuid', type: 'string' },
3162
+ acs_user_id: { format: 'uuid', type: 'string' },
3163
+ },
3164
+ required: ['acs_user_id', 'acs_credential_id'],
3165
+ type: 'object',
3166
+ },
3167
+ },
3168
+ },
3169
+ },
3170
+ responses: {
3171
+ 200: {
3172
+ content: {
3173
+ 'application/json': {
3174
+ schema: {
3175
+ properties: { ok: { type: 'boolean' } },
3176
+ required: ['ok'],
3177
+ type: 'object',
3178
+ },
3179
+ },
3180
+ },
3181
+ description: 'OK',
3182
+ },
3183
+ 400: { description: 'Bad Request' },
3184
+ 401: { description: 'Unauthorized' },
3185
+ },
3186
+ security: [
3187
+ { access_token: [], seam_workspace: [] },
3188
+ { seam_client_session_token: [] },
3189
+ { client_session_token: [] },
3190
+ ],
3191
+ summary: '/acs/credentials/assign',
3192
+ tags: [],
3193
+ 'x-fern-ignore': true,
3194
+ },
3195
+ post: {
3196
+ operationId: 'acsCredentialsAssignPost',
3197
+ requestBody: {
3198
+ content: {
3199
+ 'application/json': {
3200
+ schema: {
3201
+ properties: {
3202
+ acs_credential_id: { format: 'uuid', type: 'string' },
3203
+ acs_user_id: { format: 'uuid', type: 'string' },
3204
+ },
3205
+ required: ['acs_user_id', 'acs_credential_id'],
3206
+ type: 'object',
3207
+ },
3208
+ },
3209
+ },
3210
+ },
3211
+ responses: {
3212
+ 200: {
3213
+ content: {
3214
+ 'application/json': {
3215
+ schema: {
3216
+ properties: { ok: { type: 'boolean' } },
3217
+ required: ['ok'],
3218
+ type: 'object',
3219
+ },
3220
+ },
3221
+ },
3222
+ description: 'OK',
3223
+ },
3224
+ 400: { description: 'Bad Request' },
3225
+ 401: { description: 'Unauthorized' },
3226
+ },
3227
+ security: [
3228
+ { access_token: [], seam_workspace: [] },
3229
+ { seam_client_session_token: [] },
3230
+ { client_session_token: [] },
3231
+ ],
3232
+ summary: '/acs/credentials/assign',
3233
+ tags: [],
3234
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3235
+ 'x-fern-sdk-method-name': 'assign',
3236
+ },
3237
+ },
3116
3238
  '/acs/credentials/create': {
3117
3239
  post: {
3118
3240
  operationId: 'acsCredentialsCreatePost',
@@ -3143,13 +3265,15 @@ export default {
3143
3265
  acs_user_id: { format: 'uuid', type: 'string' },
3144
3266
  code: { nullable: true, type: 'string' },
3145
3267
  created_at: { format: 'date-time', type: 'string' },
3146
- external_type: { enum: ['pti_card'], type: 'string' },
3268
+ external_type: {
3269
+ enum: ['pti_card', 'brivo_credential'],
3270
+ type: 'string',
3271
+ },
3147
3272
  external_type_display_name: { type: 'string' },
3148
3273
  workspace_id: { format: 'uuid', type: 'string' },
3149
3274
  },
3150
3275
  required: [
3151
3276
  'acs_credential_id',
3152
- 'acs_user_id',
3153
3277
  'acs_system_id',
3154
3278
  'code',
3155
3279
  'external_type',
@@ -3254,13 +3378,15 @@ export default {
3254
3378
  acs_user_id: { format: 'uuid', type: 'string' },
3255
3379
  code: { nullable: true, type: 'string' },
3256
3380
  created_at: { format: 'date-time', type: 'string' },
3257
- external_type: { enum: ['pti_card'], type: 'string' },
3381
+ external_type: {
3382
+ enum: ['pti_card', 'brivo_credential'],
3383
+ type: 'string',
3384
+ },
3258
3385
  external_type_display_name: { type: 'string' },
3259
3386
  workspace_id: { format: 'uuid', type: 'string' },
3260
3387
  },
3261
3388
  required: [
3262
3389
  'acs_credential_id',
3263
- 'acs_user_id',
3264
3390
  'acs_system_id',
3265
3391
  'code',
3266
3392
  'external_type',
@@ -3342,13 +3468,15 @@ export default {
3342
3468
  acs_user_id: { format: 'uuid', type: 'string' },
3343
3469
  code: { nullable: true, type: 'string' },
3344
3470
  created_at: { format: 'date-time', type: 'string' },
3345
- external_type: { enum: ['pti_card'], type: 'string' },
3471
+ external_type: {
3472
+ enum: ['pti_card', 'brivo_credential'],
3473
+ type: 'string',
3474
+ },
3346
3475
  external_type_display_name: { type: 'string' },
3347
3476
  workspace_id: { format: 'uuid', type: 'string' },
3348
3477
  },
3349
3478
  required: [
3350
3479
  'acs_credential_id',
3351
- 'acs_user_id',
3352
3480
  'acs_system_id',
3353
3481
  'code',
3354
3482
  'external_type',
@@ -3383,6 +3511,91 @@ export default {
3383
3511
  'x-fern-sdk-method-name': 'list',
3384
3512
  },
3385
3513
  },
3514
+ '/acs/credentials/unassign': {
3515
+ patch: {
3516
+ operationId: 'acsCredentialsUnassignPatch',
3517
+ requestBody: {
3518
+ content: {
3519
+ 'application/json': {
3520
+ schema: {
3521
+ properties: {
3522
+ acs_credential_id: { format: 'uuid', type: 'string' },
3523
+ acs_user_id: { format: 'uuid', type: 'string' },
3524
+ },
3525
+ required: ['acs_user_id', 'acs_credential_id'],
3526
+ type: 'object',
3527
+ },
3528
+ },
3529
+ },
3530
+ },
3531
+ responses: {
3532
+ 200: {
3533
+ content: {
3534
+ 'application/json': {
3535
+ schema: {
3536
+ properties: { ok: { type: 'boolean' } },
3537
+ required: ['ok'],
3538
+ type: 'object',
3539
+ },
3540
+ },
3541
+ },
3542
+ description: 'OK',
3543
+ },
3544
+ 400: { description: 'Bad Request' },
3545
+ 401: { description: 'Unauthorized' },
3546
+ },
3547
+ security: [
3548
+ { access_token: [], seam_workspace: [] },
3549
+ { seam_client_session_token: [] },
3550
+ { client_session_token: [] },
3551
+ ],
3552
+ summary: '/acs/credentials/unassign',
3553
+ tags: [],
3554
+ 'x-fern-ignore': true,
3555
+ },
3556
+ post: {
3557
+ operationId: 'acsCredentialsUnassignPost',
3558
+ requestBody: {
3559
+ content: {
3560
+ 'application/json': {
3561
+ schema: {
3562
+ properties: {
3563
+ acs_credential_id: { format: 'uuid', type: 'string' },
3564
+ acs_user_id: { format: 'uuid', type: 'string' },
3565
+ },
3566
+ required: ['acs_user_id', 'acs_credential_id'],
3567
+ type: 'object',
3568
+ },
3569
+ },
3570
+ },
3571
+ },
3572
+ responses: {
3573
+ 200: {
3574
+ content: {
3575
+ 'application/json': {
3576
+ schema: {
3577
+ properties: { ok: { type: 'boolean' } },
3578
+ required: ['ok'],
3579
+ type: 'object',
3580
+ },
3581
+ },
3582
+ },
3583
+ description: 'OK',
3584
+ },
3585
+ 400: { description: 'Bad Request' },
3586
+ 401: { description: 'Unauthorized' },
3587
+ },
3588
+ security: [
3589
+ { access_token: [], seam_workspace: [] },
3590
+ { seam_client_session_token: [] },
3591
+ { client_session_token: [] },
3592
+ ],
3593
+ summary: '/acs/credentials/unassign',
3594
+ tags: [],
3595
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3596
+ 'x-fern-sdk-method-name': 'unassign',
3597
+ },
3598
+ },
3386
3599
  '/acs/systems/get': {
3387
3600
  post: {
3388
3601
  operationId: 'acsSystemsGetPost',
@@ -3559,6 +3772,7 @@ export default {
3559
3772
  format: 'email',
3560
3773
  type: 'string',
3561
3774
  },
3775
+ email_address: { format: 'email', type: 'string' },
3562
3776
  full_name: { type: 'string' },
3563
3777
  phone_number: { nullable: true, type: 'string' },
3564
3778
  },
@@ -3861,6 +4075,7 @@ export default {
3861
4075
  format: 'email',
3862
4076
  type: 'string',
3863
4077
  },
4078
+ email_address: { format: 'email', type: 'string' },
3864
4079
  full_name: { type: 'string' },
3865
4080
  phone_number: { nullable: true, type: 'string' },
3866
4081
  },
@@ -3908,6 +4123,7 @@ export default {
3908
4123
  format: 'email',
3909
4124
  type: 'string',
3910
4125
  },
4126
+ email_address: { format: 'email', type: 'string' },
3911
4127
  full_name: { type: 'string' },
3912
4128
  phone_number: { nullable: true, type: 'string' },
3913
4129
  },
@@ -8837,7 +9053,7 @@ export default {
8837
9053
  tags: ['/workspaces'],
8838
9054
  'x-fern-sdk-group-name': ['workspaces'],
8839
9055
  'x-fern-sdk-method-name': 'list',
8840
- 'x-fern-sdk-return-value': 'workspace',
9056
+ 'x-fern-sdk-return-value': 'workspaces',
8841
9057
  },
8842
9058
  },
8843
9059
  '/workspaces/reset_sandbox': {
@@ -632,7 +632,7 @@ export interface Routes {
632
632
  workspace_id: string
633
633
  created_at: string
634
634
  display_name: string
635
- external_type: 'pti_user'
635
+ external_type: 'pti_user' | 'brivo_user'
636
636
  external_type_display_name: string
637
637
  is_suspended: boolean
638
638
  full_name?: string | undefined
@@ -667,6 +667,18 @@ export interface Routes {
667
667
  formData: {}
668
668
  jsonResponse: {}
669
669
  }
670
+ '/acs/credentials/assign': {
671
+ route: '/acs/credentials/assign'
672
+ method: 'PATCH' | 'POST'
673
+ queryParams: {}
674
+ jsonBody: {
675
+ acs_user_id: string
676
+ acs_credential_id: string
677
+ }
678
+ commonParams: {}
679
+ formData: {}
680
+ jsonResponse: {}
681
+ }
670
682
  '/acs/credentials/create': {
671
683
  route: '/acs/credentials/create'
672
684
  method: 'POST'
@@ -680,10 +692,10 @@ export interface Routes {
680
692
  jsonResponse: {
681
693
  acs_credential: {
682
694
  acs_credential_id: string
683
- acs_user_id: string
695
+ acs_user_id?: string | undefined
684
696
  acs_system_id: string
685
697
  code: string | null
686
- external_type: 'pti_card'
698
+ external_type: 'pti_card' | 'brivo_credential'
687
699
  external_type_display_name: string
688
700
  created_at: string
689
701
  workspace_id: string
@@ -713,10 +725,10 @@ export interface Routes {
713
725
  jsonResponse: {
714
726
  acs_credential: {
715
727
  acs_credential_id: string
716
- acs_user_id: string
728
+ acs_user_id?: string | undefined
717
729
  acs_system_id: string
718
730
  code: string | null
719
- external_type: 'pti_card'
731
+ external_type: 'pti_card' | 'brivo_credential'
720
732
  external_type_display_name: string
721
733
  created_at: string
722
734
  workspace_id: string
@@ -743,16 +755,28 @@ export interface Routes {
743
755
  jsonResponse: {
744
756
  acs_credentials: Array<{
745
757
  acs_credential_id: string
746
- acs_user_id: string
758
+ acs_user_id?: string | undefined
747
759
  acs_system_id: string
748
760
  code: string | null
749
- external_type: 'pti_card'
761
+ external_type: 'pti_card' | 'brivo_credential'
750
762
  external_type_display_name: string
751
763
  created_at: string
752
764
  workspace_id: string
753
765
  }>
754
766
  }
755
767
  }
768
+ '/acs/credentials/unassign': {
769
+ route: '/acs/credentials/unassign'
770
+ method: 'PATCH' | 'POST'
771
+ queryParams: {}
772
+ jsonBody: {
773
+ acs_user_id: string
774
+ acs_credential_id: string
775
+ }
776
+ commonParams: {}
777
+ formData: {}
778
+ jsonResponse: {}
779
+ }
756
780
  '/acs/systems/get': {
757
781
  route: '/acs/systems/get'
758
782
  method: 'GET' | 'POST'
@@ -817,15 +841,16 @@ export interface Routes {
817
841
  route: '/acs/users/create'
818
842
  method: 'POST'
819
843
  queryParams: {}
820
- jsonBody: {}
821
- commonParams: {
844
+ jsonBody: {
822
845
  acs_system_id: string
823
846
  acs_access_group_ids?: string[]
824
847
  full_name?: string | undefined
825
848
  /** Deprecated: use email_address. */
826
849
  email?: string | undefined
827
850
  phone_number?: string | undefined
851
+ email_address?: string | undefined
828
852
  }
853
+ commonParams: {}
829
854
  formData: {}
830
855
  jsonResponse: {
831
856
  acs_user: {
@@ -834,7 +859,7 @@ export interface Routes {
834
859
  workspace_id: string
835
860
  created_at: string
836
861
  display_name: string
837
- external_type: 'pti_user'
862
+ external_type: 'pti_user' | 'brivo_user'
838
863
  external_type_display_name: string
839
864
  is_suspended: boolean
840
865
  full_name?: string | undefined
@@ -872,7 +897,7 @@ export interface Routes {
872
897
  workspace_id: string
873
898
  created_at: string
874
899
  display_name: string
875
- external_type: 'pti_user'
900
+ external_type: 'pti_user' | 'brivo_user'
876
901
  external_type_display_name: string
877
902
  is_suspended: boolean
878
903
  full_name?: string | undefined
@@ -899,7 +924,7 @@ export interface Routes {
899
924
  workspace_id: string
900
925
  created_at: string
901
926
  display_name: string
902
- external_type: 'pti_user'
927
+ external_type: 'pti_user' | 'brivo_user'
903
928
  external_type_display_name: string
904
929
  is_suspended: boolean
905
930
  full_name?: string | undefined
@@ -948,14 +973,15 @@ export interface Routes {
948
973
  route: '/acs/users/update'
949
974
  method: 'PATCH' | 'POST'
950
975
  queryParams: {}
951
- jsonBody: {}
952
- commonParams: {
976
+ jsonBody: {
953
977
  acs_user_id: string
954
978
  full_name?: string | undefined
955
979
  /** Deprecated: use email_address. */
956
980
  email?: string | undefined
957
981
  phone_number?: string | undefined
982
+ email_address?: string | undefined
958
983
  }
984
+ commonParams: {}
959
985
  formData: {}
960
986
  jsonResponse: {}
961
987
  }
@@ -1247,6 +1273,13 @@ export interface Routes {
1247
1273
  created_at: string
1248
1274
  login_successful: boolean
1249
1275
  status: 'pending' | 'failed' | 'authorized'
1276
+ custom_redirect_url: string | null
1277
+ custom_redirect_failure_url: string | null
1278
+ custom_metadata: Record<string, string | number | null | boolean>
1279
+ automatically_manage_new_devices: boolean
1280
+ wait_for_device_creation: boolean
1281
+ authorized_at: string | null
1282
+ selected_provider: string | null
1250
1283
  }
1251
1284
  }
1252
1285
  }
@@ -1284,6 +1317,13 @@ export interface Routes {
1284
1317
  created_at: string
1285
1318
  login_successful: boolean
1286
1319
  status: 'pending' | 'failed' | 'authorized'
1320
+ custom_redirect_url: string | null
1321
+ custom_redirect_failure_url: string | null
1322
+ custom_metadata: Record<string, string | number | null | boolean>
1323
+ automatically_manage_new_devices: boolean
1324
+ wait_for_device_creation: boolean
1325
+ authorized_at: string | null
1326
+ selected_provider: string | null
1287
1327
  }
1288
1328
  }
1289
1329
  }
@@ -1310,6 +1350,13 @@ export interface Routes {
1310
1350
  created_at: string
1311
1351
  login_successful: boolean
1312
1352
  status: 'pending' | 'failed' | 'authorized'
1353
+ custom_redirect_url: string | null
1354
+ custom_redirect_failure_url: string | null
1355
+ custom_metadata: Record<string, string | number | null | boolean>
1356
+ automatically_manage_new_devices: boolean
1357
+ wait_for_device_creation: boolean
1358
+ authorized_at: string | null
1359
+ selected_provider: string | null
1313
1360
  }>
1314
1361
  }
1315
1362
  }
@@ -3297,6 +3344,9 @@ export interface Routes {
3297
3344
  model: {
3298
3345
  display_name: string
3299
3346
  manufacturer_display_name: string
3347
+ offline_access_codes_supported?: boolean | undefined
3348
+ access_codes_supported?: boolean | undefined
3349
+ accessory_keypad_supported?: boolean | undefined
3300
3350
  }
3301
3351
  has_direct_power?: boolean | undefined
3302
3352
  battery_level?: number | undefined
@@ -3310,7 +3360,13 @@ export interface Routes {
3310
3360
  image_url?: string | undefined
3311
3361
  image_alt_text?: string | undefined
3312
3362
  serial_number?: string | undefined
3363
+ /** Currently possible to use online access codes */
3364
+ online_access_codes_enabled?: boolean | undefined
3365
+ /** Currently possible to use offline access codes */
3366
+ offline_access_codes_enabled?: boolean | undefined
3367
+ /** Deprecated: use model.offline_access_codes_enabled. */
3313
3368
  supports_accessory_keypad?: boolean | undefined
3369
+ /** Deprecated: use model.accessory_keypad_supported. */
3314
3370
  supports_offline_access_codes?: boolean | undefined
3315
3371
  } & {
3316
3372
  august_metadata?:
@@ -3874,6 +3930,9 @@ export interface Routes {
3874
3930
  model: {
3875
3931
  display_name: string
3876
3932
  manufacturer_display_name: string
3933
+ offline_access_codes_supported?: boolean | undefined
3934
+ access_codes_supported?: boolean | undefined
3935
+ accessory_keypad_supported?: boolean | undefined
3877
3936
  }
3878
3937
  has_direct_power?: boolean | undefined
3879
3938
  battery_level?: number | undefined
@@ -3887,7 +3946,13 @@ export interface Routes {
3887
3946
  image_url?: string | undefined
3888
3947
  image_alt_text?: string | undefined
3889
3948
  serial_number?: string | undefined
3949
+ /** Currently possible to use online access codes */
3950
+ online_access_codes_enabled?: boolean | undefined
3951
+ /** Currently possible to use offline access codes */
3952
+ offline_access_codes_enabled?: boolean | undefined
3953
+ /** Deprecated: use model.offline_access_codes_enabled. */
3890
3954
  supports_accessory_keypad?: boolean | undefined
3955
+ /** Deprecated: use model.accessory_keypad_supported. */
3891
3956
  supports_offline_access_codes?: boolean | undefined
3892
3957
  } & {
3893
3958
  august_metadata?:
@@ -4572,6 +4637,9 @@ export interface Routes {
4572
4637
  model: {
4573
4638
  display_name: string
4574
4639
  manufacturer_display_name: string
4640
+ offline_access_codes_supported?: boolean | undefined
4641
+ access_codes_supported?: boolean | undefined
4642
+ accessory_keypad_supported?: boolean | undefined
4575
4643
  }
4576
4644
  has_direct_power?: boolean | undefined
4577
4645
  battery_level?: number | undefined
@@ -4585,7 +4653,13 @@ export interface Routes {
4585
4653
  image_url?: string | undefined
4586
4654
  image_alt_text?: string | undefined
4587
4655
  serial_number?: string | undefined
4656
+ /** Currently possible to use online access codes */
4657
+ online_access_codes_enabled?: boolean | undefined
4658
+ /** Currently possible to use offline access codes */
4659
+ offline_access_codes_enabled?: boolean | undefined
4660
+ /** Deprecated: use model.offline_access_codes_enabled. */
4588
4661
  supports_accessory_keypad?: boolean | undefined
4662
+ /** Deprecated: use model.accessory_keypad_supported. */
4589
4663
  supports_offline_access_codes?: boolean | undefined
4590
4664
  } & {
4591
4665
  august_metadata?:
@@ -5149,6 +5223,9 @@ export interface Routes {
5149
5223
  model: {
5150
5224
  display_name: string
5151
5225
  manufacturer_display_name: string
5226
+ offline_access_codes_supported?: boolean | undefined
5227
+ access_codes_supported?: boolean | undefined
5228
+ accessory_keypad_supported?: boolean | undefined
5152
5229
  }
5153
5230
  has_direct_power?: boolean | undefined
5154
5231
  battery_level?: number | undefined
@@ -5162,7 +5239,13 @@ export interface Routes {
5162
5239
  image_url?: string | undefined
5163
5240
  image_alt_text?: string | undefined
5164
5241
  serial_number?: string | undefined
5242
+ /** Currently possible to use online access codes */
5243
+ online_access_codes_enabled?: boolean | undefined
5244
+ /** Currently possible to use offline access codes */
5245
+ offline_access_codes_enabled?: boolean | undefined
5246
+ /** Deprecated: use model.offline_access_codes_enabled. */
5165
5247
  supports_accessory_keypad?: boolean | undefined
5248
+ /** Deprecated: use model.accessory_keypad_supported. */
5166
5249
  supports_offline_access_codes?: boolean | undefined
5167
5250
  } & {
5168
5251
  august_metadata?:
@@ -8173,7 +8256,7 @@ export interface Routes {
8173
8256
  workspace_id: string
8174
8257
  created_at: string
8175
8258
  display_name: string
8176
- external_type: 'pti_user'
8259
+ external_type: 'pti_user' | 'brivo_user'
8177
8260
  external_type_display_name: string
8178
8261
  is_suspended: boolean
8179
8262
  full_name?: string | undefined
@@ -1 +1 @@
1
- export type { ConnectWebview } from './models/index.js'
1
+ export type { ConnectWebview, CustomMetadata } from './models/index.js'
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { custom_metadata } from './custom-metadata.js'
4
+
3
5
  export const connect_webview = z.object({
4
6
  connect_webview_id: z.string().uuid(),
5
7
  connected_account_id: z.string().uuid().optional(),
@@ -13,6 +15,13 @@ export const connect_webview = z.object({
13
15
  created_at: z.string().datetime(),
14
16
  login_successful: z.boolean(),
15
17
  status: z.enum(['pending', 'failed', 'authorized']),
18
+ custom_redirect_url: z.string().url().nullable(),
19
+ custom_redirect_failure_url: z.string().url().nullable(),
20
+ custom_metadata,
21
+ automatically_manage_new_devices: z.boolean(),
22
+ wait_for_device_creation: z.boolean(),
23
+ authorized_at: z.string().datetime().nullable(),
24
+ selected_provider: z.string().nullable(),
16
25
  })
17
26
 
18
27
  export type ConnectWebview = z.infer<typeof connect_webview>
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod'
2
+
3
+ export const custom_metadata = z
4
+ .record(
5
+ z.string().max(40),
6
+ z.union([z.string().max(500), z.number(), z.null(), z.boolean()]),
7
+ )
8
+ .refine((val) => Object.keys(val).length <= 50, {
9
+ message: 'Custom metadata is limited to a maximum of 50 keys',
10
+ })
11
+
12
+ export type CustomMetadata = z.infer<typeof custom_metadata>
@@ -1 +1,2 @@
1
1
  export * from './connect-webview.js'
2
+ export * from './custom-metadata.js'
@@ -1 +1 @@
1
- export { connect_webview } from './models/index.js'
1
+ export { connect_webview, custom_metadata } from './models/index.js'