@gbg/go-core 0.0.1-alpha.17 → 0.0.1-alpha.19
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/LICENSE.md +21 -0
- package/README.md +4 -14
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +0 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +8 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +1 -2
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/operations/fetch-interaction.d.ts +70 -10
- package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/commonjs/models/operations/fetch-interaction.js +45 -15
- package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -1
- package/dist/commonjs/models/operations/get-journey-state.d.ts +55 -9
- package/dist/commonjs/models/operations/get-journey-state.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-journey-state.js +30 -12
- package/dist/commonjs/models/operations/get-journey-state.js.map +1 -1
- package/dist/commonjs/models/operations/start-journey.d.ts +104 -20
- package/dist/commonjs/models/operations/start-journey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/start-journey.js +49 -13
- package/dist/commonjs/models/operations/start-journey.js.map +1 -1
- package/dist/commonjs/models/operations/submit-interaction.d.ts +76 -16
- package/dist/commonjs/models/operations/submit-interaction.d.ts.map +1 -1
- package/dist/commonjs/models/operations/submit-interaction.js +29 -11
- package/dist/commonjs/models/operations/submit-interaction.js.map +1 -1
- package/dist/commonjs/models/operations/update-task.d.ts +76 -16
- package/dist/commonjs/models/operations/update-task.d.ts.map +1 -1
- package/dist/commonjs/models/operations/update-task.js +29 -11
- package/dist/commonjs/models/operations/update-task.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +0 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +8 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +1 -2
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/operations/fetch-interaction.d.ts +70 -10
- package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/esm/models/operations/fetch-interaction.js +41 -12
- package/dist/esm/models/operations/fetch-interaction.js.map +1 -1
- package/dist/esm/models/operations/get-journey-state.d.ts +55 -9
- package/dist/esm/models/operations/get-journey-state.d.ts.map +1 -1
- package/dist/esm/models/operations/get-journey-state.js +28 -11
- package/dist/esm/models/operations/get-journey-state.js.map +1 -1
- package/dist/esm/models/operations/start-journey.d.ts +104 -20
- package/dist/esm/models/operations/start-journey.d.ts.map +1 -1
- package/dist/esm/models/operations/start-journey.js +45 -11
- package/dist/esm/models/operations/start-journey.js.map +1 -1
- package/dist/esm/models/operations/submit-interaction.d.ts +76 -16
- package/dist/esm/models/operations/submit-interaction.d.ts.map +1 -1
- package/dist/esm/models/operations/submit-interaction.js +27 -10
- package/dist/esm/models/operations/submit-interaction.js.map +1 -1
- package/dist/esm/models/operations/update-task.d.ts +76 -16
- package/dist/esm/models/operations/update-task.d.ts.map +1 -1
- package/dist/esm/models/operations/update-task.js +27 -10
- package/dist/esm/models/operations/update-task.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/matchers.ts +3 -2
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +1 -2
- package/src/lib/url.ts +16 -14
- package/src/models/operations/fetch-interaction.ts +124 -26
- package/src/models/operations/get-journey-state.ts +98 -24
- package/src/models/operations/start-journey.ts +162 -38
- package/src/models/operations/submit-interaction.ts +120 -33
- package/src/models/operations/update-task.ts +118 -33
- package/.devcontainer/devcontainer.json +0 -45
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/examples/package-lock.json +0 -611
- package/examples/package.json +0 -18
- package/tsconfig.json +0 -40
|
@@ -10,6 +10,25 @@ import * as types from "../../types/primitives.js";
|
|
|
10
10
|
import { smartUnion } from "../../types/smart-union.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* The method by which the End User will consume the journey.
|
|
15
|
+
*/
|
|
16
|
+
export const Delivery = {
|
|
17
|
+
Page: "page",
|
|
18
|
+
Api: "api",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* The method by which the End User will consume the journey.
|
|
22
|
+
*/
|
|
23
|
+
export type Delivery = ClosedEnum<typeof Delivery>;
|
|
24
|
+
|
|
25
|
+
export type Config = {
|
|
26
|
+
/**
|
|
27
|
+
* The method by which the End User will consume the journey.
|
|
28
|
+
*/
|
|
29
|
+
delivery: Delivery;
|
|
30
|
+
};
|
|
31
|
+
|
|
13
32
|
export type StartJourneyIdentityAlias = {
|
|
14
33
|
/**
|
|
15
34
|
* Title of an individual such as Mr, Mrs, Dr, Sir
|
|
@@ -1071,34 +1090,34 @@ export type StartJourneyBiometric4 = {
|
|
|
1071
1090
|
id?: string | undefined;
|
|
1072
1091
|
type?: string | undefined;
|
|
1073
1092
|
selfieImage: string;
|
|
1074
|
-
|
|
1093
|
+
selfieImageEncryption?: boolean | undefined;
|
|
1075
1094
|
};
|
|
1076
1095
|
|
|
1077
1096
|
export type StartJourneyBiometric3 = {
|
|
1078
1097
|
id?: string | undefined;
|
|
1079
1098
|
type?: string | undefined;
|
|
1080
|
-
|
|
1081
|
-
selfieImageEncryption?: boolean | undefined;
|
|
1099
|
+
faceImage: string;
|
|
1082
1100
|
};
|
|
1083
1101
|
|
|
1084
1102
|
export type StartJourneyBiometric2 = {
|
|
1085
1103
|
id?: string | undefined;
|
|
1086
1104
|
type?: string | undefined;
|
|
1087
|
-
|
|
1088
|
-
|
|
1105
|
+
selfieImage: string;
|
|
1106
|
+
anchorImage: string;
|
|
1089
1107
|
};
|
|
1090
1108
|
|
|
1091
1109
|
export type StartJourneyBiometric1 = {
|
|
1092
1110
|
id?: string | undefined;
|
|
1093
1111
|
type?: string | undefined;
|
|
1094
|
-
|
|
1112
|
+
face1Image: string;
|
|
1113
|
+
face2Image: string;
|
|
1095
1114
|
};
|
|
1096
1115
|
|
|
1097
1116
|
export type StartJourneyBiometricUnion =
|
|
1098
|
-
| StartJourneyBiometric2
|
|
1099
|
-
| StartJourneyBiometric4
|
|
1100
1117
|
| StartJourneyBiometric1
|
|
1101
|
-
|
|
|
1118
|
+
| StartJourneyBiometric2
|
|
1119
|
+
| StartJourneyBiometric3
|
|
1120
|
+
| StartJourneyBiometric4;
|
|
1102
1121
|
|
|
1103
1122
|
export type StartJourneyUser = {
|
|
1104
1123
|
id: string;
|
|
@@ -1181,23 +1200,68 @@ export type StartJourneyConsent = {
|
|
|
1181
1200
|
signatory?: string | undefined;
|
|
1182
1201
|
};
|
|
1183
1202
|
|
|
1203
|
+
export type StartJourneyAccount = {
|
|
1204
|
+
/**
|
|
1205
|
+
* The type of account, e.g. Bank Account, Building Society
|
|
1206
|
+
*/
|
|
1207
|
+
type: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Account number
|
|
1210
|
+
*/
|
|
1211
|
+
accountNumber: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* UK sort code
|
|
1214
|
+
*/
|
|
1215
|
+
sortCode?: string | undefined;
|
|
1216
|
+
/**
|
|
1217
|
+
* US ABA routing number
|
|
1218
|
+
*/
|
|
1219
|
+
routingNumber?: string | undefined;
|
|
1220
|
+
/**
|
|
1221
|
+
* International Bank Account Number
|
|
1222
|
+
*/
|
|
1223
|
+
iban?: string | undefined;
|
|
1224
|
+
/**
|
|
1225
|
+
* BIC/SWIFT code
|
|
1226
|
+
*/
|
|
1227
|
+
bic?: string | undefined;
|
|
1228
|
+
/**
|
|
1229
|
+
* Name on the account
|
|
1230
|
+
*/
|
|
1231
|
+
accountHolderName?: string | undefined;
|
|
1232
|
+
/**
|
|
1233
|
+
* Name of the financial institution
|
|
1234
|
+
*/
|
|
1235
|
+
bankName?: string | undefined;
|
|
1236
|
+
/**
|
|
1237
|
+
* Country the address is in. It must be a valid ISO2 or ISO3 country code
|
|
1238
|
+
*/
|
|
1239
|
+
country?: string | undefined;
|
|
1240
|
+
/**
|
|
1241
|
+
* Account classification, e.g. current, savings
|
|
1242
|
+
*/
|
|
1243
|
+
accountType?: string | undefined;
|
|
1244
|
+
};
|
|
1245
|
+
|
|
1184
1246
|
export type StartJourneySubject = {
|
|
1185
1247
|
identity?: StartJourneyIdentity | undefined;
|
|
1186
1248
|
documents?: Array<StartJourneyDocument> | undefined;
|
|
1187
1249
|
biometrics?:
|
|
1188
1250
|
| Array<
|
|
1189
|
-
| StartJourneyBiometric2
|
|
1190
|
-
| StartJourneyBiometric4
|
|
1191
1251
|
| StartJourneyBiometric1
|
|
1252
|
+
| StartJourneyBiometric2
|
|
1192
1253
|
| StartJourneyBiometric3
|
|
1254
|
+
| StartJourneyBiometric4
|
|
1193
1255
|
>
|
|
1194
1256
|
| undefined;
|
|
1195
1257
|
sessions?: Array<StartJourneySession> | undefined;
|
|
1196
1258
|
consent?: Array<StartJourneyConsent> | undefined;
|
|
1259
|
+
accounts?: Array<StartJourneyAccount> | undefined;
|
|
1197
1260
|
uid?: string | undefined;
|
|
1198
1261
|
};
|
|
1199
1262
|
|
|
1200
1263
|
export type StartJourneyContext = {
|
|
1264
|
+
config: Config;
|
|
1201
1265
|
subject: StartJourneySubject;
|
|
1202
1266
|
};
|
|
1203
1267
|
|
|
@@ -1229,10 +1293,6 @@ export type StartJourneyResponseBody1 = {
|
|
|
1229
1293
|
* Journey Instance Id, a unique identifier for a started journey instance.
|
|
1230
1294
|
*/
|
|
1231
1295
|
instanceId: string;
|
|
1232
|
-
/**
|
|
1233
|
-
* URL to access the journey UI for no code journey implementations.
|
|
1234
|
-
*/
|
|
1235
|
-
instanceUrl?: string | undefined;
|
|
1236
1296
|
[additionalProperties: string]: unknown;
|
|
1237
1297
|
};
|
|
1238
1298
|
|
|
@@ -1240,6 +1300,26 @@ export type StartJourneyResponse =
|
|
|
1240
1300
|
| StartJourneyResponseBody1
|
|
1241
1301
|
| StartJourneyResponseBody2;
|
|
1242
1302
|
|
|
1303
|
+
/** @internal */
|
|
1304
|
+
export const Delivery$outboundSchema: z.ZodMiniEnum<typeof Delivery> = z.enum(
|
|
1305
|
+
Delivery,
|
|
1306
|
+
);
|
|
1307
|
+
|
|
1308
|
+
/** @internal */
|
|
1309
|
+
export type Config$Outbound = {
|
|
1310
|
+
delivery: string;
|
|
1311
|
+
};
|
|
1312
|
+
|
|
1313
|
+
/** @internal */
|
|
1314
|
+
export const Config$outboundSchema: z.ZodMiniType<Config$Outbound, Config> = z
|
|
1315
|
+
.object({
|
|
1316
|
+
delivery: Delivery$outboundSchema,
|
|
1317
|
+
});
|
|
1318
|
+
|
|
1319
|
+
export function configToJSON(config: Config): string {
|
|
1320
|
+
return JSON.stringify(Config$outboundSchema.parse(config));
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1243
1323
|
/** @internal */
|
|
1244
1324
|
export type StartJourneyIdentityAlias$Outbound = {
|
|
1245
1325
|
title?: string | undefined;
|
|
@@ -3215,7 +3295,7 @@ export type StartJourneyBiometric4$Outbound = {
|
|
|
3215
3295
|
id?: string | undefined;
|
|
3216
3296
|
type?: string | undefined;
|
|
3217
3297
|
selfieImage: string;
|
|
3218
|
-
|
|
3298
|
+
selfieImageEncryption?: boolean | undefined;
|
|
3219
3299
|
};
|
|
3220
3300
|
|
|
3221
3301
|
/** @internal */
|
|
@@ -3226,7 +3306,7 @@ export const StartJourneyBiometric4$outboundSchema: z.ZodMiniType<
|
|
|
3226
3306
|
id: z.optional(z.string()),
|
|
3227
3307
|
type: z.optional(z.string()),
|
|
3228
3308
|
selfieImage: z.string(),
|
|
3229
|
-
|
|
3309
|
+
selfieImageEncryption: z.optional(z.boolean()),
|
|
3230
3310
|
});
|
|
3231
3311
|
|
|
3232
3312
|
export function startJourneyBiometric4ToJSON(
|
|
@@ -3241,8 +3321,7 @@ export function startJourneyBiometric4ToJSON(
|
|
|
3241
3321
|
export type StartJourneyBiometric3$Outbound = {
|
|
3242
3322
|
id?: string | undefined;
|
|
3243
3323
|
type?: string | undefined;
|
|
3244
|
-
|
|
3245
|
-
selfieImageEncryption?: boolean | undefined;
|
|
3324
|
+
faceImage: string;
|
|
3246
3325
|
};
|
|
3247
3326
|
|
|
3248
3327
|
/** @internal */
|
|
@@ -3252,8 +3331,7 @@ export const StartJourneyBiometric3$outboundSchema: z.ZodMiniType<
|
|
|
3252
3331
|
> = z.object({
|
|
3253
3332
|
id: z.optional(z.string()),
|
|
3254
3333
|
type: z.optional(z.string()),
|
|
3255
|
-
|
|
3256
|
-
selfieImageEncryption: z.optional(z.boolean()),
|
|
3334
|
+
faceImage: z.string(),
|
|
3257
3335
|
});
|
|
3258
3336
|
|
|
3259
3337
|
export function startJourneyBiometric3ToJSON(
|
|
@@ -3268,8 +3346,8 @@ export function startJourneyBiometric3ToJSON(
|
|
|
3268
3346
|
export type StartJourneyBiometric2$Outbound = {
|
|
3269
3347
|
id?: string | undefined;
|
|
3270
3348
|
type?: string | undefined;
|
|
3271
|
-
|
|
3272
|
-
|
|
3349
|
+
selfieImage: string;
|
|
3350
|
+
anchorImage: string;
|
|
3273
3351
|
};
|
|
3274
3352
|
|
|
3275
3353
|
/** @internal */
|
|
@@ -3279,8 +3357,8 @@ export const StartJourneyBiometric2$outboundSchema: z.ZodMiniType<
|
|
|
3279
3357
|
> = z.object({
|
|
3280
3358
|
id: z.optional(z.string()),
|
|
3281
3359
|
type: z.optional(z.string()),
|
|
3282
|
-
|
|
3283
|
-
|
|
3360
|
+
selfieImage: z.string(),
|
|
3361
|
+
anchorImage: z.string(),
|
|
3284
3362
|
});
|
|
3285
3363
|
|
|
3286
3364
|
export function startJourneyBiometric2ToJSON(
|
|
@@ -3295,7 +3373,8 @@ export function startJourneyBiometric2ToJSON(
|
|
|
3295
3373
|
export type StartJourneyBiometric1$Outbound = {
|
|
3296
3374
|
id?: string | undefined;
|
|
3297
3375
|
type?: string | undefined;
|
|
3298
|
-
|
|
3376
|
+
face1Image: string;
|
|
3377
|
+
face2Image: string;
|
|
3299
3378
|
};
|
|
3300
3379
|
|
|
3301
3380
|
/** @internal */
|
|
@@ -3305,7 +3384,8 @@ export const StartJourneyBiometric1$outboundSchema: z.ZodMiniType<
|
|
|
3305
3384
|
> = z.object({
|
|
3306
3385
|
id: z.optional(z.string()),
|
|
3307
3386
|
type: z.optional(z.string()),
|
|
3308
|
-
|
|
3387
|
+
face1Image: z.string(),
|
|
3388
|
+
face2Image: z.string(),
|
|
3309
3389
|
});
|
|
3310
3390
|
|
|
3311
3391
|
export function startJourneyBiometric1ToJSON(
|
|
@@ -3318,20 +3398,20 @@ export function startJourneyBiometric1ToJSON(
|
|
|
3318
3398
|
|
|
3319
3399
|
/** @internal */
|
|
3320
3400
|
export type StartJourneyBiometricUnion$Outbound =
|
|
3321
|
-
| StartJourneyBiometric2$Outbound
|
|
3322
|
-
| StartJourneyBiometric4$Outbound
|
|
3323
3401
|
| StartJourneyBiometric1$Outbound
|
|
3324
|
-
|
|
|
3402
|
+
| StartJourneyBiometric2$Outbound
|
|
3403
|
+
| StartJourneyBiometric3$Outbound
|
|
3404
|
+
| StartJourneyBiometric4$Outbound;
|
|
3325
3405
|
|
|
3326
3406
|
/** @internal */
|
|
3327
3407
|
export const StartJourneyBiometricUnion$outboundSchema: z.ZodMiniType<
|
|
3328
3408
|
StartJourneyBiometricUnion$Outbound,
|
|
3329
3409
|
StartJourneyBiometricUnion
|
|
3330
3410
|
> = smartUnion([
|
|
3331
|
-
z.lazy(() => StartJourneyBiometric2$outboundSchema),
|
|
3332
|
-
z.lazy(() => StartJourneyBiometric4$outboundSchema),
|
|
3333
3411
|
z.lazy(() => StartJourneyBiometric1$outboundSchema),
|
|
3412
|
+
z.lazy(() => StartJourneyBiometric2$outboundSchema),
|
|
3334
3413
|
z.lazy(() => StartJourneyBiometric3$outboundSchema),
|
|
3414
|
+
z.lazy(() => StartJourneyBiometric4$outboundSchema),
|
|
3335
3415
|
]);
|
|
3336
3416
|
|
|
3337
3417
|
export function startJourneyBiometricUnionToJSON(
|
|
@@ -3623,20 +3703,60 @@ export function startJourneyConsentToJSON(
|
|
|
3623
3703
|
);
|
|
3624
3704
|
}
|
|
3625
3705
|
|
|
3706
|
+
/** @internal */
|
|
3707
|
+
export type StartJourneyAccount$Outbound = {
|
|
3708
|
+
type: string;
|
|
3709
|
+
accountNumber: string;
|
|
3710
|
+
sortCode?: string | undefined;
|
|
3711
|
+
routingNumber?: string | undefined;
|
|
3712
|
+
iban?: string | undefined;
|
|
3713
|
+
bic?: string | undefined;
|
|
3714
|
+
accountHolderName?: string | undefined;
|
|
3715
|
+
bankName?: string | undefined;
|
|
3716
|
+
country?: string | undefined;
|
|
3717
|
+
accountType?: string | undefined;
|
|
3718
|
+
};
|
|
3719
|
+
|
|
3720
|
+
/** @internal */
|
|
3721
|
+
export const StartJourneyAccount$outboundSchema: z.ZodMiniType<
|
|
3722
|
+
StartJourneyAccount$Outbound,
|
|
3723
|
+
StartJourneyAccount
|
|
3724
|
+
> = z.object({
|
|
3725
|
+
type: z.string(),
|
|
3726
|
+
accountNumber: z.string(),
|
|
3727
|
+
sortCode: z.optional(z.string()),
|
|
3728
|
+
routingNumber: z.optional(z.string()),
|
|
3729
|
+
iban: z.optional(z.string()),
|
|
3730
|
+
bic: z.optional(z.string()),
|
|
3731
|
+
accountHolderName: z.optional(z.string()),
|
|
3732
|
+
bankName: z.optional(z.string()),
|
|
3733
|
+
country: z.optional(z.string()),
|
|
3734
|
+
accountType: z.optional(z.string()),
|
|
3735
|
+
});
|
|
3736
|
+
|
|
3737
|
+
export function startJourneyAccountToJSON(
|
|
3738
|
+
startJourneyAccount: StartJourneyAccount,
|
|
3739
|
+
): string {
|
|
3740
|
+
return JSON.stringify(
|
|
3741
|
+
StartJourneyAccount$outboundSchema.parse(startJourneyAccount),
|
|
3742
|
+
);
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3626
3745
|
/** @internal */
|
|
3627
3746
|
export type StartJourneySubject$Outbound = {
|
|
3628
3747
|
identity?: StartJourneyIdentity$Outbound | undefined;
|
|
3629
3748
|
documents?: Array<StartJourneyDocument$Outbound> | undefined;
|
|
3630
3749
|
biometrics?:
|
|
3631
3750
|
| Array<
|
|
3632
|
-
| StartJourneyBiometric2$Outbound
|
|
3633
|
-
| StartJourneyBiometric4$Outbound
|
|
3634
3751
|
| StartJourneyBiometric1$Outbound
|
|
3752
|
+
| StartJourneyBiometric2$Outbound
|
|
3635
3753
|
| StartJourneyBiometric3$Outbound
|
|
3754
|
+
| StartJourneyBiometric4$Outbound
|
|
3636
3755
|
>
|
|
3637
3756
|
| undefined;
|
|
3638
3757
|
sessions?: Array<StartJourneySession$Outbound> | undefined;
|
|
3639
3758
|
consent?: Array<StartJourneyConsent$Outbound> | undefined;
|
|
3759
|
+
accounts?: Array<StartJourneyAccount$Outbound> | undefined;
|
|
3640
3760
|
uid?: string | undefined;
|
|
3641
3761
|
};
|
|
3642
3762
|
|
|
@@ -3651,12 +3771,12 @@ export const StartJourneySubject$outboundSchema: z.ZodMiniType<
|
|
|
3651
3771
|
),
|
|
3652
3772
|
biometrics: z.optional(
|
|
3653
3773
|
z.array(smartUnion([
|
|
3654
|
-
z.lazy(() =>
|
|
3774
|
+
z.lazy(() => StartJourneyBiometric1$outboundSchema),
|
|
3655
3775
|
z.lazy(() =>
|
|
3656
|
-
|
|
3776
|
+
StartJourneyBiometric2$outboundSchema
|
|
3657
3777
|
),
|
|
3658
|
-
z.lazy(() => StartJourneyBiometric1$outboundSchema),
|
|
3659
3778
|
z.lazy(() => StartJourneyBiometric3$outboundSchema),
|
|
3779
|
+
z.lazy(() => StartJourneyBiometric4$outboundSchema),
|
|
3660
3780
|
])),
|
|
3661
3781
|
),
|
|
3662
3782
|
sessions: z.optional(
|
|
@@ -3665,6 +3785,9 @@ export const StartJourneySubject$outboundSchema: z.ZodMiniType<
|
|
|
3665
3785
|
consent: z.optional(
|
|
3666
3786
|
z.array(z.lazy(() => StartJourneyConsent$outboundSchema)),
|
|
3667
3787
|
),
|
|
3788
|
+
accounts: z.optional(
|
|
3789
|
+
z.array(z.lazy(() => StartJourneyAccount$outboundSchema)),
|
|
3790
|
+
),
|
|
3668
3791
|
uid: z.optional(z.string()),
|
|
3669
3792
|
});
|
|
3670
3793
|
|
|
@@ -3678,6 +3801,7 @@ export function startJourneySubjectToJSON(
|
|
|
3678
3801
|
|
|
3679
3802
|
/** @internal */
|
|
3680
3803
|
export type StartJourneyContext$Outbound = {
|
|
3804
|
+
config: Config$Outbound;
|
|
3681
3805
|
subject: StartJourneySubject$Outbound;
|
|
3682
3806
|
};
|
|
3683
3807
|
|
|
@@ -3686,6 +3810,7 @@ export const StartJourneyContext$outboundSchema: z.ZodMiniType<
|
|
|
3686
3810
|
StartJourneyContext$Outbound,
|
|
3687
3811
|
StartJourneyContext
|
|
3688
3812
|
> = z.object({
|
|
3813
|
+
config: z.lazy(() => Config$outboundSchema),
|
|
3689
3814
|
subject: z.lazy(() => StartJourneySubject$outboundSchema),
|
|
3690
3815
|
});
|
|
3691
3816
|
|
|
@@ -3750,7 +3875,6 @@ export const StartJourneyResponseBody1$inboundSchema: z.ZodMiniType<
|
|
|
3750
3875
|
> = z.catchall(
|
|
3751
3876
|
z.object({
|
|
3752
3877
|
instanceId: types.string(),
|
|
3753
|
-
instanceUrl: types.optional(types.string()),
|
|
3754
3878
|
}),
|
|
3755
3879
|
z.any(),
|
|
3756
3880
|
);
|
|
@@ -1098,34 +1098,34 @@ export type SubmitInteractionBiometric4 = {
|
|
|
1098
1098
|
id?: string | undefined;
|
|
1099
1099
|
type?: string | undefined;
|
|
1100
1100
|
selfieImage: string;
|
|
1101
|
-
|
|
1101
|
+
selfieImageEncryption?: boolean | undefined;
|
|
1102
1102
|
};
|
|
1103
1103
|
|
|
1104
1104
|
export type SubmitInteractionBiometric3 = {
|
|
1105
1105
|
id?: string | undefined;
|
|
1106
1106
|
type?: string | undefined;
|
|
1107
|
-
|
|
1108
|
-
selfieImageEncryption?: boolean | undefined;
|
|
1107
|
+
faceImage: string;
|
|
1109
1108
|
};
|
|
1110
1109
|
|
|
1111
1110
|
export type SubmitInteractionBiometric2 = {
|
|
1112
1111
|
id?: string | undefined;
|
|
1113
1112
|
type?: string | undefined;
|
|
1114
|
-
|
|
1115
|
-
|
|
1113
|
+
selfieImage: string;
|
|
1114
|
+
anchorImage: string;
|
|
1116
1115
|
};
|
|
1117
1116
|
|
|
1118
1117
|
export type SubmitInteractionBiometric1 = {
|
|
1119
1118
|
id?: string | undefined;
|
|
1120
1119
|
type?: string | undefined;
|
|
1121
|
-
|
|
1120
|
+
face1Image: string;
|
|
1121
|
+
face2Image: string;
|
|
1122
1122
|
};
|
|
1123
1123
|
|
|
1124
1124
|
export type SubmitInteractionBiometricUnion =
|
|
1125
|
-
| SubmitInteractionBiometric2
|
|
1126
|
-
| SubmitInteractionBiometric4
|
|
1127
1125
|
| SubmitInteractionBiometric1
|
|
1128
|
-
|
|
|
1126
|
+
| SubmitInteractionBiometric2
|
|
1127
|
+
| SubmitInteractionBiometric3
|
|
1128
|
+
| SubmitInteractionBiometric4;
|
|
1129
1129
|
|
|
1130
1130
|
export type SubmitInteractionUser = {
|
|
1131
1131
|
id: string;
|
|
@@ -1208,19 +1208,63 @@ export type SubmitInteractionConsent = {
|
|
|
1208
1208
|
signatory?: string | undefined;
|
|
1209
1209
|
};
|
|
1210
1210
|
|
|
1211
|
+
export type SubmitInteractionAccount = {
|
|
1212
|
+
/**
|
|
1213
|
+
* The type of account, e.g. Bank Account, Building Society
|
|
1214
|
+
*/
|
|
1215
|
+
type: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* Account number
|
|
1218
|
+
*/
|
|
1219
|
+
accountNumber: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* UK sort code
|
|
1222
|
+
*/
|
|
1223
|
+
sortCode?: string | undefined;
|
|
1224
|
+
/**
|
|
1225
|
+
* US ABA routing number
|
|
1226
|
+
*/
|
|
1227
|
+
routingNumber?: string | undefined;
|
|
1228
|
+
/**
|
|
1229
|
+
* International Bank Account Number
|
|
1230
|
+
*/
|
|
1231
|
+
iban?: string | undefined;
|
|
1232
|
+
/**
|
|
1233
|
+
* BIC/SWIFT code
|
|
1234
|
+
*/
|
|
1235
|
+
bic?: string | undefined;
|
|
1236
|
+
/**
|
|
1237
|
+
* Name on the account
|
|
1238
|
+
*/
|
|
1239
|
+
accountHolderName?: string | undefined;
|
|
1240
|
+
/**
|
|
1241
|
+
* Name of the financial institution
|
|
1242
|
+
*/
|
|
1243
|
+
bankName?: string | undefined;
|
|
1244
|
+
/**
|
|
1245
|
+
* Country the address is in. It must be a valid ISO2 or ISO3 country code
|
|
1246
|
+
*/
|
|
1247
|
+
country?: string | undefined;
|
|
1248
|
+
/**
|
|
1249
|
+
* Account classification, e.g. current, savings
|
|
1250
|
+
*/
|
|
1251
|
+
accountType?: string | undefined;
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1211
1254
|
export type SubmitInteractionSubject = {
|
|
1212
1255
|
identity?: SubmitInteractionIdentity | undefined;
|
|
1213
1256
|
documents?: Array<SubmitInteractionDocument> | undefined;
|
|
1214
1257
|
biometrics?:
|
|
1215
1258
|
| Array<
|
|
1216
|
-
| SubmitInteractionBiometric2
|
|
1217
|
-
| SubmitInteractionBiometric4
|
|
1218
1259
|
| SubmitInteractionBiometric1
|
|
1260
|
+
| SubmitInteractionBiometric2
|
|
1219
1261
|
| SubmitInteractionBiometric3
|
|
1262
|
+
| SubmitInteractionBiometric4
|
|
1220
1263
|
>
|
|
1221
1264
|
| undefined;
|
|
1222
1265
|
sessions?: Array<SubmitInteractionSession> | undefined;
|
|
1223
1266
|
consent?: Array<SubmitInteractionConsent> | undefined;
|
|
1267
|
+
accounts?: Array<SubmitInteractionAccount> | undefined;
|
|
1224
1268
|
uid?: string | undefined;
|
|
1225
1269
|
};
|
|
1226
1270
|
|
|
@@ -3393,7 +3437,7 @@ export type SubmitInteractionBiometric4$Outbound = {
|
|
|
3393
3437
|
id?: string | undefined;
|
|
3394
3438
|
type?: string | undefined;
|
|
3395
3439
|
selfieImage: string;
|
|
3396
|
-
|
|
3440
|
+
selfieImageEncryption?: boolean | undefined;
|
|
3397
3441
|
};
|
|
3398
3442
|
|
|
3399
3443
|
/** @internal */
|
|
@@ -3404,7 +3448,7 @@ export const SubmitInteractionBiometric4$outboundSchema: z.ZodMiniType<
|
|
|
3404
3448
|
id: z.optional(z.string()),
|
|
3405
3449
|
type: z.optional(z.string()),
|
|
3406
3450
|
selfieImage: z.string(),
|
|
3407
|
-
|
|
3451
|
+
selfieImageEncryption: z.optional(z.boolean()),
|
|
3408
3452
|
});
|
|
3409
3453
|
|
|
3410
3454
|
export function submitInteractionBiometric4ToJSON(
|
|
@@ -3421,8 +3465,7 @@ export function submitInteractionBiometric4ToJSON(
|
|
|
3421
3465
|
export type SubmitInteractionBiometric3$Outbound = {
|
|
3422
3466
|
id?: string | undefined;
|
|
3423
3467
|
type?: string | undefined;
|
|
3424
|
-
|
|
3425
|
-
selfieImageEncryption?: boolean | undefined;
|
|
3468
|
+
faceImage: string;
|
|
3426
3469
|
};
|
|
3427
3470
|
|
|
3428
3471
|
/** @internal */
|
|
@@ -3432,8 +3475,7 @@ export const SubmitInteractionBiometric3$outboundSchema: z.ZodMiniType<
|
|
|
3432
3475
|
> = z.object({
|
|
3433
3476
|
id: z.optional(z.string()),
|
|
3434
3477
|
type: z.optional(z.string()),
|
|
3435
|
-
|
|
3436
|
-
selfieImageEncryption: z.optional(z.boolean()),
|
|
3478
|
+
faceImage: z.string(),
|
|
3437
3479
|
});
|
|
3438
3480
|
|
|
3439
3481
|
export function submitInteractionBiometric3ToJSON(
|
|
@@ -3450,8 +3492,8 @@ export function submitInteractionBiometric3ToJSON(
|
|
|
3450
3492
|
export type SubmitInteractionBiometric2$Outbound = {
|
|
3451
3493
|
id?: string | undefined;
|
|
3452
3494
|
type?: string | undefined;
|
|
3453
|
-
|
|
3454
|
-
|
|
3495
|
+
selfieImage: string;
|
|
3496
|
+
anchorImage: string;
|
|
3455
3497
|
};
|
|
3456
3498
|
|
|
3457
3499
|
/** @internal */
|
|
@@ -3461,8 +3503,8 @@ export const SubmitInteractionBiometric2$outboundSchema: z.ZodMiniType<
|
|
|
3461
3503
|
> = z.object({
|
|
3462
3504
|
id: z.optional(z.string()),
|
|
3463
3505
|
type: z.optional(z.string()),
|
|
3464
|
-
|
|
3465
|
-
|
|
3506
|
+
selfieImage: z.string(),
|
|
3507
|
+
anchorImage: z.string(),
|
|
3466
3508
|
});
|
|
3467
3509
|
|
|
3468
3510
|
export function submitInteractionBiometric2ToJSON(
|
|
@@ -3479,7 +3521,8 @@ export function submitInteractionBiometric2ToJSON(
|
|
|
3479
3521
|
export type SubmitInteractionBiometric1$Outbound = {
|
|
3480
3522
|
id?: string | undefined;
|
|
3481
3523
|
type?: string | undefined;
|
|
3482
|
-
|
|
3524
|
+
face1Image: string;
|
|
3525
|
+
face2Image: string;
|
|
3483
3526
|
};
|
|
3484
3527
|
|
|
3485
3528
|
/** @internal */
|
|
@@ -3489,7 +3532,8 @@ export const SubmitInteractionBiometric1$outboundSchema: z.ZodMiniType<
|
|
|
3489
3532
|
> = z.object({
|
|
3490
3533
|
id: z.optional(z.string()),
|
|
3491
3534
|
type: z.optional(z.string()),
|
|
3492
|
-
|
|
3535
|
+
face1Image: z.string(),
|
|
3536
|
+
face2Image: z.string(),
|
|
3493
3537
|
});
|
|
3494
3538
|
|
|
3495
3539
|
export function submitInteractionBiometric1ToJSON(
|
|
@@ -3504,20 +3548,20 @@ export function submitInteractionBiometric1ToJSON(
|
|
|
3504
3548
|
|
|
3505
3549
|
/** @internal */
|
|
3506
3550
|
export type SubmitInteractionBiometricUnion$Outbound =
|
|
3507
|
-
| SubmitInteractionBiometric2$Outbound
|
|
3508
|
-
| SubmitInteractionBiometric4$Outbound
|
|
3509
3551
|
| SubmitInteractionBiometric1$Outbound
|
|
3510
|
-
|
|
|
3552
|
+
| SubmitInteractionBiometric2$Outbound
|
|
3553
|
+
| SubmitInteractionBiometric3$Outbound
|
|
3554
|
+
| SubmitInteractionBiometric4$Outbound;
|
|
3511
3555
|
|
|
3512
3556
|
/** @internal */
|
|
3513
3557
|
export const SubmitInteractionBiometricUnion$outboundSchema: z.ZodMiniType<
|
|
3514
3558
|
SubmitInteractionBiometricUnion$Outbound,
|
|
3515
3559
|
SubmitInteractionBiometricUnion
|
|
3516
3560
|
> = smartUnion([
|
|
3517
|
-
z.lazy(() => SubmitInteractionBiometric2$outboundSchema),
|
|
3518
|
-
z.lazy(() => SubmitInteractionBiometric4$outboundSchema),
|
|
3519
3561
|
z.lazy(() => SubmitInteractionBiometric1$outboundSchema),
|
|
3562
|
+
z.lazy(() => SubmitInteractionBiometric2$outboundSchema),
|
|
3520
3563
|
z.lazy(() => SubmitInteractionBiometric3$outboundSchema),
|
|
3564
|
+
z.lazy(() => SubmitInteractionBiometric4$outboundSchema),
|
|
3521
3565
|
]);
|
|
3522
3566
|
|
|
3523
3567
|
export function submitInteractionBiometricUnionToJSON(
|
|
@@ -3821,20 +3865,60 @@ export function submitInteractionConsentToJSON(
|
|
|
3821
3865
|
);
|
|
3822
3866
|
}
|
|
3823
3867
|
|
|
3868
|
+
/** @internal */
|
|
3869
|
+
export type SubmitInteractionAccount$Outbound = {
|
|
3870
|
+
type: string;
|
|
3871
|
+
accountNumber: string;
|
|
3872
|
+
sortCode?: string | undefined;
|
|
3873
|
+
routingNumber?: string | undefined;
|
|
3874
|
+
iban?: string | undefined;
|
|
3875
|
+
bic?: string | undefined;
|
|
3876
|
+
accountHolderName?: string | undefined;
|
|
3877
|
+
bankName?: string | undefined;
|
|
3878
|
+
country?: string | undefined;
|
|
3879
|
+
accountType?: string | undefined;
|
|
3880
|
+
};
|
|
3881
|
+
|
|
3882
|
+
/** @internal */
|
|
3883
|
+
export const SubmitInteractionAccount$outboundSchema: z.ZodMiniType<
|
|
3884
|
+
SubmitInteractionAccount$Outbound,
|
|
3885
|
+
SubmitInteractionAccount
|
|
3886
|
+
> = z.object({
|
|
3887
|
+
type: z.string(),
|
|
3888
|
+
accountNumber: z.string(),
|
|
3889
|
+
sortCode: z.optional(z.string()),
|
|
3890
|
+
routingNumber: z.optional(z.string()),
|
|
3891
|
+
iban: z.optional(z.string()),
|
|
3892
|
+
bic: z.optional(z.string()),
|
|
3893
|
+
accountHolderName: z.optional(z.string()),
|
|
3894
|
+
bankName: z.optional(z.string()),
|
|
3895
|
+
country: z.optional(z.string()),
|
|
3896
|
+
accountType: z.optional(z.string()),
|
|
3897
|
+
});
|
|
3898
|
+
|
|
3899
|
+
export function submitInteractionAccountToJSON(
|
|
3900
|
+
submitInteractionAccount: SubmitInteractionAccount,
|
|
3901
|
+
): string {
|
|
3902
|
+
return JSON.stringify(
|
|
3903
|
+
SubmitInteractionAccount$outboundSchema.parse(submitInteractionAccount),
|
|
3904
|
+
);
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3824
3907
|
/** @internal */
|
|
3825
3908
|
export type SubmitInteractionSubject$Outbound = {
|
|
3826
3909
|
identity?: SubmitInteractionIdentity$Outbound | undefined;
|
|
3827
3910
|
documents?: Array<SubmitInteractionDocument$Outbound> | undefined;
|
|
3828
3911
|
biometrics?:
|
|
3829
3912
|
| Array<
|
|
3830
|
-
| SubmitInteractionBiometric2$Outbound
|
|
3831
|
-
| SubmitInteractionBiometric4$Outbound
|
|
3832
3913
|
| SubmitInteractionBiometric1$Outbound
|
|
3914
|
+
| SubmitInteractionBiometric2$Outbound
|
|
3833
3915
|
| SubmitInteractionBiometric3$Outbound
|
|
3916
|
+
| SubmitInteractionBiometric4$Outbound
|
|
3834
3917
|
>
|
|
3835
3918
|
| undefined;
|
|
3836
3919
|
sessions?: Array<SubmitInteractionSession$Outbound> | undefined;
|
|
3837
3920
|
consent?: Array<SubmitInteractionConsent$Outbound> | undefined;
|
|
3921
|
+
accounts?: Array<SubmitInteractionAccount$Outbound> | undefined;
|
|
3838
3922
|
uid?: string | undefined;
|
|
3839
3923
|
};
|
|
3840
3924
|
|
|
@@ -3849,12 +3933,12 @@ export const SubmitInteractionSubject$outboundSchema: z.ZodMiniType<
|
|
|
3849
3933
|
),
|
|
3850
3934
|
biometrics: z.optional(
|
|
3851
3935
|
z.array(smartUnion([
|
|
3852
|
-
z.lazy(() =>
|
|
3936
|
+
z.lazy(() => SubmitInteractionBiometric1$outboundSchema),
|
|
3853
3937
|
z.lazy(() =>
|
|
3854
|
-
|
|
3938
|
+
SubmitInteractionBiometric2$outboundSchema
|
|
3855
3939
|
),
|
|
3856
|
-
z.lazy(() => SubmitInteractionBiometric1$outboundSchema),
|
|
3857
3940
|
z.lazy(() => SubmitInteractionBiometric3$outboundSchema),
|
|
3941
|
+
z.lazy(() => SubmitInteractionBiometric4$outboundSchema),
|
|
3858
3942
|
])),
|
|
3859
3943
|
),
|
|
3860
3944
|
sessions: z.optional(
|
|
@@ -3863,6 +3947,9 @@ export const SubmitInteractionSubject$outboundSchema: z.ZodMiniType<
|
|
|
3863
3947
|
consent: z.optional(
|
|
3864
3948
|
z.array(z.lazy(() => SubmitInteractionConsent$outboundSchema)),
|
|
3865
3949
|
),
|
|
3950
|
+
accounts: z.optional(
|
|
3951
|
+
z.array(z.lazy(() => SubmitInteractionAccount$outboundSchema)),
|
|
3952
|
+
),
|
|
3866
3953
|
uid: z.optional(z.string()),
|
|
3867
3954
|
});
|
|
3868
3955
|
|