@seamapi/types 1.322.3 → 1.323.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 +112 -23
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +59 -10
- package/lib/seam/connect/models/acs/acs-user.d.ts +53 -0
- package/lib/seam/connect/models/acs/acs-user.js +23 -0
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +34 -7
- package/lib/seam/connect/openapi.js +94 -23
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +25 -3
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +35 -0
- package/src/lib/seam/connect/openapi.ts +114 -23
- package/src/lib/seam/connect/route-types.ts +25 -3
|
@@ -5481,9 +5481,9 @@ export interface Routes {
|
|
|
5481
5481
|
queryParams: {};
|
|
5482
5482
|
jsonBody: {};
|
|
5483
5483
|
commonParams: {
|
|
5484
|
-
/** ID of the acs_encoder to use
|
|
5484
|
+
/** ID of the `acs_encoder` to use to encode the `acs_credential`. */
|
|
5485
5485
|
acs_encoder_id: string;
|
|
5486
|
-
/** ID of the acs_credential to encode
|
|
5486
|
+
/** ID of the `acs_credential` to encode onto a card. */
|
|
5487
5487
|
acs_credential_id: string;
|
|
5488
5488
|
};
|
|
5489
5489
|
formData: {};
|
|
@@ -6288,13 +6288,19 @@ export interface Routes {
|
|
|
6288
6288
|
queryParams: {};
|
|
6289
6289
|
jsonBody: {};
|
|
6290
6290
|
commonParams: {
|
|
6291
|
+
/** ID of the `acs_system` for which you want to retrieve all `acs_encoder`s. */
|
|
6291
6292
|
acs_system_id: string;
|
|
6293
|
+
/** Number of `acs_encoders` to return. */
|
|
6292
6294
|
limit?: number;
|
|
6293
6295
|
} | {
|
|
6296
|
+
/** IDs of the `acs_system`s for which you want to retrieve all `acs_encoder`s. */
|
|
6294
6297
|
acs_system_ids: string[];
|
|
6298
|
+
/** Number of `acs_encoders` to return. */
|
|
6295
6299
|
limit?: number;
|
|
6296
6300
|
} | {
|
|
6301
|
+
/** IDs of the `acs_encoder`s that you want to retrieve. */
|
|
6297
6302
|
acs_encoder_ids: string[];
|
|
6303
|
+
/** Number of `acs_encoders` to return. */
|
|
6298
6304
|
limit?: number;
|
|
6299
6305
|
};
|
|
6300
6306
|
formData: {};
|
|
@@ -6328,7 +6334,7 @@ export interface Routes {
|
|
|
6328
6334
|
queryParams: {};
|
|
6329
6335
|
jsonBody: {};
|
|
6330
6336
|
commonParams: {
|
|
6331
|
-
/** ID of the acs_encoder to use for the scan. */
|
|
6337
|
+
/** ID of the `acs_encoder` to use for the scan. */
|
|
6332
6338
|
acs_encoder_id: string;
|
|
6333
6339
|
};
|
|
6334
6340
|
formData: {};
|
|
@@ -7132,11 +7138,16 @@ export interface Routes {
|
|
|
7132
7138
|
method: 'POST';
|
|
7133
7139
|
queryParams: {};
|
|
7134
7140
|
jsonBody: {
|
|
7141
|
+
/** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */
|
|
7135
7142
|
acs_encoder_id: string;
|
|
7143
|
+
/** Code of the error to simulate. */
|
|
7136
7144
|
error_code?: 'no_credential_on_encoder';
|
|
7137
7145
|
} | {
|
|
7146
|
+
/** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */
|
|
7138
7147
|
acs_encoder_id: string;
|
|
7148
|
+
/** Code of the error to simulate. */
|
|
7139
7149
|
error_code: 'uncategorized_error' | 'action_attempt_expired';
|
|
7150
|
+
/** ID of the `acs_credential` that will fail to be encoded onto a card in the next request. */
|
|
7140
7151
|
acs_credential_id?: string | undefined;
|
|
7141
7152
|
};
|
|
7142
7153
|
commonParams: {};
|
|
@@ -7148,7 +7159,9 @@ export interface Routes {
|
|
|
7148
7159
|
method: 'POST';
|
|
7149
7160
|
queryParams: {};
|
|
7150
7161
|
jsonBody: {
|
|
7162
|
+
/** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */
|
|
7151
7163
|
acs_encoder_id: string;
|
|
7164
|
+
/** Scenario to simulate. */
|
|
7152
7165
|
scenario?: 'credential_is_issued';
|
|
7153
7166
|
};
|
|
7154
7167
|
commonParams: {};
|
|
@@ -7160,9 +7173,11 @@ export interface Routes {
|
|
|
7160
7173
|
method: 'POST';
|
|
7161
7174
|
queryParams: {};
|
|
7162
7175
|
jsonBody: {
|
|
7176
|
+
/** ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request. */
|
|
7163
7177
|
acs_encoder_id: string;
|
|
7164
7178
|
error_code?: 'no_credential_on_encoder';
|
|
7165
7179
|
} | {
|
|
7180
|
+
/** ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request. */
|
|
7166
7181
|
acs_encoder_id: string;
|
|
7167
7182
|
error_code: 'uncategorized_error' | 'action_attempt_expired';
|
|
7168
7183
|
acs_credential_id_on_seam?: string | undefined;
|
|
@@ -7176,14 +7191,21 @@ export interface Routes {
|
|
|
7176
7191
|
method: 'POST';
|
|
7177
7192
|
queryParams: {};
|
|
7178
7193
|
jsonBody: {
|
|
7194
|
+
/** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */
|
|
7179
7195
|
acs_encoder_id: string;
|
|
7196
|
+
/** Scenario to simulate. */
|
|
7180
7197
|
scenario?: 'credential_exists_on_seam' | 'credential_on_encoder_needs_update';
|
|
7198
|
+
/** ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation. */
|
|
7181
7199
|
acs_credential_id_on_seam?: string | undefined;
|
|
7182
7200
|
} | {
|
|
7201
|
+
/** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */
|
|
7183
7202
|
acs_encoder_id: string;
|
|
7203
|
+
/** Scenario to simulate. */
|
|
7184
7204
|
scenario: 'credential_does_not_exist_on_seam';
|
|
7185
7205
|
} | {
|
|
7206
|
+
/** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */
|
|
7186
7207
|
acs_encoder_id: string;
|
|
7208
|
+
/** Scenario to simulate. */
|
|
7187
7209
|
scenario: 'credential_on_encoder_is_empty';
|
|
7188
7210
|
};
|
|
7189
7211
|
commonParams: {};
|
package/package.json
CHANGED
|
@@ -127,6 +127,41 @@ export const acs_users_warnings = z
|
|
|
127
127
|
|
|
128
128
|
export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
|
|
129
129
|
|
|
130
|
+
const common_acs_user_modification = z.object({
|
|
131
|
+
created_at: z
|
|
132
|
+
.string()
|
|
133
|
+
.datetime()
|
|
134
|
+
.describe('Date and time at which this modification was requested.'),
|
|
135
|
+
message: z.string().describe('Detailed description of the modification.'),
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
const acs_user_suspension_state_modification = common_acs_user_modification
|
|
139
|
+
.extend({
|
|
140
|
+
modification_code: z.literal('suspension_state'),
|
|
141
|
+
})
|
|
142
|
+
.describe(
|
|
143
|
+
"Indicates that the acs_user's is_suspended state was updated on Seam and will soon be applied on the user on the ACS System",
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
const acs_user_profile_modification = common_acs_user_modification
|
|
147
|
+
.extend({
|
|
148
|
+
modification_code: z.literal('profile'),
|
|
149
|
+
})
|
|
150
|
+
.describe(
|
|
151
|
+
"Indicates that the acs_user's profile details (name, email, phone) were updated on Seam and will soon be applied on the user on the ACS System",
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
export const acs_user_unapplied_modification_map = z.object({
|
|
155
|
+
suspension_state: acs_user_suspension_state_modification
|
|
156
|
+
.optional()
|
|
157
|
+
.nullable(),
|
|
158
|
+
profile: acs_user_profile_modification.optional().nullable(),
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
export type AcsUserUnappliedModificationMap = z.infer<
|
|
162
|
+
typeof acs_user_unapplied_modification_map
|
|
163
|
+
>
|
|
164
|
+
|
|
130
165
|
const user_fields = z.object({
|
|
131
166
|
full_name: z.string().optional().describe('Full name of the `acs_user`.'),
|
|
132
167
|
email: z.string().email().optional().describe(`
|
|
@@ -14633,6 +14633,8 @@ export default {
|
|
|
14633
14633
|
},
|
|
14634
14634
|
'/acs/encoders/encode_credential': {
|
|
14635
14635
|
post: {
|
|
14636
|
+
description:
|
|
14637
|
+
'Encodes an existing [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
|
|
14636
14638
|
operationId: 'acsEncodersEncodeCredentialPost',
|
|
14637
14639
|
requestBody: {
|
|
14638
14640
|
content: {
|
|
@@ -14641,13 +14643,13 @@ export default {
|
|
|
14641
14643
|
properties: {
|
|
14642
14644
|
acs_credential_id: {
|
|
14643
14645
|
description:
|
|
14644
|
-
'ID of the acs_credential to encode
|
|
14646
|
+
'ID of the `acs_credential` to encode onto a card.',
|
|
14645
14647
|
format: 'uuid',
|
|
14646
14648
|
type: 'string',
|
|
14647
14649
|
},
|
|
14648
14650
|
acs_encoder_id: {
|
|
14649
14651
|
description:
|
|
14650
|
-
'ID of the acs_encoder to use
|
|
14652
|
+
'ID of the `acs_encoder` to use to encode the `acs_credential`.',
|
|
14651
14653
|
format: 'uuid',
|
|
14652
14654
|
type: 'string',
|
|
14653
14655
|
},
|
|
@@ -14690,11 +14692,13 @@ export default {
|
|
|
14690
14692
|
'x-fern-sdk-method-name': 'encode_credential',
|
|
14691
14693
|
'x-fern-sdk-return-value': 'action_attempt',
|
|
14692
14694
|
'x-response-key': 'action_attempt',
|
|
14693
|
-
'x-
|
|
14695
|
+
'x-title': 'Encode a Credential',
|
|
14694
14696
|
},
|
|
14695
14697
|
},
|
|
14696
14698
|
'/acs/encoders/list': {
|
|
14697
14699
|
post: {
|
|
14700
|
+
description:
|
|
14701
|
+
'Returns a list of all [encoders](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
|
|
14698
14702
|
operationId: 'acsEncodersListPost',
|
|
14699
14703
|
requestBody: {
|
|
14700
14704
|
content: {
|
|
@@ -14703,8 +14707,18 @@ export default {
|
|
|
14703
14707
|
oneOf: [
|
|
14704
14708
|
{
|
|
14705
14709
|
properties: {
|
|
14706
|
-
acs_system_id: {
|
|
14707
|
-
|
|
14710
|
+
acs_system_id: {
|
|
14711
|
+
description:
|
|
14712
|
+
'ID of the `acs_system` for which you want to retrieve all `acs_encoder`s.',
|
|
14713
|
+
format: 'uuid',
|
|
14714
|
+
type: 'string',
|
|
14715
|
+
},
|
|
14716
|
+
limit: {
|
|
14717
|
+
default: 500,
|
|
14718
|
+
description: 'Number of `acs_encoders` to return.',
|
|
14719
|
+
format: 'float',
|
|
14720
|
+
type: 'number',
|
|
14721
|
+
},
|
|
14708
14722
|
},
|
|
14709
14723
|
required: ['acs_system_id'],
|
|
14710
14724
|
type: 'object',
|
|
@@ -14712,10 +14726,17 @@ export default {
|
|
|
14712
14726
|
{
|
|
14713
14727
|
properties: {
|
|
14714
14728
|
acs_system_ids: {
|
|
14729
|
+
description:
|
|
14730
|
+
'IDs of the `acs_system`s for which you want to retrieve all `acs_encoder`s.',
|
|
14715
14731
|
items: { format: 'uuid', type: 'string' },
|
|
14716
14732
|
type: 'array',
|
|
14717
14733
|
},
|
|
14718
|
-
limit: {
|
|
14734
|
+
limit: {
|
|
14735
|
+
default: 500,
|
|
14736
|
+
description: 'Number of `acs_encoders` to return.',
|
|
14737
|
+
format: 'float',
|
|
14738
|
+
type: 'number',
|
|
14739
|
+
},
|
|
14719
14740
|
},
|
|
14720
14741
|
required: ['acs_system_ids'],
|
|
14721
14742
|
type: 'object',
|
|
@@ -14723,10 +14744,17 @@ export default {
|
|
|
14723
14744
|
{
|
|
14724
14745
|
properties: {
|
|
14725
14746
|
acs_encoder_ids: {
|
|
14747
|
+
description:
|
|
14748
|
+
'IDs of the `acs_encoder`s that you want to retrieve.',
|
|
14726
14749
|
items: { format: 'uuid', type: 'string' },
|
|
14727
14750
|
type: 'array',
|
|
14728
14751
|
},
|
|
14729
|
-
limit: {
|
|
14752
|
+
limit: {
|
|
14753
|
+
default: 500,
|
|
14754
|
+
description: 'Number of `acs_encoders` to return.',
|
|
14755
|
+
format: 'float',
|
|
14756
|
+
type: 'number',
|
|
14757
|
+
},
|
|
14730
14758
|
},
|
|
14731
14759
|
required: ['acs_encoder_ids'],
|
|
14732
14760
|
type: 'object',
|
|
@@ -14838,11 +14866,13 @@ export default {
|
|
|
14838
14866
|
'x-fern-sdk-method-name': 'list',
|
|
14839
14867
|
'x-fern-sdk-return-value': 'acs_encoders',
|
|
14840
14868
|
'x-response-key': 'acs_encoders',
|
|
14841
|
-
'x-
|
|
14869
|
+
'x-title': 'List Encoders',
|
|
14842
14870
|
},
|
|
14843
14871
|
},
|
|
14844
14872
|
'/acs/encoders/scan_credential': {
|
|
14845
14873
|
post: {
|
|
14874
|
+
description:
|
|
14875
|
+
'Scans an encoded [acs_credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) from a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).',
|
|
14846
14876
|
operationId: 'acsEncodersScanCredentialPost',
|
|
14847
14877
|
requestBody: {
|
|
14848
14878
|
content: {
|
|
@@ -14850,7 +14880,7 @@ export default {
|
|
|
14850
14880
|
schema: {
|
|
14851
14881
|
properties: {
|
|
14852
14882
|
acs_encoder_id: {
|
|
14853
|
-
description: 'ID of the acs_encoder to use for the scan.',
|
|
14883
|
+
description: 'ID of the `acs_encoder` to use for the scan.',
|
|
14854
14884
|
format: 'uuid',
|
|
14855
14885
|
type: 'string',
|
|
14856
14886
|
},
|
|
@@ -14893,11 +14923,13 @@ export default {
|
|
|
14893
14923
|
'x-fern-sdk-method-name': 'scan_credential',
|
|
14894
14924
|
'x-fern-sdk-return-value': 'action_attempt',
|
|
14895
14925
|
'x-response-key': 'action_attempt',
|
|
14896
|
-
'x-
|
|
14926
|
+
'x-title': 'Scan a Credential',
|
|
14897
14927
|
},
|
|
14898
14928
|
},
|
|
14899
14929
|
'/acs/encoders/simulate/next_credential_encode_will_fail': {
|
|
14900
14930
|
post: {
|
|
14931
|
+
description:
|
|
14932
|
+
'Simulates that the next attempt to encode a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).',
|
|
14901
14933
|
operationId: 'acsEncodersSimulateNextCredentialEncodeWillFailPost',
|
|
14902
14934
|
requestBody: {
|
|
14903
14935
|
content: {
|
|
@@ -14907,9 +14939,15 @@ export default {
|
|
|
14907
14939
|
{
|
|
14908
14940
|
additionalProperties: false,
|
|
14909
14941
|
properties: {
|
|
14910
|
-
acs_encoder_id: {
|
|
14942
|
+
acs_encoder_id: {
|
|
14943
|
+
description:
|
|
14944
|
+
'ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.',
|
|
14945
|
+
format: 'uuid',
|
|
14946
|
+
type: 'string',
|
|
14947
|
+
},
|
|
14911
14948
|
error_code: {
|
|
14912
14949
|
default: 'no_credential_on_encoder',
|
|
14950
|
+
description: 'Code of the error to simulate.',
|
|
14913
14951
|
enum: ['no_credential_on_encoder'],
|
|
14914
14952
|
type: 'string',
|
|
14915
14953
|
},
|
|
@@ -14920,9 +14958,20 @@ export default {
|
|
|
14920
14958
|
{
|
|
14921
14959
|
additionalProperties: false,
|
|
14922
14960
|
properties: {
|
|
14923
|
-
acs_credential_id: {
|
|
14924
|
-
|
|
14961
|
+
acs_credential_id: {
|
|
14962
|
+
description:
|
|
14963
|
+
'ID of the `acs_credential` that will fail to be encoded onto a card in the next request.',
|
|
14964
|
+
format: 'uuid',
|
|
14965
|
+
type: 'string',
|
|
14966
|
+
},
|
|
14967
|
+
acs_encoder_id: {
|
|
14968
|
+
description:
|
|
14969
|
+
'ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.',
|
|
14970
|
+
format: 'uuid',
|
|
14971
|
+
type: 'string',
|
|
14972
|
+
},
|
|
14925
14973
|
error_code: {
|
|
14974
|
+
description: 'Code of the error to simulate.',
|
|
14926
14975
|
enum: ['uncategorized_error', 'action_attempt_expired'],
|
|
14927
14976
|
type: 'string',
|
|
14928
14977
|
},
|
|
@@ -14961,11 +15010,13 @@ export default {
|
|
|
14961
15010
|
'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
|
|
14962
15011
|
'x-fern-sdk-method-name': 'next_credential_encode_will_fail',
|
|
14963
15012
|
'x-response-key': null,
|
|
14964
|
-
'x-
|
|
15013
|
+
'x-title': 'Simulate that the Next Credential Encoding Will Fail',
|
|
14965
15014
|
},
|
|
14966
15015
|
},
|
|
14967
15016
|
'/acs/encoders/simulate/next_credential_encode_will_succeed': {
|
|
14968
15017
|
post: {
|
|
15018
|
+
description:
|
|
15019
|
+
'Simulates that the next attempt to encode a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).',
|
|
14969
15020
|
operationId: 'acsEncodersSimulateNextCredentialEncodeWillSucceedPost',
|
|
14970
15021
|
requestBody: {
|
|
14971
15022
|
content: {
|
|
@@ -14973,9 +15024,15 @@ export default {
|
|
|
14973
15024
|
schema: {
|
|
14974
15025
|
additionalProperties: false,
|
|
14975
15026
|
properties: {
|
|
14976
|
-
acs_encoder_id: {
|
|
15027
|
+
acs_encoder_id: {
|
|
15028
|
+
description:
|
|
15029
|
+
'ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.',
|
|
15030
|
+
format: 'uuid',
|
|
15031
|
+
type: 'string',
|
|
15032
|
+
},
|
|
14977
15033
|
scenario: {
|
|
14978
15034
|
default: 'credential_is_issued',
|
|
15035
|
+
description: 'Scenario to simulate.',
|
|
14979
15036
|
enum: ['credential_is_issued'],
|
|
14980
15037
|
type: 'string',
|
|
14981
15038
|
},
|
|
@@ -15012,11 +15069,13 @@ export default {
|
|
|
15012
15069
|
'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
|
|
15013
15070
|
'x-fern-sdk-method-name': 'next_credential_encode_will_succeed',
|
|
15014
15071
|
'x-response-key': null,
|
|
15015
|
-
'x-
|
|
15072
|
+
'x-title': 'Simulate that the Next Credential Encoding Will Succeed',
|
|
15016
15073
|
},
|
|
15017
15074
|
},
|
|
15018
15075
|
'/acs/encoders/simulate/next_credential_scan_will_fail': {
|
|
15019
15076
|
post: {
|
|
15077
|
+
description:
|
|
15078
|
+
'Simulates that the next attempt to scan a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).',
|
|
15020
15079
|
operationId: 'acsEncodersSimulateNextCredentialScanWillFailPost',
|
|
15021
15080
|
requestBody: {
|
|
15022
15081
|
content: {
|
|
@@ -15026,7 +15085,12 @@ export default {
|
|
|
15026
15085
|
{
|
|
15027
15086
|
additionalProperties: false,
|
|
15028
15087
|
properties: {
|
|
15029
|
-
acs_encoder_id: {
|
|
15088
|
+
acs_encoder_id: {
|
|
15089
|
+
description:
|
|
15090
|
+
'ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.',
|
|
15091
|
+
format: 'uuid',
|
|
15092
|
+
type: 'string',
|
|
15093
|
+
},
|
|
15030
15094
|
error_code: {
|
|
15031
15095
|
default: 'no_credential_on_encoder',
|
|
15032
15096
|
enum: ['no_credential_on_encoder'],
|
|
@@ -15043,7 +15107,12 @@ export default {
|
|
|
15043
15107
|
format: 'uuid',
|
|
15044
15108
|
type: 'string',
|
|
15045
15109
|
},
|
|
15046
|
-
acs_encoder_id: {
|
|
15110
|
+
acs_encoder_id: {
|
|
15111
|
+
description:
|
|
15112
|
+
'ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.',
|
|
15113
|
+
format: 'uuid',
|
|
15114
|
+
type: 'string',
|
|
15115
|
+
},
|
|
15047
15116
|
error_code: {
|
|
15048
15117
|
enum: ['uncategorized_error', 'action_attempt_expired'],
|
|
15049
15118
|
type: 'string',
|
|
@@ -15083,11 +15152,13 @@ export default {
|
|
|
15083
15152
|
'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
|
|
15084
15153
|
'x-fern-sdk-method-name': 'next_credential_scan_will_fail',
|
|
15085
15154
|
'x-response-key': null,
|
|
15086
|
-
'x-
|
|
15155
|
+
'x-title': 'Simulate that the Next Credential Scan Will Fail',
|
|
15087
15156
|
},
|
|
15088
15157
|
},
|
|
15089
15158
|
'/acs/encoders/simulate/next_credential_scan_will_succeed': {
|
|
15090
15159
|
post: {
|
|
15160
|
+
description:
|
|
15161
|
+
'Simulates that the next attempt to scan a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).',
|
|
15091
15162
|
operationId: 'acsEncodersSimulateNextCredentialScanWillSucceedPost',
|
|
15092
15163
|
requestBody: {
|
|
15093
15164
|
content: {
|
|
@@ -15098,12 +15169,20 @@ export default {
|
|
|
15098
15169
|
additionalProperties: false,
|
|
15099
15170
|
properties: {
|
|
15100
15171
|
acs_credential_id_on_seam: {
|
|
15172
|
+
description:
|
|
15173
|
+
'ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation.',
|
|
15174
|
+
format: 'uuid',
|
|
15175
|
+
type: 'string',
|
|
15176
|
+
},
|
|
15177
|
+
acs_encoder_id: {
|
|
15178
|
+
description:
|
|
15179
|
+
'ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.',
|
|
15101
15180
|
format: 'uuid',
|
|
15102
15181
|
type: 'string',
|
|
15103
15182
|
},
|
|
15104
|
-
acs_encoder_id: { format: 'uuid', type: 'string' },
|
|
15105
15183
|
scenario: {
|
|
15106
15184
|
default: 'credential_exists_on_seam',
|
|
15185
|
+
description: 'Scenario to simulate.',
|
|
15107
15186
|
enum: [
|
|
15108
15187
|
'credential_exists_on_seam',
|
|
15109
15188
|
'credential_on_encoder_needs_update',
|
|
@@ -15117,8 +15196,14 @@ export default {
|
|
|
15117
15196
|
{
|
|
15118
15197
|
additionalProperties: false,
|
|
15119
15198
|
properties: {
|
|
15120
|
-
acs_encoder_id: {
|
|
15199
|
+
acs_encoder_id: {
|
|
15200
|
+
description:
|
|
15201
|
+
'ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.',
|
|
15202
|
+
format: 'uuid',
|
|
15203
|
+
type: 'string',
|
|
15204
|
+
},
|
|
15121
15205
|
scenario: {
|
|
15206
|
+
description: 'Scenario to simulate.',
|
|
15122
15207
|
enum: ['credential_does_not_exist_on_seam'],
|
|
15123
15208
|
type: 'string',
|
|
15124
15209
|
},
|
|
@@ -15129,8 +15214,14 @@ export default {
|
|
|
15129
15214
|
{
|
|
15130
15215
|
additionalProperties: false,
|
|
15131
15216
|
properties: {
|
|
15132
|
-
acs_encoder_id: {
|
|
15217
|
+
acs_encoder_id: {
|
|
15218
|
+
description:
|
|
15219
|
+
'ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.',
|
|
15220
|
+
format: 'uuid',
|
|
15221
|
+
type: 'string',
|
|
15222
|
+
},
|
|
15133
15223
|
scenario: {
|
|
15224
|
+
description: 'Scenario to simulate.',
|
|
15134
15225
|
enum: ['credential_on_encoder_is_empty'],
|
|
15135
15226
|
type: 'string',
|
|
15136
15227
|
},
|
|
@@ -15169,7 +15260,7 @@ export default {
|
|
|
15169
15260
|
'x-fern-sdk-group-name': ['acs', 'encoders', 'simulate'],
|
|
15170
15261
|
'x-fern-sdk-method-name': 'next_credential_scan_will_succeed',
|
|
15171
15262
|
'x-response-key': null,
|
|
15172
|
-
'x-
|
|
15263
|
+
'x-title': 'Simulate that the Next Credential Scan Will Succeed',
|
|
15173
15264
|
},
|
|
15174
15265
|
},
|
|
15175
15266
|
'/acs/entrances/get': {
|
|
@@ -6404,9 +6404,9 @@ export interface Routes {
|
|
|
6404
6404
|
queryParams: {}
|
|
6405
6405
|
jsonBody: {}
|
|
6406
6406
|
commonParams: {
|
|
6407
|
-
/** ID of the acs_encoder to use
|
|
6407
|
+
/** ID of the `acs_encoder` to use to encode the `acs_credential`. */
|
|
6408
6408
|
acs_encoder_id: string
|
|
6409
|
-
/** ID of the acs_credential to encode
|
|
6409
|
+
/** ID of the `acs_credential` to encode onto a card. */
|
|
6410
6410
|
acs_credential_id: string
|
|
6411
6411
|
}
|
|
6412
6412
|
formData: {}
|
|
@@ -7355,15 +7355,21 @@ export interface Routes {
|
|
|
7355
7355
|
jsonBody: {}
|
|
7356
7356
|
commonParams:
|
|
7357
7357
|
| {
|
|
7358
|
+
/** ID of the `acs_system` for which you want to retrieve all `acs_encoder`s. */
|
|
7358
7359
|
acs_system_id: string
|
|
7360
|
+
/** Number of `acs_encoders` to return. */
|
|
7359
7361
|
limit?: number
|
|
7360
7362
|
}
|
|
7361
7363
|
| {
|
|
7364
|
+
/** IDs of the `acs_system`s for which you want to retrieve all `acs_encoder`s. */
|
|
7362
7365
|
acs_system_ids: string[]
|
|
7366
|
+
/** Number of `acs_encoders` to return. */
|
|
7363
7367
|
limit?: number
|
|
7364
7368
|
}
|
|
7365
7369
|
| {
|
|
7370
|
+
/** IDs of the `acs_encoder`s that you want to retrieve. */
|
|
7366
7371
|
acs_encoder_ids: string[]
|
|
7372
|
+
/** Number of `acs_encoders` to return. */
|
|
7367
7373
|
limit?: number
|
|
7368
7374
|
}
|
|
7369
7375
|
formData: {}
|
|
@@ -7397,7 +7403,7 @@ export interface Routes {
|
|
|
7397
7403
|
queryParams: {}
|
|
7398
7404
|
jsonBody: {}
|
|
7399
7405
|
commonParams: {
|
|
7400
|
-
/** ID of the acs_encoder to use for the scan. */
|
|
7406
|
+
/** ID of the `acs_encoder` to use for the scan. */
|
|
7401
7407
|
acs_encoder_id: string
|
|
7402
7408
|
}
|
|
7403
7409
|
formData: {}
|
|
@@ -8345,12 +8351,17 @@ export interface Routes {
|
|
|
8345
8351
|
queryParams: {}
|
|
8346
8352
|
jsonBody:
|
|
8347
8353
|
| {
|
|
8354
|
+
/** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */
|
|
8348
8355
|
acs_encoder_id: string
|
|
8356
|
+
/** Code of the error to simulate. */
|
|
8349
8357
|
error_code?: 'no_credential_on_encoder'
|
|
8350
8358
|
}
|
|
8351
8359
|
| {
|
|
8360
|
+
/** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */
|
|
8352
8361
|
acs_encoder_id: string
|
|
8362
|
+
/** Code of the error to simulate. */
|
|
8353
8363
|
error_code: 'uncategorized_error' | 'action_attempt_expired'
|
|
8364
|
+
/** ID of the `acs_credential` that will fail to be encoded onto a card in the next request. */
|
|
8354
8365
|
acs_credential_id?: string | undefined
|
|
8355
8366
|
}
|
|
8356
8367
|
commonParams: {}
|
|
@@ -8362,7 +8373,9 @@ export interface Routes {
|
|
|
8362
8373
|
method: 'POST'
|
|
8363
8374
|
queryParams: {}
|
|
8364
8375
|
jsonBody: {
|
|
8376
|
+
/** ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`. */
|
|
8365
8377
|
acs_encoder_id: string
|
|
8378
|
+
/** Scenario to simulate. */
|
|
8366
8379
|
scenario?: 'credential_is_issued'
|
|
8367
8380
|
}
|
|
8368
8381
|
commonParams: {}
|
|
@@ -8375,10 +8388,12 @@ export interface Routes {
|
|
|
8375
8388
|
queryParams: {}
|
|
8376
8389
|
jsonBody:
|
|
8377
8390
|
| {
|
|
8391
|
+
/** ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request. */
|
|
8378
8392
|
acs_encoder_id: string
|
|
8379
8393
|
error_code?: 'no_credential_on_encoder'
|
|
8380
8394
|
}
|
|
8381
8395
|
| {
|
|
8396
|
+
/** ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request. */
|
|
8382
8397
|
acs_encoder_id: string
|
|
8383
8398
|
error_code: 'uncategorized_error' | 'action_attempt_expired'
|
|
8384
8399
|
acs_credential_id_on_seam?: string | undefined
|
|
@@ -8393,18 +8408,25 @@ export interface Routes {
|
|
|
8393
8408
|
queryParams: {}
|
|
8394
8409
|
jsonBody:
|
|
8395
8410
|
| {
|
|
8411
|
+
/** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */
|
|
8396
8412
|
acs_encoder_id: string
|
|
8413
|
+
/** Scenario to simulate. */
|
|
8397
8414
|
scenario?:
|
|
8398
8415
|
| 'credential_exists_on_seam'
|
|
8399
8416
|
| 'credential_on_encoder_needs_update'
|
|
8417
|
+
/** ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation. */
|
|
8400
8418
|
acs_credential_id_on_seam?: string | undefined
|
|
8401
8419
|
}
|
|
8402
8420
|
| {
|
|
8421
|
+
/** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */
|
|
8403
8422
|
acs_encoder_id: string
|
|
8423
|
+
/** Scenario to simulate. */
|
|
8404
8424
|
scenario: 'credential_does_not_exist_on_seam'
|
|
8405
8425
|
}
|
|
8406
8426
|
| {
|
|
8427
|
+
/** ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`. */
|
|
8407
8428
|
acs_encoder_id: string
|
|
8429
|
+
/** Scenario to simulate. */
|
|
8408
8430
|
scenario: 'credential_on_encoder_is_empty'
|
|
8409
8431
|
}
|
|
8410
8432
|
commonParams: {}
|