@seamapi/types 1.287.3 → 1.288.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.
Files changed (24) hide show
  1. package/dist/connect.cjs +50 -54
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +189 -172
  4. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +18 -18
  5. package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -4
  6. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/{encode-credential.d.ts → encode-card.d.ts} +11 -11
  8. package/lib/seam/connect/models/action-attempts/{encode-credential.js → encode-card.js} +6 -6
  9. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
  10. package/lib/seam/connect/models/action-attempts/{scan-credential.d.ts → scan-card.d.ts} +11 -11
  11. package/lib/seam/connect/models/action-attempts/{scan-credential.js → scan-card.js} +7 -7
  12. package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
  13. package/lib/seam/connect/openapi.d.ts +21 -6
  14. package/lib/seam/connect/openapi.js +37 -41
  15. package/lib/seam/connect/openapi.js.map +1 -1
  16. package/lib/seam/connect/route-types.d.ts +150 -148
  17. package/package.json +1 -1
  18. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -4
  19. package/src/lib/seam/connect/models/action-attempts/{encode-credential.ts → encode-card.ts} +6 -8
  20. package/src/lib/seam/connect/models/action-attempts/{scan-credential.ts → scan-card.ts} +7 -9
  21. package/src/lib/seam/connect/openapi.ts +38 -46
  22. package/src/lib/seam/connect/route-types.ts +152 -148
  23. package/lib/seam/connect/models/action-attempts/encode-credential.js.map +0 -1
  24. package/lib/seam/connect/models/action-attempts/scan-credential.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("ENCODE_CREDENTIAL");
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 encode_credential_action_attempt = zod.z.discriminatedUnion("status", [
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 credential data from physical encoder."),
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 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.")
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("SCAN_CREDENTIAL");
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 credential data read from physical encoder."
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 scan_credential_action_attempt = zod.z.discriminatedUnion("status", [
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 credential data from physical encoder."),
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 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.")
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
- ...scan_credential_action_attempt.options,
2006
- ...encode_credential_action_attempt.options,
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,
@@ -3986,7 +3986,7 @@ var openapi_default = {
3986
3986
  type: "object"
3987
3987
  },
3988
3988
  {
3989
- description: "Reading credential data from physical encoder.",
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: ["SCAN_CREDENTIAL"], type: "string" },
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 credential data from physical encoder succeeded.",
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: ["SCAN_CREDENTIAL"], type: "string" },
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 credential data read from physical encoder.",
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 credential data from physical encoder failed.",
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: ["SCAN_CREDENTIAL"], type: "string" },
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 credential data from physical encoder.",
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: ["ENCODE_CREDENTIAL"], type: "string" },
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 credential data from physical encoder succeeded.",
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: ["ENCODE_CREDENTIAL"], type: "string" },
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 credential data from physical encoder failed.",
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: ["ENCODE_CREDENTIAL"], type: "string" },
4888
+ action_type: { enum: ["ENCODE_CARD"], type: "string" },
4889
4889
  error: {
4890
4890
  oneOf: [
4891
4891
  {
@@ -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/encode_credential": {
11600
+ "/acs/encoders/encode_card": {
11589
11601
  post: {
11590
- operationId: "acsEncodersEncodeCredentialPost",
11602
+ operationId: "acsEncodersEncodeCardPost",
11591
11603
  requestBody: {
11592
11604
  content: {
11593
11605
  "application/json": {
11594
11606
  schema: {
11595
11607
  properties: {
11596
- acs_credential_id: {
11597
- description: "ID of the acs_credential to encode on a physical card.",
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/encode_credential",
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": "encode_credential",
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/scan_credential": {
11738
+ "/acs/encoders/scan_card": {
11735
11739
  post: {
11736
- operationId: "acsEncodersScanCredentialPost",
11740
+ operationId: "acsEncodersScanCardPost",
11737
11741
  requestBody: {
11738
11742
  content: {
11739
11743
  "application/json": {
11740
11744
  schema: {
11741
11745
  properties: {
11742
- acs_system_id: {
11743
- description: "ID of the acs_system the encoder belongs to.",
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/scan_credential",
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": "scan_credential",
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."