@seamapi/types 1.43.0 → 1.44.1

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 +189 -121
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +352 -214
  4. package/lib/seam/connect/openapi.d.ts +230 -152
  5. package/lib/seam/connect/openapi.js +168 -116
  6. package/lib/seam/connect/openapi.js.map +1 -1
  7. package/lib/seam/connect/route-types.d.ts +93 -59
  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 +168 -116
  29. package/src/lib/seam/connect/route-types.ts +93 -66
  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
  },
@@ -1546,6 +1583,12 @@ export default {
1546
1583
  scheme: 'bearer',
1547
1584
  type: 'http',
1548
1585
  },
1586
+ api_key: { bearerFormat: 'API Key', scheme: 'bearer', type: 'http' },
1587
+ client_session: {
1588
+ bearerFormat: 'Client Session Token',
1589
+ scheme: 'bearer',
1590
+ type: 'http',
1591
+ },
1549
1592
  client_session_token: {
1550
1593
  in: 'header',
1551
1594
  name: 'client-session-token',
@@ -1557,6 +1600,11 @@ export default {
1557
1600
  type: 'apiKey',
1558
1601
  },
1559
1602
  seam_workspace: { in: 'header', name: 'seam-workspace', type: 'apiKey' },
1603
+ user_session: {
1604
+ bearerFormat: 'User Session Token',
1605
+ scheme: 'bearer',
1606
+ type: 'http',
1607
+ },
1560
1608
  },
1561
1609
  },
1562
1610
  info: { title: 'Seam Connect', version: '1.0.0' },
@@ -1933,9 +1981,10 @@ export default {
1933
1981
  401: { description: 'Unauthorized' },
1934
1982
  },
1935
1983
  security: [
1936
- { access_token: [], seam_workspace: [] },
1937
- { seam_client_session_token: [] },
1938
- { client_session_token: [] },
1984
+ { api_key: [] },
1985
+ { access_token: [] },
1986
+ { user_session: [] },
1987
+ { client_session: [] },
1939
1988
  ],
1940
1989
  summary: '/access_codes/get',
1941
1990
  tags: ['/access_codes'],
@@ -2746,98 +2795,6 @@ export default {
2746
2795
  'x-fern-ignore': true,
2747
2796
  },
2748
2797
  },
