@seamapi/types 1.263.1 → 1.264.1

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.
Files changed (40) hide show
  1. package/dist/connect.cjs +438 -84
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +3745 -454
  4. package/lib/seam/connect/models/acs/acs-credential.d.ts +83 -0
  5. package/lib/seam/connect/models/acs/acs-credential.js +38 -0
  6. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  7. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +862 -53
  8. package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -2
  9. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/deprecated.d.ts +61 -21
  11. package/lib/seam/connect/models/action-attempts/deprecated.js +13 -5
  12. package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
  13. package/lib/seam/connect/models/action-attempts/encode-card.d.ts +3 -18
  14. package/lib/seam/connect/models/action-attempts/encode-card.js +1 -12
  15. package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
  16. package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
  17. package/lib/seam/connect/models/action-attempts/index.js +1 -0
  18. package/lib/seam/connect/models/action-attempts/index.js.map +1 -1
  19. package/lib/seam/connect/models/action-attempts/scan-card.d.ts +875 -0
  20. package/lib/seam/connect/models/action-attempts/{read-card.js → scan-card.js} +8 -12
  21. package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -0
  22. package/lib/seam/connect/openapi.d.ts +308 -38
  23. package/lib/seam/connect/openapi.js +368 -42
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +2522 -362
  26. package/lib/seam/connect/schemas.d.ts +1 -1
  27. package/lib/seam/connect/schemas.js +1 -1
  28. package/lib/seam/connect/schemas.js.map +1 -1
  29. package/package.json +2 -2
  30. package/src/lib/seam/connect/models/acs/acs-credential.ts +48 -0
  31. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -2
  32. package/src/lib/seam/connect/models/action-attempts/deprecated.ts +13 -5
  33. package/src/lib/seam/connect/models/action-attempts/encode-card.ts +1 -12
  34. package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
  35. package/src/lib/seam/connect/models/action-attempts/{read-card.ts → scan-card.ts} +15 -12
  36. package/src/lib/seam/connect/openapi.ts +373 -44
  37. package/src/lib/seam/connect/route-types.ts +3362 -502
  38. package/src/lib/seam/connect/schemas.ts +3 -0
  39. package/lib/seam/connect/models/action-attempts/read-card.d.ts +0 -91
  40. 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('READ_CARD');
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
- // TODO acs_credential_id: z
10
- // .string()
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('A number or string that physically identifies this card.'),
18
- // TODO visionline_metadata: visionline_credential_metadata,
14
+ .describe('Matching acs_credential currently encoded on this card.'),
19
15
  });
