@seamapi/types 1.313.0 → 1.313.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.
package/dist/connect.cjs CHANGED
@@ -1929,8 +1929,8 @@ var deprecated_action_attempts = [
1929
1929
  ...update_noise_threshold_action_attempt.options
1930
1930
  ];
1931
1931
  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"),
1932
+ var no_credential_on_encoder_error = zod.z.object({
1933
+ type: zod.z.literal("no_credential_on_encoder"),
1934
1934
  message: zod.z.string()
1935
1935
  });
1936
1936
  var incompatible_card_format_error = zod.z.object({
@@ -1939,7 +1939,7 @@ var incompatible_card_format_error = zod.z.object({
1939
1939
  });
1940
1940
  var error3 = zod.z.union([
1941
1941
  ...common_action_attempt_errors,
1942
- no_card_on_encoder_error,
1942
+ no_credential_on_encoder_error,
1943
1943
  incompatible_card_format_error
1944
1944
  ]);
1945
1945
  var result3 = acs_credential.or(unmanaged_acs_credential);
@@ -1992,13 +1992,13 @@ var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
1992
1992
  ]
1993
1993
  );
1994
1994
  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"),
1995
+ var no_credential_on_encoder_error2 = zod.z.object({
1996
+ type: zod.z.literal("no_credential_on_encoder"),
1997
1997
  message: zod.z.string()
1998
1998
  });
1999
1999
  var error6 = zod.z.union([
2000
2000
  ...common_action_attempt_errors,
2001
- no_card_on_encoder_error2
2001
+ no_credential_on_encoder_error2
2002
2002
  ]);
