@seamapi/types 1.149.0 → 1.149.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 (31) hide show
  1. package/dist/connect.cjs +25 -10
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +19 -16
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/{connect-webview.d.ts → connect-webviews/connect-webview.d.ts} +6 -5
  8. package/lib/seam/connect/models/{connect-webview.js → connect-webviews/connect-webview.js} +12 -5
  9. package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -0
  10. package/lib/seam/connect/models/connect-webviews/index.d.ts +1 -0
  11. package/lib/seam/connect/models/connect-webviews/index.js +2 -0
  12. package/lib/seam/connect/models/connect-webviews/index.js.map +1 -0
  13. package/lib/seam/connect/models/devices/managed-device.d.ts +0 -5
  14. package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
  15. package/lib/seam/connect/models/index.d.ts +1 -1
  16. package/lib/seam/connect/models/index.js +1 -1
  17. package/lib/seam/connect/models/index.js.map +1 -1
  18. package/lib/seam/connect/openapi.d.ts +3 -0
  19. package/lib/seam/connect/openapi.js +13 -5
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +11 -11
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  24. package/src/lib/seam/connect/models/acs/entrance.ts +1 -0
  25. package/src/lib/seam/connect/models/{connect-webview.ts → connect-webviews/connect-webview.ts} +16 -5
  26. package/src/lib/seam/connect/models/connect-webviews/index.ts +1 -0
  27. package/src/lib/seam/connect/models/devices/managed-device.ts +0 -9
  28. package/src/lib/seam/connect/models/index.ts +1 -1
  29. package/src/lib/seam/connect/openapi.ts +13 -5
  30. package/src/lib/seam/connect/route-types.ts +11 -11
  31. package/lib/seam/connect/models/connect-webview.js.map +0 -1
package/dist/connect.cjs CHANGED
@@ -25,18 +25,25 @@ var custom_metadata = zod.z.record(
25
25
  zod.z.union([zod.z.string(), zod.z.boolean()])
26
26
  );
27
27
 
28
- // src/lib/seam/connect/models/connect-webview.ts
28
+ // src/lib/seam/connect/models/connect-webviews/connect-webview.ts
29
+ var connect_webview_device_selection_mode = zod.z.enum([
30
+ "none",
31
+ "single",
32
+ "multiple"
33
+ ]);
29
34
  var connect_webview = zod.z.object({
30
35
  connect_webview_id: zod.z.string().uuid(),
31
- connected_account_id: zod.z.string().uuid().optional(),
32
- url: zod.z.string().url(),
33
36
  workspace_id: zod.z.string().uuid(),
34
- device_selection_mode: zod.z.enum(["none", "single", "multiple"]),
37
+ created_at: zod.z.string().datetime(),
38
+ connected_account_id: zod.z.string().uuid().nullable(),
39
+ url: zod.z.string().url(),
40
+ device_selection_mode: connect_webview_device_selection_mode,
41
+ // TODO: Use enum value.
35
42
  accepted_providers: zod.z.array(zod.z.string()),
43
+ // TODO: Use enum value.
36
44
  accepted_devices: zod.z.array(zod.z.string()),
37
45
  any_provider_allowed: zod.z.boolean(),
38
46
  any_device_allowed: zod.z.boolean(),
39
- created_at: zod.z.string().datetime(),
40
47
  login_successful: zod.z.boolean(),
41
48
  status: zod.z.enum(["pending", "failed", "authorized"]),
42
49
  custom_redirect_url: zod.z.string().url().nullable(),
@@ -462,7 +469,11 @@ var openapi_default = {
462
469
  },
463
470
  automatically_manage_new_devices: { type: "boolean" },
464
471
  connect_webview_id: { format: "uuid", type: "string" },
465
- connected_account_id: { format: "uuid", type: "string" },
472
+ connected_account_id: {
473
+ format: "uuid",
474
+ nullable: true,
475
+ type: "string"
476
+ },
466
477
  created_at: { format: "date-time", type: "string" },
467
478
  custom_metadata: {
468
479
  additionalProperties: {
@@ -493,14 +504,15 @@ var openapi_default = {
493
504
  },
494
505
  required: [
495
506
  "connect_webview_id",
496
- "url",
497
507
  "workspace_id",
508
+ "created_at",
509
+ "connected_account_id",
510
+ "url",
498
511
  "device_selection_mode",
499
512
  "accepted_providers",
500
513
  "accepted_devices",
501
514
  "any_provider_allowed",
502
515
  "any_device_allowed",
503
- "created_at",
504
516
  "login_successful",
505
517
  "status",
506
518
  "custom_redirect_url",
@@ -7195,7 +7207,10 @@ var openapi_default = {
7195
7207
  },
7196
7208
  type: "array"
7197
7209
  },
7198
- automatically_manage_new_devices: { type: "boolean" },
7210
+ automatically_manage_new_devices: {
7211
+ default: true,
7212
+ type: "boolean"
7213
+ },
7199
7214
  custom_metadata: {
7200
7215
  additionalProperties: {
7201
7216
  nullable: true,
@@ -7224,7 +7239,7 @@ var openapi_default = {
7224
7239
  ],
7225
7240
  type: "string"
7226
7241
  },
7227
- wait_for_device_creation: { type: "boolean" }
7242
+ wait_for_device_creation: { default: false, type: "boolean" }
7228
7243
  },
7229
7244
  type: "object"
7230
7245
  }