@seamapi/types 1.879.0 → 1.880.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.
@@ -9598,6 +9598,550 @@ const openapi: OpenAPISpec = {
9598
9598
  ],
9599
9599
  type: 'object',
9600
9600
  },
9601
+ {
9602
+ description:
9603
+ 'Assigning a credential to an access method is pending.',
9604
+ properties: {
9605
+ action_attempt_id: {
9606
+ description: 'ID of the action attempt.',
9607
+ format: 'uuid',
9608
+ type: 'string',
9609
+ },
9610
+ action_type: {
9611
+ description:
9612
+ 'Action attempt to track the status of assigning an existing credential to an access method.',
9613
+ enum: ['ASSIGN_CREDENTIAL'],
9614
+ type: 'string',
9615
+ },
9616
+ error: {
9617
+ description:
9618
+ 'Errors associated with the action attempt. Null for pending action attempts.',
9619
+ nullable: true,
9620
+ },
9621
+ result: {
9622
+ description:
9623
+ 'Result of the action attempt. Null for pending action attempts.',
9624
+ nullable: true,
9625
+ },
9626
+ status: { enum: ['pending'], type: 'string' },
9627
+ },
9628
+ required: [
9629
+ 'action_attempt_id',
9630
+ 'status',
9631
+ 'result',
9632
+ 'error',
9633
+ 'action_type',
9634
+ ],
9635
+ type: 'object',
9636
+ },
9637
+ {
9638
+ description:
9639
+ 'Assigning a credential to an access method succeeded.',
9640
+ properties: {
9641
+ action_attempt_id: {
9642
+ description: 'ID of the action attempt.',
9643
+ format: 'uuid',
9644
+ type: 'string',
9645
+ },
9646
+ action_type: {
9647
+ description:
9648
+ 'Action attempt to track the status of assigning an existing credential to an access method.',
9649
+ enum: ['ASSIGN_CREDENTIAL'],
9650
+ type: 'string',
9651
+ },
9652
+ error: {
9653
+ description:
9654
+ 'Errors associated with the action attempt. Null for successful action attempts.',
9655
+ nullable: true,
9656
+ },
9657
+ result: {
9658
+ description:
9659
+ 'Result of an assignment attempt. If the attempt was successful, includes the updated access method with the assigned credential.',
9660
+ properties: {
9661
+ access_method_id: {
9662
+ description: 'ID of the access method.',
9663
+ format: 'uuid',
9664
+ type: 'string',
9665
+ },
9666
+ client_session_token: {
9667
+ description:
9668
+ 'Token of the client session associated with the access method.',
9669
+ type: 'string',
9670
+ },
9671
+ code: {
9672
+ description: 'The actual PIN code for code access methods.',
9673
+ nullable: true,
9674
+ type: 'string',
9675
+ },
9676
+ created_at: {
9677
+ description:
9678
+ 'Date and time at which the access method was created.',
9679
+ format: 'date-time',
9680
+ type: 'string',
9681
+ },
9682
+ customization_profile_id: {
9683
+ description:
9684
+ 'ID of the customization profile associated with the access method.',
9685
+ format: 'uuid',
9686
+ type: 'string',
9687
+ },
9688
+ display_name: {
9689
+ description: 'Display name of the access method.',
9690
+ type: 'string',
9691
+ },
9692
+ instant_key_url: {
9693
+ description:
9694
+ 'URL of the Instant Key for mobile key access methods.',
9695
+ format: 'uri',
9696
+ type: 'string',
9697
+ },
9698
+ is_assignment_required: {
9699
+ description:
9700
+ 'Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.',
9701
+ type: 'boolean',
9702
+ },
9703
+ is_encoding_required: {
9704
+ description:
9705
+ 'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.',
9706
+ type: 'boolean',
9707
+ },
9708
+ is_issued: {
9709
+ description:
9710
+ 'Indicates whether the access method has been issued.',
9711
+ type: 'boolean',
9712
+ },
9713
+ is_ready_for_assignment: {
9714
+ description:
9715
+ 'Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.',
9716
+ type: 'boolean',
9717
+ },
9718
+ is_ready_for_encoding: {
9719
+ description:
9720
+ 'Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.',
9721
+ type: 'boolean',
9722
+ },
9723
+ issued_at: {
9724
+ description:
9725
+ 'Date and time at which the access method was issued.',
9726
+ format: 'date-time',
9727
+ nullable: true,
9728
+ type: 'string',
9729
+ },
9730
+ mode: {
9731
+ description:
9732
+ 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.',
9733
+ enum: ['code', 'card', 'mobile_key', 'cloud_key'],
9734
+ type: 'string',
9735
+ },
9736
+ pending_mutations: {
9737
+ description:
9738
+ 'Pending mutations for the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). Indicates operations that are in progress.',
9739
+ items: {
9740
+ discriminator: { propertyName: 'mutation_code' },
9741
+ oneOf: [
9742
+ {
9743
+ description:
9744
+ 'Seam is in the process of provisioning access for this access method on new devices.',
9745
+ properties: {
9746
+ created_at: {
9747
+ description:
9748
+ 'Date and time at which the mutation was created.',
9749
+ format: 'date-time',
9750
+ type: 'string',
9751
+ },
9752
+ from: {
9753
+ description: 'Previous device configuration.',
9754
+ properties: {
9755
+ device_ids: {
9756
+ description:
9757
+ 'Previous device IDs where access was provisioned.',
9758
+ items: { format: 'uuid', type: 'string' },
9759
+ type: 'array',
9760
+ },
9761
+ },
9762
+ required: ['device_ids'],
9763
+ type: 'object',
9764
+ },
9765
+ message: {
9766
+ description:
9767
+ 'Detailed description of the mutation.',
9768
+ type: 'string',
9769
+ },
9770
+ mutation_code: {
9771
+ description:
9772
+ 'Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices.',
9773
+ enum: ['provisioning_access'],
9774
+ type: 'string',
9775
+ },
9776
+ to: {
9777
+ description: 'New device configuration.',
9778
+ properties: {
9779
+ device_ids: {
9780
+ description:
9781
+ 'New device IDs where access is being provisioned.',
9782
+ items: { format: 'uuid', type: 'string' },
9783
+ type: 'array',
9784
+ },
9785
+ },
9786
+ required: ['device_ids'],
9787
+ type: 'object',
9788
+ },
9789
+ },
9790
+ required: [
9791
+ 'created_at',
9792
+ 'message',
9793
+ 'mutation_code',
9794
+ 'from',
9795
+ 'to',
9796
+ ],
9797
+ type: 'object',
9798
+ },
9799
+ {
9800
+ description:
9801
+ 'Seam is in the process of revoking access for this access method from devices.',
9802
+ properties: {
9803
+ created_at: {
9804
+ description:
9805
+ 'Date and time at which the mutation was created.',
9806
+ format: 'date-time',
9807
+ type: 'string',
9808
+ },
9809
+ from: {
9810
+ description: 'Previous device configuration.',
9811
+ properties: {
9812
+ device_ids: {
9813
+ description:
9814
+ 'Previous device IDs where access existed.',
9815
+ items: { format: 'uuid', type: 'string' },
9816
+ type: 'array',
9817
+ },
9818
+ },
9819
+ required: ['device_ids'],
9820
+ type: 'object',
9821
+ },
9822
+ message: {
9823
+ description:
9824
+ 'Detailed description of the mutation.',
9825
+ type: 'string',
9826
+ },
9827
+ mutation_code: {
9828
+ description:
9829
+ 'Mutation code to indicate that Seam is in the process of revoking access for this access method from devices.',
9830
+ enum: ['revoking_access'],
9831
+ type: 'string',
9832
+ },
9833
+ to: {
9834
+ description: 'New device configuration.',
9835
+ properties: {
9836
+ device_ids: {
9837
+ description:
9838
+ 'New device IDs where access should remain.',
9839
+ items: { format: 'uuid', type: 'string' },
9840
+ type: 'array',
9841
+ },
9842
+ },
9843
+ required: ['device_ids'],
9844
+ type: 'object',
9845
+ },
9846
+ },
9847
+ required: [
9848
+ 'created_at',
9849
+ 'message',
9850
+ 'mutation_code',
9851
+ 'from',
9852
+ 'to',
9853
+ ],
9854
+ type: 'object',
9855
+ },
9856
+ {
9857
+ description:
9858
+ 'Seam is in the process of updating the access times for this access method.',
9859
+ properties: {
9860
+ created_at: {
9861
+ description:
9862
+ 'Date and time at which the mutation was created.',
9863
+ format: 'date-time',
9864
+ type: 'string',
9865
+ },
9866
+ from: {
9867
+ description:
9868
+ 'Previous access time configuration.',
9869
+ properties: {
9870
+ ends_at: {
9871
+ description: 'Previous end time for access.',
9872
+ format: 'date-time',
9873
+ nullable: true,
9874
+ type: 'string',
9875
+ },
9876
+ starts_at: {
9877
+ description:
9878
+ 'Previous start time for access.',
9879
+ format: 'date-time',
9880
+ nullable: true,
9881
+ type: 'string',
9882
+ },
9883
+ },
9884
+ required: ['starts_at', 'ends_at'],
9885
+ type: 'object',
9886
+ },
9887
+ message: {
9888
+ description:
9889
+ 'Detailed description of the mutation.',
9890
+ type: 'string',
9891
+ },
9892
+ mutation_code: {
9893
+ description:
9894
+ 'Mutation code to indicate that Seam is in the process of updating the access times for this access method.',
9895
+ enum: ['updating_access_times'],
9896
+ type: 'string',
9897
+ },
9898
+ to: {
9899
+ description: 'New access time configuration.',
9900
+ properties: {
9901
+ ends_at: {
9902
+ description: 'New end time for access.',
9903
+ format: 'date-time',
9904
+ nullable: true,
9905
+ type: 'string',
9906
+ },
9907
+ starts_at: {
9908
+ description: 'New start time for access.',
9909
+ format: 'date-time',
9910
+ nullable: true,
9911
+ type: 'string',
9912
+ },
9913
+ },
9914
+ required: ['starts_at', 'ends_at'],
9915
+ type: 'object',
9916
+ },
9917
+ },
9918
+ required: [
9919
+ 'created_at',
9920
+ 'message',
9921
+ 'mutation_code',
9922
+ 'from',
9923
+ 'to',
9924
+ ],
9925
+ type: 'object',
9926
+ },
9927
+ ],
9928
+ },
9929
+ type: 'array',
9930
+ },
9931
+ warnings: {
9932
+ description:
9933
+ 'Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
9934
+ items: {
9935
+ description:
9936
+ 'Warning associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
9937
+ discriminator: { propertyName: 'warning_code' },
9938
+ oneOf: [
9939
+ {
9940
+ description:
9941
+ 'Indicates that the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) is being deleted.',
9942
+ properties: {
9943
+ created_at: {
9944
+ description:
9945
+ 'Date and time at which Seam created the warning.',
9946
+ format: 'date-time',
9947
+ type: 'string',
9948
+ },
9949
+ message: {
9950
+ description:
9951
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
9952
+ type: 'string',
9953
+ },
9954
+ warning_code: {
9955
+ description:
9956
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
9957
+ enum: ['being_deleted'],
9958
+ type: 'string',
9959
+ },
9960
+ },
9961
+ required: ['created_at', 'message', 'warning_code'],
9962
+ type: 'object',
9963
+ },
9964
+ {
9965
+ description:
9966
+ 'Indicates that the access times for this [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) are being updated.',
9967
+ properties: {
9968
+ created_at: {
9969
+ description:
9970
+ 'Date and time at which Seam created the warning.',
9971
+ format: 'date-time',
9972
+ type: 'string',
9973
+ },
9974
+ message: {
9975
+ description:
9976
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
9977
+ type: 'string',
9978
+ },
9979
+ warning_code: {
9980
+ description:
9981
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
9982
+ enum: ['updating_access_times'],
9983
+ type: 'string',
9984
+ },
9985
+ },
9986
+ required: ['created_at', 'message', 'warning_code'],
9987
+ type: 'object',
9988
+ },
9989
+ {
9990
+ description:
9991
+ 'Indicates that all attempts to create an access code on this device before the start time failed and a backup access code was used to ensure access was provided in time.',
9992
+ properties: {
9993
+ created_at: {
9994
+ description:
9995
+ 'Date and time at which Seam created the warning.',
9996
+ format: 'date-time',
9997
+ type: 'string',
9998
+ },
9999
+ message: {
10000
+ description:
10001
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
10002
+ type: 'string',
10003
+ },
10004
+ original_access_method_id: {
10005
+ description:
10006
+ 'ID of the original access method from which this backup access method was split, if applicable.',
10007
+ format: 'uuid',
10008
+ type: 'string',
10009
+ },
10010
+ warning_code: {
10011
+ description:
10012
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
10013
+ enum: ['pulled_backup_access_code'],
10014
+ type: 'string',
10015
+ },
10016
+ },
10017
+ required: ['created_at', 'message', 'warning_code'],
10018
+ type: 'object',
10019
+ },
10020
+ ],
10021
+ },
10022
+ type: 'array',
10023
+ },
10024
+ workspace_id: {
10025
+ description:
10026
+ 'ID of the Seam workspace associated with the access method.',
10027
+ format: 'uuid',
10028
+ type: 'string',
10029
+ },
10030
+ },
10031
+ required: [
10032
+ 'workspace_id',
10033
+ 'access_method_id',
10034
+ 'display_name',
10035
+ 'mode',
10036
+ 'created_at',
10037
+ 'issued_at',
10038
+ 'is_issued',
10039
+ 'warnings',
10040
+ 'pending_mutations',
10041
+ ],
10042
+ type: 'object',
10043
+ },
10044
+ status: { enum: ['success'], type: 'string' },
10045
+ },
10046
+ required: [
10047
+ 'action_attempt_id',
10048
+ 'status',
10049
+ 'error',
10050
+ 'action_type',
10051
+ 'result',
10052
+ ],
10053
+ type: 'object',
10054
+ },
10055
+ {
10056
+ description: 'Assigning a credential to an access method failed.',
10057
+ properties: {
10058
+ action_attempt_id: {
10059
+ description: 'ID of the action attempt.',
10060
+ format: 'uuid',
10061
+ type: 'string',
10062
+ },
10063
+ action_type: {
10064
+ description:
10065
+ 'Action attempt to track the status of assigning an existing credential to an access method.',
10066
+ enum: ['ASSIGN_CREDENTIAL'],
10067
+ type: 'string',
10068
+ },
10069
+ error: {
10070
+ oneOf: [
10071
+ {
10072
+ description:
10073
+ "Error that doesn't fit into other specific error categories.",
10074
+ properties: {
10075
+ message: {
10076
+ description:
10077
+ 'Message for the error associated with the action attempt.',
10078
+ type: 'string',
10079
+ },
10080
+ type: {
10081
+ description:
10082
+ 'Type of the error associated with the action attempt.',
10083
+ enum: ['uncategorized_error'],
10084
+ type: 'string',
10085
+ },
10086
+ },
10087
+ required: ['type', 'message'],
10088
+ type: 'object',
10089
+ },
10090
+ {
10091
+ description: 'Error to indicate an expired action attempt.',
10092
+ properties: {
10093
+ message: {
10094
+ description:
10095
+ 'Message for the error associated with the action attempt.',
10096
+ type: 'string',
10097
+ },
10098
+ type: {
10099
+ description:
10100
+ 'Type of the error associated with the action attempt.',
10101
+ enum: ['action_attempt_expired'],
10102
+ type: 'string',
10103
+ },
10104
+ },
10105
+ required: ['type', 'message'],
10106
+ type: 'object',
10107
+ },
10108
+ {
10109
+ description:
10110
+ 'Error to indicate that no matching credential was found.',
10111
+ properties: {
10112
+ message: {
10113
+ description:
10114
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
10115
+ type: 'string',
10116
+ },
10117
+ type: {
10118
+ description:
10119
+ 'Error type to indicate that no matching credential was found.',
10120
+ enum: ['credential_not_found'],
10121
+ type: 'string',
10122
+ },
10123
+ },
10124
+ required: ['type', 'message'],
10125
+ type: 'object',
10126
+ },
10127
+ ],
10128
+ },
10129
+ result: {
10130
+ description:
10131
+ 'Result of the action attempt. Null for failed action attempts.',
10132
+ nullable: true,
10133
+ },
10134
+ status: { enum: ['error'], type: 'string' },
10135
+ },
10136
+ required: [
10137
+ 'action_attempt_id',
10138
+ 'status',
10139
+ 'result',
10140
+ 'action_type',
10141
+ 'error',
10142
+ ],
10143
+ type: 'object',
10144
+ },
9601
10145
  {
9602
10146
  description: 'Resetting a sandbox workspace is pending.',
9603
10147
  properties: {
@@ -40707,7 +41251,7 @@ const openapi: OpenAPISpec = {
40707
41251
  '/access_methods/assign_card': {
40708
41252
  post: {
40709
41253
  description:
40710
- 'Assigns an existing card credential to a card-mode access method, identified by `card_number`.',
41254
+ 'Assigns a pre-registered card credential to a card-mode access method, identified by `card_number`. Use this endpoint for access systems that use pre-registered cards, where a physical card must be associated with an access method before it can be issued.',
40711
41255
  operationId: 'accessMethodsAssignCardPost',
40712
41256
  requestBody: {
40713
41257
  content: {
@@ -40716,13 +41260,12 @@ const openapi: OpenAPISpec = {
40716
41260
  properties: {
40717
41261
  access_method_id: {
40718
41262
  description:
40719
- 'ID of the card-mode `access_method` to assign the card to.',
41263
+ 'ID of the `access_method` to assign the credential to.',
40720
41264
  format: 'uuid',
40721
41265
  type: 'string',
40722
41266
  },
40723
41267
  card_number: {
40724
- description:
40725
- 'Card number of the card credential to assign.',
41268
+ description: 'Card number of the credential to assign.',
40726
41269
  type: 'string',
40727
41270
  },
40728
41271
  },
@@ -40738,12 +41281,12 @@ const openapi: OpenAPISpec = {
40738
41281
  'application/json': {
40739
41282
  schema: {
40740
41283
  properties: {
40741
- access_method: {
40742
- $ref: '#/components/schemas/access_method',
41284
+ action_attempt: {
41285
+ $ref: '#/components/schemas/action_attempt',
40743
41286
  },
40744
41287
  ok: { type: 'boolean' },
40745
41288
  },
40746
- required: ['access_method', 'ok'],
41289
+ required: ['action_attempt', 'ok'],
40747
41290
  type: 'object',
40748
41291
  },
40749
41292
  },
@@ -40760,11 +41303,12 @@ const openapi: OpenAPISpec = {
40760
41303
  ],
40761
41304
  summary: '/access_methods/assign_card',
40762
41305
  tags: [],
41306
+ 'x-action-attempt-type': 'ASSIGN_CREDENTIAL',
40763
41307
  'x-fern-sdk-group-name': ['access_methods'],
40764
41308
  'x-fern-sdk-method-name': 'assign_card',
40765
- 'x-fern-sdk-return-value': 'access_method',
40766
- 'x-response-key': 'access_method',
40767
- 'x-title': 'Assign a Card to an Access Method',
41309
+ 'x-fern-sdk-return-value': 'action_attempt',
41310
+ 'x-response-key': 'action_attempt',
41311
+ 'x-title': 'Assign a Card Credential to an Access Method',
40768
41312
  },
40769
41313
  },
40770
41314
  '/access_methods/delete': {