@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.
Files changed (61) hide show
  1. package/README.md +15 -21
  2. package/dist/commonjs/lib/config.d.ts +3 -3
  3. package/dist/commonjs/lib/config.js +3 -3
  4. package/dist/commonjs/lib/config.js.map +1 -1
  5. package/dist/commonjs/models/operations/fetch-interaction.d.ts +71 -11
  6. package/dist/commonjs/models/operations/fetch-interaction.d.ts.map +1 -1
  7. package/dist/commonjs/models/operations/fetch-interaction.js +46 -16
  8. package/dist/commonjs/models/operations/fetch-interaction.js.map +1 -1
  9. package/dist/commonjs/models/operations/get-journey-state.d.ts +55 -9
  10. package/dist/commonjs/models/operations/get-journey-state.d.ts.map +1 -1
  11. package/dist/commonjs/models/operations/get-journey-state.js +30 -12
  12. package/dist/commonjs/models/operations/get-journey-state.js.map +1 -1
  13. package/dist/commonjs/models/operations/start-journey.d.ts +104 -20
  14. package/dist/commonjs/models/operations/start-journey.d.ts.map +1 -1
  15. package/dist/commonjs/models/operations/start-journey.js +49 -13
  16. package/dist/commonjs/models/operations/start-journey.js.map +1 -1
  17. package/dist/commonjs/models/operations/submit-interaction.d.ts +76 -16
  18. package/dist/commonjs/models/operations/submit-interaction.d.ts.map +1 -1
  19. package/dist/commonjs/models/operations/submit-interaction.js +29 -11
  20. package/dist/commonjs/models/operations/submit-interaction.js.map +1 -1
  21. package/dist/commonjs/models/operations/update-task.d.ts +76 -16
  22. package/dist/commonjs/models/operations/update-task.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/update-task.js +29 -11
  24. package/dist/commonjs/models/operations/update-task.js.map +1 -1
  25. package/dist/esm/lib/config.d.ts +3 -3
  26. package/dist/esm/lib/config.js +3 -3
  27. package/dist/esm/lib/config.js.map +1 -1
  28. package/dist/esm/models/operations/fetch-interaction.d.ts +71 -11
  29. package/dist/esm/models/operations/fetch-interaction.d.ts.map +1 -1
  30. package/dist/esm/models/operations/fetch-interaction.js +42 -13
  31. package/dist/esm/models/operations/fetch-interaction.js.map +1 -1
  32. package/dist/esm/models/operations/get-journey-state.d.ts +55 -9
  33. package/dist/esm/models/operations/get-journey-state.d.ts.map +1 -1
  34. package/dist/esm/models/operations/get-journey-state.js +28 -11
  35. package/dist/esm/models/operations/get-journey-state.js.map +1 -1
  36. package/dist/esm/models/operations/start-journey.d.ts +104 -20
  37. package/dist/esm/models/operations/start-journey.d.ts.map +1 -1
  38. package/dist/esm/models/operations/start-journey.js +45 -11
  39. package/dist/esm/models/operations/start-journey.js.map +1 -1
  40. package/dist/esm/models/operations/submit-interaction.d.ts +76 -16
  41. package/dist/esm/models/operations/submit-interaction.d.ts.map +1 -1
  42. package/dist/esm/models/operations/submit-interaction.js +27 -10
  43. package/dist/esm/models/operations/submit-interaction.js.map +1 -1
  44. package/dist/esm/models/operations/update-task.d.ts +76 -16
  45. package/dist/esm/models/operations/update-task.d.ts.map +1 -1
  46. package/dist/esm/models/operations/update-task.js +27 -10
  47. package/dist/esm/models/operations/update-task.js.map +1 -1
  48. package/jsr.json +1 -1
  49. package/package.json +1 -1
  50. package/src/lib/config.ts +3 -3
  51. package/src/models/operations/fetch-interaction.ts +128 -28
  52. package/src/models/operations/get-journey-state.ts +98 -24
  53. package/src/models/operations/start-journey.ts +162 -38
  54. package/src/models/operations/submit-interaction.ts +120 -33
  55. package/src/models/operations/update-task.ts +118 -33
  56. package/.devcontainer/devcontainer.json +0 -45
  57. package/_speakeasy/.github/action-inputs-config.json +0 -53
  58. package/_speakeasy/.github/action-security-config.json +0 -88
  59. package/examples/package-lock.json +0 -611
  60. package/examples/package.json +0 -18
  61. package/tsconfig.json +0 -40
