@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
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
  },
@@ -3140,6 +3193,91 @@ var openapi_default = {
3140
3193
  "x-fern-sdk-method-name": "update"
3141
3194
  }
3142
3195
  },
3196
+ "/acs/credentials/assign": {
3197
+ patch: {
3198
+ operationId: "acsCredentialsAssignPatch",
3199
+ requestBody: {
3200
+ content: {
3201
+ "application/json": {
3202
+ schema: {
3203
+ properties: {
3204
+ acs_credential_id: { format: "uuid", type: "string" },
3205
+ acs_user_id: { format: "uuid", type: "string" }
3206
+ },
3207
+ required: ["acs_user_id", "acs_credential_id"],
3208
+ type: "object"
3209
+ }
3210
+ }
3211
+ }
3212
+ },
3213
+ responses: {
3214
+ 200: {
3215
+ content: {
3216
+ "application/json": {
3217
+ schema: {
3218
+ properties: { ok: { type: "boolean" } },
3219
+ required: ["ok"],
3220
+ type: "object"
3221
+ }
3222
+ }
3223
+ },
3224
+ description: "OK"
3225
+ },
3226
+ 400: { description: "Bad Request" },
3227
+ 401: { description: "Unauthorized" }
3228
+ },
3229
+ security: [
3230
+ { access_token: [], seam_workspace: [] },
3231
+ { seam_client_session_token: [] },
3232
+ { client_session_token: [] }
3233
+ ],
3234
+ summary: "/acs/credentials/assign",
3235
+ tags: [],
3236
+ "x-fern-ignore": true
3237
+ },
3238
+ post: {
3239
+ operationId: "acsCredentialsAssignPost",
3240
+ requestBody: {
3241
+ content: {
3242
+ "application/json": {
3243
+ schema: {
3244
+ properties: {
3245
+ acs_credential_id: { format: "uuid", type: "string" },
3246
+ acs_user_id: { format: "uuid", type: "string" }
3247
+ },
3248
+ required: ["acs_user_id", "acs_credential_id"],
3249
+ type: "object"
3250
+ }
3251
+ }
3252
+ }
3253
+ },
3254
+ responses: {
3255
+ 200: {
3256
+ content: {
3257
+ "application/json": {
3258
+ schema: {
3259
+ properties: { ok: { type: "boolean" } },
3260
+ required: ["ok"],
3261
+ type: "object"
3262
+ }
3263
+ }
3264
+ },
3265
+ description: "OK"
3266
+ },
3267
+ 400: { description: "Bad Request" },
3268
+ 401: { description: "Unauthorized" }
3269
+ },
3270
+ security: [
3271
+ { access_token: [], seam_workspace: [] },
3272
+ { seam_client_session_token: [] },
3273
+ { client_session_token: [] }
3274
+ ],
3275
+ summary: "/acs/credentials/assign",
3276
+ tags: [],
3277
+ "x-fern-sdk-group-name": ["acs", "credentials"],
3278
+ "x-fern-sdk-method-name": "assign"
3279
+ }
3280
+ },
3143
3281
  "/acs/credentials/create": {
3144
3282
  post: {
3145
3283
  operationId: "acsCredentialsCreatePost",
@@ -3170,13 +3308,15 @@ var openapi_default = {
3170
3308
  acs_user_id: { format: "uuid", type: "string" },
3171
3309
  code: { nullable: true, type: "string" },
3172
3310
  created_at: { format: "date-time", type: "string" },
3173
- external_type: { enum: ["pti_card"], type: "string" },
3311
+ external_type: {
3312
+ enum: ["pti_card", "brivo_credential"],
3313
+ type: "string"
3314
+ },
3174
3315
  external_type_display_name: { type: "string" },
3175
3316
  workspace_id: { format: "uuid", type: "string" }
3176
3317
  },
3177
3318
  required: [
3178
3319
  "acs_credential_id",
3179
- "acs_user_id",
3180
3320
  "acs_system_id",
3181
3321
  "code",
3182
3322
  "external_type",
@@ -3281,13 +3421,15 @@ var openapi_default = {
3281
3421
  acs_user_id: { format: "uuid", type: "string" },
3282
3422
  code: { nullable: true, type: "string" },
3283
3423
  created_at: { format: "date-time", type: "string" },
3284
- external_type: { enum: ["pti_card"], type: "string" },
3424
+ external_type: {
3425
+ enum: ["pti_card", "brivo_credential"],
3426
+ type: "string"
3427
+ },
3285
3428
  external_type_display_name: { type: "string" },
3286
3429
  workspace_id: { format: "uuid", type: "string" }
3287
3430
  },
3288
3431
  required: [
3289
3432
  "acs_credential_id",
3290
- "acs_user_id",
3291
3433
  "acs_system_id",
3292
3434
  "code",
3293
3435
  "external_type",
@@ -3369,13 +3511,15 @@ var openapi_default = {
3369
3511
  acs_user_id: { format: "uuid", type: "string" },
3370
3512
  code: { nullable: true, type: "string" },
3371
3513
  created_at: { format: "date-time", type: "string" },
3372
- external_type: { enum: ["pti_card"], type: "string" },
3514
+ external_type: {
3515
+ enum: ["pti_card", "brivo_credential"],
3516
+ type: "string"
3517
+ },
3373
3518
  external_type_display_name: { type: "string" },
3374
3519
  workspace_id: { format: "uuid", type: "string" }
3375
3520
  },
3376
3521
  required: [
3377
3522
  "acs_credential_id",
3378
- "acs_user_id",
3379
3523
  "acs_system_id",
3380
3524
  "code",
3381
3525
  "external_type",
@@ -3410,6 +3554,91 @@ var openapi_default = {
3410
3554
  "x-fern-sdk-method-name": "list"
3411
3555
  }
3412
3556
  },
3557
+ "/acs/credentials/unassign": {
3558
+ patch: {
3559
+ operationId: "acsCredentialsUnassignPatch",
3560
+ requestBody: {
3561
+ content: {
3562
+ "application/json": {
3563
+ schema: {
3564
+ properties: {
3565
+ acs_credential_id: { format: "uuid", type: "string" },
3566
+ acs_user_id: { format: "uuid", type: "string" }
3567
+ },
3568
+ required: ["acs_user_id", "acs_credential_id"],
3569
+ type: "object"
3570
+ }
3571
+ }
3572
+ }
3573
+ },
3574
+ responses: {
3575
+ 200: {
3576
+ content: {
3577
+ "application/json": {
3578
+ schema: {
3579
+ properties: { ok: { type: "boolean" } },
3580
+ required: ["ok"],
3581
+ type: "object"
3582
+ }
3583
+ }
3584
+ },
3585
+ description: "OK"
3586
+ },
3587
+ 400: { description: "Bad Request" },
3588
+ 401: { description: "Unauthorized" }
3589
+ },
3590
+ security: [
3591
+ { access_token: [], seam_workspace: [] },
3592
+ { seam_client_session_token: [] },
3593
+ { client_session_token: [] }
3594
+ ],
3595
+ summary: "/acs/credentials/unassign",
3596
+ tags: [],
3597
+ "x-fern-ignore": true
3598
+ },
3599
+ post: {
3600
+ operationId: "acsCredentialsUnassignPost",
3601
+ requestBody: {
3602
+ content: {
3603
+ "application/json": {
3604
+ schema: {
3605
+ properties: {
3606
+ acs_credential_id: { format: "uuid", type: "string" },
3607
+ acs_user_id: { format: "uuid", type: "string" }
3608
+ },
3609
+ required: ["acs_user_id", "acs_credential_id"],
3610
+ type: "object"
3611
+ }
3612
+ }
3613
+ }
3614
+ },
3615
+ responses: {
3616
+ 200: {
3617
+ content: {
3618
+ "application/json": {
3619
+ schema: {
3620
+ properties: { ok: { type: "boolean" } },
3621
+ required: ["ok"],
3622
+ type: "object"
3623
+ }
3624
+ }
3625
+ },
3626
+ description: "OK"
3627
+ },
3628
+ 400: { description: "Bad Request" },
3629
+ 401: { description: "Unauthorized" }
3630
+ },
3631
+ security: [
3632
+ { access_token: [], seam_workspace: [] },
3633
+ { seam_client_session_token: [] },
3634
+ { client_session_token: [] }
3635
+ ],
3636
+ summary: "/acs/credentials/unassign",
3637
+ tags: [],
3638
+ "x-fern-sdk-group-name": ["acs", "credentials"],
3639
+ "x-fern-sdk-method-name": "unassign"
3640
+ }
3641
+ },
3413
3642
  "/acs/systems/get": {
3414
3643
  post: {
3415
3644
  operationId: "acsSystemsGetPost",
@@ -3586,6 +3815,7 @@ var openapi_default = {
3586
3815
  format: "email",
3587
3816
  type: "string"
3588
3817
  },
3818
+ email_address: { format: "email", type: "string" },
3589
3819
  full_name: { type: "string" },
3590
3820
  phone_number: { nullable: true, type: "string" }
3591
3821
  },
@@ -3888,6 +4118,7 @@ var openapi_default = {
3888
4118
  format: "email",
3889
4119
  type: "string"
3890
4120
  },
4121
+ email_address: { format: "email", type: "string" },
3891
4122
  full_name: { type: "string" },
3892
4123
  phone_number: { nullable: true, type: "string" }
3893
4124
  },
@@ -3935,6 +4166,7 @@ var openapi_default = {
3935
4166
  format: "email",
3936
4167
  type: "string"
3937
4168
  },
4169
+ email_address: { format: "email", type: "string" },
3938
4170
  full_name: { type: "string" },
3939
4171
  phone_number: { nullable: true, type: "string" }
3940
4172
  },
@@ -8860,7 +9092,7 @@ var openapi_default = {
8860
9092
  tags: ["/workspaces"],
8861
9093
  "x-fern-sdk-group-name": ["workspaces"],
8862
9094
  "x-fern-sdk-method-name": "list",
8863
- "x-fern-sdk-return-value": "workspace"
9095
+ "x-fern-sdk-return-value": "workspaces"
8864
9096
  }
8865
9097
  },
8866
9098
  "/workspaces/reset_sandbox": {