@seamapi/types 1.875.0 → 1.876.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 +60 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +127 -0
- package/dist/index.cjs +60 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.js +60 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +127 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +63 -0
- package/src/lib/seam/connect/route-types.ts +135 -0
|
@@ -15492,6 +15492,133 @@ export type Routes = {
|
|
|
15492
15492
|
jsonResponse: {};
|
|
15493
15493
|
maxDuration: undefined;
|
|
15494
15494
|
};
|
|
15495
|
+
'/access_methods/assign_card': {
|
|
15496
|
+
route: '/access_methods/assign_card';
|
|
15497
|
+
method: 'POST';
|
|
15498
|
+
queryParams: {};
|
|
15499
|
+
jsonBody: {};
|
|
15500
|
+
commonParams: {
|
|
15501
|
+
/** ID of the card-mode `access_method` to assign the card to. */
|
|
15502
|
+
access_method_id: string;
|
|
15503
|
+
/** Card number of the card credential to assign. */
|
|
15504
|
+
card_number: string;
|
|
15505
|
+
};
|
|
15506
|
+
formData: {};
|
|
15507
|
+
jsonResponse: {
|
|
15508
|
+
/** Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key. */
|
|
15509
|
+
access_method: {
|
|
15510
|
+
/** ID of the Seam workspace associated with the access method. */
|
|
15511
|
+
workspace_id: string;
|
|
15512
|
+
/** ID of the access method. */
|
|
15513
|
+
access_method_id: string;
|
|
15514
|
+
/** Display name of the access method. */
|
|
15515
|
+
display_name: string;
|
|
15516
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
|
|
15517
|
+
mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
|
|
15518
|
+
/** Date and time at which the access method was created. */
|
|
15519
|
+
created_at: string;
|
|
15520
|
+
/** Date and time at which the access method was issued. */
|
|
15521
|
+
issued_at: string | null;
|
|
15522
|
+
/** Indicates whether the access method has been issued. */
|
|
15523
|
+
is_issued: boolean;
|
|
15524
|
+
/** URL of the Instant Key for mobile key access methods. */
|
|
15525
|
+
instant_key_url?: string | undefined;
|
|
15526
|
+
/** Token of the client session associated with the access method. */
|
|
15527
|
+
client_session_token?: string | undefined;
|
|
15528
|
+
/** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
|
|
15529
|
+
is_encoding_required?: boolean | undefined;
|
|
15530
|
+
/** 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. */
|
|
15531
|
+
is_ready_for_encoding?: boolean | undefined;
|
|
15532
|
+
/** The actual PIN code for code access methods. */
|
|
15533
|
+
code?: (string | null) | undefined;
|
|
15534
|
+
/** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
|
|
15535
|
+
warnings: ({
|
|
15536
|
+
/** Date and time at which Seam created the warning. */
|
|
15537
|
+
created_at: string;
|
|
15538
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15539
|
+
message: string;
|
|
15540
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15541
|
+
warning_code: 'being_deleted';
|
|
15542
|
+
} | {
|
|
15543
|
+
/** Date and time at which Seam created the warning. */
|
|
15544
|
+
created_at: string;
|
|
15545
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15546
|
+
message: string;
|
|
15547
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15548
|
+
warning_code: 'updating_access_times';
|
|
15549
|
+
} | {
|
|
15550
|
+
/** Date and time at which Seam created the warning. */
|
|
15551
|
+
created_at: string;
|
|
15552
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15553
|
+
message: string;
|
|
15554
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15555
|
+
warning_code: 'pulled_backup_access_code';
|
|
15556
|
+
/** ID of the original access method from which this backup access method was split, if applicable. */
|
|
15557
|
+
original_access_method_id?: string | undefined;
|
|
15558
|
+
})[];
|
|
15559
|
+
/** Pending mutations for the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). Indicates operations that are in progress. */
|
|
15560
|
+
pending_mutations: ({
|
|
15561
|
+
/** Date and time at which the mutation was created. */
|
|
15562
|
+
created_at: string;
|
|
15563
|
+
/** Detailed description of the mutation. */
|
|
15564
|
+
message: string;
|
|
15565
|
+
/** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */
|
|
15566
|
+
mutation_code: 'provisioning_access';
|
|
15567
|
+
/** Previous device configuration. */
|
|
15568
|
+
from: {
|
|
15569
|
+
/** Previous device IDs where access was provisioned. */
|
|
15570
|
+
device_ids: string[];
|
|
15571
|
+
};
|
|
15572
|
+
/** New device configuration. */
|
|
15573
|
+
to: {
|
|
15574
|
+
/** New device IDs where access is being provisioned. */
|
|
15575
|
+
device_ids: string[];
|
|
15576
|
+
};
|
|
15577
|
+
} | {
|
|
15578
|
+
/** Date and time at which the mutation was created. */
|
|
15579
|
+
created_at: string;
|
|
15580
|
+
/** Detailed description of the mutation. */
|
|
15581
|
+
message: string;
|
|
15582
|
+
/** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */
|
|
15583
|
+
mutation_code: 'revoking_access';
|
|
15584
|
+
/** Previous device configuration. */
|
|
15585
|
+
from: {
|
|
15586
|
+
/** Previous device IDs where access existed. */
|
|
15587
|
+
device_ids: string[];
|
|
15588
|
+
};
|
|
15589
|
+
/** New device configuration. */
|
|
15590
|
+
to: {
|
|
15591
|
+
/** New device IDs where access should remain. */
|
|
15592
|
+
device_ids: string[];
|
|
15593
|
+
};
|
|
15594
|
+
} | {
|
|
15595
|
+
/** Date and time at which the mutation was created. */
|
|
15596
|
+
created_at: string;
|
|
15597
|
+
/** Detailed description of the mutation. */
|
|
15598
|
+
message: string;
|
|
15599
|
+
/** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */
|
|
15600
|
+
mutation_code: 'updating_access_times';
|
|
15601
|
+
/** Previous access time configuration. */
|
|
15602
|
+
from: {
|
|
15603
|
+
/** Previous start time for access. */
|
|
15604
|
+
starts_at: string | null;
|
|
15605
|
+
/** Previous end time for access. */
|
|
15606
|
+
ends_at: string | null;
|
|
15607
|
+
};
|
|
15608
|
+
/** New access time configuration. */
|
|
15609
|
+
to: {
|
|
15610
|
+
/** New start time for access. */
|
|
15611
|
+
starts_at: string | null;
|
|
15612
|
+
/** New end time for access. */
|
|
15613
|
+
ends_at: string | null;
|
|
15614
|
+
};
|
|
15615
|
+
})[];
|
|
15616
|
+
/** ID of the customization profile associated with the access method. */
|
|
15617
|
+
customization_profile_id?: string | undefined;
|
|
15618
|
+
};
|
|
15619
|
+
};
|
|
15620
|
+
maxDuration: undefined;
|
|
15621
|
+
};
|
|
15495
15622
|
'/access_methods/delete': {
|
|
15496
15623
|
route: '/access_methods/delete';
|
|
15497
15624
|
method: 'DELETE' | 'POST';
|
package/package.json
CHANGED
|
@@ -40694,6 +40694,69 @@ const openapi: OpenAPISpec = {
|
|
|
40694
40694
|
'x-title': 'Update an Access Grant',
|
|
40695
40695
|
},
|
|
40696
40696
|
},
|
|
40697
|
+
'/access_methods/assign_card': {
|
|
40698
|
+
post: {
|
|
40699
|
+
description:
|
|
40700
|
+
'Assigns an existing card credential to a card-mode access method, identified by `card_number`.',
|
|
40701
|
+
operationId: 'accessMethodsAssignCardPost',
|
|
40702
|
+
requestBody: {
|
|
40703
|
+
content: {
|
|
40704
|
+
'application/json': {
|
|
40705
|
+
schema: {
|
|
40706
|
+
properties: {
|
|
40707
|
+
access_method_id: {
|
|
40708
|
+
description:
|
|
40709
|
+
'ID of the card-mode `access_method` to assign the card to.',
|
|
40710
|
+
format: 'uuid',
|
|
40711
|
+
type: 'string',
|
|
40712
|
+
},
|
|
40713
|
+
card_number: {
|
|
40714
|
+
description:
|
|
40715
|
+
'Card number of the card credential to assign.',
|
|
40716
|
+
type: 'string',
|
|
40717
|
+
},
|
|
40718
|
+
},
|
|
40719
|
+
required: ['access_method_id', 'card_number'],
|
|
40720
|
+
type: 'object',
|
|
40721
|
+
},
|
|
40722
|
+
},
|
|
40723
|
+
},
|
|
40724
|
+
},
|
|
40725
|
+
responses: {
|
|
40726
|
+
200: {
|
|
40727
|
+
content: {
|
|
40728
|
+
'application/json': {
|
|
40729
|
+
schema: {
|
|
40730
|
+
properties: {
|
|
40731
|
+
access_method: {
|
|
40732
|
+
$ref: '#/components/schemas/access_method',
|
|
40733
|
+
},
|
|
40734
|
+
ok: { type: 'boolean' },
|
|
40735
|
+
},
|
|
40736
|
+
required: ['access_method', 'ok'],
|
|
40737
|
+
type: 'object',
|
|
40738
|
+
},
|
|
40739
|
+
},
|
|
40740
|
+
},
|
|
40741
|
+
description: 'OK',
|
|
40742
|
+
},
|
|
40743
|
+
400: { description: 'Bad Request' },
|
|
40744
|
+
401: { description: 'Unauthorized' },
|
|
40745
|
+
},
|
|
40746
|
+
security: [
|
|
40747
|
+
{ pat_with_workspace: [] },
|
|
40748
|
+
{ console_session_with_workspace: [] },
|
|
40749
|
+
{ api_key: [] },
|
|
40750
|
+
],
|
|
40751
|
+
summary: '/access_methods/assign_card',
|
|
40752
|
+
tags: [],
|
|
40753
|
+
'x-fern-sdk-group-name': ['access_methods'],
|
|
40754
|
+
'x-fern-sdk-method-name': 'assign_card',
|
|
40755
|
+
'x-fern-sdk-return-value': 'access_method',
|
|
40756
|
+
'x-response-key': 'access_method',
|
|
40757
|
+
'x-title': 'Assign a Card to an Access Method',
|
|
40758
|
+
},
|
|
40759
|
+
},
|
|
40697
40760
|
'/access_methods/delete': {
|
|
40698
40761
|
delete: {
|
|
40699
40762
|
description: 'Deletes an access method.',
|
|
@@ -17800,6 +17800,141 @@ export type Routes = {
|
|
|
17800
17800
|
jsonResponse: {}
|
|
17801
17801
|
maxDuration: undefined
|
|
17802
17802
|
}
|
|
17803
|
+
'/access_methods/assign_card': {
|
|
17804
|
+
route: '/access_methods/assign_card'
|
|
17805
|
+
method: 'POST'
|
|
17806
|
+
queryParams: {}
|
|
17807
|
+
jsonBody: {}
|
|
17808
|
+
commonParams: {
|
|
17809
|
+
/** ID of the card-mode `access_method` to assign the card to. */
|
|
17810
|
+
access_method_id: string
|
|
17811
|
+
/** Card number of the card credential to assign. */
|
|
17812
|
+
card_number: string
|
|
17813
|
+
}
|
|
17814
|
+
formData: {}
|
|
17815
|
+
jsonResponse: {
|
|
17816
|
+
/** Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key. */
|
|
17817
|
+
access_method: {
|
|
17818
|
+
/** ID of the Seam workspace associated with the access method. */
|
|
17819
|
+
workspace_id: string
|
|
17820
|
+
/** ID of the access method. */
|
|
17821
|
+
access_method_id: string
|
|
17822
|
+
/** Display name of the access method. */
|
|
17823
|
+
display_name: string
|
|
17824
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`. */
|
|
17825
|
+
mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'
|
|
17826
|
+
/** Date and time at which the access method was created. */
|
|
17827
|
+
created_at: string
|
|
17828
|
+
/** Date and time at which the access method was issued. */
|
|
17829
|
+
issued_at: string | null
|
|
17830
|
+
/** Indicates whether the access method has been issued. */
|
|
17831
|
+
is_issued: boolean
|
|
17832
|
+
/** URL of the Instant Key for mobile key access methods. */
|
|
17833
|
+
instant_key_url?: string | undefined
|
|
17834
|
+
/** Token of the client session associated with the access method. */
|
|
17835
|
+
client_session_token?: string | undefined
|
|
17836
|
+
/** Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method. */
|
|
17837
|
+
is_encoding_required?: boolean | undefined
|
|
17838
|
+
/** 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. */
|
|
17839
|
+
is_ready_for_encoding?: boolean | undefined
|
|
17840
|
+
/** The actual PIN code for code access methods. */
|
|
17841
|
+
code?: (string | null) | undefined
|
|
17842
|
+
/** Warnings associated with the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). */
|
|
17843
|
+
warnings: (
|
|
17844
|
+
| {
|
|
17845
|
+
/** Date and time at which Seam created the warning. */
|
|
17846
|
+
created_at: string
|
|
17847
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
17848
|
+
message: string
|
|
17849
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
17850
|
+
warning_code: 'being_deleted'
|
|
17851
|
+
}
|
|
17852
|
+
| {
|
|
17853
|
+
/** Date and time at which Seam created the warning. */
|
|
17854
|
+
created_at: string
|
|
17855
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
17856
|
+
message: string
|
|
17857
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
17858
|
+
warning_code: 'updating_access_times'
|
|
17859
|
+
}
|
|
17860
|
+
| {
|
|
17861
|
+
/** Date and time at which Seam created the warning. */
|
|
17862
|
+
created_at: string
|
|
17863
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
17864
|
+
message: string
|
|
17865
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
17866
|
+
warning_code: 'pulled_backup_access_code'
|
|
17867
|
+
/** ID of the original access method from which this backup access method was split, if applicable. */
|
|
17868
|
+
original_access_method_id?: string | undefined
|
|
17869
|
+
}
|
|
17870
|
+
)[]
|
|
17871
|
+
/** Pending mutations for the [access method](https://docs.seam.co/latest/capability-guides/access-grants/delivering-access-methods). Indicates operations that are in progress. */
|
|
17872
|
+
pending_mutations: (
|
|
17873
|
+
| {
|
|
17874
|
+
/** Date and time at which the mutation was created. */
|
|
17875
|
+
created_at: string
|
|
17876
|
+
/** Detailed description of the mutation. */
|
|
17877
|
+
message: string
|
|
17878
|
+
/** Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices. */
|
|
17879
|
+
mutation_code: 'provisioning_access'
|
|
17880
|
+
/** Previous device configuration. */
|
|
17881
|
+
from: {
|
|
17882
|
+
/** Previous device IDs where access was provisioned. */
|
|
17883
|
+
device_ids: string[]
|
|
17884
|
+
}
|
|
17885
|
+
/** New device configuration. */
|
|
17886
|
+
to: {
|
|
17887
|
+
/** New device IDs where access is being provisioned. */
|
|
17888
|
+
device_ids: string[]
|
|
17889
|
+
}
|
|
17890
|
+
}
|
|
17891
|
+
| {
|
|
17892
|
+
/** Date and time at which the mutation was created. */
|
|
17893
|
+
created_at: string
|
|
17894
|
+
/** Detailed description of the mutation. */
|
|
17895
|
+
message: string
|
|
17896
|
+
/** Mutation code to indicate that Seam is in the process of revoking access for this access method from devices. */
|
|
17897
|
+
mutation_code: 'revoking_access'
|
|
17898
|
+
/** Previous device configuration. */
|
|
17899
|
+
from: {
|
|
17900
|
+
/** Previous device IDs where access existed. */
|
|
17901
|
+
device_ids: string[]
|
|
17902
|
+
}
|
|
17903
|
+
/** New device configuration. */
|
|
17904
|
+
to: {
|
|
17905
|
+
/** New device IDs where access should remain. */
|
|
17906
|
+
device_ids: string[]
|
|
17907
|
+
}
|
|
17908
|
+
}
|
|
17909
|
+
| {
|
|
17910
|
+
/** Date and time at which the mutation was created. */
|
|
17911
|
+
created_at: string
|
|
17912
|
+
/** Detailed description of the mutation. */
|
|
17913
|
+
message: string
|
|
17914
|
+
/** Mutation code to indicate that Seam is in the process of updating the access times for this access method. */
|
|
17915
|
+
mutation_code: 'updating_access_times'
|
|
17916
|
+
/** Previous access time configuration. */
|
|
17917
|
+
from: {
|
|
17918
|
+
/** Previous start time for access. */
|
|
17919
|
+
starts_at: string | null
|
|
17920
|
+
/** Previous end time for access. */
|
|
17921
|
+
ends_at: string | null
|
|
17922
|
+
}
|
|
17923
|
+
/** New access time configuration. */
|
|
17924
|
+
to: {
|
|
17925
|
+
/** New start time for access. */
|
|
17926
|
+
starts_at: string | null
|
|
17927
|
+
/** New end time for access. */
|
|
17928
|
+
ends_at: string | null
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
)[]
|
|
17932
|
+
/** ID of the customization profile associated with the access method. */
|
|
17933
|
+
customization_profile_id?: string | undefined
|
|
17934
|
+
}
|
|
17935
|
+
}
|
|
17936
|
+
maxDuration: undefined
|
|
17937
|
+
}
|
|
17803
17938
|
'/access_methods/delete': {
|
|
17804
17939
|
route: '/access_methods/delete'
|
|
17805
17940
|
method: 'DELETE' | 'POST'
|