@seamapi/types 1.768.1 → 1.770.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 (35) hide show
  1. package/dist/connect.cjs +159 -35
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +834 -90
  4. package/dist/index.cjs +159 -35
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-grants/access-grant.d.ts +10 -10
  7. package/lib/seam/connect/models/access-grants/access-method.d.ts +6 -6
  8. package/lib/seam/connect/models/access-grants/access-method.js +2 -2
  9. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  10. package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -3
  11. package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
  12. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  13. package/lib/seam/connect/models/acs/acs-entrance.d.ts +6 -6
  14. package/lib/seam/connect/models/acs/acs-entrance.js +4 -4
  15. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  16. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +60 -0
  17. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +30 -0
  18. package/lib/seam/connect/models/action-attempts/encode-credential.js +22 -0
  19. package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
  20. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +30 -0
  21. package/lib/seam/connect/models/action-attempts/scan-credential.js +22 -0
  22. package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
  23. package/lib/seam/connect/models/batch.d.ts +101 -17
  24. package/lib/seam/connect/models/phones/phone-session.d.ts +16 -16
  25. package/lib/seam/connect/openapi.js +110 -26
  26. package/lib/seam/connect/openapi.js.map +1 -1
  27. package/lib/seam/connect/route-types.d.ts +662 -62
  28. package/package.json +1 -1
  29. package/src/lib/seam/connect/models/access-grants/access-method.ts +2 -2
  30. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +2 -2
  31. package/src/lib/seam/connect/models/acs/acs-entrance.ts +4 -4
  32. package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +34 -0
  33. package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +34 -0
  34. package/src/lib/seam/connect/openapi.ts +122 -26
  35. package/src/lib/seam/connect/route-types.ts +782 -62
package/dist/index.cjs CHANGED
@@ -2565,8 +2565,8 @@ zod.z.object({
2565
2565
  });
