@seamapi/types 1.42.1 → 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 (40) hide show
  1. package/dist/connect.cjs +263 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +522 -18
  4. package/lib/seam/connect/openapi.d.ts +350 -0
  5. package/lib/seam/connect/openapi.js +243 -10
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +143 -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/lib/seam/connect/unstable/models/devices/managed-device.d.ts +62 -0
  28. package/lib/seam/connect/unstable/models/devices/managed-device.js +20 -2
  29. package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/lib/seam/connect/openapi.ts +247 -10
  32. package/src/lib/seam/connect/route-types.ts +143 -15
  33. package/src/lib/seam/connect/stable/model-types.ts +1 -1
  34. package/src/lib/seam/connect/stable/models/connect-webview.ts +9 -0
  35. package/src/lib/seam/connect/stable/models/custom-metadata.ts +12 -0
  36. package/src/lib/seam/connect/stable/models/index.ts +1 -0
  37. package/src/lib/seam/connect/stable/schemas.ts +1 -1
  38. package/src/lib/seam/connect/unstable/models/acs/credential.ts +5 -2
  39. package/src/lib/seam/connect/unstable/models/acs/user.ts +1 -1
  40. package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +23 -2
@@ -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
  },
@@ -451,17 +488,34 @@ export default {
451
488
  manufacturer: { type: 'string' },
452
489
  model: {
453
490
  properties: {
491
+ access_codes_supported: { type: 'boolean' },
492
+ accessory_keypad_supported: { type: 'boolean' },
454
493
  display_name: { type: 'string' },
455
494
  manufacturer_display_name: { type: 'string' },
495
+ offline_access_codes_supported: { type: 'boolean' },
456
496
  },
457
497
  required: ['display_name', 'manufacturer_display_name'],
458
498
  type: 'object',
459
499
  },
460
500
  name: { type: 'string' },
501
+ offline_access_codes_enabled: {
502
+ description: 'Currently possible to use offline access codes',
503
+ type: 'boolean',
504
+ },
461
505
  online: { type: 'boolean' },
506
+ online_access_codes_enabled: {
507
+ description: 'Currently possible to use online access codes',
508
+ type: 'boolean',
509
+ },
462
510
  serial_number: { type: 'string' },
463
- supports_accessory_keypad: { type: 'boolean' },
464
- supports_offline_access_codes: { type: 'boolean' },
511
+ supports_accessory_keypad: {
512
+ description: 'Deprecated: use model.offline_access_codes_enabled.',
513
+ type: 'boolean',
514
+ },
515
+ supports_offline_access_codes: {
516
+ description: 'Deprecated: use model.accessory_keypad_supported.',
517
+ type: 'boolean',
518
+ },
465
519
  },
466
520
  required: ['online', 'name', 'model'],
467
521
  type: 'object',
@@ -3092,6 +3146,91 @@ export default {
3092
3146
  'x-fern-sdk-method-name': 'update',
3093
3147
  },
3094
3148
  },
