@seamapi/types 1.287.3 → 1.288.1
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 +56 -60
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +206 -189
- package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-system.js +1 -1
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
- package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/{encode-credential.d.ts → encode-card.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{encode-credential.js → encode-card.js} +6 -6
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/{scan-credential.d.ts → scan-card.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{scan-credential.js → scan-card.js} +7 -7
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
- package/lib/seam/connect/models/devices/device-provider.d.ts +1 -1
- package/lib/seam/connect/models/devices/device-provider.js +1 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +21 -6
- package/lib/seam/connect/openapi.js +41 -45
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +160 -158
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
- package/src/lib/seam/connect/models/action-attempts/{encode-credential.ts → encode-card.ts} +6 -8
- package/src/lib/seam/connect/models/action-attempts/{scan-credential.ts → scan-card.ts} +7 -9
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +42 -50
- package/src/lib/seam/connect/route-types.ts +162 -158
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +0 -1
package/dist/connect.cjs
CHANGED
|
@@ -937,7 +937,7 @@ var DEVICE_PROVIDERS = {
|
|
|
937
937
|
LATCH: "latch",
|
|
938
938
|
AKILES: "akiles",
|
|
939
939
|
VOSTIO: "assa_abloy_vostio",
|
|
940
|
-
|
|
940
|
+
ASSA_ABLOY_VOSTIO_CREDENTIAL_SERVICE: "assa_abloy_vostio_credential_service"
|
|
941
941
|
};
|
|
942
942
|
var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
|
|
943
943
|
var PROVIDER_CATEGORY_MAP = {
|
|
@@ -1358,7 +1358,7 @@ var acs_system_external_type = zod.z.enum([
|
|
|
1358
1358
|
"dormakaba_community",
|
|
1359
1359
|
"legic_connect",
|
|
1360
1360
|
"assa_abloy_vostio",
|
|
1361
|
-
"
|
|
1361
|
+
"assa_abloy_vostio_credential_service"
|
|
1362
1362
|
]);
|
|
1363
1363
|
var common_acs_system_error = zod.z.object({
|
|
1364
1364
|
created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
|
|
@@ -1804,7 +1804,7 @@ var deprecated_action_attempts = [
|
|
|
1804
1804
|
...delete_noise_threshold_action_attempt.options,
|
|
1805
1805
|
...update_noise_threshold_action_attempt.options
|
|
1806
1806
|
];
|
|
1807
|
-
var action_type2 = zod.z.literal("
|
|
1807
|
+
var action_type2 = zod.z.literal("ENCODE_CARD");
|
|
1808
1808
|
var no_card_on_encoder_error = zod.z.object({
|
|
1809
1809
|
type: zod.z.literal("no_card_on_encoder"),
|
|
1810
1810
|
message: zod.z.string()
|
|
@@ -1819,15 +1819,15 @@ var error3 = zod.z.union([
|
|
|
1819
1819
|
incompatible_card_format_error
|
|
1820
1820
|
]);
|
|
1821
1821
|
var result3 = acs_credential.or(unmanaged_acs_credential);
|
|
1822
|
-
var
|
|
1822
|
+
var encode_card_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1823
1823
|
common_pending_action_attempt.extend({
|
|
1824
1824
|
action_type: action_type2
|
|
1825
|
-
}).describe("Encoding
|
|
1825
|
+
}).describe("Encoding card data from physical encoder."),
|
|
1826
1826
|
common_succeeded_action_attempt.extend({
|
|
1827
1827
|
action_type: action_type2,
|
|
1828
1828
|
result: result3
|
|
1829
|
-
}).describe("Encoding
|
|
1830
|
-
common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe("Encoding
|
|
1829
|
+
}).describe("Encoding card data from physical encoder succeeded."),
|
|
1830
|
+
common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe("Encoding card data from physical encoder failed.")
|
|
1831
1831
|
]);
|
|
1832
1832
|
var action_type3 = zod.z.literal("LOCK_DOOR");
|
|
1833
1833
|
var error4 = zod.z.object({
|
|
@@ -1867,7 +1867,7 @@ var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
|
|
|
1867
1867
|
}).describe("Resetting sandbox workspace failed.")
|
|
1868
1868
|
]
|
|
1869
1869
|
);
|
|
1870
|
-
var action_type5 = zod.z.literal("
|
|
1870
|
+
var action_type5 = zod.z.literal("SCAN_CARD");
|
|
1871
1871
|
var no_card_on_encoder_error2 = zod.z.object({
|
|
1872
1872
|
type: zod.z.literal("no_card_on_encoder"),
|
|
1873
1873
|
message: zod.z.string()
|
|
@@ -1883,20 +1883,20 @@ var warning = zod.z.object({
|
|
|
1883
1883
|
var acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
|
|
1884
1884
|
var result6 = zod.z.object({
|
|
1885
1885
|
acs_credential_on_encoder: acs_credential_on_encoder.describe(
|
|
1886
|
-
"Snapshot of
|
|
1886
|
+
"Snapshot of the card data read from the physical encoder."
|
|
1887
1887
|
),
|
|
1888
1888
|
acs_credential_on_seam: acs_credential_on_seam.nullable().describe("Matching acs_credential currently encoded on this card."),
|
|
1889
1889
|
warnings: zod.z.array(warning)
|
|
1890
1890
|
});
|
|
1891
|
-
var
|
|
1891
|
+
var scan_card_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1892
1892
|
common_pending_action_attempt.extend({
|
|
1893
1893
|
action_type: action_type5
|
|
1894
|
-
}).describe("Reading
|
|
1894
|
+
}).describe("Reading card data from physical encoder."),
|
|
1895
1895
|
common_succeeded_action_attempt.extend({
|
|
1896
1896
|
action_type: action_type5,
|
|
1897
1897
|
result: result6
|
|
1898
|
-
}).describe("Reading
|
|
1899
|
-
common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Reading
|
|
1898
|
+
}).describe("Reading card data from physical encoder succeeded."),
|
|
1899
|
+
common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Reading card data from physical encoder failed.")
|
|
1900
1900
|
]);
|
|
1901
1901
|
var action_type6 = zod.z.literal("SET_COOL");
|
|
1902
1902
|
var error7 = zod.z.object({
|
|
@@ -2002,8 +2002,8 @@ var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
|
2002
2002
|
var action_attempt = zod.z.union([
|
|
2003
2003
|
...lock_door_action_attempt.options,
|
|
2004
2004
|
...unlock_door_action_attempt.options,
|
|
2005
|
-
...
|
|
2006
|
-
...
|
|
2005
|
+
...scan_card_action_attempt.options,
|
|
2006
|
+
...encode_card_action_attempt.options,
|
|
2007
2007
|
...reset_sandbox_workspace_action_attempt.options,
|
|
2008
2008
|
...set_cool_action_attempt.options,
|
|
2009
2009
|
...set_heat_action_attempt.options,
|
|
@@ -3456,7 +3456,7 @@ var openapi_default = {
|
|
|
3456
3456
|
"dormakaba_community",
|
|
3457
3457
|
"legic_connect",
|
|
3458
3458
|
"assa_abloy_vostio",
|
|
3459
|
-
"
|
|
3459
|
+
"assa_abloy_vostio_credential_service"
|
|
3460
3460
|
],
|
|
3461
3461
|
type: "string"
|
|
3462
3462
|
},
|
|
@@ -3491,7 +3491,7 @@ var openapi_default = {
|
|
|
3491
3491
|
"dormakaba_community",
|
|
3492
3492
|
"legic_connect",
|
|
3493
3493
|
"assa_abloy_vostio",
|
|
3494
|
-
"
|
|
3494
|
+
"assa_abloy_vostio_credential_service"
|
|
3495
3495
|
],
|
|
3496
3496
|
type: "string",
|
|
3497
3497
|
"x-deprecated": "Use `external_type`."
|
|
@@ -3986,7 +3986,7 @@ var openapi_default = {
|
|
|
3986
3986
|
type: "object"
|
|
3987
3987
|
},
|
|
3988
3988
|
{
|
|
3989
|
-
description: "Reading
|
|
3989
|
+
description: "Reading card data from physical encoder.",
|
|
3990
3990
|
properties: {
|
|
3991
3991
|
action_attempt_id: {
|
|
3992
3992
|
description: "The ID of the action attempt.",
|
|
@@ -3994,7 +3994,7 @@ var openapi_default = {
|
|
|
3994
3994
|
type: "string",
|
|
3995
3995
|
"x-title": "Action Attempt ID"
|
|
3996
3996
|
},
|
|
3997
|
-
action_type: { enum: ["
|
|
3997
|
+
action_type: { enum: ["SCAN_CARD"], type: "string" },
|
|
3998
3998
|
error: { nullable: true },
|
|
3999
3999
|
result: { nullable: true },
|
|
4000
4000
|
status: { enum: ["pending"], type: "string" }
|
|
@@ -4009,7 +4009,7 @@ var openapi_default = {
|
|
|
4009
4009
|
type: "object"
|
|
4010
4010
|
},
|
|
4011
4011
|
{
|
|
4012
|
-
description: "Reading
|
|
4012
|
+
description: "Reading card data from physical encoder succeeded.",
|
|
4013
4013
|
properties: {
|
|
4014
4014
|
action_attempt_id: {
|
|
4015
4015
|
description: "The ID of the action attempt.",
|
|
@@ -4017,12 +4017,12 @@ var openapi_default = {
|
|
|
4017
4017
|
type: "string",
|
|
4018
4018
|
"x-title": "Action Attempt ID"
|
|
4019
4019
|
},
|
|
4020
|
-
action_type: { enum: ["
|
|
4020
|
+
action_type: { enum: ["SCAN_CARD"], type: "string" },
|
|
4021
4021
|
error: { nullable: true },
|
|
4022
4022
|
result: {
|
|
4023
4023
|
properties: {
|
|
4024
4024
|
acs_credential_on_encoder: {
|
|
4025
|
-
description: "Snapshot of
|
|
4025
|
+
description: "Snapshot of the card data read from the physical encoder.",
|
|
4026
4026
|
properties: {
|
|
4027
4027
|
card_number: {
|
|
4028
4028
|
description: "A number or string that physically identifies this card.",
|
|
@@ -4456,7 +4456,7 @@ var openapi_default = {
|
|
|
4456
4456
|
type: "object"
|
|
4457
4457
|
},
|
|
4458
4458
|
{
|
|
4459
|
-
description: "Reading
|
|
4459
|
+
description: "Reading card data from physical encoder failed.",
|
|
4460
4460
|
properties: {
|
|
4461
4461
|
action_attempt_id: {
|
|
4462
4462
|
description: "The ID of the action attempt.",
|
|
@@ -4464,7 +4464,7 @@ var openapi_default = {
|
|
|
4464
4464
|
type: "string",
|
|
4465
4465
|
"x-title": "Action Attempt ID"
|
|
4466
4466
|
},
|
|
4467
|
-
action_type: { enum: ["
|
|
4467
|
+
action_type: { enum: ["SCAN_CARD"], type: "string" },
|
|
4468
4468
|
error: {
|
|
4469
4469
|
oneOf: [
|
|
4470
4470
|
{
|
|
@@ -4509,7 +4509,7 @@ var openapi_default = {
|
|
|
4509
4509
|
type: "object"
|
|
4510
4510
|
},
|
|
4511
4511
|
{
|
|
4512
|
-
description: "Encoding
|
|
4512
|
+
description: "Encoding card data from physical encoder.",
|
|
4513
4513
|
properties: {
|
|
4514
4514
|
action_attempt_id: {
|
|
4515
4515
|
description: "The ID of the action attempt.",
|
|
@@ -4517,7 +4517,7 @@ var openapi_default = {
|
|
|
4517
4517
|
type: "string",
|
|
4518
4518
|
"x-title": "Action Attempt ID"
|
|
4519
4519
|
},
|
|
4520
|
-
action_type: { enum: ["
|
|
4520
|
+
action_type: { enum: ["ENCODE_CARD"], type: "string" },
|
|
4521
4521
|
error: { nullable: true },
|
|
4522
4522
|
result: { nullable: true },
|
|
4523
4523
|
status: { enum: ["pending"], type: "string" }
|
|
@@ -4532,7 +4532,7 @@ var openapi_default = {
|
|
|
4532
4532
|
type: "object"
|
|
4533
4533
|
},
|
|
4534
4534
|
{
|
|
4535
|
-
description: "Encoding
|
|
4535
|
+
description: "Encoding card data from physical encoder succeeded.",
|
|
4536
4536
|
properties: {
|
|
4537
4537
|
action_attempt_id: {
|
|
4538
4538
|
description: "The ID of the action attempt.",
|
|
@@ -4540,7 +4540,7 @@ var openapi_default = {
|
|
|
4540
4540
|
type: "string",
|
|
4541
4541
|
"x-title": "Action Attempt ID"
|
|
4542
4542
|
},
|
|
4543
|
-
action_type: { enum: ["
|
|
4543
|
+
action_type: { enum: ["ENCODE_CARD"], type: "string" },
|
|
4544
4544
|
error: { nullable: true },
|
|
4545
4545
|
result: {
|
|
4546
4546
|
description: "Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
@@ -4877,7 +4877,7 @@ var openapi_default = {
|
|
|
4877
4877
|
type: "object"
|
|
4878
4878
|
},
|
|
4879
4879
|
{
|
|
4880
|
-
description: "Encoding
|
|
4880
|
+
description: "Encoding card data from physical encoder failed.",
|
|
4881
4881
|
properties: {
|
|
4882
4882
|
action_attempt_id: {
|
|
4883
4883
|
description: "The ID of the action attempt.",
|
|
@@ -4885,7 +4885,7 @@ var openapi_default = {
|
|
|
4885
4885
|
type: "string",
|
|
4886
4886
|
"x-title": "Action Attempt ID"
|
|
4887
4887
|
},
|
|
4888
|
-
action_type: { enum: ["
|
|
4888
|
+
action_type: { enum: ["ENCODE_CARD"], type: "string" },
|
|
4889
4889
|
error: {
|
|
4890
4890
|
oneOf: [
|
|
4891
4891
|
{
|
|
@@ -7499,7 +7499,7 @@ var openapi_default = {
|
|
|
7499
7499
|
"latch",
|
|
7500
7500
|
"akiles",
|
|
7501
7501
|
"assa_abloy_vostio",
|
|
7502
|
-
"
|
|
7502
|
+
"assa_abloy_vostio_credential_service"
|
|
7503
7503
|
],
|
|
7504
7504
|
type: "string"
|
|
7505
7505
|
},
|
|
@@ -10487,6 +10487,18 @@ var openapi_default = {
|
|
|
10487
10487
|
items: { format: "uuid", type: "string" },
|
|
10488
10488
|
type: "array"
|
|
10489
10489
|
},
|
|
10490
|
+
assa_abloy_vostio_metadata: {
|
|
10491
|
+
description: "Vostio-specific metadata for the new credential.",
|
|
10492
|
+
properties: {
|
|
10493
|
+
join_all_guest_acs_entrances: { type: "boolean" },
|
|
10494
|
+
override_all_guest_acs_entrances: { type: "boolean" },
|
|
10495
|
+
override_guest_acs_entrance_ids: {
|
|
10496
|
+
items: { format: "uuid", type: "string" },
|
|
10497
|
+
type: "array"
|
|
10498
|
+
}
|
|
10499
|
+
},
|
|
10500
|
+
type: "object"
|
|
10501
|
+
},
|
|
10490
10502
|
code: {
|
|
10491
10503
|
description: "Access (PIN) code for the new credential. There may be manufacturer-specific code restrictions. For details, see the applicable [device or system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview).",
|
|
10492
10504
|
pattern: "^\\d+$",
|
|
@@ -11585,24 +11597,16 @@ var openapi_default = {
|
|
|
11585
11597
|
"x-title": "Update a Credential"
|
|
11586
11598
|
}
|
|
11587
11599
|
},
|
|
11588
|
-
"/acs/encoders/
|
|
11600
|
+
"/acs/encoders/encode_card": {
|
|
11589
11601
|
post: {
|
|
11590
|
-
operationId: "
|
|
11602
|
+
operationId: "acsEncodersEncodeCardPost",
|
|
11591
11603
|
requestBody: {
|
|
11592
11604
|
content: {
|
|
11593
11605
|
"application/json": {
|
|
11594
11606
|
schema: {
|
|
11595
11607
|
properties: {
|
|
11596
|
-
acs_credential_id: {
|
|
11597
|
-
|
|
11598
|
-
format: "uuid",
|
|
11599
|
-
type: "string"
|
|
11600
|
-
},
|
|
11601
|
-
device_id: {
|
|
11602
|
-
description: "ID of the encoder to use for the encoding.",
|
|
11603
|
-
format: "uuid",
|
|
11604
|
-
type: "string"
|
|
11605
|
-
}
|
|
11608
|
+
acs_credential_id: { format: "uuid", type: "string" },
|
|
11609
|
+
device_id: { format: "uuid", type: "string" }
|
|
11606
11610
|
},
|
|
11607
11611
|
required: ["device_id", "acs_credential_id"],
|
|
11608
11612
|
type: "object"
|
|
@@ -11636,10 +11640,10 @@ var openapi_default = {
|
|
|
11636
11640
|
{ console_session: [] },
|
|
11637
11641
|
{ api_key: [] }
|
|
11638
11642
|
],
|
|
11639
|
-
summary: "/acs/encoders/
|
|
11643
|
+
summary: "/acs/encoders/encode_card",
|
|
11640
11644
|
tags: ["/acs"],
|
|
11641
11645
|
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
11642
|
-
"x-fern-sdk-method-name": "
|
|
11646
|
+
"x-fern-sdk-method-name": "encode_card",
|
|
11643
11647
|
"x-fern-sdk-return-value": "action_attempt",
|
|
11644
11648
|
"x-response-key": "action_attempt",
|
|
11645
11649
|
"x-undocumented": "Encoding a card is currently unimplemented."
|
|
@@ -11731,24 +11735,16 @@ var openapi_default = {
|
|
|
11731
11735
|
"x-undocumented": "Encoders are in alpha."
|
|
11732
11736
|
}
|
|
11733
11737
|
},
|
|
11734
|
-
"/acs/encoders/
|
|
11738
|
+
"/acs/encoders/scan_card": {
|
|
11735
11739
|
post: {
|
|
11736
|
-
operationId: "
|
|
11740
|
+
operationId: "acsEncodersScanCardPost",
|
|
11737
11741
|
requestBody: {
|
|
11738
11742
|
content: {
|
|
11739
11743
|
"application/json": {
|
|
11740
11744
|
schema: {
|
|
11741
11745
|
properties: {
|
|
11742
|
-
acs_system_id: {
|
|
11743
|
-
|
|
11744
|
-
format: "uuid",
|
|
11745
|
-
type: "string"
|
|
11746
|
-
},
|
|
11747
|
-
device_id: {
|
|
11748
|
-
description: "ID of the encoder to use for the scan.",
|
|
11749
|
-
format: "uuid",
|
|
11750
|
-
type: "string"
|
|
11751
|
-
}
|
|
11746
|
+
acs_system_id: { format: "uuid", type: "string" },
|
|
11747
|
+
device_id: { format: "uuid", type: "string" }
|
|
11752
11748
|
},
|
|
11753
11749
|
required: ["acs_system_id", "device_id"],
|
|
11754
11750
|
type: "object"
|
|
@@ -11782,10 +11778,10 @@ var openapi_default = {
|
|
|
11782
11778
|
{ console_session: [] },
|
|
11783
11779
|
{ api_key: [] }
|
|
11784
11780
|
],
|
|
11785
|
-
summary: "/acs/encoders/
|
|
11781
|
+
summary: "/acs/encoders/scan_card",
|
|
11786
11782
|
tags: ["/acs"],
|
|
11787
11783
|
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
11788
|
-
"x-fern-sdk-method-name": "
|
|
11784
|
+
"x-fern-sdk-method-name": "scan_card",
|
|
11789
11785
|
"x-fern-sdk-return-value": "action_attempt",
|
|
11790
11786
|
"x-response-key": "action_attempt",
|
|
11791
11787
|
"x-undocumented": "Reading a card is currently unimplemented."
|
|
@@ -14368,7 +14364,7 @@ var openapi_default = {
|
|
|
14368
14364
|
"latch",
|
|
14369
14365
|
"akiles",
|
|
14370
14366
|
"assa_abloy_vostio",
|
|
14371
|
-
"
|
|
14367
|
+
"assa_abloy_vostio_credential_service",
|
|
14372
14368
|
"yale_access",
|
|
14373
14369
|
"hid_cm",
|
|
14374
14370
|
"google_nest"
|