@seamapi/types 1.282.0 → 1.284.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 (31) hide show
  1. package/dist/connect.cjs +85 -14
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +336 -79
  4. package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
  5. package/lib/seam/connect/models/acs/acs-system.js +3 -0
  6. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +62 -2
  8. package/lib/seam/connect/models/action-attempts/common.d.ts +19 -0
  9. package/lib/seam/connect/models/action-attempts/common.js +10 -0
  10. package/lib/seam/connect/models/action-attempts/common.js.map +1 -1
  11. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +30 -0
  12. package/lib/seam/connect/models/action-attempts/encode-card.js +2 -1
  13. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +32 -2
  15. package/lib/seam/connect/models/action-attempts/scan-card.js +6 -2
  16. package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
  17. package/lib/seam/connect/models/devices/device-provider.d.ts +4 -2
  18. package/lib/seam/connect/models/devices/device-provider.js +3 -2
  19. package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
  20. package/lib/seam/connect/openapi.d.ts +15 -60
  21. package/lib/seam/connect/openapi.js +60 -8
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +250 -10
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/models/acs/acs-system.ts +3 -0
  26. package/src/lib/seam/connect/models/action-attempts/common.ts +11 -0
  27. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +2 -0
  28. package/src/lib/seam/connect/models/action-attempts/scan-card.ts +7 -1
  29. package/src/lib/seam/connect/models/devices/device-provider.ts +3 -2
  30. package/src/lib/seam/connect/openapi.ts +60 -8
  31. package/src/lib/seam/connect/route-types.ts +450 -82
package/dist/connect.cjs CHANGED
@@ -892,6 +892,7 @@ var device = zod.z.object({
892
892
  }).merge(device_capability_flags2);
