@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
package/dist/connect.cjs CHANGED
@@ -11,8 +11,17 @@ var __export = (target, all) => {
11
11
  // src/lib/seam/connect/stable/schemas.ts
12
12
  var schemas_exports = {};
13
13
  __export(schemas_exports, {
14
- connect_webview: () => connect_webview
14
+ connect_webview: () => connect_webview,
15
+ custom_metadata: () => custom_metadata
15
16
  });
17
+ var custom_metadata = zod.z.record(
18
+ zod.z.string().max(40),
19
+ zod.z.union([zod.z.string().max(500), zod.z.number(), zod.z.null(), zod.z.boolean()])
20
+ ).refine((val) => Object.keys(val).length <= 50, {
21
+ message: "Custom metadata is limited to a maximum of 50 keys"
22
+ });
23
+
24
+ // src/lib/seam/connect/stable/models/connect-webview.ts
16
25
  var connect_webview = zod.z.object({
17
26
  connect_webview_id: zod.z.string().uuid(),
18
27
  connected_account_id: zod.z.string().uuid().optional(),
@@ -25,7 +34,14 @@ var connect_webview = zod.z.object({
25
34
  any_device_allowed: zod.z.boolean(),
26
35
  created_at: zod.z.string().datetime(),
27
36
  login_successful: zod.z.boolean(),
28
- status: zod.z.enum(["pending", "failed", "authorized"])
37
+ status: zod.z.enum(["pending", "failed", "authorized"]),
38
+ custom_redirect_url: zod.z.string().url().nullable(),
39
+ custom_redirect_failure_url: zod.z.string().url().nullable(),
40
+ custom_metadata,
41
+ automatically_manage_new_devices: zod.z.boolean(),
42
+ wait_for_device_creation: zod.z.boolean(),
43
+ authorized_at: zod.z.string().datetime().nullable(),
44
+ selected_provider: zod.z.string().nullable()
29
45
  });
30
46
 
31
47
  // src/lib/seam/connect/openapi.ts
@@ -170,7 +186,7 @@ var openapi_default = {
170
186
  type: "string"
171
187
  },
172
188
  email_address: { format: "email", type: "string" },
173
- external_type: { enum: ["pti_user"], type: "string" },
189
+ external_type: { enum: ["pti_user", "brivo_user"], type: "string" },
174
190
  external_type_display_name: { type: "string" },
175
191
  full_name: { type: "string" },
176
192
  is_suspended: { type: "boolean" },
@@ -317,16 +333,46 @@ var openapi_default = {
317
333
  accepted_providers: { items: { type: "string" }, type: "array" },
318
334
  any_device_allowed: { type: "boolean" },
319
335
  any_provider_allowed: { type: "boolean" },
336
+ authorized_at: {
337
+ format: "date-time",
338
+ nullable: true,
339
+ type: "string"
340
+ },
341
+ automatically_manage_new_devices: { type: "boolean" },
320
342
  connect_webview_id: { format: "uuid", type: "string" },
321
343
  connected_account_id: { format: "uuid", type: "string" },
322
344
  created_at: { format: "date-time", type: "string" },
345
+ custom_metadata: {
346
+ additionalProperties: {
347
+ nullable: true,
348
+ oneOf: [
349
+ { maxLength: 500, type: "string" },
350
+ { type: "number" },
351
+ { format: "null", nullable: true, type: "string" },
352
+ { type: "boolean" }
353
+ ]
354
+ },
355
+ type: "object"
356
+ },
357
+ custom_redirect_failure_url: {
358
+ format: "uri",
359
+ nullable: true,
360
+ type: "string"
361
+ },
362
+ custom_redirect_url: {
363
+ format: "uri",
364
+ nullable: true,
365
+ type: "string"
366
+ },
323
367
  device_selection_mode: {
324
368
  enum: ["none", "single", "multiple"],
325
369
  type: "string"
326
370
  },
327
371
  login_successful: { type: "boolean" },
372
+ selected_provider: { nullable: true, type: "string" },
328
373
  status: { enum: ["pending", "failed", "authorized"], type: "string" },
329
374
  url: { format: "uri", type: "string" },
375
+ wait_for_device_creation: { type: "boolean" },
330
376
  workspace_id: { format: "uuid", type: "string" }
331
377
  },
332
378
  required: [
@@ -340,7 +386,14 @@ var openapi_default = {
340
386
  "any_device_allowed",
341
387
  "created_at",
342
388
  "login_successful",
343
- "status"
389
+ "status",
390
+ "custom_redirect_url",
391
+ "custom_redirect_failure_url",
392
+ "custom_metadata",
393
+ "automatically_manage_new_devices",
394
+ "wait_for_device_creation",
395
+ "authorized_at",
396
+ "selected_provider"
344
397
  ],
345
398
  type: "object"
346
399
  },
@@ -1573,6 +1626,12 @@ var openapi_default = {
1573
1626
  scheme: "bearer",
1574
1627
  type: "http"
1575
1628
  },
1629
+ api_key: { bearerFormat: "API Key", scheme: "bearer", type: "http" },
1630
+ client_session: {
1631
+ bearerFormat: "Client Session Token",
1632
+ scheme: "bearer",
1633
+ type: "http"
1634
+ },
1576
1635
  client_session_token: {
1577
1636
  in: "header",
1578
1637
  name: "client-session-token",
@@ -1583,7 +1642,12 @@ var openapi_default = {
1583
1642
  name: "seam-client-session-token",
1584
1643
  type: "apiKey"
1585
1644
  },
1586
- seam_workspace: { in: "header", name: "seam-workspace", type: "apiKey" }
1645
+ seam_workspace: { in: "header", name: "seam-workspace", type: "apiKey" },
1646
+ user_session: {
1647
+ bearerFormat: "User Session Token",
1648
+ scheme: "bearer",
1649
+ type: "http"
1650
+ }
1587
1651
  }
1588
1652
  },
1589
1653
  info: { title: "Seam Connect", version: "1.0.0" },
@@ -1960,9 +2024,10 @@ var openapi_default = {
1960
2024
  401: { description: "Unauthorized" }
1961
2025
  },
1962
2026
  security: [
1963
- { access_token: [], seam_workspace: [] },
1964
- { seam_client_session_token: [] },
1965
- { client_session_token: [] }
2027
+ { api_key: [] },
2028
+ { access_token: [] },
2029
+ { user_session: [] },
2030
+ { client_session: [] }
1966
2031
  ],
1967
2032
  summary: "/access_codes/get",
1968
2033
  tags: ["/access_codes"],
@@ -2773,98 +2838,6 @@ var openapi_default = {
2773
2838
  "x-fern-ignore": true
2774
2839
  }
2775
2840
  },
2776
- "/acs/access_groups/create": {
2777
- post: {
2778
- operationId: "acsAccessGroupsCreatePost",
2779
- requestBody: {
2780
- content: {
2781
- "application/json": {
2782
- schema: {
2783
- properties: {
2784
- acs_system_id: { format: "uuid", type: "string" },
2785
- name: { type: "string" }
2786
- },
2787
- required: ["acs_system_id"],
2788
- type: "object"
2789
- }
2790
- }
2791
- }
2792
- },
2793
- responses: {
2794
- 200: {
2795
- content: {
2796
- "application/json": {
2797
- schema: {
2798
- properties: {
2799
- acs_access_group: {
2800
- $ref: "#/components/schemas/acs_access_group"
2801
- },
2802
- ok: { type: "boolean" }
2803
- },
2804
- required: ["acs_access_group", "ok"],
2805
- type: "object"
2806
- }
2807
- }
2808
- },
2809
- description: "OK"
2810
- },
2811
- 400: { description: "Bad Request" },
2812
- 401: { description: "Unauthorized" }
2813
- },
2814
- security: [
2815
- { access_token: [], seam_workspace: [] },
2816
- { seam_client_session_token: [] },
2817
- { client_session_token: [] }
2818
- ],
2819
- summary: "/acs/access_groups/create",
2820
- tags: [],
2821
- "x-fern-sdk-group-name": ["acs", "access_groups"],
2822
- "x-fern-sdk-method-name": "create"
2823
- }
2824
- },
2825
- "/acs/access_groups/delete": {
2826
- post: {
2827
- operationId: "acsAccessGroupsDeletePost",
2828
- requestBody: {
2829
- content: {
2830
- "application/json": {
2831
- schema: {
2832
- properties: {
2833
- acs_access_group_id: { format: "uuid", type: "string" }
2834
- },
2835
- required: ["acs_access_group_id"],
2836
- type: "object"
2837
- }
2838
- }
2839
- }
2840
- },
2841
- responses: {
2842
- 200: {
2843
- content: {
2844
- "application/json": {
2845
- schema: {
2846
- properties: { ok: { type: "boolean" } },
2847
- required: ["ok"],
2848
- type: "object"
2849
- }
2850
- }
2851
- },
2852
- description: "OK"
2853
- },
2854
- 400: { description: "Bad Request" },
2855
- 401: { description: "Unauthorized" }
2856
- },
2857
- security: [
2858
- { access_token: [], seam_workspace: [] },
2859
- { seam_client_session_token: [] },
2860
- { client_session_token: [] }
2861
- ],
2862
- summary: "/acs/access_groups/delete",
2863
- tags: [],
2864
- "x-fern-sdk-group-name": ["acs", "access_groups"],
2865
- "x-fern-sdk-method-name": "delete"
2866
- }
2867
- },
2868
2841
  "/acs/access_groups/get": {
2869
2842
  post: {
2870
2843
  operationId: "acsAccessGroupsGetPost",
@@ -3055,18 +3028,18 @@ var openapi_default = {
3055
3028
  "x-fern-sdk-method-name": "remove_user"
3056
3029
  }
3057
3030
  },
3058
- "/acs/access_groups/update": {
3031
+ "/acs/credentials/assign": {
3059
3032
  patch: {
3060
- operationId: "acsAccessGroupsUpdatePatch",
3033
+ operationId: "acsCredentialsAssignPatch",
3061
3034
  requestBody: {
3062
3035
  content: {
3063
3036
  "application/json": {
3064
3037
  schema: {
3065
3038
  properties: {
3066
- acs_access_group_id: { format: "uuid", type: "string" },
3067
- name: { nullable: true, type: "string" }
3039
+ acs_credential_id: { format: "uuid", type: "string" },
3040
+ acs_user_id: { format: "uuid", type: "string" }
3068
3041
  },
3069
- required: ["acs_access_group_id"],
3042
+ required: ["acs_user_id", "acs_credential_id"],
3070
3043
  type: "object"
3071
3044
  }
3072
3045
  }
@@ -3093,21 +3066,21 @@ var openapi_default = {
3093
3066
  { seam_client_session_token: [] },
3094
3067
  { client_session_token: [] }
3095
3068
  ],
3096
- summary: "/acs/access_groups/update",
3069
+ summary: "/acs/credentials/assign",
3097
3070
  tags: [],
3098
3071
  "x-fern-ignore": true
3099
3072
  },
3100
3073
  post: {
3101
- operationId: "acsAccessGroupsUpdatePost",
3074
+ operationId: "acsCredentialsAssignPost",
3102
3075
  requestBody: {
3103
3076
  content: {
3104
3077
  "application/json": {
3105
3078
  schema: {
3106
3079
  properties: {
3107
- acs_access_group_id: { format: "uuid", type: "string" },
3108
- name: { nullable: true, type: "string" }
3080
+ acs_credential_id: { format: "uuid", type: "string" },
3081
+ acs_user_id: { format: "uuid", type: "string" }
3109
3082
  },
3110
- required: ["acs_access_group_id"],
3083
+ required: ["acs_user_id", "acs_credential_id"],
3111
3084
  type: "object"
3112
3085
  }
3113
3086
  }
@@ -3134,10 +3107,10 @@ var openapi_default = {
3134
3107
  { seam_client_session_token: [] },
3135
3108
  { client_session_token: [] }
3136
3109
  ],
3137
- summary: "/acs/access_groups/update",
3110
+ summary: "/acs/credentials/assign",
3138
3111
  tags: [],
3139
- "x-fern-sdk-group-name": ["acs", "access_groups"],
3140
- "x-fern-sdk-method-name": "update"
3112
+ "x-fern-sdk-group-name": ["acs", "credentials"],
3113
+ "x-fern-sdk-method-name": "assign"
3141
3114
  }
3142
3115
  },
3143
3116
  "/acs/credentials/create": {
@@ -3170,13 +3143,15 @@ var openapi_default = {
3170
3143
  acs_user_id: { format: "uuid", type: "string" },
3171
3144
  code: { nullable: true, type: "string" },
3172
3145
  created_at: { format: "date-time", type: "string" },
3173
- external_type: { enum: ["pti_card"], type: "string" },
3146
+ external_type: {
3147
+ enum: ["pti_card", "brivo_credential"],
3148
+ type: "string"
3149
+ },
3174
3150
  external_type_display_name: { type: "string" },
3175
3151
  workspace_id: { format: "uuid", type: "string" }
3176
3152
  },
3177
3153
  required: [
3178
3154
  "acs_credential_id",
3179
- "acs_user_id",
3180
3155
  "acs_system_id",
3181
3156
  "code",
3182
3157
  "external_type",
@@ -3281,13 +3256,15 @@ var openapi_default = {
3281
3256
  acs_user_id: { format: "uuid", type: "string" },
3282
3257
  code: { nullable: true, type: "string" },
3283
3258
  created_at: { format: "date-time", type: "string" },
3284
- external_type: { enum: ["pti_card"], type: "string" },
3259
+ external_type: {
3260
+ enum: ["pti_card", "brivo_credential"],
3261
+ type: "string"
3262
+ },
3285
3263
  external_type_display_name: { type: "string" },
3286
3264
  workspace_id: { format: "uuid", type: "string" }
3287
3265
  },
3288
3266
  required: [
3289
3267
  "acs_credential_id",
3290
- "acs_user_id",
3291
3268
  "acs_system_id",
3292
3269
  "code",
3293
3270
  "external_type",
@@ -3369,13 +3346,15 @@ var openapi_default = {
3369
3346
  acs_user_id: { format: "uuid", type: "string" },
3370
3347
  code: { nullable: true, type: "string" },
3371
3348
  created_at: { format: "date-time", type: "string" },
3372
- external_type: { enum: ["pti_card"], type: "string" },
3349
+ external_type: {
3350
+ enum: ["pti_card", "brivo_credential"],
3351
+ type: "string"
3352
+ },
3373
3353
  external_type_display_name: { type: "string" },
3374
3354
  workspace_id: { format: "uuid", type: "string" }
3375
3355
  },
3376
3356
  required: [
3377
3357
  "acs_credential_id",
3378
- "acs_user_id",
3379
3358
  "acs_system_id",
3380
3359
  "code",
3381
3360
  "external_type",
@@ -3410,6 +3389,91 @@ var openapi_default = {
3410
3389
  "x-fern-sdk-method-name": "list"
3411
3390
  }
3412
3391
  },
3392
+ "/acs/credentials/unassign": {
3393
+ patch: {
3394
+ operationId: "acsCredentialsUnassignPatch",
3395
+ requestBody: {
3396
+ content: {
3397
+ "application/json": {
3398
+ schema: {
3399
+ properties: {
3400
+ acs_credential_id: { format: "uuid", type: "string" },
3401
+ acs_user_id: { format: "uuid", type: "string" }
3402
+ },
3403
+ required: ["acs_user_id", "acs_credential_id"],
3404
+ type: "object"
3405
+ }
3406
+ }
3407
+ }
3408
+ },
3409
+ responses: {
3410
+ 200: {
3411
+ content: {
3412
+ "application/json": {
3413
+ schema: {
3414
+ properties: { ok: { type: "boolean" } },
3415
+ required: ["ok"],
3416
+ type: "object"
3417
+ }
3418
+ }
3419
+ },
3420
+ description: "OK"
3421
+ },
3422
+ 400: { description: "Bad Request" },
3423
+ 401: { description: "Unauthorized" }
3424
+ },
3425
+ security: [
3426
+ { access_token: [], seam_workspace: [] },
3427
+ { seam_client_session_token: [] },
3428
+ { client_session_token: [] }
3429
+ ],
3430
+ summary: "/acs/credentials/unassign",
3431
+ tags: [],
3432
+ "x-fern-ignore": true
3433
+ },
3434
+ post: {
3435
+ operationId: "acsCredentialsUnassignPost",
3436
+ requestBody: {
3437
+ content: {
3438
+ "application/json": {
3439
+ schema: {
3440
+ properties: {
3441
+ acs_credential_id: { format: "uuid", type: "string" },
3442
+ acs_user_id: { format: "uuid", type: "string" }
3443
+ },
3444
+ required: ["acs_user_id", "acs_credential_id"],
3445
+ type: "object"
3446
+ }
3447
+ }
3448
+ }
3449
+ },
3450
+ responses: {
3451
+ 200: {
3452
+ content: {
3453
+ "application/json": {
3454
+ schema: {
3455
+ properties: { ok: { type: "boolean" } },
3456
+ required: ["ok"],
3457
+ type: "object"
3458
+ }
3459
+ }
3460
+ },
3461
+ description: "OK"
3462
+ },
3463
+ 400: { description: "Bad Request" },
3464
+ 401: { description: "Unauthorized" }
3465
+ },
3466
+ security: [
3467
+ { access_token: [], seam_workspace: [] },
3468
+ { seam_client_session_token: [] },
3469
+ { client_session_token: [] }
3470
+ ],
3471
+ summary: "/acs/credentials/unassign",
3472
+ tags: [],
3473
+ "x-fern-sdk-group-name": ["acs", "credentials"],
3474
+ "x-fern-sdk-method-name": "unassign"
3475
+ }
3476
+ },
3413
3477
  "/acs/systems/get": {
3414
3478
  post: {
3415
3479
  operationId: "acsSystemsGetPost",
@@ -3586,6 +3650,7 @@ var openapi_default = {
3586
3650
  format: "email",
3587
3651
  type: "string"
3588
3652
  },
3653
+ email_address: { format: "email", type: "string" },
3589
3654
  full_name: { type: "string" },
3590
3655
  phone_number: { nullable: true, type: "string" }
3591
3656
  },
@@ -3888,6 +3953,7 @@ var openapi_default = {
3888
3953
  format: "email",
3889
3954
  type: "string"
3890
3955
  },
3956
+ email_address: { format: "email", type: "string" },
3891
3957
  full_name: { type: "string" },
3892
3958
  phone_number: { nullable: true, type: "string" }
3893
3959
  },
@@ -3935,6 +4001,7 @@ var openapi_default = {
3935
4001
  format: "email",
3936
4002
  type: "string"
3937
4003
  },
4004
+ email_address: { format: "email", type: "string" },
3938
4005
  full_name: { type: "string" },
3939
4006
  phone_number: { nullable: true, type: "string" }
3940
4007
  },
@@ -4651,7 +4718,8 @@ var openapi_default = {
4651
4718
  "pti",
4652
4719
  "wyze",
4653
4720
  "seam_passport",
4654
- "yale_access"
4721
+ "yale_access",
4722
+ "hid_cm"
4655
4723
  ],
4656
4724
  type: "string"
4657
4725
  },
@@ -8860,7 +8928,7 @@ var openapi_default = {
8860
8928
  tags: ["/workspaces"],
8861
8929
  "x-fern-sdk-group-name": ["workspaces"],
8862
8930
  "x-fern-sdk-method-name": "list",
8863
- "x-fern-sdk-return-value": "workspace"
8931
+ "x-fern-sdk-return-value": "workspaces"
8864
8932
  }
8865
8933
  },
8866
8934
  "/workspaces/reset_sandbox": {