@seamapi/types 1.149.0 → 1.150.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 (35) hide show
  1. package/dist/connect.cjs +27 -11
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +31 -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/device-metadata.d.ts +5 -0
  14. package/lib/seam/connect/models/devices/device-metadata.js +1 -0
  15. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  16. package/lib/seam/connect/models/devices/managed-device.d.ts +9 -5
  17. package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
  18. package/lib/seam/connect/models/index.d.ts +1 -1
  19. package/lib/seam/connect/models/index.js +1 -1
  20. package/lib/seam/connect/models/index.js.map +1 -1
  21. package/lib/seam/connect/openapi.d.ts +6 -0
  22. package/lib/seam/connect/openapi.js +14 -5
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +20 -11
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  27. package/src/lib/seam/connect/models/acs/entrance.ts +1 -0
  28. package/src/lib/seam/connect/models/{connect-webview.ts → connect-webviews/connect-webview.ts} +16 -5
  29. package/src/lib/seam/connect/models/connect-webviews/index.ts +1 -0
  30. package/src/lib/seam/connect/models/devices/device-metadata.ts +1 -0
  31. package/src/lib/seam/connect/models/devices/managed-device.ts +0 -9
  32. package/src/lib/seam/connect/models/index.ts +1 -1
  33. package/src/lib/seam/connect/openapi.ts +14 -5
  34. package/src/lib/seam/connect/route-types.ts +20 -11
  35. 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",
@@ -1015,7 +1027,8 @@ var openapi_default = {
1015
1027
  bridge_id: { type: "string" },
1016
1028
  bridge_name: { type: "string" },
1017
1029
  device_id: { type: "string" },
1018
- device_name: { type: "string" }
1030
+ device_name: { type: "string" },
1031
+ keypad_id: { type: "string" }
1019
1032
  },
1020
1033
  required: ["device_id", "device_name"],
1021
1034
  type: "object"
@@ -7195,7 +7208,10 @@ var openapi_default = {
7195
7208
  },
7196
7209
  type: "array"
7197
7210
  },
7198
- automatically_manage_new_devices: { type: "boolean" },
7211
+ automatically_manage_new_devices: {
7212
+ default: true,
7213
+ type: "boolean"
7214
+ },
7199
7215
  custom_metadata: {
7200
7216
  additionalProperties: {
7201
7217
  nullable: true,
@@ -7224,7 +7240,7 @@ var openapi_default = {
7224
7240
  ],
7225
7241
  type: "string"
7226
7242
  },
7227
- wait_for_device_creation: { type: "boolean" }
7243
+ wait_for_device_creation: { default: false, type: "boolean" }
7228
7244
  },
7229
7245
  type: "object"
7230
7246
  }