@seamapi/types 1.148.1 → 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 (35) hide show
  1. package/dist/connect.cjs +32 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +60 -28
  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 +10 -0
  14. package/lib/seam/connect/models/devices/device-metadata.js +2 -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 +18 -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 +26 -12
  22. package/lib/seam/connect/openapi.js +19 -8
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +29 -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 +2 -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 +19 -8
  34. package/src/lib/seam/connect/route-types.ts +29 -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",
@@ -1139,7 +1151,9 @@ var openapi_default = {
1139
1151
  properties: {
1140
1152
  device_id: { type: "string" },
1141
1153
  device_name: { type: "string" },
1142
- keypad_battery_critical: { type: "boolean" }
1154
+ keypad_2_paired: { type: "boolean" },
1155
+ keypad_battery_critical: { type: "boolean" },
1156
+ keypad_paired: { type: "boolean" }
1143
1157
  },
1144
1158
  required: ["device_id", "device_name"],
1145
1159
  type: "object"
@@ -7193,7 +7207,10 @@ var openapi_default = {
7193
7207
  },
7194
7208
  type: "array"
7195
7209
  },
7196
- automatically_manage_new_devices: { type: "boolean" },
7210
+ automatically_manage_new_devices: {
7211
+ default: true,
7212
+ type: "boolean"
7213
+ },
7197
7214
  custom_metadata: {
7198
7215
  additionalProperties: {
7199
7216
  nullable: true,
@@ -7222,7 +7239,7 @@ var openapi_default = {
7222
7239
  ],
7223
7240
  type: "string"
7224
7241
  },
7225
- wait_for_device_creation: { type: "boolean" }
7242
+ wait_for_device_creation: { default: false, type: "boolean" }
7226
7243
  },
7227
7244
  type: "object"
7228
7245
  }
@@ -7343,9 +7360,10 @@ var openapi_default = {
7343
7360
  401: { description: "Unauthorized" }
7344
7361
  },
7345
7362
  security: [
7346
- { access_token: [], seam_workspace: [] },
7347
- { seam_client_session_token: [] },
7348
- { client_session_token: [] }
7363
+ { client_session: [] },
7364
+ { pat_with_workspace: [] },
7365
+ { console_session: [] },
7366
+ { api_key: [] }
7349
7367
  ],
7350
7368
  summary: "/connect_webviews/get",
7351
7369
  tags: ["/connect_webviews"],