20
- export const read_card_action_attempt = z.discriminatedUnion('status', [
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=read-card.js.map
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
- card_number?: never;
948
- acs_credential_id?: never;
947
+ acs_credential_on_encoder?: never;
948
+ acs_credential_on_seam?: never;
949
+ access_code?: never;
950
+ noise_threshold?: 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
- card_number: {
1024
+ acs_credential_on_encoder: {
1023
1025
  description: string;
1024
- nullable: boolean;
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
  };
1027
- acs_credential_id?: never;
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
+ };
1261
+ access_code?: never;
1262
+ noise_threshold?: never;
1028
1263
  };
1029
1264
  required: string[];
1030
1265
  type: string;
@@ -1078,7 +1313,6 @@ declare const _default: {
1078
1313
  required: string[];
1079
1314
  type: string;
1080
1315
  } | {
1081
- description: string;
1082
1316
  properties: {
1083
1317
  action_attempt_id: {
1084
1318
  description: string;
@@ -1097,22 +1331,10 @@ declare const _default: {
1097
1331
  type?: never;
1098
1332
  };
1099
1333
  result: {
1100
- properties: {
1101
- acs_credential_id: {
1102
- description: string;
1103
- format: string;
1104
- nullable: boolean;
1105
- type: string;
1106
- };
1107
- card_number: {
1108
- description: string;
1109
- nullable: boolean;
1110
- type: string;
1111
- };
1112
- };
1113
- required: string[];
1114
- type: string;
1115
- nullable?: never;
1334
+ nullable: boolean;
1335
+ properties?: never;
1336
+ type?: never;
1337
+ required?: never;
1116
1338
  };
1117
1339
  status: {
1118
1340
  enum: string[];
@@ -1121,6 +1343,7 @@ declare const _default: {
1121
1343
  };
1122
1344
  required: string[];
1123
1345
  type: string;
1346
+ description?: never;
1124
1347
  } | {
1125
1348
  properties: {
1126
1349
  action_attempt_id: {
@@ -1139,6 +1362,51 @@ declare const _default: {
1139
1362
  required?: never;
1140
1363
  type?: never;
1141
1364
  };
1365
+ result: {
1366
+ properties: {
1367
+ acs_credential_on_encoder?: never;
1368
+ acs_credential_on_seam?: never;
1369
+ access_code?: never;
1370
+ noise_threshold?: never;
1371
+ };
1372
+ type: string;
1373
+ nullable?: never;
1374
+ required?: never;
1375
+ };
1376
+ status: {
1377
+ enum: string[];
1378
+ type: string;
1379
+ };
1380
+ };
1381
+ required: string[];
1382
+ type: string;
1383
+ description?: never;
1384
+ } | {
1385
+ properties: {
1386
+ action_attempt_id: {
1387
+ description: string;
1388
+ format: string;
1389
+ type: string;
1390
+ 'x-title': string;
1391
+ };
1392
+ action_type: {
1393
+ enum: string[];
1394
+ type: string;
1395
+ };
1396
+ error: {
1397
+ properties: {
1398
+ message: {
1399
+ type: string;
1400
+ };
1401
+ type: {
1402
+ type: string;
1403
+ enum?: never;
1404
+ };
1405
+ };
1406
+ required: string[];
1407
+ type: string;
1408
+ nullable?: never;
1409
+ };
1142
1410
  result: {
1143
1411
  nullable: boolean;
1144
1412
  properties?: never;
@@ -1172,9 +1440,14 @@ declare const _default: {
1172
1440
  type?: never;
1173
1441
  };
1174
1442
  result: {
1443
+ properties: {
1444
+ access_code: {};
1445
+ acs_credential_on_encoder?: never;
1446
+ acs_credential_on_seam?: never;
1447
+ noise_threshold?: never;
1448
+ };
1449
+ type: string;
1175
1450
  nullable?: never;
1176
- properties?: never;
1177
- type?: never;
1178
1451
  required?: never;
1179
1452
  };
1180
1453
  status: {
@@ -1198,23 +1471,20 @@ declare const _default: {
1198
1471
  type: string;
1199
1472
  };
1200
1473
  error: {
1474
+ nullable: boolean;
1475
+ properties?: never;
1476
+ required?: never;
1477
+ type?: never;
1478
+ };
1479
+ result: {
1201
1480
  properties: {
1202
- message: {
1203
- type: string;
1204
- };
1205
- type: {
1206
- type: string;
1207
- enum?: never;
1208
- };
1481
+ noise_threshold: {};
1482
+ acs_credential_on_encoder?: never;
1483
+ acs_credential_on_seam?: never;
1484
+ access_code?: never;
1209
1485
  };
1210
- required: string[];
1211
1486
  type: string;
1212
1487
  nullable?: never;
1213
- };
1214
- result: {
1215
- nullable: boolean;
1216
- properties?: never;
1217
- type?: never;
1218
1488
  required?: never;
1219
1489
  };
1220
1490
  status: {
@@ -8422,7 +8692,7 @@ declare const _default: {
8422
8692
  'x-undocumented': string;
8423
8693
  };
8424
8694
  };
8425
- '/acs/encoders/read_card': {
8695
+ '/acs/encoders/scan_card': {
8426
8696
  post: {
8427
8697
  operationId: string;
8428
8698
  requestBody: {