@seamapi/types 1.263.1 → 1.264.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 +364 -43
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3241 -120
- package/lib/seam/connect/models/acs/acs-credential.d.ts +83 -0
- package/lib/seam/connect/models/acs/acs-credential.js +38 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +798 -14
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -2
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-card.d.ts +875 -0
- package/lib/seam/connect/models/action-attempts/{read-card.js → scan-card.js} +8 -12
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +241 -4
- package/lib/seam/connect/openapi.js +311 -11
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2202 -102
- package/package.json +2 -2
- package/src/lib/seam/connect/models/acs/acs-credential.ts +48 -0
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -2
- package/src/lib/seam/connect/models/action-attempts/{read-card.ts → scan-card.ts} +15 -12
- package/src/lib/seam/connect/openapi.ts +316 -11
- package/src/lib/seam/connect/route-types.ts +3042 -242
- package/lib/seam/connect/models/action-attempts/read-card.d.ts +0 -91
- package/lib/seam/connect/models/action-attempts/read-card.js.map +0 -1
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { acs_credential, acs_credential_on_encoder, unmanaged_acs_credential, } from '../acs/acs-credential.js';
|
|
2
3
|
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
-
const action_type = z.literal('
|
|
4
|
+
const action_type = z.literal('SCAN_CARD');
|
|
4
5
|
const error = z.object({
|
|
5
6
|
type: z.literal('no_card_on_encoder'),
|
|
6
7
|
message: z.string(),
|
|
7
8
|
});
|
|
9
|
+
const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
|
|
8
10
|
const result = z.object({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// .uuid()
|
|
12
|
-
// .nullable()
|
|
13
|
-
// .describe("Matching acs_credential currently encoded on this card."),
|
|
14
|
-
card_number: z
|
|
15
|
-
.string()
|
|
11
|
+
acs_credential_on_encoder: acs_credential_on_encoder.describe('Snapshot of the card data read from the physical encoder.'),
|
|
12
|
+
acs_credential_on_seam: acs_credential_on_seam
|
|
16
13
|
.nullable()
|
|
17
|
-
.describe('
|
|
18
|
-
// TODO visionline_metadata: visionline_credential_metadata,
|
|
14
|
+
.describe('Matching acs_credential currently encoded on this card.'),
|
|
19
15
|
});
|
|
20
|
-
export const
|
|
16
|
+
export const scan_card_action_attempt = z.discriminatedUnion('status', [
|
|
21
17
|
common_pending_action_attempt
|
|
22
18
|
.extend({
|
|
23
19
|
action_type,
|
|
@@ -33,4 +29,4 @@ export const read_card_action_attempt = z.discriminatedUnion('status', [
|
|
|
33
29
|
.extend({ action_type, error })
|
|
34
30
|
.describe('Reading card data from physical encoder failed.'),
|
|
35
31
|
]);
|
|
36
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=scan-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/scan-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;AAE1C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAA;AAE1E,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,yBAAyB,EAAE,yBAAyB,CAAC,QAAQ,CAC3D,2DAA2D,CAC5D;IACD,sBAAsB,EAAE,sBAAsB;SAC3C,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;CACvE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,oDAAoD,CAAC;IACjE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC,CAAA"}
|
|
@@ -944,8 +944,10 @@ declare const _default: {
|
|
|
944
944
|
};
|
|
945
945
|
result: {
|
|
946
946
|
properties: {
|
|
947
|
-
|
|
947
|
+
acs_credential_on_encoder?: never;
|
|
948
|
+
acs_credential_on_seam?: never;
|
|
948
949
|
acs_credential_id?: never;
|
|
950
|
+
card_number?: never;
|
|
949
951
|
};
|
|
950
952
|
type: string;
|
|
951
953
|
nullable?: never;
|
|
@@ -1019,12 +1021,245 @@ declare const _default: {
|
|
|
1019
1021
|
};
|
|
1020
1022
|
result: {
|
|
1021
1023
|
properties: {
|
|
1022
|
-
|
|
1024
|
+
acs_credential_on_encoder: {
|
|
1023
1025
|
description: string;
|
|
1024
|
-
|
|
1026
|
+
properties: {
|
|
1027
|
+
card_number: {
|
|
1028
|
+
description: string;
|
|
1029
|
+
nullable: boolean;
|
|
1030
|
+
type: string;
|
|
1031
|
+
};
|
|
1032
|
+
created_at: {
|
|
1033
|
+
description: string;
|
|
1034
|
+
format: string;
|
|
1035
|
+
type: string;
|
|
1036
|
+
};
|
|
1037
|
+
ends_at: {
|
|
1038
|
+
description: string;
|
|
1039
|
+
format: string;
|
|
1040
|
+
nullable: boolean;
|
|
1041
|
+
type: string;
|
|
1042
|
+
};
|
|
1043
|
+
is_issued: {
|
|
1044
|
+
nullable: boolean;
|
|
1045
|
+
type: string;
|
|
1046
|
+
};
|
|
1047
|
+
starts_at: {
|
|
1048
|
+
description: string;
|
|
1049
|
+
format: string;
|
|
1050
|
+
nullable: boolean;
|
|
1051
|
+
type: string;
|
|
1052
|
+
};
|
|
1053
|
+
visionline_metadata: {
|
|
1054
|
+
properties: {
|
|
1055
|
+
cancelled: {
|
|
1056
|
+
type: string;
|
|
1057
|
+
};
|
|
1058
|
+
card_format: {
|
|
1059
|
+
enum: string[];
|
|
1060
|
+
type: string;
|
|
1061
|
+
};
|
|
1062
|
+
card_function_type: {
|
|
1063
|
+
enum: string[];
|
|
1064
|
+
type: string;
|
|
1065
|
+
};
|
|
1066
|
+
card_holder: {
|
|
1067
|
+
type: string;
|
|
1068
|
+
};
|
|
1069
|
+
card_id: {
|
|
1070
|
+
type: string;
|
|
1071
|
+
};
|
|
1072
|
+
discarded: {
|
|
1073
|
+
type: string;
|
|
1074
|
+
};
|
|
1075
|
+
expired: {
|
|
1076
|
+
type: string;
|
|
1077
|
+
};
|
|
1078
|
+
number_of_issued_cards: {
|
|
1079
|
+
format: string;
|
|
1080
|
+
type: string;
|
|
1081
|
+
};
|
|
1082
|
+
overridden: {
|
|
1083
|
+
type: string;
|
|
1084
|
+
};
|
|
1085
|
+
overwritten: {
|
|
1086
|
+
type: string;
|
|
1087
|
+
};
|
|
1088
|
+
pending_auto_update: {
|
|
1089
|
+
type: string;
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
required: string[];
|
|
1093
|
+
type: string;
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
required: string[];
|
|
1025
1097
|
type: string;
|
|
1026
1098
|
};
|
|
1099
|
+
acs_credential_on_seam: {
|
|
1100
|
+
description: string;
|
|
1101
|
+
nullable: boolean;
|
|
1102
|
+
oneOf: {
|
|
1103
|
+
properties: {
|
|
1104
|
+
access_method: {
|
|
1105
|
+
enum: string[];
|
|
1106
|
+
type: string;
|
|
1107
|
+
};
|
|
1108
|
+
acs_credential_id: {
|
|
1109
|
+
format: string;
|
|
1110
|
+
type: string;
|
|
1111
|
+
};
|
|
1112
|
+
acs_credential_pool_id: {
|
|
1113
|
+
format: string;
|
|
1114
|
+
type: string;
|
|
1115
|
+
};
|
|
1116
|
+
acs_system_id: {
|
|
1117
|
+
format: string;
|
|
1118
|
+
type: string;
|
|
1119
|
+
};
|
|
1120
|
+
acs_user_id: {
|
|
1121
|
+
format: string;
|
|
1122
|
+
type: string;
|
|
1123
|
+
};
|
|
1124
|
+
card_number: {
|
|
1125
|
+
nullable: boolean;
|
|
1126
|
+
type: string;
|
|
1127
|
+
};
|
|
1128
|
+
code: {
|
|
1129
|
+
nullable: boolean;
|
|
1130
|
+
type: string;
|
|
1131
|
+
};
|
|
1132
|
+
created_at: {
|
|
1133
|
+
format: string;
|
|
1134
|
+
type: string;
|
|
1135
|
+
};
|
|
1136
|
+
display_name: {
|
|
1137
|
+
minLength: number;
|
|
1138
|
+
type: string;
|
|
1139
|
+
};
|
|
1140
|
+
ends_at: {
|
|
1141
|
+
type: string;
|
|
1142
|
+
};
|
|
1143
|
+
errors: {
|
|
1144
|
+
items: {
|
|
1145
|
+
properties: {
|
|
1146
|
+
error_code: {
|
|
1147
|
+
type: string;
|
|
1148
|
+
};
|
|
1149
|
+
message: {
|
|
1150
|
+
type: string;
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
required: string[];
|
|
1154
|
+
type: string;
|
|
1155
|
+
};
|
|
1156
|
+
type: string;
|
|
1157
|
+
};
|
|
1158
|
+
external_type: {
|
|
1159
|
+
enum: string[];
|
|
1160
|
+
type: string;
|
|
1161
|
+
};
|
|
1162
|
+
external_type_display_name: {
|
|
1163
|
+
type: string;
|
|
1164
|
+
};
|
|
1165
|
+
is_issued: {
|
|
1166
|
+
type: string;
|
|
1167
|
+
};
|
|
1168
|
+
is_latest_desired_state_synced_with_provider: {
|
|
1169
|
+
type: string;
|
|
1170
|
+
};
|
|
1171
|
+
is_managed: {
|
|
1172
|
+
enum: boolean[];
|
|
1173
|
+
type: string;
|
|
1174
|
+
};
|
|
1175
|
+
is_multi_phone_sync_credential: {
|
|
1176
|
+
type: string;
|
|
1177
|
+
};
|
|
1178
|
+
issued_at: {
|
|
1179
|
+
format: string;
|
|
1180
|
+
nullable: boolean;
|
|
1181
|
+
type: string;
|
|
1182
|
+
};
|
|
1183
|
+
latest_desired_state_synced_with_provider_at: {
|
|
1184
|
+
format: string;
|
|
1185
|
+
type: string;
|
|
1186
|
+
};
|
|
1187
|
+
parent_acs_credential_id: {
|
|
1188
|
+
format: string;
|
|
1189
|
+
type: string;
|
|
1190
|
+
};
|
|
1191
|
+
starts_at: {
|
|
1192
|
+
type: string;
|
|
1193
|
+
};
|
|
1194
|
+
visionline_metadata: {
|
|
1195
|
+
properties: {
|
|
1196
|
+
auto_join: {
|
|
1197
|
+
type: string;
|
|
1198
|
+
};
|
|
1199
|
+
card_function_type: {
|
|
1200
|
+
enum: string[];
|
|
1201
|
+
type: string;
|
|
1202
|
+
};
|
|
1203
|
+
card_id: {
|
|
1204
|
+
type: string;
|
|
1205
|
+
};
|
|
1206
|
+
common_acs_entrance_ids: {
|
|
1207
|
+
items: {
|
|
1208
|
+
format: string;
|
|
1209
|
+
type: string;
|
|
1210
|
+
};
|
|
1211
|
+
type: string;
|
|
1212
|
+
};
|
|
1213
|
+
credential_id: {
|
|
1214
|
+
type: string;
|
|
1215
|
+
};
|
|
1216
|
+
guest_acs_entrance_ids: {
|
|
1217
|
+
items: {
|
|
1218
|
+
format: string;
|
|
1219
|
+
type: string;
|
|
1220
|
+
};
|
|
1221
|
+
type: string;
|
|
1222
|
+
};
|
|
1223
|
+
is_valid: {
|
|
1224
|
+
type: string;
|
|
1225
|
+
};
|
|
1226
|
+
joiner_acs_credential_ids: {
|
|
1227
|
+
items: {
|
|
1228
|
+
format: string;
|
|
1229
|
+
type: string;
|
|
1230
|
+
};
|
|
1231
|
+
type: string;
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
required: string[];
|
|
1235
|
+
type: string;
|
|
1236
|
+
};
|
|
1237
|
+
warnings: {
|
|
1238
|
+
items: {
|
|
1239
|
+
properties: {
|
|
1240
|
+
message: {
|
|
1241
|
+
type: string;
|
|
1242
|
+
};
|
|
1243
|
+
warning_code: {
|
|
1244
|
+
type: string;
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
required: string[];
|
|
1248
|
+
type: string;
|
|
1249
|
+
};
|
|
1250
|
+
type: string;
|
|
1251
|
+
};
|
|
1252
|
+
workspace_id: {
|
|
1253
|
+
format: string;
|
|
1254
|
+
type: string;
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
required: string[];
|
|
1258
|
+
type: string;
|
|
1259
|
+
}[];
|
|
1260
|
+
};
|
|
1027
1261
|
acs_credential_id?: never;
|
|
1262
|
+
card_number?: never;
|
|
1028
1263
|
};
|
|
1029
1264
|
required: string[];
|
|
1030
1265
|
type: string;
|
|
@@ -1109,6 +1344,8 @@ declare const _default: {
|
|
|
1109
1344
|
nullable: boolean;
|
|
1110
1345
|
type: string;
|
|
1111
1346
|
};
|
|
1347
|
+
acs_credential_on_encoder?: never;
|
|
1348
|
+
acs_credential_on_seam?: never;
|
|
1112
1349
|
};
|
|
1113
1350
|
required: string[];
|
|
1114
1351
|
type: string;
|
|
@@ -8422,7 +8659,7 @@ declare const _default: {
|
|
|
8422
8659
|
'x-undocumented': string;
|
|
8423
8660
|
};
|
|
8424
8661
|
};
|
|
8425
|
-
'/acs/encoders/
|
|
8662
|
+
'/acs/encoders/scan_card': {
|
|
8426
8663
|
post: {
|
|
8427
8664
|
operationId: string;
|
|
8428
8665
|
requestBody: {
|