@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
  },
@@ -1542,6 +1579,12 @@ export default {
1542
1579
  scheme: 'bearer',
1543
1580
  type: 'http',
1544
1581
  },
1582
+ api_key: { bearerFormat: 'API Key', scheme: 'bearer', type: 'http' },
1583
+ client_session: {
1584
+ bearerFormat: 'Client Session Token',
1585
+ scheme: 'bearer',
1586
+ type: 'http',
1587
+ },
1545
1588
  client_session_token: {
1546
1589
  in: 'header',
1547
1590
  name: 'client-session-token',
@@ -1553,6 +1596,11 @@ export default {
1553
1596
  type: 'apiKey',
1554
1597
  },
1555
1598
  seam_workspace: { in: 'header', name: 'seam-workspace', type: 'apiKey' },
1599
+ user_session: {
1600
+ bearerFormat: 'User Session Token',
1601
+ scheme: 'bearer',
1602
+ type: 'http',
1603
+ },
1556
1604
  },
1557
1605
  },
1558
1606
  info: { title: 'Seam Connect', version: '1.0.0' },
@@ -1929,9 +1977,10 @@ export default {
1929
1977
  401: { description: 'Unauthorized' },
1930
1978
  },
1931
1979
  security: [
1932
- { access_token: [], seam_workspace: [] },
1933
- { seam_client_session_token: [] },
1934
- { client_session_token: [] },
1980
+ { api_key: [] },
1981
+ { access_token: [] },
1982
+ { user_session: [] },
1983
+ { client_session: [] },
1935
1984
  ],
1936
1985
  summary: '/access_codes/get',
1937
1986
  tags: ['/access_codes'],
@@ -2742,98 +2791,6 @@ export default {
2742
2791
  'x-fern-ignore': true,
2743
2792
  },
2744
2793
  },
