@seamapi/types 1.553.0 → 1.555.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 +281 -19
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +928 -4
- package/dist/index.cjs +281 -19
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +54 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +24 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +54 -0
- package/lib/seam/connect/models/access-grants/access-method.js +24 -0
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +10 -10
- package/lib/seam/connect/models/batch.d.ts +344 -0
- package/lib/seam/connect/models/events/access-grants.d.ts +66 -0
- package/lib/seam/connect/models/events/access-grants.js +21 -0
- package/lib/seam/connect/models/events/access-grants.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +65 -0
- package/lib/seam/connect/models/events/access-methods.js +12 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +65 -1
- package/lib/seam/connect/openapi.d.ts +379 -0
- package/lib/seam/connect/openapi.js +196 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +265 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +40 -0
- package/src/lib/seam/connect/models/access-grants/access-method.ts +40 -0
- package/src/lib/seam/connect/models/events/access-grants.ts +27 -0
- package/src/lib/seam/connect/models/events/access-methods.ts +15 -0
- package/src/lib/seam/connect/openapi.ts +213 -0
- package/src/lib/seam/connect/route-types.ts +279 -0
package/dist/connect.cjs
CHANGED
|
@@ -2310,6 +2310,24 @@ var requested_access_method = zod.z.object({
|
|
|
2310
2310
|
});
|
|
2311
2311
|
|
|
2312
2312
|
// src/lib/seam/connect/models/access-grants/access-grant.ts
|
|
2313
|
+
var common_access_grant_warning = zod.z.object({
|
|
2314
|
+
created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
|
|
2315
|
+
message: zod.z.string().describe(
|
|
2316
|
+
"Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
|
|
2317
|
+
)
|
|
2318
|
+
});
|
|
2319
|
+
var warning_code_description4 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
|
|
2320
|
+
var being_deleted = common_access_grant_warning.extend({
|
|
2321
|
+
warning_code: zod.z.literal("being_deleted").describe(warning_code_description4)
|
|
2322
|
+
}).describe(
|
|
2323
|
+
"Indicates that the [access grant](https://docs.seam.co/latest/capability-guides/access-grants) is being deleted."
|
|
2324
|
+
);
|
|
2325
|
+
var access_grant_warning = zod.z.discriminatedUnion("warning_code", [being_deleted]).describe(
|
|
2326
|
+
"Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants)."
|
|
2327
|
+
);
|
|
2328
|
+
zod.z.object({
|
|
2329
|
+
being_deleted: being_deleted.optional().nullable()
|
|
2330
|
+
});
|
|
2313
2331
|
var access_grant = zod.z.object({
|
|
2314
2332
|
workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the Access Grant."),
|
|
2315
2333
|
access_grant_id: zod.z.string().uuid().describe("ID of the Access Grant."),
|
|
@@ -2336,6 +2354,9 @@ var access_grant = zod.z.object({
|
|
|
2336
2354
|
created_at: zod.z.string().datetime().describe("Date and time at which the Access Grant was created."),
|
|
2337
2355
|
starts_at: zod.z.string().datetime().describe("Date and time at which the Access Grant starts."),
|
|
2338
2356
|
ends_at: zod.z.string().datetime().nullable().describe("Date and time at which the Access Grant ends."),
|
|
2357
|
+
warnings: zod.z.array(access_grant_warning).describe(
|
|
2358
|
+
"Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants)."
|
|
2359
|
+
),
|
|
2339
2360
|
customization_profile_id: zod.z.string().uuid().optional().describe(
|
|
2340
2361
|
"ID of the customization profile associated with the Access Grant."
|
|
2341
2362
|
)
|
|
@@ -2346,6 +2367,24 @@ var access_grant = zod.z.object({
|
|
|
2346
2367
|
---
|
|
2347
2368
|
Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant.
|
|
2348
2369
|
`);
|
|
2370
|
+
var common_access_method_warning = zod.z.object({
|
|
2371
|
+
created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
|
|
2372
|
+
message: zod.z.string().describe(
|
|
2373
|
+
"Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
|
|
2374
|
+
)
|
|
2375
|
+
});
|
|
2376
|
+
var warning_code_description5 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
|
|
2377
|
+
var being_deleted2 = common_access_method_warning.extend({
|
|
2378
|
+
warning_code: zod.z.literal("being_deleted").describe(warning_code_description5)
|
|
2379
|
+
}).describe(
|
|
2380
|
+
"Indicates that the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) is being deleted."
|
|
2381
|
+
);
|
|
2382
|
+
var access_method_warning = zod.z.discriminatedUnion("warning_code", [being_deleted2]).describe(
|
|
2383
|
+
"Warning associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods)."
|
|
2384
|
+
);
|
|
2385
|
+
zod.z.object({
|
|
2386
|
+
being_deleted: being_deleted2.optional().nullable()
|
|
2387
|
+
});
|
|
2349
2388
|
var access_method = zod.z.object({
|
|
2350
2389
|
workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
|
|
2351
2390
|
access_method_id: zod.z.string().uuid().describe("ID of the access method."),
|
|
@@ -2362,6 +2401,9 @@ var access_method = zod.z.object({
|
|
|
2362
2401
|
"Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method."
|
|
2363
2402
|
),
|
|
2364
2403
|
code: zod.z.string().nullable().optional().describe("The actual PIN code for code access methods."),
|
|
2404
|
+
warnings: zod.z.array(access_method_warning).describe(
|
|
2405
|
+
"Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods)."
|
|
2406
|
+
),
|
|
2365
2407
|
customization_profile_id: zod.z.string().uuid().optional().describe(
|
|
2366
2408
|
"ID of the customization profile associated with the access method."
|
|
2367
2409
|
)
|
|
@@ -2387,9 +2429,9 @@ var common_acs_access_group_warning = zod.z.object({
|
|
|
2387
2429
|
"Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
|
|
2388
2430
|
)
|
|
2389
2431
|
});
|
|
2390
|
-
var
|
|
2432
|
+
var warning_code_description6 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
|
|
2391
2433
|
var unknown_issue_with_acs_access_group = common_acs_access_group_warning.extend({
|
|
2392
|
-
warning_code: zod.z.literal("unknown_issue_with_acs_access_group").describe(
|
|
2434
|
+
warning_code: zod.z.literal("unknown_issue_with_acs_access_group").describe(warning_code_description6)
|
|
2393
2435
|
}).describe(
|
|
2394
2436
|
"An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group."
|
|
2395
2437
|
);
|
|
@@ -2562,34 +2604,34 @@ var common_acs_credential_warning = zod.z.object({
|
|
|
2562
2604
|
"Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
|
|
2563
2605
|
)
|
|
2564
2606
|
});
|
|
2565
|
-
var
|
|
2607
|
+
var warning_code_description7 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
|
|
2566
2608
|
var waiting_to_be_issued = common_acs_credential_warning.extend({
|
|
2567
|
-
warning_code: zod.z.literal("waiting_to_be_issued").describe(
|
|
2609
|
+
warning_code: zod.z.literal("waiting_to_be_issued").describe(warning_code_description7)
|
|
2568
2610
|
}).describe(
|
|
2569
2611
|
"Indicates that the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is waiting to be issued."
|
|
2570
2612
|
);
|
|
2571
2613
|
var schedule_externally_modified = common_acs_credential_warning.extend({
|
|
2572
|
-
warning_code: zod.z.literal("schedule_externally_modified").describe(
|
|
2614
|
+
warning_code: zod.z.literal("schedule_externally_modified").describe(warning_code_description7)
|
|
2573
2615
|
}).describe(
|
|
2574
2616
|
"Indicates that the schedule of one of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials)'s children was modified externally."
|
|
2575
2617
|
);
|
|
2576
2618
|
var schedule_modified = common_acs_credential_warning.extend({
|
|
2577
|
-
warning_code: zod.z.literal("schedule_modified").describe(
|
|
2619
|
+
warning_code: zod.z.literal("schedule_modified").describe(warning_code_description7)
|
|
2578
2620
|
}).describe(
|
|
2579
2621
|
"Indicates that the schedule of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past."
|
|
2580
2622
|
);
|
|
2581
|
-
var
|
|
2582
|
-
warning_code: zod.z.literal("being_deleted").describe(
|
|
2623
|
+
var being_deleted3 = common_acs_credential_warning.extend({
|
|
2624
|
+
warning_code: zod.z.literal("being_deleted").describe(warning_code_description7)
|
|
2583
2625
|
}).describe(
|
|
2584
2626
|
"Indicates that the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is being deleted."
|
|
2585
2627
|
);
|
|
2586
2628
|
var unknown_issue_with_acs_credential = common_acs_credential_warning.extend({
|
|
2587
|
-
warning_code: zod.z.literal("unknown_issue_with_acs_credential").describe(
|
|
2629
|
+
warning_code: zod.z.literal("unknown_issue_with_acs_credential").describe(warning_code_description7)
|
|
2588
2630
|
}).describe(
|
|
2589
2631
|
"An unknown issue occurred while syncing the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential."
|
|
2590
2632
|
);
|
|
2591
2633
|
var needs_to_be_reissued = common_acs_credential_warning.extend({
|
|
2592
|
-
warning_code: zod.z.literal("needs_to_be_reissued").describe(
|
|
2634
|
+
warning_code: zod.z.literal("needs_to_be_reissued").describe(warning_code_description7)
|
|
2593
2635
|
}).describe(
|
|
2594
2636
|
"Access permissions for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) have changed. [Reissue](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential."
|
|
2595
2637
|
);
|
|
@@ -2597,7 +2639,7 @@ var acs_credential_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
2597
2639
|
waiting_to_be_issued,
|
|
2598
2640
|
schedule_externally_modified,
|
|
2599
2641
|
schedule_modified,
|
|
2600
|
-
|
|
2642
|
+
being_deleted3,
|
|
2601
2643
|
unknown_issue_with_acs_credential,
|
|
2602
2644
|
needs_to_be_reissued
|
|
2603
2645
|
]).describe(
|
|
@@ -2607,7 +2649,7 @@ zod.z.object({
|
|
|
2607
2649
|
waiting_to_be_issued: waiting_to_be_issued.optional().nullable(),
|
|
2608
2650
|
schedule_externally_modified: schedule_externally_modified.optional().nullable(),
|
|
2609
2651
|
schedule_modified: schedule_modified.optional().nullable(),
|
|
2610
|
-
being_deleted:
|
|
2652
|
+
being_deleted: being_deleted3.optional().nullable(),
|
|
2611
2653
|
unknown_issue_with_acs_credential: unknown_issue_with_acs_credential.optional().nullable(),
|
|
2612
2654
|
needs_to_be_reissued: needs_to_be_reissued.optional().nullable()
|
|
2613
2655
|
});
|
|
@@ -2956,7 +2998,7 @@ var common_acs_system_error = zod.z.object({
|
|
|
2956
2998
|
)
|
|
2957
2999
|
});
|
|
2958
3000
|
var error_code_description5 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
|
|
2959
|
-
var
|
|
3001
|
+
var warning_code_description8 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
|
|
2960
3002
|
var seam_bridge_disconnected = common_acs_system_error.extend({
|
|
2961
3003
|
error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description5)
|
|
2962
3004
|
}).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
|
|
@@ -3019,12 +3061,12 @@ var common_acs_system_warning = zod.z.object({
|
|
|
3019
3061
|
)
|
|
3020
3062
|
});
|
|
3021
3063
|
var salto_ks_subscription_limit_almost_reached3 = common_acs_system_warning.extend({
|
|
3022
|
-
warning_code: zod.z.literal("salto_ks_subscription_limit_almost_reached").describe(
|
|
3064
|
+
warning_code: zod.z.literal("salto_ks_subscription_limit_almost_reached").describe(warning_code_description8)
|
|
3023
3065
|
}).describe(
|
|
3024
3066
|
"Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site to rectify the issue."
|
|
3025
3067
|
);
|
|
3026
3068
|
var time_zone_does_not_match_location = common_acs_system_warning.extend({
|
|
3027
|
-
warning_code: zod.z.literal("time_zone_does_not_match_location").describe(
|
|
3069
|
+
warning_code: zod.z.literal("time_zone_does_not_match_location").describe(warning_code_description8),
|
|
3028
3070
|
misconfigured_acs_entrance_ids: zod.z.array(zod.z.string().uuid()).optional().describe(
|
|
3029
3071
|
`
|
|
3030
3072
|
---
|
|
@@ -4315,12 +4357,24 @@ var access_grant_access_to_door_lost_event = access_grant_event.extend(
|
|
|
4315
4357
|
---
|
|
4316
4358
|
Access to a particular door that was requested as part of an Access Grant was lost.
|
|
4317
4359
|
`);
|
|
4360
|
+
var access_grant_access_times_changed_event = access_grant_event.extend({
|
|
4361
|
+
event_type: zod.z.literal("access_grant.access_times_changed"),
|
|
4362
|
+
access_grant_key: zod.z.string().optional().describe("Key of the affected Access Grant (if present)."),
|
|
4363
|
+
starts_at: zod.z.string().optional().describe("The new start time for the access grant."),
|
|
4364
|
+
ends_at: zod.z.string().optional().describe("The new end time for the access grant.")
|
|
4365
|
+
}).describe(`
|
|
4366
|
+
---
|
|
4367
|
+
route_path: /access_grants
|
|
4368
|
+
---
|
|
4369
|
+
An Access Grant's start or end time was changed.
|
|
4370
|
+
`);
|
|
4318
4371
|
var access_grant_events = [
|
|
4319
4372
|
access_grant_created_event,
|
|
4320
4373
|
access_grant_deleted_event,
|
|
4321
4374
|
access_grant_access_granted_to_all_doors_event,
|
|
4322
4375
|
access_grant_access_granted_to_door_event,
|
|
4323
|
-
access_grant_access_to_door_lost_event
|
|
4376
|
+
access_grant_access_to_door_lost_event,
|
|
4377
|
+
access_grant_access_times_changed_event
|
|
4324
4378
|
];
|
|
4325
4379
|
var access_method_event = common_event.extend({
|
|
4326
4380
|
access_method_id: zod.z.string().uuid().describe("ID of the affected access method."),
|
|
@@ -4381,12 +4435,24 @@ var access_method_reissued_event = access_method_event.extend({
|
|
|
4381
4435
|
---
|
|
4382
4436
|
An access method was reissued due to an Access Grant update.
|
|
4383
4437
|
`);
|
|
4438
|
+
var access_method_code_changed_event = access_method_event.extend({
|
|
4439
|
+
event_type: zod.z.literal("access_method.code_changed"),
|
|
4440
|
+
code: zod.z.string().describe(
|
|
4441
|
+
"The new PIN code for code access methods (only present when mode is 'code')."
|
|
4442
|
+
)
|
|
4443
|
+
}).describe(`
|
|
4444
|
+
---
|
|
4445
|
+
route_path: /access_methods
|
|
4446
|
+
---
|
|
4447
|
+
An access method's PIN code was changed.
|
|
4448
|
+
`);
|
|
4384
4449
|
var access_method_events = [
|
|
4385
4450
|
access_method_issued_event,
|
|
4386
4451
|
access_method_revoked_event,
|
|
4387
4452
|
access_method_card_encoding_required_event,
|
|
4388
4453
|
access_method_deleted_event,
|
|
4389
|
-
access_method_reissued_event
|
|
4454
|
+
access_method_reissued_event,
|
|
4455
|
+
access_method_code_changed_event
|
|
4390
4456
|
];
|
|
4391
4457
|
var common_acs_event = common_event.extend({
|
|
4392
4458
|
connected_account_id: zod.z.string().uuid().optional().describe("ID of the connected account."),
|
|
@@ -7303,6 +7369,37 @@ var openapi_default = {
|
|
|
7303
7369
|
format: "uuid",
|
|
7304
7370
|
type: "string"
|
|
7305
7371
|
},
|
|
7372
|
+
warnings: {
|
|
7373
|
+
description: "Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).",
|
|
7374
|
+
items: {
|
|
7375
|
+
description: "Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).",
|
|
7376
|
+
discriminator: { propertyName: "warning_code" },
|
|
7377
|
+
oneOf: [
|
|
7378
|
+
{
|
|
7379
|
+
description: "Indicates that the [access grant](https://docs.seam.co/latest/capability-guides/access-grants) is being deleted.",
|
|
7380
|
+
properties: {
|
|
7381
|
+
created_at: {
|
|
7382
|
+
description: "Date and time at which Seam created the warning.",
|
|
7383
|
+
format: "date-time",
|
|
7384
|
+
type: "string"
|
|
7385
|
+
},
|
|
7386
|
+
message: {
|
|
7387
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
7388
|
+
type: "string"
|
|
7389
|
+
},
|
|
7390
|
+
warning_code: {
|
|
7391
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
7392
|
+
enum: ["being_deleted"],
|
|
7393
|
+
type: "string"
|
|
7394
|
+
}
|
|
7395
|
+
},
|
|
7396
|
+
required: ["created_at", "message", "warning_code"],
|
|
7397
|
+
type: "object"
|
|
7398
|
+
}
|
|
7399
|
+
]
|
|
7400
|
+
},
|
|
7401
|
+
type: "array"
|
|
7402
|
+
},
|
|
7306
7403
|
workspace_id: {
|
|
7307
7404
|
description: "ID of the Seam workspace associated with the Access Grant.",
|
|
7308
7405
|
format: "uuid",
|
|
@@ -7321,7 +7418,8 @@ var openapi_default = {
|
|
|
7321
7418
|
"display_name",
|
|
7322
7419
|
"created_at",
|
|
7323
7420
|
"starts_at",
|
|
7324
|
-
"ends_at"
|
|
7421
|
+
"ends_at",
|
|
7422
|
+
"warnings"
|
|
7325
7423
|
],
|
|
7326
7424
|
type: "object",
|
|
7327
7425
|
"x-draft": "Early access.",
|
|
@@ -7382,6 +7480,37 @@ var openapi_default = {
|
|
|
7382
7480
|
enum: ["code", "card", "mobile_key"],
|
|
7383
7481
|
type: "string"
|
|
7384
7482
|
},
|
|
7483
|
+
warnings: {
|
|
7484
|
+
description: "Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).",
|
|
7485
|
+
items: {
|
|
7486
|
+
description: "Warning associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).",
|
|
7487
|
+
discriminator: { propertyName: "warning_code" },
|
|
7488
|
+
oneOf: [
|
|
7489
|
+
{
|
|
7490
|
+
description: "Indicates that the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) is being deleted.",
|
|
7491
|
+
properties: {
|
|
7492
|
+
created_at: {
|
|
7493
|
+
description: "Date and time at which Seam created the warning.",
|
|
7494
|
+
format: "date-time",
|
|
7495
|
+
type: "string"
|
|
7496
|
+
},
|
|
7497
|
+
message: {
|
|
7498
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
7499
|
+
type: "string"
|
|
7500
|
+
},
|
|
7501
|
+
warning_code: {
|
|
7502
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
7503
|
+
enum: ["being_deleted"],
|
|
7504
|
+
type: "string"
|
|
7505
|
+
}
|
|
7506
|
+
},
|
|
7507
|
+
required: ["created_at", "message", "warning_code"],
|
|
7508
|
+
type: "object"
|
|
7509
|
+
}
|
|
7510
|
+
]
|
|
7511
|
+
},
|
|
7512
|
+
type: "array"
|
|
7513
|
+
},
|
|
7385
7514
|
workspace_id: {
|
|
7386
7515
|
description: "ID of the Seam workspace associated with the access method.",
|
|
7387
7516
|
format: "uuid",
|
|
@@ -7395,7 +7524,8 @@ var openapi_default = {
|
|
|
7395
7524
|
"mode",
|
|
7396
7525
|
"created_at",
|
|
7397
7526
|
"issued_at",
|
|
7398
|
-
"is_issued"
|
|
7527
|
+
"is_issued",
|
|
7528
|
+
"warnings"
|
|
7399
7529
|
],
|
|
7400
7530
|
type: "object",
|
|
7401
7531
|
"x-draft": "Early access.",
|
|
@@ -18738,6 +18868,62 @@ var openapi_default = {
|
|
|
18738
18868
|
type: "object",
|
|
18739
18869
|
"x-route-path": "/access_grants"
|
|
18740
18870
|
},
|
|
18871
|
+
{
|
|
18872
|
+
description: "An Access Grant's start or end time was changed.",
|
|
18873
|
+
properties: {
|
|
18874
|
+
access_grant_id: {
|
|
18875
|
+
description: "ID of the affected Access Grant.",
|
|
18876
|
+
format: "uuid",
|
|
18877
|
+
type: "string"
|
|
18878
|
+
},
|
|
18879
|
+
access_grant_key: {
|
|
18880
|
+
description: "Key of the affected Access Grant (if present).",
|
|
18881
|
+
type: "string"
|
|
18882
|
+
},
|
|
18883
|
+
created_at: {
|
|
18884
|
+
description: "Date and time at which the event was created.",
|
|
18885
|
+
format: "date-time",
|
|
18886
|
+
type: "string"
|
|
18887
|
+
},
|
|
18888
|
+
ends_at: {
|
|
18889
|
+
description: "The new end time for the access grant.",
|
|
18890
|
+
type: "string"
|
|
18891
|
+
},
|
|
18892
|
+
event_id: {
|
|
18893
|
+
description: "ID of the event.",
|
|
18894
|
+
format: "uuid",
|
|
18895
|
+
type: "string"
|
|
18896
|
+
},
|
|
18897
|
+
event_type: {
|
|
18898
|
+
enum: ["access_grant.access_times_changed"],
|
|
18899
|
+
type: "string"
|
|
18900
|
+
},
|
|
18901
|
+
occurred_at: {
|
|
18902
|
+
description: "Date and time at which the event occurred.",
|
|
18903
|
+
format: "date-time",
|
|
18904
|
+
type: "string"
|
|
18905
|
+
},
|
|
18906
|
+
starts_at: {
|
|
18907
|
+
description: "The new start time for the access grant.",
|
|
18908
|
+
type: "string"
|
|
18909
|
+
},
|
|
18910
|
+
workspace_id: {
|
|
18911
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
|
|
18912
|
+
format: "uuid",
|
|
18913
|
+
type: "string"
|
|
18914
|
+
}
|
|
18915
|
+
},
|
|
18916
|
+
required: [
|
|
18917
|
+
"event_id",
|
|
18918
|
+
"workspace_id",
|
|
18919
|
+
"created_at",
|
|
18920
|
+
"occurred_at",
|
|
18921
|
+
"access_grant_id",
|
|
18922
|
+
"event_type"
|
|
18923
|
+
],
|
|
18924
|
+
type: "object",
|
|
18925
|
+
"x-route-path": "/access_grants"
|
|
18926
|
+
},
|
|
18741
18927
|
{
|
|
18742
18928
|
description: "An access method was issued.",
|
|
18743
18929
|
properties: {
|
|
@@ -19017,6 +19203,66 @@ var openapi_default = {
|
|
|
19017
19203
|
type: "object",
|
|
19018
19204
|
"x-route-path": "/access_methods"
|
|
19019
19205
|
},
|
|
19206
|
+
{
|
|
19207
|
+
description: "An access method's PIN code was changed.",
|
|
19208
|
+
properties: {
|
|
19209
|
+
access_grant_ids: {
|
|
19210
|
+
description: "IDs of the access grants associated with this access method.",
|
|
19211
|
+
items: { format: "uuid", type: "string" },
|
|
19212
|
+
type: "array"
|
|
19213
|
+
},
|
|
19214
|
+
access_grant_keys: {
|
|
19215
|
+
description: "Keys of the access grants associated with this access method (if present).",
|
|
19216
|
+
items: { type: "string" },
|
|
19217
|
+
type: "array"
|
|
19218
|
+
},
|
|
19219
|
+
access_method_id: {
|
|
19220
|
+
description: "ID of the affected access method.",
|
|
19221
|
+
format: "uuid",
|
|
19222
|
+
type: "string"
|
|
19223
|
+
},
|
|
19224
|
+
code: {
|
|
19225
|
+
description: "The new PIN code for code access methods (only present when mode is 'code').",
|
|
19226
|
+
type: "string"
|
|
19227
|
+
},
|
|
19228
|
+
created_at: {
|
|
19229
|
+
description: "Date and time at which the event was created.",
|
|
19230
|
+
format: "date-time",
|
|
19231
|
+
type: "string"
|
|
19232
|
+
},
|
|
19233
|
+
event_id: {
|
|
19234
|
+
description: "ID of the event.",
|
|
19235
|
+
format: "uuid",
|
|
19236
|
+
type: "string"
|
|
19237
|
+
},
|
|
19238
|
+
event_type: {
|
|
19239
|
+
enum: ["access_method.code_changed"],
|
|
19240
|
+
type: "string"
|
|
19241
|
+
},
|
|
19242
|
+
occurred_at: {
|
|
19243
|
+
description: "Date and time at which the event occurred.",
|
|
19244
|
+
format: "date-time",
|
|
19245
|
+
type: "string"
|
|
19246
|
+
},
|
|
19247
|
+
workspace_id: {
|
|
19248
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
|
|
19249
|
+
format: "uuid",
|
|
19250
|
+
type: "string"
|
|
19251
|
+
}
|
|
19252
|
+
},
|
|
19253
|
+
required: [
|
|
19254
|
+
"event_id",
|
|
19255
|
+
"workspace_id",
|
|
19256
|
+
"created_at",
|
|
19257
|
+
"occurred_at",
|
|
19258
|
+
"access_method_id",
|
|
19259
|
+
"access_grant_ids",
|
|
19260
|
+
"event_type",
|
|
19261
|
+
"code"
|
|
19262
|
+
],
|
|
19263
|
+
type: "object",
|
|
19264
|
+
"x-route-path": "/access_methods"
|
|
19265
|
+
},
|
|
19020
19266
|
{
|
|
19021
19267
|
description: "An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.",
|
|
19022
19268
|
properties: {
|
|
@@ -45318,11 +45564,13 @@ var openapi_default = {
|
|
|
45318
45564
|
"access_grant.access_granted_to_all_doors",
|
|
45319
45565
|
"access_grant.access_granted_to_door",
|
|
45320
45566
|
"access_grant.access_to_door_lost",
|
|
45567
|
+
"access_grant.access_times_changed",
|
|
45321
45568
|
"access_method.issued",
|
|
45322
45569
|
"access_method.revoked",
|
|
45323
45570
|
"access_method.card_encoding_required",
|
|
45324
45571
|
"access_method.deleted",
|
|
45325
45572
|
"access_method.reissued",
|
|
45573
|
+
"access_method.code_changed",
|
|
45326
45574
|
"acs_system.connected",
|
|
45327
45575
|
"acs_system.added",
|
|
45328
45576
|
"acs_system.disconnected",
|
|
@@ -45419,11 +45667,13 @@ var openapi_default = {
|
|
|
45419
45667
|
"access_grant.access_granted_to_all_doors",
|
|
45420
45668
|
"access_grant.access_granted_to_door",
|
|
45421
45669
|
"access_grant.access_to_door_lost",
|
|
45670
|
+
"access_grant.access_times_changed",
|
|
45422
45671
|
"access_method.issued",
|
|
45423
45672
|
"access_method.revoked",
|
|
45424
45673
|
"access_method.card_encoding_required",
|
|
45425
45674
|
"access_method.deleted",
|
|
45426
45675
|
"access_method.reissued",
|
|
45676
|
+
"access_method.code_changed",
|
|
45427
45677
|
"acs_system.connected",
|
|
45428
45678
|
"acs_system.added",
|
|
45429
45679
|
"acs_system.disconnected",
|
|
@@ -45662,11 +45912,13 @@ var openapi_default = {
|
|
|
45662
45912
|
"access_grant.access_granted_to_all_doors",
|
|
45663
45913
|
"access_grant.access_granted_to_door",
|
|
45664
45914
|
"access_grant.access_to_door_lost",
|
|
45915
|
+
"access_grant.access_times_changed",
|
|
45665
45916
|
"access_method.issued",
|
|
45666
45917
|
"access_method.revoked",
|
|
45667
45918
|
"access_method.card_encoding_required",
|
|
45668
45919
|
"access_method.deleted",
|
|
45669
45920
|
"access_method.reissued",
|
|
45921
|
+
"access_method.code_changed",
|
|
45670
45922
|
"acs_system.connected",
|
|
45671
45923
|
"acs_system.added",
|
|
45672
45924
|
"acs_system.disconnected",
|
|
@@ -45759,11 +46011,13 @@ var openapi_default = {
|
|
|
45759
46011
|
"access_grant.access_granted_to_all_doors",
|
|
45760
46012
|
"access_grant.access_granted_to_door",
|
|
45761
46013
|
"access_grant.access_to_door_lost",
|
|
46014
|
+
"access_grant.access_times_changed",
|
|
45762
46015
|
"access_method.issued",
|
|
45763
46016
|
"access_method.revoked",
|
|
45764
46017
|
"access_method.card_encoding_required",
|
|
45765
46018
|
"access_method.deleted",
|
|
45766
46019
|
"access_method.reissued",
|
|
46020
|
+
"access_method.code_changed",
|
|
45767
46021
|
"acs_system.connected",
|
|
45768
46022
|
"acs_system.added",
|
|
45769
46023
|
"acs_system.disconnected",
|
|
@@ -50730,11 +50984,13 @@ var openapi_default = {
|
|
|
50730
50984
|
"access_grant.access_granted_to_all_doors",
|
|
50731
50985
|
"access_grant.access_granted_to_door",
|
|
50732
50986
|
"access_grant.access_to_door_lost",
|
|
50987
|
+
"access_grant.access_times_changed",
|
|
50733
50988
|
"access_method.issued",
|
|
50734
50989
|
"access_method.revoked",
|
|
50735
50990
|
"access_method.card_encoding_required",
|
|
50736
50991
|
"access_method.deleted",
|
|
50737
50992
|
"access_method.reissued",
|
|
50993
|
+
"access_method.code_changed",
|
|
50738
50994
|
"acs_system.connected",
|
|
50739
50995
|
"acs_system.added",
|
|
50740
50996
|
"acs_system.disconnected",
|
|
@@ -50832,11 +51088,13 @@ var openapi_default = {
|
|
|
50832
51088
|
"access_grant.access_granted_to_all_doors",
|
|
50833
51089
|
"access_grant.access_granted_to_door",
|
|
50834
51090
|
"access_grant.access_to_door_lost",
|
|
51091
|
+
"access_grant.access_times_changed",
|
|
50835
51092
|
"access_method.issued",
|
|
50836
51093
|
"access_method.revoked",
|
|
50837
51094
|
"access_method.card_encoding_required",
|
|
50838
51095
|
"access_method.deleted",
|
|
50839
51096
|
"access_method.reissued",
|
|
51097
|
+
"access_method.code_changed",
|
|
50840
51098
|
"acs_system.connected",
|
|
50841
51099
|
"acs_system.added",
|
|
50842
51100
|
"acs_system.disconnected",
|
|
@@ -50995,11 +51253,13 @@ var openapi_default = {
|
|
|
50995
51253
|
"access_grant.access_granted_to_all_doors",
|
|
50996
51254
|
"access_grant.access_granted_to_door",
|
|
50997
51255
|
"access_grant.access_to_door_lost",
|
|
51256
|
+
"access_grant.access_times_changed",
|
|
50998
51257
|
"access_method.issued",
|
|
50999
51258
|
"access_method.revoked",
|
|
51000
51259
|
"access_method.card_encoding_required",
|
|
51001
51260
|
"access_method.deleted",
|
|
51002
51261
|
"access_method.reissued",
|
|
51262
|
+
"access_method.code_changed",
|
|
51003
51263
|
"acs_system.connected",
|
|
51004
51264
|
"acs_system.added",
|
|
51005
51265
|
"acs_system.disconnected",
|
|
@@ -51092,11 +51352,13 @@ var openapi_default = {
|
|
|
51092
51352
|
"access_grant.access_granted_to_all_doors",
|
|
51093
51353
|
"access_grant.access_granted_to_door",
|
|
51094
51354
|
"access_grant.access_to_door_lost",
|
|
51355
|
+
"access_grant.access_times_changed",
|
|
51095
51356
|
"access_method.issued",
|
|
51096
51357
|
"access_method.revoked",
|
|
51097
51358
|
"access_method.card_encoding_required",
|
|
51098
51359
|
"access_method.deleted",
|
|
51099
51360
|
"access_method.reissued",
|
|
51361
|
+
"access_method.code_changed",
|
|
51100
51362
|
"acs_system.connected",
|
|
51101
51363
|
"acs_system.added",
|
|
51102
51364
|
"acs_system.disconnected",
|