@seamapi/types 1.264.0 → 1.264.2

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 (39) hide show
  1. package/dist/connect.cjs +82 -43
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +562 -363
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +3 -3
  5. package/lib/seam/connect/models/acs/acs-credential.js +1 -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 +71 -46
  8. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +61 -21
  9. package/lib/seam/connect/models/action-attempts/deprecated.js +13 -5
  10. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
  11. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +3 -18
  12. package/lib/seam/connect/models/action-attempts/encode-card.js +1 -12
  13. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  15. package/lib/seam/connect/models/action-attempts/index.js +1 -0
  16. package/lib/seam/connect/models/action-attempts/index.js.map +1 -1
  17. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +7 -7
  18. package/lib/seam/connect/models/devices/device-metadata.d.ts +8 -0
  19. package/lib/seam/connect/models/devices/device-metadata.js +4 -0
  20. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  21. package/lib/seam/connect/models/devices/device.d.ts +7 -0
  22. package/lib/seam/connect/models/devices/phone.d.ts +5 -0
  23. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -0
  24. package/lib/seam/connect/openapi.d.ts +73 -36
  25. package/lib/seam/connect/openapi.js +59 -31
  26. package/lib/seam/connect/openapi.js.map +1 -1
  27. package/lib/seam/connect/route-types.d.ts +353 -280
  28. package/lib/seam/connect/schemas.d.ts +1 -1
  29. package/lib/seam/connect/schemas.js +1 -1
  30. package/lib/seam/connect/schemas.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -0
  33. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +13 -5
  34. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +1 -12
  35. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  36. package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
  37. package/src/lib/seam/connect/openapi.ts +59 -33
  38. package/src/lib/seam/connect/route-types.ts +353 -280
  39. package/src/lib/seam/connect/schemas.ts +3 -0
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,
@@ -645,7 +648,11 @@ var device_metadata = zod.z.object({
645
648
  }),
646
649
  akiles_metadata: zod.z.object({
647
650
  gadget_name: zod.z.string(),
648
- gadget_id: zod.z.string()
651
+ gadget_id: zod.z.string(),
652
+ /**
653
+ * Group ID to add users to for this device
654
+ */
655
+ _member_group_id: zod.z.string().optional()
649
656
  })
650
657
  }).partial();
651
658
  var LOCK_DEVICE_TYPE = {
@@ -1215,7 +1222,7 @@ var unmanaged_acs_credential = common_acs_credential.merge(
1215
1222
  })
1216
1223
  );