2003
2003
  var warning = zod.z.object({
2004
2004
  warning_code: zod.z.union([
@@ -4963,7 +4963,10 @@ var openapi_default = {
4963
4963
  {
4964
4964
  properties: {
4965
4965
  message: { type: "string" },
4966
- type: { enum: ["no_card_on_encoder"], type: "string" }
4966
+ type: {
4967
+ enum: ["no_credential_on_encoder"],
4968
+ type: "string"
4969
+ }
4967
4970
  },
4968
4971
  required: ["type", "message"],
4969
4972
  type: "object"
@@ -5590,7 +5593,10 @@ var openapi_default = {
5590
5593
  {
5591
5594
  properties: {
5592
5595
  message: { type: "string" },
5593
- type: { enum: ["no_card_on_encoder"], type: "string" }
5596
+ type: {
5597
+ enum: ["no_credential_on_encoder"],
5598
+ type: "string"
5599
+ }
5594
5600
  },
5595
5601
  required: ["type", "message"],
5596
5602
  type: "object"
@@ -16428,7 +16434,7 @@ var openapi_default = {
16428
16434
  "x-fern-sdk-method-name": "encode_credential",
16429
16435
  "x-fern-sdk-return-value": "action_attempt",
16430
16436
  "x-response-key": "action_attempt",
16431
- "x-undocumented": "Encoding a card is currently unimplemented."
16437
+ "x-undocumented": "Encoders are in alpha."
16432
16438
  }
16433
16439
  },
16434
16440
  "/acs/encoders/list": {
@@ -16633,7 +16639,283 @@ var openapi_default = {
16633
16639
  "x-fern-sdk-method-name": "scan_credential",
16634
16640
  "x-fern-sdk-return-value": "action_attempt",
16635
16641
  "x-response-key": "action_attempt",
16636
- "x-undocumented": "Reading a card is currently unimplemented."
16642
+ "x-undocumented": "Encoders are in alpha."
16643
+ }
16644
+ },
16645
+ "/acs/encoders/simulate/next_credential_encode_will_fail": {
16646
+ post: {
16647
+ operationId: "acsEncodersSimulateNextCredentialEncodeWillFailPost",
16648
+ requestBody: {
16649
+ content: {
16650
+ "application/json": {
16651
+ schema: {
16652
+ oneOf: [
16653
+ {
16654
+ additionalProperties: false,
16655
+ properties: {
16656
+ acs_encoder_id: { format: "uuid", type: "string" },
16657
+ error_code: {
16658
+ default: "no_credential_on_encoder",
16659
+ enum: ["no_credential_on_encoder"],
16660
+ type: "string"
16661
+ }
16662
+ },
16663
+ required: ["acs_encoder_id"],
16664
+ type: "object"
16665
+ },
16666
+ {
16667
+ additionalProperties: false,
16668
+ properties: {
16669
+ acs_credential_id: { format: "uuid", type: "string" },
16670
+ acs_encoder_id: { format: "uuid", type: "string" },
16671
+ error_code: {
16672
+ enum: ["uncategorized_error", "action_attempt_expired"],
16673
+ type: "string"
16674
+ }
16675
+ },
16676
+ required: ["acs_encoder_id", "error_code"],
16677
+ type: "object"
16678
+ }
16679
+ ]
16680
+ }
16681
+ }
16682
+ }
16683
+ },
16684
+ responses: {
16685
+ 200: {
16686
+ content: {
16687
+ "application/json": {
16688
+ schema: {
16689
+ properties: { ok: { type: "boolean" } },
16690
+ required: ["ok"],
16691
+ type: "object"
16692
+ }
16693
+ }
16694
+ },
16695
+ description: "OK"
16696
+ },
16697
+ 400: { description: "Bad Request" },
16698
+ 401: { description: "Unauthorized" }
16699
+ },
16700
+ security: [
16701
+ { api_key: [] },
16702
+ { pat_with_workspace: [] },
16703
+ { console_session_with_workspace: [] }
16704
+ ],
16705
+ summary: "/acs/encoders/simulate/next_credential_encode_will_fail",
16706
+ tags: ["/acs"],
16707
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16708
+ "x-fern-sdk-method-name": "next_credential_encode_will_fail",
16709
+ "x-response-key": null,
16710
+ "x-undocumented": "Encoder simulations are in alpha."
16711
+ }
16712
+ },
16713
+ "/acs/encoders/simulate/next_credential_encode_will_succeed": {
16714
+ post: {
16715
+ operationId: "acsEncodersSimulateNextCredentialEncodeWillSucceedPost",
16716
+ requestBody: {
16717
+ content: {
16718
+ "application/json": {
16719
+ schema: {
16720
+ additionalProperties: false,
16721
+ properties: {
16722
+ acs_encoder_id: { format: "uuid", type: "string" },
16723
+ scenario: {
16724
+ default: "credential_is_issued",
16725
+ enum: ["credential_is_issued"],
16726
+ type: "string"
16727
+ }
16728
+ },
16729
+ required: ["acs_encoder_id"],
16730
+ type: "object"
16731
+ }
16732
+ }
16733
+ }
16734
+ },
16735
+ responses: {
16736
+ 200: {
16737
+ content: {
16738
+ "application/json": {
16739
+ schema: {
16740
+ properties: { ok: { type: "boolean" } },
16741
+ required: ["ok"],
16742
+ type: "object"
16743
+ }
16744
+ }
16745
+ },
16746
+ description: "OK"
16747
+ },
16748
+ 400: { description: "Bad Request" },
16749
+ 401: { description: "Unauthorized" }
16750
+ },
16751
+ security: [
16752
+ { api_key: [] },
16753
+ { pat_with_workspace: [] },
16754
+ { console_session_with_workspace: [] }
16755
+ ],
16756
+ summary: "/acs/encoders/simulate/next_credential_encode_will_succeed",
16757
+ tags: ["/acs"],
16758
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16759
+ "x-fern-sdk-method-name": "next_credential_encode_will_succeed",
16760
+ "x-response-key": null,
16761
+ "x-undocumented": "Encoder simulations are in alpha."
16762
+ }
16763
+ },
16764
+ "/acs/encoders/simulate/next_credential_scan_will_fail": {
16765
+ post: {
16766
+ operationId: "acsEncodersSimulateNextCredentialScanWillFailPost",
16767
+ requestBody: {
16768
+ content: {
16769
+ "application/json": {
16770
+ schema: {
16771
+ oneOf: [
16772
+ {
16773
+ additionalProperties: false,
16774
+ properties: {
16775
+ acs_encoder_id: { format: "uuid", type: "string" },
16776
+ error_code: {
16777
+ default: "no_credential_on_encoder",
16778
+ enum: ["no_credential_on_encoder"],
16779
+ type: "string"
16780
+ }
16781
+ },
16782
+ required: ["acs_encoder_id"],
16783
+ type: "object"
16784
+ },
16785
+ {
16786
+ additionalProperties: false,
16787
+ properties: {
16788
+ acs_credential_id_on_seam: {
16789
+ format: "uuid",
16790
+ type: "string"
16791
+ },
16792
+ acs_encoder_id: { format: "uuid", type: "string" },
16793
+ error_code: {
16794
+ enum: ["uncategorized_error", "action_attempt_expired"],
16795
+ type: "string"
16796
+ }
16797
+ },
16798
+ required: ["acs_encoder_id", "error_code"],
16799
+ type: "object"
16800
+ }
16801
+ ]
16802
+ }
16803
+ }
16804
+ }
16805
+ },
16806
+ responses: {
16807
+ 200: {
16808
+ content: {
16809
+ "application/json": {
16810
+ schema: {
16811
+ properties: { ok: { type: "boolean" } },
16812
+ required: ["ok"],
16813
+ type: "object"
16814
+ }
16815
+ }
16816
+ },
16817
+ description: "OK"
16818
+ },
16819
+ 400: { description: "Bad Request" },
16820
+ 401: { description: "Unauthorized" }
16821
+ },
16822
+ security: [
16823
+ { api_key: [] },
16824
+ { pat_with_workspace: [] },
16825
+ { console_session_with_workspace: [] }
16826
+ ],
16827
+ summary: "/acs/encoders/simulate/next_credential_scan_will_fail",
16828
+ tags: ["/acs"],
16829
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16830
+ "x-fern-sdk-method-name": "next_credential_scan_will_fail",
16831
+ "x-response-key": null,
16832
+ "x-undocumented": "Encoder simulations are in alpha."
16833
+ }
16834
+ },
16835
+ "/acs/encoders/simulate/next_credential_scan_will_succeed": {
16836
+ post: {
16837
+ operationId: "acsEncodersSimulateNextCredentialScanWillSucceedPost",
16838
+ requestBody: {
16839
+ content: {
16840
+ "application/json": {
16841
+ schema: {
16842
+ oneOf: [
16843
+ {
16844
+ additionalProperties: false,
16845
+ properties: {
16846
+ acs_credential_id_on_seam: {
16847
+ format: "uuid",
16848
+ type: "string"
16849
+ },
16850
+ acs_encoder_id: { format: "uuid", type: "string" },
16851
+ scenario: {
16852
+ default: "credential_exists_on_seam",
16853
+ enum: [
16854
+ "credential_exists_on_seam",
16855
+ "credential_on_encoder_needs_update"
16856
+ ],
16857
+ type: "string"
16858
+ }
16859
+ },
16860
+ required: ["acs_encoder_id"],
16861
+ type: "object"
16862
+ },
16863
+ {
16864
+ additionalProperties: false,
16865
+ properties: {
16866
+ acs_encoder_id: { format: "uuid", type: "string" },
16867
+ scenario: {
16868
+ enum: ["credential_does_not_exist_on_seam"],
16869
+ type: "string"
16870
+ }
16871
+ },
16872
+ required: ["acs_encoder_id", "scenario"],
16873
+ type: "object"
16874
+ },
16875
+ {
16876
+ additionalProperties: false,
16877
+ properties: {
16878
+ acs_encoder_id: { format: "uuid", type: "string" },
16879
+ scenario: {
16880
+ enum: ["credential_on_encoder_is_empty"],
16881
+ type: "string"
16882
+ }
16883
+ },
16884
+ required: ["acs_encoder_id", "scenario"],
16885
+ type: "object"
16886
+ }
16887
+ ]
16888
+ }
16889
+ }
16890
+ }
16891
+ },
16892
+ responses: {
16893
+ 200: {
16894
+ content: {
16895
+ "application/json": {
16896
+ schema: {
16897
+ properties: { ok: { type: "boolean" } },
16898
+ required: ["ok"],
16899
+ type: "object"
16900
+ }
16901
+ }
16902
+ },
16903
+ description: "OK"
16904
+ },
16905
+ 400: { description: "Bad Request" },
16906
+ 401: { description: "Unauthorized" }
16907
+ },
16908
+ security: [
16909
+ { api_key: [] },
16910
+ { pat_with_workspace: [] },
16911
+ { console_session_with_workspace: [] }
16912
+ ],
16913
+ summary: "/acs/encoders/simulate/next_credential_scan_will_succeed",
16914
+ tags: ["/acs"],
16915
+ "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
16916
+ "x-fern-sdk-method-name": "next_credential_scan_will_succeed",
16917
+ "x-response-key": null,
16918
+ "x-undocumented": "Encoder simulations are in alpha."
16637
16919
  }
16638
16920
  },
16639
16921
  "/acs/entrances/get": {