@seamapi/types 1.723.0 → 1.725.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 +8098 -2279
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +21305 -5507
- package/dist/index.cjs +8098 -2279
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +205 -142
- package/lib/seam/connect/models/access-codes/managed-access-code.js +57 -22
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +95 -52
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +5 -2
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +721 -12
- package/lib/seam/connect/models/access-grants/access-grant.js +75 -1
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +825 -8
- package/lib/seam/connect/models/access-grants/access-method.js +123 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/index.d.ts +1 -0
- package/lib/seam/connect/models/access-grants/index.js +1 -0
- package/lib/seam/connect/models/access-grants/index.js.map +1 -1
- package/lib/seam/connect/models/access-grants/pending-mutations.d.ts +255 -0
- package/lib/seam/connect/models/access-grants/pending-mutations.js +78 -0
- package/lib/seam/connect/models/access-grants/pending-mutations.js.map +1 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js +6 -0
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +0 -5
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +80 -80
- package/lib/seam/connect/models/acs/metadata/salto-space.d.ts +0 -3
- package/lib/seam/connect/models/acs/metadata/salto-space.js +0 -5
- package/lib/seam/connect/models/acs/metadata/salto-space.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +36 -16
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js +5 -5
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/lock-door.d.ts +13 -3
- package/lib/seam/connect/models/action-attempts/lock-door.js +8 -1
- package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js +5 -5
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +13 -3
- package/lib/seam/connect/models/action-attempts/unlock-door.js +8 -1
- package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +3952 -752
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +58 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +7 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/customer/access-grant-resources.d.ts +6 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js +4 -0
- package/lib/seam/connect/models/customer/access-grant-resources.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +5 -0
- package/lib/seam/connect/models/customer/customer-portal.d.ts +169 -10
- package/lib/seam/connect/models/customer/customer-portal.js +46 -4
- package/lib/seam/connect/models/customer/customer-portal.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +45 -38
- package/lib/seam/connect/models/devices/device-metadata.js +26 -9
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -5
- package/lib/seam/connect/models/devices/device-provider.js +2 -3
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device-type.d.ts +0 -2
- package/lib/seam/connect/models/devices/device-type.js +0 -2
- package/lib/seam/connect/models/devices/device-type.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +203 -52
- package/lib/seam/connect/models/devices/device.js +31 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +97 -38
- package/lib/seam/connect/models/events/access-codes.d.ts +1390 -0
- package/lib/seam/connect/models/events/access-codes.js +41 -11
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +60 -0
- package/lib/seam/connect/models/events/access-methods.js +9 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/acs/index.d.ts +93 -0
- package/lib/seam/connect/models/events/acs/systems.d.ts +186 -0
- package/lib/seam/connect/models/events/acs/systems.js +19 -2
- package/lib/seam/connect/models/events/acs/systems.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.d.ts +332 -0
- package/lib/seam/connect/models/events/action-attempts.js +46 -0
- package/lib/seam/connect/models/events/action-attempts.js.map +1 -1
- package/lib/seam/connect/models/events/common.d.ts +26 -0
- package/lib/seam/connect/models/events/common.js +22 -0
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.d.ts +140 -272
- package/lib/seam/connect/models/events/connected-accounts.js +17 -9
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +1128 -0
- package/lib/seam/connect/models/events/devices.js +39 -11
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +1675 -196
- package/lib/seam/connect/models/events/spaces.d.ts +12 -12
- package/lib/seam/connect/models/phones/phone-session.d.ts +0 -20
- package/lib/seam/connect/openapi.d.ts +6484 -2215
- package/lib/seam/connect/openapi.js +8922 -3442
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7211 -1139
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/model-types.ts +1 -0
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +76 -24
- package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +10 -2
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +92 -1
- package/src/lib/seam/connect/models/access-grants/access-method.ts +162 -1
- package/src/lib/seam/connect/models/access-grants/index.ts +1 -0
- package/src/lib/seam/connect/models/access-grants/pending-mutations.ts +101 -0
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +8 -0
- package/src/lib/seam/connect/models/acs/metadata/salto-space.ts +0 -5
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +5 -5
- package/src/lib/seam/connect/models/action-attempts/lock-door.ts +10 -1
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +5 -5
- package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +10 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +10 -0
- package/src/lib/seam/connect/models/customer/access-grant-resources.ts +7 -0
- package/src/lib/seam/connect/models/customer/customer-portal.ts +66 -6
- package/src/lib/seam/connect/models/devices/device-metadata.ts +36 -10
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -3
- package/src/lib/seam/connect/models/devices/device-type.ts +0 -2
- package/src/lib/seam/connect/models/devices/device.ts +37 -0
- package/src/lib/seam/connect/models/events/access-codes.ts +49 -16
- package/src/lib/seam/connect/models/events/access-methods.ts +14 -0
- package/src/lib/seam/connect/models/events/acs/systems.ts +21 -3
- package/src/lib/seam/connect/models/events/action-attempts.ts +64 -0
- package/src/lib/seam/connect/models/events/common.ts +31 -0
- package/src/lib/seam/connect/models/events/connected-accounts.ts +23 -11
- package/src/lib/seam/connect/models/events/devices.ts +51 -18
- package/src/lib/seam/connect/openapi.ts +8974 -2885
- package/src/lib/seam/connect/route-types.ts +8121 -1686
|
@@ -107,112 +107,33 @@ export declare const connected_account_disconnected_event: z.ZodObject<{
|
|
|
107
107
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
108
108
|
} & {
|
|
109
109
|
event_type: z.ZodLiteral<"connected_account.disconnected">;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
message: z.ZodString;
|
|
113
|
-
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
-
} & {
|
|
116
|
-
error_code: z.ZodLiteral<"account_disconnected">;
|
|
117
|
-
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
message: string;
|
|
119
|
-
created_at: string;
|
|
120
|
-
error_code: "account_disconnected";
|
|
121
|
-
is_connected_account_error?: boolean | undefined;
|
|
122
|
-
is_bridge_error?: boolean | undefined;
|
|
123
|
-
}, {
|
|
124
|
-
message: string;
|
|
125
|
-
created_at: string;
|
|
126
|
-
error_code: "account_disconnected";
|
|
127
|
-
is_connected_account_error?: boolean | undefined;
|
|
128
|
-
is_bridge_error?: boolean | undefined;
|
|
129
|
-
}>, z.ZodObject<{
|
|
110
|
+
} & {
|
|
111
|
+
connected_account_errors: z.ZodArray<z.ZodObject<{
|
|
130
112
|
created_at: z.ZodString;
|
|
131
113
|
message: z.ZodString;
|
|
132
|
-
|
|
133
|
-
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
} & {
|
|
135
|
-
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
114
|
+
error_code: z.ZodString;
|
|
136
115
|
}, "strip", z.ZodTypeAny, {
|
|
137
116
|
message: string;
|
|
138
117
|
created_at: string;
|
|
139
|
-
error_code:
|
|
140
|
-
is_connected_account_error?: boolean | undefined;
|
|
141
|
-
is_bridge_error?: boolean | undefined;
|
|
118
|
+
error_code: string;
|
|
142
119
|
}, {
|
|
143
120
|
message: string;
|
|
144
121
|
created_at: string;
|
|
145
|
-
error_code:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}>, z.ZodObject<{
|
|
122
|
+
error_code: string;
|
|
123
|
+
}>, "many">;
|
|
124
|
+
connected_account_warnings: z.ZodArray<z.ZodObject<{
|
|
149
125
|
created_at: z.ZodString;
|
|
150
126
|
message: z.ZodString;
|
|
151
|
-
|
|
152
|
-
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
-
} & {
|
|
154
|
-
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
155
|
-
salto_ks_metadata: z.ZodObject<{
|
|
156
|
-
sites: z.ZodArray<z.ZodObject<{
|
|
157
|
-
site_id: z.ZodString;
|
|
158
|
-
site_name: z.ZodString;
|
|
159
|
-
subscribed_site_user_count: z.ZodNumber;
|
|
160
|
-
site_user_subscription_limit: z.ZodNumber;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
site_id: string;
|
|
163
|
-
site_name: string;
|
|
164
|
-
subscribed_site_user_count: number;
|
|
165
|
-
site_user_subscription_limit: number;
|
|
166
|
-
}, {
|
|
167
|
-
site_id: string;
|
|
168
|
-
site_name: string;
|
|
169
|
-
subscribed_site_user_count: number;
|
|
170
|
-
site_user_subscription_limit: number;
|
|
171
|
-
}>, "many">;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
sites: {
|
|
174
|
-
site_id: string;
|
|
175
|
-
site_name: string;
|
|
176
|
-
subscribed_site_user_count: number;
|
|
177
|
-
site_user_subscription_limit: number;
|
|
178
|
-
}[];
|
|
179
|
-
}, {
|
|
180
|
-
sites: {
|
|
181
|
-
site_id: string;
|
|
182
|
-
site_name: string;
|
|
183
|
-
subscribed_site_user_count: number;
|
|
184
|
-
site_user_subscription_limit: number;
|
|
185
|
-
}[];
|
|
186
|
-
}>;
|
|
127
|
+
warning_code: z.ZodString;
|
|
187
128
|
}, "strip", z.ZodTypeAny, {
|
|
188
129
|
message: string;
|
|
189
130
|
created_at: string;
|
|
190
|
-
|
|
191
|
-
salto_ks_metadata: {
|
|
192
|
-
sites: {
|
|
193
|
-
site_id: string;
|
|
194
|
-
site_name: string;
|
|
195
|
-
subscribed_site_user_count: number;
|
|
196
|
-
site_user_subscription_limit: number;
|
|
197
|
-
}[];
|
|
198
|
-
};
|
|
199
|
-
is_connected_account_error?: boolean | undefined;
|
|
200
|
-
is_bridge_error?: boolean | undefined;
|
|
131
|
+
warning_code: string;
|
|
201
132
|
}, {
|
|
202
133
|
message: string;
|
|
203
134
|
created_at: string;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
sites: {
|
|
207
|
-
site_id: string;
|
|
208
|
-
site_name: string;
|
|
209
|
-
subscribed_site_user_count: number;
|
|
210
|
-
site_user_subscription_limit: number;
|
|
211
|
-
}[];
|
|
212
|
-
};
|
|
213
|
-
is_connected_account_error?: boolean | undefined;
|
|
214
|
-
is_bridge_error?: boolean | undefined;
|
|
215
|
-
}>]>, "many">;
|
|
135
|
+
warning_code: string;
|
|
136
|
+
}>, "many">;
|
|
216
137
|
}, "strip", z.ZodTypeAny, {
|
|
217
138
|
workspace_id: string;
|
|
218
139
|
created_at: string;
|
|
@@ -220,33 +141,16 @@ export declare const connected_account_disconnected_event: z.ZodObject<{
|
|
|
220
141
|
event_id: string;
|
|
221
142
|
occurred_at: string;
|
|
222
143
|
event_type: "connected_account.disconnected";
|
|
223
|
-
connected_account_errors:
|
|
144
|
+
connected_account_errors: {
|
|
224
145
|
message: string;
|
|
225
146
|
created_at: string;
|
|
226
|
-
error_code:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
} | {
|
|
147
|
+
error_code: string;
|
|
148
|
+
}[];
|
|
149
|
+
connected_account_warnings: {
|
|
230
150
|
message: string;
|
|
231
151
|
created_at: string;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
is_bridge_error?: boolean | undefined;
|
|
235
|
-
} | {
|
|
236
|
-
message: string;
|
|
237
|
-
created_at: string;
|
|
238
|
-
error_code: "salto_ks_subscription_limit_exceeded";
|
|
239
|
-
salto_ks_metadata: {
|
|
240
|
-
sites: {
|
|
241
|
-
site_id: string;
|
|
242
|
-
site_name: string;
|
|
243
|
-
subscribed_site_user_count: number;
|
|
244
|
-
site_user_subscription_limit: number;
|
|
245
|
-
}[];
|
|
246
|
-
};
|
|
247
|
-
is_connected_account_error?: boolean | undefined;
|
|
248
|
-
is_bridge_error?: boolean | undefined;
|
|
249
|
-
})[];
|
|
152
|
+
warning_code: string;
|
|
153
|
+
}[];
|
|
250
154
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
251
155
|
}, {
|
|
252
156
|
workspace_id: string;
|
|
@@ -255,33 +159,16 @@ export declare const connected_account_disconnected_event: z.ZodObject<{
|
|
|
255
159
|
event_id: string;
|
|
256
160
|
occurred_at: string;
|
|
257
161
|
event_type: "connected_account.disconnected";
|
|
258
|
-
connected_account_errors:
|
|
259
|
-
message: string;
|
|
260
|
-
created_at: string;
|
|
261
|
-
error_code: "account_disconnected";
|
|
262
|
-
is_connected_account_error?: boolean | undefined;
|
|
263
|
-
is_bridge_error?: boolean | undefined;
|
|
264
|
-
} | {
|
|
162
|
+
connected_account_errors: {
|
|
265
163
|
message: string;
|
|
266
164
|
created_at: string;
|
|
267
|
-
error_code:
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
} | {
|
|
165
|
+
error_code: string;
|
|
166
|
+
}[];
|
|
167
|
+
connected_account_warnings: {
|
|
271
168
|
message: string;
|
|
272
169
|
created_at: string;
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
sites: {
|
|
276
|
-
site_id: string;
|
|
277
|
-
site_name: string;
|
|
278
|
-
subscribed_site_user_count: number;
|
|
279
|
-
site_user_subscription_limit: number;
|
|
280
|
-
}[];
|
|
281
|
-
};
|
|
282
|
-
is_connected_account_error?: boolean | undefined;
|
|
283
|
-
is_bridge_error?: boolean | undefined;
|
|
284
|
-
})[];
|
|
170
|
+
warning_code: string;
|
|
171
|
+
}[];
|
|
285
172
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
286
173
|
}>;
|
|
287
174
|
export type ConnectedAccountDisconnectedEvent = z.infer<typeof connected_account_disconnected_event>;
|
|
@@ -385,6 +272,33 @@ export declare const connected_account_reauthorization_requested_event: z.ZodObj
|
|
|
385
272
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
386
273
|
} & {
|
|
387
274
|
event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
|
|
275
|
+
} & {
|
|
276
|
+
connected_account_errors: z.ZodArray<z.ZodObject<{
|
|
277
|
+
created_at: z.ZodString;
|
|
278
|
+
message: z.ZodString;
|
|
279
|
+
error_code: z.ZodString;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
message: string;
|
|
282
|
+
created_at: string;
|
|
283
|
+
error_code: string;
|
|
284
|
+
}, {
|
|
285
|
+
message: string;
|
|
286
|
+
created_at: string;
|
|
287
|
+
error_code: string;
|
|
288
|
+
}>, "many">;
|
|
289
|
+
connected_account_warnings: z.ZodArray<z.ZodObject<{
|
|
290
|
+
created_at: z.ZodString;
|
|
291
|
+
message: z.ZodString;
|
|
292
|
+
warning_code: z.ZodString;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
message: string;
|
|
295
|
+
created_at: string;
|
|
296
|
+
warning_code: string;
|
|
297
|
+
}, {
|
|
298
|
+
message: string;
|
|
299
|
+
created_at: string;
|
|
300
|
+
warning_code: string;
|
|
301
|
+
}>, "many">;
|
|
388
302
|
}, "strip", z.ZodTypeAny, {
|
|
389
303
|
workspace_id: string;
|
|
390
304
|
created_at: string;
|
|
@@ -392,6 +306,16 @@ export declare const connected_account_reauthorization_requested_event: z.ZodObj
|
|
|
392
306
|
event_id: string;
|
|
393
307
|
occurred_at: string;
|
|
394
308
|
event_type: "connected_account.reauthorization_requested";
|
|
309
|
+
connected_account_errors: {
|
|
310
|
+
message: string;
|
|
311
|
+
created_at: string;
|
|
312
|
+
error_code: string;
|
|
313
|
+
}[];
|
|
314
|
+
connected_account_warnings: {
|
|
315
|
+
message: string;
|
|
316
|
+
created_at: string;
|
|
317
|
+
warning_code: string;
|
|
318
|
+
}[];
|
|
395
319
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
396
320
|
}, {
|
|
397
321
|
workspace_id: string;
|
|
@@ -400,6 +324,16 @@ export declare const connected_account_reauthorization_requested_event: z.ZodObj
|
|
|
400
324
|
event_id: string;
|
|
401
325
|
occurred_at: string;
|
|
402
326
|
event_type: "connected_account.reauthorization_requested";
|
|
327
|
+
connected_account_errors: {
|
|
328
|
+
message: string;
|
|
329
|
+
created_at: string;
|
|
330
|
+
error_code: string;
|
|
331
|
+
}[];
|
|
332
|
+
connected_account_warnings: {
|
|
333
|
+
message: string;
|
|
334
|
+
created_at: string;
|
|
335
|
+
warning_code: string;
|
|
336
|
+
}[];
|
|
403
337
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
404
338
|
}>;
|
|
405
339
|
export type ConnectedAccountReauthorizationRequestedEvent = z.infer<typeof connected_account_reauthorization_requested_event>;
|
|
@@ -503,112 +437,33 @@ export declare const connected_account_events: readonly [z.ZodObject<{
|
|
|
503
437
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
504
438
|
} & {
|
|
505
439
|
event_type: z.ZodLiteral<"connected_account.disconnected">;
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
message: z.ZodString;
|
|
509
|
-
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
510
|
-
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
511
|
-
} & {
|
|
512
|
-
error_code: z.ZodLiteral<"account_disconnected">;
|
|
513
|
-
}, "strip", z.ZodTypeAny, {
|
|
514
|
-
message: string;
|
|
515
|
-
created_at: string;
|
|
516
|
-
error_code: "account_disconnected";
|
|
517
|
-
is_connected_account_error?: boolean | undefined;
|
|
518
|
-
is_bridge_error?: boolean | undefined;
|
|
519
|
-
}, {
|
|
520
|
-
message: string;
|
|
521
|
-
created_at: string;
|
|
522
|
-
error_code: "account_disconnected";
|
|
523
|
-
is_connected_account_error?: boolean | undefined;
|
|
524
|
-
is_bridge_error?: boolean | undefined;
|
|
525
|
-
}>, z.ZodObject<{
|
|
440
|
+
} & {
|
|
441
|
+
connected_account_errors: z.ZodArray<z.ZodObject<{
|
|
526
442
|
created_at: z.ZodString;
|
|
527
443
|
message: z.ZodString;
|
|
528
|
-
|
|
529
|
-
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
-
} & {
|
|
531
|
-
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
444
|
+
error_code: z.ZodString;
|
|
532
445
|
}, "strip", z.ZodTypeAny, {
|
|
533
446
|
message: string;
|
|
534
447
|
created_at: string;
|
|
535
|
-
error_code:
|
|
536
|
-
is_connected_account_error?: boolean | undefined;
|
|
537
|
-
is_bridge_error?: boolean | undefined;
|
|
448
|
+
error_code: string;
|
|
538
449
|
}, {
|
|
539
450
|
message: string;
|
|
540
451
|
created_at: string;
|
|
541
|
-
error_code:
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
}>, z.ZodObject<{
|
|
452
|
+
error_code: string;
|
|
453
|
+
}>, "many">;
|
|
454
|
+
connected_account_warnings: z.ZodArray<z.ZodObject<{
|
|
545
455
|
created_at: z.ZodString;
|
|
546
456
|
message: z.ZodString;
|
|
547
|
-
|
|
548
|
-
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
549
|
-
} & {
|
|
550
|
-
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
551
|
-
salto_ks_metadata: z.ZodObject<{
|
|
552
|
-
sites: z.ZodArray<z.ZodObject<{
|
|
553
|
-
site_id: z.ZodString;
|
|
554
|
-
site_name: z.ZodString;
|
|
555
|
-
subscribed_site_user_count: z.ZodNumber;
|
|
556
|
-
site_user_subscription_limit: z.ZodNumber;
|
|
557
|
-
}, "strip", z.ZodTypeAny, {
|
|
558
|
-
site_id: string;
|
|
559
|
-
site_name: string;
|
|
560
|
-
subscribed_site_user_count: number;
|
|
561
|
-
site_user_subscription_limit: number;
|
|
562
|
-
}, {
|
|
563
|
-
site_id: string;
|
|
564
|
-
site_name: string;
|
|
565
|
-
subscribed_site_user_count: number;
|
|
566
|
-
site_user_subscription_limit: number;
|
|
567
|
-
}>, "many">;
|
|
568
|
-
}, "strip", z.ZodTypeAny, {
|
|
569
|
-
sites: {
|
|
570
|
-
site_id: string;
|
|
571
|
-
site_name: string;
|
|
572
|
-
subscribed_site_user_count: number;
|
|
573
|
-
site_user_subscription_limit: number;
|
|
574
|
-
}[];
|
|
575
|
-
}, {
|
|
576
|
-
sites: {
|
|
577
|
-
site_id: string;
|
|
578
|
-
site_name: string;
|
|
579
|
-
subscribed_site_user_count: number;
|
|
580
|
-
site_user_subscription_limit: number;
|
|
581
|
-
}[];
|
|
582
|
-
}>;
|
|
457
|
+
warning_code: z.ZodString;
|
|
583
458
|
}, "strip", z.ZodTypeAny, {
|
|
584
459
|
message: string;
|
|
585
460
|
created_at: string;
|
|
586
|
-
|
|
587
|
-
salto_ks_metadata: {
|
|
588
|
-
sites: {
|
|
589
|
-
site_id: string;
|
|
590
|
-
site_name: string;
|
|
591
|
-
subscribed_site_user_count: number;
|
|
592
|
-
site_user_subscription_limit: number;
|
|
593
|
-
}[];
|
|
594
|
-
};
|
|
595
|
-
is_connected_account_error?: boolean | undefined;
|
|
596
|
-
is_bridge_error?: boolean | undefined;
|
|
461
|
+
warning_code: string;
|
|
597
462
|
}, {
|
|
598
463
|
message: string;
|
|
599
464
|
created_at: string;
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
sites: {
|
|
603
|
-
site_id: string;
|
|
604
|
-
site_name: string;
|
|
605
|
-
subscribed_site_user_count: number;
|
|
606
|
-
site_user_subscription_limit: number;
|
|
607
|
-
}[];
|
|
608
|
-
};
|
|
609
|
-
is_connected_account_error?: boolean | undefined;
|
|
610
|
-
is_bridge_error?: boolean | undefined;
|
|
611
|
-
}>]>, "many">;
|
|
465
|
+
warning_code: string;
|
|
466
|
+
}>, "many">;
|
|
612
467
|
}, "strip", z.ZodTypeAny, {
|
|
613
468
|
workspace_id: string;
|
|
614
469
|
created_at: string;
|
|
@@ -616,33 +471,16 @@ export declare const connected_account_events: readonly [z.ZodObject<{
|
|
|
616
471
|
event_id: string;
|
|
617
472
|
occurred_at: string;
|
|
618
473
|
event_type: "connected_account.disconnected";
|
|
619
|
-
connected_account_errors:
|
|
474
|
+
connected_account_errors: {
|
|
620
475
|
message: string;
|
|
621
476
|
created_at: string;
|
|
622
|
-
error_code:
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
} | {
|
|
477
|
+
error_code: string;
|
|
478
|
+
}[];
|
|
479
|
+
connected_account_warnings: {
|
|
626
480
|
message: string;
|
|
627
481
|
created_at: string;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
is_bridge_error?: boolean | undefined;
|
|
631
|
-
} | {
|
|
632
|
-
message: string;
|
|
633
|
-
created_at: string;
|
|
634
|
-
error_code: "salto_ks_subscription_limit_exceeded";
|
|
635
|
-
salto_ks_metadata: {
|
|
636
|
-
sites: {
|
|
637
|
-
site_id: string;
|
|
638
|
-
site_name: string;
|
|
639
|
-
subscribed_site_user_count: number;
|
|
640
|
-
site_user_subscription_limit: number;
|
|
641
|
-
}[];
|
|
642
|
-
};
|
|
643
|
-
is_connected_account_error?: boolean | undefined;
|
|
644
|
-
is_bridge_error?: boolean | undefined;
|
|
645
|
-
})[];
|
|
482
|
+
warning_code: string;
|
|
483
|
+
}[];
|
|
646
484
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
647
485
|
}, {
|
|
648
486
|
workspace_id: string;
|
|
@@ -651,33 +489,16 @@ export declare const connected_account_events: readonly [z.ZodObject<{
|
|
|
651
489
|
event_id: string;
|
|
652
490
|
occurred_at: string;
|
|
653
491
|
event_type: "connected_account.disconnected";
|
|
654
|
-
connected_account_errors:
|
|
655
|
-
message: string;
|
|
656
|
-
created_at: string;
|
|
657
|
-
error_code: "account_disconnected";
|
|
658
|
-
is_connected_account_error?: boolean | undefined;
|
|
659
|
-
is_bridge_error?: boolean | undefined;
|
|
660
|
-
} | {
|
|
492
|
+
connected_account_errors: {
|
|
661
493
|
message: string;
|
|
662
494
|
created_at: string;
|
|
663
|
-
error_code:
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
} | {
|
|
495
|
+
error_code: string;
|
|
496
|
+
}[];
|
|
497
|
+
connected_account_warnings: {
|
|
667
498
|
message: string;
|
|
668
499
|
created_at: string;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
sites: {
|
|
672
|
-
site_id: string;
|
|
673
|
-
site_name: string;
|
|
674
|
-
subscribed_site_user_count: number;
|
|
675
|
-
site_user_subscription_limit: number;
|
|
676
|
-
}[];
|
|
677
|
-
};
|
|
678
|
-
is_connected_account_error?: boolean | undefined;
|
|
679
|
-
is_bridge_error?: boolean | undefined;
|
|
680
|
-
})[];
|
|
500
|
+
warning_code: string;
|
|
501
|
+
}[];
|
|
681
502
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
682
503
|
}>, z.ZodObject<{
|
|
683
504
|
event_id: z.ZodString;
|
|
@@ -773,6 +594,33 @@ export declare const connected_account_events: readonly [z.ZodObject<{
|
|
|
773
594
|
connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
|
|
774
595
|
} & {
|
|
775
596
|
event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
|
|
597
|
+
} & {
|
|
598
|
+
connected_account_errors: z.ZodArray<z.ZodObject<{
|
|
599
|
+
created_at: z.ZodString;
|
|
600
|
+
message: z.ZodString;
|
|
601
|
+
error_code: z.ZodString;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
message: string;
|
|
604
|
+
created_at: string;
|
|
605
|
+
error_code: string;
|
|
606
|
+
}, {
|
|
607
|
+
message: string;
|
|
608
|
+
created_at: string;
|
|
609
|
+
error_code: string;
|
|
610
|
+
}>, "many">;
|
|
611
|
+
connected_account_warnings: z.ZodArray<z.ZodObject<{
|
|
612
|
+
created_at: z.ZodString;
|
|
613
|
+
message: z.ZodString;
|
|
614
|
+
warning_code: z.ZodString;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
message: string;
|
|
617
|
+
created_at: string;
|
|
618
|
+
warning_code: string;
|
|
619
|
+
}, {
|
|
620
|
+
message: string;
|
|
621
|
+
created_at: string;
|
|
622
|
+
warning_code: string;
|
|
623
|
+
}>, "many">;
|
|
776
624
|
}, "strip", z.ZodTypeAny, {
|
|
777
625
|
workspace_id: string;
|
|
778
626
|
created_at: string;
|
|
@@ -780,6 +628,16 @@ export declare const connected_account_events: readonly [z.ZodObject<{
|
|
|
780
628
|
event_id: string;
|
|
781
629
|
occurred_at: string;
|
|
782
630
|
event_type: "connected_account.reauthorization_requested";
|
|
631
|
+
connected_account_errors: {
|
|
632
|
+
message: string;
|
|
633
|
+
created_at: string;
|
|
634
|
+
error_code: string;
|
|
635
|
+
}[];
|
|
636
|
+
connected_account_warnings: {
|
|
637
|
+
message: string;
|
|
638
|
+
created_at: string;
|
|
639
|
+
warning_code: string;
|
|
640
|
+
}[];
|
|
783
641
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
784
642
|
}, {
|
|
785
643
|
workspace_id: string;
|
|
@@ -788,5 +646,15 @@ export declare const connected_account_events: readonly [z.ZodObject<{
|
|
|
788
646
|
event_id: string;
|
|
789
647
|
occurred_at: string;
|
|
790
648
|
event_type: "connected_account.reauthorization_requested";
|
|
649
|
+
connected_account_errors: {
|
|
650
|
+
message: string;
|
|
651
|
+
created_at: string;
|
|
652
|
+
error_code: string;
|
|
653
|
+
}[];
|
|
654
|
+
connected_account_warnings: {
|
|
655
|
+
message: string;
|
|
656
|
+
created_at: string;
|
|
657
|
+
warning_code: string;
|
|
658
|
+
}[];
|
|
791
659
|
connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
792
660
|
}>];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { connected_account_error } from '../connected-accounts/index.js';
|
|
3
2
|
import { custom_metadata } from '../custom-metadata.js';
|
|
4
|
-
import { common_event } from './common.js';
|
|
3
|
+
import { common_event, common_event_error, common_event_warning, } from './common.js';
|
|
5
4
|
const connected_account_event = common_event.extend({
|
|
6
5
|
connected_account_id: z
|
|
7
6
|
.string()
|
|
@@ -15,6 +14,14 @@ const connect_webview_id = z
|
|
|
15
14
|
.string()
|
|
16
15
|
.uuid()
|
|
17
16
|
.describe('ID of the [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the event.');
|
|
17
|
+
const connected_account_event_issue_properties = {
|
|
18
|
+
connected_account_errors: z
|
|
19
|
+
.array(common_event_error)
|
|
20
|
+
.describe('Errors associated with the connected account.'),
|
|
21
|
+
connected_account_warnings: z
|
|
22
|
+
.array(common_event_warning)
|
|
23
|
+
.describe('Warnings associated with the connected account.'),
|
|
24
|
+
};
|
|
18
25
|
export const connected_account_connected_event = connected_account_event.extend({
|
|
19
26
|
event_type: z.literal('connected_account.connected'),
|
|
20
27
|
connect_webview_id: connect_webview_id.optional(),
|
|
@@ -48,12 +55,11 @@ export const connected_account_successful_login_event = connected_account_event.
|
|
|
48
55
|
---
|
|
49
56
|
A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) had a successful login using a [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews).
|
|
50
57
|
`);
|
|
51
|
-
export const connected_account_disconnected_event = connected_account_event
|
|
58
|
+
export const connected_account_disconnected_event = connected_account_event
|
|
59
|
+
.extend({
|
|
52
60
|
event_type: z.literal('connected_account.disconnected'),
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.describe('Errors associated with the connected account.'),
|
|
56
|
-
}).describe(`
|
|
61
|
+
})
|
|
62
|
+
.extend(connected_account_event_issue_properties).describe(`
|
|
57
63
|
---
|
|
58
64
|
route_path: /connected_accounts
|
|
59
65
|
---
|
|
@@ -91,9 +97,11 @@ export const connected_account_completed_first_sync_after_reconnection_event = c
|
|
|
91
97
|
---
|
|
92
98
|
A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) completed the first sync after reconnection with Seam, and the corresponding devices or systems are now available.
|
|
93
99
|
`);
|
|
94
|
-
export const connected_account_reauthorization_requested_event = connected_account_event
|
|
100
|
+
export const connected_account_reauthorization_requested_event = connected_account_event
|
|
101
|
+
.extend({
|
|
95
102
|
event_type: z.literal('connected_account.reauthorization_requested'),
|
|
96
|
-
})
|
|
103
|
+
})
|
|
104
|
+
.extend(connected_account_event_issue_properties).describe(`
|
|
97
105
|
---
|
|
98
106
|
route_path: /connected_accounts
|
|
99
107
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,aAAa,CAAA;AAEpB,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC;SACpB,MAA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