@seamapi/types 1.147.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 (28) hide show
  1. package/dist/connect.cjs +20 -63
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +48 -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/openapi.d.ts +20 -160
  19. package/lib/seam/connect/openapi.js +13 -60
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +23 -23
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/internal/model-types.ts +2 -32
  24. package/src/lib/seam/connect/internal/schemas.ts +2 -2
  25. package/src/lib/seam/connect/models/custom-metadata.ts +9 -2
  26. package/src/lib/seam/connect/models/devices/managed-device.ts +1 -1
  27. package/src/lib/seam/connect/openapi.ts +13 -60
  28. package/src/lib/seam/connect/route-types.ts +23 -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
  },
@@ -7357,12 +7344,7 @@ var openapi_default = {
7357
7344
  properties: {
7358
7345
  custom_metadata_has: {
7359
7346
  additionalProperties: {
7360
- nullable: true,
7361
- oneOf: [
7362
- { maxLength: 500, type: "string" },
7363
- { type: "boolean" },
7364
- { format: "null", nullable: true, type: "string" }
7365
- ]
7347
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7366
7348
  },
7367
7349
  description: "Returns devices where the webview's custom_metadata contains all of the provided key/value pairs.",
7368
7350
  type: "object"
@@ -7548,12 +7530,7 @@ var openapi_default = {
7548
7530
  properties: {
7549
7531
  custom_metadata_has: {
7550
7532
  additionalProperties: {
7551
- nullable: true,
7552
- oneOf: [
7553
- { maxLength: 500, type: "string" },
7554
- { type: "boolean" },
7555
- { format: "null", nullable: true, type: "string" }
7556
- ]
7533
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7557
7534
  },
7558
7535
  description: "Returns devices where the account's custom_metadata contains all of the provided key/value pairs.",
7559
7536
  type: "object"
@@ -7773,12 +7750,7 @@ var openapi_default = {
7773
7750
  },
7774
7751
  custom_metadata_has: {
7775
7752
  additionalProperties: {
7776
- nullable: true,
7777
- oneOf: [
7778
- { maxLength: 500, type: "string" },
7779
- { type: "boolean" },
7780
- { format: "null", nullable: true, type: "string" }
7781
- ]
7753
+ oneOf: [{ type: "string" }, { type: "boolean" }]
7782
7754
  },
7783
7755
  type: "object"
7784
7756
  },
@@ -8166,12 +8138,7 @@ var openapi_default = {
8166
8138
  },
8167
8139
  custom_metadata_has: {
8168
8140
  additionalProperties: {
8169
- nullable: true,
8170
- oneOf: [
8171
- { maxLength: 500, type: "string" },
8172
- { type: "boolean" },
8173
- { format: "null", nullable: true, type: "string" }
8174
- ]
8141
+ oneOf: [{ type: "string" }, { type: "boolean" }]
8175
8142
  },
8176
8143
  type: "object"
8177
8144
  },
@@ -9127,12 +9094,7 @@ var openapi_default = {
9127
9094
  },
9128
9095
  custom_metadata_has: {
9129
9096
  additionalProperties: {
9130
- nullable: true,
9131
- oneOf: [
9132
- { maxLength: 500, type: "string" },
9133
- { type: "boolean" },
9134
- { format: "null", nullable: true, type: "string" }
9135
- ]
9097
+ oneOf: [{ type: "string" }, { type: "boolean" }]
9136
9098
  },
9137
9099
  type: "object"
9138
9100
  },
@@ -10861,12 +10823,7 @@ var openapi_default = {
10861
10823
  },
10862
10824
  custom_metadata_has: {
10863
10825
  additionalProperties: {
10864
- nullable: true,
10865
- oneOf: [
10866
- { maxLength: 500, type: "string" },
10867
- { type: "boolean" },
10868
- { format: "null", nullable: true, type: "string" }
10869
- ]
10826
+ oneOf: [{ type: "string" }, { type: "boolean" }]
10870
10827
  },
10871
10828
  type: "object"
10872
10829
  },