2745
- '/acs/access_groups/create': {
2746
- post: {
2747
- operationId: 'acsAccessGroupsCreatePost',
2748
- requestBody: {
2749
- content: {
2750
- 'application/json': {
2751
- schema: {
2752
- properties: {
2753
- acs_system_id: { format: 'uuid', type: 'string' },
2754
- name: { type: 'string' },
2755
- },
2756
- required: ['acs_system_id'],
2757
- type: 'object',
2758
- },
2759
- },
2760
- },
2761
- },
2762
- responses: {
2763
- 200: {
2764
- content: {
2765
- 'application/json': {
2766
- schema: {
2767
- properties: {
2768
- acs_access_group: {
2769
- $ref: '#/components/schemas/acs_access_group',
2770
- },
2771
- ok: { type: 'boolean' },
2772
- },
2773
- required: ['acs_access_group', 'ok'],
2774
- type: 'object',
2775
- },
2776
- },
2777
- },
2778
- description: 'OK',
2779
- },
2780
- 400: { description: 'Bad Request' },
2781
- 401: { description: 'Unauthorized' },
2782
- },
2783
- security: [
2784
- { access_token: [], seam_workspace: [] },
2785
- { seam_client_session_token: [] },
2786
- { client_session_token: [] },
2787
- ],
2788
- summary: '/acs/access_groups/create',
2789
- tags: [],
2790
- 'x-fern-sdk-group-name': ['acs', 'access_groups'],
2791
- 'x-fern-sdk-method-name': 'create',
2792
- },
2793
- },
2794
- '/acs/access_groups/delete': {
2795
- post: {
2796
- operationId: 'acsAccessGroupsDeletePost',
2797
- requestBody: {
2798
- content: {
2799
- 'application/json': {
2800
- schema: {
2801
- properties: {
2802
- acs_access_group_id: { format: 'uuid', type: 'string' },
2803
- },
2804
- required: ['acs_access_group_id'],
2805
- type: 'object',
2806
- },
2807
- },
2808
- },
2809
- },
2810
- responses: {
2811
- 200: {
2812
- content: {
2813
- 'application/json': {
2814
- schema: {
2815
- properties: { ok: { type: 'boolean' } },
2816
- required: ['ok'],
2817
- type: 'object',
2818
- },
2819
- },
2820
- },
2821
- description: 'OK',
2822
- },
2823
- 400: { description: 'Bad Request' },
2824
- 401: { description: 'Unauthorized' },
2825
- },
2826
- security: [
2827
- { access_token: [], seam_workspace: [] },
2828
- { seam_client_session_token: [] },
2829
- { client_session_token: [] },
2830
- ],
2831
- summary: '/acs/access_groups/delete',
2832
- tags: [],
2833
- 'x-fern-sdk-group-name': ['acs', 'access_groups'],
2834
- 'x-fern-sdk-method-name': 'delete',
2835
- },
2836
- },
2837
2794
  '/acs/access_groups/get': {
2838
2795
  post: {
2839
2796
  operationId: 'acsAccessGroupsGetPost',
@@ -3024,18 +2981,18 @@ export default {
3024
2981
  'x-fern-sdk-method-name': 'remove_user',
3025
2982
  },
3026
2983
  },
3027
- '/acs/access_groups/update': {
2984
+ '/acs/credentials/assign': {
3028
2985
  patch: {
3029
- operationId: 'acsAccessGroupsUpdatePatch',
2986
+ operationId: 'acsCredentialsAssignPatch',
3030
2987
  requestBody: {
3031
2988
  content: {
3032
2989
  'application/json': {
3033
2990
  schema: {
3034
2991
  properties: {
3035
- acs_access_group_id: { format: 'uuid', type: 'string' },
3036
- name: { nullable: true, type: 'string' },
2992
+ acs_credential_id: { format: 'uuid', type: 'string' },
2993
+ acs_user_id: { format: 'uuid', type: 'string' },
3037
2994
  },
3038
- required: ['acs_access_group_id'],
2995
+ required: ['acs_user_id', 'acs_credential_id'],
3039
2996
  type: 'object',
3040
2997
  },
3041
2998
  },
@@ -3062,21 +3019,21 @@ export default {
3062
3019
  { seam_client_session_token: [] },
3063
3020
  { client_session_token: [] },
3064
3021
  ],
3065
- summary: '/acs/access_groups/update',
3022
+ summary: '/acs/credentials/assign',
3066
3023
  tags: [],
3067
3024
  'x-fern-ignore': true,
3068
3025
  },
3069
3026
  post: {
3070
- operationId: 'acsAccessGroupsUpdatePost',
3027
+ operationId: 'acsCredentialsAssignPost',
3071
3028
  requestBody: {
3072
3029
  content: {
3073
3030
  'application/json': {
3074
3031
  schema: {
3075
3032
  properties: {
3076
- acs_access_group_id: { format: 'uuid', type: 'string' },
3077
- name: { nullable: true, type: 'string' },
3033
+ acs_credential_id: { format: 'uuid', type: 'string' },
3034
+ acs_user_id: { format: 'uuid', type: 'string' },
3078
3035
  },
3079
- required: ['acs_access_group_id'],
3036
+ required: ['acs_user_id', 'acs_credential_id'],
3080
3037
  type: 'object',
3081
3038
  },
3082
3039
  },
@@ -3103,10 +3060,10 @@ export default {
3103
3060
  { seam_client_session_token: [] },
3104
3061
  { client_session_token: [] },
3105
3062
  ],
3106
- summary: '/acs/access_groups/update',
3063
+ summary: '/acs/credentials/assign',
3107
3064
  tags: [],
3108
- 'x-fern-sdk-group-name': ['acs', 'access_groups'],
3109
- 'x-fern-sdk-method-name': 'update',
3065
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3066
+ 'x-fern-sdk-method-name': 'assign',
3110
3067
  },
3111
3068
  },
3112
3069
  '/acs/credentials/create': {
@@ -3139,13 +3096,15 @@ export default {
3139
3096
  acs_user_id: { format: 'uuid', type: 'string' },
3140
3097
  code: { nullable: true, type: 'string' },
3141
3098
  created_at: { format: 'date-time', type: 'string' },
3142
- external_type: { enum: ['pti_card'], type: 'string' },
3099
+ external_type: {
3100
+ enum: ['pti_card', 'brivo_credential'],
3101
+ type: 'string',
3102
+ },
3143
3103
  external_type_display_name: { type: 'string' },
3144
3104
  workspace_id: { format: 'uuid', type: 'string' },
3145
3105
  },
3146
3106
  required: [
3147
3107
  'acs_credential_id',
3148
- 'acs_user_id',
3149
3108
  'acs_system_id',
3150
3109
  'code',
3151
3110
  'external_type',
@@ -3250,13 +3209,15 @@ export default {
3250
3209
  acs_user_id: { format: 'uuid', type: 'string' },
3251
3210
  code: { nullable: true, type: 'string' },
3252
3211
  created_at: { format: 'date-time', type: 'string' },
3253
- external_type: { enum: ['pti_card'], type: 'string' },
3212
+ external_type: {
3213
+ enum: ['pti_card', 'brivo_credential'],
3214
+ type: 'string',
3215
+ },
3254
3216
  external_type_display_name: { type: 'string' },
3255
3217
  workspace_id: { format: 'uuid', type: 'string' },
3256
3218
  },
3257
3219
  required: [
3258
3220
  'acs_credential_id',
3259
- 'acs_user_id',
3260
3221
  'acs_system_id',
3261
3222
  'code',
3262
3223
  'external_type',
@@ -3338,13 +3299,15 @@ export default {
3338
3299
  acs_user_id: { format: 'uuid', type: 'string' },
3339
3300
  code: { nullable: true, type: 'string' },
3340
3301
  created_at: { format: 'date-time', type: 'string' },
3341
- external_type: { enum: ['pti_card'], type: 'string' },
3302
+ external_type: {
3303
+ enum: ['pti_card', 'brivo_credential'],
3304
+ type: 'string',
3305
+ },
3342
3306
  external_type_display_name: { type: 'string' },
3343
3307
  workspace_id: { format: 'uuid', type: 'string' },
3344
3308
  },
3345
3309
  required: [
3346
3310
  'acs_credential_id',
3347
- 'acs_user_id',
3348
3311
  'acs_system_id',
3349
3312
  'code',
3350
3313
  'external_type',
@@ -3379,6 +3342,91 @@ export default {
3379
3342
  'x-fern-sdk-method-name': 'list',
3380
3343
  },
3381
3344
  },
3345
+ '/acs/credentials/unassign': {
3346
+ patch: {
3347
+ operationId: 'acsCredentialsUnassignPatch',
3348
+ requestBody: {
3349
+ content: {
3350
+ 'application/json': {
3351
+ schema: {
3352
+ properties: {
3353
+ acs_credential_id: { format: 'uuid', type: 'string' },
3354
+ acs_user_id: { format: 'uuid', type: 'string' },
3355
+ },
3356
+ required: ['acs_user_id', 'acs_credential_id'],
3357
+ type: 'object',
3358
+ },
3359
+ },
3360
+ },
3361
+ },
3362
+ responses: {
3363
+ 200: {
3364
+ content: {
3365
+ 'application/json': {
3366
+ schema: {
3367
+ properties: { ok: { type: 'boolean' } },
3368
+ required: ['ok'],
3369
+ type: 'object',
3370
+ },
3371
+ },
3372
+ },
3373
+ description: 'OK',
3374
+ },
3375
+ 400: { description: 'Bad Request' },
3376
+ 401: { description: 'Unauthorized' },
3377
+ },
3378
+ security: [
3379
+ { access_token: [], seam_workspace: [] },
3380
+ { seam_client_session_token: [] },
3381
+ { client_session_token: [] },
3382
+ ],
3383
+ summary: '/acs/credentials/unassign',
3384
+ tags: [],
3385
+ 'x-fern-ignore': true,
3386
+ },
3387
+ post: {
3388
+ operationId: 'acsCredentialsUnassignPost',
3389
+ requestBody: {
3390
+ content: {
3391
+ 'application/json': {
3392
+ schema: {
3393
+ properties: {
3394
+ acs_credential_id: { format: 'uuid', type: 'string' },
3395
+ acs_user_id: { format: 'uuid', type: 'string' },
3396
+ },
3397
+ required: ['acs_user_id', 'acs_credential_id'],
3398
+ type: 'object',
3399
+ },
3400
+ },
3401
+ },
3402
+ },
3403
+ responses: {
3404
+ 200: {
3405
+ content: {
3406
+ 'application/json': {
3407
+ schema: {
3408
+ properties: { ok: { type: 'boolean' } },
3409
+ required: ['ok'],
3410
+ type: 'object',
3411
+ },
3412
+ },
3413
+ },
3414
+ description: 'OK',
3415
+ },
3416
+ 400: { description: 'Bad Request' },
3417
+ 401: { description: 'Unauthorized' },
3418
+ },
3419
+ security: [
3420
+ { access_token: [], seam_workspace: [] },
3421
+ { seam_client_session_token: [] },
3422
+ { client_session_token: [] },
3423
+ ],
3424
+ summary: '/acs/credentials/unassign',
3425
+ tags: [],
3426
+ 'x-fern-sdk-group-name': ['acs', 'credentials'],
3427
+ 'x-fern-sdk-method-name': 'unassign',
3428
+ },
3429
+ },
3382
3430
  '/acs/systems/get': {
3383
3431
  post: {
3384
3432
  operationId: 'acsSystemsGetPost',
@@ -3555,6 +3603,7 @@ export default {
3555
3603
  format: 'email',
3556
3604
  type: 'string',
3557
3605
  },
3606
+ email_address: { format: 'email', type: 'string' },
3558
3607
  full_name: { type: 'string' },
3559
3608
  phone_number: { nullable: true, type: 'string' },
3560
3609
  },
@@ -3857,6 +3906,7 @@ export default {
3857
3906
  format: 'email',
3858
3907
  type: 'string',
3859
3908
  },
3909
+ email_address: { format: 'email', type: 'string' },
3860
3910
  full_name: { type: 'string' },
3861
3911
  phone_number: { nullable: true, type: 'string' },
3862
3912
  },
@@ -3904,6 +3954,7 @@ export default {
3904
3954
  format: 'email',
3905
3955
  type: 'string',
3906
3956
  },
3957
+ email_address: { format: 'email', type: 'string' },
3907
3958
  full_name: { type: 'string' },
3908
3959
  phone_number: { nullable: true, type: 'string' },
3909
3960
  },
@@ -4621,6 +4672,7 @@ export default {
4621
4672
  'wyze',
4622
4673
  'seam_passport',
4623
4674
  'yale_access',
4675
+ 'hid_cm',
4624
4676
  ],
4625
4677
  type: 'string',
4626
4678
  },
@@ -8829,7 +8881,7 @@ export default {
8829
8881
  tags: ['/workspaces'],
8830
8882
  'x-fern-sdk-group-name': ['workspaces'],
8831
8883
  'x-fern-sdk-method-name': 'list',
8832
- 'x-fern-sdk-return-value': 'workspace',
8884
+ 'x-fern-sdk-return-value': 'workspaces',
8833
8885
  },
8834
8886
  },
8835
8887
  '/workspaces/reset_sandbox': {