@seamapi/types 1.263.1 → 1.264.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.
Files changed (40) hide show
  1. package/dist/connect.cjs +438 -84
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3745 -454
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +83 -0
  5. package/lib/seam/connect/models/acs/acs-credential.js +38 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +862 -53
  8. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -2
  9. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +61 -21
  11. package/lib/seam/connect/models/action-attempts/deprecated.js +13 -5
  12. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
  13. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +3 -18
  14. package/lib/seam/connect/models/action-attempts/encode-card.js +1 -12
  15. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  16. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  17. package/lib/seam/connect/models/action-attempts/index.js +1 -0
  18. package/lib/seam/connect/models/action-attempts/index.js.map +1 -1
  19. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +875 -0
  20. package/lib/seam/connect/models/action-attempts/{read-card.js → scan-card.js} +8 -12
  21. package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
  22. package/lib/seam/connect/openapi.d.ts +308 -38
  23. package/lib/seam/connect/openapi.js +368 -42
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +2522 -362
  26. package/lib/seam/connect/schemas.d.ts +1 -1
  27. package/lib/seam/connect/schemas.js +1 -1
  28. package/lib/seam/connect/schemas.js.map +1 -1
  29. package/package.json +2 -2
  30. package/src/lib/seam/connect/models/acs/acs-credential.ts +48 -0
  31. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -2
  32. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +13 -5
  33. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +1 -12
  34. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  35. package/src/lib/seam/connect/models/action-attempts/{read-card.ts → scan-card.ts} +15 -12
  36. package/src/lib/seam/connect/openapi.ts +373 -44
  37. package/src/lib/seam/connect/route-types.ts +3362 -502
  38. package/src/lib/seam/connect/schemas.ts +3 -0
  39. package/lib/seam/connect/models/action-attempts/read-card.d.ts +0 -91
  40. package/lib/seam/connect/models/action-attempts/read-card.js.map +0 -1
package/dist/connect.cjs CHANGED
@@ -19,6 +19,9 @@ __export(schemas_exports, {
19
19
  acs_user: () => acs_user,
20
20
  action_attempt: () => action_attempt,
21
21
  client_session: () => client_session,
22
+ common_failed_action_attempt: () => common_failed_action_attempt,
23
+ common_pending_action_attempt: () => common_pending_action_attempt,
24
+ common_succeeded_action_attempt: () => common_succeeded_action_attempt,
22
25
  connect_webview: () => connect_webview,
23
26
  connected_account: () => connected_account,
24
27
  custom_metadata: () => custom_metadata,
@@ -1214,6 +1217,29 @@ var unmanaged_acs_credential = common_acs_credential.merge(
1214
1217
  is_managed: zod.z.literal(false)
1215
1218
  })
1216
1219
  );