@@ -1098,34 +1098,34 @@ export type SubmitInteractionBiometric4 = {
1098
1098
  id?: string | undefined;
1099
1099
  type?: string | undefined;
1100
1100
  selfieImage: string;
1101
- anchorImage: string;
1101
+ selfieImageEncryption?: boolean | undefined;
1102
1102
  };
1103
1103
 
1104
1104
  export type SubmitInteractionBiometric3 = {
1105
1105
  id?: string | undefined;
1106
1106
  type?: string | undefined;
1107
- selfieImage: string;
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
- face1Image: string;
1115
- face2Image: string;
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
- faceImage: string;
1120
+ face1Image: string;
1121
+ face2Image: string;
1122
1122
  };
1123
1123
 
1124
1124
  export type SubmitInteractionBiometricUnion =
1125
- | SubmitInteractionBiometric2
1126
- | SubmitInteractionBiometric4
1127
1125
  | SubmitInteractionBiometric1
1128
- | SubmitInteractionBiometric3;
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
- anchorImage: string;
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
- anchorImage: z.string(),
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
- selfieImage: string;
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
- selfieImage: z.string(),
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
- face1Image: string;
3454
- face2Image: string;
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
- face1Image: z.string(),
3465
- face2Image: z.string(),
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
- faceImage: string;
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
- faceImage: z.string(),
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
- | SubmitInteractionBiometric3$Outbound;
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(() => SubmitInteractionBiometric2$outboundSchema),
3936
+ z.lazy(() => SubmitInteractionBiometric1$outboundSchema),
3853
3937
  z.lazy(() =>
3854
- SubmitInteractionBiometric4$outboundSchema
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
 
@@ -1083,34 +1083,34 @@ export type UpdateTaskBiometric4 = {
1083
1083
  id?: string | undefined;
1084
1084
  type?: string | undefined;
1085
1085
  selfieImage: string;
1086
- anchorImage: string;
1086
+ selfieImageEncryption?: boolean | undefined;
1087
1087
  };
1088
1088
 
1089
1089
  export type UpdateTaskBiometric3 = {
1090
1090
  id?: string | undefined;
1091
1091
  type?: string | undefined;
1092
- selfieImage: string;
1093
- selfieImageEncryption?: boolean | undefined;
1092
+ faceImage: string;
1094
1093
  };
1095
1094
 
1096
1095
  export type UpdateTaskBiometric2 = {
1097
1096
  id?: string | undefined;
1098
1097
  type?: string | undefined;
1099
- face1Image: string;
1100
- face2Image: string;
1098
+ selfieImage: string;
1099
+ anchorImage: string;
1101
1100
  };
1102
1101
 
1103
1102
  export type UpdateTaskBiometric1 = {
1104
1103
  id?: string | undefined;
1105
1104
  type?: string | undefined;
1106
- faceImage: string;
1105
+ face1Image: string;
1106
+ face2Image: string;
1107
1107
  };
1108
1108
 
1109
1109
  export type UpdateTaskBiometricUnion =
1110
- | UpdateTaskBiometric2
1111
- | UpdateTaskBiometric4
1112
1110
  | UpdateTaskBiometric1
1113
- | UpdateTaskBiometric3;
1111
+ | UpdateTaskBiometric2
1112
+ | UpdateTaskBiometric3
1113
+ | UpdateTaskBiometric4;
1114
1114
 
1115
1115
  export type UpdateTaskUser = {
1116
1116
  id: string;
@@ -1191,19 +1191,63 @@ export type UpdateTaskConsent = {
1191
1191
  signatory?: string | undefined;
1192
1192
  };
1193
1193
 
1194
+ export type UpdateTaskAccount = {
1195
+ /**
1196
+ * The type of account, e.g. Bank Account, Building Society
1197
+ */
1198
+ type: string;
1199
+ /**
1200
+ * Account number
1201
+ */
1202
+ accountNumber: string;
1203
+ /**
1204
+ * UK sort code
1205
+ */
1206
+ sortCode?: string | undefined;
1207
+ /**
1208
+ * US ABA routing number
1209
+ */
1210
+ routingNumber?: string | undefined;
1211
+ /**
1212
+ * International Bank Account Number
1213
+ */
1214
+ iban?: string | undefined;
1215
+ /**
1216
+ * BIC/SWIFT code
1217
+ */
1218
+ bic?: string | undefined;
1219
+ /**
1220
+ * Name on the account
1221
+ */
1222
+ accountHolderName?: string | undefined;
1223
+ /**
1224
+ * Name of the financial institution
1225
+ */
1226
+ bankName?: string | undefined;
1227
+ /**
1228
+ * Country the address is in. It must be a valid ISO2 or ISO3 country code
1229
+ */
1230
+ country?: string | undefined;
1231
+ /**
1232
+ * Account classification, e.g. current, savings
1233
+ */
1234
+ accountType?: string | undefined;
1235
+ };
1236
+
1194
1237
  export type UpdateTaskSubject = {
1195
1238
  identity?: UpdateTaskIdentity | undefined;
1196
1239
  documents?: Array<UpdateTaskDocument> | undefined;
1197
1240
  biometrics?:
1198
1241
  | Array<
1199
- | UpdateTaskBiometric2
1200
- | UpdateTaskBiometric4
1201
1242
  | UpdateTaskBiometric1
1243
+ | UpdateTaskBiometric2
1202
1244
  | UpdateTaskBiometric3
1245
+ | UpdateTaskBiometric4
1203
1246
  >
1204
1247
  | undefined;
1205
1248
  sessions?: Array<UpdateTaskSession> | undefined;
1206
1249
  consent?: Array<UpdateTaskConsent> | undefined;
1250
+ accounts?: Array<UpdateTaskAccount> | undefined;
1207
1251
  uid?: string | undefined;
1208
1252
  };
1209
1253
 
@@ -3220,7 +3264,7 @@ export type UpdateTaskBiometric4$Outbound = {
3220
3264
  id?: string | undefined;
3221
3265
  type?: string | undefined;
3222
3266
  selfieImage: string;
3223
- anchorImage: string;
3267
+ selfieImageEncryption?: boolean | undefined;
3224
3268
  };
3225
3269
 
3226
3270
  /** @internal */
@@ -3231,7 +3275,7 @@ export const UpdateTaskBiometric4$outboundSchema: z.ZodMiniType<
3231
3275
  id: z.optional(z.string()),
3232
3276
  type: z.optional(z.string()),
3233
3277
  selfieImage: z.string(),
3234
- anchorImage: z.string(),
3278
+ selfieImageEncryption: z.optional(z.boolean()),
3235
3279
  });