2566
2566
  var requested_access_method = zod.z.object({
2567
2567
  display_name: zod.z.string().describe("Display name of the access method."),
2568
- mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
2569
- "Access method mode. Supported values: `code`, `card`, `mobile_key`."
2568
+ mode: zod.z.enum(["code", "card", "mobile_key", "cloud_key"]).describe(
2569
+ "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`."
2570
2570
  ),
2571
2571
  code: zod.z.string().min(4).max(9).regex(/^\d+$/, "Must only contain digits").optional().describe(
2572
2572
  "Specific PIN code to use for this access method. Only applicable when mode is 'code'."
@@ -2830,8 +2830,8 @@ var access_method = zod.z.object({
2830
2830
  workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
2831
2831
  access_method_id: zod.z.string().uuid().describe("ID of the access method."),
2832
2832
  display_name: zod.z.string().describe("Display name of the access method."),
2833
- mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
2834
- "Access method mode. Supported values: `code`, `card`, `mobile_key`."
2833
+ mode: zod.z.enum(["code", "card", "mobile_key", "cloud_key"]).describe(
2834
+ "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`."
2835
2835
  ),
2836
2836
  created_at: zod.z.string().datetime().describe("Date and time at which the access method was created."),
2837
2837
  issued_at: zod.z.string().datetime().nullable().describe("Date and time at which the access method was issued."),
@@ -3503,11 +3503,11 @@ var acs_entrance_capability_flags = zod.z.object({
3503
3503
  can_unlock_with_code: zod.z.boolean().optional().describe(
3504
3504
  "Indicates whether the ACS entrance can be unlocked with pin codes."
3505
3505
  ),
3506
+ can_unlock_with_cloud_key: zod.z.boolean().optional().describe(
3507
+ "Indicates whether the ACS entrance can be unlocked with cloud key credentials."
3508
+ ),
3506
3509
  can_belong_to_reservation: zod.z.boolean().optional().describe(
3507
3510
  "Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key."
3508
- ),
3509
- can_unlock_with_cloud_key: zod.z.boolean().optional().describe(
3510
- "Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential."
3511
3511
  )
3512
3512
  });
3513
3513
  var acs_entrance = zod.z.object({
@@ -4355,12 +4355,32 @@ var encoder_not_online_error = zod.z.object({
4355
4355
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4356
4356
  )
4357
4357
  }).describe("Error to indicate that the encoder is not online.");
4358
+ var encoder_timeout_error = zod.z.object({
4359
+ type: zod.z.literal("encoder_timeout_error").describe(
4360
+ "Error type to indicate that communication with the encoder timed out."
4361
+ ),
4362
+ message: zod.z.string().describe(
4363
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4364
+ )
4365
+ }).describe("Error to indicate that communication with the encoder timed out.");
4366
+ var bridge_disconnected_error = zod.z.object({
4367
+ type: zod.z.literal("bridge_disconnected").describe(
4368
+ "Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system."
4369
+ ),
4370
+ message: zod.z.string().describe(
4371
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4372
+ )
4373
+ }).describe(
4374
+ "Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system."
4375
+ );
4358
4376
  var error4 = zod.z.union([
4359
4377
  ...common_action_attempt_errors,
4360
4378
  no_credential_on_encoder_error,
4361
4379
  incompatible_card_format_error,
4362
4380
  credential_cannot_be_reissued,
4363
- encoder_not_online_error
4381
+ encoder_not_online_error,
4382
+ encoder_timeout_error,
4383
+ bridge_disconnected_error
4364
4384
  ]);
4365
4385
  var result4 = acs_credential.or(unmanaged_acs_credential).describe(
4366
4386
  "Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card."
@@ -4467,10 +4487,30 @@ var encoder_not_online_error2 = zod.z.object({
4467
4487
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4468
4488
  )
4469
4489
  }).describe("Error to indicate that the encoder is not online.");
4490
+ var encoder_timeout_error2 = zod.z.object({
4491
+ type: zod.z.literal("encoder_timeout_error").describe(
4492
+ "Error type to indicate that communication with the encoder timed out."
4493
+ ),
4494
+ message: zod.z.string().describe(
4495
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4496
+ )
4497
+ }).describe("Error to indicate that communication with the encoder timed out.");
4498
+ var bridge_disconnected_error2 = zod.z.object({
4499
+ type: zod.z.literal("bridge_disconnected").describe(
4500
+ "Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system."
4501
+ ),
4502
+ message: zod.z.string().describe(
4503
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
4504
+ )
4505
+ }).describe(
4506
+ "Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system."
4507
+ );
4470
4508
  var error8 = zod.z.union([
4471
4509
  ...common_action_attempt_errors,
4472
4510
  no_credential_on_encoder_error2,
4473
- encoder_not_online_error2
4511
+ encoder_not_online_error2,
4512
+ encoder_timeout_error2,
4513
+ bridge_disconnected_error2
4474
4514
  ]);
4475
4515
  var warning = zod.z.object({
4476
4516
  warning_code: zod.z.union([
@@ -8442,8 +8482,8 @@ var openapi_default = {
8442
8482
  type: "integer"
8443
8483
  },
8444
8484
  mode: {
8445
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
8446
- enum: ["code", "card", "mobile_key"],
8485
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
8486
+ enum: ["code", "card", "mobile_key", "cloud_key"],
8447
8487
  type: "string"
8448
8488
  }
8449
8489
  },
@@ -8734,8 +8774,8 @@ var openapi_default = {
8734
8774
  type: "string"
8735
8775
  },
8736
8776
  mode: {
8737
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
8738
- enum: ["code", "card", "mobile_key"],
8777
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
8778
+ enum: ["code", "card", "mobile_key", "cloud_key"],
8739
8779
  type: "string"
8740
8780
  },
8741
8781
  pending_mutations: {
@@ -10050,7 +10090,7 @@ var openapi_default = {
10050
10090
  type: "boolean"
10051
10091
  },
10052
10092
  can_unlock_with_cloud_key: {
10053
- description: "Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.",
10093
+ description: "Indicates whether the ACS entrance can be unlocked with cloud key credentials.",
10054
10094
  type: "boolean"
10055
10095
  },
10056
10096
  can_unlock_with_code: {
@@ -12665,6 +12705,38 @@ var openapi_default = {
12665
12705
  },
12666
12706
  required: ["type", "message"],
12667
12707
  type: "object"
12708
+ },
12709
+ {
12710
+ description: "Error to indicate that communication with the encoder timed out.",
12711
+ properties: {
12712
+ message: {
12713
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
12714
+ type: "string"
12715
+ },
12716
+ type: {
12717
+ description: "Error type to indicate that communication with the encoder timed out.",
12718
+ enum: ["encoder_timeout_error"],
12719
+ type: "string"
12720
+ }
12721
+ },
12722
+ required: ["type", "message"],
12723
+ type: "object"
12724
+ },
12725
+ {
12726
+ description: "Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.",
12727
+ properties: {
12728
+ message: {
12729
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
12730
+ type: "string"
12731
+ },
12732
+ type: {
12733
+ description: "Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.",
12734
+ enum: ["bridge_disconnected"],
12735
+ type: "string"
12736
+ }
12737
+ },
12738
+ required: ["type", "message"],
12739
+ type: "object"
12668
12740
  }
12669
12741
  ]
12670
12742
  },
@@ -13637,6 +13709,38 @@ var openapi_default = {
13637
13709
  },
13638
13710
  required: ["type", "message"],
13639
13711
  type: "object"
13712
+ },
13713
+ {
13714
+ description: "Error to indicate that communication with the encoder timed out.",
13715
+ properties: {
13716
+ message: {
13717
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
13718
+ type: "string"
13719
+ },
13720
+ type: {
13721
+ description: "Error type to indicate that communication with the encoder timed out.",
13722
+ enum: ["encoder_timeout_error"],
13723
+ type: "string"
13724
+ }
13725
+ },
13726
+ required: ["type", "message"],
13727
+ type: "object"
13728
+ },
13729
+ {
13730
+ description: "Error to indicate that the Seam Bridge is disconnected or cannot reach the access control system.",
13731
+ properties: {
13732
+ message: {
13733
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
13734
+ type: "string"
13735
+ },
13736
+ type: {
13737
+ description: "Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.",
13738
+ enum: ["bridge_disconnected"],
13739
+ type: "string"
13740
+ }
13741
+ },
13742
+ required: ["type", "message"],
13743
+ type: "object"
13640
13744
  }
13641
13745
  ]
13642
13746
  },
@@ -28479,7 +28583,7 @@ var openapi_default = {
28479
28583
  type: "boolean"
28480
28584
  },
28481
28585
  can_unlock_with_cloud_key: {
28482
- description: "Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.",
28586
+ description: "Indicates whether the ACS entrance can be unlocked with cloud key credentials.",
28483
28587
  type: "boolean"
28484
28588
  },
28485
28589
  can_unlock_with_code: {
@@ -37285,8 +37389,8 @@ var openapi_default = {
37285
37389
  type: "integer"
37286
37390
  },
37287
37391
  mode: {
37288
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
37289
- enum: ["code", "card", "mobile_key"],
37392
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
37393
+ enum: ["code", "card", "mobile_key", "cloud_key"],
37290
37394
  type: "string"
37291
37395
  }
37292
37396
  },
@@ -38132,8 +38236,8 @@ var openapi_default = {
38132
38236
  type: "integer"
38133
38237
  },
38134
38238
  mode: {
38135
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
38136
- enum: ["code", "card", "mobile_key"],
38239
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
38240
+ enum: ["code", "card", "mobile_key", "cloud_key"],
38137
38241
  type: "string"
38138
38242
  }
38139
38243
  },
@@ -38454,8 +38558,13 @@ var openapi_default = {
38454
38558
  type: "integer"
38455
38559
  },
38456
38560
  mode: {
38457
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
38458
- enum: ["code", "card", "mobile_key"],
38561
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
38562
+ enum: [
38563
+ "code",
38564
+ "card",
38565
+ "mobile_key",
38566
+ "cloud_key"
38567
+ ],
38459
38568
  type: "string"
38460
38569
  }
38461
38570
  },
@@ -39004,8 +39113,13 @@ var openapi_default = {
39004
39113
  type: "integer"
39005
39114
  },
39006
39115
  mode: {
39007
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
39008
- enum: ["code", "card", "mobile_key"],
39116
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
39117
+ enum: [
39118
+ "code",
39119
+ "card",
39120
+ "mobile_key",
39121
+ "cloud_key"
39122
+ ],
39009
39123
  type: "string"
39010
39124
  }
39011
39125
  },
@@ -39596,8 +39710,13 @@ var openapi_default = {
39596
39710
  type: "integer"
39597
39711
  },
39598
39712
  mode: {
39599
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
39600
- enum: ["code", "card", "mobile_key"],
39713
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
39714
+ enum: [
39715
+ "code",
39716
+ "card",
39717
+ "mobile_key",
39718
+ "cloud_key"
39719
+ ],
39601
39720
  type: "string"
39602
39721
  }
39603
39722
  },
@@ -40174,8 +40293,13 @@ var openapi_default = {
40174
40293
  type: "integer"
40175
40294
  },
40176
40295
  mode: {
40177
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
40178
- enum: ["code", "card", "mobile_key"],
40296
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
40297
+ enum: [
40298
+ "code",
40299
+ "card",
40300
+ "mobile_key",
40301
+ "cloud_key"
40302
+ ],
40179
40303
  type: "string"
40180
40304
  }
40181
40305
  },
