@seamapi/types 1.147.0 → 1.148.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 (29) hide show
  1. package/dist/connect.cjs +32 -63
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +96 -188
  4. package/lib/seam/connect/internal/model-types.d.ts +2 -1
  5. package/lib/seam/connect/internal/model-types.js +1 -1
  6. package/lib/seam/connect/internal/model-types.js.map +1 -1
  7. package/lib/seam/connect/internal/schemas.d.ts +2 -1
  8. package/lib/seam/connect/internal/schemas.js +2 -1
  9. package/lib/seam/connect/internal/schemas.js.map +1 -1
  10. package/lib/seam/connect/models/connect-webview.d.ts +3 -3
  11. package/lib/seam/connect/models/custom-metadata.d.ts +4 -2
  12. package/lib/seam/connect/models/custom-metadata.js +2 -1
  13. package/lib/seam/connect/models/custom-metadata.js.map +1 -1
  14. package/lib/seam/connect/models/devices/managed-device.d.ts +53 -3
  15. package/lib/seam/connect/models/devices/managed-device.js +7 -1
  16. package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
  17. package/lib/seam/connect/models/devices/phone.d.ts +3 -3
  18. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +25 -0
  19. package/lib/seam/connect/openapi.d.ts +32 -160
  20. package/lib/seam/connect/openapi.js +25 -60
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +59 -23
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/internal/model-types.ts +2 -32
  25. package/src/lib/seam/connect/internal/schemas.ts +2 -2
  26. package/src/lib/seam/connect/models/custom-metadata.ts +9 -2
  27. package/src/lib/seam/connect/models/devices/managed-device.ts +7 -1
  28. package/src/lib/seam/connect/openapi.ts +26 -60
  29. package/src/lib/seam/connect/route-types.ts +77 -23
package/dist/connect.cjs CHANGED
@@ -14,12 +14,16 @@ __export(schemas_exports, {
14
14
  connect_webview: () => connect_webview,
15
15
  custom_metadata: () => custom_metadata
16
16
  });
