@seamapi/types 1.259.1 → 1.261.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 +35 -21
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +109 -87
- package/lib/seam/connect/models/acs/acs-entrance.js +10 -4
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +0 -5
- package/lib/seam/connect/models/action-attempts/encode-card.js +1 -1
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/read-card.d.ts +0 -5
- package/lib/seam/connect/models/action-attempts/read-card.js +6 -6
- package/lib/seam/connect/models/action-attempts/read-card.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +48 -2
- package/lib/seam/connect/openapi.js +24 -14
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +61 -80
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +10 -4
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +1 -1
- package/src/lib/seam/connect/models/action-attempts/read-card.ts +6 -6
- package/src/lib/seam/connect/openapi.ts +25 -15
- package/src/lib/seam/connect/route-types.ts +61 -80
|
@@ -29,13 +29,10 @@ export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status",
|
|
|
29
29
|
}>, {
|
|
30
30
|
action_type: z.ZodLiteral<"READ_CARD">;
|
|
31
31
|
result: z.ZodObject<{
|
|
32
|
-
acs_credential_id: z.ZodNullable<z.ZodString>;
|
|
33
32
|
card_number: z.ZodNullable<z.ZodString>;
|
|
34
33
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
acs_credential_id: string | null;
|
|
36
34
|
card_number: string | null;
|
|
37
35
|
}, {
|
|
38
|
-
acs_credential_id: string | null;
|
|
39
36
|
card_number: string | null;
|
|
40
37
|
}>;
|
|
41
38
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -43,7 +40,6 @@ export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status",
|
|
|
43
40
|
status: "success";
|
|
44
41
|
action_attempt_id: string;
|
|
45
42
|
result: {
|
|
46
|
-
acs_credential_id: string | null;
|
|
47
43
|
card_number: string | null;
|
|
48
44
|
};
|
|
49
45
|
action_type: "READ_CARD";
|
|
@@ -52,7 +48,6 @@ export declare const read_card_action_attempt: z.ZodDiscriminatedUnion<"status",
|
|
|
52
48
|
status: "success";
|
|
53
49
|
action_attempt_id: string;
|
|
54
50
|
result: {
|
|
55
|
-
acs_credential_id: string | null;
|
|
56
51
|
card_number: string | null;
|
|
57
52
|
};
|
|
58
53
|
action_type: "READ_CARD";
|
|
@@ -6,15 +6,15 @@ const error = z.object({
|
|
|
6
6
|
message: z.string(),
|
|
7
7
|
});
|
|
8
8
|
const result = z.object({
|
|
9
|
-
acs_credential_id: z
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
// TODO acs_credential_id: z
|
|
10
|
+
// .string()
|
|
11
|
+
// .uuid()
|
|
12
|
+
// .nullable()
|
|
13
|
+
// .describe("Matching acs_credential currently encoded on this card."),
|
|
14
14
|
card_number: z
|
|
15
15
|
.string()
|
|
16
16
|
.nullable()
|
|
17
|
-
.describe('A number or
|
|
17
|
+
.describe('A number or string that physically identifies this card.'),
|
|
18
18
|
// TODO visionline_metadata: visionline_credential_metadata,
|
|
19
19
|
});
|
|
20
20
|
export const read_card_action_attempt = z.discriminatedUnion('status', [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/read-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,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,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"read-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/read-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,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,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,0EAA0E;IAC1E,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0DAA0D,CAAC;IACvE,4DAA4D;CAC7D,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"}
|
|
@@ -442,18 +442,22 @@ declare const _default: {
|
|
|
442
442
|
acs_entrance: {
|
|
443
443
|
properties: {
|
|
444
444
|
acs_entrance_id: {
|
|
445
|
+
description: string;
|
|
445
446
|
format: string;
|
|
446
447
|
type: string;
|
|
447
448
|
};
|
|
448
449
|
acs_system_id: {
|
|
450
|
+
description: string;
|
|
449
451
|
format: string;
|
|
450
452
|
type: string;
|
|
451
453
|
};
|
|
452
454
|
created_at: {
|
|
455
|
+
description: string;
|
|
453
456
|
format: string;
|
|
454
457
|
type: string;
|
|
455
458
|
};
|
|
456
459
|
display_name: {
|
|
460
|
+
description: string;
|
|
457
461
|
type: string;
|
|
458
462
|
};
|
|
459
463
|
errors: {
|
|
@@ -940,8 +944,8 @@ declare const _default: {
|
|
|
940
944
|
};
|
|
941
945
|
result: {
|
|
942
946
|
properties: {
|
|
943
|
-
acs_credential_id?: never;
|
|
944
947
|
card_number?: never;
|
|
948
|
+
acs_credential_id?: never;
|
|
945
949
|
};
|
|
946
950
|
type: string;
|
|
947
951
|
nullable?: never;
|
|
@@ -993,6 +997,45 @@ declare const _default: {
|
|
|
993
997
|
};
|
|
994
998
|
required: string[];
|
|
995
999
|
type: string;
|
|
1000
|
+
} | {
|
|
1001
|
+
description: string;
|
|
1002
|
+
properties: {
|
|
1003
|
+
action_attempt_id: {
|
|
1004
|
+
description: string;
|
|
1005
|
+
format: string;
|
|
1006
|
+
type: string;
|
|
1007
|
+
'x-title': string;
|
|
1008
|
+
};
|
|
1009
|
+
action_type: {
|
|
1010
|
+
enum: string[];
|
|
1011
|
+
type: string;
|
|
1012
|
+
};
|
|
1013
|
+
error: {
|
|
1014
|
+
nullable: boolean;
|
|
1015
|
+
properties?: never;
|
|
1016
|
+
required?: never;
|
|
1017
|
+
type?: never;
|
|
1018
|
+
};
|
|
1019
|
+
result: {
|
|
1020
|
+
properties: {
|
|
1021
|
+
card_number: {
|
|
1022
|
+
description: string;
|
|
1023
|
+
nullable: boolean;
|
|
1024
|
+
type: string;
|
|
1025
|
+
};
|
|
1026
|
+
acs_credential_id?: never;
|
|
1027
|
+
};
|
|
1028
|
+
required: string[];
|
|
1029
|
+
type: string;
|
|
1030
|
+
nullable?: never;
|
|
1031
|
+
};
|
|
1032
|
+
status: {
|
|
1033
|
+
enum: string[];
|
|
1034
|
+
type: string;
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
required: string[];
|
|
1038
|
+
type: string;
|
|
996
1039
|
} | {
|
|
997
1040
|
description: string;
|
|
998
1041
|
properties: {
|
|
@@ -8131,11 +8174,14 @@ declare const _default: {
|
|
|
8131
8174
|
type: string;
|
|
8132
8175
|
} | {
|
|
8133
8176
|
properties: {
|
|
8177
|
+
acs_system_id: {
|
|
8178
|
+
format: string;
|
|
8179
|
+
type: string;
|
|
8180
|
+
};
|
|
8134
8181
|
device_id: {
|
|
8135
8182
|
format: string;
|
|
8136
8183
|
type: string;
|
|
8137
8184
|
};
|
|
8138
|
-
acs_system_id?: never;
|
|
8139
8185
|
device_name?: never;
|
|
8140
8186
|
};
|
|
8141
8187
|
required: string[];
|
|
@@ -359,10 +359,25 @@ export default {
|
|
|
359
359
|
},
|
|
360
360
|
acs_entrance: {
|
|
361
361
|
properties: {
|
|
362
|
-
acs_entrance_id: {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
362
|
+
acs_entrance_id: {
|
|
363
|
+
description: 'ID of the entrance.',
|
|
364
|
+
format: 'uuid',
|
|
365
|
+
type: 'string',
|
|
366
|
+
},
|
|
367
|
+
acs_system_id: {
|
|
368
|
+
description: 'ID of the access control system that contains the entrance.',
|
|
369
|
+
format: 'uuid',
|
|
370
|
+
type: 'string',
|
|
371
|
+
},
|
|
372
|
+
created_at: {
|
|
373
|
+
description: 'Date and time at which the entrance was created.',
|
|
374
|
+
format: 'date-time',
|
|
375
|
+
type: 'string',
|
|
376
|
+
},
|
|
377
|
+
display_name: {
|
|
378
|
+
description: 'Display name for the entrance.',
|
|
379
|
+
type: 'string',
|
|
380
|
+
},
|
|
366
381
|
errors: {
|
|
367
382
|
items: {
|
|
368
383
|
properties: {
|
|
@@ -1158,19 +1173,13 @@ export default {
|
|
|
1158
1173
|
error: { nullable: true },
|
|
1159
1174
|
result: {
|
|
1160
1175
|
properties: {
|
|
1161
|
-
acs_credential_id: {
|
|
1162
|
-
description: 'Matching acs_credential currently encoded on this card.',
|
|
1163
|
-
format: 'uuid',
|
|
1164
|
-
nullable: true,
|
|
1165
|
-
type: 'string',
|
|
1166
|
-
},
|
|
1167
1176
|
card_number: {
|
|
1168
|
-
description: 'A number or
|
|
1177
|
+
description: 'A number or string that physically identifies this card.',
|
|
1169
1178
|
nullable: true,
|
|
1170
1179
|
type: 'string',
|
|
1171
1180
|
},
|
|
1172
1181
|
},
|
|
1173
|
-
required: ['
|
|
1182
|
+
required: ['card_number'],
|
|
1174
1183
|
type: 'object',
|
|
1175
1184
|
},
|
|
1176
1185
|
status: { enum: ['success'], type: 'string' },
|
|
@@ -1257,7 +1266,7 @@ export default {
|
|
|
1257
1266
|
type: 'string',
|
|
1258
1267
|
},
|
|
1259
1268
|
card_number: {
|
|
1260
|
-
description: 'A number or
|
|
1269
|
+
description: 'A number or string that physically identifies this card.',
|
|
1261
1270
|
nullable: true,
|
|
1262
1271
|
type: 'string',
|
|
1263
1272
|
},
|
|
@@ -7484,9 +7493,10 @@ export default {
|
|
|
7484
7493
|
},
|
|
7485
7494
|
{
|
|
7486
7495
|
properties: {
|
|
7496
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
7487
7497
|
device_id: { format: 'uuid', type: 'string' },
|
|
7488
7498
|
},
|
|
7489
|
-
required: ['device_id'],
|
|
7499
|
+
required: ['acs_system_id', 'device_id'],
|
|
7490
7500
|
type: 'object',
|
|
7491
7501
|
},
|
|
7492
7502
|
],
|