2749
- '/acs/access_groups/create': {
2750
- post: {
2751
- operationId: 'acsAccessGroupsCreatePost',
2752
- requestBody: {
2753
- content: {
2754
- 'application/json': {
2755
- schema: {
2756
- properties: {
2757
- acs_system_id: { format: 'uuid', type: 'string' },
2758
- name: { type: 'string' },
2759
- },
2760
- required: ['acs_system_id'],
2761
- type: 'object',
2762
- },
2763
- },
2764
- },
2765
- },
2766
- responses: {
2767
- 200: {
2768
- content: {
2769
- 'application/json': {
2770
- schema: {
2771
- properties: {
2772
- acs_access_group: {
2773
- $ref: '#/components/schemas/acs_access_group',
2774
- },
2775
- ok: { type: 'boolean' },
2776
- },
2777
- required: ['acs_access_group', 'ok'],
2778
- type: 'object',
2779
- },
2780
- },
2781
- },
2782
- description: 'OK',
2783
- },
2784
- 400: { description: 'Bad Request' },
2785
- 401: { description: 'Unauthorized' },
2786
- },
2787
- security: [
2788
- { access_token: [], seam_workspace: [] },
2789
- { seam_client_session_token: [] },
2790
- { client_session_token: [] },
2791
- ],
2792
- summary: '/acs/access_groups/create',
2793
- tags: [],
2794
- 'x-fern-sdk-group-name': ['acs', 'access_groups'],
2795
- 'x-fern-sdk-method-name': 'create',
2796
- },
2797
- },
2798
- '/acs/access_groups/delete': {
2799
- post: {
2800
- operationId: 'acsAccessGroupsDeletePost',
2801
- requestBody: {
2802
- content: {
2803
- 'application/json': {
2804
- schema: {
2805
- properties: {
2806
- acs_access_group_id: { format: 'uuid', type: 'string' },
2807
- },
2808
- required: ['acs_access_group_id'],
2809
- type: 'object',
2810
- },
2811
- },
2812
- },
2813
- },
2814
- responses: {
2815
- 200: {
2816
- content: {
2817
- 'application/json': {
2818
- schema: {
2819
- properties: { ok: { type: 'boolean' } },
2820
- required: ['ok'],
2821
- type: 'object',
2822
- },
2823
- },
2824
- },
2825
- description: 'OK',
2826
- },
2827
- 400: { description: 'Bad Request' },
2828
- 401: { description: 'Unauthorized' },
2829
- },
2830
- security: [
2831
- { access_token: [], seam_workspace: [] },
2832
- { seam_client_session_token: [] },
2833
- { client_session_token: [] },
2834
- ],
2835
- summary: '/acs/access_groups/delete',
2836
- tags: [],
2837
- 'x-fern-sdk-group-name': ['acs', 'access_groups'],
2838
- 'x-fern-sdk-method-name': 'delete',
2839
- },
2840
- },
2841
2798
  '/acs/access_groups/get': {
2842
2799
  post: {
2843
2800
  operationId: 'acsAccessGroupsGetPost',
@@ -3028,18 +2985,18 @@ export default {
3028
2985
  'x-fern-sdk-method-name': 'remove_user',
3029
2986
  },
3030
2987
  },
3031
- '/acs/access_groups/update': {
2988
+ '/acs/credentials/assign': {
3032
2989
  patch: {
3033
- operationId: 'acsAccessGroupsUpdatePatch',
2990
+ operationId: 'acsCredentialsAssignPatch',
3034
2991
  requestBody: {
3035
2992
  content: {
3036
2993
  'application/json': {
3037
2994
  schema: {
3038
2995
  properties: {
3039
- acs_access_group_id: { format: 'uuid', type: 'string' },
3040
- name: { nullable: true, type: 'string' },
2996
+ acs_credential_id: { format: 'uuid', type: 'string' },
2997
+ acs_user_id: { format: 'uuid', type: 'string' },
3041
2998
  },
3042
- required: ['acs_access_group_id'],
2999
+ required: ['acs_user_id', 'acs_credential_id'],
3043
3000
  type: 'object',
3044
3001
  },
3045
3002
  },
@@ -3066,21 +3023,21 @@ export default {
3066
3023
  { seam_client_session_token: [] },
3067
3024
  { client_session_token: [] },
3068
3025
  ],
3069
- summary: '/acs/access_groups/update',
3026
+ summary: '/acs/credentials/assign',
3070
3027
  tags: [],
3071
3028
  'x-fern-ignore': true,
3072
3029
  },
3073
3030
  post: {
3074
- operationId: 'acsAccessGroupsUpdatePost',
3031
+ operationId: 'acsCredentialsAssignPost',
3075
3032
  requestBody: {
3076
3033
  content: {
3077
3034
  'application/json': {
3078
3035
  schema: {
3079
3036
  properties: {
3080
- acs_access_group_id: { format: 'uuid', type: 'string' },
3081
- name: { nullable: true, type: 'string' },
3037
+ acs_credential_id: { format: 'uuid', type: 'string' },
3038
+ acs_user_id: { format: 'uuid', type: 'string' },
3082
3039
  },
3083
- required: ['acs_access_group_id'],
3040
+ required: ['acs_user_id', 'acs_credential_id'],
3084
3041
  type: 'object',
3085
3042
  },
3086
3043
  },
@@ -3107,10 +3064,10 @@ export default {
3107
3064
  { seam_client_session_token: [] },
3108
3065
  { client_session_token: [] },
3109
3066
  ],
3110
- summary: '/acs/access_groups/update',
3067
+ summary: '/acs/credentials/assign',
3111
3068
  tags: [],
3112
- 'x-fern-sdk-group-name': ['acs', 'access_groups'],
3113
- 'x-fern-sdk-method-name': 'update',
3069
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3070
+ 'x-fern-sdk-method-name': 'assign',
3114
3071
  },
3115
3072
  },
3116
3073
  '/acs/credentials/create': {
@@ -3143,13 +3100,15 @@ export default {
3143
3100
  acs_user_id: { format: 'uuid', type: 'string' },
3144
3101
  code: { nullable: true, type: 'string' },
3145
3102
  created_at: { format: 'date-time', type: 'string' },
3146
- external_type: { enum: ['pti_card'], type: 'string' },
3103
+ external_type: {
3104
+ enum: ['pti_card', 'brivo_credential'],
3105
+ type: 'string',
3106
+ },
3147
3107
  external_type_display_name: { type: 'string' },
3148
3108
  workspace_id: { format: 'uuid', type: 'string' },
3149
3109
  },
3150
3110
  required: [
3151
3111
  'acs_credential_id',
3152
- 'acs_user_id',
3153
3112
  'acs_system_id',
3154
3113
  'code',
3155
3114
  'external_type',
@@ -3254,13 +3213,15 @@ export default {
3254
3213
  acs_user_id: { format: 'uuid', type: 'string' },
3255
3214
  code: { nullable: true, type: 'string' },
3256
3215
  created_at: { format: 'date-time', type: 'string' },
3257
- external_type: { enum: ['pti_card'], type: 'string' },
3216
+ external_type: {
3217
+ enum: ['pti_card', 'brivo_credential'],
3218
+ type: 'string',
3219
+ },
3258
3220
  external_type_display_name: { type: 'string' },
3259
3221
  workspace_id: { format: 'uuid', type: 'string' },
3260
3222
  },
3261
3223
  required: [
3262
3224
  'acs_credential_id',
3263
- 'acs_user_id',
3264
3225
  'acs_system_id',
3265
3226
  'code',
3266
3227
  'external_type',
@@ -3342,13 +3303,15 @@ export default {
3342
3303
  acs_user_id: { format: 'uuid', type: 'string' },
3343
3304
  code: { nullable: true, type: 'string' },
3344
3305
  created_at: { format: 'date-time', type: 'string' },
3345
- external_type: { enum: ['pti_card'], type: 'string' },
3306
+ external_type: {
3307
+ enum: ['pti_card', 'brivo_credential'],
3308
+ type: 'string',
3309
+ },
3346
3310
  external_type_display_name: { type: 'string' },
3347
3311
  workspace_id: { format: 'uuid', type: 'string' },
3348
3312
  },
3349
3313
  required: [
3350
3314
  'acs_credential_id',
3351
- 'acs_user_id',
3352
3315
  'acs_system_id',
3353
3316
  'code',
3354
3317
  'external_type',
@@ -3383,6 +3346,91 @@ export default {
3383
3346
  'x-fern-sdk-method-name': 'list',
3384
3347
  },
3385
3348
  },
3349
+ '/acs/credentials/unassign': {
3350
+ patch: {
3351
+ operationId: 'acsCredentialsUnassignPatch',
3352
+ requestBody: {
3353
+ content: {
3354
+ 'application/json': {
3355
+ schema: {
3356
+ properties: {
3357
+ acs_credential_id: { format: 'uuid', type: 'string' },
3358
+ acs_user_id: { format: 'uuid', type: 'string' },
3359
+ },
3360
+ required: ['acs_user_id', 'acs_credential_id'],
3361
+ type: 'object',
3362
+ },
3363
+ },
3364
+ },
3365
+ },
3366
+ responses: {
3367
+ 200: {
3368
+ content: {
3369
+ 'application/json': {
3370
+ schema: {
3371
+ properties: { ok: { type: 'boolean' } },
3372
+ required: ['ok'],
3373
+ type: 'object',
3374
+ },
3375
+ },
3376
+ },
3377
+ description: 'OK',
3378
+ },
3379
+ 400: { description: 'Bad Request' },
3380
+ 401: { description: 'Unauthorized' },
3381
+ },
3382
+ security: [
3383
+ { access_token: [], seam_workspace: [] },
3384
+ { seam_client_session_token: [] },
3385
+ { client_session_token: [] },
3386
+ ],
3387
+ summary: '/acs/credentials/unassign',
3388
+ tags: [],
3389
+ 'x-fern-ignore': true,
3390
+ },
3391
+ post: {
3392
+ operationId: 'acsCredentialsUnassignPost',
3393
+ requestBody: {
3394
+ content: {
3395
+ 'application/json': {
3396
+ schema: {
3397
+ properties: {
3398
+ acs_credential_id: { format: 'uuid', type: 'string' },
3399
+ acs_user_id: { format: 'uuid', type: 'string' },
3400
+ },
3401
+ required: ['acs_user_id', 'acs_credential_id'],
3402
+ type: 'object',
3403
+ },
3404
+ },
3405
+ },
3406
+ },
3407
+ responses: {
3408
+ 200: {
3409
+ content: {
3410
+ 'application/json': {
3411
+ schema: {
3412
+ properties: { ok: { type: 'boolean' } },
3413
+ required: ['ok'],
3414
+ type: 'object',
3415
+ },
3416
+ },
3417
+ },
3418
+ description: 'OK',
3419
+ },
3420
+ 400: { description: 'Bad Request' },
3421
+ 401: { description: 'Unauthorized' },
3422
+ },
3423
+ security: [
3424
+ { access_token: [], seam_workspace: [] },
3425
+ { seam_client_session_token: [] },
3426
+ { client_session_token: [] },
3427
+ ],
3428
+ summary: '/acs/credentials/unassign',
3429
+ tags: [],
3430
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3431
+ 'x-fern-sdk-method-name': 'unassign',
3432
+ },
3433
+ },
3386
3434
  '/acs/systems/get': {
3387
3435
  post: {
3388
3436
  operationId: 'acsSystemsGetPost',
@@ -3559,6 +3607,7 @@ export default {
3559
3607
  format: 'email',
3560
3608
  type: 'string',
3561
3609
  },
3610
+ email_address: { format: 'email', type: 'string' },
3562
3611
  full_name: { type: 'string' },
3563
3612
  phone_number: { nullable: true, type: 'string' },
3564
3613
  },
@@ -3861,6 +3910,7 @@ export default {
3861
3910
  format: 'email',
3862
3911
  type: 'string',
3863
3912
  },
3913
+ email_address: { format: 'email', type: 'string' },
3864
3914
  full_name: { type: 'string' },
3865
3915
  phone_number: { nullable: true, type: 'string' },
3866
3916
  },
@@ -3908,6 +3958,7 @@ export default {
3908
3958
  format: 'email',
3909
3959
  type: 'string',
3910
3960
  },
3961
+ email_address: { format: 'email', type: 'string' },
3911
3962
  full_name: { type: 'string' },
3912
3963
  phone_number: { nullable: true, type: 'string' },
3913
3964
  },
@@ -4625,6 +4676,7 @@ export default {
4625
4676
  'wyze',
4626
4677
  'seam_passport',
4627
4678
  'yale_access',
4679
+ 'hid_cm',
4628
4680
  ],
4629
4681
  type: 'string',
4630
4682
  },
@@ -8837,7 +8889,7 @@ export default {
8837
8889
  tags: ['/workspaces'],
8838
8890
  'x-fern-sdk-group-name': ['workspaces'],
8839
8891
  'x-fern-sdk-method-name': 'list',
8840
- 'x-fern-sdk-return-value': 'workspace',
8892
+ 'x-fern-sdk-return-value': 'workspaces',
8841
8893
  },
8842
8894
  },
8843
8895
  '/workspaces/reset_sandbox': {