@seamapi/types 1.83.0 → 1.85.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.
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
  },
@@ -7304,6 +7317,7 @@ var openapi_default = {
7304
7317
  "my_2n",
7305
7318
  "controlbyweb",
7306
7319
  "nest",
7320
+ "google_nest",
7307
7321
  "igloohome",
7308
7322
  "ecobee",
7309
7323
  "hubitat",
@@ -7325,9 +7339,11 @@ var openapi_default = {
7325
7339
  automatically_manage_new_devices: { type: "boolean" },
7326
7340
  custom_metadata: {
7327
7341
  additionalProperties: {
7342
+ nullable: true,
7328
7343
  oneOf: [
7329
7344
  { maxLength: 500, type: "string" },
7330
- { type: "boolean" }
7345
+ { type: "boolean" },
7346
+ { format: "null", nullable: true, type: "string" }
7331
7347
  ]
7332
7348
  },
7333
7349
  type: "object"
@@ -7481,7 +7497,19 @@ var openapi_default = {
7481
7497
  content: {
7482
7498
  "application/json": {
7483
7499
  schema: {
7484
- properties: { user_identifier_key: { type: "string" } },
7500
+ properties: {
7501
+ custom_metadata_has: {
7502
+ additionalProperties: {
7503
+ oneOf: [
7504
+ { maxLength: 500, type: "string" },
7505
+ { type: "boolean" }
7506
+ ]
7507
+ },
7508
+ description: "Returns devices where the webview's custom_metadata contains all of the provided key/value pairs.",
7509
+ type: "object"
7510
+ },
7511
+ user_identifier_key: { type: "string" }
7512
+ },
7485
7513
  type: "object"
7486
7514
  }
7487
7515
  }
@@ -7652,41 +7680,29 @@ var openapi_default = {
7652
7680
  }
7653
7681
  },
7654
7682
  "/connected_accounts/list": {
7655
- get: {
7656
- operationId: "connectedAccountsListGet",
7657
- responses: {
7658
- 200: {
7659
- content: {
7660
- "application/json": {
7661
- schema: {
7662
- properties: {
7663
- connected_accounts: {
7664
- items: { $ref: "#/components/schemas/connected_account" },
7665
- type: "array"
7683
+ post: {
7684
+ operationId: "connectedAccountsListPost",
7685
+ requestBody: {
7686
+ content: {
7687
+ "application/json": {
7688
+ schema: {
7689
+ properties: {
7690
+ custom_metadata_has: {
7691
+ additionalProperties: {
7692
+ oneOf: [
7693
+ { maxLength: 500, type: "string" },
7694
+ { type: "boolean" }
7695
+ ]
7666
7696
  },
7667
- ok: { type: "boolean" }
7668
- },
7669
- required: ["connected_accounts", "ok"],
7670
- type: "object"
7671
- }
7697
+ description: "Returns devices where the account's custom_metadata contains all of the provided key/value pairs.",
7698
+ type: "object"
7699
+ }
7700
+ },
7701
+ type: "object"
7672
7702
  }
7673
- },
7674
- description: "OK"
7675
- },
7676
- 400: { description: "Bad Request" },
7677
- 401: { description: "Unauthorized" }
7703
+ }
7704
+ }
7678
7705
  },
7679
- security: [
7680
- { access_token: [], seam_workspace: [] },
7681
- { seam_client_session_token: [] },
7682
- { client_session_token: [] }
7683
- ],
7684
- summary: "/connected_accounts/list",
7685
- tags: ["/connected_accounts"],
7686
- "x-fern-ignore": true
7687
- },
7688
- post: {
7689
- operationId: "connectedAccountsListPost",
7690
7706
  responses: {
7691
7707
  200: {
7692
7708
  content: {
@@ -7730,7 +7746,18 @@ var openapi_default = {
7730
7746
  schema: {
7731
7747
  properties: {
7732
7748
  automatically_manage_new_devices: { type: "boolean" },
7733
- connected_account_id: { format: "uuid", type: "string" }
7749
+ connected_account_id: { format: "uuid", type: "string" },
7750
+ custom_metadata: {
7751
+ additionalProperties: {
7752
+ nullable: true,
7753
+ oneOf: [
7754
+ { maxLength: 500, type: "string" },
7755
+ { type: "boolean" },
7756
+ { format: "null", nullable: true, type: "string" }
7757
+ ]
7758
+ },
7759
+ type: "object"
7760
+ }
7734
7761
  },
7735
7762
  required: ["connected_account_id"],
7736
7763
  type: "object"