@gbg/go-core 0.0.1-alpha.16 → 0.0.1-alpha.18
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/README.md +15 -21
- 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/models/operations/fetch-interaction.d.ts +71 -11
- package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/commonjs/models/operations/fetch-interaction.js +46 -16
- 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/models/operations/fetch-interaction.d.ts +71 -11
- package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
- package/dist/esm/models/operations/fetch-interaction.js +42 -13
- 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 +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/operations/fetch-interaction.ts +128 -28
- 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
|
@@ -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
|
});
|
|
@@ -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
|
);
|