@seamapi/types 1.879.0 → 1.881.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 +621 -110
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +7363 -252
- package/dist/index.cjs +621 -110
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +544 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/assign-credential.d.ts +547 -0
- package/lib/seam/connect/models/action-attempts/assign-credential.js +38 -0
- package/lib/seam/connect/models/action-attempts/assign-credential.js.map +1 -0
- package/lib/seam/connect/openapi.js +492 -10
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7015 -448
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/assign-credential.ts +60 -0
- package/src/lib/seam/connect/openapi.ts +557 -12
- package/src/lib/seam/connect/route-types.ts +7437 -164
|
@@ -8394,6 +8394,486 @@ const openapi = {
|
|
|
8394
8394
|
],
|
|
8395
8395
|
type: 'object',
|
|
8396
8396
|
},
|
|
8397
|
+
{
|
|
8398
|
+
description: 'Assigning a credential to an access method is pending.',
|
|
8399
|
+
properties: {
|
|
8400
|
+
action_attempt_id: {
|
|
8401
|
+
description: 'ID of the action attempt.',
|
|
8402
|
+
format: 'uuid',
|
|
8403
|
+
type: 'string',
|
|
8404
|
+
},
|
|
8405
|
+
action_type: {
|
|
8406
|
+
description: 'Action attempt to track the status of assigning an existing credential to an access method.',
|
|
8407
|
+
enum: ['ASSIGN_CREDENTIAL'],
|
|
8408
|
+
type: 'string',
|
|
8409
|
+
},
|
|
8410
|
+
error: {
|
|
8411
|
+
description: 'Errors associated with the action attempt. Null for pending action attempts.',
|
|
8412
|
+
nullable: true,
|
|
8413
|
+
},
|
|
8414
|
+
result: {
|
|
8415
|
+
description: 'Result of the action attempt. Null for pending action attempts.',
|
|
8416
|
+
nullable: true,
|
|
8417
|
+
},
|
|
8418
|
+
status: { enum: ['pending'], type: 'string' },
|
|
8419
|
+
},
|
|
8420
|
+
required: [
|
|
8421
|
+
'action_attempt_id',
|
|
8422
|
+
'status',
|
|
8423
|
+
'result',
|
|
8424
|
+
'error',
|
|
8425
|
+
'action_type',
|
|
8426
|
+
],
|
|
8427
|
+
type: 'object',
|
|
8428
|
+
},
|
|
8429
|
+
{
|
|
8430
|
+
description: 'Assigning a credential to an access method succeeded.',
|
|
8431
|
+
properties: {
|
|
8432
|
+
action_attempt_id: {
|
|
8433
|
+
description: 'ID of the action attempt.',
|
|
8434
|
+
format: 'uuid',
|
|
8435
|
+
type: 'string',
|
|
8436
|
+
},
|
|
8437
|
+
action_type: {
|
|
8438
|
+
description: 'Action attempt to track the status of assigning an existing credential to an access method.',
|
|
8439
|
+
enum: ['ASSIGN_CREDENTIAL'],
|
|
8440
|
+
type: 'string',
|
|
8441
|
+
},
|
|
8442
|
+
error: {
|
|
8443
|
+
description: 'Errors associated with the action attempt. Null for successful action attempts.',
|
|
8444
|
+
nullable: true,
|
|
8445
|
+
},
|
|
8446
|
+
result: {
|
|
8447
|
+
description: 'Result of an assignment attempt. If the attempt was successful, includes the updated access method with the assigned credential.',
|
|
8448
|
+
properties: {
|
|
8449
|
+
access_method_id: {
|
|
8450
|
+
description: 'ID of the access method.',
|
|
8451
|
+
format: 'uuid',
|
|
8452
|
+
type: 'string',
|
|
8453
|
+
},
|
|
8454
|
+
client_session_token: {
|
|
8455
|
+
description: 'Token of the client session associated with the access method.',
|
|
8456
|
+
type: 'string',
|
|
8457
|
+
},
|
|
8458
|
+
code: {
|
|
8459
|
+
description: 'The actual PIN code for code access methods.',
|
|
8460
|
+
nullable: true,
|
|
8461
|
+
type: 'string',
|
|
8462
|
+
},
|
|
8463
|
+
created_at: {
|
|
8464
|
+
description: 'Date and time at which the access method was created.',
|
|
8465
|
+
format: 'date-time',
|
|
8466
|
+
type: 'string',
|
|
8467
|
+
},
|
|
8468
|
+
customization_profile_id: {
|
|
8469
|
+
description: 'ID of the customization profile associated with the access method.',
|
|
8470
|
+
format: 'uuid',
|
|
8471
|
+
type: 'string',
|
|
8472
|
+
},
|
|
8473
|
+
display_name: {
|
|
8474
|
+
description: 'Display name of the access method.',
|
|
8475
|
+
type: 'string',
|
|
8476
|
+
},
|
|
8477
|
+
instant_key_url: {
|
|
8478
|
+
description: 'URL of the Instant Key for mobile key access methods.',
|
|
8479
|
+
format: 'uri',
|
|
8480
|
+
type: 'string',
|
|
8481
|
+
},
|
|
8482
|
+
is_assignment_required: {
|
|
8483
|
+
description: '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.',
|
|
8484
|
+
type: 'boolean',
|
|
8485
|
+
},
|
|
8486
|
+
is_encoding_required: {
|
|
8487
|
+
description: 'Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.',
|
|
8488
|
+
type: 'boolean',
|
|
8489
|
+
},
|
|
8490
|
+
is_issued: {
|
|
8491
|
+
description: 'Indicates whether the access method has been issued.',
|
|
8492
|
+
type: 'boolean',
|
|
8493
|
+
},
|
|
8494
|
+
is_ready_for_assignment: {
|
|
8495
|
+
description: '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.',
|
|
8496
|
+
type: 'boolean',
|
|
8497
|
+
},
|
|
8498
|
+
is_ready_for_encoding: {
|
|
8499
|
+
description: '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.',
|
|
8500
|
+
type: 'boolean',
|
|
8501
|
+
},
|
|
8502
|
+
issued_at: {
|
|
8503
|
+
description: 'Date and time at which the access method was issued.',
|
|
8504
|
+
format: 'date-time',
|
|
8505
|
+
nullable: true,
|
|
8506
|
+
type: 'string',
|
|
8507
|
+
},
|
|
8508
|
+
mode: {
|
|
8509
|
+
description: 'Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.',
|
|
8510
|
+
enum: ['code', 'card', 'mobile_key', 'cloud_key'],
|
|
8511
|
+
type: 'string',
|
|
8512
|
+
},
|
|
8513
|
+
pending_mutations: {
|
|
8514
|
+
description: 'Pending mutations for the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). Indicates operations that are in progress.',
|
|
8515
|
+
items: {
|
|
8516
|
+
discriminator: { propertyName: 'mutation_code' },
|
|
8517
|
+
oneOf: [
|
|
8518
|
+
{
|
|
8519
|
+
description: 'Seam is in the process of provisioning access for this access method on new devices.',
|
|
8520
|
+
properties: {
|
|
8521
|
+
created_at: {
|
|
8522
|
+
description: 'Date and time at which the mutation was created.',
|
|
8523
|
+
format: 'date-time',
|
|
8524
|
+
type: 'string',
|
|
8525
|
+
},
|
|
8526
|
+
from: {
|
|
8527
|
+
description: 'Previous device configuration.',
|
|
8528
|
+
properties: {
|
|
8529
|
+
device_ids: {
|
|
8530
|
+
description: 'Previous device IDs where access was provisioned.',
|
|
8531
|
+
items: { format: 'uuid', type: 'string' },
|
|
8532
|
+
type: 'array',
|
|
8533
|
+
},
|
|
8534
|
+
},
|
|
8535
|
+
required: ['device_ids'],
|
|
8536
|
+
type: 'object',
|
|
8537
|
+
},
|
|
8538
|
+
message: {
|
|
8539
|
+
description: 'Detailed description of the mutation.',
|
|
8540
|
+
type: 'string',
|
|
8541
|
+
},
|
|
8542
|
+
mutation_code: {
|
|
8543
|
+
description: 'Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices.',
|
|
8544
|
+
enum: ['provisioning_access'],
|
|
8545
|
+
type: 'string',
|
|
8546
|
+
},
|
|
8547
|
+
to: {
|
|
8548
|
+
description: 'New device configuration.',
|
|
8549
|
+
properties: {
|
|
8550
|
+
device_ids: {
|
|
8551
|
+
description: 'New device IDs where access is being provisioned.',
|
|
8552
|
+
items: { format: 'uuid', type: 'string' },
|
|
8553
|
+
type: 'array',
|
|
8554
|
+
},
|
|
8555
|
+
},
|
|
8556
|
+
required: ['device_ids'],
|
|
8557
|
+
type: 'object',
|
|
8558
|
+
},
|
|
8559
|
+
},
|
|
8560
|
+
required: [
|
|
8561
|
+
'created_at',
|
|
8562
|
+
'message',
|
|
8563
|
+
'mutation_code',
|
|
8564
|
+
'from',
|
|
8565
|
+
'to',
|
|
8566
|
+
],
|
|
8567
|
+
type: 'object',
|
|
8568
|
+
},
|
|
8569
|
+
{
|
|
8570
|
+
description: 'Seam is in the process of revoking access for this access method from devices.',
|
|
8571
|
+
properties: {
|
|
8572
|
+
created_at: {
|
|
8573
|
+
description: 'Date and time at which the mutation was created.',
|
|
8574
|
+
format: 'date-time',
|
|
8575
|
+
type: 'string',
|
|
8576
|
+
},
|
|
8577
|
+
from: {
|
|
8578
|
+
description: 'Previous device configuration.',
|
|
8579
|
+
properties: {
|
|
8580
|
+
device_ids: {
|
|
8581
|
+
description: 'Previous device IDs where access existed.',
|
|
8582
|
+
items: { format: 'uuid', type: 'string' },
|
|
8583
|
+
type: 'array',
|
|
8584
|
+
},
|
|
8585
|
+
},
|
|
8586
|
+
required: ['device_ids'],
|
|
8587
|
+
type: 'object',
|
|
8588
|
+
},
|
|
8589
|
+
message: {
|
|
8590
|
+
description: 'Detailed description of the mutation.',
|
|
8591
|
+
type: 'string',
|
|
8592
|
+
},
|
|
8593
|
+
mutation_code: {
|
|
8594
|
+
description: 'Mutation code to indicate that Seam is in the process of revoking access for this access method from devices.',
|
|
8595
|
+
enum: ['revoking_access'],
|
|
8596
|
+
type: 'string',
|
|
8597
|
+
},
|
|
8598
|
+
to: {
|
|
8599
|
+
description: 'New device configuration.',
|
|
8600
|
+
properties: {
|
|
8601
|
+
device_ids: {
|
|
8602
|
+
description: 'New device IDs where access should remain.',
|
|
8603
|
+
items: { format: 'uuid', type: 'string' },
|
|
8604
|
+
type: 'array',
|
|
8605
|
+
},
|
|
8606
|
+
},
|
|
8607
|
+
required: ['device_ids'],
|
|
8608
|
+
type: 'object',
|
|
8609
|
+
},
|
|
8610
|
+
},
|
|
8611
|
+
required: [
|
|
8612
|
+
'created_at',
|
|
8613
|
+
'message',
|
|
8614
|
+
'mutation_code',
|
|
8615
|
+
'from',
|
|
8616
|
+
'to',
|
|
8617
|
+
],
|
|
8618
|
+
type: 'object',
|
|
8619
|
+
},
|
|
8620
|
+
{
|
|
8621
|
+
description: 'Seam is in the process of updating the access times for this access method.',
|
|
8622
|
+
properties: {
|
|
8623
|
+
created_at: {
|
|
8624
|
+
description: 'Date and time at which the mutation was created.',
|
|
8625
|
+
format: 'date-time',
|
|
8626
|
+
type: 'string',
|
|
8627
|
+
},
|
|
8628
|
+
from: {
|
|
8629
|
+
description: 'Previous access time configuration.',
|
|
8630
|
+
properties: {
|
|
8631
|
+
ends_at: {
|
|
8632
|
+
description: 'Previous end time for access.',
|
|
8633
|
+
format: 'date-time',
|
|
8634
|
+
nullable: true,
|
|
8635
|
+
type: 'string',
|
|
8636
|
+
},
|
|
8637
|
+
starts_at: {
|
|
8638
|
+
description: 'Previous start time for access.',
|
|
8639
|
+
format: 'date-time',
|
|
8640
|
+
nullable: true,
|
|
8641
|
+
type: 'string',
|
|
8642
|
+
},
|
|
8643
|
+
},
|
|
8644
|
+
required: ['starts_at', 'ends_at'],
|
|
8645
|
+
type: 'object',
|
|
8646
|
+
},
|
|
8647
|
+
message: {
|
|
8648
|
+
description: 'Detailed description of the mutation.',
|
|
8649
|
+
type: 'string',
|
|
8650
|
+
},
|
|
8651
|
+
mutation_code: {
|
|
8652
|
+
description: 'Mutation code to indicate that Seam is in the process of updating the access times for this access method.',
|
|
8653
|
+
enum: ['updating_access_times'],
|
|
8654
|
+
type: 'string',
|
|
8655
|
+
},
|
|
8656
|
+
to: {
|
|
8657
|
+
description: 'New access time configuration.',
|
|
8658
|
+
properties: {
|
|
8659
|
+
ends_at: {
|
|
8660
|
+
description: 'New end time for access.',
|
|
8661
|
+
format: 'date-time',
|
|
8662
|
+
nullable: true,
|
|
8663
|
+
type: 'string',
|
|
8664
|
+
},
|
|
8665
|
+
starts_at: {
|
|
8666
|
+
description: 'New start time for access.',
|
|
8667
|
+
format: 'date-time',
|
|
8668
|
+
nullable: true,
|
|
8669
|
+
type: 'string',
|
|
8670
|
+
},
|
|
8671
|
+
},
|
|
8672
|
+
required: ['starts_at', 'ends_at'],
|
|
8673
|
+
type: 'object',
|
|
8674
|
+
},
|
|
8675
|
+
},
|
|
8676
|
+
required: [
|
|
8677
|
+
'created_at',
|
|
8678
|
+
'message',
|
|
8679
|
+
'mutation_code',
|
|
8680
|
+
'from',
|
|
8681
|
+
'to',
|
|
8682
|
+
],
|
|
8683
|
+
type: 'object',
|
|
8684
|
+
},
|
|
8685
|
+
],
|
|
8686
|
+
},
|
|
8687
|
+
type: 'array',
|
|
8688
|
+
},
|
|
8689
|
+
warnings: {
|
|
8690
|
+
description: 'Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
|
|
8691
|
+
items: {
|
|
8692
|
+
description: 'Warning associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods).',
|
|
8693
|
+
discriminator: { propertyName: 'warning_code' },
|
|
8694
|
+
oneOf: [
|
|
8695
|
+
{
|
|
8696
|
+
description: 'Indicates that the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) is being deleted.',
|
|
8697
|
+
properties: {
|
|
8698
|
+
created_at: {
|
|
8699
|
+
description: 'Date and time at which Seam created the warning.',
|
|
8700
|
+
format: 'date-time',
|
|
8701
|
+
type: 'string',
|
|
8702
|
+
},
|
|
8703
|
+
message: {
|
|
8704
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
8705
|
+
type: 'string',
|
|
8706
|
+
},
|
|
8707
|
+
warning_code: {
|
|
8708
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
8709
|
+
enum: ['being_deleted'],
|
|
8710
|
+
type: 'string',
|
|
8711
|
+
},
|
|
8712
|
+
},
|
|
8713
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
8714
|
+
type: 'object',
|
|
8715
|
+
},
|
|
8716
|
+
{
|
|
8717
|
+
description: 'Indicates that the access times for this [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods) are being updated.',
|
|
8718
|
+
properties: {
|
|
8719
|
+
created_at: {
|
|
8720
|
+
description: 'Date and time at which Seam created the warning.',
|
|
8721
|
+
format: 'date-time',
|
|
8722
|
+
type: 'string',
|
|
8723
|
+
},
|
|
8724
|
+
message: {
|
|
8725
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
8726
|
+
type: 'string',
|
|
8727
|
+
},
|
|
8728
|
+
warning_code: {
|
|
8729
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
8730
|
+
enum: ['updating_access_times'],
|
|
8731
|
+
type: 'string',
|
|
8732
|
+
},
|
|
8733
|
+
},
|
|
8734
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
8735
|
+
type: 'object',
|
|
8736
|
+
},
|
|
8737
|
+
{
|
|
8738
|
+
description: '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.',
|
|
8739
|
+
properties: {
|
|
8740
|
+
created_at: {
|
|
8741
|
+
description: 'Date and time at which Seam created the warning.',
|
|
8742
|
+
format: 'date-time',
|
|
8743
|
+
type: 'string',
|
|
8744
|
+
},
|
|
8745
|
+
message: {
|
|
8746
|
+
description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
8747
|
+
type: 'string',
|
|
8748
|
+
},
|
|
8749
|
+
original_access_method_id: {
|
|
8750
|
+
description: 'ID of the original access method from which this backup access method was split, if applicable.',
|
|
8751
|
+
format: 'uuid',
|
|
8752
|
+
type: 'string',
|
|
8753
|
+
},
|
|
8754
|
+
warning_code: {
|
|
8755
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
8756
|
+
enum: ['pulled_backup_access_code'],
|
|
8757
|
+
type: 'string',
|
|
8758
|
+
},
|
|
8759
|
+
},
|
|
8760
|
+
required: ['created_at', 'message', 'warning_code'],
|
|
8761
|
+
type: 'object',
|
|
8762
|
+
},
|
|
8763
|
+
],
|
|
8764
|
+
},
|
|
8765
|
+
type: 'array',
|
|
8766
|
+
},
|
|
8767
|
+
workspace_id: {
|
|
8768
|
+
description: 'ID of the Seam workspace associated with the access method.',
|
|
8769
|
+
format: 'uuid',
|
|
8770
|
+
type: 'string',
|
|
8771
|
+
},
|
|
8772
|
+
},
|
|
8773
|
+
required: [
|
|
8774
|
+
'workspace_id',
|
|
8775
|
+
'access_method_id',
|
|
8776
|
+
'display_name',
|
|
8777
|
+
'mode',
|
|
8778
|
+
'created_at',
|
|
8779
|
+
'issued_at',
|
|
8780
|
+
'is_issued',
|
|
8781
|
+
'warnings',
|
|
8782
|
+
'pending_mutations',
|
|
8783
|
+
],
|
|
8784
|
+
type: 'object',
|
|
8785
|
+
},
|
|
8786
|
+
status: { enum: ['success'], type: 'string' },
|
|
8787
|
+
},
|
|
8788
|
+
required: [
|
|
8789
|
+
'action_attempt_id',
|
|
8790
|
+
'status',
|
|
8791
|
+
'error',
|
|
8792
|
+
'action_type',
|
|
8793
|
+
'result',
|
|
8794
|
+
],
|
|
8795
|
+
type: 'object',
|
|
8796
|
+
},
|
|
8797
|
+
{
|
|
8798
|
+
description: 'Assigning a credential to an access method failed.',
|
|
8799
|
+
properties: {
|
|
8800
|
+
action_attempt_id: {
|
|
8801
|
+
description: 'ID of the action attempt.',
|
|
8802
|
+
format: 'uuid',
|
|
8803
|
+
type: 'string',
|
|
8804
|
+
},
|
|
8805
|
+
action_type: {
|
|
8806
|
+
description: 'Action attempt to track the status of assigning an existing credential to an access method.',
|
|
8807
|
+
enum: ['ASSIGN_CREDENTIAL'],
|
|
8808
|
+
type: 'string',
|
|
8809
|
+
},
|
|
8810
|
+
error: {
|
|
8811
|
+
oneOf: [
|
|
8812
|
+
{
|
|
8813
|
+
description: "Error that doesn't fit into other specific error categories.",
|
|
8814
|
+
properties: {
|
|
8815
|
+
message: {
|
|
8816
|
+
description: 'Message for the error associated with the action attempt.',
|
|
8817
|
+
type: 'string',
|
|
8818
|
+
},
|
|
8819
|
+
type: {
|
|
8820
|
+
description: 'Type of the error associated with the action attempt.',
|
|
8821
|
+
enum: ['uncategorized_error'],
|
|
8822
|
+
type: 'string',
|
|
8823
|
+
},
|
|
8824
|
+
},
|
|
8825
|
+
required: ['type', 'message'],
|
|
8826
|
+
type: 'object',
|
|
8827
|
+
},
|
|
8828
|
+
{
|
|
8829
|
+
description: 'Error to indicate an expired action attempt.',
|
|
8830
|
+
properties: {
|
|
8831
|
+
message: {
|
|
8832
|
+
description: 'Message for the error associated with the action attempt.',
|
|
8833
|
+
type: 'string',
|
|
8834
|
+
},
|
|
8835
|
+
type: {
|
|
8836
|
+
description: 'Type of the error associated with the action attempt.',
|
|
8837
|
+
enum: ['action_attempt_expired'],
|
|
8838
|
+
type: 'string',
|
|
8839
|
+
},
|
|
8840
|
+
},
|
|
8841
|
+
required: ['type', 'message'],
|
|
8842
|
+
type: 'object',
|
|
8843
|
+
},
|
|
8844
|
+
{
|
|
8845
|
+
description: 'Error to indicate that no matching credential was found.',
|
|
8846
|
+
properties: {
|
|
8847
|
+
message: {
|
|
8848
|
+
description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
8849
|
+
type: 'string',
|
|
8850
|
+
},
|
|
8851
|
+
type: {
|
|
8852
|
+
description: 'Error type to indicate that no matching credential was found.',
|
|
8853
|
+
enum: ['credential_not_found'],
|
|
8854
|
+
type: 'string',
|
|
8855
|
+
},
|
|
8856
|
+
},
|
|
8857
|
+
required: ['type', 'message'],
|
|
8858
|
+
type: 'object',
|
|
8859
|
+
},
|
|
8860
|
+
],
|
|
8861
|
+
},
|
|
8862
|
+
result: {
|
|
8863
|
+
description: 'Result of the action attempt. Null for failed action attempts.',
|
|
8864
|
+
nullable: true,
|
|
8865
|
+
},
|
|
8866
|
+
status: { enum: ['error'], type: 'string' },
|
|
8867
|
+
},
|
|
8868
|
+
required: [
|
|
8869
|
+
'action_attempt_id',
|
|
8870
|
+
'status',
|
|
8871
|
+
'result',
|
|
8872
|
+
'action_type',
|
|
8873
|
+
'error',
|
|
8874
|
+
],
|
|
8875
|
+
type: 'object',
|
|
8876
|
+
},
|
|
8397
8877
|
{
|
|
8398
8878
|
description: 'Resetting a sandbox workspace is pending.',
|
|
8399
8879
|
properties: {
|
|
@@ -32725,7 +33205,7 @@ const openapi = {
|
|
|
32725
33205
|
type: 'string',
|
|
32726
33206
|
},
|
|
32727
33207
|
location: {
|
|
32728
|
-
|
|
33208
|
+
deprecated: true,
|
|
32729
33209
|
properties: {
|
|
32730
33210
|
acs_entrance_ids: {
|
|
32731
33211
|
default: [],
|
|
@@ -32747,6 +33227,7 @@ const openapi = {
|
|
|
32747
33227
|
},
|
|
32748
33228
|
},
|
|
32749
33229
|
type: 'object',
|
|
33230
|
+
'x-deprecated': 'Create a space first, then reference it using `space_ids`.',
|
|
32750
33231
|
},
|
|
32751
33232
|
location_ids: {
|
|
32752
33233
|
deprecated: true,
|
|
@@ -36529,7 +37010,7 @@ const openapi = {
|
|
|
36529
37010
|
},
|
|
36530
37011
|
'/access_methods/assign_card': {
|
|
36531
37012
|
post: {
|
|
36532
|
-
description: 'Assigns
|
|
37013
|
+
description: '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.',
|
|
36533
37014
|
operationId: 'accessMethodsAssignCardPost',
|
|
36534
37015
|
requestBody: {
|
|
36535
37016
|
content: {
|
|
@@ -36537,12 +37018,12 @@ const openapi = {
|
|
|
36537
37018
|
schema: {
|
|
36538
37019
|
properties: {
|
|
36539
37020
|
access_method_id: {
|
|
36540
|
-
description: 'ID of the
|
|
37021
|
+
description: 'ID of the `access_method` to assign the credential to.',
|
|
36541
37022
|
format: 'uuid',
|
|
36542
37023
|
type: 'string',
|
|
36543
37024
|
},
|
|
36544
37025
|
card_number: {
|
|
36545
|
-
description: 'Card number of the
|
|
37026
|
+
description: 'Card number of the credential to assign.',
|
|
36546
37027
|
type: 'string',
|
|
36547
37028
|
},
|
|
36548
37029
|
},
|
|
@@ -36558,12 +37039,12 @@ const openapi = {
|
|
|
36558
37039
|
'application/json': {
|
|
36559
37040
|
schema: {
|
|
36560
37041
|
properties: {
|
|
36561
|
-
|
|
36562
|
-
$ref: '#/components/schemas/
|
|
37042
|
+
action_attempt: {
|
|
37043
|
+
$ref: '#/components/schemas/action_attempt',
|
|
36563
37044
|
},
|
|
36564
37045
|
ok: { type: 'boolean' },
|
|
36565
37046
|
},
|
|
36566
|
-
required: ['
|
|
37047
|
+
required: ['action_attempt', 'ok'],
|
|
36567
37048
|
type: 'object',
|
|
36568
37049
|
},
|
|
36569
37050
|
},
|
|
@@ -36580,11 +37061,12 @@ const openapi = {
|
|
|
36580
37061
|
],
|
|
36581
37062
|
summary: '/access_methods/assign_card',
|
|
36582
37063
|
tags: [],
|
|
37064
|
+
'x-action-attempt-type': 'ASSIGN_CREDENTIAL',
|
|
36583
37065
|
'x-fern-sdk-group-name': ['access_methods'],
|
|
36584
37066
|
'x-fern-sdk-method-name': 'assign_card',
|
|
36585
|
-
'x-fern-sdk-return-value': '
|
|
36586
|
-
'x-response-key': '
|
|
36587
|
-
'x-title': 'Assign a Card to an Access Method',
|
|
37067
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
37068
|
+
'x-response-key': 'action_attempt',
|
|
37069
|
+
'x-title': 'Assign a Card Credential to an Access Method',
|
|
36588
37070
|
},
|
|
36589
37071
|
},
|
|
36590
37072
|
'/access_methods/delete': {
|