@seamapi/types 1.384.0 → 1.386.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 +629 -150
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4211 -445
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +8 -5
- package/lib/seam/connect/models/access-grants/access-grant.js +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -3
- package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +156 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js +28 -0
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js +28 -0
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js.map +1 -0
- package/lib/seam/connect/models/colors.d.ts +2 -0
- package/lib/seam/connect/models/colors.js +8 -0
- package/lib/seam/connect/models/colors.js.map +1 -0
- package/lib/seam/connect/models/events/access-grants.d.ts +277 -0
- package/lib/seam/connect/models/events/access-grants.js +60 -0
- package/lib/seam/connect/models/events/access-grants.js.map +1 -0
- package/lib/seam/connect/models/events/access-methods.d.ts +146 -0
- package/lib/seam/connect/models/events/access-methods.js +35 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -0
- package/lib/seam/connect/models/workspaces/workspace.d.ts +33 -0
- package/lib/seam/connect/models/workspaces/workspace.js +8 -0
- package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +523 -225
- package/lib/seam/connect/openapi.js +592 -171
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +3477 -198
- package/package.json +2 -2
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +5 -0
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +4 -2
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -0
- package/src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts +39 -0
- package/src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts +37 -0
- package/src/lib/seam/connect/models/colors.ts +9 -0
- package/src/lib/seam/connect/models/events/access-grants.ts +92 -0
- package/src/lib/seam/connect/models/events/access-methods.ts +51 -0
- package/src/lib/seam/connect/models/workspaces/workspace.ts +9 -0
- package/src/lib/seam/connect/openapi.ts +615 -175
- package/src/lib/seam/connect/route-types.ts +3793 -36
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const access_grant_created_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
event_id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
created_at: z.ZodString;
|
|
6
|
+
occurred_at: z.ZodString;
|
|
7
|
+
}, {
|
|
8
|
+
access_grant_id: z.ZodString;
|
|
9
|
+
}>, {
|
|
10
|
+
event_type: z.ZodLiteral<"access_grant.created">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
created_at: string;
|
|
13
|
+
workspace_id: string;
|
|
14
|
+
access_grant_id: string;
|
|
15
|
+
event_id: string;
|
|
16
|
+
occurred_at: string;
|
|
17
|
+
event_type: "access_grant.created";
|
|
18
|
+
}, {
|
|
19
|
+
created_at: string;
|
|
20
|
+
workspace_id: string;
|
|
21
|
+
access_grant_id: string;
|
|
22
|
+
event_id: string;
|
|
23
|
+
occurred_at: string;
|
|
24
|
+
event_type: "access_grant.created";
|
|
25
|
+
}>;
|
|
26
|
+
export type AccessGrantCreatedEvent = z.infer<typeof access_grant_created_event>;
|
|
27
|
+
export declare const access_grant_deleted_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
28
|
+
event_id: z.ZodString;
|
|
29
|
+
workspace_id: z.ZodString;
|
|
30
|
+
created_at: z.ZodString;
|
|
31
|
+
occurred_at: z.ZodString;
|
|
32
|
+
}, {
|
|
33
|
+
access_grant_id: z.ZodString;
|
|
34
|
+
}>, {
|
|
35
|
+
event_type: z.ZodLiteral<"access_grant.deleted">;
|
|
36
|
+
}>, "strip", z.ZodTypeAny, {
|
|
37
|
+
created_at: string;
|
|
38
|
+
workspace_id: string;
|
|
39
|
+
access_grant_id: string;
|
|
40
|
+
event_id: string;
|
|
41
|
+
occurred_at: string;
|
|
42
|
+
event_type: "access_grant.deleted";
|
|
43
|
+
}, {
|
|
44
|
+
created_at: string;
|
|
45
|
+
workspace_id: string;
|
|
46
|
+
access_grant_id: string;
|
|
47
|
+
event_id: string;
|
|
48
|
+
occurred_at: string;
|
|
49
|
+
event_type: "access_grant.deleted";
|
|
50
|
+
}>;
|
|
51
|
+
export type AccessGrantDeleteddEvent = z.infer<typeof access_grant_deleted_event>;
|
|
52
|
+
export declare const access_grant_access_granted_to_all_doors_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
53
|
+
event_id: z.ZodString;
|
|
54
|
+
workspace_id: z.ZodString;
|
|
55
|
+
created_at: z.ZodString;
|
|
56
|
+
occurred_at: z.ZodString;
|
|
57
|
+
}, {
|
|
58
|
+
access_grant_id: z.ZodString;
|
|
59
|
+
}>, {
|
|
60
|
+
event_type: z.ZodLiteral<"access_grant.access_granted_to_all_doors">;
|
|
61
|
+
}>, "strip", z.ZodTypeAny, {
|
|
62
|
+
created_at: string;
|
|
63
|
+
workspace_id: string;
|
|
64
|
+
access_grant_id: string;
|
|
65
|
+
event_id: string;
|
|
66
|
+
occurred_at: string;
|
|
67
|
+
event_type: "access_grant.access_granted_to_all_doors";
|
|
68
|
+
}, {
|
|
69
|
+
created_at: string;
|
|
70
|
+
workspace_id: string;
|
|
71
|
+
access_grant_id: string;
|
|
72
|
+
event_id: string;
|
|
73
|
+
occurred_at: string;
|
|
74
|
+
event_type: "access_grant.access_granted_to_all_doors";
|
|
75
|
+
}>;
|
|
76
|
+
export type AccessGrantAccessGrantedToAllDoorsEvent = z.infer<typeof access_grant_access_granted_to_all_doors_event>;
|
|
77
|
+
export declare const access_grant_access_granted_to_door_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
78
|
+
event_id: z.ZodString;
|
|
79
|
+
workspace_id: z.ZodString;
|
|
80
|
+
created_at: z.ZodString;
|
|
81
|
+
occurred_at: z.ZodString;
|
|
82
|
+
}, {
|
|
83
|
+
access_grant_id: z.ZodString;
|
|
84
|
+
}>, {
|
|
85
|
+
event_type: z.ZodLiteral<"access_grant.access_granted_to_door">;
|
|
86
|
+
acs_entrance_id: z.ZodString;
|
|
87
|
+
}>, "strip", z.ZodTypeAny, {
|
|
88
|
+
created_at: string;
|
|
89
|
+
workspace_id: string;
|
|
90
|
+
access_grant_id: string;
|
|
91
|
+
acs_entrance_id: string;
|
|
92
|
+
event_id: string;
|
|
93
|
+
occurred_at: string;
|
|
94
|
+
event_type: "access_grant.access_granted_to_door";
|
|
95
|
+
}, {
|
|
96
|
+
created_at: string;
|
|
97
|
+
workspace_id: string;
|
|
98
|
+
access_grant_id: string;
|
|
99
|
+
acs_entrance_id: string;
|
|
100
|
+
event_id: string;
|
|
101
|
+
occurred_at: string;
|
|
102
|
+
event_type: "access_grant.access_granted_to_door";
|
|
103
|
+
}>;
|
|
104
|
+
export type AccessGrantAccessGrantedToDoorEvent = z.infer<typeof access_grant_access_granted_to_door_event>;
|
|
105
|
+
export declare const access_grant_access_to_door_lost_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
106
|
+
event_id: z.ZodString;
|
|
107
|
+
workspace_id: z.ZodString;
|
|
108
|
+
created_at: z.ZodString;
|
|
109
|
+
occurred_at: z.ZodString;
|
|
110
|
+
}, {
|
|
111
|
+
access_grant_id: z.ZodString;
|
|
112
|
+
}>, {
|
|
113
|
+
event_type: z.ZodLiteral<"access_grant.access_to_door_lost">;
|
|
114
|
+
acs_entrance_id: z.ZodString;
|
|
115
|
+
}>, "strip", z.ZodTypeAny, {
|
|
116
|
+
created_at: string;
|
|
117
|
+
workspace_id: string;
|
|
118
|
+
access_grant_id: string;
|
|
119
|
+
acs_entrance_id: string;
|
|
120
|
+
event_id: string;
|
|
121
|
+
occurred_at: string;
|
|
122
|
+
event_type: "access_grant.access_to_door_lost";
|
|
123
|
+
}, {
|
|
124
|
+
created_at: string;
|
|
125
|
+
workspace_id: string;
|
|
126
|
+
access_grant_id: string;
|
|
127
|
+
acs_entrance_id: string;
|
|
128
|
+
event_id: string;
|
|
129
|
+
occurred_at: string;
|
|
130
|
+
event_type: "access_grant.access_to_door_lost";
|
|
131
|
+
}>;
|
|
132
|
+
export type AccessGrantAccessToDoorLostEvent = z.infer<typeof access_grant_access_to_door_lost_event>;
|
|
133
|
+
export declare const access_code_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
134
|
+
event_id: z.ZodString;
|
|
135
|
+
workspace_id: z.ZodString;
|
|
136
|
+
created_at: z.ZodString;
|
|
137
|
+
occurred_at: z.ZodString;
|
|
138
|
+
}, {
|
|
139
|
+
access_grant_id: z.ZodString;
|
|
140
|
+
}>, {
|
|
141
|
+
event_type: z.ZodLiteral<"access_grant.created">;
|
|
142
|
+
}>, "strip", z.ZodTypeAny, {
|
|
143
|
+
created_at: string;
|
|
144
|
+
workspace_id: string;
|
|
145
|
+
access_grant_id: string;
|
|
146
|
+
event_id: string;
|
|
147
|
+
occurred_at: string;
|
|
148
|
+
event_type: "access_grant.created";
|
|
149
|
+
}, {
|
|
150
|
+
created_at: string;
|
|
151
|
+
workspace_id: string;
|
|
152
|
+
access_grant_id: string;
|
|
153
|
+
event_id: string;
|
|
154
|
+
occurred_at: string;
|
|
155
|
+
event_type: "access_grant.created";
|
|
156
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
157
|
+
event_id: z.ZodString;
|
|
158
|
+
workspace_id: z.ZodString;
|
|
159
|
+
created_at: z.ZodString;
|
|
160
|
+
occurred_at: z.ZodString;
|
|
161
|
+
}, {
|
|
162
|
+
access_grant_id: z.ZodString;
|
|
163
|
+
}>, {
|
|
164
|
+
event_type: z.ZodLiteral<"access_grant.deleted">;
|
|
165
|
+
}>, "strip", z.ZodTypeAny, {
|
|
166
|
+
created_at: string;
|
|
167
|
+
workspace_id: string;
|
|
168
|
+
access_grant_id: string;
|
|
169
|
+
event_id: string;
|
|
170
|
+
occurred_at: string;
|
|
171
|
+
event_type: "access_grant.deleted";
|
|
172
|
+
}, {
|
|
173
|
+
created_at: string;
|
|
174
|
+
workspace_id: string;
|
|
175
|
+
access_grant_id: string;
|
|
176
|
+
event_id: string;
|
|
177
|
+
occurred_at: string;
|
|
178
|
+
event_type: "access_grant.deleted";
|
|
179
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
180
|
+
event_id: z.ZodString;
|
|
181
|
+
workspace_id: z.ZodString;
|
|
182
|
+
created_at: z.ZodString;
|
|
183
|
+
occurred_at: z.ZodString;
|
|
184
|
+
}, {
|
|
185
|
+
access_grant_id: z.ZodString;
|
|
186
|
+
}>, {
|
|
187
|
+
event_type: z.ZodLiteral<"access_grant.access_granted_to_all_doors">;
|
|
188
|
+
}>, "strip", z.ZodTypeAny, {
|
|
189
|
+
created_at: string;
|
|
190
|
+
workspace_id: string;
|
|
191
|
+
access_grant_id: string;
|
|
192
|
+
event_id: string;
|
|
193
|
+
occurred_at: string;
|
|
194
|
+
event_type: "access_grant.access_granted_to_all_doors";
|
|
195
|
+
}, {
|
|
196
|
+
created_at: string;
|
|
197
|
+
workspace_id: string;
|
|
198
|
+
access_grant_id: string;
|
|
199
|
+
event_id: string;
|
|
200
|
+
occurred_at: string;
|
|
201
|
+
event_type: "access_grant.access_granted_to_all_doors";
|
|
202
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
203
|
+
event_id: z.ZodString;
|
|
204
|
+
workspace_id: z.ZodString;
|
|
205
|
+
created_at: z.ZodString;
|
|
206
|
+
occurred_at: z.ZodString;
|
|
207
|
+
}, {
|
|
208
|
+
access_grant_id: z.ZodString;
|
|
209
|
+
}>, {
|
|
210
|
+
event_type: z.ZodLiteral<"access_grant.access_granted_to_door">;
|
|
211
|
+
acs_entrance_id: z.ZodString;
|
|
212
|
+
}>, "strip", z.ZodTypeAny, {
|
|
213
|
+
created_at: string;
|
|
214
|
+
workspace_id: string;
|
|
215
|
+
access_grant_id: string;
|
|
216
|
+
acs_entrance_id: string;
|
|
217
|
+
event_id: string;
|
|
218
|
+
occurred_at: string;
|
|
219
|
+
event_type: "access_grant.access_granted_to_door";
|
|
220
|
+
}, {
|
|
221
|
+
created_at: string;
|
|
222
|
+
workspace_id: string;
|
|
223
|
+
access_grant_id: string;
|
|
224
|
+
acs_entrance_id: string;
|
|
225
|
+
event_id: string;
|
|
226
|
+
occurred_at: string;
|
|
227
|
+
event_type: "access_grant.access_granted_to_door";
|
|
228
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
229
|
+
event_id: z.ZodString;
|
|
230
|
+
workspace_id: z.ZodString;
|
|
231
|
+
created_at: z.ZodString;
|
|
232
|
+
occurred_at: z.ZodString;
|
|
233
|
+
}, {
|
|
234
|
+
access_grant_id: z.ZodString;
|
|
235
|
+
}>, {
|
|
236
|
+
event_type: z.ZodLiteral<"access_grant.access_to_door_lost">;
|
|
237
|
+
acs_entrance_id: z.ZodString;
|
|
238
|
+
}>, "strip", z.ZodTypeAny, {
|
|
239
|
+
created_at: string;
|
|
240
|
+
workspace_id: string;
|
|
241
|
+
access_grant_id: string;
|
|
242
|
+
acs_entrance_id: string;
|
|
243
|
+
event_id: string;
|
|
244
|
+
occurred_at: string;
|
|
245
|
+
event_type: "access_grant.access_to_door_lost";
|
|
246
|
+
}, {
|
|
247
|
+
created_at: string;
|
|
248
|
+
workspace_id: string;
|
|
249
|
+
access_grant_id: string;
|
|
250
|
+
acs_entrance_id: string;
|
|
251
|
+
event_id: string;
|
|
252
|
+
occurred_at: string;
|
|
253
|
+
event_type: "access_grant.access_to_door_lost";
|
|
254
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
255
|
+
event_id: z.ZodString;
|
|
256
|
+
workspace_id: z.ZodString;
|
|
257
|
+
created_at: z.ZodString;
|
|
258
|
+
occurred_at: z.ZodString;
|
|
259
|
+
}, {
|
|
260
|
+
access_grant_id: z.ZodString;
|
|
261
|
+
}>, {
|
|
262
|
+
event_type: z.ZodLiteral<"access_grant.deleted">;
|
|
263
|
+
}>, "strip", z.ZodTypeAny, {
|
|
264
|
+
created_at: string;
|
|
265
|
+
workspace_id: string;
|
|
266
|
+
access_grant_id: string;
|
|
267
|
+
event_id: string;
|
|
268
|
+
occurred_at: string;
|
|
269
|
+
event_type: "access_grant.deleted";
|
|
270
|
+
}, {
|
|
271
|
+
created_at: string;
|
|
272
|
+
workspace_id: string;
|
|
273
|
+
access_grant_id: string;
|
|
274
|
+
event_id: string;
|
|
275
|
+
occurred_at: string;
|
|
276
|
+
event_type: "access_grant.deleted";
|
|
277
|
+
}>];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_event } from './common.js';
|
|
3
|
+
const access_grant_event = common_event.extend({
|
|
4
|
+
access_grant_id: z.string().uuid().describe('ID of the access grant.'),
|
|
5
|
+
});
|
|
6
|
+
export const access_grant_created_event = access_grant_event.extend({
|
|
7
|
+
event_type: z.literal('access_grant.created'),
|
|
8
|
+
}).describe(`
|
|
9
|
+
---
|
|
10
|
+
route_path: /access_grants
|
|
11
|
+
---
|
|
12
|
+
An access grant was created.
|
|
13
|
+
`);
|
|
14
|
+
export const access_grant_deleted_event = access_grant_event.extend({
|
|
15
|
+
event_type: z.literal('access_grant.deleted'),
|
|
16
|
+
}).describe(`
|
|
17
|
+
---
|
|
18
|
+
route_path: /access_grants
|
|
19
|
+
---
|
|
20
|
+
An access grant was deleted.
|
|
21
|
+
`);
|
|
22
|
+
export const access_grant_access_granted_to_all_doors_event = access_grant_event.extend({
|
|
23
|
+
event_type: z.literal('access_grant.access_granted_to_all_doors'),
|
|
24
|
+
}).describe(`
|
|
25
|
+
---
|
|
26
|
+
route_path: /access_grants
|
|
27
|
+
---
|
|
28
|
+
All access requested for an access grant was successfully granted.
|
|
29
|
+
`);
|
|
30
|
+
const acs_entrance_id = z
|
|
31
|
+
.string()
|
|
32
|
+
.uuid()
|
|
33
|
+
.describe('ID of the door, an [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details).');
|
|
34
|
+
export const access_grant_access_granted_to_door_event = access_grant_event.extend({
|
|
35
|
+
event_type: z.literal('access_grant.access_granted_to_door'),
|
|
36
|
+
acs_entrance_id,
|
|
37
|
+
}).describe(`
|
|
38
|
+
---
|
|
39
|
+
route_path: /access_grants
|
|
40
|
+
---
|
|
41
|
+
Access requested as part of an access grant to a particular door was successfully granted.
|
|
42
|
+
`);
|
|
43
|
+
export const access_grant_access_to_door_lost_event = access_grant_event.extend({
|
|
44
|
+
event_type: z.literal('access_grant.access_to_door_lost'),
|
|
45
|
+
acs_entrance_id,
|
|
46
|
+
}).describe(`
|
|
47
|
+
---
|
|
48
|
+
route_path: /access_grants
|
|
49
|
+
---
|
|
50
|
+
Access to a particular door that was requested as part of an access grant was lost.
|
|
51
|
+
`);
|
|
52
|
+
export const access_code_events = [
|
|
53
|
+
access_grant_created_event,
|
|
54
|
+
access_grant_deleted_event,
|
|
55
|
+
access_grant_access_granted_to_all_doors_event,
|
|
56
|
+
access_grant_access_granted_to_door_event,
|
|
57
|
+
access_grant_access_to_door_lost_event,
|
|
58
|
+
access_grant_deleted_event,
|
|
59
|
+
];
|
|
60
|
+
//# sourceMappingURL=access-grants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-grants.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-grants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,kBAAkB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CACvE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAClE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAClE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,8CAA8C,GACzD,kBAAkB,CAAC,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,0CAA0C,CAAC;CAClE,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,eAAe,GAAG,CAAC;KACtB,MAAM,EAAE;KACR,IAAI,EAAE;KACN,QAAQ,CACP,+GAA+G,CAChH,CAAA;AAEH,MAAM,CAAC,MAAM,yCAAyC,GACpD,kBAAkB,CAAC,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC;IAC5D,eAAe;CAChB,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,sCAAsC,GAAG,kBAAkB,CAAC,MAAM,CAC7E;IACE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC;IACzD,eAAe;CAChB,CACF,CAAC,QAAQ,CAAC;;;;;GAKR,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,0BAA0B;IAC1B,0BAA0B;IAC1B,8CAA8C;IAC9C,yCAAyC;IACzC,sCAAsC;IACtC,0BAA0B;CAClB,CAAA"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const access_method_issued_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
event_id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
created_at: z.ZodString;
|
|
6
|
+
occurred_at: z.ZodString;
|
|
7
|
+
}, {
|
|
8
|
+
access_method_id: z.ZodString;
|
|
9
|
+
}>, {
|
|
10
|
+
event_type: z.ZodLiteral<"access_method.issued">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
created_at: string;
|
|
13
|
+
workspace_id: string;
|
|
14
|
+
access_method_id: string;
|
|
15
|
+
event_id: string;
|
|
16
|
+
occurred_at: string;
|
|
17
|
+
event_type: "access_method.issued";
|
|
18
|
+
}, {
|
|
19
|
+
created_at: string;
|
|
20
|
+
workspace_id: string;
|
|
21
|
+
access_method_id: string;
|
|
22
|
+
event_id: string;
|
|
23
|
+
occurred_at: string;
|
|
24
|
+
event_type: "access_method.issued";
|
|
25
|
+
}>;
|
|
26
|
+
export type AccessMethodIssuedEvent = z.infer<typeof access_method_issued_event>;
|
|
27
|
+
export declare const access_method_card_encoding_required_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
28
|
+
event_id: z.ZodString;
|
|
29
|
+
workspace_id: z.ZodString;
|
|
30
|
+
created_at: z.ZodString;
|
|
31
|
+
occurred_at: z.ZodString;
|
|
32
|
+
}, {
|
|
33
|
+
access_method_id: z.ZodString;
|
|
34
|
+
}>, {
|
|
35
|
+
event_type: z.ZodLiteral<"access_method.card_encoding_required">;
|
|
36
|
+
}>, "strip", z.ZodTypeAny, {
|
|
37
|
+
created_at: string;
|
|
38
|
+
workspace_id: string;
|
|
39
|
+
access_method_id: string;
|
|
40
|
+
event_id: string;
|
|
41
|
+
occurred_at: string;
|
|
42
|
+
event_type: "access_method.card_encoding_required";
|
|
43
|
+
}, {
|
|
44
|
+
created_at: string;
|
|
45
|
+
workspace_id: string;
|
|
46
|
+
access_method_id: string;
|
|
47
|
+
event_id: string;
|
|
48
|
+
occurred_at: string;
|
|
49
|
+
event_type: "access_method.card_encoding_required";
|
|
50
|
+
}>;
|
|
51
|
+
export type AccessMethodCardEncodingRequiredEvent = z.infer<typeof access_method_card_encoding_required_event>;
|
|
52
|
+
export declare const access_method_revoked_event: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
53
|
+
event_id: z.ZodString;
|
|
54
|
+
workspace_id: z.ZodString;
|
|
55
|
+
created_at: z.ZodString;
|
|
56
|
+
occurred_at: z.ZodString;
|
|
57
|
+
}, {
|
|
58
|
+
access_method_id: z.ZodString;
|
|
59
|
+
}>, {
|
|
60
|
+
event_type: z.ZodLiteral<"access_method.revoked">;
|
|
61
|
+
}>, "strip", z.ZodTypeAny, {
|
|
62
|
+
created_at: string;
|
|
63
|
+
workspace_id: string;
|
|
64
|
+
access_method_id: string;
|
|
65
|
+
event_id: string;
|
|
66
|
+
occurred_at: string;
|
|
67
|
+
event_type: "access_method.revoked";
|
|
68
|
+
}, {
|
|
69
|
+
created_at: string;
|
|
70
|
+
workspace_id: string;
|
|
71
|
+
access_method_id: string;
|
|
72
|
+
event_id: string;
|
|
73
|
+
occurred_at: string;
|
|
74
|
+
event_type: "access_method.revoked";
|
|
75
|
+
}>;
|
|
76
|
+
export type AccessMethodRevokedEvent = z.infer<typeof access_method_revoked_event>;
|
|
77
|
+
export declare const access_code_events: readonly [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
78
|
+
event_id: z.ZodString;
|
|
79
|
+
workspace_id: z.ZodString;
|
|
80
|
+
created_at: z.ZodString;
|
|
81
|
+
occurred_at: z.ZodString;
|
|
82
|
+
}, {
|
|
83
|
+
access_method_id: z.ZodString;
|
|
84
|
+
}>, {
|
|
85
|
+
event_type: z.ZodLiteral<"access_method.issued">;
|
|
86
|
+
}>, "strip", z.ZodTypeAny, {
|
|
87
|
+
created_at: string;
|
|
88
|
+
workspace_id: string;
|
|
89
|
+
access_method_id: string;
|
|
90
|
+
event_id: string;
|
|
91
|
+
occurred_at: string;
|
|
92
|
+
event_type: "access_method.issued";
|
|
93
|
+
}, {
|
|
94
|
+
created_at: string;
|
|
95
|
+
workspace_id: string;
|
|
96
|
+
access_method_id: string;
|
|
97
|
+
event_id: string;
|
|
98
|
+
occurred_at: string;
|
|
99
|
+
event_type: "access_method.issued";
|
|
100
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
101
|
+
event_id: z.ZodString;
|
|
102
|
+
workspace_id: z.ZodString;
|
|
103
|
+
created_at: z.ZodString;
|
|
104
|
+
occurred_at: z.ZodString;
|
|
105
|
+
}, {
|
|
106
|
+
access_method_id: z.ZodString;
|
|
107
|
+
}>, {
|
|
108
|
+
event_type: z.ZodLiteral<"access_method.revoked">;
|
|
109
|
+
}>, "strip", z.ZodTypeAny, {
|
|
110
|
+
created_at: string;
|
|
111
|
+
workspace_id: string;
|
|
112
|
+
access_method_id: string;
|
|
113
|
+
event_id: string;
|
|
114
|
+
occurred_at: string;
|
|
115
|
+
event_type: "access_method.revoked";
|
|
116
|
+
}, {
|
|
117
|
+
created_at: string;
|
|
118
|
+
workspace_id: string;
|
|
119
|
+
access_method_id: string;
|
|
120
|
+
event_id: string;
|
|
121
|
+
occurred_at: string;
|
|
122
|
+
event_type: "access_method.revoked";
|
|
123
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
124
|
+
event_id: z.ZodString;
|
|
125
|
+
workspace_id: z.ZodString;
|
|
126
|
+
created_at: z.ZodString;
|
|
127
|
+
occurred_at: z.ZodString;
|
|
128
|
+
}, {
|
|
129
|
+
access_method_id: z.ZodString;
|
|
130
|
+
}>, {
|
|
131
|
+
event_type: z.ZodLiteral<"access_method.card_encoding_required">;
|
|
132
|
+
}>, "strip", z.ZodTypeAny, {
|
|
133
|
+
created_at: string;
|
|
134
|
+
workspace_id: string;
|
|
135
|
+
access_method_id: string;
|
|
136
|
+
event_id: string;
|
|
137
|
+
occurred_at: string;
|
|
138
|
+
event_type: "access_method.card_encoding_required";
|
|
139
|
+
}, {
|
|
140
|
+
created_at: string;
|
|
141
|
+
workspace_id: string;
|
|
142
|
+
access_method_id: string;
|
|
143
|
+
event_id: string;
|
|
144
|
+
occurred_at: string;
|
|
145
|
+
event_type: "access_method.card_encoding_required";
|
|
146
|
+
}>];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_event } from './common.js';
|
|
3
|
+
const access_method_event = common_event.extend({
|
|
4
|
+
access_method_id: z.string().uuid().describe('ID of the access method.'),
|
|
5
|
+
});
|
|
6
|
+
export const access_method_issued_event = access_method_event.extend({
|
|
7
|
+
event_type: z.literal('access_method.issued'),
|
|
8
|
+
}).describe(`
|
|
9
|
+
---
|
|
10
|
+
route_path: /access_methods
|
|
11
|
+
---
|
|
12
|
+
An access method was issued.
|
|
13
|
+
`);
|
|
14
|
+
export const access_method_card_encoding_required_event = access_method_event.extend({
|
|
15
|
+
event_type: z.literal('access_method.card_encoding_required'),
|
|
16
|
+
}).describe(`
|
|
17
|
+
---
|
|
18
|
+
route_path: /access_methods
|
|
19
|
+
---
|
|
20
|
+
An access method representing a physical card requires encoding.
|
|
21
|
+
`);
|
|
22
|
+
export const access_method_revoked_event = access_method_event.extend({
|
|
23
|
+
event_type: z.literal('access_method.revoked'),
|
|
24
|
+
}).describe(`
|
|
25
|
+
---
|
|
26
|
+
route_path: /access_methods
|
|
27
|
+
---
|
|
28
|
+
An access method was revoked.
|
|
29
|
+
`);
|
|
30
|
+
export const access_code_events = [
|
|
31
|
+
access_method_issued_event,
|
|
32
|
+
access_method_revoked_event,
|
|
33
|
+
access_method_card_encoding_required_event,
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=access-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CACzE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACnE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,0CAA0C,GACrD,mBAAmB,CAAC,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC;CAC9D,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,0BAA0B;IAC1B,2BAA2B;IAC3B,0CAA0C;CAClC,CAAA"}
|
|
@@ -4,6 +4,25 @@ export declare const workspace: z.ZodObject<{
|
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
company_name: z.ZodString;
|
|
6
6
|
is_sandbox: z.ZodBoolean;
|
|
7
|
+
connect_webview_customization: z.ZodObject<{
|
|
8
|
+
primary_button_color: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
9
|
+
primary_button_text_color: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10
|
+
success_message: z.ZodOptional<z.ZodString>;
|
|
11
|
+
logo_shape: z.ZodOptional<z.ZodEnum<["circle", "square"]>>;
|
|
12
|
+
inviter_logo_url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
primary_button_color?: string | undefined;
|
|
15
|
+
primary_button_text_color?: string | undefined;
|
|
16
|
+
success_message?: string | undefined;
|
|
17
|
+
logo_shape?: "square" | "circle" | undefined;
|
|
18
|
+
inviter_logo_url?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
primary_button_color?: string | undefined;
|
|
21
|
+
primary_button_text_color?: string | undefined;
|
|
22
|
+
success_message?: string | undefined;
|
|
23
|
+
logo_shape?: "square" | "circle" | undefined;
|
|
24
|
+
inviter_logo_url?: string | undefined;
|
|
25
|
+
}>;
|
|
7
26
|
is_suspended: z.ZodBoolean;
|
|
8
27
|
connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
|
|
9
28
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12,6 +31,13 @@ export declare const workspace: z.ZodObject<{
|
|
|
12
31
|
is_suspended: boolean;
|
|
13
32
|
company_name: string;
|
|
14
33
|
is_sandbox: boolean;
|
|
34
|
+
connect_webview_customization: {
|
|
35
|
+
primary_button_color?: string | undefined;
|
|
36
|
+
primary_button_text_color?: string | undefined;
|
|
37
|
+
success_message?: string | undefined;
|
|
38
|
+
logo_shape?: "square" | "circle" | undefined;
|
|
39
|
+
inviter_logo_url?: string | undefined;
|
|
40
|
+
};
|
|
15
41
|
connect_partner_name: string | null;
|
|
16
42
|
}, {
|
|
17
43
|
name: string;
|
|
@@ -19,6 +45,13 @@ export declare const workspace: z.ZodObject<{
|
|
|
19
45
|
is_suspended: boolean;
|
|
20
46
|
company_name: string;
|
|
21
47
|
is_sandbox: boolean;
|
|
48
|
+
connect_webview_customization: {
|
|
49
|
+
primary_button_color?: string | undefined;
|
|
50
|
+
primary_button_text_color?: string | undefined;
|
|
51
|
+
success_message?: string | undefined;
|
|
52
|
+
logo_shape?: "square" | "circle" | undefined;
|
|
53
|
+
inviter_logo_url?: string | undefined;
|
|
54
|
+
};
|
|
22
55
|
connect_partner_name: string | null;
|
|
23
56
|
}>;
|
|
24
57
|
export type Workspace = z.infer<typeof workspace>;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { hex_color_code } from '../colors.js';
|
|
2
3
|
export const workspace = z.object({
|
|
3
4
|
workspace_id: z.string().uuid(),
|
|
4
5
|
name: z.string(),
|
|
5
6
|
company_name: z.string(),
|
|
6
7
|
is_sandbox: z.boolean(),
|
|
8
|
+
connect_webview_customization: z.object({
|
|
9
|
+
primary_button_color: hex_color_code.optional(),
|
|
10
|
+
primary_button_text_color: hex_color_code.optional(),
|
|
11
|
+
success_message: z.string().optional(),
|
|
12
|
+
logo_shape: z.enum(['circle', 'square']).optional(),
|
|
13
|
+
inviter_logo_url: z.string().optional(),
|
|
14
|
+
}),
|
|
7
15
|
is_suspended: z
|
|
8
16
|
.boolean()
|
|
9
17
|
.describe('True if a sandbox workspace has not been accessed in 14 days'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/workspaces/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,YAAY,EAAE,CAAC;SACZ,OAAO,EAAE;SACT,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP;;;;GAIH,CACE;SACA,QAAQ,EAAE;CACd,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/workspaces/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,6BAA6B,EAAE,CAAC,CAAC,MAAM,CAAC;QACtC,oBAAoB,EAAE,cAAc,CAAC,QAAQ,EAAE;QAC/C,yBAAyB,EAAE,cAAc,CAAC,QAAQ,EAAE;QACpD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACtC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;QACnD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACxC,CAAC;IACF,YAAY,EAAE,CAAC;SACZ,OAAO,EAAE;SACT,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP;;;;GAIH,CACE;SACA,QAAQ,EAAE;CACd,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
|