@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
|
@@ -101,6 +101,12 @@ export const CollectSpec2 = {
|
|
|
101
101
|
} as const;
|
|
102
102
|
export type CollectSpec2 = OpenEnum<typeof CollectSpec2>;
|
|
103
103
|
|
|
104
|
+
export const CollectCombinator = {
|
|
105
|
+
OneOf: "oneOf",
|
|
106
|
+
AllOf: "allOf",
|
|
107
|
+
} as const;
|
|
108
|
+
export type CollectCombinator = OpenEnum<typeof CollectCombinator>;
|
|
109
|
+
|
|
104
110
|
export const CollectInputSpec = {
|
|
105
111
|
Required: "required",
|
|
106
112
|
Optional: "optional",
|
|
@@ -118,7 +124,7 @@ export type Collect2 = {
|
|
|
118
124
|
ref: string;
|
|
119
125
|
spec: CollectSpec2;
|
|
120
126
|
recommended?: boolean | undefined;
|
|
121
|
-
combinator:
|
|
127
|
+
combinator: CollectCombinator;
|
|
122
128
|
inputs: Array<CollectInput>;
|
|
123
129
|
};
|
|
124
130
|
|
|
@@ -144,6 +150,12 @@ export const ConsumeSpec2 = {
|
|
|
144
150
|
} as const;
|
|
145
151
|
export type ConsumeSpec2 = OpenEnum<typeof ConsumeSpec2>;
|
|
146
152
|
|
|
153
|
+
export const ConsumeCombinator = {
|
|
154
|
+
OneOf: "oneOf",
|
|
155
|
+
AllOf: "allOf",
|
|
156
|
+
} as const;
|
|
157
|
+
export type ConsumeCombinator = OpenEnum<typeof ConsumeCombinator>;
|
|
158
|
+
|
|
147
159
|
export const ConsumeInputSpec = {
|
|
148
160
|
Required: "required",
|
|
149
161
|
Optional: "optional",
|
|
@@ -161,7 +173,7 @@ export type Consume2 = {
|
|
|
161
173
|
ref: string;
|
|
162
174
|
spec: ConsumeSpec2;
|
|
163
175
|
recommended?: boolean | undefined;
|
|
164
|
-
combinator:
|
|
176
|
+
combinator: ConsumeCombinator;
|
|
165
177
|
inputs: Array<ConsumeInput>;
|
|
166
178
|
};
|
|
167
179
|
|
|
@@ -1258,34 +1270,34 @@ export type FetchInteractionBiometric4 = {
|
|
|
1258
1270
|
id?: string | undefined;
|
|
1259
1271
|
type?: string | undefined;
|
|
1260
1272
|
selfieImage: string;
|
|
1261
|
-
|
|
1273
|
+
selfieImageEncryption?: boolean | undefined;
|
|
1262
1274
|
};
|
|
1263
1275
|
|
|
1264
1276
|
export type FetchInteractionBiometric3 = {
|
|
1265
1277
|
id?: string | undefined;
|
|
1266
1278
|
type?: string | undefined;
|
|
1267
|
-
|
|
1268
|
-
selfieImageEncryption?: boolean | undefined;
|
|
1279
|
+
faceImage: string;
|
|
1269
1280
|
};
|
|
1270
1281
|
|
|
1271
1282
|
export type FetchInteractionBiometric2 = {
|
|
1272
1283
|
id?: string | undefined;
|
|
1273
1284
|
type?: string | undefined;
|
|
1274
|
-
|
|
1275
|
-
|
|
1285
|
+
selfieImage: string;
|
|
1286
|
+
anchorImage: string;
|
|
1276
1287
|
};
|
|
1277
1288
|
|
|
1278
1289
|
export type FetchInteractionBiometric1 = {
|
|
1279
1290
|
id?: string | undefined;
|
|
1280
1291
|
type?: string | undefined;
|
|
1281
|
-
|
|
1292
|
+
face1Image: string;
|
|
1293
|
+
face2Image: string;
|
|
1282
1294
|
};
|
|
1283
1295
|
|
|
1284
1296
|
export type FetchInteractionBiometricUnion =
|
|
1285
|
-
| FetchInteractionBiometric2
|
|
1286
|
-
| FetchInteractionBiometric4
|
|
1287
1297
|
| FetchInteractionBiometric1
|
|
1288
|
-
|
|
|
1298
|
+
| FetchInteractionBiometric2
|
|
1299
|
+
| FetchInteractionBiometric3
|
|
1300
|
+
| FetchInteractionBiometric4;
|
|
1289
1301
|
|
|
1290
1302
|
export type FetchInteractionUser = {
|
|
1291
1303
|
id: string;
|
|
@@ -1368,19 +1380,63 @@ export type FetchInteractionConsent = {
|
|
|
1368
1380
|
signatory?: string | undefined;
|
|
1369
1381
|
};
|
|
1370
1382
|
|
|
1383
|
+
export type FetchInteractionAccount = {
|
|
1384
|
+
/**
|
|
1385
|
+
* The type of account, e.g. Bank Account, Building Society
|
|
1386
|
+
*/
|
|
1387
|
+
type: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Account number
|
|
1390
|
+
*/
|
|
1391
|
+
accountNumber: string;
|
|
1392
|
+
/**
|
|
1393
|
+
* UK sort code
|
|
1394
|
+
*/
|
|
1395
|
+
sortCode?: string | undefined;
|
|
1396
|
+
/**
|
|
1397
|
+
* US ABA routing number
|
|
1398
|
+
*/
|
|
1399
|
+
routingNumber?: string | undefined;
|
|
1400
|
+
/**
|
|
1401
|
+
* International Bank Account Number
|
|
1402
|
+
*/
|
|
1403
|
+
iban?: string | undefined;
|
|
1404
|
+
/**
|
|
1405
|
+
* BIC/SWIFT code
|
|
1406
|
+
*/
|
|
1407
|
+
bic?: string | undefined;
|
|
1408
|
+
/**
|
|
1409
|
+
* Name on the account
|
|
1410
|
+
*/
|
|
1411
|
+
accountHolderName?: string | undefined;
|
|
1412
|
+
/**
|
|
1413
|
+
* Name of the financial institution
|
|
1414
|
+
*/
|
|
1415
|
+
bankName?: string | undefined;
|
|
1416
|
+
/**
|
|
1417
|
+
* Country the address is in. It must be a valid ISO2 or ISO3 country code
|
|
1418
|
+
*/
|
|
1419
|
+
country?: string | undefined;
|
|
1420
|
+
/**
|
|
1421
|
+
* Account classification, e.g. current, savings
|
|
1422
|
+
*/
|
|
1423
|
+
accountType?: string | undefined;
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1371
1426
|
export type FetchInteractionSubject = {
|
|
1372
1427
|
identity?: FetchInteractionIdentity | undefined;
|
|
1373
1428
|
documents?: Array<FetchInteractionDocument> | undefined;
|
|
1374
1429
|
biometrics?:
|
|
1375
1430
|
| Array<
|
|
1376
|
-
| FetchInteractionBiometric2
|
|
1377
|
-
| FetchInteractionBiometric4
|
|
1378
1431
|
| FetchInteractionBiometric1
|
|
1432
|
+
| FetchInteractionBiometric2
|
|
1379
1433
|
| FetchInteractionBiometric3
|
|
1434
|
+
| FetchInteractionBiometric4
|
|
1380
1435
|
>
|
|
1381
1436
|
| undefined;
|
|
1382
1437
|
sessions?: Array<FetchInteractionSession> | undefined;
|
|
1383
1438
|
consent?: Array<FetchInteractionConsent> | undefined;
|
|
1439
|
+
accounts?: Array<FetchInteractionAccount> | undefined;
|
|
1384
1440
|
uid?: string | undefined;
|
|
1385
1441
|
};
|
|
1386
1442
|
|
|
@@ -1582,6 +1638,12 @@ export function resourceFromJSON(
|
|
|
1582
1638
|
export const CollectSpec2$inboundSchema: z.ZodMiniType<CollectSpec2, unknown> =
|
|
1583
1639
|
openEnums.inboundSchema(CollectSpec2);
|
|
1584
1640
|
|
|
1641
|
+
/** @internal */
|
|
1642
|
+
export const CollectCombinator$inboundSchema: z.ZodMiniType<
|
|
1643
|
+
CollectCombinator,
|
|
1644
|
+
unknown
|
|
1645
|
+
> = openEnums.inboundSchema(CollectCombinator);
|
|
1646
|
+
|
|
1585
1647
|
/** @internal */
|
|
1586
1648
|
export const CollectInputSpec$inboundSchema: z.ZodMiniType<
|
|
1587
1649
|
CollectInputSpec,
|
|
@@ -1612,7 +1674,7 @@ export const Collect2$inboundSchema: z.ZodMiniType<Collect2, unknown> = z
|
|
|
1612
1674
|
ref: types.string(),
|
|
1613
1675
|
spec: CollectSpec2$inboundSchema,
|
|
1614
1676
|
recommended: types.optional(types.boolean()),
|
|
1615
|
-
combinator:
|
|
1677
|
+
combinator: CollectCombinator$inboundSchema,
|
|
1616
1678
|
inputs: z.array(z.lazy(() => CollectInput$inboundSchema)),
|
|
1617
1679
|
});
|
|
1618
1680
|
|
|
@@ -1669,6 +1731,12 @@ export function collectUnionFromJSON(
|
|
|
1669
1731
|
export const ConsumeSpec2$inboundSchema: z.ZodMiniType<ConsumeSpec2, unknown> =
|
|
1670
1732
|
openEnums.inboundSchema(ConsumeSpec2);
|
|
1671
1733
|
|
|
1734
|
+
/** @internal */
|
|
1735
|
+
export const ConsumeCombinator$inboundSchema: z.ZodMiniType<
|
|
1736
|
+
ConsumeCombinator,
|
|
1737
|
+
unknown
|
|
1738
|
+
> = openEnums.inboundSchema(ConsumeCombinator);
|
|
1739
|
+
|
|
1672
1740
|
/** @internal */
|
|
1673
1741
|
export const ConsumeInputSpec$inboundSchema: z.ZodMiniType<
|
|
1674
1742
|
ConsumeInputSpec,
|
|
@@ -1699,7 +1767,7 @@ export const Consume2$inboundSchema: z.ZodMiniType<Consume2, unknown> = z
|
|
|
1699
1767
|
ref: types.string(),
|
|
1700
1768
|
spec: ConsumeSpec2$inboundSchema,
|
|
1701
1769
|
recommended: types.optional(types.boolean()),
|
|
1702
|
-
combinator:
|
|
1770
|
+
combinator: ConsumeCombinator$inboundSchema,
|
|
1703
1771
|
inputs: z.array(z.lazy(() => ConsumeInput$inboundSchema)),
|
|
1704
1772
|
});
|
|
1705
1773
|
|
|
@@ -3263,7 +3331,7 @@ export const FetchInteractionBiometric4$inboundSchema: z.ZodMiniType<
|
|
|
3263
3331
|
id: types.optional(types.string()),
|
|
3264
3332
|
type: types.optional(types.string()),
|
|
3265
3333
|
selfieImage: types.string(),
|
|
3266
|
-
|
|
3334
|
+
selfieImageEncryption: types.optional(types.boolean()),
|
|
3267
3335
|
});
|
|
3268
3336
|
|
|
3269
3337
|
export function fetchInteractionBiometric4FromJSON(
|
|
@@ -3283,8 +3351,7 @@ export const FetchInteractionBiometric3$inboundSchema: z.ZodMiniType<
|
|
|
3283
3351
|
> = z.object({
|
|
3284
3352
|
id: types.optional(types.string()),
|
|
3285
3353
|
type: types.optional(types.string()),
|
|
3286
|
-
|
|
3287
|
-
selfieImageEncryption: types.optional(types.boolean()),
|
|
3354
|
+
faceImage: types.string(),
|
|
3288
3355
|
});
|
|
3289
3356
|
|
|
3290
3357
|
export function fetchInteractionBiometric3FromJSON(
|
|
@@ -3304,8 +3371,8 @@ export const FetchInteractionBiometric2$inboundSchema: z.ZodMiniType<
|
|
|
3304
3371
|
> = z.object({
|
|
3305
3372
|
id: types.optional(types.string()),
|
|
3306
3373
|
type: types.optional(types.string()),
|
|
3307
|
-
|
|
3308
|
-
|
|
3374
|
+
selfieImage: types.string(),
|
|
3375
|
+
anchorImage: types.string(),
|
|
3309
3376
|
});
|
|
3310
3377
|
|
|
3311
3378
|
export function fetchInteractionBiometric2FromJSON(
|
|
@@ -3325,7 +3392,8 @@ export const FetchInteractionBiometric1$inboundSchema: z.ZodMiniType<
|
|
|
3325
3392
|
> = z.object({
|
|
3326
3393
|
id: types.optional(types.string()),
|
|
3327
3394
|
type: types.optional(types.string()),
|
|
3328
|
-
|
|
3395
|
+
face1Image: types.string(),
|
|
3396
|
+
face2Image: types.string(),
|
|
3329
3397
|
});
|
|
3330
3398
|
|
|
3331
3399
|
export function fetchInteractionBiometric1FromJSON(
|
|
@@ -3343,10 +3411,10 @@ export const FetchInteractionBiometricUnion$inboundSchema: z.ZodMiniType<
|
|
|
3343
3411
|
FetchInteractionBiometricUnion,
|
|
3344
3412
|
unknown
|
|
3345
3413
|
> = smartUnion([
|
|
3346
|
-
z.lazy(() => FetchInteractionBiometric2$inboundSchema),
|
|
3347
|
-
z.lazy(() => FetchInteractionBiometric4$inboundSchema),
|
|
3348
3414
|
z.lazy(() => FetchInteractionBiometric1$inboundSchema),
|
|
3415
|
+
z.lazy(() => FetchInteractionBiometric2$inboundSchema),
|
|
3349
3416
|
z.lazy(() => FetchInteractionBiometric3$inboundSchema),
|
|
3417
|
+
z.lazy(() => FetchInteractionBiometric4$inboundSchema),
|
|
3350
3418
|
]);
|
|
3351
3419
|
|
|
3352
3420
|
export function fetchInteractionBiometricUnionFromJSON(
|
|
@@ -3583,6 +3651,33 @@ export function fetchInteractionConsentFromJSON(
|
|
|
3583
3651
|
);
|
|
3584
3652
|
}
|
|
3585
3653
|
|
|
3654
|
+
/** @internal */
|
|
3655
|
+
export const FetchInteractionAccount$inboundSchema: z.ZodMiniType<
|
|
3656
|
+
FetchInteractionAccount,
|
|
3657
|
+
unknown
|
|
3658
|
+
> = z.object({
|
|
3659
|
+
type: types.string(),
|
|
3660
|
+
accountNumber: types.string(),
|
|
3661
|
+
sortCode: types.optional(types.string()),
|
|
3662
|
+
routingNumber: types.optional(types.string()),
|
|
3663
|
+
iban: types.optional(types.string()),
|
|
3664
|
+
bic: types.optional(types.string()),
|
|
3665
|
+
accountHolderName: types.optional(types.string()),
|
|
3666
|
+
bankName: types.optional(types.string()),
|
|
3667
|
+
country: types.optional(types.string()),
|
|
3668
|
+
accountType: types.optional(types.string()),
|
|
3669
|
+
});
|
|
3670
|
+
|
|
3671
|
+
export function fetchInteractionAccountFromJSON(
|
|
3672
|
+
jsonString: string,
|
|
3673
|
+
): SafeParseResult<FetchInteractionAccount, SDKValidationError> {
|
|
3674
|
+
return safeParse(
|
|
3675
|
+
jsonString,
|
|
3676
|
+
(x) => FetchInteractionAccount$inboundSchema.parse(JSON.parse(x)),
|
|
3677
|
+
`Failed to parse 'FetchInteractionAccount' from JSON`,
|
|
3678
|
+
);
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3586
3681
|
/** @internal */
|
|
3587
3682
|
export const FetchInteractionSubject$inboundSchema: z.ZodMiniType<
|
|
3588
3683
|
FetchInteractionSubject,
|
|
@@ -3596,12 +3691,12 @@ export const FetchInteractionSubject$inboundSchema: z.ZodMiniType<
|
|
|
3596
3691
|
),
|
|
3597
3692
|
biometrics: types.optional(
|
|
3598
3693
|
z.array(smartUnion([
|
|
3599
|
-
z.lazy(() =>
|
|
3694
|
+
z.lazy(() => FetchInteractionBiometric1$inboundSchema),
|
|
3600
3695
|
z.lazy(() =>
|
|
3601
|
-
|
|
3696
|
+
FetchInteractionBiometric2$inboundSchema
|
|
3602
3697
|
),
|
|
3603
|
-
z.lazy(() => FetchInteractionBiometric1$inboundSchema),
|
|
3604
3698
|
z.lazy(() => FetchInteractionBiometric3$inboundSchema),
|
|
3699
|
+
z.lazy(() => FetchInteractionBiometric4$inboundSchema),
|
|
3605
3700
|
])),
|
|
3606
3701
|
),
|
|
3607
3702
|
sessions: types.optional(
|
|
@@ -3610,6 +3705,9 @@ export const FetchInteractionSubject$inboundSchema: z.ZodMiniType<
|
|
|
3610
3705
|
consent: types.optional(
|
|
3611
3706
|
z.array(z.lazy(() => FetchInteractionConsent$inboundSchema)),
|
|
3612
3707
|
),
|
|
3708
|
+
accounts: types.optional(
|
|
3709
|
+
z.array(z.lazy(() => FetchInteractionAccount$inboundSchema)),
|
|
3710
|
+
),
|
|
3613
3711
|
uid: types.optional(types.string()),
|
|
3614
3712
|
});
|
|
3615
3713
|
|
|
@@ -1094,34 +1094,34 @@ export type GetJourneyStateBiometric4 = {
|
|
|
1094
1094
|
id?: string | undefined;
|
|
1095
1095
|
type?: string | undefined;
|
|
1096
1096
|
selfieImage: string;
|
|
1097
|
-
|
|
1097
|
+
selfieImageEncryption?: boolean | undefined;
|
|
1098
1098
|
};
|
|
1099
1099
|
|
|
1100
1100
|
export type GetJourneyStateBiometric3 = {
|
|
1101
1101
|
id?: string | undefined;
|
|
1102
1102
|
type?: string | undefined;
|
|
1103
|
-
|
|
1104
|
-
selfieImageEncryption?: boolean | undefined;
|
|
1103
|
+
faceImage: string;
|
|
1105
1104
|
};
|
|
1106
1105
|
|
|
1107
1106
|
export type GetJourneyStateBiometric2 = {
|
|
1108
1107
|
id?: string | undefined;
|
|
1109
1108
|
type?: string | undefined;
|
|
1110
|
-
|
|
1111
|
-
|
|
1109
|
+
selfieImage: string;
|
|
1110
|
+
anchorImage: string;
|
|
1112
1111
|
};
|
|
1113
1112
|
|
|
1114
1113
|
export type GetJourneyStateBiometric1 = {
|
|
1115
1114
|
id?: string | undefined;
|
|
1116
1115
|
type?: string | undefined;
|
|
1117
|
-
|
|
1116
|
+
face1Image: string;
|
|
1117
|
+
face2Image: string;
|
|
1118
1118
|
};
|
|
1119
1119
|
|
|
1120
1120
|
export type GetJourneyStateBiometricUnion =
|
|
1121
|
-
| GetJourneyStateBiometric2
|
|
1122
|
-
| GetJourneyStateBiometric4
|
|
1123
1121
|
| GetJourneyStateBiometric1
|
|
1124
|
-
|
|
|
1122
|
+
| GetJourneyStateBiometric2
|
|
1123
|
+
| GetJourneyStateBiometric3
|
|
1124
|
+
| GetJourneyStateBiometric4;
|
|
1125
1125
|
|
|
1126
1126
|
export type GetJourneyStateUser = {
|
|
1127
1127
|
id: string;
|
|
@@ -1204,19 +1204,63 @@ export type GetJourneyStateConsent = {
|
|
|
1204
1204
|
signatory?: string | undefined;
|
|
1205
1205
|
};
|
|
1206
1206
|
|
|
1207
|
+
export type GetJourneyStateAccount = {
|
|
1208
|
+
/**
|
|
1209
|
+
* The type of account, e.g. Bank Account, Building Society
|
|
1210
|
+
*/
|
|
1211
|
+
type: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* Account number
|
|
1214
|
+
*/
|
|
1215
|
+
accountNumber: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* UK sort code
|
|
1218
|
+
*/
|
|
1219
|
+
sortCode?: string | undefined;
|
|
1220
|
+
/**
|
|
1221
|
+
* US ABA routing number
|
|
1222
|
+
*/
|
|
1223
|
+
routingNumber?: string | undefined;
|
|
1224
|
+
/**
|
|
1225
|
+
* International Bank Account Number
|
|
1226
|
+
*/
|
|
1227
|
+
iban?: string | undefined;
|
|
1228
|
+
/**
|
|
1229
|
+
* BIC/SWIFT code
|
|
1230
|
+
*/
|
|
1231
|
+
bic?: string | undefined;
|
|
1232
|
+
/**
|
|
1233
|
+
* Name on the account
|
|
1234
|
+
*/
|
|
1235
|
+
accountHolderName?: string | undefined;
|
|
1236
|
+
/**
|
|
1237
|
+
* Name of the financial institution
|
|
1238
|
+
*/
|
|
1239
|
+
bankName?: string | undefined;
|
|
1240
|
+
/**
|
|
1241
|
+
* Country the address is in. It must be a valid ISO2 or ISO3 country code
|
|
1242
|
+
*/
|
|
1243
|
+
country?: string | undefined;
|
|
1244
|
+
/**
|
|
1245
|
+
* Account classification, e.g. current, savings
|
|
1246
|
+
*/
|
|
1247
|
+
accountType?: string | undefined;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1207
1250
|
export type GetJourneyStateSubject = {
|
|
1208
1251
|
identity?: GetJourneyStateIdentity | undefined;
|
|
1209
1252
|
documents?: Array<GetJourneyStateDocument> | undefined;
|
|
1210
1253
|
biometrics?:
|
|
1211
1254
|
| Array<
|
|
1212
|
-
| GetJourneyStateBiometric2
|
|
1213
|
-
| GetJourneyStateBiometric4
|
|
1214
1255
|
| GetJourneyStateBiometric1
|
|
1256
|
+
| GetJourneyStateBiometric2
|
|
1215
1257
|
| GetJourneyStateBiometric3
|
|
1258
|
+
| GetJourneyStateBiometric4
|
|
1216
1259
|
>
|
|
1217
1260
|
| undefined;
|
|
1218
1261
|
sessions?: Array<GetJourneyStateSession> | undefined;
|
|
1219
1262
|
consent?: Array<GetJourneyStateConsent> | undefined;
|
|
1263
|
+
accounts?: Array<GetJourneyStateAccount> | undefined;
|
|
1220
1264
|
uid?: string | undefined;
|
|
1221
1265
|
};
|
|
1222
1266
|
|
|
@@ -1233,7 +1277,7 @@ export type GetJourneyStateResponse = {
|
|
|
1233
1277
|
*/
|
|
1234
1278
|
instanceId: string;
|
|
1235
1279
|
status: GetJourneyStateStatus;
|
|
1236
|
-
metaData
|
|
1280
|
+
metaData: MetaData;
|
|
1237
1281
|
context?: GetJourneyStateContext | undefined;
|
|
1238
1282
|
data?: { [k: string]: any } | undefined;
|
|
1239
1283
|
};
|
|
@@ -2753,7 +2797,7 @@ export const GetJourneyStateBiometric4$inboundSchema: z.ZodMiniType<
|
|
|
2753
2797
|
id: types.optional(types.string()),
|
|
2754
2798
|
type: types.optional(types.string()),
|
|
2755
2799
|
selfieImage: types.string(),
|
|
2756
|
-
|
|
2800
|
+
selfieImageEncryption: types.optional(types.boolean()),
|
|
2757
2801
|
});
|
|
2758
2802
|
|
|
2759
2803
|
export function getJourneyStateBiometric4FromJSON(
|
|
@@ -2773,8 +2817,7 @@ export const GetJourneyStateBiometric3$inboundSchema: z.ZodMiniType<
|
|
|
2773
2817
|
> = z.object({
|
|
2774
2818
|
id: types.optional(types.string()),
|
|
2775
2819
|
type: types.optional(types.string()),
|
|
2776
|
-
|
|
2777
|
-
selfieImageEncryption: types.optional(types.boolean()),
|
|
2820
|
+
faceImage: types.string(),
|
|
2778
2821
|
});
|
|
2779
2822
|
|
|
2780
2823
|
export function getJourneyStateBiometric3FromJSON(
|
|
@@ -2794,8 +2837,8 @@ export const GetJourneyStateBiometric2$inboundSchema: z.ZodMiniType<
|
|
|
2794
2837
|
> = z.object({
|
|
2795
2838
|
id: types.optional(types.string()),
|
|
2796
2839
|
type: types.optional(types.string()),
|
|
2797
|
-
|
|
2798
|
-
|
|
2840
|
+
selfieImage: types.string(),
|
|
2841
|
+
anchorImage: types.string(),
|
|
2799
2842
|
});
|
|
2800
2843
|
|
|
2801
2844
|
export function getJourneyStateBiometric2FromJSON(
|
|
@@ -2815,7 +2858,8 @@ export const GetJourneyStateBiometric1$inboundSchema: z.ZodMiniType<
|
|
|
2815
2858
|
> = z.object({
|
|
2816
2859
|
id: types.optional(types.string()),
|
|
2817
2860
|
type: types.optional(types.string()),
|
|
2818
|
-
|
|
2861
|
+
face1Image: types.string(),
|
|
2862
|
+
face2Image: types.string(),
|
|
2819
2863
|
});
|
|
2820
2864
|
|
|
2821
2865
|
export function getJourneyStateBiometric1FromJSON(
|
|
@@ -2833,10 +2877,10 @@ export const GetJourneyStateBiometricUnion$inboundSchema: z.ZodMiniType<
|
|
|
2833
2877
|
GetJourneyStateBiometricUnion,
|
|
2834
2878
|
unknown
|
|
2835
2879
|
> = smartUnion([
|
|
2836
|
-
z.lazy(() => GetJourneyStateBiometric2$inboundSchema),
|
|
2837
|
-
z.lazy(() => GetJourneyStateBiometric4$inboundSchema),
|
|
2838
2880
|
z.lazy(() => GetJourneyStateBiometric1$inboundSchema),
|
|
2881
|
+
z.lazy(() => GetJourneyStateBiometric2$inboundSchema),
|
|
2839
2882
|
z.lazy(() => GetJourneyStateBiometric3$inboundSchema),
|
|
2883
|
+
z.lazy(() => GetJourneyStateBiometric4$inboundSchema),
|
|
2840
2884
|
]);
|
|
2841
2885
|
|
|
2842
2886
|
export function getJourneyStateBiometricUnionFromJSON(
|
|
@@ -3073,6 +3117,33 @@ export function getJourneyStateConsentFromJSON(
|
|
|
3073
3117
|
);
|
|
3074
3118
|
}
|
|
3075
3119
|
|
|
3120
|
+
/** @internal */
|
|
3121
|
+
export const GetJourneyStateAccount$inboundSchema: z.ZodMiniType<
|
|
3122
|
+
GetJourneyStateAccount,
|
|
3123
|
+
unknown
|
|
3124
|
+
> = z.object({
|
|
3125
|
+
type: types.string(),
|
|
3126
|
+
accountNumber: types.string(),
|
|
3127
|
+
sortCode: types.optional(types.string()),
|
|
3128
|
+
routingNumber: types.optional(types.string()),
|
|
3129
|
+
iban: types.optional(types.string()),
|
|
3130
|
+
bic: types.optional(types.string()),
|
|
3131
|
+
accountHolderName: types.optional(types.string()),
|
|
3132
|
+
bankName: types.optional(types.string()),
|
|
3133
|
+
country: types.optional(types.string()),
|
|
3134
|
+
accountType: types.optional(types.string()),
|
|
3135
|
+
});
|
|
3136
|
+
|
|
3137
|
+
export function getJourneyStateAccountFromJSON(
|
|
3138
|
+
jsonString: string,
|
|
3139
|
+
): SafeParseResult<GetJourneyStateAccount, SDKValidationError> {
|
|
3140
|
+
return safeParse(
|
|
3141
|
+
jsonString,
|
|
3142
|
+
(x) => GetJourneyStateAccount$inboundSchema.parse(JSON.parse(x)),
|
|
3143
|
+
`Failed to parse 'GetJourneyStateAccount' from JSON`,
|
|
3144
|
+
);
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3076
3147
|
/** @internal */
|
|
3077
3148
|
export const GetJourneyStateSubject$inboundSchema: z.ZodMiniType<
|
|
3078
3149
|
GetJourneyStateSubject,
|
|
@@ -3084,12 +3155,12 @@ export const GetJourneyStateSubject$inboundSchema: z.ZodMiniType<
|
|
|
3084
3155
|
),
|
|
3085
3156
|
biometrics: types.optional(
|
|
3086
3157
|
z.array(smartUnion([
|
|
3087
|
-
z.lazy(() =>
|
|
3158
|
+
z.lazy(() => GetJourneyStateBiometric1$inboundSchema),
|
|
3088
3159
|
z.lazy(() =>
|
|
3089
|
-
|
|
3160
|
+
GetJourneyStateBiometric2$inboundSchema
|
|
3090
3161
|
),
|
|
3091
|
-
z.lazy(() => GetJourneyStateBiometric1$inboundSchema),
|
|
3092
3162
|
z.lazy(() => GetJourneyStateBiometric3$inboundSchema),
|
|
3163
|
+
z.lazy(() => GetJourneyStateBiometric4$inboundSchema),
|
|
3093
3164
|
])),
|
|
3094
3165
|
),
|
|
3095
3166
|
sessions: types.optional(
|
|
@@ -3098,6 +3169,9 @@ export const GetJourneyStateSubject$inboundSchema: z.ZodMiniType<
|
|
|
3098
3169
|
consent: types.optional(
|
|
3099
3170
|
z.array(z.lazy(() => GetJourneyStateConsent$inboundSchema)),
|
|
3100
3171
|
),
|
|
3172
|
+
accounts: types.optional(
|
|
3173
|
+
z.array(z.lazy(() => GetJourneyStateAccount$inboundSchema)),
|
|
3174
|
+
),
|
|
3101
3175
|
uid: types.optional(types.string()),
|
|
3102
3176
|
});
|
|
3103
3177
|
|
|
@@ -3136,7 +3210,7 @@ export const GetJourneyStateResponse$inboundSchema: z.ZodMiniType<
|
|
|
3136
3210
|
> = z.object({
|
|
3137
3211
|
instanceId: types.string(),
|
|
3138
3212
|
status: GetJourneyStateStatus$inboundSchema,
|
|
3139
|
-
metaData:
|
|
3213
|
+
metaData: z.lazy(() => MetaData$inboundSchema),
|
|
3140
3214
|
context: types.optional(z.lazy(() => GetJourneyStateContext$inboundSchema)),
|
|
3141
3215
|
data: types.optional(z.record(z.string(), z.any())),
|
|
3142
3216
|
});
|