@seamapi/types 1.251.0 → 1.252.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/dist/connect.cjs +228 -52
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1183 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +93 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/read-card.d.ts +96 -0
- package/lib/seam/connect/models/action-attempts/read-card.js +36 -0
- package/lib/seam/connect/models/action-attempts/read-card.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +139 -2
- package/lib/seam/connect/openapi.js +155 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1102 -151
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/read-card.ts +46 -0
- package/src/lib/seam/connect/openapi.ts +157 -1
- package/src/lib/seam/connect/route-types.ts +1113 -55
|
@@ -162,6 +162,99 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
162
162
|
status: z.ZodLiteral<"pending">;
|
|
163
163
|
result: z.ZodNull;
|
|
164
164
|
error: z.ZodNull;
|
|
165
|
+
}>, {
|
|
166
|
+
action_type: z.ZodLiteral<"READ_CARD">;
|
|
167
|
+
}>, "strip", z.ZodTypeAny, {
|
|
168
|
+
error: null;
|
|
169
|
+
status: "pending";
|
|
170
|
+
action_attempt_id: string;
|
|
171
|
+
result: null;
|
|
172
|
+
action_type: "READ_CARD";
|
|
173
|
+
}, {
|
|
174
|
+
error: null;
|
|
175
|
+
status: "pending";
|
|
176
|
+
action_attempt_id: string;
|
|
177
|
+
result: null;
|
|
178
|
+
action_type: "READ_CARD";
|
|
179
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
180
|
+
action_attempt_id: z.ZodString;
|
|
181
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
182
|
+
}, {
|
|
183
|
+
status: z.ZodLiteral<"success">;
|
|
184
|
+
error: z.ZodNull;
|
|
185
|
+
}>, {
|
|
186
|
+
action_type: z.ZodLiteral<"READ_CARD">;
|
|
187
|
+
result: z.ZodObject<{
|
|
188
|
+
acs_credential_id: z.ZodNullable<z.ZodString>;
|
|
189
|
+
card_number: z.ZodNullable<z.ZodString>;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
acs_credential_id: string | null;
|
|
192
|
+
card_number: string | null;
|
|
193
|
+
}, {
|
|
194
|
+
acs_credential_id: string | null;
|
|
195
|
+
card_number: string | null;
|
|
196
|
+
}>;
|
|
197
|
+
}>, "strip", z.ZodTypeAny, {
|
|
198
|
+
error: null;
|
|
199
|
+
status: "success";
|
|
200
|
+
action_attempt_id: string;
|
|
201
|
+
result: {
|
|
202
|
+
acs_credential_id: string | null;
|
|
203
|
+
card_number: string | null;
|
|
204
|
+
};
|
|
205
|
+
action_type: "READ_CARD";
|
|
206
|
+
}, {
|
|
207
|
+
error: null;
|
|
208
|
+
status: "success";
|
|
209
|
+
action_attempt_id: string;
|
|
210
|
+
result: {
|
|
211
|
+
acs_credential_id: string | null;
|
|
212
|
+
card_number: string | null;
|
|
213
|
+
};
|
|
214
|
+
action_type: "READ_CARD";
|
|
215
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
216
|
+
action_attempt_id: z.ZodString;
|
|
217
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
218
|
+
}, {
|
|
219
|
+
status: z.ZodLiteral<"error">;
|
|
220
|
+
result: z.ZodNull;
|
|
221
|
+
}>, {
|
|
222
|
+
action_type: z.ZodLiteral<"READ_CARD">;
|
|
223
|
+
error: z.ZodObject<{
|
|
224
|
+
type: z.ZodString;
|
|
225
|
+
message: z.ZodString;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
type: string;
|
|
228
|
+
message: string;
|
|
229
|
+
}, {
|
|
230
|
+
type: string;
|
|
231
|
+
message: string;
|
|
232
|
+
}>;
|
|
233
|
+
}>, "strip", z.ZodTypeAny, {
|
|
234
|
+
error: {
|
|
235
|
+
type: string;
|
|
236
|
+
message: string;
|
|
237
|
+
};
|
|
238
|
+
status: "error";
|
|
239
|
+
action_attempt_id: string;
|
|
240
|
+
result: null;
|
|
241
|
+
action_type: "READ_CARD";
|
|
242
|
+
}, {
|
|
243
|
+
error: {
|
|
244
|
+
type: string;
|
|
245
|
+
message: string;
|
|
246
|
+
};
|
|
247
|
+
status: "error";
|
|
248
|
+
action_attempt_id: string;
|
|
249
|
+
result: null;
|
|
250
|
+
action_type: "READ_CARD";
|
|
251
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
252
|
+
action_attempt_id: z.ZodString;
|
|
253
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
254
|
+
}, {
|
|
255
|
+
status: z.ZodLiteral<"pending">;
|
|
256
|
+
result: z.ZodNull;
|
|
257
|
+
error: z.ZodNull;
|
|
165
258
|
}>, {
|
|
166
259
|
action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
|
|
167
260
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js';
|
|
3
3
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
4
4
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
5
|
+
import { read_card_action_attempt } from './read-card.js';
|
|
5
6
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
6
7
|
import { set_cool_action_attempt } from './set-cool.js';
|
|
7
8
|
import { set_fan_mode_action_attempt } from './set-fan-mode.js';
|
|
@@ -12,6 +13,7 @@ import { unlock_door_action_attempt } from './unlock-door.js';
|
|
|
12
13
|
export const action_attempt = z.union([
|
|
13
14
|
...lock_door_action_attempt.options,
|
|
14
15
|
...unlock_door_action_attempt.options,
|
|
16
|
+
...read_card_action_attempt.options,
|
|
15
17
|
...reset_sandbox_workspace_action_attempt.options,
|
|
16
18
|
...set_cool_action_attempt.options,
|
|
17
19
|
...set_heat_action_attempt.options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
+
}, {
|
|
6
|
+
status: z.ZodLiteral<"pending">;
|
|
7
|
+
result: z.ZodNull;
|
|
8
|
+
error: z.ZodNull;
|
|
9
|
+
}>, {
|
|
10
|
+
action_type: z.ZodLiteral<"READ_CARD">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
error: null;
|
|
13
|
+
status: "pending";
|
|
14
|
+
action_attempt_id: string;
|
|
15
|
+
result: null;
|
|
16
|
+
action_type: "READ_CARD";
|
|
17
|
+
}, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
action_type: "READ_CARD";
|
|
23
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
|
+
action_attempt_id: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
26
|
+
}, {
|
|
27
|
+
status: z.ZodLiteral<"success">;
|
|
28
|
+
error: z.ZodNull;
|
|
29
|
+
}>, {
|
|
30
|
+
action_type: z.ZodLiteral<"READ_CARD">;
|
|
31
|
+
result: z.ZodObject<{
|
|
32
|
+
acs_credential_id: z.ZodNullable<z.ZodString>;
|
|
33
|
+
card_number: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
acs_credential_id: string | null;
|
|
36
|
+
card_number: string | null;
|
|
37
|
+
}, {
|
|
38
|
+
acs_credential_id: string | null;
|
|
39
|
+
card_number: string | null;
|
|
40
|
+
}>;
|
|
41
|
+
}>, "strip", z.ZodTypeAny, {
|
|
42
|
+
error: null;
|
|
43
|
+
status: "success";
|
|
44
|
+
action_attempt_id: string;
|
|
45
|
+
result: {
|
|
46
|
+
acs_credential_id: string | null;
|
|
47
|
+
card_number: string | null;
|
|
48
|
+
};
|
|
49
|
+
action_type: "READ_CARD";
|
|
50
|
+
}, {
|
|
51
|
+
error: null;
|
|
52
|
+
status: "success";
|
|
53
|
+
action_attempt_id: string;
|
|
54
|
+
result: {
|
|
55
|
+
acs_credential_id: string | null;
|
|
56
|
+
card_number: string | null;
|
|
57
|
+
};
|
|
58
|
+
action_type: "READ_CARD";
|
|
59
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
60
|
+
action_attempt_id: z.ZodString;
|
|
61
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
62
|
+
}, {
|
|
63
|
+
status: z.ZodLiteral<"error">;
|
|
64
|
+
result: z.ZodNull;
|
|
65
|
+
}>, {
|
|
66
|
+
action_type: z.ZodLiteral<"READ_CARD">;
|
|
67
|
+
error: z.ZodObject<{
|
|
68
|
+
type: z.ZodString;
|
|
69
|
+
message: z.ZodString;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
type: string;
|
|
72
|
+
message: string;
|
|
73
|
+
}, {
|
|
74
|
+
type: string;
|
|
75
|
+
message: string;
|
|
76
|
+
}>;
|
|
77
|
+
}>, "strip", z.ZodTypeAny, {
|
|
78
|
+
error: {
|
|
79
|
+
type: string;
|
|
80
|
+
message: string;
|
|
81
|
+
};
|
|
82
|
+
status: "error";
|
|
83
|
+
action_attempt_id: string;
|
|
84
|
+
result: null;
|
|
85
|
+
action_type: "READ_CARD";
|
|
86
|
+
}, {
|
|
87
|
+
error: {
|
|
88
|
+
type: string;
|
|
89
|
+
message: string;
|
|
90
|
+
};
|
|
91
|
+
status: "error";
|
|
92
|
+
action_attempt_id: string;
|
|
93
|
+
result: null;
|
|
94
|
+
action_type: "READ_CARD";
|
|
95
|
+
}>]>;
|
|
96
|
+
export type ReadCardActionAttempt = z.infer<typeof read_card_action_attempt>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z.literal('READ_CARD');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(), // TODO This should be typed properly with the possible errors
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({
|
|
9
|
+
acs_credential_id: z
|
|
10
|
+
.string()
|
|
11
|
+
.uuid()
|
|
12
|
+
.nullable()
|
|
13
|
+
.describe('Matching acs_credential currently encoded on this card.'),
|
|
14
|
+
card_number: z
|
|
15
|
+
.string()
|
|
16
|
+
.nullable()
|
|
17
|
+
.describe('A number or sting that physically identifies this card.'),
|
|
18
|
+
// TODO visionline_metadata: visionline_credential_metadata,
|
|
19
|
+
});
|
|
20
|
+
export const read_card_action_attempt = z.discriminatedUnion('status', [
|
|
21
|
+
common_pending_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
})
|
|
25
|
+
.describe('Reading card data from physical encoder.'),
|
|
26
|
+
common_succeeded_action_attempt
|
|
27
|
+
.extend({
|
|
28
|
+
action_type,
|
|
29
|
+
result,
|
|
30
|
+
})
|
|
31
|
+
.describe('Reading card data from physical encoder succeeded.'),
|
|
32
|
+
common_failed_action_attempt
|
|
33
|
+
.extend({ action_type, error })
|
|
34
|
+
.describe('Reading card data from physical encoder failed.'),
|
|
35
|
+
]);
|
|
36
|
+
//# sourceMappingURL=read-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/read-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,4DAA4D;CAC7D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,oDAAoD,CAAC;IACjE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA"}
|
|
@@ -877,6 +877,7 @@ declare const _default: {
|
|
|
877
877
|
nullable: boolean;
|
|
878
878
|
properties?: never;
|
|
879
879
|
type?: never;
|
|
880
|
+
required?: never;
|
|
880
881
|
};
|
|
881
882
|
status: {
|
|
882
883
|
enum: string[];
|
|
@@ -905,9 +906,13 @@ declare const _default: {
|
|
|
905
906
|
type?: never;
|
|
906
907
|
};
|
|
907
908
|
result: {
|
|
908
|
-
properties: {
|
|
909
|
+
properties: {
|
|
910
|
+
acs_credential_id?: never;
|
|
911
|
+
card_number?: never;
|
|
912
|
+
};
|
|
909
913
|
type: string;
|
|
910
914
|
nullable?: never;
|
|
915
|
+
required?: never;
|
|
911
916
|
};
|
|
912
917
|
status: {
|
|
913
918
|
enum: string[];
|
|
@@ -946,6 +951,51 @@ declare const _default: {
|
|
|
946
951
|
nullable: boolean;
|
|
947
952
|
properties?: never;
|
|
948
953
|
type?: never;
|
|
954
|
+
required?: never;
|
|
955
|
+
};
|
|
956
|
+
status: {
|
|
957
|
+
enum: string[];
|
|
958
|
+
type: string;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
required: string[];
|
|
962
|
+
type: string;
|
|
963
|
+
} | {
|
|
964
|
+
description: string;
|
|
965
|
+
properties: {
|
|
966
|
+
action_attempt_id: {
|
|
967
|
+
description: string;
|
|
968
|
+
format: string;
|
|
969
|
+
type: string;
|
|
970
|
+
'x-title': string;
|
|
971
|
+
};
|
|
972
|
+
action_type: {
|
|
973
|
+
enum: string[];
|
|
974
|
+
type: string;
|
|
975
|
+
};
|
|
976
|
+
error: {
|
|
977
|
+
nullable: boolean;
|
|
978
|
+
properties?: never;
|
|
979
|
+
required?: never;
|
|
980
|
+
type?: never;
|
|
981
|
+
};
|
|
982
|
+
result: {
|
|
983
|
+
properties: {
|
|
984
|
+
acs_credential_id: {
|
|
985
|
+
description: string;
|
|
986
|
+
format: string;
|
|
987
|
+
nullable: boolean;
|
|
988
|
+
type: string;
|
|
989
|
+
};
|
|
990
|
+
card_number: {
|
|
991
|
+
description: string;
|
|
992
|
+
nullable: boolean;
|
|
993
|
+
type: string;
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
required: string[];
|
|
997
|
+
type: string;
|
|
998
|
+
nullable?: never;
|
|
949
999
|
};
|
|
950
1000
|
status: {
|
|
951
1001
|
enum: string[];
|
|
@@ -976,6 +1026,7 @@ declare const _default: {
|
|
|
976
1026
|
nullable: boolean;
|
|
977
1027
|
properties?: never;
|
|
978
1028
|
type?: never;
|
|
1029
|
+
required?: never;
|
|
979
1030
|
};
|
|
980
1031
|
status: {
|
|
981
1032
|
enum: string[];
|
|
@@ -1007,6 +1058,7 @@ declare const _default: {
|
|
|
1007
1058
|
nullable?: never;
|
|
1008
1059
|
properties?: never;
|
|
1009
1060
|
type?: never;
|
|
1061
|
+
required?: never;
|
|
1010
1062
|
};
|
|
1011
1063
|
status: {
|
|
1012
1064
|
enum: string[];
|
|
@@ -1045,6 +1097,7 @@ declare const _default: {
|
|
|
1045
1097
|
nullable: boolean;
|
|
1046
1098
|
properties?: never;
|
|
1047
1099
|
type?: never;
|
|
1100
|
+
required?: never;
|
|
1048
1101
|
};
|
|
1049
1102
|
status: {
|
|
1050
1103
|
enum: string[];
|
|
@@ -7050,6 +7103,90 @@ declare const _default: {
|
|
|
7050
7103
|
'x-fern-sdk-return-value': string;
|
|
7051
7104
|
};
|
|
7052
7105
|
};
|
|
7106
|
+
'/acs/credentials/read_card': {
|
|
7107
|
+
post: {
|
|
7108
|
+
operationId: string;
|
|
7109
|
+
requestBody: {
|
|
7110
|
+
content: {
|
|
7111
|
+
'application/json': {
|
|
7112
|
+
schema: {
|
|
7113
|
+
oneOf: ({
|
|
7114
|
+
properties: {
|
|
7115
|
+
acs_system_id: {
|
|
7116
|
+
format: string;
|
|
7117
|
+
type: string;
|
|
7118
|
+
};
|
|
7119
|
+
device_name: {
|
|
7120
|
+
type: string;
|
|
7121
|
+
};
|
|
7122
|
+
device_id?: never;
|
|
7123
|
+
};
|
|
7124
|
+
required: string[];
|
|
7125
|
+
type: string;
|
|
7126
|
+
} | {
|
|
7127
|
+
properties: {
|
|
7128
|
+
device_id: {
|
|
7129
|
+
format: string;
|
|
7130
|
+
type: string;
|
|
7131
|
+
};
|
|
7132
|
+
acs_system_id?: never;
|
|
7133
|
+
device_name?: never;
|
|
7134
|
+
};
|
|
7135
|
+
required: string[];
|
|
7136
|
+
type: string;
|
|
7137
|
+
})[];
|
|
7138
|
+
};
|
|
7139
|
+
};
|
|
7140
|
+
};
|
|
7141
|
+
};
|
|
7142
|
+
responses: {
|
|
7143
|
+
200: {
|
|
7144
|
+
content: {
|
|
7145
|
+
'application/json': {
|
|
7146
|
+
schema: {
|
|
7147
|
+
properties: {
|
|
7148
|
+
action_attempt: {
|
|
7149
|
+
$ref: string;
|
|
7150
|
+
};
|
|
7151
|
+
ok: {
|
|
7152
|
+
type: string;
|
|
7153
|
+
};
|
|
7154
|
+
};
|
|
7155
|
+
required: string[];
|
|
7156
|
+
type: string;
|
|
7157
|
+
};
|
|
7158
|
+
};
|
|
7159
|
+
};
|
|
7160
|
+
description: string;
|
|
7161
|
+
};
|
|
7162
|
+
400: {
|
|
7163
|
+
description: string;
|
|
7164
|
+
};
|
|
7165
|
+
401: {
|
|
7166
|
+
description: string;
|
|
7167
|
+
};
|
|
7168
|
+
};
|
|
7169
|
+
security: ({
|
|
7170
|
+
pat_with_workspace: never[];
|
|
7171
|
+
console_session?: never;
|
|
7172
|
+
api_key?: never;
|
|
7173
|
+
} | {
|
|
7174
|
+
console_session: never[];
|
|
7175
|
+
pat_with_workspace?: never;
|
|
7176
|
+
api_key?: never;
|
|
7177
|
+
} | {
|
|
7178
|
+
api_key: never[];
|
|
7179
|
+
pat_with_workspace?: never;
|
|
7180
|
+
console_session?: never;
|
|
7181
|
+
})[];
|
|
7182
|
+
summary: string;
|
|
7183
|
+
tags: string[];
|
|
7184
|
+
'x-fern-sdk-group-name': string[];
|
|
7185
|
+
'x-fern-sdk-method-name': string;
|
|
7186
|
+
'x-fern-sdk-return-value': string;
|
|
7187
|
+
'x-undocumented': string;
|
|
7188
|
+
};
|
|
7189
|
+
};
|
|
7053
7190
|
'/acs/credentials/unassign': {
|
|
7054
7191
|
patch: {
|
|
7055
7192
|
operationId: string;
|
|
@@ -14493,6 +14630,7 @@ declare const _default: {
|
|
|
14493
14630
|
tags: string[];
|
|
14494
14631
|
'x-fern-sdk-group-name': string[];
|
|
14495
14632
|
'x-fern-sdk-method-name': string;
|
|
14633
|
+
'x-fern-sdk-return-value': string;
|
|
14496
14634
|
};
|
|
14497
14635
|
};
|
|
14498
14636
|
'/thermostats/delete_climate_preset': {
|
|
@@ -15868,7 +16006,6 @@ declare const _default: {
|
|
|
15868
16006
|
tags: string[];
|
|
15869
16007
|
'x-fern-sdk-group-name': string[];
|
|
15870
16008
|
'x-fern-sdk-method-name': string;
|
|
15871
|
-
'x-fern-sdk-return-value': string;
|
|
15872
16009
|
};
|
|
15873
16010
|
};
|
|
15874
16011
|
'/user_identities/add_acs_user': {
|
|
@@ -1098,6 +1098,98 @@ export default {
|
|
|
1098
1098
|
],
|
|
1099
1099
|
type: 'object',
|
|
1100
1100
|
},
|
|
1101
|
+
{
|
|
1102
|
+
description: 'Reading card data from physical encoder.',
|
|
1103
|
+
properties: {
|
|
1104
|
+
action_attempt_id: {
|
|
1105
|
+
description: 'The ID of the action attempt.',
|
|
1106
|
+
format: 'uuid',
|
|
1107
|
+
type: 'string',
|
|
1108
|
+
'x-title': 'Action Attempt ID',
|
|
1109
|
+
},
|
|
1110
|
+
action_type: { enum: ['READ_CARD'], type: 'string' },
|
|
1111
|
+
error: { nullable: true },
|
|
1112
|
+
result: { nullable: true },
|
|
1113
|
+
status: { enum: ['pending'], type: 'string' },
|
|
1114
|
+
},
|
|
1115
|
+
required: [
|
|
1116
|
+
'action_attempt_id',
|
|
1117
|
+
'status',
|
|
1118
|
+
'result',
|
|
1119
|
+
'error',
|
|
1120
|
+
'action_type',
|
|
1121
|
+
],
|
|
1122
|
+
type: 'object',
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
description: 'Reading card data from physical encoder succeeded.',
|
|
1126
|
+
properties: {
|
|
1127
|
+
action_attempt_id: {
|
|
1128
|
+
description: 'The ID of the action attempt.',
|
|
1129
|
+
format: 'uuid',
|
|
1130
|
+
type: 'string',
|
|
1131
|
+
'x-title': 'Action Attempt ID',
|
|
1132
|
+
},
|
|
1133
|
+
action_type: { enum: ['READ_CARD'], type: 'string' },
|
|
1134
|
+
error: { nullable: true },
|
|
1135
|
+
result: {
|
|
1136
|
+
properties: {
|
|
1137
|
+
acs_credential_id: {
|
|
1138
|
+
description: 'Matching acs_credential currently encoded on this card.',
|
|
1139
|
+
format: 'uuid',
|
|
1140
|
+
nullable: true,
|
|
1141
|
+
type: 'string',
|
|
1142
|
+
},
|
|
1143
|
+
card_number: {
|
|
1144
|
+
description: 'A number or sting that physically identifies this card.',
|
|
1145
|
+
nullable: true,
|
|
1146
|
+
type: 'string',
|
|
1147
|
+
},
|
|
1148
|
+
},
|
|
1149
|
+
required: ['acs_credential_id', 'card_number'],
|
|
1150
|
+
type: 'object',
|
|
1151
|
+
},
|
|
1152
|
+
status: { enum: ['success'], type: 'string' },
|
|
1153
|
+
},
|
|
1154
|
+
required: [
|
|
1155
|
+
'action_attempt_id',
|
|
1156
|
+
'status',
|
|
1157
|
+
'error',
|
|
1158
|
+
'action_type',
|
|
1159
|
+
'result',
|
|
1160
|
+
],
|
|
1161
|
+
type: 'object',
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
description: 'Reading card data from physical encoder failed.',
|
|
1165
|
+
properties: {
|
|
1166
|
+
action_attempt_id: {
|
|
1167
|
+
description: 'The ID of the action attempt.',
|
|
1168
|
+
format: 'uuid',
|
|
1169
|
+
type: 'string',
|
|
1170
|
+
'x-title': 'Action Attempt ID',
|
|
1171
|
+
},
|
|
1172
|
+
action_type: { enum: ['READ_CARD'], type: 'string' },
|
|
1173
|
+
error: {
|
|
1174
|
+
properties: {
|
|
1175
|
+
message: { type: 'string' },
|
|
1176
|
+
type: { type: 'string' },
|
|
1177
|
+
},
|
|
1178
|
+
required: ['type', 'message'],
|
|
1179
|
+
type: 'object',
|
|
1180
|
+
},
|
|
1181
|
+
result: { nullable: true },
|
|
1182
|
+
status: { enum: ['error'], type: 'string' },
|
|
1183
|
+
},
|
|
1184
|
+
required: [
|
|
1185
|
+
'action_attempt_id',
|
|
1186
|
+
'status',
|
|
1187
|
+
'result',
|
|
1188
|
+
'action_type',
|
|
1189
|
+
'error',
|
|
1190
|
+
],
|
|
1191
|
+
type: 'object',
|
|
1192
|
+
},
|
|
1101
1193
|
{
|
|
1102
1194
|
description: 'Resetting sandbox workspace.',
|
|
1103
1195
|
properties: {
|
|
@@ -6576,6 +6668,68 @@ export default {
|
|
|
6576
6668
|
'x-fern-sdk-return-value': 'acs_entrances',
|
|
6577
6669
|
},
|
|
6578
6670
|
},
|
|
6671
|
+
'/acs/credentials/read_card': {
|
|
6672
|
+
post: {
|
|
6673
|
+
operationId: 'acsCredentialsReadCardPost',
|
|
6674
|
+
requestBody: {
|
|
6675
|
+
content: {
|
|
6676
|
+
'application/json': {
|
|
6677
|
+
schema: {
|
|
6678
|
+
oneOf: [
|
|
6679
|
+
{
|
|
6680
|
+
properties: {
|
|
6681
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
6682
|
+
device_name: { type: 'string' },
|
|
6683
|
+
},
|
|
6684
|
+
required: ['acs_system_id', 'device_name'],
|
|
6685
|
+
type: 'object',
|
|
6686
|
+
},
|
|
6687
|
+
{
|
|
6688
|
+
properties: {
|
|
6689
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
6690
|
+
},
|
|
6691
|
+
required: ['device_id'],
|
|
6692
|
+
type: 'object',
|
|
6693
|
+
},
|
|
6694
|
+
],
|
|
6695
|
+
},
|
|
6696
|
+
},
|
|
6697
|
+
},
|
|
6698
|
+
},
|
|
6699
|
+
responses: {
|
|
6700
|
+
200: {
|
|
6701
|
+
content: {
|
|
6702
|
+
'application/json': {
|
|
6703
|
+
schema: {
|
|
6704
|
+
properties: {
|
|
6705
|
+
action_attempt: {
|
|
6706
|
+
$ref: '#/components/schemas/action_attempt',
|
|
6707
|
+
},
|
|
6708
|
+
ok: { type: 'boolean' },
|
|
6709
|
+
},
|
|
6710
|
+
required: ['action_attempt', 'ok'],
|
|
6711
|
+
type: 'object',
|
|
6712
|
+
},
|
|
6713
|
+
},
|
|
6714
|
+
},
|
|
6715
|
+
description: 'OK',
|
|
6716
|
+
},
|
|
6717
|
+
400: { description: 'Bad Request' },
|
|
6718
|
+
401: { description: 'Unauthorized' },
|
|
6719
|
+
},
|
|
6720
|
+
security: [
|
|
6721
|
+
{ pat_with_workspace: [] },
|
|
6722
|
+
{ console_session: [] },
|
|
6723
|
+
{ api_key: [] },
|
|
6724
|
+
],
|
|
6725
|
+
summary: '/acs/credentials/read_card',
|
|
6726
|
+
tags: ['/acs'],
|
|
6727
|
+
'x-fern-sdk-group-name': ['acs', 'credentials'],
|
|
6728
|
+
'x-fern-sdk-method-name': 'read_card',
|
|
6729
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
6730
|
+
'x-undocumented': 'Reading a card is currently unimplemented.',
|
|
6731
|
+
},
|
|
6732
|
+
},
|
|
6579
6733
|
'/acs/credentials/unassign': {
|
|
6580
6734
|
patch: {
|
|
6581
6735
|
operationId: 'acsCredentialsUnassignPatch',
|
|
@@ -12893,6 +13047,7 @@ export default {
|
|
|
12893
13047
|
tags: ['/thermostats'],
|
|
12894
13048
|
'x-fern-sdk-group-name': ['thermostats'],
|
|
12895
13049
|
'x-fern-sdk-method-name': 'create_climate_preset',
|
|
13050
|
+
'x-fern-sdk-return-value': 'climate_preset',
|
|
12896
13051
|
},
|
|
12897
13052
|
},
|
|
12898
13053
|
'/thermostats/delete_climate_preset': {
|
|
@@ -13971,7 +14126,6 @@ export default {
|
|
|
13971
14126
|
tags: ['/thermostats'],
|
|
13972
14127
|
'x-fern-sdk-group-name': ['thermostats'],
|
|
13973
14128
|
'x-fern-sdk-method-name': 'update_climate_preset',
|
|
13974
|
-
'x-fern-sdk-return-value': 'climate_preset',
|
|
13975
14129
|
},
|
|
13976
14130
|
},
|
|
13977
14131
|
'/user_identities/add_acs_user': {
|