1217
1224
  var acs_credential_on_encoder = zod.z.object({
1218
- created_at: zod.z.string().datetime().describe("Date and time the credential was created."),
1225
+ created_at: zod.z.string().datetime().nullable().describe("Date and time the credential was created."),
1219
1226
  is_issued: zod.z.boolean().nullable(),
1220
1227
  starts_at: zod.z.string().datetime().nullable().describe("Date and time the credential will become useable."),
1221
1228
  ends_at: zod.z.string().datetime().nullable().describe("Date and time the credential will stop being useable."),
@@ -1583,7 +1590,7 @@ var error2 = zod.z.object({
1583
1590
  type: zod.z.string(),
1584
1591
  message: zod.z.string()
1585
1592
  });
1586
- var result2 = zod.z.any();
1593
+ var result2 = zod.z.object({});
1587
1594
  var sync_access_codes_action_attempt = zod.z.discriminatedUnion("status", [
1588
1595
  common_pending_action_attempt.extend({
1589
1596
  action_type: zod.z.literal("SYNC_ACCESS_CODES")
@@ -1603,7 +1610,9 @@ var create_access_code_action_attempt = zod.z.discriminatedUnion("status", [
1603
1610
  }),
1604
1611
  common_succeeded_action_attempt.extend({
1605
1612
  action_type: zod.z.literal("CREATE_ACCESS_CODE"),
1606
- result: result2
1613
+ result: zod.z.object({
1614
+ access_code: zod.z.any()
1615
+ })
1607
1616
  }),
1608
1617
  common_failed_action_attempt.extend({
1609
1618
  action_type: zod.z.literal("CREATE_ACCESS_CODE"),
@@ -1629,7 +1638,9 @@ var update_access_code_action_attempt = zod.z.discriminatedUnion("status", [
1629
1638
  }),
1630
1639
  common_succeeded_action_attempt.extend({
1631
1640
  action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
1632
- result: result2
1641
+ result: zod.z.object({
1642
+ access_code: zod.z.any()
1643
+ })
1633
1644
  }),
1634
1645
  common_failed_action_attempt.extend({
1635
1646
  action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
@@ -1642,7 +1653,9 @@ var create_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
1642
1653
  }),
1643
1654
  common_succeeded_action_attempt.extend({
1644
1655
  action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
1645
- result: result2
1656
+ result: zod.z.object({
1657
+ noise_threshold: zod.z.any()
1658
+ })
1646
1659
  }),
1647
1660
  common_failed_action_attempt.extend({
1648
1661
  action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
@@ -1668,7 +1681,9 @@ var update_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
1668
1681
  }),
1669
1682
  common_succeeded_action_attempt.extend({
1670
1683
  action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
1671
- result: result2
1684
+ result: zod.z.object({
1685
+ noise_threshold: zod.z.any()
1686
+ })
1672
1687
  }),
1673
1688
  common_failed_action_attempt.extend({
1674
1689
  action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
@@ -1690,11 +1705,7 @@ var error3 = zod.z.object({
1690
1705
  // TODO This should be typed properly with the possible errors
1691
1706
  message: zod.z.string()
1692
1707
  });
1693
- var result3 = zod.z.object({
1694
- acs_credential_id: zod.z.string().uuid().nullable().describe("Matching acs_credential currently encoded on this card."),
1695
- card_number: zod.z.string().nullable().describe("A number or string that physically identifies this card.")
1696
- // TODO visionline_metadata: visionline_credential_metadata,
1697
- });
1708
+ var result3 = zod.z.object({});
1698
1709
  var encode_card_action_attempt = zod.z.discriminatedUnion("status", [
1699
1710
  common_pending_action_attempt.extend({
1700
1711
  action_type: action_type2
@@ -3702,6 +3713,7 @@ var openapi_default = {
3702
3713
  created_at: {
3703
3714
  description: "Date and time the credential was created.",
3704
3715
  format: "date-time",
3716
+ nullable: true,
3705
3717
  type: "string"
3706
3718
  },
3707
3719
  ends_at: {
@@ -4075,23 +4087,7 @@ var openapi_default = {
4075
4087
  },
4076
4088
  action_type: { enum: ["ENCODE_CARD"], type: "string" },
4077
4089
  error: { nullable: true },
4078
- result: {
4079
- properties: {
4080
- acs_credential_id: {
4081
- description: "Matching acs_credential currently encoded on this card.",
4082
- format: "uuid",
4083
- nullable: true,
4084
- type: "string"
4085
- },
4086
- card_number: {
4087
- description: "A number or string that physically identifies this card.",
4088
- nullable: true,
4089
- type: "string"
4090
- }
4091
- },
4092
- required: ["acs_credential_id", "card_number"],
4093
- type: "object"
4094
- },
4090
+ result: { properties: {}, type: "object" },
4095
4091
  status: { enum: ["success"], type: "string" }
4096
4092
  },
4097
4093
  required: [
@@ -4715,10 +4711,16 @@ var openapi_default = {
4715
4711
  },
4716
4712
  action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
4717
4713
  error: { nullable: true },
4718
- result: {},
4714
+ result: { properties: {}, type: "object" },
4719
4715
  status: { enum: ["success"], type: "string" }
4720
4716
  },
4721
- required: ["action_attempt_id", "status", "error", "action_type"],
4717
+ required: [
4718
+ "action_attempt_id",
4719
+ "status",
4720
+ "error",
4721
+ "action_type",
4722
+ "result"
4723
+ ],
4722
4724
  type: "object"
4723
4725
  },
4724
4726
  {
@@ -4782,10 +4784,16 @@ var openapi_default = {
4782
4784
  },
4783
4785
  action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
4784
4786
  error: { nullable: true },
4785
- result: {},
4787
+ result: { properties: { access_code: {} }, type: "object" },
4786
4788
  status: { enum: ["success"], type: "string" }
4787
4789
  },
4788
- required: ["action_attempt_id", "status", "error", "action_type"],
4790
+ required: [
4791
+ "action_attempt_id",
4792
+ "status",
4793
+ "error",
4794
+ "action_type",
4795
+ "result"
4796
+ ],
4789
4797
  type: "object"
4790
4798
  },
4791
4799
  {
@@ -4849,10 +4857,16 @@ var openapi_default = {
4849
4857
  },
4850
4858
  action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
4851
4859
  error: { nullable: true },
4852
- result: {},
4860
+ result: { properties: {}, type: "object" },
4853
4861
  status: { enum: ["success"], type: "string" }
4854
4862
  },
4855
- required: ["action_attempt_id", "status", "error", "action_type"],
4863
+ required: [
4864
+ "action_attempt_id",
4865
+ "status",
4866
+ "error",
4867
+ "action_type",
4868
+ "result"
4869
+ ],
4856
4870
  type: "object"
4857
4871
  },
4858
4872
  {
@@ -4916,10 +4930,16 @@ var openapi_default = {
4916
4930
  },
4917
4931
  action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
4918
4932
  error: { nullable: true },
4919
- result: {},
4933
+ result: { properties: { access_code: {} }, type: "object" },
4920
4934
  status: { enum: ["success"], type: "string" }
4921
4935
  },
4922
- required: ["action_attempt_id", "status", "error", "action_type"],
4936
+ required: [
4937
+ "action_attempt_id",
4938
+ "status",
4939
+ "error",
4940
+ "action_type",
4941
+ "result"
4942
+ ],
4923
4943
  type: "object"
4924
4944
  },
4925
4945
  {
@@ -4983,10 +5003,16 @@ var openapi_default = {
4983
5003
  },
4984
5004
  action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
4985
5005
  error: { nullable: true },
4986
- result: {},
5006
+ result: { properties: { noise_threshold: {} }, type: "object" },
4987
5007
  status: { enum: ["success"], type: "string" }
4988
5008
  },
4989
- required: ["action_attempt_id", "status", "error", "action_type"],
5009
+ required: [
5010
+ "action_attempt_id",
5011
+ "status",
5012
+ "error",
5013
+ "action_type",
5014
+ "result"
5015
+ ],
4990
5016
  type: "object"
4991
5017
  },
4992
5018
  {
@@ -5050,10 +5076,16 @@ var openapi_default = {
5050
5076
  },
5051
5077
  action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
5052
5078
  error: { nullable: true },
5053
- result: {},
5079
+ result: { properties: {}, type: "object" },
5054
5080
  status: { enum: ["success"], type: "string" }
5055
5081
  },
5056
- required: ["action_attempt_id", "status", "error", "action_type"],
5082
+ required: [
5083
+ "action_attempt_id",
5084
+ "status",
5085
+ "error",
5086
+ "action_type",
5087
+ "result"
5088
+ ],
5057
5089
  type: "object"
5058
5090
  },
5059
5091
  {
@@ -5117,10 +5149,16 @@ var openapi_default = {
5117
5149
  },
5118
5150
  action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
5119
5151
  error: { nullable: true },
5120
- result: {},
5152
+ result: { properties: { noise_threshold: {} }, type: "object" },
5121
5153
  status: { enum: ["success"], type: "string" }
5122
5154
  },
5123
- required: ["action_attempt_id", "status", "error", "action_type"],
5155
+ required: [
5156
+ "action_attempt_id",
5157
+ "status",
5158
+ "error",
5159
+ "action_type",
5160
+ "result"
5161
+ ],
5124
5162
  type: "object"
5125
5163
  },
5126
5164
  {
@@ -5679,6 +5717,7 @@ var openapi_default = {
5679
5717
  properties: {
5680
5718
  akiles_metadata: {
5681
5719
  properties: {
5720
+ _member_group_id: { type: "string" },
5682
5721
  gadget_id: { type: "string" },
5683
5722
  gadget_name: { type: "string" }
5684
5723
  },