@seamapi/types 1.289.0 → 1.289.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 +54 -38
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +172 -164
- 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-card.d.ts → encode-credential.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{encode-card.js → encode-credential.js} +6 -6
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/{scan-card.d.ts → scan-credential.d.ts} +11 -11
- package/lib/seam/connect/models/action-attempts/{scan-card.js → scan-credential.js} +7 -7
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +6 -2
- package/lib/seam/connect/openapi.js +41 -25
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +148 -144
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
- package/src/lib/seam/connect/models/action-attempts/{encode-card.ts → encode-credential.ts} +8 -6
- package/src/lib/seam/connect/models/action-attempts/{scan-card.ts → scan-credential.ts} +9 -7
- package/src/lib/seam/connect/openapi.ts +46 -25
- package/src/lib/seam/connect/route-types.ts +148 -144
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +0 -1
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +0 -1
package/dist/connect.cjs
CHANGED
|
@@ -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_CREDENTIAL");
|
|
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_credential_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 credential 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 credential data from physical encoder succeeded."),
|
|
1830
|
+
common_failed_action_attempt.extend({ action_type: action_type2, error: error3 }).describe("Encoding credential 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_CREDENTIAL");
|
|
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 credential data read from 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_credential_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 credential 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 credential data from physical encoder succeeded."),
|
|
1899
|
+
common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Reading credential 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_credential_action_attempt.options,
|
|
2006
|
+
...encode_credential_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,
|
|
@@ -3982,7 +3982,7 @@ var openapi_default = {
|
|
|
3982
3982
|
type: "object"
|
|
3983
3983
|
},
|
|
3984
3984
|
{
|
|
3985
|
-
description: "Reading
|
|
3985
|
+
description: "Reading credential data from physical encoder.",
|
|
3986
3986
|
properties: {
|
|
3987
3987
|
action_attempt_id: {
|
|
3988
3988
|
description: "The ID of the action attempt.",
|
|
@@ -3990,7 +3990,7 @@ var openapi_default = {
|
|
|
3990
3990
|
type: "string",
|
|
3991
3991
|
"x-title": "Action Attempt ID"
|
|
3992
3992
|
},
|
|
3993
|
-
action_type: { enum: ["
|
|
3993
|
+
action_type: { enum: ["SCAN_CREDENTIAL"], type: "string" },
|
|
3994
3994
|
error: { nullable: true },
|
|
3995
3995
|
result: { nullable: true },
|
|
3996
3996
|
status: { enum: ["pending"], type: "string" }
|
|
@@ -4005,7 +4005,7 @@ var openapi_default = {
|
|
|
4005
4005
|
type: "object"
|
|
4006
4006
|
},
|
|
4007
4007
|
{
|
|
4008
|
-
description: "Reading
|
|
4008
|
+
description: "Reading credential data from physical encoder succeeded.",
|
|
4009
4009
|
properties: {
|
|
4010
4010
|
action_attempt_id: {
|
|
4011
4011
|
description: "The ID of the action attempt.",
|
|
@@ -4013,12 +4013,12 @@ var openapi_default = {
|
|
|
4013
4013
|
type: "string",
|
|
4014
4014
|
"x-title": "Action Attempt ID"
|
|
4015
4015
|
},
|
|
4016
|
-
action_type: { enum: ["
|
|
4016
|
+
action_type: { enum: ["SCAN_CREDENTIAL"], type: "string" },
|
|
4017
4017
|
error: { nullable: true },
|
|
4018
4018
|
result: {
|
|
4019
4019
|
properties: {
|
|
4020
4020
|
acs_credential_on_encoder: {
|
|
4021
|
-
description: "Snapshot of
|
|
4021
|
+
description: "Snapshot of credential data read from physical encoder.",
|
|
4022
4022
|
properties: {
|
|
4023
4023
|
card_number: {
|
|
4024
4024
|
description: "A number or string that physically identifies this card.",
|
|
@@ -4452,7 +4452,7 @@ var openapi_default = {
|
|
|
4452
4452
|
type: "object"
|
|
4453
4453
|
},
|
|
4454
4454
|
{
|
|
4455
|
-
description: "Reading
|
|
4455
|
+
description: "Reading credential data from physical encoder failed.",
|
|
4456
4456
|
properties: {
|
|
4457
4457
|
action_attempt_id: {
|
|
4458
4458
|
description: "The ID of the action attempt.",
|
|
@@ -4460,7 +4460,7 @@ var openapi_default = {
|
|
|
4460
4460
|
type: "string",
|
|
4461
4461
|
"x-title": "Action Attempt ID"
|
|
4462
4462
|
},
|
|
4463
|
-
action_type: { enum: ["
|
|
4463
|
+
action_type: { enum: ["SCAN_CREDENTIAL"], type: "string" },
|
|
4464
4464
|
error: {
|
|
4465
4465
|
oneOf: [
|
|
4466
4466
|
{
|
|
@@ -4505,7 +4505,7 @@ var openapi_default = {
|
|
|
4505
4505
|
type: "object"
|
|
4506
4506
|
},
|
|
4507
4507
|
{
|
|
4508
|
-
description: "Encoding
|
|
4508
|
+
description: "Encoding credential data from physical encoder.",
|
|
4509
4509
|
properties: {
|
|
4510
4510
|
action_attempt_id: {
|
|
4511
4511
|
description: "The ID of the action attempt.",
|
|
@@ -4513,7 +4513,7 @@ var openapi_default = {
|
|
|
4513
4513
|
type: "string",
|
|
4514
4514
|
"x-title": "Action Attempt ID"
|
|
4515
4515
|
},
|
|
4516
|
-
action_type: { enum: ["
|
|
4516
|
+
action_type: { enum: ["ENCODE_CREDENTIAL"], type: "string" },
|
|
4517
4517
|
error: { nullable: true },
|
|
4518
4518
|
result: { nullable: true },
|
|
4519
4519
|
status: { enum: ["pending"], type: "string" }
|
|
@@ -4528,7 +4528,7 @@ var openapi_default = {
|
|
|
4528
4528
|
type: "object"
|
|
4529
4529
|
},
|
|
4530
4530
|
{
|
|
4531
|
-
description: "Encoding
|
|
4531
|
+
description: "Encoding credential data from physical encoder succeeded.",
|
|
4532
4532
|
properties: {
|
|
4533
4533
|
action_attempt_id: {
|
|
4534
4534
|
description: "The ID of the action attempt.",
|
|
@@ -4536,7 +4536,7 @@ var openapi_default = {
|
|
|
4536
4536
|
type: "string",
|
|
4537
4537
|
"x-title": "Action Attempt ID"
|
|
4538
4538
|
},
|
|
4539
|
-
action_type: { enum: ["
|
|
4539
|
+
action_type: { enum: ["ENCODE_CREDENTIAL"], type: "string" },
|
|
4540
4540
|
error: { nullable: true },
|
|
4541
4541
|
result: {
|
|
4542
4542
|
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.",
|
|
@@ -4873,7 +4873,7 @@ var openapi_default = {
|
|
|
4873
4873
|
type: "object"
|
|
4874
4874
|
},
|
|
4875
4875
|
{
|
|
4876
|
-
description: "Encoding
|
|
4876
|
+
description: "Encoding credential data from physical encoder failed.",
|
|
4877
4877
|
properties: {
|
|
4878
4878
|
action_attempt_id: {
|
|
4879
4879
|
description: "The ID of the action attempt.",
|
|
@@ -4881,7 +4881,7 @@ var openapi_default = {
|
|
|
4881
4881
|
type: "string",
|
|
4882
4882
|
"x-title": "Action Attempt ID"
|
|
4883
4883
|
},
|
|
4884
|
-
action_type: { enum: ["
|
|
4884
|
+
action_type: { enum: ["ENCODE_CREDENTIAL"], type: "string" },
|
|
4885
4885
|
error: {
|
|
4886
4886
|
oneOf: [
|
|
4887
4887
|
{
|
|
@@ -11593,16 +11593,24 @@ var openapi_default = {
|
|
|
11593
11593
|
"x-title": "Update a Credential"
|
|
11594
11594
|
}
|
|
11595
11595
|
},
|
|
11596
|
-
"/acs/encoders/
|
|
11596
|
+
"/acs/encoders/encode_credential": {
|
|
11597
11597
|
post: {
|
|
11598
|
-
operationId: "
|
|
11598
|
+
operationId: "acsEncodersEncodeCredentialPost",
|
|
11599
11599
|
requestBody: {
|
|
11600
11600
|
content: {
|
|
11601
11601
|
"application/json": {
|
|
11602
11602
|
schema: {
|
|
11603
11603
|
properties: {
|
|
11604
|
-
acs_credential_id: {
|
|
11605
|
-
|
|
11604
|
+
acs_credential_id: {
|
|
11605
|
+
description: "ID of the acs_credential to encode on a physical card.",
|
|
11606
|
+
format: "uuid",
|
|
11607
|
+
type: "string"
|
|
11608
|
+
},
|
|
11609
|
+
device_id: {
|
|
11610
|
+
description: "ID of the encoder to use for the encoding.",
|
|
11611
|
+
format: "uuid",
|
|
11612
|
+
type: "string"
|
|
11613
|
+
}
|
|
11606
11614
|
},
|
|
11607
11615
|
required: ["device_id", "acs_credential_id"],
|
|
11608
11616
|
type: "object"
|
|
@@ -11636,10 +11644,10 @@ var openapi_default = {
|
|
|
11636
11644
|
{ console_session: [] },
|
|
11637
11645
|
{ api_key: [] }
|
|
11638
11646
|
],
|
|
11639
|
-
summary: "/acs/encoders/
|
|
11647
|
+
summary: "/acs/encoders/encode_credential",
|
|
11640
11648
|
tags: ["/acs"],
|
|
11641
11649
|
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
11642
|
-
"x-fern-sdk-method-name": "
|
|
11650
|
+
"x-fern-sdk-method-name": "encode_credential",
|
|
11643
11651
|
"x-fern-sdk-return-value": "action_attempt",
|
|
11644
11652
|
"x-response-key": "action_attempt",
|
|
11645
11653
|
"x-undocumented": "Encoding a card is currently unimplemented."
|
|
@@ -11731,16 +11739,24 @@ var openapi_default = {
|
|
|
11731
11739
|
"x-undocumented": "Encoders are in alpha."
|
|
11732
11740
|
}
|
|
11733
11741
|
},
|
|
11734
|
-
"/acs/encoders/
|
|
11742
|
+
"/acs/encoders/scan_credential": {
|
|
11735
11743
|
post: {
|
|
11736
|
-
operationId: "
|
|
11744
|
+
operationId: "acsEncodersScanCredentialPost",
|
|
11737
11745
|
requestBody: {
|
|
11738
11746
|
content: {
|
|
11739
11747
|
"application/json": {
|
|
11740
11748
|
schema: {
|
|
11741
11749
|
properties: {
|
|
11742
|
-
acs_system_id: {
|
|
11743
|
-
|
|
11750
|
+
acs_system_id: {
|
|
11751
|
+
description: "ID of the acs_system the encoder belongs to.",
|
|
11752
|
+
format: "uuid",
|
|
11753
|
+
type: "string"
|
|
11754
|
+
},
|
|
11755
|
+
device_id: {
|
|
11756
|
+
description: "ID of the encoder to use for the scan.",
|
|
11757
|
+
format: "uuid",
|
|
11758
|
+
type: "string"
|
|
11759
|
+
}
|
|
11744
11760
|
},
|
|
11745
11761
|
required: ["acs_system_id", "device_id"],
|
|
11746
11762
|
type: "object"
|
|
@@ -11774,10 +11790,10 @@ var openapi_default = {
|
|
|
11774
11790
|
{ console_session: [] },
|
|
11775
11791
|
{ api_key: [] }
|
|
11776
11792
|
],
|
|
11777
|
-
summary: "/acs/encoders/
|
|
11793
|
+
summary: "/acs/encoders/scan_credential",
|
|
11778
11794
|
tags: ["/acs"],
|
|
11779
11795
|
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
11780
|
-
"x-fern-sdk-method-name": "
|
|
11796
|
+
"x-fern-sdk-method-name": "scan_credential",
|
|
11781
11797
|
"x-fern-sdk-return-value": "action_attempt",
|
|
11782
11798
|
"x-response-key": "action_attempt",
|
|
11783
11799
|
"x-undocumented": "Reading a card is currently unimplemented."
|