@seamapi/types 1.146.0 → 1.147.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 (32) hide show
  1. package/dist/connect.cjs +31 -63
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +69 -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 +3 -3
  15. package/lib/seam/connect/models/devices/managed-device.js +1 -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 +13 -1
  19. package/lib/seam/connect/models/devices/unmanaged-device.js +1 -0
  20. package/lib/seam/connect/models/devices/unmanaged-device.js.map +1 -1
  21. package/lib/seam/connect/openapi.d.ts +31 -160
  22. package/lib/seam/connect/openapi.js +24 -60
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +33 -23
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/internal/model-types.ts +2 -32
  27. package/src/lib/seam/connect/internal/schemas.ts +2 -2
  28. package/src/lib/seam/connect/models/custom-metadata.ts +9 -2
  29. package/src/lib/seam/connect/models/devices/managed-device.ts +1 -1
  30. package/src/lib/seam/connect/models/devices/unmanaged-device.ts +1 -0
  31. package/src/lib/seam/connect/openapi.ts +25 -60
  32. package/src/lib/seam/connect/route-types.ts +37 -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
  },
@@ -1771,7 +1761,8 @@ var openapi_default = {
1771
1761
  "errors",
1772
1762
  "warnings",
1773
1763
  "created_at",
1774
- "is_managed"
1764
+ "is_managed",
1765
+ "custom_metadata"
1775
1766
  ],
1776
1767
  type: "object"
1777
1768
  },
@@ -1926,12 +1917,7 @@ var openapi_default = {
1926
1917
  },
1927
1918
  custom_metadata: {
1928
1919
  additionalProperties: {
1929
- nullable: true,
1930
- oneOf: [
1931
- { maxLength: 500, type: "string" },
1932
- { type: "boolean" },
1933
- { format: "null", nullable: true, type: "string" }
1934
- ]
1920
+ oneOf: [{ type: "string" }, { type: "boolean" }]
1935
1921
  },
1936
1922
  type: "object"
1937
1923
  },
@@ -2033,7 +2019,8 @@ var openapi_default = {
2033
2019
  "errors",
2034
2020
  "warnings",
2035
2021
  "created_at",
2036
- "is_managed"
2022
+ "is_managed",
2023
+ "custom_metadata"
2037
2024
  ],
2038
2025
  type: "object"
2039
2026
  },
@@ -2213,6 +2200,17 @@ var openapi_default = {
2213
2200
  is_managed: { enum: [false], type: "boolean" },
2214
2201
  properties: {
2215
2202
  properties: {
2203
+ accessory_keypad: {
2204
+ description: "Represents the accessory keypad state.",
2205
+ properties: {
2206
+ is_connected: {
2207
+ description: "Indicates if the accessory_keypad is connected to the device.",
2208
+ type: "boolean"
2209
+ }
2210
+ },
2211
+ required: ["is_connected"],
2212
+ type: "object"
2213
+ },
2216
2214
  battery: {
2217
2215
  description: 'Represents the current status of the battery charge level. Values are "critical," which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; "low," which signifies that the battery is under the preferred threshold and should be charged soon; "good," which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and "full," which represents a battery that is fully charged, providing the maximum duration of usage.',
2218
2216
  properties: {
@@ -7346,12 +7344,7 @@ var openapi_default = {
7346
7344
  properties: {
7347
7345
  custom_metadata_has: {
7348
7346
  additionalProperties: {
7349
- nullable: true,
7350
- oneOf: [
7351
- { maxLength: 500, type: "string" },
7352
- { type: "boolean" },
7353
- { format: "null", nullable: true, type: "string" }
7354
- ]
7347
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7355
7348
  },
7356
7349
  description: "Returns devices where the webview's custom_metadata contains all of the provided key/value pairs.",
7357
7350
  type: "object"
@@ -7537,12 +7530,7 @@ var openapi_default = {
7537
7530
  properties: {
7538
7531
  custom_metadata_has: {
7539
7532
  additionalProperties: {
7540
- nullable: true,
7541
- oneOf: [
7542
- { maxLength: 500, type: "string" },
7543
- { type: "boolean" },
7544
- { format: "null", nullable: true, type: "string" }
7545
- ]
7533
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7546
7534
  },
7547
7535
  description: "Returns devices where the account's custom_metadata contains all of the provided key/value pairs.",
7548
7536
  type: "object"
@@ -7762,12 +7750,7 @@ var openapi_default = {
7762
7750
  },
7763
7751
  custom_metadata_has: {
7764
7752
  additionalProperties: {
7765
- nullable: true,
7766
- oneOf: [
7767
- { maxLength: 500, type: "string" },
7768
- { type: "boolean" },
7769
- { format: "null", nullable: true, type: "string" }
7770
- ]
7753
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7771
7754
  },
7772
7755
  type: "object"
7773
7756
  },
@@ -8155,12 +8138,7 @@ var openapi_default = {
8155
8138
  },
8156
8139
  custom_metadata_has: {
8157
8140
  additionalProperties: {
8158
- nullable: true,
8159
- oneOf: [
8160
- { maxLength: 500, type: "string" },
8161
- { type: "boolean" },
8162
- { format: "null", nullable: true, type: "string" }
8163
- ]
8141
+ oneOf: [{ type: "string" }, { type: "boolean" }]
8164
8142
  },
8165
8143
  type: "object"
8166
8144
  },
@@ -9116,12 +9094,7 @@ var openapi_default = {
9116
9094
  },
9117
9095
  custom_metadata_has: {
9118
9096
  additionalProperties: {
9119
- nullable: true,
9120
- oneOf: [
9121
- { maxLength: 500, type: "string" },
9122
- { type: "boolean" },
9123
- { format: "null", nullable: true, type: "string" }
9124
- ]
9097
+ oneOf: [{ type: "string" }, { type: "boolean" }]
9125
9098
  },
9126
9099
  type: "object"
9127
9100
  },
@@ -10850,12 +10823,7 @@ var openapi_default = {
10850
10823
  },
10851
10824
  custom_metadata_has: {
10852
10825
  additionalProperties: {
10853
- nullable: true,
10854
- oneOf: [
10855
- { maxLength: 500, type: "string" },
10856
- { type: "boolean" },
10857
- { format: "null", nullable: true, type: "string" }
10858
- ]
10826
+ oneOf: [{ type: "string" }, { type: "boolean" }]
10859
10827
  },
10860
10828
  type: "object"
10861
10829
  },