3236
3280
 
3237
3281
  export function updateTaskBiometric4ToJSON(
@@ -3246,8 +3290,7 @@ export function updateTaskBiometric4ToJSON(
3246
3290
  export type UpdateTaskBiometric3$Outbound = {
3247
3291
  id?: string | undefined;
3248
3292
  type?: string | undefined;
3249
- selfieImage: string;
3250
- selfieImageEncryption?: boolean | undefined;
3293
+ faceImage: string;
3251
3294
  };
3252
3295
 
3253
3296
  /** @internal */
@@ -3257,8 +3300,7 @@ export const UpdateTaskBiometric3$outboundSchema: z.ZodMiniType<
3257
3300
  > = z.object({
3258
3301
  id: z.optional(z.string()),
3259
3302
  type: z.optional(z.string()),
3260
- selfieImage: z.string(),
3261
- selfieImageEncryption: z.optional(z.boolean()),
3303
+ faceImage: z.string(),
3262
3304
  });
3263
3305
 
3264
3306
  export function updateTaskBiometric3ToJSON(
@@ -3273,8 +3315,8 @@ export function updateTaskBiometric3ToJSON(
3273
3315
  export type UpdateTaskBiometric2$Outbound = {
3274
3316
  id?: string | undefined;
3275
3317
  type?: string | undefined;
3276
- face1Image: string;
3277
- face2Image: string;
3318
+ selfieImage: string;
3319
+ anchorImage: string;
3278
3320
  };
3279
3321
 
3280
3322
  /** @internal */
@@ -3284,8 +3326,8 @@ export const UpdateTaskBiometric2$outboundSchema: z.ZodMiniType<
3284
3326
  > = z.object({
3285
3327
  id: z.optional(z.string()),
3286
3328
  type: z.optional(z.string()),
3287
- face1Image: z.string(),
3288
- face2Image: z.string(),
3329
+ selfieImage: z.string(),
3330
+ anchorImage: z.string(),
3289
3331
  });
3290
3332
 
3291
3333
  export function updateTaskBiometric2ToJSON(
@@ -3300,7 +3342,8 @@ export function updateTaskBiometric2ToJSON(
3300
3342
  export type UpdateTaskBiometric1$Outbound = {
3301
3343
  id?: string | undefined;
3302
3344
  type?: string | undefined;
3303
- faceImage: string;
3345
+ face1Image: string;
3346
+ face2Image: string;
3304
3347
  };
3305
3348
 
3306
3349
  /** @internal */
@@ -3310,7 +3353,8 @@ export const UpdateTaskBiometric1$outboundSchema: z.ZodMiniType<
3310
3353
  > = z.object({
3311
3354
  id: z.optional(z.string()),
3312
3355
  type: z.optional(z.string()),
3313
- faceImage: z.string(),
3356
+ face1Image: z.string(),
3357
+ face2Image: z.string(),
3314
3358
  });
3315
3359
 
3316
3360
  export function updateTaskBiometric1ToJSON(
@@ -3323,20 +3367,20 @@ export function updateTaskBiometric1ToJSON(
3323
3367
 
3324
3368
  /** @internal */
3325
3369
  export type UpdateTaskBiometricUnion$Outbound =
3326
- | UpdateTaskBiometric2$Outbound
3327
- | UpdateTaskBiometric4$Outbound
3328
3370
  | UpdateTaskBiometric1$Outbound
3329
- | UpdateTaskBiometric3$Outbound;
3371
+ | UpdateTaskBiometric2$Outbound
3372
+ | UpdateTaskBiometric3$Outbound
3373
+ | UpdateTaskBiometric4$Outbound;
3330
3374
 
3331
3375
  /** @internal */
3332
3376
  export const UpdateTaskBiometricUnion$outboundSchema: z.ZodMiniType<
3333
3377
  UpdateTaskBiometricUnion$Outbound,
3334
3378
  UpdateTaskBiometricUnion
3335
3379
  > = smartUnion([
3336
- z.lazy(() => UpdateTaskBiometric2$outboundSchema),
3337
- z.lazy(() => UpdateTaskBiometric4$outboundSchema),
3338
3380
  z.lazy(() => UpdateTaskBiometric1$outboundSchema),
3381
+ z.lazy(() => UpdateTaskBiometric2$outboundSchema),
3339
3382
  z.lazy(() => UpdateTaskBiometric3$outboundSchema),
3383
+ z.lazy(() => UpdateTaskBiometric4$outboundSchema),
3340
3384
  ]);
3341
3385
 
3342
3386
  export function updateTaskBiometricUnionToJSON(
@@ -3614,20 +3658,60 @@ export function updateTaskConsentToJSON(
3614
3658
  );
3615
3659
  }
3616
3660
 
3661
+ /** @internal */
3662
+ export type UpdateTaskAccount$Outbound = {
3663
+ type: string;
3664
+ accountNumber: string;
3665
+ sortCode?: string | undefined;
3666
+ routingNumber?: string | undefined;
3667
+ iban?: string | undefined;
3668
+ bic?: string | undefined;
3669
+ accountHolderName?: string | undefined;
3670
+ bankName?: string | undefined;
3671
+ country?: string | undefined;
3672
+ accountType?: string | undefined;
3673
+ };
3674
+
3675
+ /** @internal */
3676
+ export const UpdateTaskAccount$outboundSchema: z.ZodMiniType<
3677
+ UpdateTaskAccount$Outbound,
3678
+ UpdateTaskAccount
3679
+ > = z.object({
3680
+ type: z.string(),
3681
+ accountNumber: z.string(),
3682
+ sortCode: z.optional(z.string()),
3683
+ routingNumber: z.optional(z.string()),
3684
+ iban: z.optional(z.string()),
3685
+ bic: z.optional(z.string()),
3686
+ accountHolderName: z.optional(z.string()),
3687
+ bankName: z.optional(z.string()),
3688
+ country: z.optional(z.string()),
3689
+ accountType: z.optional(z.string()),
3690
+ });
3691
+
3692
+ export function updateTaskAccountToJSON(
3693
+ updateTaskAccount: UpdateTaskAccount,
3694
+ ): string {
3695
+ return JSON.stringify(
3696
+ UpdateTaskAccount$outboundSchema.parse(updateTaskAccount),
3697
+ );
3698
+ }
3699
+
3617
3700
  /** @internal */
3618
3701
  export type UpdateTaskSubject$Outbound = {
3619
3702
  identity?: UpdateTaskIdentity$Outbound | undefined;
3620
3703
  documents?: Array<UpdateTaskDocument$Outbound> | undefined;
3621
3704
  biometrics?:
3622
3705
  | Array<
3623
- | UpdateTaskBiometric2$Outbound
3624
- | UpdateTaskBiometric4$Outbound
3625
3706
  | UpdateTaskBiometric1$Outbound
3707
+ | UpdateTaskBiometric2$Outbound
3626
3708
  | UpdateTaskBiometric3$Outbound
3709
+ | UpdateTaskBiometric4$Outbound
3627
3710
  >
3628
3711
  | undefined;
3629
3712
  sessions?: Array<UpdateTaskSession$Outbound> | undefined;
3630
3713
  consent?: Array<UpdateTaskConsent$Outbound> | undefined;
3714
+ accounts?: Array<UpdateTaskAccount$Outbound> | undefined;
3631
3715
  uid?: string | undefined;
3632
3716
  };
3633
3717
 
@@ -3642,16 +3726,17 @@ export const UpdateTaskSubject$outboundSchema: z.ZodMiniType<
3642
3726
  ),
3643
3727
  biometrics: z.optional(
3644
3728
  z.array(smartUnion([
3645
- z.lazy(() => UpdateTaskBiometric2$outboundSchema),
3729
+ z.lazy(() => UpdateTaskBiometric1$outboundSchema),
3646
3730
  z.lazy(() =>
3647
- UpdateTaskBiometric4$outboundSchema
3731
+ UpdateTaskBiometric2$outboundSchema
3648
3732
  ),
3649
- z.lazy(() => UpdateTaskBiometric1$outboundSchema),
3650
3733
  z.lazy(() => UpdateTaskBiometric3$outboundSchema),
3734
+ z.lazy(() => UpdateTaskBiometric4$outboundSchema),
3651
3735
  ])),
3652
3736
  ),
3653
3737
  sessions: z.optional(z.array(z.lazy(() => UpdateTaskSession$outboundSchema))),
3654
3738
  consent: z.optional(z.array(z.lazy(() => UpdateTaskConsent$outboundSchema))),
3739
+ accounts: z.optional(z.array(z.lazy(() => UpdateTaskAccount$outboundSchema))),
3655
3740
  uid: z.optional(z.string()),
3656
3741
  });
3657
3742
 
@@ -1,45 +0,0 @@
1
- // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
- // README at: https://github.com/devcontainers/images/tree/main/src/typescript-node
3
- {
4
- "name": "TypeScript",
5
- "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
6
- // Features to add to the dev container. More info: https://containers.dev/features.
7
- // "features": {},
8
- // Use 'forwardPorts' to make a list of ports inside the container available locally.
9
- // "forwardPorts": [],
10
- // Use 'postCreateCommand' to run commands after the container is created.
11
- "postCreateCommand": "sudo chmod +x ./.devcontainer/setup.sh && ./.devcontainer/setup.sh",
12
- "customizations": {
13
- "vscode": {
14
- "extensions": [
15
- "ms-vscode.vscode-typescript-tslint-plugin",
16
- "esbenp.prettier-vscode",
17
- "github.vscode-pull-request-github"
18
- ],
19
- "settings": {
20
- "files.eol": "\n",
21
- "editor.formatOnSave": true,
22
- "typescript.tsc.autoDetect": "on",
23
- "typescript.updateImportsOnFileMove.enabled": "always",
24
- "typescript.preferences.importModuleSpecifier": "relative",
25
- "[typescript]": {
26
- "editor.codeActionsOnSave": {
27
- "source.organizeImports": true
28
- }
29
- },
30
- "[typescriptreact]": {
31
- "editor.codeActionsOnSave": {
32
- "source.organizeImports": true
33
- }
34
- }
35
- }
36
- },
37
- "codespaces": {
38
- "openFiles": [
39
- ".devcontainer/README.md"
40
- ]
41
- }
42
- }
43
- // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
44
- // "remoteUser": "root"
45
- }
@@ -1,53 +0,0 @@
1
- [
2
- {
3
- "name": "mode",
4
- "validation_regex": "/^(direct|pr)$/.source",
5
- "validation_message": "Must be `direct` or `pr`"
6
- },
7
- {
8
- "name": "speakeasy_version",
9
- "validation_regex": "/^[\\w.\\-]+$/.source",
10
- "validation_message": "Letters, numbers, or .-_ only"
11
- },
12
- {
13
- "name": "openapi_doc_location",
14
- "validation_regex": "/^((https?):\\/\\/([\\w\\-]+\\.)+\\w+(\\/.*)?|[\\w.\\-\\/]+)$/i.source",
15
- "validation_message": "Must be a valid server URL or file path containing letters, numbers, or .-_/ only"
16
- },
17
- {
18
- "name": "openapi_doc_auth_header",
19
- "validation_regex": "/^[A-Za-z\\-]+$/.source",
20
- "validation_message": "Letters or - only"
21
- },
22
- {
23
- "name": "create_release"
24
- },
25
- {
26
- "name": "publish_python",
27
- "language": "python"
28
- },
29
- {
30
- "name": "publish_typescript",
31
- "language": "typescript"
32
- },
33
- {
34
- "name": "publish_java",
35
- "language": "java"
36
- },
37
- {
38
- "name": "publish_php",
39
- "language": "php"
40
- },
41
- {
42
- "name": "publish_ruby",
43
- "language": "ruby"
44
- },
45
- {
46
- "name": "publish_csharp",
47
- "language": "csharp"
48
- },
49
- {
50
- "name": "publish_terraform",
51
- "language": "terraform"
52
- }
53
- ]