@seamapi/types 1.63.0 → 1.64.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 +8 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +34 -24
- package/dist/devicedb.cjs +4 -1
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +8 -0
- package/lib/seam/connect/openapi.d.ts +34 -24
- package/lib/seam/connect/openapi.js +8 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/devicedb/route-specs.d.ts +6 -0
- package/lib/seam/devicedb/route-specs.js +3 -0
- package/lib/seam/devicedb/route-specs.js.map +1 -1
- package/lib/seam/devicedb/route-types.d.ts +2 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +8 -6
- package/src/lib/seam/devicedb/route-specs.ts +4 -0
- package/src/lib/seam/devicedb/route-types.ts +2 -0
|
@@ -1070,18 +1070,24 @@ export declare const routes: {
|
|
|
1070
1070
|
manufacturer_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1071
1071
|
integration_status: z.ZodOptional<z.ZodEnum<["stable", "beta", "planned", "unsupported", "inquire"]>>;
|
|
1072
1072
|
text_search: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
include_if: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1074
|
+
exclude_if: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1073
1075
|
}, "strip", z.ZodTypeAny, {
|
|
1074
1076
|
main_category?: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory" | undefined;
|
|
1075
1077
|
manufacturer_id?: string | undefined;
|
|
1076
1078
|
manufacturer_ids?: string[] | undefined;
|
|
1077
1079
|
integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
|
|
1078
1080
|
text_search?: string | undefined;
|
|
1081
|
+
include_if?: string[] | undefined;
|
|
1082
|
+
exclude_if?: string[] | undefined;
|
|
1079
1083
|
}, {
|
|
1080
1084
|
main_category?: "relay" | "thermostat" | "smartlock" | "sensor" | "intercom" | "accessory" | undefined;
|
|
1081
1085
|
manufacturer_id?: string | undefined;
|
|
1082
1086
|
manufacturer_ids?: string[] | undefined;
|
|
1083
1087
|
integration_status?: "beta" | "stable" | "unsupported" | "planned" | "inquire" | undefined;
|
|
1084
1088
|
text_search?: string | undefined;
|
|
1089
|
+
include_if?: string[] | undefined;
|
|
1090
|
+
exclude_if?: string[] | undefined;
|
|
1085
1091
|
}>;
|
|
1086
1092
|
readonly jsonResponse: z.ZodObject<{
|
|
1087
1093
|
device_models: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as schemas from './public-models/index.js';
|
|
3
|
+
const dot_path = z.string().regex(/^([a-z])[a-z_.]*[a-z]+$/);
|
|
3
4
|
export const routes = {
|
|
4
5
|
'/api/v1/device_models/get': {
|
|
5
6
|
auth: 'publishable_key',
|
|
@@ -20,6 +21,8 @@ export const routes = {
|
|
|
20
21
|
manufacturer_ids: z.string().uuid().array().optional(),
|
|
21
22
|
integration_status: schemas.manufacturer.shape.integration.optional(),
|
|
22
23
|
text_search: z.string().optional(),
|
|
24
|
+
include_if: z.array(dot_path).optional(),
|
|
25
|
+
exclude_if: z.array(dot_path).optional(),
|
|
23
26
|
}),
|
|
24
27
|
jsonResponse: z.object({
|
|
25
28
|
device_models: schemas.device_model_v1.array(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route-specs.js","sourceRoot":"","sources":["../../../src/lib/seam/devicedb/route-specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,2BAA2B,EAAE;QAC3B,IAAI,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AAE,OAAO,CAAC,YAAY;SACnC,CAAC;KACH;IACD,4BAA4B,EAAE;QAC5B,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;QAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;YACpB,kBAAkB,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;YACrE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAClC,CAAC;QACF,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC;YACrB,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,EAAE;SAC5C,CAAC;KACH;CACO,CAAA"}
|
|
@@ -115,6 +115,8 @@ export interface Routes {
|
|
|
115
115
|
manufacturer_ids?: string[] | undefined;
|
|
116
116
|
integration_status?: ('stable' | 'beta' | 'planned' | 'unsupported' | 'inquire') | undefined;
|
|
117
117
|
text_search?: string | undefined;
|
|
118
|
+
include_if?: string[] | undefined;
|
|
119
|
+
exclude_if?: string[] | undefined;
|
|
118
120
|
};
|
|
119
121
|
jsonBody: {};
|
|
120
122
|
commonParams: {};
|
package/package.json
CHANGED
|
@@ -10157,9 +10157,10 @@ export default {
|
|
|
10157
10157
|
401: { description: 'Unauthorized' },
|
|
10158
10158
|
},
|
|
10159
10159
|
security: [
|
|
10160
|
-
{
|
|
10161
|
-
{
|
|
10162
|
-
{
|
|
10160
|
+
{ api_key: [] },
|
|
10161
|
+
{ user_session: [] },
|
|
10162
|
+
{ client_session: [] },
|
|
10163
|
+
{ pat_with_workspace: [] },
|
|
10163
10164
|
],
|
|
10164
10165
|
summary: '/workspaces/get',
|
|
10165
10166
|
tags: ['/workspaces'],
|
|
@@ -10187,9 +10188,10 @@ export default {
|
|
|
10187
10188
|
401: { description: 'Unauthorized' },
|
|
10188
10189
|
},
|
|
10189
10190
|
security: [
|
|
10190
|
-
{
|
|
10191
|
-
{
|
|
10192
|
-
{
|
|
10191
|
+
{ api_key: [] },
|
|
10192
|
+
{ user_session: [] },
|
|
10193
|
+
{ client_session: [] },
|
|
10194
|
+
{ pat_with_workspace: [] },
|
|
10193
10195
|
],
|
|
10194
10196
|
summary: '/workspaces/get',
|
|
10195
10197
|
tags: ['/workspaces'],
|
|
@@ -2,6 +2,8 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
import * as schemas from './public-models/index.js'
|
|
4
4
|
|
|
5
|
+
const dot_path = z.string().regex(/^([a-z])[a-z_.]*[a-z]+$/)
|
|
6
|
+
|
|
5
7
|
export const routes = {
|
|
6
8
|
'/api/v1/device_models/get': {
|
|
7
9
|
auth: 'publishable_key',
|
|
@@ -22,6 +24,8 @@ export const routes = {
|
|
|
22
24
|
manufacturer_ids: z.string().uuid().array().optional(),
|
|
23
25
|
integration_status: schemas.manufacturer.shape.integration.optional(),
|
|
24
26
|
text_search: z.string().optional(),
|
|
27
|
+
include_if: z.array(dot_path).optional(),
|
|
28
|
+
exclude_if: z.array(dot_path).optional(),
|
|
25
29
|
}),
|
|
26
30
|
jsonResponse: z.object({
|
|
27
31
|
device_models: schemas.device_model_v1.array(),
|
|
@@ -153,6 +153,8 @@ export interface Routes {
|
|
|
153
153
|
| ('stable' | 'beta' | 'planned' | 'unsupported' | 'inquire')
|
|
154
154
|
| undefined
|
|
155
155
|
text_search?: string | undefined
|
|
156
|
+
include_if?: string[] | undefined
|
|
157
|
+
exclude_if?: string[] | undefined
|
|
156
158
|
}
|
|
157
159
|
jsonBody: {}
|
|
158
160
|
commonParams: {}
|