893
893
  var DEVICE_PROVIDERS = {
894
894
  DORMAKABA_COMMUNITY: "dormakaba_community",
895
+ LEGIC_CONNECT: "legic_connect",
895
896
  AKUVOX: "akuvox",
896
897
  AUGUST: "august",
897
898
  AVIGILON_ALTA: "avigilon_alta",
@@ -930,7 +931,8 @@ var DEVICE_PROVIDERS = {
930
931
  HONEYWELL_RESIDEO: "honeywell_resideo",
931
932
  LATCH: "latch",
932
933
  AKILES: "akiles",
933
- VOSTIO: "vostio"
934
+ VOSTIO: "assa_abloy_vostio",
935
+ VOSTIO_CREDENTIAL_SERVICE: "vostio_credential_service"
934
936
  };
935
937
  var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
936
938
  var PROVIDER_CATEGORY_MAP = {
@@ -981,7 +983,6 @@ var PROVIDER_CATEGORY_MAP = {
981
983
  "pti",
982
984
  "visionline",
983
985
  "assa_abloy_credential_service",
984
- "dormakaba_community",
985
986
  "latch",
986
987
  "salto"
987
988
  ],
@@ -1344,7 +1345,10 @@ var acs_system_external_type = zod.z.enum([
1344
1345
  "visionline_system",
1345
1346
  "assa_abloy_credential_service",
1346
1347
  "latch_building",
1347
- "dormakaba_community"
1348
+ "dormakaba_community",
1349
+ "legic_connect",
1350
+ "assa_abloy_vostio",
1351
+ "vostio_credential_service"
1348
1352
  ]);
1349
1353
  var common_acs_system_error = zod.z.object({
1350
1354
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
@@ -1638,6 +1642,16 @@ var common_failed_action_attempt = common_action_attempt.extend({
1638
1642
  status: zod.z.literal("error"),
1639
1643
  result: zod.z.null()
1640
1644
  });
1645
+ var common_action_attempt_errors = [
1646
+ zod.z.object({
1647
+ type: zod.z.literal("uncategorized_error"),
1648
+ message: zod.z.string()
1649
+ }),
1650
+ zod.z.object({
1651
+ type: zod.z.literal("action_attempt_expired"),
1652
+ message: zod.z.string()
1653
+ })
1654
+ ];
1641
1655
 
1642
1656
  // src/lib/seam/connect/models/action-attempts/activate-climate-preset.ts
1643
1657
  var action_type = zod.z.literal("ACTIVATE_CLIMATE_PRESET");
@@ -1782,6 +1796,7 @@ var incompatible_card_format_error = zod.z.object({
1782
1796
  message: zod.z.string()
1783
1797
  });
1784
1798
  var error3 = zod.z.union([
1799
+ ...common_action_attempt_errors,
1785
1800
  no_card_on_encoder_error,
1786
1801
  incompatible_card_format_error
1787
1802
  ]);
@@ -1835,10 +1850,14 @@ var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
1835
1850
  ]
1836
1851
  );
1837
1852
  var action_type5 = zod.z.literal("SCAN_CARD");
1838
- var error6 = zod.z.object({
1853
+ var no_card_on_encoder_error2 = zod.z.object({
1839
1854
  type: zod.z.literal("no_card_on_encoder"),
1840
1855
  message: zod.z.string()
1841
1856
  });
1857
+ var error6 = zod.z.union([
1858
+ ...common_action_attempt_errors,
1859
+ no_card_on_encoder_error2
1860
+ ]);
1842
1861
  var warning = zod.z.object({
1843
1862
  warning_code: zod.z.literal("acs_credential_on_encoder_out_of_sync"),
1844
1863
  warning_message: zod.z.string()
@@ -3356,7 +3375,10 @@ var openapi_default = {
3356
3375
  "visionline_system",
3357
3376
  "assa_abloy_credential_service",
3358
3377
  "latch_building",
3359
- "dormakaba_community"
3378
+ "dormakaba_community",
3379
+ "legic_connect",
3380
+ "assa_abloy_vostio",
3381
+ "vostio_credential_service"
3360
3382
  ],
3361
3383
  type: "string"
3362
3384
  },
@@ -3388,7 +3410,10 @@ var openapi_default = {
3388
3410
  "visionline_system",
3389
3411
  "assa_abloy_credential_service",
3390
3412
  "latch_building",
3391
- "dormakaba_community"
3413
+ "dormakaba_community",
3414
+ "legic_connect",
3415
+ "assa_abloy_vostio",
3416
+ "vostio_credential_service"
3392
3417
  ],
3393
3418
  type: "string",
3394
3419
  "x-deprecated": "Use `external_type`."
@@ -4355,12 +4380,35 @@ var openapi_default = {
4355
4380
  },
4356
4381
  action_type: { enum: ["SCAN_CARD"], type: "string" },
4357
4382
  error: {
4358
- properties: {
4359
- message: { type: "string" },
4360
- type: { enum: ["no_card_on_encoder"], type: "string" }
4361
- },
4362
- required: ["type", "message"],
4363
- type: "object"
4383
+ oneOf: [
4384
+ {
4385
+ properties: {
4386
+ message: { type: "string" },
4387
+ type: { enum: ["uncategorized_error"], type: "string" }
4388
+ },
4389
+ required: ["type", "message"],
4390
+ type: "object"
4391
+ },
4392
+ {
4393
+ properties: {
4394
+ message: { type: "string" },
4395
+ type: {
4396
+ enum: ["action_attempt_expired"],
4397
+ type: "string"
4398
+ }
4399
+ },
4400
+ required: ["type", "message"],
4401
+ type: "object"
4402
+ },
4403
+ {
4404
+ properties: {
4405
+ message: { type: "string" },
4406
+ type: { enum: ["no_card_on_encoder"], type: "string" }
4407
+ },
4408
+ required: ["type", "message"],
4409
+ type: "object"
4410
+ }
4411
+ ]
4364
4412
  },
4365
4413
  result: { nullable: true },
4366
4414
  status: { enum: ["error"], type: "string" }
@@ -4754,6 +4802,25 @@ var openapi_default = {
4754
4802
  action_type: { enum: ["ENCODE_CARD"], type: "string" },
4755
4803
  error: {
4756
4804
  oneOf: [
4805
+ {
4806
+ properties: {
4807
+ message: { type: "string" },
4808
+ type: { enum: ["uncategorized_error"], type: "string" }
4809
+ },
4810
+ required: ["type", "message"],
4811
+ type: "object"
4812
+ },
4813
+ {
4814
+ properties: {
4815
+ message: { type: "string" },
4816
+ type: {
4817
+ enum: ["action_attempt_expired"],
4818
+ type: "string"
4819
+ }
4820
+ },
4821
+ required: ["type", "message"],
4822
+ type: "object"
4823
+ },
4757
4824
  {
4758
4825
  properties: {
4759
4826
  message: { type: "string" },
@@ -7297,6 +7364,7 @@ var openapi_default = {
7297
7364
  device_provider_name: {
7298
7365
  enum: [
7299
7366
  "dormakaba_community",
7367
+ "legic_connect",
7300
7368
  "akuvox",
7301
7369
  "august",
7302
7370
  "avigilon_alta",
@@ -7335,7 +7403,8 @@ var openapi_default = {
7335
7403
  "honeywell_resideo",
7336
7404
  "latch",
7337
7405
  "akiles",
7338
- "vostio"
7406
+ "assa_abloy_vostio",
7407
+ "vostio_credential_service"
7339
7408
  ],
7340
7409
  type: "string"
7341
7410
  },
@@ -14137,6 +14206,7 @@ var openapi_default = {
14137
14206
  items: {
14138
14207
  enum: [
14139
14208
  "dormakaba_community",
14209
+ "legic_connect",
14140
14210
  "akuvox",
14141
14211
  "august",
14142
14212
  "avigilon_alta",
@@ -14175,7 +14245,8 @@ var openapi_default = {
14175
14245
  "honeywell_resideo",
14176
14246
  "latch",
14177
14247
  "akiles",
14178
- "vostio",
14248
+ "assa_abloy_vostio",
14249
+ "vostio_credential_service",
14179
14250
  "yale_access",
14180
14251
  "hid_cm",
14181
14252
  "google_nest"