1220
+ var acs_credential_on_encoder = zod.z.object({
1221
+ created_at: zod.z.string().datetime().describe("Date and time the credential was created."),
1222
+ is_issued: zod.z.boolean().nullable(),
1223
+ starts_at: zod.z.string().datetime().nullable().describe("Date and time the credential will become useable."),
1224
+ ends_at: zod.z.string().datetime().nullable().describe("Date and time the credential will stop being useable."),
1225
+ card_number: zod.z.string().nullable().describe("A number or string that physically identifies this card."),
1226
+ visionline_metadata: zod.z.object({
1227
+ card_id: zod.z.string(),
1228
+ card_function_type: zod.z.enum(["guest", "staff"]),
1229
+ // computed, looks at door ops, and checks is guest op is present.
1230
+ cancelled: zod.z.boolean(),
1231
+ discarded: zod.z.boolean(),
1232
+ expired: zod.z.boolean(),
1233
+ overwritten: zod.z.boolean(),
1234
+ overridden: zod.z.boolean().optional(),
1235
+ pending_auto_update: zod.z.boolean(),
1236
+ card_format: zod.z.enum(["TLCode", "rfid48"]),
1237
+ card_holder: zod.z.string().optional(),
1238
+ number_of_issued_cards: zod.z.number()
1239
+ // guest_acs_entrance_ids: z.array(z.string().uuid()).optional(), // computed
1240
+ // common_acs_entrance_ids: z.array(z.string().uuid()).optional(), // computed
1241
+ }).optional()
1242
+ });
1217
1243
  var acs_entrance = zod.z.object({
1218
1244
  acs_system_id: zod.z.string().uuid().describe("ID of the access control system that contains the entrance."),
1219
1245
  acs_entrance_id: zod.z.string().uuid().describe("ID of the entrance."),
@@ -1560,7 +1586,7 @@ var error2 = zod.z.object({
1560
1586
  type: zod.z.string(),
1561
1587
  message: zod.z.string()
1562
1588
  });
1563
- var result2 = zod.z.any();
1589
+ var result2 = zod.z.object({});
1564
1590
  var sync_access_codes_action_attempt = zod.z.discriminatedUnion("status", [
1565
1591
  common_pending_action_attempt.extend({
1566
1592
  action_type: zod.z.literal("SYNC_ACCESS_CODES")
@@ -1580,7 +1606,9 @@ var create_access_code_action_attempt = zod.z.discriminatedUnion("status", [
1580
1606
  }),
1581
1607
  common_succeeded_action_attempt.extend({
1582
1608
  action_type: zod.z.literal("CREATE_ACCESS_CODE"),
1583
- result: result2
1609
+ result: zod.z.object({
1610
+ access_code: zod.z.any()
1611
+ })
1584
1612
  }),
1585
1613
  common_failed_action_attempt.extend({
1586
1614
  action_type: zod.z.literal("CREATE_ACCESS_CODE"),
@@ -1606,7 +1634,9 @@ var update_access_code_action_attempt = zod.z.discriminatedUnion("status", [
1606
1634
  }),
1607
1635
  common_succeeded_action_attempt.extend({
1608
1636
  action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
1609
- result: result2
1637
+ result: zod.z.object({
1638
+ access_code: zod.z.any()
1639
+ })
1610
1640
  }),
1611
1641
  common_failed_action_attempt.extend({
1612
1642
  action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
@@ -1619,7 +1649,9 @@ var create_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
1619
1649
  }),
1620
1650
  common_succeeded_action_attempt.extend({
1621
1651
  action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
1622
- result: result2
1652
+ result: zod.z.object({
1653
+ noise_threshold: zod.z.any()
1654
+ })
1623
1655
  }),
1624
1656
  common_failed_action_attempt.extend({
1625
1657
  action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
@@ -1645,7 +1677,9 @@ var update_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
1645
1677
  }),
1646
1678
  common_succeeded_action_attempt.extend({
1647
1679
  action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
1648
- result: result2
1680
+ result: zod.z.object({
1681
+ noise_threshold: zod.z.any()
1682
+ })
1649
1683
  }),
1650
1684
  common_failed_action_attempt.extend({
1651
1685
  action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
@@ -1667,11 +1701,7 @@ var error3 = zod.z.object({
1667
1701
  // TODO This should be typed properly with the possible errors
1668
1702
  message: zod.z.string()
1669
1703
  });
1670
- var result3 = zod.z.object({
1671
- acs_credential_id: zod.z.string().uuid().nullable().describe("Matching acs_credential currently encoded on this card."),
1672
- card_number: zod.z.string().nullable().describe("A number or string that physically identifies this card.")
1673
- // TODO visionline_metadata: visionline_credential_metadata,
1674
- });
1704
+ var result3 = zod.z.object({});
1675
1705
  var encode_card_action_attempt = zod.z.discriminatedUnion("status", [
1676
1706
  common_pending_action_attempt.extend({
1677
1707
  action_type: action_type2
@@ -1698,52 +1728,50 @@ var lock_door_action_attempt = zod.z.discriminatedUnion("status", [
1698
1728
  }).describe("Locking door succeeded."),
1699
1729
  common_failed_action_attempt.extend({ action_type: action_type3, error: error4 }).describe("Locking door failed.")
1700
1730
  ]);
1701
- var action_type4 = zod.z.literal("READ_CARD");
1731
+ var action_type4 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
1702
1732
  var error5 = zod.z.object({
1703
- type: zod.z.literal("no_card_on_encoder"),
1704
- message: zod.z.string()
1705
- });
1706
- var result5 = zod.z.object({
1707
- // TODO acs_credential_id: z
1708
- // .string()
1709
- // .uuid()
1710
- // .nullable()
1711
- // .describe("Matching acs_credential currently encoded on this card."),
1712
- card_number: zod.z.string().nullable().describe("A number or string that physically identifies this card.")
1713
- // TODO visionline_metadata: visionline_credential_metadata,
1714
- });
1715
- var read_card_action_attempt = zod.z.discriminatedUnion("status", [
1716
- common_pending_action_attempt.extend({
1717
- action_type: action_type4
1718
- }).describe("Reading card data from physical encoder."),
1719
- common_succeeded_action_attempt.extend({
1720
- action_type: action_type4,
1721
- result: result5
1722
- }).describe("Reading card data from physical encoder succeeded."),
1723
- common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Reading card data from physical encoder failed.")
1724
- ]);
1725
- var action_type5 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
1726
- var error6 = zod.z.object({
1727
1733
  type: zod.z.string(),
1728
1734
  message: zod.z.string()
1729
1735
  });
1730
- var result6 = zod.z.object({});
1736
+ var result5 = zod.z.object({});
1731
1737
  var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
1732
1738
  "status",
1733
1739
  [
1734
1740
  common_pending_action_attempt.extend({
1735
- action_type: action_type5
1741
+ action_type: action_type4
1736
1742
  }).describe("Resetting sandbox workspace."),
1737
1743
  common_succeeded_action_attempt.extend({
1738
- action_type: action_type5,
1739
- result: result6
1744
+ action_type: action_type4,
1745
+ result: result5
1740
1746
  }).describe("Resetting sandbox workspace succeeded."),
1741
1747
  common_failed_action_attempt.extend({
1742
- action_type: action_type5,
1743
- error: error6
1748
+ action_type: action_type4,
1749
+ error: error5
1744
1750
  }).describe("Resetting sandbox workspace failed.")
1745
1751
  ]
1746
1752
  );
1753
+ var action_type5 = zod.z.literal("SCAN_CARD");
1754
+ var error6 = zod.z.object({
1755
+ type: zod.z.literal("no_card_on_encoder"),
1756
+ message: zod.z.string()
1757
+ });
1758
+ var acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
1759
+ var result6 = zod.z.object({
1760
+ acs_credential_on_encoder: acs_credential_on_encoder.describe(
1761
+ "Snapshot of the card data read from the physical encoder."
1762
+ ),
1763
+ acs_credential_on_seam: acs_credential_on_seam.nullable().describe("Matching acs_credential currently encoded on this card.")
1764
+ });
1765
+ var scan_card_action_attempt = zod.z.discriminatedUnion("status", [
1766
+ common_pending_action_attempt.extend({
1767
+ action_type: action_type5
1768
+ }).describe("Reading card data from physical encoder."),
1769
+ common_succeeded_action_attempt.extend({
1770
+ action_type: action_type5,
1771
+ result: result6
1772
+ }).describe("Reading card data from physical encoder succeeded."),
1773
+ common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Reading card data from physical encoder failed.")
1774
+ ]);
1747
1775
  var action_type6 = zod.z.literal("SET_COOL");
1748
1776
  var error7 = zod.z.object({
1749
1777
  type: zod.z.string(),
@@ -1848,7 +1876,7 @@ var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
1848
1876
  var action_attempt = zod.z.union([
1849
1877
  ...lock_door_action_attempt.options,
1850
1878
  ...unlock_door_action_attempt.options,
1851
- ...read_card_action_attempt.options,
1879
+ ...scan_card_action_attempt.options,
1852
1880
  ...encode_card_action_attempt.options,
1853
1881
  ...reset_sandbox_workspace_action_attempt.options,
1854
1882
  ...set_cool_action_attempt.options,
@@ -3643,7 +3671,7 @@ var openapi_default = {
3643
3671
  type: "string",
3644
3672
  "x-title": "Action Attempt ID"
3645
3673
  },
3646
- action_type: { enum: ["READ_CARD"], type: "string" },
3674
+ action_type: { enum: ["SCAN_CARD"], type: "string" },
3647
3675
  error: { nullable: true },
3648
3676
  result: { nullable: true },
3649
3677
  status: { enum: ["pending"], type: "string" }
@@ -3666,17 +3694,317 @@ var openapi_default = {
3666
3694
  type: "string",
3667
3695
  "x-title": "Action Attempt ID"
3668
3696
  },
3669
- action_type: { enum: ["READ_CARD"], type: "string" },
3697
+ action_type: { enum: ["SCAN_CARD"], type: "string" },
3670
3698
  error: { nullable: true },
3671
3699
  result: {
3672
3700
  properties: {
3673
- card_number: {
3674
- description: "A number or string that physically identifies this card.",
3701
+ acs_credential_on_encoder: {
3702
+ description: "Snapshot of the card data read from the physical encoder.",
3703
+ properties: {
3704
+ card_number: {
3705
+ description: "A number or string that physically identifies this card.",
3706
+ nullable: true,
3707
+ type: "string"
3708
+ },
3709
+ created_at: {
3710
+ description: "Date and time the credential was created.",
3711
+ format: "date-time",
3712
+ type: "string"
3713
+ },
3714
+ ends_at: {
3715
+ description: "Date and time the credential will stop being useable.",
3716
+ format: "date-time",
3717
+ nullable: true,
3718
+ type: "string"
3719
+ },
3720
+ is_issued: { nullable: true, type: "boolean" },
3721
+ starts_at: {
3722
+ description: "Date and time the credential will become useable.",
3723
+ format: "date-time",
3724
+ nullable: true,
3725
+ type: "string"
3726
+ },
3727
+ visionline_metadata: {
3728
+ properties: {
3729
+ cancelled: { type: "boolean" },
3730
+ card_format: {
3731
+ enum: ["TLCode", "rfid48"],
3732
+ type: "string"
3733
+ },
3734
+ card_function_type: {
3735
+ enum: ["guest", "staff"],
3736
+ type: "string"
3737
+ },
3738
+ card_holder: { type: "string" },
3739
+ card_id: { type: "string" },
3740
+ discarded: { type: "boolean" },
3741
+ expired: { type: "boolean" },
3742
+ number_of_issued_cards: {
3743
+ format: "float",
3744
+ type: "number"
3745
+ },
3746
+ overridden: { type: "boolean" },
3747
+ overwritten: { type: "boolean" },
3748
+ pending_auto_update: { type: "boolean" }
3749
+ },
3750
+ required: [
3751
+ "card_id",
3752
+ "card_function_type",
3753
+ "cancelled",
3754
+ "discarded",
3755
+ "expired",
3756
+ "overwritten",
3757
+ "pending_auto_update",
3758
+ "card_format",
3759
+ "number_of_issued_cards"
3760
+ ],
3761
+ type: "object"
3762
+ }
3763
+ },
3764
+ required: [
3765
+ "created_at",
3766
+ "is_issued",
3767
+ "starts_at",
3768
+ "ends_at",
3769
+ "card_number"
3770
+ ],
3771
+ type: "object"
3772
+ },
3773
+ acs_credential_on_seam: {
3774
+ description: "Matching acs_credential currently encoded on this card.",
3675
3775
  nullable: true,
3676
- type: "string"
3776
+ oneOf: [
3777
+ {
3778
+ properties: {
3779
+ access_method: {
3780
+ enum: ["code", "card", "mobile_key"],
3781
+ type: "string"
3782
+ },
3783
+ acs_credential_id: { format: "uuid", type: "string" },
3784
+ acs_credential_pool_id: {
3785
+ format: "uuid",
3786
+ type: "string"
3787
+ },
3788
+ acs_system_id: { format: "uuid", type: "string" },
3789
+ acs_user_id: { format: "uuid", type: "string" },
3790
+ card_number: { nullable: true, type: "string" },
3791
+ code: { nullable: true, type: "string" },
3792
+ created_at: { format: "date-time", type: "string" },
3793
+ display_name: { minLength: 1, type: "string" },
3794
+ ends_at: { type: "string" },
3795
+ errors: {
3796
+ items: {
3797
+ properties: {
3798
+ error_code: { type: "string" },
3799
+ message: { type: "string" }
3800
+ },
3801
+ required: ["error_code", "message"],
3802
+ type: "object"
3803
+ },
3804
+ type: "array"
3805
+ },
3806
+ external_type: {
3807
+ enum: [
3808
+ "pti_card",
3809
+ "brivo_credential",
3810
+ "hid_credential",
3811
+ "visionline_card",
3812
+ "salto_ks_credential"
3813
+ ],
3814
+ type: "string"
3815
+ },
3816
+ external_type_display_name: { type: "string" },
3817
+ is_issued: { type: "boolean" },
3818
+ is_latest_desired_state_synced_with_provider: {
3819
+ type: "boolean"
3820
+ },
3821
+ is_managed: { enum: [true], type: "boolean" },
3822
+ is_multi_phone_sync_credential: { type: "boolean" },
3823
+ issued_at: {
3824
+ format: "date-time",
3825
+ nullable: true,
3826
+ type: "string"
3827
+ },
3828
+ latest_desired_state_synced_with_provider_at: {
3829
+ format: "date-time",
3830
+ type: "string"
3831
+ },
3832
+ parent_acs_credential_id: {
3833
+ format: "uuid",
3834
+ type: "string"
3835
+ },
3836
+ starts_at: { type: "string" },
3837
+ visionline_metadata: {
3838
+ properties: {
3839
+ auto_join: { type: "boolean" },
3840
+ card_function_type: {
3841
+ enum: ["guest", "staff"],
3842
+ type: "string"
3843
+ },
3844
+ card_id: { type: "string" },
3845
+ common_acs_entrance_ids: {
3846
+ items: { format: "uuid", type: "string" },
3847
+ type: "array"
3848
+ },
3849
+ credential_id: { type: "string" },
3850
+ guest_acs_entrance_ids: {
3851
+ items: { format: "uuid", type: "string" },
3852
+ type: "array"
3853
+ },
3854
+ is_valid: { type: "boolean" },
3855
+ joiner_acs_credential_ids: {
3856
+ items: { format: "uuid", type: "string" },
3857
+ type: "array"
3858
+ }
3859
+ },
3860
+ required: ["card_function_type"],
3861
+ type: "object"
3862
+ },
3863
+ warnings: {
3864
+ items: {
3865
+ properties: {
3866
+ message: { type: "string" },
3867
+ warning_code: { type: "string" }
3868
+ },
3869
+ required: ["warning_code", "message"],
3870
+ type: "object"
3871
+ },
3872
+ type: "array"
3873
+ },
3874
+ workspace_id: { format: "uuid", type: "string" }
3875
+ },
3876
+ required: [
3877
+ "acs_credential_id",
3878
+ "acs_system_id",
3879
+ "display_name",
3880
+ "access_method",
3881
+ "created_at",
3882
+ "workspace_id",
3883
+ "errors",
3884
+ "warnings",
3885
+ "is_managed"
3886
+ ],
3887
+ type: "object"
3888
+ },
3889
+ {
3890
+ properties: {
3891
+ access_method: {
3892
+ enum: ["code", "card", "mobile_key"],
3893
+ type: "string"
3894
+ },
3895
+ acs_credential_id: { format: "uuid", type: "string" },
3896
+ acs_credential_pool_id: {
3897
+ format: "uuid",
3898
+ type: "string"
3899
+ },
3900
+ acs_system_id: { format: "uuid", type: "string" },
3901
+ acs_user_id: { format: "uuid", type: "string" },
3902
+ card_number: { nullable: true, type: "string" },
3903
+ code: { nullable: true, type: "string" },
3904
+ created_at: { format: "date-time", type: "string" },
3905
+ display_name: { minLength: 1, type: "string" },
3906
+ ends_at: { type: "string" },
3907
+ errors: {
3908
+ items: {
3909
+ properties: {
3910
+ error_code: { type: "string" },
3911
+ message: { type: "string" }
3912
+ },
3913
+ required: ["error_code", "message"],
3914
+ type: "object"
3915
+ },
3916
+ type: "array"
3917
+ },
3918
+ external_type: {
3919
+ enum: [
3920
+ "pti_card",
3921
+ "brivo_credential",
3922
+ "hid_credential",
3923
+ "visionline_card",
3924
+ "salto_ks_credential"
3925
+ ],
3926
+ type: "string"
3927
+ },
3928
+ external_type_display_name: { type: "string" },
3929
+ is_issued: { type: "boolean" },
3930
+ is_latest_desired_state_synced_with_provider: {
3931
+ type: "boolean"
3932
+ },
3933
+ is_managed: { enum: [false], type: "boolean" },
3934
+ is_multi_phone_sync_credential: { type: "boolean" },
3935
+ issued_at: {
3936
+ format: "date-time",
3937
+ nullable: true,
3938
+ type: "string"
3939
+ },
3940
+ latest_desired_state_synced_with_provider_at: {
3941
+ format: "date-time",
3942
+ type: "string"
3943
+ },
3944
+ parent_acs_credential_id: {
3945
+ format: "uuid",
3946
+ type: "string"
3947
+ },
3948
+ starts_at: { type: "string" },
3949
+ visionline_metadata: {
3950
+ properties: {
3951
+ auto_join: { type: "boolean" },
3952
+ card_function_type: {
3953
+ enum: ["guest", "staff"],
3954
+ type: "string"
3955
+ },
3956
+ card_id: { type: "string" },
3957
+ common_acs_entrance_ids: {
3958
+ items: { format: "uuid", type: "string" },
3959
+ type: "array"
3960
+ },
3961
+ credential_id: { type: "string" },
3962
+ guest_acs_entrance_ids: {
3963
+ items: { format: "uuid", type: "string" },
3964
+ type: "array"
3965
+ },
3966
+ is_valid: { type: "boolean" },
3967
+ joiner_acs_credential_ids: {
3968
+ items: { format: "uuid", type: "string" },
3969
+ type: "array"
3970
+ }
3971
+ },
3972
+ required: ["card_function_type"],
3973
+ type: "object"
3974
+ },
3975
+ warnings: {
3976
+ items: {
3977
+ properties: {
3978
+ message: { type: "string" },
3979
+ warning_code: { type: "string" }
3980
+ },
3981
+ required: ["warning_code", "message"],
3982
+ type: "object"
3983
+ },
3984
+ type: "array"
3985
+ },
3986
+ workspace_id: { format: "uuid", type: "string" }
3987
+ },
3988
+ required: [
3989
+ "acs_credential_id",
3990
+ "acs_system_id",
3991
+ "display_name",
3992
+ "access_method",
3993
+ "created_at",
3994
+ "workspace_id",
3995
+ "errors",
3996
+ "warnings",
3997
+ "is_managed"
3998
+ ],
3999
+ type: "object"
4000
+ }
4001
+ ]
3677
4002
  }
3678
4003
  },
3679
- required: ["card_number"],
4004
+ required: [
4005
+ "acs_credential_on_encoder",
4006
+ "acs_credential_on_seam"
4007
+ ],
3680
4008
  type: "object"
3681
4009
  },
3682
4010
  status: { enum: ["success"], type: "string" }
@@ -3699,7 +4027,7 @@ var openapi_default = {
3699
4027
  type: "string",
3700
4028
  "x-title": "Action Attempt ID"
3701
4029
  },
3702
- action_type: { enum: ["READ_CARD"], type: "string" },
4030
+ action_type: { enum: ["SCAN_CARD"], type: "string" },
3703
4031
  error: {
3704
4032
  properties: {
3705
4033
  message: { type: "string" },
@@ -3754,23 +4082,7 @@ var openapi_default = {
3754
4082
  },
3755
4083
  action_type: { enum: ["ENCODE_CARD"], type: "string" },
3756
4084
  error: { nullable: true },
3757
- result: {
3758
- properties: {
3759
- acs_credential_id: {
3760
- description: "Matching acs_credential currently encoded on this card.",
3761
- format: "uuid",
3762
- nullable: true,
3763
- type: "string"
3764
- },
3765
- card_number: {
3766
- description: "A number or string that physically identifies this card.",
3767
- nullable: true,
3768
- type: "string"
3769
- }
3770
- },
3771
- required: ["acs_credential_id", "card_number"],
3772
- type: "object"
3773
- },
4085
+ result: { properties: {}, type: "object" },
3774
4086
  status: { enum: ["success"], type: "string" }
3775
4087
  },
3776
4088
  required: [
@@ -4394,10 +4706,16 @@ var openapi_default = {
4394
4706
  },
4395
4707
  action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
4396
4708
  error: { nullable: true },
4397
- result: {},
4709
+ result: { properties: {}, type: "object" },
4398
4710
  status: { enum: ["success"], type: "string" }
4399
4711
  },
4400
- required: ["action_attempt_id", "status", "error", "action_type"],
4712
+ required: [
4713
+ "action_attempt_id",
4714
+ "status",
4715
+ "error",
4716
+ "action_type",
4717
+ "result"
4718
+ ],
4401
4719
  type: "object"
4402
4720
  },
4403
4721
  {
@@ -4461,10 +4779,16 @@ var openapi_default = {
4461
4779
  },
4462
4780
  action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
4463
4781
  error: { nullable: true },
4464
- result: {},
4782
+ result: { properties: { access_code: {} }, type: "object" },
4465
4783
  status: { enum: ["success"], type: "string" }
4466
4784
  },
4467
- required: ["action_attempt_id", "status", "error", "action_type"],
4785
+ required: [
4786
+ "action_attempt_id",
4787
+ "status",
4788
+ "error",
4789
+ "action_type",
4790
+ "result"
4791
+ ],
4468
4792
  type: "object"
4469
4793
  },
4470
4794
  {
@@ -4528,10 +4852,16 @@ var openapi_default = {
4528
4852
  },
4529
4853
  action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
4530
4854
  error: { nullable: true },
4531
- result: {},
4855
+ result: { properties: {}, type: "object" },
4532
4856
  status: { enum: ["success"], type: "string" }
4533
4857
  },
4534
- required: ["action_attempt_id", "status", "error", "action_type"],
4858
+ required: [
4859
+ "action_attempt_id",
4860
+ "status",
4861
+ "error",
4862
+ "action_type",
4863
+ "result"
4864
+ ],
4535
4865
  type: "object"
4536
4866
  },
4537
4867
  {
@@ -4595,10 +4925,16 @@ var openapi_default = {
4595
4925
  },
4596
4926
  action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
4597
4927
  error: { nullable: true },
4598
- result: {},
4928
+ result: { properties: { access_code: {} }, type: "object" },
4599
4929
  status: { enum: ["success"], type: "string" }
4600
4930
  },
4601
- required: ["action_attempt_id", "status", "error", "action_type"],
4931
+ required: [
4932
+ "action_attempt_id",
4933
+ "status",
4934
+ "error",
4935
+ "action_type",
4936
+ "result"
4937
+ ],
4602
4938
  type: "object"
4603
4939
  },
4604
4940
  {
@@ -4662,10 +4998,16 @@ var openapi_default = {
4662
4998
  },
4663
4999
  action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
4664
5000
  error: { nullable: true },
4665
- result: {},
5001
+ result: { properties: { noise_threshold: {} }, type: "object" },
4666
5002
  status: { enum: ["success"], type: "string" }
4667
5003
  },
4668
- required: ["action_attempt_id", "status", "error", "action_type"],
5004
+ required: [
5005
+ "action_attempt_id",
5006
+ "status",
5007
+ "error",
5008
+ "action_type",
5009
+ "result"
5010
+ ],
4669
5011
  type: "object"
4670
5012
  },
4671
5013
  {
@@ -4729,10 +5071,16 @@ var openapi_default = {
4729
5071
  },
4730
5072
  action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
4731
5073
  error: { nullable: true },
4732
- result: {},
5074
+ result: { properties: {}, type: "object" },
4733
5075
  status: { enum: ["success"], type: "string" }
4734
5076
  },
4735
- required: ["action_attempt_id", "status", "error", "action_type"],
5077
+ required: [
5078
+ "action_attempt_id",
5079
+ "status",
5080
+ "error",
5081
+ "action_type",
5082
+ "result"
5083
+ ],
4736
5084
  type: "object"
4737
5085
  },
4738
5086
  {
@@ -4796,10 +5144,16 @@ var openapi_default = {
4796
5144
  },
4797
5145
  action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
4798
5146
  error: { nullable: true },
4799
- result: {},
5147
+ result: { properties: { noise_threshold: {} }, type: "object" },
4800
5148
  status: { enum: ["success"], type: "string" }
4801
5149
  },
4802
- required: ["action_attempt_id", "status", "error", "action_type"],
5150
+ required: [
5151
+ "action_attempt_id",
5152
+ "status",
5153
+ "error",
5154
+ "action_type",
5155
+ "result"
5156
+ ],
4803
5157
  type: "object"
4804
5158
  },
4805
5159
  {
@@ -10126,9 +10480,9 @@ var openapi_default = {
10126
10480
  "x-undocumented": "Encoders are in alpha."
10127
10481
  }
10128
10482
  },
10129
- "/acs/encoders/read_card": {
10483
+ "/acs/encoders/scan_card": {
10130
10484
  post: {
10131
- operationId: "acsEncodersReadCardPost",
10485
+ operationId: "acsEncodersScanCardPost",
10132
10486
  requestBody: {
10133
10487
  content: {
10134
10488
  "application/json": {
@@ -10181,10 +10535,10 @@ var openapi_default = {
10181
10535
  { console_session: [] },
10182
10536
  { api_key: [] }
10183
10537
  ],
10184
- summary: "/acs/encoders/read_card",
10538
+ summary: "/acs/encoders/scan_card",
10185
10539
  tags: ["/acs"],
10186
10540
  "x-fern-sdk-group-name": ["acs", "encoders"],
10187
- "x-fern-sdk-method-name": "read_card",
10541
+ "x-fern-sdk-method-name": "scan_card",
10188
10542
  "x-fern-sdk-return-value": "action_attempt",
10189
10543
  "x-response-key": "action_attempt",
10190
10544
  "x-undocumented": "Reading a card is currently unimplemented."