@@ -41499,8 +41623,8 @@ var openapi_default = {
41499
41623
  type: "string"
41500
41624
  },
41501
41625
  mode: {
41502
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
41503
- enum: ["code", "card", "mobile_key"],
41626
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
41627
+ enum: ["code", "card", "mobile_key", "cloud_key"],
41504
41628
  type: "string"
41505
41629
  },
41506
41630
  pending_mutations: {
@@ -41895,8 +42019,8 @@ var openapi_default = {
41895
42019
  type: "string"
41896
42020
  },
41897
42021
  mode: {
41898
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
41899
- enum: ["code", "card", "mobile_key"],
42022
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
42023
+ enum: ["code", "card", "mobile_key", "cloud_key"],
41900
42024
  type: "string"
41901
42025
  },
41902
42026
  pending_mutations: {
@@ -42319,8 +42443,8 @@ var openapi_default = {
42319
42443
  type: "string"
42320
42444
  },
42321
42445
  mode: {
42322
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
42323
- enum: ["code", "card", "mobile_key"],
42446
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
42447
+ enum: ["code", "card", "mobile_key", "cloud_key"],
42324
42448
  type: "string"
42325
42449
  },
42326
42450
  pending_mutations: {
@@ -42734,8 +42858,8 @@ var openapi_default = {
42734
42858
  type: "string"
42735
42859
  },
42736
42860
  mode: {
42737
- description: "Access method mode. Supported values: `code`, `card`, `mobile_key`.",
42738
- enum: ["code", "card", "mobile_key"],
42861
+ description: "Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.",
42862
+ enum: ["code", "card", "mobile_key", "cloud_key"],
42739
42863
  type: "string"
42740
42864
  },
42741
42865
  pending_mutations: {