@seamapi/types 1.249.0 → 1.252.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 +254 -51
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1219 -12
- 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/models/events/acs/common.d.ts +3 -3
- package/lib/seam/connect/models/events/acs/common.js +2 -1
- package/lib/seam/connect/models/events/acs/common.js.map +1 -1
- package/lib/seam/connect/models/events/acs/credentials.d.ts +6 -6
- package/lib/seam/connect/models/events/acs/index.d.ts +35 -9
- package/lib/seam/connect/models/events/acs/systems.d.ts +60 -6
- package/lib/seam/connect/models/events/acs/systems.js +9 -1
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/acs/users.d.ts +6 -6
- package/lib/seam/connect/models/events/devices.d.ts +86 -0
- package/lib/seam/connect/models/events/devices.js +21 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +35 -9
- package/lib/seam/connect/openapi.d.ts +138 -1
- package/lib/seam/connect/openapi.js +156 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1104 -153
- 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/models/events/acs/common.ts +2 -1
- package/src/lib/seam/connect/models/events/acs/systems.ts +12 -1
- package/src/lib/seam/connect/models/events/devices.ts +33 -0
- package/src/lib/seam/connect/openapi.ts +158 -0
- package/src/lib/seam/connect/route-types.ts +1115 -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"}
|
|
@@ -5,20 +5,20 @@ export declare const common_acs_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5
5
|
created_at: z.ZodString;
|
|
6
6
|
occurred_at: z.ZodString;
|
|
7
7
|
}, {
|
|
8
|
-
connected_account_id: z.ZodString
|
|
8
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
9
9
|
acs_system_id: z.ZodString;
|
|
10
10
|
}>, "strip", z.ZodTypeAny, {
|
|
11
|
-
connected_account_id: string;
|
|
12
11
|
created_at: string;
|
|
13
12
|
workspace_id: string;
|
|
14
13
|
acs_system_id: string;
|
|
15
14
|
event_id: string;
|
|
16
15
|
occurred_at: string;
|
|
16
|
+
connected_account_id?: string | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
connected_account_id: string;
|
|
19
18
|
created_at: string;
|
|
20
19
|
workspace_id: string;
|
|
21
20
|
acs_system_id: string;
|
|
22
21
|
event_id: string;
|
|
23
22
|
occurred_at: string;
|
|
23
|
+
connected_account_id?: string | undefined;
|
|
24
24
|
}>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { common_event } from '../common.js';
|
|
3
3
|
export const common_acs_event = common_event.extend({
|
|
4
|
-
connected_account_id: z.string().uuid().describe(`
|
|
4
|
+
connected_account_id: z.string().uuid().optional().describe(`
|
|
5
5
|
---
|
|
6
6
|
title: Connected Account ID
|
|
7
|
+
deprecated: Will be removed.
|
|
7
8
|
---
|
|
8
9
|
ID of the connected account.
|
|
9
10
|
`),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;;;;;;GAM3D,CAAC;IACF,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC;;;;;GAKzC,CAAC;CACH,CAAC,CAAA"}
|
|
@@ -5,14 +5,13 @@ export declare const acs_credential_deleted_event: z.ZodObject<z.objectUtil.exte
|
|
|
5
5
|
created_at: z.ZodString;
|
|
6
6
|
occurred_at: z.ZodString;
|
|
7
7
|
}, {
|
|
8
|
-
connected_account_id: z.ZodString
|
|
8
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
9
9
|
acs_system_id: z.ZodString;
|
|
10
10
|
}>, {
|
|
11
11
|
acs_credential_id: z.ZodString;
|
|
12
12
|
}>, {
|
|
13
13
|
event_type: z.ZodLiteral<"acs_credential.deleted">;
|
|
14
14
|
}>, "strip", z.ZodTypeAny, {
|
|
15
|
-
connected_account_id: string;
|
|
16
15
|
created_at: string;
|
|
17
16
|
workspace_id: string;
|
|
18
17
|
acs_system_id: string;
|
|
@@ -20,8 +19,8 @@ export declare const acs_credential_deleted_event: z.ZodObject<z.objectUtil.exte
|
|
|
20
19
|
event_id: string;
|
|
21
20
|
occurred_at: string;
|
|
22
21
|
event_type: "acs_credential.deleted";
|
|
22
|
+
connected_account_id?: string | undefined;
|
|
23
23
|
}, {
|
|
24
|
-
connected_account_id: string;
|
|
25
24
|
created_at: string;
|
|
26
25
|
workspace_id: string;
|
|
27
26
|
acs_system_id: string;
|
|
@@ -29,6 +28,7 @@ export declare const acs_credential_deleted_event: z.ZodObject<z.objectUtil.exte
|
|
|
29
28
|
event_id: string;
|
|
30
29
|
occurred_at: string;
|
|
31
30
|
event_type: "acs_credential.deleted";
|
|
31
|
+
connected_account_id?: string | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
export type AcsCredentialDeletedEvent = z.infer<typeof acs_credential_deleted_event>;
|
|
34
34
|
export declare const acs_credential_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -37,14 +37,13 @@ export declare const acs_credential_events: readonly [z.ZodObject<z.objectUtil.e
|
|
|
37
37
|
created_at: z.ZodString;
|
|
38
38
|
occurred_at: z.ZodString;
|
|
39
39
|
}, {
|
|
40
|
-
connected_account_id: z.ZodString
|
|
40
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
41
41
|
acs_system_id: z.ZodString;
|
|
42
42
|
}>, {
|
|
43
43
|
acs_credential_id: z.ZodString;
|
|
44
44
|
}>, {
|
|
45
45
|
event_type: z.ZodLiteral<"acs_credential.deleted">;
|
|
46
46
|
}>, "strip", z.ZodTypeAny, {
|
|
47
|
-
connected_account_id: string;
|
|
48
47
|
created_at: string;
|
|
49
48
|
workspace_id: string;
|
|
50
49
|
acs_system_id: string;
|
|
@@ -52,8 +51,8 @@ export declare const acs_credential_events: readonly [z.ZodObject<z.objectUtil.e
|
|
|
52
51
|
event_id: string;
|
|
53
52
|
occurred_at: string;
|
|
54
53
|
event_type: "acs_credential.deleted";
|
|
54
|
+
connected_account_id?: string | undefined;
|
|
55
55
|
}, {
|
|
56
|
-
connected_account_id: string;
|
|
57
56
|
created_at: string;
|
|
58
57
|
workspace_id: string;
|
|
59
58
|
acs_system_id: string;
|
|
@@ -61,4 +60,5 @@ export declare const acs_credential_events: readonly [z.ZodObject<z.objectUtil.e
|
|
|
61
60
|
event_id: string;
|
|
62
61
|
occurred_at: string;
|
|
63
62
|
event_type: "acs_credential.deleted";
|
|
63
|
+
connected_account_id?: string | undefined;
|
|
64
64
|
}>];
|
|
@@ -4,40 +4,65 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
|
|
|
4
4
|
created_at: import("zod").ZodString;
|
|
5
5
|
occurred_at: import("zod").ZodString;
|
|
6
6
|
}, {
|
|
7
|
-
connected_account_id: import("zod").ZodString
|
|
7
|
+
connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
8
|
acs_system_id: import("zod").ZodString;
|
|
9
9
|
}>, {}>, {
|
|
10
10
|
event_type: import("zod").ZodLiteral<"acs_system.connected">;
|
|
11
11
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
12
|
-
connected_account_id: string;
|
|
13
12
|
created_at: string;
|
|
14
13
|
workspace_id: string;
|
|
15
14
|
acs_system_id: string;
|
|
16
15
|
event_id: string;
|
|
17
16
|
occurred_at: string;
|
|
18
17
|
event_type: "acs_system.connected";
|
|
18
|
+
connected_account_id?: string | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
connected_account_id: string;
|
|
21
20
|
created_at: string;
|
|
22
21
|
workspace_id: string;
|
|
23
22
|
acs_system_id: string;
|
|
24
23
|
event_id: string;
|
|
25
24
|
occurred_at: string;
|
|
26
25
|
event_type: "acs_system.connected";
|
|
26
|
+
connected_account_id?: string | undefined;
|
|
27
27
|
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
28
28
|
event_id: import("zod").ZodString;
|
|
29
29
|
workspace_id: import("zod").ZodString;
|
|
30
30
|
created_at: import("zod").ZodString;
|
|
31
31
|
occurred_at: import("zod").ZodString;
|
|
32
32
|
}, {
|
|
33
|
-
connected_account_id: import("zod").ZodString
|
|
33
|
+
connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
acs_system_id: import("zod").ZodString;
|
|
35
|
+
}>, {}>, {
|
|
36
|
+
event_type: import("zod").ZodLiteral<"acs_system.added">;
|
|
37
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
38
|
+
created_at: string;
|
|
39
|
+
workspace_id: string;
|
|
40
|
+
acs_system_id: string;
|
|
41
|
+
event_id: string;
|
|
42
|
+
occurred_at: string;
|
|
43
|
+
event_type: "acs_system.added";
|
|
44
|
+
connected_account_id?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
created_at: string;
|
|
47
|
+
workspace_id: string;
|
|
48
|
+
acs_system_id: string;
|
|
49
|
+
event_id: string;
|
|
50
|
+
occurred_at: string;
|
|
51
|
+
event_type: "acs_system.added";
|
|
52
|
+
connected_account_id?: string | undefined;
|
|
53
|
+
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
54
|
+
event_id: import("zod").ZodString;
|
|
55
|
+
workspace_id: import("zod").ZodString;
|
|
56
|
+
created_at: import("zod").ZodString;
|
|
57
|
+
occurred_at: import("zod").ZodString;
|
|
58
|
+
}, {
|
|
59
|
+
connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
60
|
acs_system_id: import("zod").ZodString;
|
|
35
61
|
}>, {
|
|
36
62
|
acs_credential_id: import("zod").ZodString;
|
|
37
63
|
}>, {
|
|
38
64
|
event_type: import("zod").ZodLiteral<"acs_credential.deleted">;
|
|
39
65
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
40
|
-
connected_account_id: string;
|
|
41
66
|
created_at: string;
|
|
42
67
|
workspace_id: string;
|
|
43
68
|
acs_system_id: string;
|
|
@@ -45,8 +70,8 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
|
|
|
45
70
|
event_id: string;
|
|
46
71
|
occurred_at: string;
|
|
47
72
|
event_type: "acs_credential.deleted";
|
|
73
|
+
connected_account_id?: string | undefined;
|
|
48
74
|
}, {
|
|
49
|
-
connected_account_id: string;
|
|
50
75
|
created_at: string;
|
|
51
76
|
workspace_id: string;
|
|
52
77
|
acs_system_id: string;
|
|
@@ -54,20 +79,20 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
|
|
|
54
79
|
event_id: string;
|
|
55
80
|
occurred_at: string;
|
|
56
81
|
event_type: "acs_credential.deleted";
|
|
82
|
+
connected_account_id?: string | undefined;
|
|
57
83
|
}>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
58
84
|
event_id: import("zod").ZodString;
|
|
59
85
|
workspace_id: import("zod").ZodString;
|
|
60
86
|
created_at: import("zod").ZodString;
|
|
61
87
|
occurred_at: import("zod").ZodString;
|
|
62
88
|
}, {
|
|
63
|
-
connected_account_id: import("zod").ZodString
|
|
89
|
+
connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
90
|
acs_system_id: import("zod").ZodString;
|
|
65
91
|
}>, {
|
|
66
92
|
acs_user_id: import("zod").ZodString;
|
|
67
93
|
}>, {
|
|
68
94
|
event_type: import("zod").ZodLiteral<"acs_user.deleted">;
|
|
69
95
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
70
|
-
connected_account_id: string;
|
|
71
96
|
created_at: string;
|
|
72
97
|
workspace_id: string;
|
|
73
98
|
acs_system_id: string;
|
|
@@ -75,8 +100,8 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
|
|
|
75
100
|
event_id: string;
|
|
76
101
|
occurred_at: string;
|
|
77
102
|
event_type: "acs_user.deleted";
|
|
103
|
+
connected_account_id?: string | undefined;
|
|
78
104
|
}, {
|
|
79
|
-
connected_account_id: string;
|
|
80
105
|
created_at: string;
|
|
81
106
|
workspace_id: string;
|
|
82
107
|
acs_system_id: string;
|
|
@@ -84,4 +109,5 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
|
|
|
84
109
|
event_id: string;
|
|
85
110
|
occurred_at: string;
|
|
86
111
|
event_type: "acs_user.deleted";
|
|
112
|
+
connected_account_id?: string | undefined;
|
|
87
113
|
}>];
|
|
@@ -5,52 +5,106 @@ export declare const acs_system_connected_event: z.ZodObject<z.objectUtil.extend
|
|
|
5
5
|
created_at: z.ZodString;
|
|
6
6
|
occurred_at: z.ZodString;
|
|
7
7
|
}, {
|
|
8
|
-
connected_account_id: z.ZodString
|
|
8
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
9
9
|
acs_system_id: z.ZodString;
|
|
10
10
|
}>, {}>, {
|
|
11
11
|
event_type: z.ZodLiteral<"acs_system.connected">;
|
|
12
12
|
}>, "strip", z.ZodTypeAny, {
|
|
13
|
-
connected_account_id: string;
|
|
14
13
|
created_at: string;
|
|
15
14
|
workspace_id: string;
|
|
16
15
|
acs_system_id: string;
|
|
17
16
|
event_id: string;
|
|
18
17
|
occurred_at: string;
|
|
19
18
|
event_type: "acs_system.connected";
|
|
19
|
+
connected_account_id?: string | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
connected_account_id: string;
|
|
22
21
|
created_at: string;
|
|
23
22
|
workspace_id: string;
|
|
24
23
|
acs_system_id: string;
|
|
25
24
|
event_id: string;
|
|
26
25
|
occurred_at: string;
|
|
27
26
|
event_type: "acs_system.connected";
|
|
27
|
+
connected_account_id?: string | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export type AcsSystemConnectedEvent = z.infer<typeof acs_system_connected_event>;
|
|
30
|
+
export declare const acs_system_added_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
31
|
+
event_id: z.ZodString;
|
|
32
|
+
workspace_id: z.ZodString;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
occurred_at: z.ZodString;
|
|
35
|
+
}, {
|
|
36
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
acs_system_id: z.ZodString;
|
|
38
|
+
}>, {}>, {
|
|
39
|
+
event_type: z.ZodLiteral<"acs_system.added">;
|
|
40
|
+
}>, "strip", z.ZodTypeAny, {
|
|
41
|
+
created_at: string;
|
|
42
|
+
workspace_id: string;
|
|
43
|
+
acs_system_id: string;
|
|
44
|
+
event_id: string;
|
|
45
|
+
occurred_at: string;
|
|
46
|
+
event_type: "acs_system.added";
|
|
47
|
+
connected_account_id?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
created_at: string;
|
|
50
|
+
workspace_id: string;
|
|
51
|
+
acs_system_id: string;
|
|
52
|
+
event_id: string;
|
|
53
|
+
occurred_at: string;
|
|
54
|
+
event_type: "acs_system.added";
|
|
55
|
+
connected_account_id?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
export type AcsSystemAddedEvent = z.infer<typeof acs_system_added_event>;
|
|
30
58
|
export declare const acs_system_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
31
59
|
event_id: z.ZodString;
|
|
32
60
|
workspace_id: z.ZodString;
|
|
33
61
|
created_at: z.ZodString;
|
|
34
62
|
occurred_at: z.ZodString;
|
|
35
63
|
}, {
|
|
36
|
-
connected_account_id: z.ZodString
|
|
64
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
37
65
|
acs_system_id: z.ZodString;
|
|
38
66
|
}>, {}>, {
|
|
39
67
|
event_type: z.ZodLiteral<"acs_system.connected">;
|
|
40
68
|
}>, "strip", z.ZodTypeAny, {
|
|
41
|
-
connected_account_id: string;
|
|
42
69
|
created_at: string;
|
|
43
70
|
workspace_id: string;
|
|
44
71
|
acs_system_id: string;
|
|
45
72
|
event_id: string;
|
|
46
73
|
occurred_at: string;
|
|
47
74
|
event_type: "acs_system.connected";
|
|
75
|
+
connected_account_id?: string | undefined;
|
|
48
76
|
}, {
|
|
49
|
-
connected_account_id: string;
|
|
50
77
|
created_at: string;
|
|
51
78
|
workspace_id: string;
|
|
52
79
|
acs_system_id: string;
|
|
53
80
|
event_id: string;
|
|
54
81
|
occurred_at: string;
|
|
55
82
|
event_type: "acs_system.connected";
|
|
83
|
+
connected_account_id?: string | undefined;
|
|
84
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
85
|
+
event_id: z.ZodString;
|
|
86
|
+
workspace_id: z.ZodString;
|
|
87
|
+
created_at: z.ZodString;
|
|
88
|
+
occurred_at: z.ZodString;
|
|
89
|
+
}, {
|
|
90
|
+
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
91
|
+
acs_system_id: z.ZodString;
|
|
92
|
+
}>, {}>, {
|
|
93
|
+
event_type: z.ZodLiteral<"acs_system.added">;
|
|
94
|
+
}>, "strip", z.ZodTypeAny, {
|
|
95
|
+
created_at: string;
|
|
96
|
+
workspace_id: string;
|
|
97
|
+
acs_system_id: string;
|
|
98
|
+
event_id: string;
|
|
99
|
+
occurred_at: string;
|
|
100
|
+
event_type: "acs_system.added";
|
|
101
|
+
connected_account_id?: string | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
created_at: string;
|
|
104
|
+
workspace_id: string;
|
|
105
|
+
acs_system_id: string;
|
|
106
|
+
event_id: string;
|
|
107
|
+
occurred_at: string;
|
|
108
|
+
event_type: "acs_system.added";
|
|
109
|
+
connected_account_id?: string | undefined;
|
|
56
110
|
}>];
|
|
@@ -6,5 +6,13 @@ export const acs_system_connected_event = acs_system_event
|
|
|
6
6
|
event_type: z.literal('acs_system.connected'),
|
|
7
7
|
})
|
|
8
8
|
.describe('An ACS system was connected.');
|
|
9
|
-
export const
|
|
9
|
+
export const acs_system_added_event = acs_system_event
|
|
10
|
+
.extend({
|
|
11
|
+
event_type: z.literal('acs_system.added'),
|
|
12
|
+
})
|
|
13
|
+
.describe('An ACS system was added.');
|
|
14
|
+
export const acs_system_events = [
|
|
15
|
+
acs_system_connected_event,
|
|
16
|
+
acs_system_added_event,
|
|
17
|
+
];
|
|
10
18
|
//# sourceMappingURL=systems.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systems.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/systems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC;KACD,QAAQ,CAAC,8BAA8B,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"systems.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/systems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAEpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB;KACvD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC;KACD,QAAQ,CAAC,8BAA8B,CAAC,CAAA;AAI3C,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB;KACnD,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC1C,CAAC;KACD,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAIvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0BAA0B;IAC1B,sBAAsB;CACd,CAAA"}
|