@seamapi/types 1.194.0 → 1.196.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 +147 -48
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +280 -8
- package/lib/seam/connect/models/acs/acs-system.js +84 -29
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +102 -0
- package/lib/seam/connect/models/events/acs/common.d.ts +3 -0
- package/lib/seam/connect/models/events/acs/credentials.d.ts +6 -0
- package/lib/seam/connect/models/events/acs/index.d.ts +9 -0
- package/lib/seam/connect/models/events/acs/systems.d.ts +6 -0
- package/lib/seam/connect/models/events/acs/users.d.ts +6 -0
- package/lib/seam/connect/models/events/action-attempts.d.ts +6 -0
- package/lib/seam/connect/models/events/client-sessions.d.ts +6 -0
- package/lib/seam/connect/models/events/common.d.ts +3 -0
- package/lib/seam/connect/models/events/common.js +6 -0
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -0
- package/lib/seam/connect/models/events/devices.d.ts +150 -0
- package/lib/seam/connect/models/events/enrollment-automations.d.ts +6 -0
- package/lib/seam/connect/models/events/phones.d.ts +6 -0
- package/lib/seam/connect/models/events/seam-event.d.ts +165 -0
- package/lib/seam/connect/openapi.d.ts +22 -0
- package/lib/seam/connect/openapi.js +79 -18
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +93 -8
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +105 -26
- package/src/lib/seam/connect/models/events/common.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +98 -18
- package/src/lib/seam/connect/route-types.ts +93 -8
package/dist/connect.cjs
CHANGED
|
@@ -220,10 +220,18 @@ var acs_entrance = zod.z.object({
|
|
|
220
220
|
visionline_metadata: acs_entrance_visionline_metadata.optional()
|
|
221
221
|
});
|
|
222
222
|
var acs_system_capability_flags = zod.z.object({
|
|
223
|
-
can_automate_enrollment: zod.z.boolean().optional()
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
can_automate_enrollment: zod.z.boolean().optional().describe(
|
|
224
|
+
"Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`."
|
|
225
|
+
),
|
|
226
|
+
can_create_acs_access_groups: zod.z.boolean().optional().describe(
|
|
227
|
+
"Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems)."
|
|
228
|
+
),
|
|
229
|
+
can_remove_acs_users_from_acs_access_groups: zod.z.boolean().optional().describe(
|
|
230
|
+
"Indicates whether the `acs_system` supports [removing users from access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems)."
|
|
231
|
+
),
|
|
232
|
+
can_add_acs_users_to_acs_access_groups: zod.z.boolean().optional().describe(
|
|
233
|
+
"Indicates whether the `acs_system` supports [adding users to access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems)."
|
|
234
|
+
)
|
|
227
235
|
});
|
|
228
236
|
var acs_system_external_type = zod.z.enum([
|
|
229
237
|
"pti_site",
|
|
@@ -236,50 +244,74 @@ var acs_system_external_type = zod.z.enum([
|
|
|
236
244
|
"latch_building"
|
|
237
245
|
]);
|
|
238
246
|
var common_acs_system_error = zod.z.object({
|
|
239
|
-
created_at: zod.z.string().datetime(),
|
|
240
|
-
message: zod.z.string()
|
|
247
|
+
created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
|
|
248
|
+
message: zod.z.string().describe(
|
|
249
|
+
"Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
|
|
250
|
+
)
|
|
241
251
|
});
|
|
252
|
+
var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
|
|
242
253
|
var seam_bridge_disconnected = common_acs_system_error.extend({
|
|
243
|
-
error_code: zod.z.literal("seam_bridge_disconnected")
|
|
244
|
-
})
|
|
254
|
+
error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description)
|
|
255
|
+
}).describe(`Indicates that the Seam API cannot communicate with the [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
|
|
256
|
+
This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
|
|
257
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
|
|
245
258
|
var visionline_instance_unreachable = common_acs_system_error.extend({
|
|
246
|
-
error_code: zod.z.literal("visionline_instance_unreachable")
|
|
247
|
-
})
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
]);
|
|
259
|
+
error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description)
|
|
260
|
+
}).describe(`Indicates that the Seam Bridge is functioning correctly and the Seam API can communicate with the Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
|
|
261
|
+
For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
|
|
262
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`);
|
|
263
|
+
var acs_system_error = zod.z.union([seam_bridge_disconnected, visionline_instance_unreachable]).describe("Error associated with the `acs_system`.");
|
|
252
264
|
zod.z.object({
|
|
253
265
|
seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
|
|
254
266
|
visionline_instance_unreachable: visionline_instance_unreachable.optional().nullable()
|
|
255
267
|
});
|
|
256
|
-
var acs_system_warning = zod.z.object({})
|
|
268
|
+
var acs_system_warning = zod.z.object({}).describe(
|
|
269
|
+
`
|
|
270
|
+
---
|
|
271
|
+
undocumented: Currently, no warnings defined for \`acs_system\`s.
|
|
272
|
+
---
|
|
273
|
+
`
|
|
274
|
+
);
|
|
257
275
|
zod.z.object({});
|
|
258
276
|
var acs_system = zod.z.object({
|
|
259
|
-
acs_system_id: zod.z.string().uuid(),
|
|
260
|
-
external_type: acs_system_external_type.optional(),
|
|
261
|
-
external_type_display_name: zod.z.string().
|
|
277
|
+
acs_system_id: zod.z.string().uuid().describe("ID of the `acs_system`."),
|
|
278
|
+
external_type: acs_system_external_type.describe("Brand-specific terminology for the `acs_system` type.").optional(),
|
|
279
|
+
external_type_display_name: zod.z.string().describe(
|
|
280
|
+
"Display name that corresponds to the brand-specific terminology for the `acs_system` type."
|
|
281
|
+
).optional(),
|
|
262
282
|
system_type: acs_system_external_type.describe(
|
|
263
283
|
`
|
|
264
284
|
---
|
|
265
|
-
deprecated:
|
|
285
|
+
deprecated: Use \`external_type\`.
|
|
266
286
|
---
|
|
267
287
|
`
|
|
268
288
|
).optional(),
|
|
269
289
|
system_type_display_name: zod.z.string().optional().describe(`
|
|
270
290
|
---
|
|
271
|
-
deprecated:
|
|
291
|
+
deprecated: Use \`external_type_display_name\`.
|
|
272
292
|
---
|
|
273
293
|
`),
|
|
274
|
-
name: zod.z.string(),
|
|
275
|
-
created_at: zod.z.string().datetime(),
|
|
276
|
-
workspace_id: zod.z.string().uuid()
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
294
|
+
name: zod.z.string().describe("Name of the `acs_system`."),
|
|
295
|
+
created_at: zod.z.string().datetime().describe("Date and time at which the `acs_system` was created."),
|
|
296
|
+
workspace_id: zod.z.string().uuid().describe(
|
|
297
|
+
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`."
|
|
298
|
+
),
|
|
299
|
+
connected_account_ids: zod.z.array(zod.z.string().uuid()).describe(
|
|
300
|
+
"IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`."
|
|
301
|
+
),
|
|
302
|
+
image_url: zod.z.string().describe("URL for the image that represents the `acs_system`."),
|
|
303
|
+
image_alt_text: zod.z.string().describe("Alternative text for the `acs_system` image."),
|
|
304
|
+
errors: zod.z.array(acs_system_error).describe("Errors associated with the `acs_system`."),
|
|
305
|
+
warnings: zod.z.array(acs_system_warning).describe(
|
|
306
|
+
`
|
|
307
|
+
---
|
|
308
|
+
undocumented: Currently, no warnings defined for \`acs_system\`s.
|
|
309
|
+
---
|
|
310
|
+
`
|
|
311
|
+
)
|
|
312
|
+
}).merge(acs_system_capability_flags).describe(
|
|
313
|
+
"Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
|
|
314
|
+
);
|
|
283
315
|
var phone_number = zod.z.coerce.string().trim().refine(
|
|
284
316
|
(val) => {
|
|
285
317
|
return /^\+[1-9]\d{1,14}$/.test(val);
|
|
@@ -1555,6 +1587,12 @@ var unmanaged_device = device.pick({
|
|
|
1555
1587
|
})
|
|
1556
1588
|
}).merge(device_capability_flags2);
|
|
1557
1589
|
var common_event = zod.z.object({
|
|
1590
|
+
event_id: zod.z.string().uuid().describe(`
|
|
1591
|
+
---
|
|
1592
|
+
title: Event ID
|
|
1593
|
+
---
|
|
1594
|
+
The ID of the event.
|
|
1595
|
+
`),
|
|
1558
1596
|
workspace_id: zod.z.string().uuid().describe(`
|
|
1559
1597
|
---
|
|
1560
1598
|
title: Workspace ID
|
|
@@ -2447,40 +2485,82 @@ var openapi_default = {
|
|
|
2447
2485
|
type: "object"
|
|
2448
2486
|
},
|
|
2449
2487
|
acs_system: {
|
|
2488
|
+
description: "Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).",
|
|
2450
2489
|
properties: {
|
|
2451
|
-
acs_system_id: {
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2490
|
+
acs_system_id: {
|
|
2491
|
+
description: "ID of the `acs_system`.",
|
|
2492
|
+
format: "uuid",
|
|
2493
|
+
type: "string"
|
|
2494
|
+
},
|
|
2495
|
+
can_add_acs_users_to_acs_access_groups: {
|
|
2496
|
+
description: "Indicates whether the `acs_system` supports [adding users to access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).",
|
|
2497
|
+
type: "boolean"
|
|
2498
|
+
},
|
|
2499
|
+
can_automate_enrollment: {
|
|
2500
|
+
description: "Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`.",
|
|
2501
|
+
type: "boolean"
|
|
2502
|
+
},
|
|
2503
|
+
can_create_acs_access_groups: {
|
|
2504
|
+
description: "Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).",
|
|
2505
|
+
type: "boolean"
|
|
2506
|
+
},
|
|
2507
|
+
can_remove_acs_users_from_acs_access_groups: {
|
|
2508
|
+
description: "Indicates whether the `acs_system` supports [removing users from access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems).",
|
|
2509
|
+
type: "boolean"
|
|
2510
|
+
},
|
|
2456
2511
|
connected_account_ids: {
|
|
2512
|
+
description: "IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.",
|
|
2457
2513
|
items: { format: "uuid", type: "string" },
|
|
2458
2514
|
type: "array"
|
|
2459
2515
|
},
|
|
2460
|
-
created_at: {
|
|
2516
|
+
created_at: {
|
|
2517
|
+
description: "Date and time at which the `acs_system` was created.",
|
|
2518
|
+
format: "date-time",
|
|
2519
|
+
type: "string"
|
|
2520
|
+
},
|
|
2461
2521
|
errors: {
|
|
2522
|
+
description: "Errors associated with the `acs_system`.",
|
|
2462
2523
|
items: {
|
|
2524
|
+
description: "Error associated with the `acs_system`.",
|
|
2463
2525
|
oneOf: [
|
|
2464
2526
|
{
|
|
2527
|
+
description: "Indicates that the Seam API cannot communicate with the [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
|
|
2465
2528
|
properties: {
|
|
2466
|
-
created_at: {
|
|
2529
|
+
created_at: {
|
|
2530
|
+
description: "Date and time at which Seam created the error.",
|
|
2531
|
+
format: "date-time",
|
|
2532
|
+
type: "string"
|
|
2533
|
+
},
|
|
2467
2534
|
error_code: {
|
|
2535
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
2468
2536
|
enum: ["seam_bridge_disconnected"],
|
|
2469
2537
|
type: "string"
|
|
2470
2538
|
},
|
|
2471
|
-
message: {
|
|
2539
|
+
message: {
|
|
2540
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
2541
|
+
type: "string"
|
|
2542
|
+
}
|
|
2472
2543
|
},
|
|
2473
2544
|
required: ["created_at", "message", "error_code"],
|
|
2474
2545
|
type: "object"
|
|
2475
2546
|
},
|
|
2476
2547
|
{
|
|
2548
|
+
description: "Indicates that the Seam Bridge is functioning correctly and the Seam API can communicate with the Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).\n For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).",
|
|
2477
2549
|
properties: {
|
|
2478
|
-
created_at: {
|
|
2550
|
+
created_at: {
|
|
2551
|
+
description: "Date and time at which Seam created the error.",
|
|
2552
|
+
format: "date-time",
|
|
2553
|
+
type: "string"
|
|
2554
|
+
},
|
|
2479
2555
|
error_code: {
|
|
2556
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
2480
2557
|
enum: ["visionline_instance_unreachable"],
|
|
2481
2558
|
type: "string"
|
|
2482
2559
|
},
|
|
2483
|
-
message: {
|
|
2560
|
+
message: {
|
|
2561
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
2562
|
+
type: "string"
|
|
2563
|
+
}
|
|
2484
2564
|
},
|
|
2485
2565
|
required: ["created_at", "message", "error_code"],
|
|
2486
2566
|
type: "object"
|
|
@@ -2490,6 +2570,7 @@ var openapi_default = {
|
|
|
2490
2570
|
type: "array"
|
|
2491
2571
|
},
|
|
2492
2572
|
external_type: {
|
|
2573
|
+
description: "Brand-specific terminology for the `acs_system` type.",
|
|
2493
2574
|
enum: [
|
|
2494
2575
|
"pti_site",
|
|
2495
2576
|
"alta_org",
|
|
@@ -2502,10 +2583,19 @@ var openapi_default = {
|
|
|
2502
2583
|
],
|
|
2503
2584
|
type: "string"
|
|
2504
2585
|
},
|
|
2505
|
-
external_type_display_name: {
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2586
|
+
external_type_display_name: {
|
|
2587
|
+
description: "Display name that corresponds to the brand-specific terminology for the `acs_system` type.",
|
|
2588
|
+
type: "string"
|
|
2589
|
+
},
|
|
2590
|
+
image_alt_text: {
|
|
2591
|
+
description: "Alternative text for the `acs_system` image.",
|
|
2592
|
+
type: "string"
|
|
2593
|
+
},
|
|
2594
|
+
image_url: {
|
|
2595
|
+
description: "URL for the image that represents the `acs_system`.",
|
|
2596
|
+
type: "string"
|
|
2597
|
+
},
|
|
2598
|
+
name: { description: "Name of the `acs_system`.", type: "string" },
|
|
2509
2599
|
system_type: {
|
|
2510
2600
|
deprecated: true,
|
|
2511
2601
|
enum: [
|
|
@@ -2519,18 +2609,27 @@ var openapi_default = {
|
|
|
2519
2609
|
"latch_building"
|
|
2520
2610
|
],
|
|
2521
2611
|
type: "string",
|
|
2522
|
-
"x-deprecated": "
|
|
2612
|
+
"x-deprecated": "Use `external_type`."
|
|
2523
2613
|
},
|
|
2524
2614
|
system_type_display_name: {
|
|
2525
2615
|
deprecated: true,
|
|
2526
2616
|
type: "string",
|
|
2527
|
-
"x-deprecated": "
|
|
2617
|
+
"x-deprecated": "Use `external_type_display_name`."
|
|
2528
2618
|
},
|
|
2529
2619
|
warnings: {
|
|
2530
|
-
items: {
|
|
2531
|
-
|
|
2620
|
+
items: {
|
|
2621
|
+
description: "\n ---\n undocumented: Currently, no warnings defined for `acs_system`s.\n ---\n ",
|
|
2622
|
+
properties: {},
|
|
2623
|
+
type: "object"
|
|
2624
|
+
},
|
|
2625
|
+
type: "array",
|
|
2626
|
+
"x-undocumented": "Currently, no warnings defined for `acs_system`s."
|
|
2532
2627
|
},
|
|
2533
|
-
workspace_id: {
|
|
2628
|
+
workspace_id: {
|
|
2629
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.",
|
|
2630
|
+
format: "uuid",
|
|
2631
|
+
type: "string"
|
|
2632
|
+
}
|
|
2534
2633
|
},
|
|
2535
2634
|
required: [
|
|
2536
2635
|
"acs_system_id",
|