@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.
@@ -2342,7 +2342,10 @@ export default {
2342
2342
  {
2343
2343
  properties: {
2344
2344
  message: { type: 'string' },
2345
- type: { enum: ['no_card_on_encoder'], type: 'string' },
2345
+ type: {
2346
+ enum: ['no_credential_on_encoder'],
2347
+ type: 'string',
2348
+ },
2346
2349
  },
2347
2350
  required: ['type', 'message'],
2348
2351
  type: 'object',
@@ -3042,7 +3045,10 @@ export default {
3042
3045
  {
3043
3046
  properties: {
3044
3047
  message: { type: 'string' },
3045
- type: { enum: ['no_card_on_encoder'], type: 'string' },
3048
+ type: {
3049
+ enum: ['no_credential_on_encoder'],
3050
+ type: 'string',
3051
+ },
3046
3052
  },
3047
3053
  required: ['type', 'message'],
3048
3054
  type: 'object',
@@ -14320,7 +14326,7 @@ export default {
14320
14326
  'x-fern-sdk-method-name': 'encode_credential',
14321
14327
  'x-fern-sdk-return-value': 'action_attempt',
14322
14328
  'x-response-key': 'action_attempt',
14323
- 'x-undocumented': 'Encoding a card is currently unimplemented.',
14329
+ 'x-undocumented': 'Encoders are in alpha.',
14324
14330
  },
14325
14331
  },
14326
14332
  '/acs/encoders/list': {
@@ -14534,7 +14540,283 @@ export default {
14534
14540
  'x-fern-sdk-method-name': 'scan_credential',
14535
14541
  'x-fern-sdk-return-value': 'action_attempt',
14536
14542
  'x-response-key': 'action_attempt',
14537
- 'x-undocumented': 'Reading a card is currently unimplemented.',
14543
+ 'x-undocumented': 'Encoders are in alpha.',
14544
+ },
14545
+ },
14546
+ '/acs/encoders/simulate/next_credential_encode_will_fail': {
14547
+ post: {
14548
+ operationId: 'acsEncodersSimulateNextCredentialEncodeWillFailPost',
14549
+ requestBody: {
14550
+ content: {
14551
+ 'application/json': {
14552
+ schema: {
14553
+ oneOf: [
14554
+ {
14555
+ additionalProperties: false,
14556
+ properties: {
14557
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14558
+ error_code: {
14559
+ default: 'no_credential_on_encoder',
14560
+ enum: ['no_credential_on_encoder'],
14561
+ type: 'string',
14562
+ },
14563
+ },
14564
+ required: ['acs_encoder_id'],
14565
+ type: 'object',
14566
+ },
14567
+ {
14568
+ additionalProperties: false,
14569
+ properties: {
14570
+ acs_credential_id: { format: 'uuid', type: 'string' },
14571
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14572
+ error_code: {
14573
+ enum: ['uncategorized_error', 'action_attempt_expired'],
14574
+ type: 'string',
14575
+ },
14576
+ },
14577
+ required: ['acs_encoder_id', 'error_code'],
14578
+ type: 'object',
14579
+ },
14580
+ ],
14581
+ },
14582
+ },
14583
+ },
14584
+ },
14585
+ responses: {
14586
+ 200: {
14587
+ content: {
14588
+ 'application/json': {
14589
+ schema: {
14590
+ properties: { ok: { type: 'boolean' } },
14591
+ required: ['ok'],
14592
+ type: 'object',
14593
+ },
14594
+ },
14595
+ },
14596
+ description: 'OK',
14597
+ },
14598
+ 400: { description: 'Bad Request' },
14599
+ 401: { description: 'Unauthorized' },
14600
+ },
14601
+ security: [
14602
+ { api_key: [] },
14603
+ { pat_with_workspace: [] },
14604
+ { console_session_with_workspace: [] },
14605
+ ],
14606
+ summary: '/acs/encoders/simulate/next_credential_encode_will_fail',
14607
+ tags: ['/acs'],
14608
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
14609
+ 'x-fern-sdk-method-name': 'next_credential_encode_will_fail',
14610
+ 'x-response-key': null,
14611
+ 'x-undocumented': 'Encoder simulations are in alpha.',
14612
+ },
14613
+ },
14614
+ '/acs/encoders/simulate/next_credential_encode_will_succeed': {
14615
+ post: {
14616
+ operationId: 'acsEncodersSimulateNextCredentialEncodeWillSucceedPost',
14617
+ requestBody: {
14618
+ content: {
14619
+ 'application/json': {
14620
+ schema: {
14621
+ additionalProperties: false,
14622
+ properties: {
14623
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14624
+ scenario: {
14625
+ default: 'credential_is_issued',
14626
+ enum: ['credential_is_issued'],
14627
+ type: 'string',
14628
+ },
14629
+ },
14630
+ required: ['acs_encoder_id'],
14631
+ type: 'object',
14632
+ },
14633
+ },
14634
+ },
14635
+ },
14636
+ responses: {
14637
+ 200: {
14638
+ content: {
14639
+ 'application/json': {
14640
+ schema: {
14641
+ properties: { ok: { type: 'boolean' } },
14642
+ required: ['ok'],
14643
+ type: 'object',
14644
+ },
14645
+ },
14646
+ },
14647
+ description: 'OK',
14648
+ },
14649
+ 400: { description: 'Bad Request' },
14650
+ 401: { description: 'Unauthorized' },
14651
+ },
14652
+ security: [
14653
+ { api_key: [] },
14654
+ { pat_with_workspace: [] },
14655
+ { console_session_with_workspace: [] },
14656
+ ],
14657
+ summary: '/acs/encoders/simulate/next_credential_encode_will_succeed',
14658
+ tags: ['/acs'],
14659
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
14660
+ 'x-fern-sdk-method-name': 'next_credential_encode_will_succeed',
14661
+ 'x-response-key': null,
14662
+ 'x-undocumented': 'Encoder simulations are in alpha.',
14663
+ },
14664
+ },
14665
+ '/acs/encoders/simulate/next_credential_scan_will_fail': {
14666
+ post: {
14667
+ operationId: 'acsEncodersSimulateNextCredentialScanWillFailPost',
14668
+ requestBody: {
14669
+ content: {
14670
+ 'application/json': {
14671
+ schema: {
14672
+ oneOf: [
14673
+ {
14674
+ additionalProperties: false,
14675
+ properties: {
14676
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14677
+ error_code: {
14678
+ default: 'no_credential_on_encoder',
14679
+ enum: ['no_credential_on_encoder'],
14680
+ type: 'string',
14681
+ },
14682
+ },
14683
+ required: ['acs_encoder_id'],
14684
+ type: 'object',
14685
+ },
14686
+ {
14687
+ additionalProperties: false,
14688
+ properties: {
14689
+ acs_credential_id_on_seam: {
14690
+ format: 'uuid',
14691
+ type: 'string',
14692
+ },
14693
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14694
+ error_code: {
14695
+ enum: ['uncategorized_error', 'action_attempt_expired'],
14696
+ type: 'string',
14697
+ },
14698
+ },
14699
+ required: ['acs_encoder_id', 'error_code'],
14700
+ type: 'object',
14701
+ },
14702
+ ],
14703
+ },
14704
+ },
14705
+ },
14706
+ },
14707
+ responses: {
14708
+ 200: {
14709
+ content: {
14710
+ 'application/json': {
14711
+ schema: {
14712
+ properties: { ok: { type: 'boolean' } },
14713
+ required: ['ok'],
14714
+ type: 'object',
14715
+ },
14716
+ },
14717
+ },
14718
+ description: 'OK',
14719
+ },
14720
+ 400: { description: 'Bad Request' },
14721
+ 401: { description: 'Unauthorized' },
14722
+ },
14723
+ security: [
14724
+ { api_key: [] },
14725
+ { pat_with_workspace: [] },
14726
+ { console_session_with_workspace: [] },
14727
+ ],
14728
+ summary: '/acs/encoders/simulate/next_credential_scan_will_fail',
14729
+ tags: ['/acs'],
14730
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
14731
+ 'x-fern-sdk-method-name': 'next_credential_scan_will_fail',
14732
+ 'x-response-key': null,
14733
+ 'x-undocumented': 'Encoder simulations are in alpha.',
14734
+ },
14735
+ },
14736
+ '/acs/encoders/simulate/next_credential_scan_will_succeed': {
14737
+ post: {
14738
+ operationId: 'acsEncodersSimulateNextCredentialScanWillSucceedPost',
14739
+ requestBody: {
14740
+ content: {
14741
+ 'application/json': {
14742
+ schema: {
14743
+ oneOf: [
14744
+ {
14745
+ additionalProperties: false,
14746
+ properties: {
14747
+ acs_credential_id_on_seam: {
14748
+ format: 'uuid',
14749
+ type: 'string',
14750
+ },
14751
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14752
+ scenario: {
14753
+ default: 'credential_exists_on_seam',
14754
+ enum: [
14755
+ 'credential_exists_on_seam',
14756
+ 'credential_on_encoder_needs_update',
14757
+ ],
14758
+ type: 'string',
14759
+ },
14760
+ },
14761
+ required: ['acs_encoder_id'],
14762
+ type: 'object',
14763
+ },
14764
+ {
14765
+ additionalProperties: false,
14766
+ properties: {
14767
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14768
+ scenario: {
14769
+ enum: ['credential_does_not_exist_on_seam'],
14770
+ type: 'string',
14771
+ },
14772
+ },
14773
+ required: ['acs_encoder_id', 'scenario'],
14774
+ type: 'object',
14775
+ },
14776
+ {
14777
+ additionalProperties: false,
14778
+ properties: {
14779
+ acs_encoder_id: { format: 'uuid', type: 'string' },
14780
+ scenario: {
14781
+ enum: ['credential_on_encoder_is_empty'],
14782
+ type: 'string',
14783
+ },
14784
+ },
14785
+ required: ['acs_encoder_id', 'scenario'],
14786
+ type: 'object',
14787
+ },
14788
+ ],
14789
+ },
14790
+ },
14791
+ },
14792
+ },
14793
+ responses: {
14794
+ 200: {
14795
+ content: {
14796
+ 'application/json': {
14797
+ schema: {
14798
+ properties: { ok: { type: 'boolean' } },
14799
+ required: ['ok'],
14800
+ type: 'object',
14801
+ },
14802
+ },
14803
+ },
14804
+ description: 'OK',
14805
+ },
14806
+ 400: { description: 'Bad Request' },
14807
+ 401: { description: 'Unauthorized' },
14808
+ },
14809
+ security: [
14810
+ { api_key: [] },
14811
+ { pat_with_workspace: [] },
14812
+ { console_session_with_workspace: [] },
14813
+ ],
14814
+ summary: '/acs/encoders/simulate/next_credential_scan_will_succeed',
14815
+ tags: ['/acs'],
14816
+ 'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
14817
+ 'x-fern-sdk-method-name': 'next_credential_scan_will_succeed',
14818
+ 'x-response-key': null,
14819
+ 'x-undocumented': 'Encoder simulations are in alpha.',
14538
14820
  },
14539
14821
  },
14540
14822
  '/acs/entrances/get': {