17
- var custom_metadata = zod.z.record(
17
+ zod.z.record(
18
18
  zod.z.string().max(40),
19
19
  zod.z.union([zod.z.string().max(500), zod.z.boolean(), zod.z.null()])
20
20
  ).refine((val) => Object.keys(val).length <= 50, {
21
21
  message: "Custom metadata is limited to a maximum of 50 keys"
22
22
  });
23
+ var custom_metadata = zod.z.record(
24
+ zod.z.string(),
25
+ zod.z.union([zod.z.string(), zod.z.boolean()])
26
+ );
23
27
 
24
28
  // src/lib/seam/connect/models/connect-webview.ts
25
29
  var connect_webview = zod.z.object({
@@ -462,12 +466,7 @@ var openapi_default = {
462
466
  created_at: { format: "date-time", type: "string" },
463
467
  custom_metadata: {
464
468
  additionalProperties: {
465
- nullable: true,
466
- oneOf: [
467
- { maxLength: 500, type: "string" },
468
- { type: "boolean" },
469
- { format: "null", nullable: true, type: "string" }
470
- ]
469
+ oneOf: [{ type: "string" }, { type: "boolean" }]
471
470
  },
472
471
  type: "object"
473
472
  },
@@ -523,12 +522,7 @@ var openapi_default = {
523
522
  created_at: { format: "date-time", type: "string" },
524
523
  custom_metadata: {
525
524
  additionalProperties: {
526
- nullable: true,
527
- oneOf: [
528
- { maxLength: 500, type: "string" },
529
- { type: "boolean" },
530
- { format: "null", nullable: true, type: "string" }
531
- ]
525
+ oneOf: [{ type: "string" }, { type: "boolean" }]
532
526
  },
533
527
  type: "object"
534
528
  },
@@ -547,6 +541,7 @@ var openapi_default = {
547
541
  },
548
542
  required: [
549
543
  "account_type_display_name",
544
+ "custom_metadata",
550
545
  "automatically_manage_new_devices"
551
546
  ],
552
547
  type: "object"
@@ -584,12 +579,7 @@ var openapi_default = {
584
579
  },
585
580
  custom_metadata: {
586
581
  additionalProperties: {
587
- nullable: true,
588
- oneOf: [
589
- { maxLength: 500, type: "string" },
590
- { type: "boolean" },
591
- { format: "null", nullable: true, type: "string" }
592
- ]
582
+ oneOf: [{ type: "string" }, { type: "boolean" }]
593
583
  },
594
584
  type: "object"
595
585
  },
@@ -698,6 +688,18 @@ var openapi_default = {
698
688
  accessory_keypad: {
699
689
  description: "Represents the accessory keypad state.",
700
690
  properties: {
691
+ battery: {
692
+ description: "Indicates if the keypad battery properties.",
693
+ properties: {
694
+ level: {
695
+ maximum: 1,
696
+ minimum: 0,
697
+ type: "number"
698
+ }
699
+ },
700
+ required: ["level"],
701
+ type: "object"
702
+ },
701
703
  is_connected: {
702
704
  description: "Indicates if the accessory_keypad is connected to the device.",
703
705
  type: "boolean"
@@ -1771,7 +1773,8 @@ var openapi_default = {
1771
1773
  "errors",
1772
1774
  "warnings",
1773
1775
  "created_at",
1774
- "is_managed"
1776
+ "is_managed",
1777
+ "custom_metadata"
1775
1778
  ],
1776
1779
  type: "object"
1777
1780
  },
@@ -1926,12 +1929,7 @@ var openapi_default = {
1926
1929
  },
1927
1930
  custom_metadata: {
1928
1931
  additionalProperties: {
1929
- nullable: true,
1930
- oneOf: [
1931
- { maxLength: 500, type: "string" },
1932
- { type: "boolean" },
1933
- { format: "null", nullable: true, type: "string" }
1934
- ]
1932
+ oneOf: [{ type: "string" }, { type: "boolean" }]
1935
1933
  },
1936
1934
  type: "object"
1937
1935
  },
@@ -2033,7 +2031,8 @@ var openapi_default = {
2033
2031
  "errors",
2034
2032
  "warnings",
2035
2033
  "created_at",
2036
- "is_managed"
2034
+ "is_managed",
2035
+ "custom_metadata"
2037
2036
  ],
2038
2037
  type: "object"
2039
2038
  },
@@ -7357,12 +7356,7 @@ var openapi_default = {
7357
7356
  properties: {
7358
7357
  custom_metadata_has: {
7359
7358
  additionalProperties: {
7360
- nullable: true,
7361
- oneOf: [
7362
- { maxLength: 500, type: "string" },
7363
- { type: "boolean" },
7364
- { format: "null", nullable: true, type: "string" }
7365
- ]
7359
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7366
7360
  },
7367
7361
  description: "Returns devices where the webview's custom_metadata contains all of the provided key/value pairs.",
7368
7362
  type: "object"
@@ -7548,12 +7542,7 @@ var openapi_default = {
7548
7542
  properties: {
7549
7543
  custom_metadata_has: {
7550
7544
  additionalProperties: {
7551
- nullable: true,
7552
- oneOf: [
7553
- { maxLength: 500, type: "string" },
7554
- { type: "boolean" },
7555
- { format: "null", nullable: true, type: "string" }
7556
- ]
7545
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7557
7546
  },
7558
7547
  description: "Returns devices where the account's custom_metadata contains all of the provided key/value pairs.",
7559
7548
  type: "object"
@@ -7773,12 +7762,7 @@ var openapi_default = {
7773
7762
  },
7774
7763
  custom_metadata_has: {
7775
7764
  additionalProperties: {
7776
- nullable: true,
7777
- oneOf: [
7778
- { maxLength: 500, type: "string" },
7779
- { type: "boolean" },
7780
- { format: "null", nullable: true, type: "string" }
7781
- ]
7765
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7782
7766
  },
7783
7767
  type: "object"
7784
7768
  },
@@ -8166,12 +8150,7 @@ var openapi_default = {
8166
8150
  },
8167
8151
  custom_metadata_has: {
8168
8152
  additionalProperties: {
8169
- nullable: true,
8170
- oneOf: [
8171
- { maxLength: 500, type: "string" },
8172
- { type: "boolean" },
8173
- { format: "null", nullable: true, type: "string" }
8174
- ]
8153
+ oneOf: [{ type: "string" }, { type: "boolean" }]
8175
8154
  },
8176
8155
  type: "object"
8177
8156
  },
@@ -9127,12 +9106,7 @@ var openapi_default = {
9127
9106
  },
9128
9107
  custom_metadata_has: {
9129
9108
  additionalProperties: {
9130
- nullable: true,
9131
- oneOf: [
9132
- { maxLength: 500, type: "string" },
9133
- { type: "boolean" },
9134
- { format: "null", nullable: true, type: "string" }
9135
- ]
9109
+ oneOf: [{ type: "string" }, { type: "boolean" }]
9136
9110
  },
9137
9111
  type: "object"
9138
9112
  },
@@ -10861,12 +10835,7 @@ var openapi_default = {
10861
10835
  },
10862
10836
  custom_metadata_has: {
10863
10837
  additionalProperties: {
10864
- nullable: true,
10865
- oneOf: [
10866
- { maxLength: 500, type: "string" },
10867
- { type: "boolean" },
10868
- { format: "null", nullable: true, type: "string" }
10869
- ]
10838
+ oneOf: [{ type: "string" }, { type: "boolean" }]
10870
10839
  },
10871
10840
  type: "object"
10872
10841
  },