@seamapi/types 1.84.0 → 1.85.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.
package/README.md CHANGED
@@ -36,6 +36,10 @@ Each entrypoint may export one or more of the following:
36
36
 
37
37
  ## Installation
38
38
 
39
+ _This is a low-level package meant for applications and libraries with particular dependency requirements.
40
+ These types and schemas are entirely contained in the [seam package]. Seam recommends using that package instead
41
+ for simpler dependency management._
42
+
39
43
  ### Types Only
40
44
 
41
45
  Add this as a development dependency to your project using [npm] with
@@ -53,6 +57,7 @@ $ npm install @seamapi/types
53
57
  ```
54
58
 
55
59
  [npm]: https://www.npmjs.com/
60
+ [seam package]: https://www.npmjs.com/package/seam
56
61
 
57
62
  ## Development and Testing
58
63
 
package/dist/connect.cjs CHANGED
@@ -14,7 +14,10 @@ __export(schemas_exports, {
14
14
  connect_webview: () => connect_webview,
15
15
  custom_metadata: () => custom_metadata
16
16
  });
17
- var custom_metadata = zod.z.record(zod.z.string().max(40), zod.z.union([zod.z.string().max(500), zod.z.boolean()])).refine((val) => Object.keys(val).length <= 50, {
17
+ var custom_metadata = zod.z.record(
18
+ zod.z.string().max(40),
19
+ zod.z.union([zod.z.string().max(500), zod.z.boolean(), zod.z.null()])
20
+ ).refine((val) => Object.keys(val).length <= 50, {
18
21
  message: "Custom metadata is limited to a maximum of 50 keys"
19
22
  });
20
23
 
@@ -452,7 +455,12 @@ var openapi_default = {
452
455
  created_at: { format: "date-time", type: "string" },
453
456
  custom_metadata: {
454
457
  additionalProperties: {
455
- oneOf: [{ maxLength: 500, type: "string" }, { type: "boolean" }]
458
+ nullable: true,
459
+ oneOf: [
460
+ { maxLength: 500, type: "string" },
461
+ { type: "boolean" },
462
+ { format: "null", nullable: true, type: "string" }
463
+ ]
456
464
  },
457
465
  type: "object"
458
466
  },
@@ -508,7 +516,12 @@ var openapi_default = {
508
516
  created_at: { format: "date-time", type: "string" },
509
517
  custom_metadata: {
510
518
  additionalProperties: {
511
- oneOf: [{ maxLength: 500, type: "string" }, { type: "boolean" }]
519
+ nullable: true,
520
+ oneOf: [
521
+ { maxLength: 500, type: "string" },
522
+ { type: "boolean" },
523
+ { format: "null", nullable: true, type: "string" }
524
+ ]
512
525
  },
513
526
  type: "object"
514
527
  },
@@ -7326,9 +7339,11 @@ var openapi_default = {
7326
7339
  automatically_manage_new_devices: { type: "boolean" },
7327
7340
  custom_metadata: {
7328
7341
  additionalProperties: {
7342
+ nullable: true,
7329
7343
  oneOf: [
7330
7344
  { maxLength: 500, type: "string" },
7331
- { type: "boolean" }
7345
+ { type: "boolean" },
7346
+ { format: "null", nullable: true, type: "string" }
7332
7347
  ]
7333
7348
  },
7334
7349
  type: "object"
@@ -7482,7 +7497,21 @@ var openapi_default = {
7482
7497
  content: {
7483
7498
  "application/json": {
7484
7499
  schema: {
7485
- properties: { user_identifier_key: { type: "string" } },
7500
+ properties: {
7501
+ custom_metadata_has: {
7502
+ additionalProperties: {
7503
+ nullable: true,
7504
+ oneOf: [
7505
+ { maxLength: 500, type: "string" },
7506
+ { type: "boolean" },
7507
+ { format: "null", nullable: true, type: "string" }
7508
+ ]
7509
+ },
7510
+ description: "Returns devices where the webview's custom_metadata contains all of the provided key/value pairs.",
7511
+ type: "object"
7512
+ },
7513
+ user_identifier_key: { type: "string" }
7514
+ },
7486
7515
  type: "object"
7487
7516
  }
7488
7517
  }
@@ -7653,41 +7682,31 @@ var openapi_default = {
7653
7682
  }
7654
7683
  },
7655
7684
  "/connected_accounts/list": {
7656
- get: {
7657
- operationId: "connectedAccountsListGet",
7658
- responses: {
7659
- 200: {
7660
- content: {
7661
- "application/json": {
7662
- schema: {
7663
- properties: {
7664
- connected_accounts: {
7665
- items: { $ref: "#/components/schemas/connected_account" },
7666
- type: "array"
7685
+ post: {
7686
+ operationId: "connectedAccountsListPost",
7687
+ requestBody: {
7688
+ content: {
7689
+ "application/json": {
7690
+ schema: {
7691
+ properties: {
7692
+ custom_metadata_has: {
7693
+ additionalProperties: {
7694
+ nullable: true,
7695
+ oneOf: [
7696
+ { maxLength: 500, type: "string" },
7697
+ { type: "boolean" },
7698
+ { format: "null", nullable: true, type: "string" }
7699
+ ]
7667
7700
  },
7668
- ok: { type: "boolean" }
7669
- },
7670
- required: ["connected_accounts", "ok"],
7671
- type: "object"
7672
- }
7701
+ description: "Returns devices where the account's custom_metadata contains all of the provided key/value pairs.",
7702
+ type: "object"
7703
+ }
7704
+ },
7705
+ type: "object"
7673
7706
  }
7674
- },
7675
- description: "OK"
7676
- },
7677
- 400: { description: "Bad Request" },
7678
- 401: { description: "Unauthorized" }
7707
+ }
7708
+ }
7679
7709
  },
7680
- security: [
7681
- { access_token: [], seam_workspace: [] },
7682
- { seam_client_session_token: [] },
7683
- { client_session_token: [] }
7684
- ],
7685
- summary: "/connected_accounts/list",
7686
- tags: ["/connected_accounts"],
7687
- "x-fern-ignore": true
7688
- },
7689
- post: {
7690
- operationId: "connectedAccountsListPost",
7691
7710
  responses: {
7692
7711
  200: {
7693
7712
  content: {
@@ -7731,7 +7750,18 @@ var openapi_default = {
7731
7750
  schema: {
7732
7751
  properties: {
7733
7752
  automatically_manage_new_devices: { type: "boolean" },
7734
- connected_account_id: { format: "uuid", type: "string" }
7753
+ connected_account_id: { format: "uuid", type: "string" },
7754
+ custom_metadata: {
7755
+ additionalProperties: {
7756
+ nullable: true,
7757
+ oneOf: [
7758
+ { maxLength: 500, type: "string" },
7759
+ { type: "boolean" },
7760
+ { format: "null", nullable: true, type: "string" }
7761
+ ]
7762
+ },
7763
+ type: "object"
7764
+ }
7735
7765
  },
7736
7766
  required: ["connected_account_id"],
7737
7767
  type: "object"