3149
+ '/acs/credentials/assign': {
3150
+ patch: {
3151
+ operationId: 'acsCredentialsAssignPatch',
3152
+ requestBody: {
3153
+ content: {
3154
+ 'application/json': {
3155
+ schema: {
3156
+ properties: {
3157
+ acs_credential_id: { format: 'uuid', type: 'string' },
3158
+ acs_user_id: { format: 'uuid', type: 'string' },
3159
+ },
3160
+ required: ['acs_user_id', 'acs_credential_id'],
3161
+ type: 'object',
3162
+ },
3163
+ },
3164
+ },
3165
+ },
3166
+ responses: {
3167
+ 200: {
3168
+ content: {
3169
+ 'application/json': {
3170
+ schema: {
3171
+ properties: { ok: { type: 'boolean' } },
3172
+ required: ['ok'],
3173
+ type: 'object',
3174
+ },
3175
+ },
3176
+ },
3177
+ description: 'OK',
3178
+ },
3179
+ 400: { description: 'Bad Request' },
3180
+ 401: { description: 'Unauthorized' },
3181
+ },
3182
+ security: [
3183
+ { access_token: [], seam_workspace: [] },
3184
+ { seam_client_session_token: [] },
3185
+ { client_session_token: [] },
3186
+ ],
3187
+ summary: '/acs/credentials/assign',
3188
+ tags: [],
3189
+ 'x-fern-ignore': true,
3190
+ },
3191
+ post: {
3192
+ operationId: 'acsCredentialsAssignPost',
3193
+ requestBody: {
3194
+ content: {
3195
+ 'application/json': {
3196
+ schema: {
3197
+ properties: {
3198
+ acs_credential_id: { format: 'uuid', type: 'string' },
3199
+ acs_user_id: { format: 'uuid', type: 'string' },
3200
+ },
3201
+ required: ['acs_user_id', 'acs_credential_id'],
3202
+ type: 'object',
3203
+ },
3204
+ },
3205
+ },
3206
+ },
3207
+ responses: {
3208
+ 200: {
3209
+ content: {
3210
+ 'application/json': {
3211
+ schema: {
3212
+ properties: { ok: { type: 'boolean' } },
3213
+ required: ['ok'],
3214
+ type: 'object',
3215
+ },
3216
+ },
3217
+ },
3218
+ description: 'OK',
3219
+ },
3220
+ 400: { description: 'Bad Request' },
3221
+ 401: { description: 'Unauthorized' },
3222
+ },
3223
+ security: [
3224
+ { access_token: [], seam_workspace: [] },
3225
+ { seam_client_session_token: [] },
3226
+ { client_session_token: [] },
3227
+ ],
3228
+ summary: '/acs/credentials/assign',
3229
+ tags: [],
3230
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3231
+ 'x-fern-sdk-method-name': 'assign',
3232
+ },
3233
+ },
3095
3234
  '/acs/credentials/create': {
3096
3235
  post: {
3097
3236
  operationId: 'acsCredentialsCreatePost',
@@ -3122,13 +3261,15 @@ export default {
3122
3261
  acs_user_id: { format: 'uuid', type: 'string' },
3123
3262
  code: { nullable: true, type: 'string' },
3124
3263
  created_at: { format: 'date-time', type: 'string' },
3125
- external_type: { enum: ['pti_card'], type: 'string' },
3264
+ external_type: {
3265
+ enum: ['pti_card', 'brivo_credential'],
3266
+ type: 'string',
3267
+ },
3126
3268
  external_type_display_name: { type: 'string' },
3127
3269
  workspace_id: { format: 'uuid', type: 'string' },
3128
3270
  },
3129
3271
  required: [
3130
3272
  'acs_credential_id',
3131
- 'acs_user_id',
3132
3273
  'acs_system_id',
3133
3274
  'code',
3134
3275
  'external_type',
@@ -3233,13 +3374,15 @@ export default {
3233
3374
  acs_user_id: { format: 'uuid', type: 'string' },
3234
3375
  code: { nullable: true, type: 'string' },
3235
3376
  created_at: { format: 'date-time', type: 'string' },
3236
- external_type: { enum: ['pti_card'], type: 'string' },
3377
+ external_type: {
3378
+ enum: ['pti_card', 'brivo_credential'],
3379
+ type: 'string',
3380
+ },
3237
3381
  external_type_display_name: { type: 'string' },
3238
3382
  workspace_id: { format: 'uuid', type: 'string' },
3239
3383
  },
3240
3384
  required: [
3241
3385
  'acs_credential_id',
3242
- 'acs_user_id',
3243
3386
  'acs_system_id',
3244
3387
  'code',
3245
3388
  'external_type',
@@ -3321,13 +3464,15 @@ export default {
3321
3464
  acs_user_id: { format: 'uuid', type: 'string' },
3322
3465
  code: { nullable: true, type: 'string' },
3323
3466
  created_at: { format: 'date-time', type: 'string' },
3324
- external_type: { enum: ['pti_card'], type: 'string' },
3467
+ external_type: {
3468
+ enum: ['pti_card', 'brivo_credential'],
3469
+ type: 'string',
3470
+ },
3325
3471
  external_type_display_name: { type: 'string' },
3326
3472
  workspace_id: { format: 'uuid', type: 'string' },
3327
3473
  },
3328
3474
  required: [
3329
3475
  'acs_credential_id',
3330
- 'acs_user_id',
3331
3476
  'acs_system_id',
3332
3477
  'code',
3333
3478
  'external_type',
@@ -3362,6 +3507,91 @@ export default {
3362
3507
  'x-fern-sdk-method-name': 'list',
3363
3508
  },
3364
3509
  },
3510
+ '/acs/credentials/unassign': {
3511
+ patch: {
3512
+ operationId: 'acsCredentialsUnassignPatch',
3513
+ requestBody: {
3514
+ content: {
3515
+ 'application/json': {
3516
+ schema: {
3517
+ properties: {
3518
+ acs_credential_id: { format: 'uuid', type: 'string' },
3519
+ acs_user_id: { format: 'uuid', type: 'string' },
3520
+ },
3521
+ required: ['acs_user_id', 'acs_credential_id'],
3522
+ type: 'object',
3523
+ },
3524
+ },
3525
+ },
3526
+ },
3527
+ responses: {
3528
+ 200: {
3529
+ content: {
3530
+ 'application/json': {
3531
+ schema: {
3532
+ properties: { ok: { type: 'boolean' } },
3533
+ required: ['ok'],
3534
+ type: 'object',
3535
+ },
3536
+ },
3537
+ },
3538
+ description: 'OK',
3539
+ },
3540
+ 400: { description: 'Bad Request' },
3541
+ 401: { description: 'Unauthorized' },
3542
+ },
3543
+ security: [
3544
+ { access_token: [], seam_workspace: [] },
3545
+ { seam_client_session_token: [] },
3546
+ { client_session_token: [] },
3547
+ ],
3548
+ summary: '/acs/credentials/unassign',
3549
+ tags: [],
3550
+ 'x-fern-ignore': true,
3551
+ },
3552
+ post: {
3553
+ operationId: 'acsCredentialsUnassignPost',
3554
+ requestBody: {
3555
+ content: {
3556
+ 'application/json': {
3557
+ schema: {
3558
+ properties: {
3559
+ acs_credential_id: { format: 'uuid', type: 'string' },
3560
+ acs_user_id: { format: 'uuid', type: 'string' },
3561
+ },
3562
+ required: ['acs_user_id', 'acs_credential_id'],
3563
+ type: 'object',
3564
+ },
3565
+ },
3566
+ },
3567
+ },
3568
+ responses: {
3569
+ 200: {
3570
+ content: {
3571
+ 'application/json': {
3572
+ schema: {
3573
+ properties: { ok: { type: 'boolean' } },
3574
+ required: ['ok'],
3575
+ type: 'object',
3576
+ },
3577
+ },
3578
+ },
3579
+ description: 'OK',
3580
+ },
3581
+ 400: { description: 'Bad Request' },
3582
+ 401: { description: 'Unauthorized' },
3583
+ },
3584
+ security: [
3585
+ { access_token: [], seam_workspace: [] },
3586
+ { seam_client_session_token: [] },
3587
+ { client_session_token: [] },
3588
+ ],
3589
+ summary: '/acs/credentials/unassign',
3590
+ tags: [],
3591
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3592
+ 'x-fern-sdk-method-name': 'unassign',
3593
+ },
3594
+ },
3365
3595
  '/acs/systems/get': {
3366
3596
  post: {
3367
3597
  operationId: 'acsSystemsGetPost',
@@ -3538,6 +3768,7 @@ export default {
3538
3768
  format: 'email',
3539
3769
  type: 'string',
3540
3770
  },
3771
+ email_address: { format: 'email', type: 'string' },
3541
3772
  full_name: { type: 'string' },
3542
3773
  phone_number: { nullable: true, type: 'string' },
3543
3774
  },
@@ -3840,6 +4071,7 @@ export default {
3840
4071
  format: 'email',
3841
4072
  type: 'string',
3842
4073
  },
4074
+ email_address: { format: 'email', type: 'string' },
3843
4075
  full_name: { type: 'string' },
3844
4076
  phone_number: { nullable: true, type: 'string' },
3845
4077
  },
@@ -3887,6 +4119,7 @@ export default {
3887
4119
  format: 'email',
3888
4120
  type: 'string',
3889
4121
  },
4122
+ email_address: { format: 'email', type: 'string' },
3890
4123
  full_name: { type: 'string' },
3891
4124
  phone_number: { nullable: true, type: 'string' },
3892
4125
  },
@@ -8812,7 +9045,7 @@ export default {
8812
9045
  tags: ['/workspaces'],
8813
9046
  'x-fern-sdk-group-name': ['workspaces'],
8814
9047
  'x-fern-sdk-method-name': 'list',
8815
- 'x-fern-sdk-return-value': 'workspace',
9048
+ 'x-fern-sdk-return-value': 'workspaces',
8816
9049
  },
8817
9050
  },
8818
9051
  '/workspaces/reset_sandbox': {