@seamapi/types 1.313.0 → 1.314.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.
package/dist/connect.cjs CHANGED
@@ -1151,7 +1151,8 @@ var acs_access_group_external_type = zod.z.enum([
1151
1151
  "pti_unit",
1152
1152
  "pti_access_level",
1153
1153
  "salto_ks_access_group",
1154
- "brivo_group"
1154
+ "brivo_group",
1155
+ "salto_space_group"
1155
1156
  ]);
1156
1157
  var common_acs_access_group = zod.z.object({
1157
1158
  acs_access_group_id: zod.z.string().uuid().describe("ID of the access group."),
@@ -1929,8 +1930,8 @@ var deprecated_action_attempts = [
1929
1930
  ...update_noise_threshold_action_attempt.options
1930
1931
  ];
1931
1932
  var action_type2 = zod.z.literal("ENCODE_CREDENTIAL");
1932
- var no_card_on_encoder_error = zod.z.object({
1933
- type: zod.z.literal("no_card_on_encoder"),
1933
+ var no_credential_on_encoder_error = zod.z.object({
1934
+ type: zod.z.literal("no_credential_on_encoder"),
1934
1935
  message: zod.z.string()
1935
1936
  });
1936
1937
  var incompatible_card_format_error = zod.z.object({
@@ -1939,7 +1940,7 @@ var incompatible_card_format_error = zod.z.object({
1939
1940
  });
1940
1941
  var error3 = zod.z.union([
1941
1942
  ...common_action_attempt_errors,
1942
- no_card_on_encoder_error,
1943
+ no_credential_on_encoder_error,
1943
1944
  incompatible_card_format_error
1944
1945
  ]);
1945
1946
  var result3 = acs_credential.or(unmanaged_acs_credential);
@@ -1992,13 +1993,13 @@ var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
1992
1993
  ]
1993
1994
  );
1994
1995
  var action_type5 = zod.z.literal("SCAN_CREDENTIAL");
1995
- var no_card_on_encoder_error2 = zod.z.object({
1996
- type: zod.z.literal("no_card_on_encoder"),
1996
+ var no_credential_on_encoder_error2 = zod.z.object({
1997
+ type: zod.z.literal("no_credential_on_encoder"),
1997
1998
  message: zod.z.string()
1998
1999
  });
1999
2000
  var error6 = zod.z.union([
2000
2001
  ...common_action_attempt_errors,
2001
- no_card_on_encoder_error2
2002
+ no_credential_on_encoder_error2
2002
2003
  ]);
2003
2004
  var warning = zod.z.object({
2004
2005
  warning_code: zod.z.union([
@@ -3005,7 +3006,8 @@ var openapi_default = {
3005
3006
  "pti_unit",
3006
3007
  "pti_access_level",
3007
3008
  "salto_ks_access_group",
3008
- "brivo_group"
3009
+ "brivo_group",
3010
+ "salto_space_group"
3009
3011
  ],
3010
3012
  type: "string",
3011
3013
  "x-deprecated": "Use `external_type`."
@@ -3037,7 +3039,8 @@ var openapi_default = {
3037
3039
  "pti_unit",
3038
3040
  "pti_access_level",
3039
3041
  "salto_ks_access_group",
3040
- "brivo_group"
3042
+ "brivo_group",
3043
+ "salto_space_group"
3041
3044
  ],
3042
3045
  type: "string"
3043
3046
  },
@@ -4963,7 +4966,10 @@ var openapi_default = {
4963
4966
  {
4964
4967
  properties: {
4965
4968
  message: { type: "string" },
4966
- type: { enum: ["no_card_on_encoder"], type: "string" }
4969
+ type: {
4970
+ enum: ["no_credential_on_encoder"],
4971
+ type: "string"
4972
+ }
4967
4973
  },
4968
4974
  required: ["type", "message"],
4969
4975
  type: "object"
@@ -5590,7 +5596,10 @@ var openapi_default = {
5590
5596
  {
5591
5597
  properties: {
5592
5598
  message: { type: "string" },
5593
- type: { enum: ["no_card_on_encoder"], type: "string" }
5599
+ type: {
5600
+ enum: ["no_credential_on_encoder"],
5601
+ type: "string"
5602
+ }
5594
5603
  },
5595
5604
  required: ["type", "message"],
5596
5605
  type: "object"
@@ -14487,7 +14496,8 @@ var openapi_default = {
14487
14496
  "pti_unit",
14488
14497
  "pti_access_level",
14489
14498
  "salto_ks_access_group",
14490
- "brivo_group"
14499
+ "brivo_group",
14500
+ "salto_space_group"
14491
14501
  ],
14492
14502
  type: "string",
14493
14503
  "x-deprecated": "Use `external_type`."
@@ -14519,7 +14529,8 @@ var openapi_default = {
14519
14529
  "pti_unit",
14520
14530
  "pti_access_level",
14521
14531
  "salto_ks_access_group",
14522
- "brivo_group"
14532
+ "brivo_group",
14533
+ "salto_space_group"
14523
14534
  ],
14524
14535
  type: "string"
14525
14536
  },
@@ -14619,7 +14630,8 @@ var openapi_default = {
14619
14630
  "pti_unit",
14620
14631
  "pti_access_level",
14621
14632
  "salto_ks_access_group",
14622
- "brivo_group"
14633
+ "brivo_group",
14634
+ "salto_space_group"
14623
14635
  ],
14624
14636
  type: "string",
14625
14637
  "x-deprecated": "Use `external_type`."
@@ -14651,7 +14663,8 @@ var openapi_default = {
14651
14663
  "pti_unit",
14652
14664
  "pti_access_level",
14653
14665
  "salto_ks_access_group",
14654
- "brivo_group"
14666
+ "brivo_group",
14667
+ "salto_space_group"
14655
14668
  ],
14656
14669
  type: "string"
14657
14670
  },
@@ -16428,7 +16441,7 @@ var openapi_default = {
16428
16441
  "x-fern-sdk-method-name": "encode_credential",
16429
16442
  "x-fern-sdk-return-value": "action_attempt",
16430
16443
  "x-response-key": "action_attempt",
16431
- "x-undocumented": "Encoding a card is currently unimplemented."
16444
+ "x-undocumented": "Encoders are in alpha."
16432
16445
  }
16433
16446
  },
16434
16447
  "/acs/encoders/list": {
@@ -16633,7 +16646,283 @@ var openapi_default = {
16633
16646
  "x-fern-sdk-method-name": "scan_credential",
16634
16647
  "x-fern-sdk-return-value": "action_attempt",
16635
16648
  "x-response-key": "action_attempt",
16636
- "x-undocumented": "Reading a card is currently unimplemented."
16649
+ "x-undocumented": "Encoders are in alpha."
16650
+ }
16651
+ },
16652
+ "/acs/encoders/simulate/next_credential_encode_will_fail": {
16653
+ post: {
16654
+ operationId: "acsEncodersSimulateNextCredentialEncodeWillFailPost",
16655
+ requestBody: {
16656
+ content: {
16657
+ "application/json": {
16658
+ schema: {
16659
+ oneOf: [
16660
+ {
16661
+ additionalProperties: false,
16662
+ properties: {
16663
+ acs_encoder_id: { format: "uuid", type: "string" },
16664
+ error_code: {
16665
+ default: "no_credential_on_encoder",
16666
+ enum: ["no_credential_on_encoder"],
16667
+ type: "string"
16668
+ }
16669
+ },
16670
+ required: ["acs_encoder_id"],
16671
+ type: "object"
16672
+ },
16673
+ {
16674
+ additionalProperties: false,
16675
+ properties: {
16676
+ acs_credential_id: { format: "uuid", type: "string" },
16677
+ acs_encoder_id: { format: "uuid", type: "string" },
16678
+ error_code: {
16679
+ enum: ["uncategorized_error", "action_attempt_expired"],
16680
+ type: "string"
16681
+ }
16682
+ },
16683
+ required: ["acs_encoder_id", "error_code"],
16684
+ type: "object"
16685
+ }
16686
+ ]
16687
+ }
16688
+ }
16689
+ }
16690
+ },
16691
+ responses: {
16692
+ 200: {
16693
+ content: {
16694
+ "application/json": {
16695
+ schema: {
16696
+ properties: { ok: { type: "boolean" } },
16697
+ required: ["ok"],
16698
+ type: "object"
16699
+ }
16700
+ }
16701
+ },
16702
+ description: "OK"
16703
+ },
16704
+ 400: { description: "Bad Request" },
16705
+ 401: { description: "Unauthorized" }
16706
+ },
16707
+ security: [
16708
+ { api_key: [] },
16709
+ { pat_with_workspace: [] },
16710
+ { console_session_with_workspace: [] }
16711
+ ],
16712
+ summary: "/acs/encoders/simulate/next_credential_encode_will_fail",
16713
+ tags: ["/acs"],
16714
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16715
+ "x-fern-sdk-method-name": "next_credential_encode_will_fail",
16716
+ "x-response-key": null,
16717
+ "x-undocumented": "Encoder simulations are in alpha."
16718
+ }
16719
+ },
16720
+ "/acs/encoders/simulate/next_credential_encode_will_succeed": {
16721
+ post: {
16722
+ operationId: "acsEncodersSimulateNextCredentialEncodeWillSucceedPost",
16723
+ requestBody: {
16724
+ content: {
16725
+ "application/json": {
16726
+ schema: {
16727
+ additionalProperties: false,
16728
+ properties: {
16729
+ acs_encoder_id: { format: "uuid", type: "string" },
16730
+ scenario: {
16731
+ default: "credential_is_issued",
16732
+ enum: ["credential_is_issued"],
16733
+ type: "string"
16734
+ }
16735
+ },
16736
+ required: ["acs_encoder_id"],
16737
+ type: "object"
16738
+ }
16739
+ }
16740
+ }
16741
+ },
16742
+ responses: {
16743
+ 200: {
16744
+ content: {
16745
+ "application/json": {
16746
+ schema: {
16747
+ properties: { ok: { type: "boolean" } },
16748
+ required: ["ok"],
16749
+ type: "object"
16750
+ }
16751
+ }
16752
+ },
16753
+ description: "OK"
16754
+ },
16755
+ 400: { description: "Bad Request" },
16756
+ 401: { description: "Unauthorized" }
16757
+ },
16758
+ security: [
16759
+ { api_key: [] },
16760
+ { pat_with_workspace: [] },
16761
+ { console_session_with_workspace: [] }
16762
+ ],
16763
+ summary: "/acs/encoders/simulate/next_credential_encode_will_succeed",
16764
+ tags: ["/acs"],
16765
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16766
+ "x-fern-sdk-method-name": "next_credential_encode_will_succeed",
16767
+ "x-response-key": null,
16768
+ "x-undocumented": "Encoder simulations are in alpha."
16769
+ }
16770
+ },
16771
+ "/acs/encoders/simulate/next_credential_scan_will_fail": {
16772
+ post: {
16773
+ operationId: "acsEncodersSimulateNextCredentialScanWillFailPost",
16774
+ requestBody: {
16775
+ content: {
16776
+ "application/json": {
16777
+ schema: {
16778
+ oneOf: [
16779
+ {
16780
+ additionalProperties: false,
16781
+ properties: {
16782
+ acs_encoder_id: { format: "uuid", type: "string" },
16783
+ error_code: {
16784
+ default: "no_credential_on_encoder",
16785
+ enum: ["no_credential_on_encoder"],
16786
+ type: "string"
16787
+ }
16788
+ },
16789
+ required: ["acs_encoder_id"],
16790
+ type: "object"
16791
+ },
16792
+ {
16793
+ additionalProperties: false,
16794
+ properties: {
16795
+ acs_credential_id_on_seam: {
16796
+ format: "uuid",
16797
+ type: "string"
16798
+ },
16799
+ acs_encoder_id: { format: "uuid", type: "string" },
16800
+ error_code: {
16801
+ enum: ["uncategorized_error", "action_attempt_expired"],
16802
+ type: "string"
16803
+ }
16804
+ },
16805
+ required: ["acs_encoder_id", "error_code"],
16806
+ type: "object"
16807
+ }
16808
+ ]
16809
+ }
16810
+ }
16811
+ }
16812
+ },
16813
+ responses: {
16814
+ 200: {
16815
+ content: {
16816
+ "application/json": {
16817
+ schema: {
16818
+ properties: { ok: { type: "boolean" } },
16819
+ required: ["ok"],
16820
+ type: "object"
16821
+ }
16822
+ }
16823
+ },
16824
+ description: "OK"
16825
+ },
16826
+ 400: { description: "Bad Request" },
16827
+ 401: { description: "Unauthorized" }
16828
+ },
16829
+ security: [
16830
+ { api_key: [] },
16831
+ { pat_with_workspace: [] },
16832
+ { console_session_with_workspace: [] }
16833
+ ],
16834
+ summary: "/acs/encoders/simulate/next_credential_scan_will_fail",
16835
+ tags: ["/acs"],
16836
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16837
+ "x-fern-sdk-method-name": "next_credential_scan_will_fail",
16838
+ "x-response-key": null,
16839
+ "x-undocumented": "Encoder simulations are in alpha."
16840
+ }
16841
+ },
16842
+ "/acs/encoders/simulate/next_credential_scan_will_succeed": {
16843
+ post: {
16844
+ operationId: "acsEncodersSimulateNextCredentialScanWillSucceedPost",
16845
+ requestBody: {
16846
+ content: {
16847
+ "application/json": {
16848
+ schema: {
16849
+ oneOf: [
16850
+ {
16851
+ additionalProperties: false,
16852
+ properties: {
16853
+ acs_credential_id_on_seam: {
16854
+ format: "uuid",
16855
+ type: "string"
16856
+ },
16857
+ acs_encoder_id: { format: "uuid", type: "string" },
16858
+ scenario: {
16859
+ default: "credential_exists_on_seam",
16860
+ enum: [
16861
+ "credential_exists_on_seam",
16862
+ "credential_on_encoder_needs_update"
16863
+ ],
16864
+ type: "string"
16865
+ }
16866
+ },
16867
+ required: ["acs_encoder_id"],
16868
+ type: "object"
16869
+ },
16870
+ {
16871
+ additionalProperties: false,
16872
+ properties: {
16873
+ acs_encoder_id: { format: "uuid", type: "string" },
16874
+ scenario: {
16875
+ enum: ["credential_does_not_exist_on_seam"],
16876
+ type: "string"
16877
+ }
16878
+ },
16879
+ required: ["acs_encoder_id", "scenario"],
16880
+ type: "object"
16881
+ },
16882
+ {
16883
+ additionalProperties: false,
16884
+ properties: {
16885
+ acs_encoder_id: { format: "uuid", type: "string" },
16886
+ scenario: {
16887
+ enum: ["credential_on_encoder_is_empty"],
16888
+ type: "string"
16889
+ }
16890
+ },
16891
+ required: ["acs_encoder_id", "scenario"],
16892
+ type: "object"
16893
+ }
16894
+ ]
16895
+ }
16896
+ }
16897
+ }
16898
+ },
16899
+ responses: {
16900
+ 200: {
16901
+ content: {
16902
+ "application/json": {
16903
+ schema: {
16904
+ properties: { ok: { type: "boolean" } },
16905
+ required: ["ok"],
16906
+ type: "object"
16907
+ }
16908
+ }
16909
+ },
16910
+ description: "OK"
16911
+ },
16912
+ 400: { description: "Bad Request" },
16913
+ 401: { description: "Unauthorized" }
16914
+ },
16915
+ security: [
16916
+ { api_key: [] },
16917
+ { pat_with_workspace: [] },
16918
+ { console_session_with_workspace: [] }
16919
+ ],
16920
+ summary: "/acs/encoders/simulate/next_credential_scan_will_succeed",
16921
+ tags: ["/acs"],
16922
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16923
+ "x-fern-sdk-method-name": "next_credential_scan_will_succeed",
16924
+ "x-response-key": null,
16925
+ "x-undocumented": "Encoder simulations are in alpha."
16637
16926
  }
16638
16927
  },
16639
16928
  "/acs/entrances/get": {