@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.
@@ -2135,7 +2135,10 @@ export default {
2135
2135
  {
2136
2136
  properties: {
2137
2137
  message: { type: 'string' },
2138
- type: { enum: ['no_card_on_encoder'], type: 'string' },
2138
+ type: {
2139
+ enum: ['no_credential_on_encoder'],
2140
+ type: 'string',
2141
+ },
2139
2142
  },
2140
2143
  required: ['type', 'message'],
2141
2144
  type: 'object',
@@ -2762,7 +2765,10 @@ export default {
2762
2765
  {
2763
2766
  properties: {
2764
2767
  message: { type: 'string' },
2765
- type: { enum: ['no_card_on_encoder'], type: 'string' },
2768
+ type: {
2769
+ enum: ['no_credential_on_encoder'],
2770
+ type: 'string',
2771
+ },
2766
2772
  },
2767
2773
  required: ['type', 'message'],
2768
2774
  type: 'object',
@@ -13600,7 +13606,7 @@ export default {
13600
13606
  'x-fern-sdk-method-name': 'encode_credential',
13601
13607
  'x-fern-sdk-return-value': 'action_attempt',
13602
13608
  'x-response-key': 'action_attempt',
13603
- 'x-undocumented': 'Encoding a card is currently unimplemented.',
13609
+ 'x-undocumented': 'Encoders are in alpha.',
13604
13610
  },
13605
13611
  },
13606
13612
  '/acs/encoders/list': {
@@ -13805,7 +13811,283 @@ export default {
13805
13811
  'x-fern-sdk-method-name': 'scan_credential',
13806
13812
  'x-fern-sdk-return-value': 'action_attempt',
13807
13813
  'x-response-key': 'action_attempt',
13808
- 'x-undocumented': 'Reading a card is currently unimplemented.',
13814
+ 'x-undocumented': 'Encoders are in alpha.',
13815
+ },
13816
+ },
13817
+ '/acs/encoders/simulate/next_credential_encode_will_fail': {
13818
+ post: {
13819
+ operationId: 'acsEncodersSimulateNextCredentialEncodeWillFailPost',
13820
+ requestBody: {
13821
+ content: {
13822
+ 'application/json': {
13823
+ schema: {
13824
+ oneOf: [
13825
+ {
13826
+ additionalProperties: false,
13827
+ properties: {
13828
+ acs_encoder_id: { format: 'uuid', type: 'string' },
13829
+ error_code: {
13830
+ default: 'no_credential_on_encoder',
13831
+ enum: ['no_credential_on_encoder'],
13832
+ type: 'string',
13833
+ },
13834
+ },
13835
+ required: ['acs_encoder_id'],
13836
+ type: 'object',
13837
+ },
13838
+ {
13839
+ additionalProperties: false,
13840
+ properties: {
13841
+ acs_credential_id: { format: 'uuid', type: 'string' },
13842
+ acs_encoder_id: { format: 'uuid', type: 'string' },
13843
+ error_code: {
13844
+ enum: ['uncategorized_error', 'action_attempt_expired'],
13845
+ type: 'string',
13846
+ },
13847
+ },
13848
+ required: ['acs_encoder_id', 'error_code'],
13849
+ type: 'object',
13850
+ },
13851
+ ],
13852
+ },
13853
+ },
13854
+ },
13855
+ },
13856
+ responses: {
13857
+ 200: {
13858
+ content: {
13859
+ 'application/json': {
13860
+ schema: {
13861
+ properties: { ok: { type: 'boolean' } },
13862
+ required: ['ok'],
13863
+ type: 'object',
13864
+ },
13865
+ },
13866
+ },
13867
+ description: 'OK',
13868
+ },
13869
+ 400: { description: 'Bad Request' },
13870
+ 401: { description: 'Unauthorized' },
13871
+ },
13872
+ security: [
13873
+ { api_key: [] },
13874
+ { pat_with_workspace: [] },
13875
+ { console_session_with_workspace: [] },
13876
+ ],
13877
+ summary: '/acs/encoders/simulate/next_credential_encode_will_fail',
13878
+ tags: ['/acs'],
13879
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
13880
+ 'x-fern-sdk-method-name': 'next_credential_encode_will_fail',
13881
+ 'x-response-key': null,
13882
+ 'x-undocumented': 'Encoder simulations are in alpha.',
13883
+ },
13884
+ },
13885
+ '/acs/encoders/simulate/next_credential_encode_will_succeed': {
13886
+ post: {
13887
+ operationId: 'acsEncodersSimulateNextCredentialEncodeWillSucceedPost',
13888
+ requestBody: {
13889
+ content: {
13890
+ 'application/json': {
13891
+ schema: {
13892
+ additionalProperties: false,
13893
+ properties: {
13894
+ acs_encoder_id: { format: 'uuid', type: 'string' },
13895
+ scenario: {
13896
+ default: 'credential_is_issued',
13897
+ enum: ['credential_is_issued'],
13898
+ type: 'string',
13899
+ },
13900
+ },
13901
+ required: ['acs_encoder_id'],
13902
+ type: 'object',
13903
+ },
13904
+ },
13905
+ },
13906
+ },
13907
+ responses: {
13908
+ 200: {
13909
+ content: {
13910
+ 'application/json': {
13911
+ schema: {
13912
+ properties: { ok: { type: 'boolean' } },
13913
+ required: ['ok'],
13914
+ type: 'object',
13915
+ },
13916
+ },
13917
+ },
13918
+ description: 'OK',
13919
+ },
13920
+ 400: { description: 'Bad Request' },
13921
+ 401: { description: 'Unauthorized' },
13922
+ },
13923
+ security: [
13924
+ { api_key: [] },
13925
+ { pat_with_workspace: [] },
13926
+ { console_session_with_workspace: [] },
13927
+ ],
13928
+ summary: '/acs/encoders/simulate/next_credential_encode_will_succeed',
13929
+ tags: ['/acs'],
13930
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
13931
+ 'x-fern-sdk-method-name': 'next_credential_encode_will_succeed',
13932
+ 'x-response-key': null,
13933
+ 'x-undocumented': 'Encoder simulations are in alpha.',
13934
+ },
13935
+ },
13936
+ '/acs/encoders/simulate/next_credential_scan_will_fail': {
13937
+ post: {
13938
+ operationId: 'acsEncodersSimulateNextCredentialScanWillFailPost',
13939
+ requestBody: {
13940
+ content: {
13941
+ 'application/json': {
13942
+ schema: {
13943
+ oneOf: [
13944
+ {
13945
+ additionalProperties: false,
13946
+ properties: {
13947
+ acs_encoder_id: { format: 'uuid', type: 'string' },
13948
+ error_code: {
13949
+ default: 'no_credential_on_encoder',
13950
+ enum: ['no_credential_on_encoder'],
13951
+ type: 'string',
13952
+ },
13953
+ },
13954
+ required: ['acs_encoder_id'],
13955
+ type: 'object',
13956
+ },
13957
+ {
13958
+ additionalProperties: false,
13959
+ properties: {
13960
+ acs_credential_id_on_seam: {
13961
+ format: 'uuid',
13962
+ type: 'string',
13963
+ },
13964
+ acs_encoder_id: { format: 'uuid', type: 'string' },
13965
+ error_code: {
13966
+ enum: ['uncategorized_error', 'action_attempt_expired'],
13967
+ type: 'string',
13968
+ },
13969
+ },
13970
+ required: ['acs_encoder_id', 'error_code'],
13971
+ type: 'object',
13972
+ },
13973
+ ],
13974
+ },
13975
+ },
13976
+ },
13977
+ },
13978
+ responses: {
13979
+ 200: {
13980
+ content: {
13981
+ 'application/json': {
13982
+ schema: {
13983
+ properties: { ok: { type: 'boolean' } },
13984
+ required: ['ok'],
13985
+ type: 'object',
13986
+ },
13987
+ },
13988
+ },
13989
+ description: 'OK',
13990
+ },
13991
+ 400: { description: 'Bad Request' },
13992
+ 401: { description: 'Unauthorized' },
13993
+ },
13994
+ security: [
13995
+ { api_key: [] },
13996
+ { pat_with_workspace: [] },
13997
+ { console_session_with_workspace: [] },
13998
+ ],
13999
+ summary: '/acs/encoders/simulate/next_credential_scan_will_fail',
14000
+ tags: ['/acs'],
14001
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
14002
+ 'x-fern-sdk-method-name': 'next_credential_scan_will_fail',
14003
+ 'x-response-key': null,
14004
+ 'x-undocumented': 'Encoder simulations are in alpha.',
14005
+ },
14006
+ },
14007
+ '/acs/encoders/simulate/next_credential_scan_will_succeed': {
14008
+ post: {
14009
+ operationId: 'acsEncodersSimulateNextCredentialScanWillSucceedPost',
14010
+ requestBody: {
14011
+ content: {
14012
+ 'application/json': {
14013
+ schema: {
14014
+ oneOf: [
14015
+ {
14016
+ additionalProperties: false,
14017
+ properties: {
14018
+ acs_credential_id_on_seam: {
14019
+ format: 'uuid',
14020
+ type: 'string',
14021
+ },
14022
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14023
+ scenario: {
14024
+ default: 'credential_exists_on_seam',
14025
+ enum: [
14026
+ 'credential_exists_on_seam',
14027
+ 'credential_on_encoder_needs_update',
14028
+ ],
14029
+ type: 'string',
14030
+ },
14031
+ },
14032
+ required: ['acs_encoder_id'],
14033
+ type: 'object',
14034
+ },
14035
+ {
14036
+ additionalProperties: false,
14037
+ properties: {
14038
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14039
+ scenario: {
14040
+ enum: ['credential_does_not_exist_on_seam'],
14041
+ type: 'string',
14042
+ },
14043
+ },
14044
+ required: ['acs_encoder_id', 'scenario'],
14045
+ type: 'object',
14046
+ },
14047
+ {
14048
+ additionalProperties: false,
14049
+ properties: {
14050
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14051
+ scenario: {
14052
+ enum: ['credential_on_encoder_is_empty'],
14053
+ type: 'string',
14054
+ },
14055
+ },
14056
+ required: ['acs_encoder_id', 'scenario'],
14057
+ type: 'object',
14058
+ },
14059
+ ],
14060
+ },
14061
+ },
14062
+ },
14063
+ },
14064
+ responses: {
14065
+ 200: {
14066
+ content: {
14067
+ 'application/json': {
14068
+ schema: {
14069
+ properties: { ok: { type: 'boolean' } },
14070
+ required: ['ok'],
14071
+ type: 'object',
14072
+ },
14073
+ },
14074
+ },
14075
+ description: 'OK',
14076
+ },
14077
+ 400: { description: 'Bad Request' },
14078
+ 401: { description: 'Unauthorized' },
14079
+ },
14080
+ security: [
14081
+ { api_key: [] },
14082
+ { pat_with_workspace: [] },
14083
+ { console_session_with_workspace: [] },
14084
+ ],
14085
+ summary: '/acs/encoders/simulate/next_credential_scan_will_succeed',
14086
+ tags: ['/acs'],
14087
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
14088
+ 'x-fern-sdk-method-name': 'next_credential_scan_will_succeed',
14089
+ 'x-response-key': null,
14090
+ 'x-undocumented': 'Encoder simulations are in alpha.',
13809
14091
  },
13810
14092
  },
13811
14093
  '/acs/entrances/get': {