@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 +65 -38
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +102 -59
- package/lib/seam/connect/openapi.d.ts +83 -46
- package/lib/seam/connect/openapi.js +55 -31
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +15 -9
- package/lib/seam/connect/stable/models/connect-webview.d.ts +3 -3
- package/lib/seam/connect/stable/models/custom-metadata.d.ts +1 -1
- package/lib/seam/connect/stable/models/custom-metadata.js +1 -1
- package/lib/seam/connect/stable/models/custom-metadata.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +57 -31
- package/src/lib/seam/connect/route-types.ts +15 -8
- package/src/lib/seam/connect/stable/models/custom-metadata.ts +4 -1
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(
|
|
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
|
-
|
|
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
|
-
|
|
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: {
|
|
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
|
-
|
|
7656
|
-
operationId: "
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
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
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
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
|
-
|
|
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"
|