@zyphe-sdk/core 0.1.17 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.d.ts CHANGED
@@ -63,6 +63,77 @@ export interface paths {
63
63
  patch?: never;
64
64
  trace?: never;
65
65
  };
66
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-document": {
67
+ parameters: {
68
+ query?: never;
69
+ header?: never;
70
+ path?: never;
71
+ cookie?: never;
72
+ };
73
+ get?: never;
74
+ put?: never;
75
+ /** Submits identity document images for document verification. Call this after `next-step` returns a document verification step. */
76
+ post: operations["sdk_process_dv_document"];
77
+ delete?: never;
78
+ options?: never;
79
+ head?: never;
80
+ patch?: never;
81
+ trace?: never;
82
+ };
83
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/liveness-challenge": {
84
+ parameters: {
85
+ query?: never;
86
+ header?: never;
87
+ path?: never;
88
+ cookie?: never;
89
+ };
90
+ /** Retrieves the liveness challenge configuration for the current verification request. Use the returned data to present the liveness capture UI to the user. */
91
+ get: operations["sdk_get_liveness_challenge"];
92
+ put?: never;
93
+ post?: never;
94
+ delete?: never;
95
+ options?: never;
96
+ head?: never;
97
+ patch?: never;
98
+ trace?: never;
99
+ };
100
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-liveness": {
101
+ parameters: {
102
+ query?: never;
103
+ header?: never;
104
+ path?: never;
105
+ cookie?: never;
106
+ };
107
+ get?: never;
108
+ put?: never;
109
+ /** Submits liveness capture data (selfie or video) for processing. Call this after completing the liveness challenge from `liveness-challenge`. */
110
+ post: operations["sdk_process_dv_liveness"];
111
+ delete?: never;
112
+ options?: never;
113
+ head?: never;
114
+ patch?: never;
115
+ trace?: never;
116
+ };
117
+ "/sdk/flow/{flow_id}/vr/{verification_request_id}/dv/process-dv-selection": {
118
+ parameters: {
119
+ query?: never;
120
+ header?: never;
121
+ path?: never;
122
+ cookie?: never;
123
+ };
124
+ get?: never;
125
+ put?: never;
126
+ /**
127
+ * Submits the user's document selection (country and document type) to complete the document selection step.
128
+ * @description Call this after `next-step` returns a `document-selection` step, then call `next-step` again to proceed.
129
+ */
130
+ post: operations["sdk_process_dv_selection"];
131
+ delete?: never;
132
+ options?: never;
133
+ head?: never;
134
+ patch?: never;
135
+ trace?: never;
136
+ };
66
137
  "/flow/{flow_id}/vr/completed": {
67
138
  parameters: {
68
139
  query?: never;
@@ -79,6 +150,22 @@ export interface paths {
79
150
  patch?: never;
80
151
  trace?: never;
81
152
  };
153
+ "/sdk/organizations/{organization_id}/flow-results/flow/{flow_slug}/list": {
154
+ parameters: {
155
+ query?: never;
156
+ header?: never;
157
+ path?: never;
158
+ cookie?: never;
159
+ };
160
+ get: operations["sdk_list_flow_results"];
161
+ put?: never;
162
+ post?: never;
163
+ delete?: never;
164
+ options?: never;
165
+ head?: never;
166
+ patch?: never;
167
+ trace?: never;
168
+ };
82
169
  "/sdk/organizations/{organization_id}/flow-results/{flow_result_id}/flow/{flow_slug}/details": {
83
170
  parameters: {
84
171
  query?: never;
@@ -227,6 +314,45 @@ export interface paths {
227
314
  export type webhooks = Record<string, never>;
228
315
  export interface components {
229
316
  schemas: {
317
+ /** @description Configuration for an action node.
318
+ *
319
+ * Each variant represents a different action type with its specific configuration. */
320
+ ActionConfig: {
321
+ /** @enum {string} */
322
+ actionType: "setStatus";
323
+ value: components["schemas"]["ActionStatus"];
324
+ } | {
325
+ /** @enum {string} */
326
+ actionType: "flowRouter";
327
+ /**
328
+ * Format: uuid
329
+ * @description The target flow ID to route to.
330
+ */
331
+ target_flow_id: string;
332
+ };
333
+ /**
334
+ * @description Status values that can be set via workflow actions.
335
+ *
336
+ * This enum represents the possible status values that can be set
337
+ * via the SetStatus action in workflow nodes.
338
+ * @enum {string}
339
+ */
340
+ ActionStatus: "REQUIRES_MANUAL_REVIEW";
341
+ /** @description Action step output for tracking action node execution in workflow. */
342
+ ActionStepOutput: {
343
+ executed: boolean;
344
+ /** @description Optional redirect information for flow router actions */
345
+ redirectUrl?: string | null;
346
+ /**
347
+ * Format: uuid
348
+ * @description Optional target flow ID for flow router actions
349
+ */
350
+ targetFlowId?: string | null;
351
+ /** Format: date-time */
352
+ timestamp: string;
353
+ /** @description Optional token for the target flow */
354
+ token?: string | null;
355
+ };
230
356
  AddressData: {
231
357
  addressLine?: string | null;
232
358
  building: string;
@@ -283,8 +409,6 @@ export interface components {
283
409
  riskScore: components["schemas"]["RiskScore"];
284
410
  riskTopics: string[];
285
411
  };
286
- /** @enum {string} */
287
- AmlModerationStatus: "approved" | "rejected" | "escalated";
288
412
  AmlOccupancy: {
289
413
  endDate?: components["schemas"]["FieldWithControl"];
290
414
  post?: components["schemas"]["AmlPosition"][];
@@ -310,12 +434,15 @@ export interface components {
310
434
  summary?: components["schemas"]["FieldWithControl"];
311
435
  topics?: components["schemas"]["FieldWithControl"];
312
436
  };
437
+ AmlQueryMetadata: {
438
+ dateOfBirth: string;
439
+ firstName: string;
440
+ lastName: string;
441
+ };
313
442
  AmlResult: {
314
443
  /** Format: date-time */
315
444
  createdAt: string;
316
- data: {
317
- [key: string]: unknown;
318
- };
445
+ data?: components["schemas"]["AmlRiskResult"] | null;
319
446
  /** Format: uuid */
320
447
  id: string;
321
448
  pep: boolean;
@@ -329,6 +456,7 @@ export interface components {
329
456
  /** Format: date-time */
330
457
  checkedAt: string;
331
458
  controls: components["schemas"]["ResultControlOperation"][];
459
+ query?: components["schemas"]["AmlQueryMetadata"] | null;
332
460
  summary: components["schemas"]["AmlCheckSummary"];
333
461
  };
334
462
  AmlRiskResult: {
@@ -362,17 +490,67 @@ export interface components {
362
490
  labels?: {
363
491
  [key: string]: string;
364
492
  };
365
- /** @description List of partner flow IDs to attempt one-click KYC with */
366
- partnerFlowIds: string[];
493
+ /** @description Partner flow configurations with step type hints */
494
+ partnerConfigs: components["schemas"]["AutoOneClickPartnerConfig"][];
367
495
  /** @description Full partner flow objects (populated by rehydrate_flow_step) */
368
496
  partnerFlows?: components["schemas"]["Flow"][] | null;
369
497
  };
498
+ /** @description Data for tracking auto one-click KYC flow. */
499
+ AutoOneClickKycData: {
500
+ /** Format: uuid */
501
+ flowId: string;
502
+ /** Format: uuid */
503
+ flowStepId: string;
504
+ };
505
+ /** @description Auto One-Click KYC step output for workflow decisions. */
506
+ AutoOneClickKycStepOutput: {
507
+ status: components["schemas"]["ResultStatus"];
508
+ };
509
+ /** @description Configuration for a single partner flow in auto one-click */
510
+ AutoOneClickPartnerConfig: {
511
+ /**
512
+ * Format: uuid
513
+ * @description The partner flow ID
514
+ */
515
+ flowId: string;
516
+ /** @description Which step types to attempt one-click for in this partner flow
517
+ * If empty, defaults to [Dv] */
518
+ targetStepTypes?: components["schemas"]["FlowStepType"][];
519
+ };
370
520
  BaxeError: {
371
521
  /** Format: int32 */
372
522
  code: number;
373
523
  errorTag: components["schemas"]["ErrorTags"];
374
524
  message?: string | null;
375
525
  };
526
+ /** @description A condition branch for switch operators. */
527
+ BranchCondition: {
528
+ condition: components["schemas"]["Condition"];
529
+ /** @description The label of the edge to follow if this condition matches. */
530
+ label: string;
531
+ };
532
+ /**
533
+ * @description Source that can participate in a business information field disagreement.
534
+ * @enum {string}
535
+ */
536
+ BusinessInfoDisagreementSource: "submitted" | "document" | "catalog";
537
+ /** @description Per-field verification result comparing submitted business info against document-extracted values. */
538
+ BusinessInfoFieldVerification: {
539
+ /** @description The value extracted from the company catalog API. */
540
+ catalogValue?: string | null;
541
+ /** @description Sources that disagree with one another for this field. */
542
+ disagreementSources?: components["schemas"]["BusinessInfoDisagreementSource"][];
543
+ /** @description The value extracted from the uploaded document(s). */
544
+ documentValue?: string | null;
545
+ matchType: components["schemas"]["BusinessInfoMatchType"];
546
+ /** @description The user-submitted value for this field. */
547
+ submittedValue?: string | null;
548
+ };
549
+ /**
550
+ * @description Match type for a single business information field against document-extracted values.
551
+ * @enum {string}
552
+ */
553
+ BusinessInfoMatchType: "match" | "fuzzy" | "mismatch" | "notFound";
376
554
  BusinessInformation: {
377
555
  address: string;
378
556
  businessActivity: string;
@@ -385,6 +563,158 @@ export interface components {
385
563
  postZipCode: string;
386
564
  registrationNumber: string;
387
565
  };
566
+ /** @description Parsed representation of the client's clarification response stored inside
567
+ * `reviewReason` JSON. Present only on document requests of that type after
568
+ * the client has submitted. */
569
+ BusinessInformationClarificationResponse: {
570
+ /** @description Client's decision: `"confirm"` (values are correct as-is) or `"deny"` (proposes new values). */
571
+ decision: string;
572
+ /** @description Field updates proposed by the client. Absent or empty when `decision` is `"confirm"`.
573
+ * Stored metadata uses key `"updates"`; API and legacy use `"fields"`. */
574
+ fields?: components["schemas"]["BusinessInformationClarificationResponseField"][] | null;
575
+ /** @description Free-text explanation from the client. */
576
+ reason: string;
577
+ };
578
+ /** @description A single field update proposed by the client in a business-information clarification response. */
579
+ BusinessInformationClarificationResponseField: {
580
+ /** @description The business-information field key (e.g. `"companyName"`). */
581
+ fieldKey: string;
582
+ /** @description The new value proposed by the client. */
583
+ value: string;
584
+ };
585
+ /**
586
+ * @description Provider-agnostic check status.
587
+ *
588
+ * This enum represents the canonical outcome of any verification check,
589
+ * abstracting away provider-specific status codes.
590
+ *
591
+ * # Deserialization
592
+ *
593
+ * Supports both string format ("passed", "failed", etc.) and legacy integer codes:
594
+ * - 0 = Passed (OK in Regula)
595
+ * - 1 = Failed (Error in Regula)
596
+ * - 2 = NotPerformed (Was not done in Regula)
597
+ * @enum {string}
598
+ */
599
+ CheckStatus: "passed" | "failed" | "not_performed" | "unknown";
600
+ CloudflareTracePayload: {
601
+ colo?: string | null;
602
+ ip?: string | null;
603
+ loc?: string | null;
604
+ ts?: string | null;
605
+ visitScheme?: string | null;
606
+ };
607
+ /** @description A condition that can be evaluated against workflow context.
608
+ *
609
+ * Conditions are serialized as JSON with a tagged `op` field.
610
+ *
611
+ * # Examples
612
+ *
613
+ * ## Equality check
614
+ * ```json
615
+ * { "op": "EQ", "field": "dv_step.status", "value": "PASSED" }
616
+ * ```
617
+ *
618
+ * ## Compound condition
619
+ * ```json
620
+ * {
621
+ * "op": "AND",
622
+ * "conditions": [
623
+ * { "op": "EQ", "field": "dv_step.status", "value": "PASSED" },
624
+ * { "op": "IN", "field": "dv_step.countryCode", "values": ["IT", "DE", "FR"] }
625
+ * ]
626
+ * }
627
+ * ``` */
628
+ Condition: {
629
+ /** @description Field path (e.g., "dv_step.status") */
630
+ field: string;
631
+ /** @enum {string} */
632
+ op: "EQ";
633
+ value: components["schemas"]["WorkflowValue"];
634
+ } | {
635
+ /** @description Field path */
636
+ field: string;
637
+ /** @enum {string} */
638
+ op: "NE";
639
+ value: components["schemas"]["WorkflowValue"];
640
+ } | {
641
+ /** @description Field path */
642
+ field: string;
643
+ /** @enum {string} */
644
+ op: "GT";
645
+ value: components["schemas"]["WorkflowValue"];
646
+ } | {
647
+ /** @description Field path */
648
+ field: string;
649
+ /** @enum {string} */
650
+ op: "LT";
651
+ value: components["schemas"]["WorkflowValue"];
652
+ } | {
653
+ /** @description Field path */
654
+ field: string;
655
+ /** @enum {string} */
656
+ op: "GTE";
657
+ value: components["schemas"]["WorkflowValue"];
658
+ } | {
659
+ /** @description Field path */
660
+ field: string;
661
+ /** @enum {string} */
662
+ op: "LTE";
663
+ value: components["schemas"]["WorkflowValue"];
664
+ } | {
665
+ /** @description Conditions to AND together */
666
+ conditions: components["schemas"]["Condition"][];
667
+ /** @enum {string} */
668
+ op: "AND";
669
+ } | {
670
+ /** @description Conditions to OR together */
671
+ conditions: components["schemas"]["Condition"][];
672
+ /** @enum {string} */
673
+ op: "OR";
674
+ } | {
675
+ condition: components["schemas"]["Condition"];
676
+ /** @enum {string} */
677
+ op: "NOT";
678
+ } | {
679
+ /** @description Field path */
680
+ field: string;
681
+ /** @enum {string} */
682
+ op: "IN";
683
+ /** @description List of values to check against */
684
+ values: components["schemas"]["WorkflowValue"][];
685
+ } | {
686
+ condition: components["schemas"]["Condition"];
687
+ /** @description Field path to an array */
688
+ field: string;
689
+ /** @enum {string} */
690
+ op: "ANY";
691
+ } | {
692
+ condition: components["schemas"]["Condition"];
693
+ /** @description Field path to an array */
694
+ field: string;
695
+ /** @enum {string} */
696
+ op: "ALL";
697
+ } | {
698
+ /** @description Field path */
699
+ field: string;
700
+ /** @enum {string} */
701
+ op: "IS_NULL";
702
+ } | {
703
+ /** @description Field path */
704
+ field: string;
705
+ /** @enum {string} */
706
+ op: "IS_NOT_NULL";
707
+ } | {
708
+ /** @enum {string} */
709
+ op: "LITERAL";
710
+ /** @description The literal value */
711
+ value: boolean;
712
+ };
713
+ /**
714
+ * @description Condition operator type representing all valid condition operators.
715
+ * @enum {string}
716
+ */
717
+ ConditionOperator: "EQ" | "NE" | "GT" | "LT" | "GTE" | "LTE" | "AND" | "OR" | "NOT" | "IN" | "ANY" | "ALL" | "IS_NULL" | "IS_NOT_NULL" | "LITERAL";
388
718
  CountriesFilter: {
389
719
  accepted: string[];
390
720
  blocked: string[];
@@ -397,7 +727,7 @@ export interface components {
397
727
  } | null;
398
728
  email?: string | null;
399
729
  /** Format: uuid */
400
- flowStepId: string;
730
+ flowStepId?: string | null;
401
731
  privacyPolicyAccepted: boolean;
402
732
  termsAndConditionsAccepted: boolean;
403
733
  };
@@ -458,21 +788,63 @@ export interface components {
458
788
  path: string;
459
789
  type: string;
460
790
  };
791
+ /** @description Status of various document scan checks.
792
+ *
793
+ * # Deserialization
794
+ *
795
+ * Supports both new abstract format and legacy Regula format:
796
+ *
797
+ * **New format:**
798
+ * ```json
799
+ * { "overall": "passed", "documentType": "passed", "expiry": "passed", "mrz": "passed" }
800
+ * ```
801
+ *
802
+ * **Legacy Regula format:**
803
+ * ```json
804
+ * {
805
+ * "overallStatus": 0,
806
+ * "detailsOptical": { "docType": 1, "expiry": 0, "mrz": 2, ... },
807
+ * "optical": 0, "portrait": 1, "rfid": 2, ...
808
+ * }
809
+ * ``` */
810
+ DocumentScanStatus: {
811
+ documentType: components["schemas"]["CheckStatus"];
812
+ expiry: components["schemas"]["CheckStatus"];
813
+ mrz: components["schemas"]["CheckStatus"];
814
+ overall: components["schemas"]["CheckStatus"];
815
+ };
816
+ DocumentSelectionConfig: {
817
+ allowedDocumentsPerCountry?: {
818
+ [key: string]: string[];
819
+ } | null;
820
+ countriesFilter: components["schemas"]["CountriesFilter"];
821
+ documentTypesFilter: components["schemas"]["DocumentTypeFilter"];
822
+ enabledGovernmentProviders: {
823
+ [key: string]: components["schemas"]["SpidDocumentType"][];
824
+ };
825
+ /** @example { "en_button_label": "Next step" } */
826
+ labels?: {
827
+ [key: string]: string;
828
+ };
829
+ };
830
+ /** @description Document selection step output for workflow decisions. */
831
+ DocumentSelectionStepOutput: {
832
+ country?: string | null;
833
+ /** Format: int64 */
834
+ documentType?: number | null;
835
+ };
461
836
  DocumentTypeFilter: {
462
837
  types: string[];
463
838
  };
464
839
  DocumentUpload: {
840
+ documentType?: string | null;
465
841
  filename: string;
466
842
  presignedUrl?: string | null;
467
843
  s3Key?: string | null;
468
844
  };
469
845
  DvConfig: {
470
- allowedDocumentsPerCountry?: {
471
- [key: string]: string[];
472
- } | null;
473
- countriesFilter?: components["schemas"]["CountriesFilter"] | null;
474
- documentFormatsFilter?: components["schemas"]["DocumentFormatFilter"] | null;
475
- documentTypesFilter?: components["schemas"]["DocumentTypeFilter"] | null;
846
+ /** Format: uuid */
847
+ documentSelectionStepId?: string;
476
848
  /** @example { "en_button_label": "Next step" } */
477
849
  labels?: {
478
850
  [key: string]: string;
@@ -493,7 +865,7 @@ export interface components {
493
865
  /** @enum {string} */
494
866
  DvConfigThreshold: "documentScorePercent";
495
867
  /** @enum {string} */
496
- DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "LIVENESS_CHECK_FAILED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK" | "ELECTRONIC_DEVICE" | "SECURITY_TEXT" | "IMAGE_PATTERNS" | "PHOTO_EMBEDDINGS" | "BLACK_AND_WHITE_COPY" | "UNIQUENESS_CHECK" | "REQUIRED_FIELDS_MISMATCH";
868
+ DvReason: "UNKNOWN" | "WRONG_DOCUMENT_TYPE" | "COUNTRY_FILTER" | "FACE_MATCH_CHECK" | "FACE_MATCH_CHECK_ONE_CLICK" | "OVERALL_STATUS" | "DOCUMENT_COUNTRY_MISMATCH" | "DOCUMENT_COUNTRY_MISSING" | "DATE_OF_EXPIRY_NOT_VALID" | "DATE_OF_EXPIRY_NOT_READABLE" | "DATE_OF_EXPIRY_FIELD_MISSING" | "DOCUMENT_ALREADY_USED_BY_ANOTHER_USER" | "DOCUMENT_FINGERPRINT_COMPUTATION" | "SECURITY_CHECK_FAILED" | "DOCUMENT_SCORE_BELOW_THRESHOLD" | "DOCUMENT_TYPE_NOT_DEFINED" | "DOCUMENT_NOT_FOUND" | "DATE_OF_BIRTH_BELOW_MINIMUM_AGE" | "DOCUMENT_TYPE_CHECK" | "ELECTRONIC_DEVICE" | "SECURITY_TEXT" | "IMAGE_PATTERNS" | "PHOTO_EMBEDDINGS" | "BLACK_AND_WHITE_COPY" | "UNIQUENESS_CHECK" | "REQUIRED_FIELDS_MISMATCH" | "LIVENESS_CHECK_FAILED" | "LIVENESS_ANTISPOOF_FAILED" | "LIVENESS_BRIGHTNESS_FAILED" | "LIVENESS_EYES_CLOSED_FAILED" | "LIVENESS_WEARING_SUNGLASSES_FAILED" | "LIVENESS_FACE_OCCLUDED_FAILED" | "LIVENESS_SHARPNESS_FAILED" | "LIVENESS_FACE_CONSISTENCY_FAILED";
497
869
  DvResult: {
498
870
  adminComment?: string | null;
499
871
  authenticityChecks: number[][];
@@ -527,9 +899,7 @@ export interface components {
527
899
  platform?: string | null;
528
900
  /** Format: int32 */
529
901
  portraitMatchPercent?: number | null;
530
- processAdditionalData: {
531
- [key: string]: unknown;
532
- };
902
+ processAdditionalData: components["schemas"]["ProcessAdditionalData"];
533
903
  provinceCode?: string | null;
534
904
  reasons: components["schemas"]["DvReason"][];
535
905
  status: components["schemas"]["ResultStatus"];
@@ -538,8 +908,32 @@ export interface components {
538
908
  /** Format: uuid */
539
909
  verificationRequestId?: string | null;
540
910
  };
911
+ DvStepOutput: {
912
+ amlPep?: boolean | null;
913
+ /** Format: int32 */
914
+ amlRiskScorePercent?: number | null;
915
+ amlSanctions?: boolean | null;
916
+ /** Format: date-time */
917
+ dateOfExpiry?: string | null;
918
+ /** Format: int32 */
919
+ documentType?: number | null;
920
+ issuingCountry?: string | null;
921
+ livenessStatus?: components["schemas"]["ResultStatus"] | null;
922
+ /** Format: int32 */
923
+ numberOfAttempts: number;
924
+ status: components["schemas"]["ResultStatus"];
925
+ };
541
926
  /** @enum {string} */
542
- ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal";
927
+ ErrorTags: "unexpected" | "bad_request" | "permission_denied" | "request_deserialization" | "database" | "invalid_email_or_password" | "user_not_confirmed" | "verify_password" | "send_email" | "open_session" | "read_session" | "close_session" | "user_disabled" | "missing_authorization_header" | "invalid_authorization_header" | "token_generation" | "user_not_found" | "email_already_taken" | "invalid_invite" | "wrong_invite_user" | "invite_not_found" | "email_already_verified" | "flow_not_found" | "flow_step_not_found" | "organization_not_found" | "storage" | "verification_request_not_found" | "document_reader" | "websocket" | "organization_settings_not_found" | "start_job" | "result_not_found" | "kyc_grant_not_found" | "document_not_found" | "service_invocation" | "trigger_webhook" | "too_many_invites" | "invite_already_used" | "invite_already_accepted" | "invite_already_revoked" | "invite_revoked" | "invite_expired" | "invite_already_exists" | "share_already_revoked" | "form_not_found" | "form_in_use" | "flow_step_configuration_not_found" | "identity_not_found" | "step_order_violation" | "serialization" | "mock_data" | "api_key_not_found" | "not_implemented" | "access_grant" | "rate_limit_exceeded" | "missing_api_key" | "invalid_api_key" | "origin_not_allowed" | "step_already_completed" | "send_sms" | "send_notification" | "parse_error" | "inviter_organization_not_found" | "forbidden" | "passkey_authentication" | "internal" | "invalid_email" | "graph_validation" | "external_api" | "share_already_has_write_access" | "share_does_not_have_write_access" | "write_access_already_revoked" | "invite_required" | "billing";
928
+ /** @description Represents an executed action with its ID and type. */
929
+ ExecutedAction: {
930
+ actionConfig: components["schemas"]["ActionConfig"];
931
+ /**
932
+ * Format: uuid
933
+ * @description The unique identifier of the action node.
934
+ */
935
+ actionId: string;
936
+ };
543
937
  FieldControlOperation: {
544
938
  /** Format: uuid */
545
939
  identityId: string;
@@ -561,6 +955,11 @@ export interface components {
561
955
  comment: string;
562
956
  };
563
957
  };
958
+ /**
959
+ * @description Per-field review status within a clarification document request.
960
+ * @enum {string}
961
+ */
962
+ FieldReviewStatus: "PENDING" | "APPROVED" | "REJECTED";
564
963
  FieldWithControl: {
565
964
  controls: components["schemas"]["FieldControlOperation"][];
566
965
  value: string[];
@@ -568,6 +967,8 @@ export interface components {
568
967
  FileOptions: {
569
968
  accept: string[];
570
969
  expectedDocumentType: string;
970
+ /** Format: int32 */
971
+ maxCountUploads?: number;
571
972
  };
572
973
  /** @enum {string} */
573
974
  FilterOperator: "unfiltered" | "in" | "equals" | "not-in" | "not-equals" | "contains";
@@ -577,6 +978,7 @@ export interface components {
577
978
  failureUrl?: string | null;
578
979
  /** Format: uuid */
579
980
  id: string;
981
+ jdm: components["schemas"]["WorkflowGraph"];
580
982
  name: string;
581
983
  slug: string;
582
984
  steps: components["schemas"]["FlowStep"][];
@@ -591,21 +993,27 @@ export interface components {
591
993
  createdAt?: string | null;
592
994
  customData: {
593
995
  [key: string]: unknown;
594
- };
996
+ } | null;
595
997
  dvResults: components["schemas"]["DvResult"][];
596
998
  flow?: components["schemas"]["Flow"] | null;
597
999
  flowSlug: string;
598
1000
  formResults: components["schemas"]["FormResult"][];
1001
+ geolocationResults?: components["schemas"]["GeolocationResult"][];
599
1002
  /** Format: uuid */
600
1003
  id: string;
601
1004
  identity?: components["schemas"]["Identity"] | null;
1005
+ jdmData: {
1006
+ [key: string]: components["schemas"]["FlowStepOutput"];
1007
+ };
602
1008
  kybResults: components["schemas"]["KybResult"][];
603
1009
  organization?: components["schemas"]["Organization"] | null;
604
1010
  /** Format: uuid */
605
1011
  organizationId: string;
606
1012
  phoneResults: components["schemas"]["PhoneResult"][];
607
1013
  poaResults: components["schemas"]["PoaResult"][];
1014
+ reviewSuggestion?: components["schemas"]["ReviewSuggestion"] | null;
608
1015
  spidResults: components["schemas"]["SpidResult"][];
1016
+ status: components["schemas"]["VerificationRequestStatus"];
609
1017
  /** Format: date-time */
610
1018
  updatedAt?: string | null;
611
1019
  walletResults: components["schemas"]["WalletResult"][];
@@ -791,7 +1199,27 @@ export interface components {
791
1199
  /** Format: date-time */
792
1200
  updatedAt?: string | null;
793
1201
  } | {
794
- config: components["schemas"]["OrchestratorConfig"];
1202
+ config: components["schemas"]["DocumentSelectionConfig"];
1203
+ /** Format: date-time */
1204
+ createdAt?: string | null;
1205
+ failureUrl?: string | null;
1206
+ /** Format: uuid */
1207
+ flowId: string;
1208
+ /** Format: uuid */
1209
+ gotoStepId?: string | null;
1210
+ /** Format: uuid */
1211
+ id: string;
1212
+ name: string;
1213
+ /** Format: int32 */
1214
+ order: number;
1215
+ slug: string;
1216
+ successUrl?: string | null;
1217
+ /** @enum {string} */
1218
+ type: "DOCUMENT_SELECTION";
1219
+ /** Format: date-time */
1220
+ updatedAt?: string | null;
1221
+ } | {
1222
+ config: components["schemas"]["GeolocationConfig"];
795
1223
  /** Format: date-time */
796
1224
  createdAt?: string | null;
797
1225
  failureUrl?: string | null;
@@ -807,11 +1235,11 @@ export interface components {
807
1235
  slug: string;
808
1236
  successUrl?: string | null;
809
1237
  /** @enum {string} */
810
- type: "ORCHESTRATOR";
1238
+ type: "GEOLOCATION";
811
1239
  /** Format: date-time */
812
1240
  updatedAt?: string | null;
813
1241
  };
814
- FlowStepConfig: components["schemas"]["AutoOneClickKycConfig"] | components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["WalletConfig"] | components["schemas"]["LivenessConfig"] | components["schemas"]["OrchestratorConfig"] | components["schemas"]["SpidConfig"] | components["schemas"]["PhoneConfig"];
1242
+ FlowStepConfig: components["schemas"]["AutoOneClickKycConfig"] | components["schemas"]["DvConfig"] | components["schemas"]["FormConfig"] | components["schemas"]["PoaConfig"] | components["schemas"]["KybConfig"] | components["schemas"]["WalletConfig"] | components["schemas"]["LivenessConfig"] | components["schemas"]["DocumentSelectionConfig"] | components["schemas"]["GeolocationConfig"] | components["schemas"]["SpidConfig"] | components["schemas"]["PhoneConfig"];
815
1243
  FlowStepInfo: {
816
1244
  CONFIG: components["schemas"]["FlowStepConfig"];
817
1245
  /** Format: date-time */
@@ -832,8 +1260,57 @@ export interface components {
832
1260
  /** Format: date-time */
833
1261
  UPDATED_AT?: string | null;
834
1262
  };
1263
+ FlowStepOutput: {
1264
+ data: components["schemas"]["DvStepOutput"];
1265
+ /** @enum {string} */
1266
+ type: "DV";
1267
+ } | {
1268
+ data: components["schemas"]["PoaStepOutput"];
1269
+ /** @enum {string} */
1270
+ type: "POA";
1271
+ } | {
1272
+ data: components["schemas"]["SpidStepOutput"];
1273
+ /** @enum {string} */
1274
+ type: "SPID";
1275
+ } | {
1276
+ data: components["schemas"]["WalletStepOutput"];
1277
+ /** @enum {string} */
1278
+ type: "WALLET";
1279
+ } | {
1280
+ data: components["schemas"]["PhoneStepOutput"];
1281
+ /** @enum {string} */
1282
+ type: "PHONE";
1283
+ } | {
1284
+ data: components["schemas"]["FormStepOutput"];
1285
+ /** @enum {string} */
1286
+ type: "FORM";
1287
+ } | {
1288
+ data: components["schemas"]["KybStepOutput"];
1289
+ /** @enum {string} */
1290
+ type: "KYB";
1291
+ } | {
1292
+ data: components["schemas"]["LivenessStepOutput"];
1293
+ /** @enum {string} */
1294
+ type: "LIVENESS";
1295
+ } | {
1296
+ data: components["schemas"]["AutoOneClickKycStepOutput"];
1297
+ /** @enum {string} */
1298
+ type: "AUTO_ONE_CLICK_KYC";
1299
+ } | {
1300
+ data: components["schemas"]["ActionStepOutput"];
1301
+ /** @enum {string} */
1302
+ type: "ACTION";
1303
+ } | {
1304
+ data: components["schemas"]["DocumentSelectionStepOutput"];
1305
+ /** @enum {string} */
1306
+ type: "DOCUMENT_SELECTION";
1307
+ } | {
1308
+ data: components["schemas"]["GeolocationStepOutput"];
1309
+ /** @enum {string} */
1310
+ type: "GEOLOCATION";
1311
+ };
835
1312
  /** @enum {string} */
836
- FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "ORCHESTRATOR";
1313
+ FlowStepType: "DV" | "FORM" | "POA" | "KYB" | "SPID" | "PHONE" | "WALLET" | "LIVENESS" | "AUTO_ONE_CLICK_KYC" | "DOCUMENT_SELECTION" | "GEOLOCATION";
837
1314
  Form: {
838
1315
  /** Format: date-time */
839
1316
  createdAt?: string | null;
@@ -861,6 +1338,8 @@ export interface components {
861
1338
  labels?: {
862
1339
  [key: string]: string;
863
1340
  };
1341
+ /** Format: int64 */
1342
+ oneClickMaxAgeSeconds?: number | null;
864
1343
  };
865
1344
  FormItem: {
866
1345
  content: components["schemas"]["InputField"];
@@ -886,6 +1365,8 @@ export interface components {
886
1365
  flowStepId?: string | null;
887
1366
  form?: components["schemas"]["Form"] | null;
888
1367
  /** Format: uuid */
1368
+ formId?: string | null;
1369
+ /** Format: uuid */
889
1370
  id: string;
890
1371
  reason?: components["schemas"]["FormReason"] | null;
891
1372
  sections: components["schemas"]["FormSection"][];
@@ -902,13 +1383,75 @@ export interface components {
902
1383
  };
903
1384
  name: string;
904
1385
  };
905
- GetApiKeyResponse: {
906
- apiKey: components["schemas"]["ZypheApiKey"];
1386
+ /** @description Form step output for workflow decisions.
1387
+ *
1388
+ * # Field Name Restrictions
1389
+ *
1390
+ * The `fields` HashMap is flattened during serialization. Form field names must not conflict
1391
+ * with the reserved field name "status" (or "status" in camelCase), as this would create duplicate
1392
+ * keys in the serialized JSON output, resulting in invalid JSON. */
1393
+ FormStepOutput: {
1394
+ status: components["schemas"]["ResultStatus"];
1395
+ } & {
1396
+ [key: string]: unknown;
907
1397
  };
908
- GetFlowResponse: {
909
- flow: components["schemas"]["Flow"];
1398
+ GeolocationConfig: {
1399
+ /** @example true */
1400
+ ipValidation?: boolean;
1401
+ /** @example { "default": "Next step" } */
1402
+ labels?: {
1403
+ [key: string]: string;
1404
+ };
1405
+ /** @example true */
1406
+ locationCrossCheck?: boolean;
1407
+ /** @example true */
1408
+ vpnDetection?: boolean;
910
1409
  };
911
- GetFormResponse: {
1410
+ GeolocationCoordinates: {
1411
+ /** Format: double */
1412
+ accuracy: number;
1413
+ /** Format: double */
1414
+ latitude: number;
1415
+ /** Format: double */
1416
+ longitude: number;
1417
+ };
1418
+ GeolocationResult: {
1419
+ blacklistedIp: boolean;
1420
+ country?: string | null;
1421
+ /** Format: date-time */
1422
+ createdAt?: string | null;
1423
+ deviceFingerprint?: string | null;
1424
+ /** Format: uuid */
1425
+ flowResultId: string;
1426
+ flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1427
+ /** Format: uuid */
1428
+ flowStepId?: string | null;
1429
+ /** Format: uuid */
1430
+ id: string;
1431
+ ipAddress?: string | null;
1432
+ reason?: string | null;
1433
+ status: components["schemas"]["ResultStatus"];
1434
+ /** Format: date-time */
1435
+ updatedAt?: string | null;
1436
+ /** Format: uuid */
1437
+ verificationRequestId?: string | null;
1438
+ vpn: boolean;
1439
+ };
1440
+ /** @description Geolocation step output for workflow decisions. */
1441
+ GeolocationStepOutput: {
1442
+ blacklistedIp?: boolean;
1443
+ country?: string | null;
1444
+ deviceFingerprint?: string | null;
1445
+ ipAddress?: string | null;
1446
+ vpn?: boolean;
1447
+ };
1448
+ GetApiKeyResponse: {
1449
+ apiKey: components["schemas"]["ZypheApiKey"];
1450
+ };
1451
+ GetFlowResponse: {
1452
+ flow: components["schemas"]["Flow"];
1453
+ };
1454
+ GetFormResponse: {
912
1455
  form: components["schemas"]["Form"];
913
1456
  };
914
1457
  GetFullFlowResponse: {
@@ -919,10 +1462,50 @@ export interface components {
919
1462
  organizationName: string;
920
1463
  settings: components["schemas"]["Settings"];
921
1464
  };
1465
+ /** @description Response to the `liveness-challenge` endpoint.
1466
+ *
1467
+ * The `mode` discriminant tells the client which capture flow to perform:
1468
+ * - `"ACTIVE"` — head-movement challenge; the client captures movements and
1469
+ * uploads movement images + video + calibration image.
1470
+ * - `"PASSIVE"` — selfie-only; the client uploads only a calibration image.
1471
+ * No movements are required. */
1472
+ GetLivenessChallengeResponse: {
1473
+ calibrationImage: components["schemas"]["LivenessUploadUrl"];
1474
+ /** Format: uuid */
1475
+ id: string;
1476
+ /** @enum {string} */
1477
+ mode: "ACTIVE";
1478
+ /** Format: int64 */
1479
+ movementDurationMs: number;
1480
+ movementImages: components["schemas"]["LivenessUploadUrl"][];
1481
+ movements: components["schemas"]["HeadMovement"][];
1482
+ rotationThresholds: components["schemas"]["RotationThresholds"];
1483
+ rotationThresholdsDiagonal: components["schemas"]["RotationThresholds"];
1484
+ video: components["schemas"]["LivenessUploadUrl"];
1485
+ } | {
1486
+ calibrationImage: components["schemas"]["LivenessUploadUrl"];
1487
+ /** Format: uuid */
1488
+ id: string;
1489
+ /** @enum {string} */
1490
+ mode: "PASSIVE";
1491
+ };
922
1492
  GetNextStepPayload: {
1493
+ /** @description Email address of the user whose verification progress should be queried. */
923
1494
  email: string;
924
1495
  };
925
1496
  GetNextStepResponse: {
1497
+ /** @description Custom data associated with the flow result, if one exists. */
1498
+ customData?: {
1499
+ [key: string]: unknown;
1500
+ } | null;
1501
+ /** @description Actions that were automatically executed as part of flow evaluation (e.g. status transitions). */
1502
+ executedActions?: components["schemas"]["ExecutedAction"][];
1503
+ /**
1504
+ * Format: uuid
1505
+ * @description The ID of the flow result record, if one exists for this user.
1506
+ */
1507
+ flowResultId?: string | null;
1508
+ /** @description Whether the user has completed all required steps in the flow. */
926
1509
  isCompleted: boolean;
927
1510
  nextStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
928
1511
  };
@@ -931,12 +1514,17 @@ export interface components {
931
1514
  passkey?: components["schemas"]["VaultUnlockPasskeyData"] | null;
932
1515
  verificationRequest: components["schemas"]["VerificationRequest"];
933
1516
  };
1517
+ /**
1518
+ * @description Represents the different head movements that can be requested in a liveness challenge
1519
+ * @enum {string}
1520
+ */
1521
+ HeadMovement: "up" | "up-right" | "right" | "down-right" | "down" | "down-left" | "left" | "up-left";
934
1522
  Identity: {
935
1523
  /** Format: date-time */
936
1524
  createdAt?: string | null;
937
1525
  /** Format: uuid */
938
1526
  defaultOrganizationId?: string | null;
939
- email: string;
1527
+ email?: string | null;
940
1528
  emailVerified: boolean;
941
1529
  /** Format: uuid */
942
1530
  id: string;
@@ -951,66 +1539,99 @@ export interface components {
951
1539
  lastEnvironmentIsSandbox?: boolean;
952
1540
  locale: components["schemas"]["Locale"];
953
1541
  };
954
- Image: {
1542
+ /** @description Result of an image quality check.
1543
+ *
1544
+ * # Deserialization
1545
+ *
1546
+ * Supports both new abstract format and legacy Regula format:
1547
+ *
1548
+ * **New format:**
1549
+ * ```json
1550
+ * { "checkType": "focus", "result": "passed", "probability": 97 }
1551
+ * ```
1552
+ *
1553
+ * **Legacy Regula format (single item from 'list'):**
1554
+ * ```json
1555
+ * { "type": 1, "result": 0, "probability": 97, "featureType": 0, "mean": 0.0, "stdDev": 0.0 }
1556
+ * ``` */
1557
+ ImageQualityCheckResult: {
1558
+ checkType: components["schemas"]["ImageQualityCheckType"];
955
1559
  /** Format: int32 */
956
- containerType: number;
957
- /** Format: int64 */
958
- lightIndex: number;
959
- /** Format: int64 */
960
- pageIndex: number;
961
- source: string;
962
- value: string;
1560
+ probability?: number | null;
1561
+ result: components["schemas"]["CheckStatus"];
963
1562
  };
1563
+ /**
1564
+ * @description Types of image quality checks.
1565
+ *
1566
+ * # Deserialization
1567
+ *
1568
+ * Supports both string format and legacy Regula integer type codes:
1569
+ * - 0 = Glare (ImageGlares)
1570
+ * - 1 = Focus (ImageFocus)
1571
+ * - 2 = Resolution (ImageResolution)
1572
+ * - 3 = Colorness (ImageColorness)
1573
+ * - 4 = Perspective (ImagePerspective)
1574
+ * - 5 = Bounds (ImageBounds)
1575
+ * - 6 = ScreenCapture (ImageScreenCapture)
1576
+ * - 7 = Portrait (ImagePortrait)
1577
+ * @enum {string}
1578
+ */
1579
+ ImageQualityCheckType: "glare" | "focus" | "resolution" | "colorness" | "perspective" | "bounds" | "screen_capture" | "portrait" | "image_quality" | "unknown";
964
1580
  InputField: {
965
1581
  label: {
966
1582
  [key: string]: string;
967
1583
  };
968
1584
  name: string;
969
1585
  options: unknown;
970
- required: boolean;
1586
+ requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
971
1587
  /** @enum {string} */
972
1588
  type: "date";
973
1589
  value?: unknown;
1590
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
974
1591
  } | {
975
1592
  label: {
976
1593
  [key: string]: string;
977
1594
  };
978
1595
  name: string;
979
1596
  options: unknown;
980
- required: boolean;
1597
+ requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
981
1598
  /** @enum {string} */
982
1599
  type: "text";
983
1600
  value?: unknown;
1601
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
984
1602
  } | {
985
1603
  label: {
986
1604
  [key: string]: string;
987
1605
  };
988
1606
  name: string;
989
1607
  options: unknown;
990
- required: boolean;
1608
+ requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
991
1609
  /** @enum {string} */
992
1610
  type: "textarea";
993
1611
  value?: unknown;
1612
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
994
1613
  } | {
995
1614
  label: {
996
1615
  [key: string]: string;
997
1616
  };
998
1617
  name: string;
999
1618
  options: unknown;
1000
- required: boolean;
1619
+ requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1001
1620
  /** @enum {string} */
1002
1621
  type: "checkbox";
1003
1622
  value?: unknown;
1623
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1004
1624
  } | {
1005
1625
  label: {
1006
1626
  [key: string]: string;
1007
1627
  };
1008
1628
  name: string;
1009
1629
  options: components["schemas"]["FileOptions"];
1010
- required: boolean;
1630
+ requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1011
1631
  /** @enum {string} */
1012
1632
  type: "file";
1013
1633
  value?: unknown;
1634
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1014
1635
  } | {
1015
1636
  label: {
1016
1637
  [key: string]: string;
@@ -1023,14 +1644,70 @@ export interface components {
1023
1644
  };
1024
1645
  };
1025
1646
  options: components["schemas"]["SelectOptions"];
1026
- required: boolean;
1647
+ requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1027
1648
  /** @enum {string} */
1028
1649
  type: "select";
1029
1650
  value?: unknown;
1651
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1652
+ } | {
1653
+ label: {
1654
+ [key: string]: string;
1655
+ };
1656
+ name: string;
1657
+ options: unknown;
1658
+ requiredWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1659
+ /** @enum {string} */
1660
+ type: "place";
1661
+ value?: unknown;
1662
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1030
1663
  };
1031
1664
  InputFieldOptions: components["schemas"]["FileOptions"] | components["schemas"]["SelectOptions"] | unknown;
1032
1665
  /** @enum {string} */
1033
- InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select";
1666
+ InputFieldType: "date" | "text" | "textarea" | "checkbox" | "file" | "select" | "place";
1667
+ /** @description Input image for document scanning. */
1668
+ InputImage: {
1669
+ pageIndex: components["schemas"]["InputImagePageIndex"];
1670
+ /** @description Image source identifier */
1671
+ source: string;
1672
+ /** @description Base64-encoded image data */
1673
+ value: string;
1674
+ };
1675
+ /**
1676
+ * @description Page index for input images.
1677
+ *
1678
+ * Serialized as camelCase strings for frontend compatibility:
1679
+ * "front" and "back".
1680
+ * @enum {string}
1681
+ */
1682
+ InputImagePageIndex: "front" | "back";
1683
+ KybActivityLogEntry: {
1684
+ /** Format: uuid */
1685
+ actorIdentityId?: string | null;
1686
+ actorIdentityZid?: string | null;
1687
+ /** Format: date-time */
1688
+ createdAt?: string | null;
1689
+ details: unknown;
1690
+ eventType: string;
1691
+ /** Format: uuid */
1692
+ id: string;
1693
+ /** Format: uuid */
1694
+ kybResultId: string;
1695
+ };
1696
+ KybCommunication: {
1697
+ body: string;
1698
+ /** Format: uuid */
1699
+ documentRequestId?: string | null;
1700
+ /** Format: uuid */
1701
+ id: string;
1702
+ /** Format: uuid */
1703
+ kybResultId: string;
1704
+ recipientEmail: string;
1705
+ /** Format: uuid */
1706
+ senderIdentityId: string;
1707
+ /** Format: date-time */
1708
+ sentAt?: string | null;
1709
+ subject: string;
1710
+ };
1034
1711
  KybConfig: {
1035
1712
  articlesOfAssociation?: components["schemas"]["DocumentConfig"] | null;
1036
1713
  certificateOfIncorporation?: components["schemas"]["DocumentConfig"] | null;
@@ -1066,8 +1743,62 @@ export interface components {
1066
1743
  maxUbos: number;
1067
1744
  organizationalStructureChart?: components["schemas"]["DocumentConfig"] | null;
1068
1745
  };
1746
+ KybDocumentRequest: {
1747
+ /** @description Clarification field keys requested for review (for clarification requests only). */
1748
+ clarificationFields?: string[] | null;
1749
+ clarificationResponse?: components["schemas"]["BusinessInformationClarificationResponse"] | null;
1750
+ /** Format: date-time */
1751
+ createdAt?: string | null;
1752
+ description?: string | null;
1753
+ documentName: string;
1754
+ /** @description Per-field review statuses for clarification requests.
1755
+ * Keys are field names (e.g. "companyName"), values are the review status for that field. */
1756
+ fieldStatuses?: {
1757
+ [key: string]: components["schemas"]["FieldReviewStatus"];
1758
+ } | null;
1759
+ /** Format: date-time */
1760
+ fulfilledAt?: string | null;
1761
+ /** Format: uuid */
1762
+ id: string;
1763
+ /** Format: uuid */
1764
+ kybResultId: string;
1765
+ presignedUrl?: string | null;
1766
+ /** @description Snapshot of old business information field values before the client submitted updated values.
1767
+ * Keys are field names, values are the previous string values. */
1768
+ previousValues?: {
1769
+ [key: string]: string;
1770
+ } | null;
1771
+ requestType: components["schemas"]["KybDocumentRequestType"];
1772
+ /** Format: uuid */
1773
+ requestedByIdentityId: string;
1774
+ reviewReason?: components["schemas"]["KybDocumentReviewReason"] | null;
1775
+ status: components["schemas"]["KybDocumentRequestStatus"];
1776
+ /** Format: date-time */
1777
+ updatedAt?: string | null;
1778
+ uploadedFilename?: string | null;
1779
+ uploadedS3Key?: string | null;
1780
+ };
1781
+ /** @enum {string} */
1782
+ KybDocumentRequestStatus: "PENDING" | "UPLOADED" | "APPROVED" | "REJECTED";
1783
+ /**
1784
+ * @description The type of a KYB document request.
1785
+ *
1786
+ * - `Standard` — operator requests a named document (e.g. certificate of incorporation). The client uploads a file.
1787
+ * - `Clarification` — operator requests the client to re-confirm or update specific business information fields.
1788
+ * Supports per-field review via `field_statuses`.
1789
+ * @enum {string}
1790
+ */
1791
+ KybDocumentRequestType: "STANDARD" | "CLARIFICATION";
1792
+ KybDocumentReviewReason: string | components["schemas"]["BusinessInformationClarificationResponse"];
1069
1793
  KybResult: {
1794
+ /** Format: date-time */
1795
+ assignedAt?: string | null;
1796
+ /** Format: uuid */
1797
+ assignedToIdentityId?: string | null;
1070
1798
  businessInformation?: components["schemas"]["BusinessInformation"] | null;
1799
+ businessInformationVerification?: {
1800
+ [key: string]: components["schemas"]["BusinessInfoFieldVerification"];
1801
+ } | null;
1071
1802
  /** Format: date-time */
1072
1803
  createdAt?: string | null;
1073
1804
  directorDefinitions?: components["schemas"]["DirectorDefinition"][] | null;
@@ -1075,8 +1806,11 @@ export interface components {
1075
1806
  flowStep?: Omit<components["schemas"]["FlowStep"], "type"> | null;
1076
1807
  /** Format: uuid */
1077
1808
  flowStepId?: string | null;
1809
+ /** Format: date-time */
1810
+ fundedAt?: string | null;
1078
1811
  /** Format: uuid */
1079
1812
  id: string;
1813
+ nextAction?: components["schemas"]["NextAction"] | null;
1080
1814
  pepAndSanctionsStatus: components["schemas"]["PepAndSanctionsStatus"];
1081
1815
  reason?: string | null;
1082
1816
  report?: string | null;
@@ -1087,6 +1821,87 @@ export interface components {
1087
1821
  /** Format: uuid */
1088
1822
  verificationRequestId?: string | null;
1089
1823
  };
1824
+ /** @description KYB (Know Your Business) step output for workflow decisions. */
1825
+ KybStepOutput: {
1826
+ businessName?: string | null;
1827
+ country?: string | null;
1828
+ moderationStatus?: components["schemas"]["ModerationResultStatus"] | null;
1829
+ pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatus"] | null;
1830
+ registrationNumber?: string | null;
1831
+ status: components["schemas"]["ResultStatus"];
1832
+ };
1833
+ /** @enum {string} */
1834
+ Likelihood: "No Match" | "Very Low" | "low" | "medium" | "high" | "Very High" | "Exact Match";
1835
+ ListAllFlowResultsResponse: {
1836
+ page: components["schemas"]["FlowResult"][];
1837
+ /** Format: int64 */
1838
+ totalCount: number;
1839
+ };
1840
+ ListAllUsersResponse: {
1841
+ page: components["schemas"]["Identity"][];
1842
+ /** Format: int64 */
1843
+ totalCount: number;
1844
+ };
1845
+ ListOrganizationApiKeysResponse: {
1846
+ page: components["schemas"]["ZypheApiKey"][];
1847
+ /** Format: int64 */
1848
+ totalCount: number;
1849
+ };
1850
+ ListOrganizationFlowResultHistoryResponse: {
1851
+ page: components["schemas"]["VerificationRequest"][];
1852
+ /** Format: int64 */
1853
+ totalCount: number;
1854
+ };
1855
+ ListOrganizationFlowResultsResponse: {
1856
+ page: components["schemas"]["FlowResult"][];
1857
+ /** Format: int64 */
1858
+ totalCount: number;
1859
+ };
1860
+ ListOrganizationFlowsResponse: {
1861
+ page: components["schemas"]["Flow"][];
1862
+ /** Format: int64 */
1863
+ totalCount: number;
1864
+ };
1865
+ ListOrganizationFormsResponse: {
1866
+ page: components["schemas"]["Form"][];
1867
+ /** Format: int64 */
1868
+ totalCount: number;
1869
+ };
1870
+ ListOrganizationInvitesResponse: {
1871
+ page: components["schemas"]["OrganizationInvite"][];
1872
+ /** Format: int64 */
1873
+ totalCount: number;
1874
+ };
1875
+ ListOrganizationUsersResponse: {
1876
+ page: components["schemas"]["Identity"][];
1877
+ /** Format: int64 */
1878
+ totalCount: number;
1879
+ };
1880
+ ListOrganizationVerificationRequestsResponse: {
1881
+ page: components["schemas"]["VerificationRequest"][];
1882
+ /** Format: int64 */
1883
+ totalCount: number;
1884
+ };
1885
+ ListOrganizationsResponse: {
1886
+ page: components["schemas"]["Organization"][];
1887
+ /** Format: int64 */
1888
+ totalCount: number;
1889
+ };
1890
+ ListScreeningDetailsResponse: {
1891
+ page: components["schemas"]["MatchReportData"][];
1892
+ /** Format: int64 */
1893
+ totalCount: number;
1894
+ };
1895
+ ListSharedKycResultsResponse: {
1896
+ page: components["schemas"]["FlowResult"][];
1897
+ /** Format: int64 */
1898
+ totalCount: number;
1899
+ };
1900
+ ListUserInvitesResponse: {
1901
+ page: components["schemas"]["OrganizationInvite"][];
1902
+ /** Format: int64 */
1903
+ totalCount: number;
1904
+ };
1090
1905
  LivenessConfig: {
1091
1906
  /** @description When `true` the liveness step also performs a biometric match against the stored portrait.
1092
1907
  * Set to `false` to keep the liveness UX but skip biometric verification. */
@@ -1102,17 +1917,60 @@ export interface components {
1102
1917
  * @example 5
1103
1918
  */
1104
1919
  maxAttempts?: number | null;
1920
+ /** @description When `true`, passive liveness (selfie-only, no head movements) is used instead
1921
+ * of active challenge-based liveness. Configured by admin only. Defaults to `false`. */
1922
+ passiveLiveness?: boolean;
1923
+ performAntispoof?: boolean | null;
1105
1924
  thresholds?: {
1106
1925
  [key: string]: number;
1107
1926
  } | null;
1108
1927
  };
1109
1928
  /** @enum {string} */
1110
1929
  LivenessConfigThreshold: "portraitMatchPercent" | "biometricMatchPercent";
1930
+ /** @description Liveness check step output for workflow decisions. */
1931
+ LivenessStepOutput: {
1932
+ status: components["schemas"]["ResultStatus"];
1933
+ };
1934
+ LivenessUploadUrl: {
1935
+ presignedUrl: string;
1936
+ s3Key: string;
1937
+ };
1111
1938
  /**
1112
1939
  * @description Locale identifier
1113
1940
  * @enum {string}
1114
1941
  */
1115
1942
  Locale: "en" | "it" | "de" | "es" | "fr" | "hi" | "id" | "pt";
1943
+ /**
1944
+ * @description Logical operators for workflow branching.
1945
+ * @enum {string}
1946
+ */
1947
+ LogicalOperator: "BRANCH" | "SWITCH" | "MERGE" | "PARALLEL_SPLIT" | "PARALLEL_JOIN";
1948
+ /** @enum {string} */
1949
+ ManualReviewResultStatus: "approved" | "rejected" | "failed";
1950
+ MatchDetail: {
1951
+ internalInfo?: string | null;
1952
+ matchCriteria?: string | null;
1953
+ /** Format: int32 */
1954
+ matchCriteriaNumeric?: number | null;
1955
+ matchedEntity?: string | null;
1956
+ };
1957
+ MatchReportData: {
1958
+ category?: string | null;
1959
+ database?: string | null;
1960
+ description?: string | null;
1961
+ entity_id?: string | null;
1962
+ entity_name?: string | null;
1963
+ likelihood?: components["schemas"]["Likelihood"] | null;
1964
+ mapped_entity_details?: components["schemas"]["ScreeningDetailsMappedEntityDetails"] | null;
1965
+ match_id?: string | null;
1966
+ match_level?: string | null;
1967
+ references?: string[] | null;
1968
+ /** Format: double */
1969
+ score?: number | null;
1970
+ sources?: string[] | null;
1971
+ sub_category?: string | null;
1972
+ updated_date?: string | null;
1973
+ };
1116
1974
  ModerateKybResultPayload: {
1117
1975
  pepAndSanctionsStatus?: components["schemas"]["PepAndSanctionsStatusField"] | null;
1118
1976
  /** Format: binary */
@@ -1125,37 +1983,25 @@ export interface components {
1125
1983
  /** @enum {string} */
1126
1984
  ModerationResultStatus: "ACQUIRING" | "PENDING_MODERATION" | "REVIEW_REQUIRED" | "SUCCESS" | "FAILED";
1127
1985
  ModerationResultStatusField: components["schemas"]["ModerationResultStatus"];
1128
- OrchestratorCondition: {
1129
- /** @description Country codes to match (ISO Alpha-2), or ["*"] for any */
1130
- countryCodes: string[];
1131
- /** @description Document types to match, or None for any */
1132
- documentTypes?: components["schemas"]["OrchestratorDocumentType"][] | null;
1133
- /**
1134
- * Format: uuid
1135
- * @description Target flow ID to redirect to
1136
- */
1137
- targetFlowId: string;
1138
- };
1139
- OrchestratorConfig: {
1140
- /** @description Whether to collect document type from user (required field for untagged deserialization) */
1141
- collectDocumentType: boolean;
1142
- /** @description Ordered list of conditions (first match wins) */
1143
- conditions?: components["schemas"]["OrchestratorCondition"][];
1986
+ /** @enum {string} */
1987
+ NextAction: "CLIENT" | "RM" | "COMPLIANCE" | "SUPPORT" | "FUNDED" | "DENIED";
1988
+ /** @description Position of a node in the visual editor. */
1989
+ NodePosition: {
1144
1990
  /**
1145
- * Format: uuid
1146
- * @description Default fallback flow ID if no conditions match (the "else" case)
1991
+ * Format: double
1992
+ * @description X coordinate
1147
1993
  */
1148
- defaultFlowId?: string | null;
1994
+ x: number;
1149
1995
  /**
1150
- * @description UI labels
1151
- * @example { "en_title": "Select your country" }
1996
+ * Format: double
1997
+ * @description Y coordinate
1152
1998
  */
1153
- labels?: {
1154
- [key: string]: string;
1155
- };
1999
+ y: number;
2000
+ };
2001
+ NormalizedEmail: {
2002
+ /** @example user@example.com */
2003
+ value: string;
1156
2004
  };
1157
- /** @enum {string} */
1158
- OrchestratorDocumentType: "ID_CARD" | "DRIVER_LICENSE" | "PASSPORT";
1159
2005
  Organization: {
1160
2006
  address: string;
1161
2007
  country: string;
@@ -1175,6 +2021,42 @@ export interface components {
1175
2021
  updatedAt?: string | null;
1176
2022
  website: string;
1177
2023
  };
2024
+ OrganizationInvite: {
2025
+ /** Format: date-time */
2026
+ createdAt?: string | null;
2027
+ email: string;
2028
+ /** Format: uuid */
2029
+ id: string;
2030
+ inviter?: components["schemas"]["OrganizationInviterInfo"] | null;
2031
+ /** Format: uuid */
2032
+ organizationId: string;
2033
+ revoked?: boolean | null;
2034
+ /** Format: date-time */
2035
+ revokedAt?: string | null;
2036
+ role: components["schemas"]["Role"];
2037
+ used: boolean;
2038
+ /** Format: date-time */
2039
+ validBefore: string;
2040
+ };
2041
+ OrganizationInviterInfo: {
2042
+ email?: string | null;
2043
+ role: components["schemas"]["Role"];
2044
+ };
2045
+ PagedActivityLogResponse: {
2046
+ page: components["schemas"]["KybActivityLogEntry"][];
2047
+ /** Format: int64 */
2048
+ totalCount: number;
2049
+ };
2050
+ PagedCommunicationsResponse: {
2051
+ page: components["schemas"]["KybCommunication"][];
2052
+ /** Format: int64 */
2053
+ totalCount: number;
2054
+ };
2055
+ PagedDocumentRequestsResponse: {
2056
+ page: components["schemas"]["KybDocumentRequest"][];
2057
+ /** Format: int64 */
2058
+ totalCount: number;
2059
+ };
1178
2060
  Pagination: {
1179
2061
  /** @example createdAt:in:2025-01-01,2025-01-02;updatedAt:gt:2025-01-02 */
1180
2062
  filter?: string;
@@ -1226,10 +2108,14 @@ export interface components {
1226
2108
  /** Format: uuid */
1227
2109
  verificationRequestId?: string | null;
1228
2110
  };
2111
+ PhoneStepOutput: {
2112
+ status: components["schemas"]["ResultStatus"];
2113
+ };
1229
2114
  Plaintext: {
1230
2115
  text: {
1231
2116
  [key: string]: string;
1232
2117
  };
2118
+ visibleWhen?: Omit<components["schemas"]["Condition"], "op"> | null;
1233
2119
  };
1234
2120
  PoaConfig: {
1235
2121
  documentFilter: components["schemas"]["PoaDocumentType"][];
@@ -1267,6 +2153,67 @@ export interface components {
1267
2153
  /** Format: uuid */
1268
2154
  verificationRequestId?: string | null;
1269
2155
  };
2156
+ PoaStepOutput: {
2157
+ /** Format: int64 */
2158
+ documentAgeDays?: number | null;
2159
+ documentType?: string | null;
2160
+ status: components["schemas"]["ResultStatus"];
2161
+ };
2162
+ /** @description Typed representation of process_additional_data stored in DV results.
2163
+ *
2164
+ * This struct captures all the additional data associated with document
2165
+ * verification processing, including document scan status, image quality
2166
+ * checks, security checks, and liveness data.
2167
+ *
2168
+ * # Deserialization
2169
+ *
2170
+ * Supports both new abstract format and legacy Regula format. The main difference
2171
+ * is in the `imageQuality` field:
2172
+ *
2173
+ * **New format:**
2174
+ * ```json
2175
+ * {
2176
+ * "imageQuality": [
2177
+ * { "checkType": "focus", "result": "passed", "probability": 97 }
2178
+ * ]
2179
+ * }
2180
+ * ```
2181
+ *
2182
+ * **Legacy Regula format:**
2183
+ * ```json
2184
+ * {
2185
+ * "imageQuality": [
2186
+ * {
2187
+ * "count": 6,
2188
+ * "list": [
2189
+ * { "type": 1, "result": 0, "probability": 97, ... }
2190
+ * ],
2191
+ * "result": 0
2192
+ * }
2193
+ * ]
2194
+ * }
2195
+ * ``` */
2196
+ ProcessAdditionalData: {
2197
+ autoOneClickKycData?: components["schemas"]["AutoOneClickKycData"] | null;
2198
+ /** @description Biometric check data (for face matching results) */
2199
+ biometricCheckData?: unknown;
2200
+ /**
2201
+ * Format: date
2202
+ * @description Date on which a DocumentExpired webhook was last sent for this DV result.
2203
+ * Used by the AML worker to deduplicate repeated expiry notifications across
2204
+ * refresh ticks — once set, the webhook is not re-enqueued.
2205
+ */
2206
+ documentExpiredWebhookSentAt?: string | null;
2207
+ /** @description Image quality check results */
2208
+ imageQuality?: components["schemas"]["ImageQualityCheckResult"][] | null;
2209
+ /** @description Raw liveness data from face verification */
2210
+ rawLivenessData?: unknown;
2211
+ /** @description Security check results (mapped by check type) */
2212
+ securityChecks?: {
2213
+ [key: string]: string;
2214
+ } | null;
2215
+ status?: components["schemas"]["DocumentScanStatus"] | null;
2216
+ };
1270
2217
  ProcessAddressDocumentRequest: {
1271
2218
  /** Format: binary */
1272
2219
  file: Blob;
@@ -1276,6 +2223,48 @@ export interface components {
1276
2223
  /** Format: uuid */
1277
2224
  verificationRequestId: string;
1278
2225
  };
2226
+ ProcessDocumentSelectionPayload: {
2227
+ /** @description ISO 3166-1 alpha-2 country code of the document to be verified (e.g. `"US"`, `"GB"`). Optional — omit to allow any country. */
2228
+ country?: string | null;
2229
+ /**
2230
+ * Format: int64
2231
+ * @description Numeric document type identifier. Optional — omit to allow any document type.
2232
+ */
2233
+ documentType?: number | null;
2234
+ };
2235
+ ProcessDocumentSelectionResponse: {
2236
+ /**
2237
+ * Format: uuid
2238
+ * @description The ID of the verification request that was updated.
2239
+ */
2240
+ verificationRequestId: string;
2241
+ };
2242
+ ProcessIdentityDocumentPayload: {
2243
+ allowedDocumentTypes?: number[];
2244
+ browser?: string | null;
2245
+ countryCode: string;
2246
+ /** Format: int64 */
2247
+ forceDocumentType?: number | null;
2248
+ /** @description Images to process (base64-encoded, provider-agnostic format).
2249
+ * Either images OR (session_token + interview_id) must be provided, not both. */
2250
+ images?: components["schemas"]["InputImage"][];
2251
+ /** @description Interview/session ID for session-based providers (e.g. Incode).
2252
+ * If provided along with session_token, the backend will fetch results from the provider. */
2253
+ interviewId?: string | null;
2254
+ platform?: string | null;
2255
+ provinceCode?: string | null;
2256
+ requiredDocumentFields?: {
2257
+ [key: string]: string;
2258
+ };
2259
+ /** @description Session token for session-based providers (e.g. Incode JWT).
2260
+ * If provided along with interview_id, the backend will fetch results from the provider. */
2261
+ sessionToken?: string | null;
2262
+ };
2263
+ ProcessIdentityDocumentResponse: {
2264
+ jobId: string;
2265
+ /** Format: uuid */
2266
+ verificationRequestId: string;
2267
+ };
1279
2268
  ProcessImagesOverrides: {
1280
2269
  authParams?: {
1281
2270
  [key: string]: unknown;
@@ -1283,8 +2272,19 @@ export interface components {
1283
2272
  checkAuth?: boolean | null;
1284
2273
  scenario?: string | null;
1285
2274
  };
2275
+ ProcessLivenessPayload: {
2276
+ /** Format: uuid */
2277
+ challengeId: string;
2278
+ /** Format: int32 */
2279
+ movementImagesQuantity: number;
2280
+ };
2281
+ ProcessLivenessResponse: {
2282
+ jobId: string;
2283
+ /** Format: uuid */
2284
+ verificationRequestId: string;
2285
+ };
1286
2286
  /** @enum {string} */
1287
- ProductType: "UNKNOWN" | "KYC" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION";
2287
+ ProductType: "UNKNOWN" | "DOCSCAN" | "LIVENESS" | "POA" | "KYB" | "KYC_PASSPORT" | "SPID" | "PHONE" | "WALLET" | "EXPORT_API" | "EXPORT_UI" | "BUSINESS_VERIFICATION" | "FLOW_BUILDER" | "GEOLOCATION" | "FORM";
1288
2288
  /** @enum {string} */
1289
2289
  RequiredDocumentField: "firstName" | "middleName" | "lastName" | "dateOfBirth" | "phone" | "email" | "street" | "city" | "state" | "postcode" | "country" | "socialSecurityNumber";
1290
2290
  ResultControlOperation: {
@@ -1310,6 +2310,11 @@ export interface components {
1310
2310
  };
1311
2311
  /** @enum {string} */
1312
2312
  ResultStatus: "PASSED" | "FAILED" | "PARTIAL" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW";
2313
+ ReviewSuggestion: {
2314
+ /** Format: double */
2315
+ confidence: number;
2316
+ suggestion: components["schemas"]["ManualReviewResultStatus"];
2317
+ };
1313
2318
  /** @enum {string} */
1314
2319
  RiskLevel: "low" | "medium" | "high" | "critical";
1315
2320
  RiskScore: {
@@ -1319,23 +2324,65 @@ export interface components {
1319
2324
  sourcesCount: number;
1320
2325
  };
1321
2326
  /** @enum {string} */
1322
- Role: "ANONYMOUS" | "GUEST" | "USER" | "ADMIN" | "SDK";
2327
+ Role: "ANONYMOUS" | "GUEST" | "ORG_ADMIN" | "ORG_OPERATOR" | "ORG_DEVELOPER" | "AML_OFFICER" | "PARTNER_USER" | "PLATFORM_OPERATOR" | "PLATFORM_SALES" | "PLATFORM_ADMIN" | "SDK";
2328
+ /** @description Rotation thresholds (in degrees) for head movement verification */
2329
+ RotationThresholds: {
2330
+ /** Format: float */
2331
+ down: number;
2332
+ /** Format: float */
2333
+ left: number;
2334
+ /** Format: float */
2335
+ right: number;
2336
+ /** Format: float */
2337
+ up: number;
2338
+ };
2339
+ ScreeningDetailsMappedEntityDetails: {
2340
+ addressLine1?: components["schemas"]["MatchDetail"] | null;
2341
+ city?: components["schemas"]["MatchDetail"] | null;
2342
+ country?: components["schemas"]["MatchDetail"] | null;
2343
+ dateOfBirth?: components["schemas"]["MatchDetail"] | null;
2344
+ firstName?: components["schemas"]["MatchDetail"] | null;
2345
+ id?: components["schemas"]["MatchDetail"] | null;
2346
+ lastName?: components["schemas"]["MatchDetail"] | null;
2347
+ middleName?: components["schemas"]["MatchDetail"] | null;
2348
+ passportNumber?: components["schemas"]["MatchDetail"] | null;
2349
+ postalCode?: components["schemas"]["MatchDetail"] | null;
2350
+ };
1323
2351
  SdkCreateVerificationRequestPayload: {
2352
+ /** @description Arbitrary key-value metadata to attach to this verification request. */
1324
2353
  customData?: {
1325
2354
  [key: string]: unknown;
1326
2355
  } | null;
2356
+ /** @description Email address of the user being verified. */
1327
2357
  email: string;
1328
- /** Format: uuid */
2358
+ /**
2359
+ * Format: uuid
2360
+ * @description The ID of the flow step to start or resume for this user.
2361
+ */
1329
2362
  flowStepId: string;
1330
2363
  };
1331
2364
  SdkCreateVerificationRequestResponse: {
1332
- email: string;
2365
+ /** @description The email address associated with the verified user's identity, if available. */
2366
+ email?: string | null;
2367
+ /** @description Slug of the flow this verification request belongs to. */
1333
2368
  flowSlug: string;
2369
+ /** @description Slug of the current flow step (the first incomplete step). */
1334
2370
  flowStepSlug: string;
2371
+ /** @description Whether this verification request was created in sandbox mode. */
1335
2372
  isSandbox: boolean;
1336
2373
  verificationRequest: components["schemas"]["VerificationRequest"];
2374
+ /** @description Zyphe user identifier (ZID) for the verified user. */
2375
+ zid: string;
2376
+ /** @description Short-lived signed access token used to authenticate subsequent SDK calls on behalf of this user. */
2377
+ zypheAccessSig: string;
2378
+ /** @description JWT for the verified user's session. Pass this as a bearer token for user-scoped SDK calls. */
1337
2379
  zypheToken: string;
1338
2380
  };
2381
+ /**
2382
+ * @description Canonical security/authenticity check types.
2383
+ * @enum {string}
2384
+ */
2385
+ SecurityCheckType: "uv_luminescence" | "ir_b900" | "image_pattern" | "axial_protection" | "uv_fibers" | "ir_visibility" | "ocr_security_text" | "ipi" | "photo_embedding" | "photo_area" | "portrait_comparison" | "holograms" | "kinegram" | "letter_screen" | "barcode" | "mrz" | "extended_mrz" | "extended_ocr" | "liveness" | "electronic_device" | "black_and_white_copy" | "unknown";
1339
2386
  SelectOptions: {
1340
2387
  isOtherAllowed: boolean;
1341
2388
  values: string[];
@@ -1343,13 +2390,20 @@ export interface components {
1343
2390
  Settings: {
1344
2391
  /** Format: date-time */
1345
2392
  createdAt?: string | null;
2393
+ delayFlowResults?: boolean | null;
2394
+ emailNotifications?: string[] | null;
1346
2395
  extendedWebhook?: boolean | null;
1347
2396
  primaryColor?: string | null;
1348
2397
  profileImage?: string | null;
2398
+ published?: boolean;
1349
2399
  secondaryColor?: string | null;
2400
+ skipSignedAccess?: boolean;
2401
+ slackNotifications?: string[] | null;
2402
+ telegramNotifications?: string[] | null;
1350
2403
  /** Format: date-time */
1351
2404
  updatedAt?: string | null;
1352
2405
  webhookSecret?: string | null;
2406
+ webhookWithLegacy?: boolean | null;
1353
2407
  };
1354
2408
  /** @enum {string} */
1355
2409
  SiwxChain: "ETHEREUM" | "ETHEREUM_TESTNET" | "SOLANA" | "SOLANA_TESTNET";
@@ -1359,6 +2413,8 @@ export interface components {
1359
2413
  [key: string]: string;
1360
2414
  };
1361
2415
  };
2416
+ /** @enum {string} */
2417
+ SpidDocumentType: "ITALIAN_SPID" | "AADHAAR";
1362
2418
  SpidResult: {
1363
2419
  /** Format: date-time */
1364
2420
  createdAt?: string | null;
@@ -1395,6 +2451,15 @@ export interface components {
1395
2451
  spidCode?: string | null;
1396
2452
  username?: string | null;
1397
2453
  };
2454
+ SpidStepOutput: {
2455
+ status: components["schemas"]["ResultStatus"];
2456
+ };
2457
+ StartGeolocationVerificationRequest: Record<string, never>;
2458
+ StartGeolocationVerificationResponse: {
2459
+ nonce: string;
2460
+ /** Format: uuid */
2461
+ verificationRequestId: string;
2462
+ };
1398
2463
  StartPhoneVerificationRequest: {
1399
2464
  phoneNumberE164: string;
1400
2465
  };
@@ -1425,7 +2490,7 @@ export interface components {
1425
2490
  */
1426
2491
  Uuid: string;
1427
2492
  /** @enum {string} */
1428
- ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control" | "validation_emails_empty" | "validation_email_invalid" | "validation_emails_too_many" | "validation_emails_duplicate" | "validation_invite_to_self" | "validation_e164_format" | "validation_flow_step_already_has_reference" | "validation_flow_not_found" | "validation_empty_parameter" | "validation_form_not_found";
2493
+ ValidationMessages: "validation_unexpected" | "validation_invalid_file_format" | "validation_organization_slug_exists" | "validation_flow_slug_exists" | "validation_flow_id_mismatch" | "validation_flow_step_name_exists" | "validation_consents_not_granted" | "validation_kyb_config_match" | "validation_kyb_config_already_uses_this_kyc_flow_id" | "validation_kyb_moderation_status_wrong" | "validation_form_name_exists" | "validation_database_error" | "validation_flow_name_invalid" | "validation_flow_slug_name_invalid" | "validation_flow_step_name_invalid" | "validation_flow_step_order_duplicate" | "validation_flow_step_order_invalid" | "validation_flow_step_id_mismatch" | "validation_password_too_short" | "validation_password_no_uppercase" | "validation_password_no_lowercase" | "validation_password_no_number" | "validation_password_no_special_character" | "validation_password_contains_whitespace_or_control" | "validation_emails_empty" | "validation_email_invalid" | "validation_emails_too_many" | "validation_emails_duplicate" | "validation_invite_to_self" | "validation_e164_format" | "validation_flow_step_already_has_reference" | "validation_flow_not_found" | "validation_empty_parameter" | "validation_form_not_found" | "validation_organization_not_found" | "validation_workflow_graph_invalid" | "validation_invalid_role_for_invitation" | "validation_form_condition_forward_ref";
1429
2494
  VaultUnlockPasskeyData: {
1430
2495
  /** @description Passkey challenge for vault unlock (base64url) */
1431
2496
  challenge: string;
@@ -1452,6 +2517,7 @@ export interface components {
1452
2517
  /** Format: uuid */
1453
2518
  flowStepId: string;
1454
2519
  formResult?: components["schemas"]["FormResult"] | null;
2520
+ geolocationResult?: components["schemas"]["GeolocationResult"] | null;
1455
2521
  /** Format: uuid */
1456
2522
  id: string;
1457
2523
  identity?: components["schemas"]["Identity"] | null;
@@ -1472,6 +2538,21 @@ export interface components {
1472
2538
  };
1473
2539
  /** @enum {string} */
1474
2540
  VerificationRequestStatus: "PENDING" | "COMPLETED" | "FAILED" | "CANCELLED" | "QUEUED" | "PROCESSING" | "REQUIRES_MANUAL_REVIEW" | "REQUIRES_ADMIN_REVIEW" | "REJECTED";
2541
+ VerifyGeolocationProofRequest: {
2542
+ cloudflareTrace?: components["schemas"]["CloudflareTracePayload"] | null;
2543
+ coords: components["schemas"]["GeolocationCoordinates"];
2544
+ deviceFingerprint: string;
2545
+ isSecureContext: boolean;
2546
+ nonce: string;
2547
+ permissionStatus: string;
2548
+ rtcCandidates: string[];
2549
+ /** Format: int64 */
2550
+ timestamp: number;
2551
+ };
2552
+ VerifyGeolocationProofResponse: {
2553
+ /** Format: uuid */
2554
+ verificationRequestId: string;
2555
+ };
1475
2556
  VerifyPhoneCodeRequest: {
1476
2557
  code: string;
1477
2558
  phoneNumberE164: string;
@@ -1517,6 +2598,188 @@ export interface components {
1517
2598
  walletAddress: string;
1518
2599
  walletChain: string;
1519
2600
  };
2601
+ WalletStepOutput: {
2602
+ status: components["schemas"]["ResultStatus"];
2603
+ };
2604
+ /** @description Context data available to JDM rules during flow evaluation.
2605
+ *
2606
+ * This structure is serialized to JSON and passed to the Zen Engine for evaluation.
2607
+ * JDM rules can access any field to make routing decisions.
2608
+ *
2609
+ * # Example JDM Access Patterns
2610
+ *
2611
+ * In JDM rules, you can access:
2612
+ * - `identity.email` - User's email address
2613
+ * - `jdmData.my_step_slug.data.issuingCountry` - Output from a previous step
2614
+ * - `customData.someKey` - Custom data passed during flow
2615
+ *
2616
+ * # Serialization
2617
+ *
2618
+ * Fields are serialized with camelCase naming to match JDM conventions. */
2619
+ WorkflowContext: {
2620
+ /** @description AML screening results */
2621
+ amlResults: components["schemas"]["AmlResult"][];
2622
+ /** @description Custom data passed during flow execution */
2623
+ customData: {
2624
+ [key: string]: unknown;
2625
+ };
2626
+ /** @description Document verification results */
2627
+ dvResults: components["schemas"]["DvResult"][];
2628
+ /** @description Form submission results */
2629
+ formResults: components["schemas"]["FormResult"][];
2630
+ identity?: components["schemas"]["Identity"] | null;
2631
+ /** @description Structured data from previous step executions for JDM consumption */
2632
+ jdmData?: {
2633
+ [key: string]: components["schemas"]["FlowStepOutput"];
2634
+ };
2635
+ /** @description KYB verification results */
2636
+ kybResults: components["schemas"]["KybResult"][];
2637
+ /** @description Phone verification results */
2638
+ phoneResults: components["schemas"]["PhoneResult"][];
2639
+ /** @description Proof of address results */
2640
+ poaResults: components["schemas"]["PoaResult"][];
2641
+ /** @description SPID verification results */
2642
+ spidResults: components["schemas"]["SpidResult"][];
2643
+ /** @description Wallet verification results */
2644
+ walletResults: components["schemas"]["WalletResult"][];
2645
+ };
2646
+ /** @description An edge connecting two nodes in the workflow graph.
2647
+ *
2648
+ * Edges represent the flow of control between nodes.
2649
+ * For conditional branching (from Operator nodes), edges can have labels
2650
+ * like "true" or "false" to indicate which path to take. */
2651
+ WorkflowEdge: {
2652
+ /**
2653
+ * Format: uuid
2654
+ * @description Unique identifier for this edge.
2655
+ */
2656
+ id: string;
2657
+ /** @description Optional label for conditional edges.
2658
+ *
2659
+ * For edges from Branch operator nodes:
2660
+ * - "true": taken when condition evaluates to true
2661
+ * - "false": taken when condition evaluates to false */
2662
+ label?: string | null;
2663
+ /**
2664
+ * Format: uuid
2665
+ * @description The ID of the source node (where this edge starts).
2666
+ */
2667
+ sourceId: string;
2668
+ /**
2669
+ * Format: uuid
2670
+ * @description The ID of the target node (where this edge ends).
2671
+ */
2672
+ targetId: string;
2673
+ };
2674
+ /** @description Result of a workflow evaluation.
2675
+ *
2676
+ * The Zen Engine returns this structure after evaluating a JDM against a context.
2677
+ * The `next_step_slug` field determines which flow step to execute next. */
2678
+ WorkflowEvaluationResult: unknown & {
2679
+ /** @description Slug of the next step to execute.
2680
+ * If None, the flow continues with linear order or completes. */
2681
+ nextStepSlug?: string | null;
2682
+ };
2683
+ /** @description A workflow graph consisting of nodes and edges.
2684
+ *
2685
+ * The graph defines the structure of a workflow:
2686
+ * - One Start node where execution begins
2687
+ * - One or more End nodes where execution terminates
2688
+ * - Step nodes representing actual workflow steps
2689
+ * - Operator nodes for conditional branching
2690
+ * - Edges connecting nodes together */
2691
+ WorkflowGraph: {
2692
+ /** @description All edges connecting nodes. */
2693
+ edges?: components["schemas"]["WorkflowEdge"][];
2694
+ /** @description All nodes in the graph. */
2695
+ nodes?: components["schemas"]["WorkflowNode"][];
2696
+ };
2697
+ /** @description A node in the workflow graph.
2698
+ *
2699
+ * Nodes represent different types of elements in a workflow:
2700
+ * - `Start`: The entry point of the workflow
2701
+ * - `End`: A terminal point where the workflow completes
2702
+ * - `Step`: A workflow step that executes some action
2703
+ * - `Operator`: A conditional branching point */
2704
+ WorkflowNode: {
2705
+ /**
2706
+ * Format: uuid
2707
+ * @description Unique identifier for this node.
2708
+ */
2709
+ id: string;
2710
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2711
+ /** @enum {string} */
2712
+ type: "START";
2713
+ } | {
2714
+ /**
2715
+ * Format: uuid
2716
+ * @description Unique identifier for this node.
2717
+ */
2718
+ id: string;
2719
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2720
+ /** @enum {string} */
2721
+ type: "END";
2722
+ } | {
2723
+ /**
2724
+ * Format: uuid
2725
+ * @description Unique identifier for this node.
2726
+ */
2727
+ id: string;
2728
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2729
+ /** @description The slug of the flow step this node represents. */
2730
+ stepSlug: string;
2731
+ /** @enum {string} */
2732
+ type: "STEP";
2733
+ } | {
2734
+ /** @description The branches to evaluate (required for Switch operator). */
2735
+ branches?: components["schemas"]["BranchCondition"][] | null;
2736
+ condition?: Omit<components["schemas"]["Condition"], "op"> | null;
2737
+ /**
2738
+ * Format: uuid
2739
+ * @description Unique identifier for this node.
2740
+ */
2741
+ id: string;
2742
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2743
+ operator: components["schemas"]["LogicalOperator"];
2744
+ /** @enum {string} */
2745
+ type: "OPERATOR";
2746
+ } | {
2747
+ config: components["schemas"]["ActionConfig"];
2748
+ /**
2749
+ * Format: uuid
2750
+ * @description Unique identifier for this node.
2751
+ */
2752
+ id: string;
2753
+ metadata?: components["schemas"]["WorkflowNodeMetadata"] | null;
2754
+ /** @enum {string} */
2755
+ type: "ACTION";
2756
+ };
2757
+ /** @description Metadata for a workflow node.
2758
+ *
2759
+ * Contains UI-specific information like position that doesn't affect execution logic. */
2760
+ WorkflowNodeMetadata: {
2761
+ position?: components["schemas"]["NodePosition"] | null;
2762
+ } & {
2763
+ [key: string]: unknown;
2764
+ };
2765
+ /** @description A dynamic value that can be used in workflow conditions and inputs.
2766
+ *
2767
+ * This enum represents all possible value types that can flow through
2768
+ * the workflow engine, including primitives, arrays, and objects.
2769
+ *
2770
+ * # Serialization
2771
+ *
2772
+ * Uses `untagged` serialization to match JSON semantics directly:
2773
+ * - `null` → `Null`
2774
+ * - `true`/`false` → `Bool`
2775
+ * - integers → `Integer`
2776
+ * - floats → `Float`
2777
+ * - strings → `String`
2778
+ * - arrays → `Array`
2779
+ * - objects → `Object` */
2780
+ WorkflowValue: (Record<string, never> | null) | boolean | number | string | components["schemas"]["WorkflowValue"][] | {
2781
+ [key: string]: components["schemas"]["WorkflowValue"];
2782
+ };
1520
2783
  ZypheApiKey: {
1521
2784
  allowedOrigins: string[];
1522
2785
  /** Format: date-time */
@@ -1555,9 +2818,12 @@ export interface operations {
1555
2818
  query: {
1556
2819
  sandbox: boolean;
1557
2820
  locale?: components["schemas"]["Locale"];
2821
+ /** @description Signed access token (JWS). Required only when flow signed access is enabled. */
2822
+ zypheAccessSig?: string | null;
1558
2823
  };
1559
2824
  header?: never;
1560
2825
  path: {
2826
+ /** @description Flow slug */
1561
2827
  slug: string;
1562
2828
  };
1563
2829
  cookie?: never;
@@ -1700,6 +2966,7 @@ export interface operations {
1700
2966
  query: {
1701
2967
  sandbox: boolean;
1702
2968
  locale?: components["schemas"]["Locale"];
2969
+ /** @description Email address of the user whose verification progress should be queried. */
1703
2970
  email: string;
1704
2971
  };
1705
2972
  header?: never;
@@ -1748,6 +3015,182 @@ export interface operations {
1748
3015
  };
1749
3016
  };
1750
3017
  };
3018
+ sdk_process_dv_document: {
3019
+ parameters: {
3020
+ query?: {
3021
+ /** @description Use sandbox environment */
3022
+ sandbox?: boolean | null;
3023
+ };
3024
+ header?: never;
3025
+ path: {
3026
+ /** @description Flow ID */
3027
+ flow_id: string;
3028
+ /** @description Verification Request ID */
3029
+ verification_request_id: string;
3030
+ };
3031
+ cookie?: never;
3032
+ };
3033
+ requestBody: {
3034
+ content: {
3035
+ "application/json": components["schemas"]["ProcessIdentityDocumentPayload"];
3036
+ };
3037
+ };
3038
+ responses: {
3039
+ 202: {
3040
+ headers: {
3041
+ [name: string]: unknown;
3042
+ };
3043
+ content: {
3044
+ "application/json": components["schemas"]["ProcessIdentityDocumentResponse"];
3045
+ };
3046
+ };
3047
+ 400: {
3048
+ headers: {
3049
+ [name: string]: unknown;
3050
+ };
3051
+ content: {
3052
+ "application/json": components["schemas"]["BaxeError"];
3053
+ };
3054
+ };
3055
+ 500: {
3056
+ headers: {
3057
+ [name: string]: unknown;
3058
+ };
3059
+ content: {
3060
+ "application/json": components["schemas"]["BaxeError"];
3061
+ };
3062
+ };
3063
+ };
3064
+ };
3065
+ sdk_get_liveness_challenge: {
3066
+ parameters: {
3067
+ query?: {
3068
+ /** @description Use sandbox environment */
3069
+ sandbox?: boolean | null;
3070
+ };
3071
+ header?: never;
3072
+ path: {
3073
+ /** @description Flow ID */
3074
+ flow_id: string;
3075
+ /** @description Verification Request ID */
3076
+ verification_request_id: string;
3077
+ };
3078
+ cookie?: never;
3079
+ };
3080
+ requestBody?: never;
3081
+ responses: {
3082
+ 200: {
3083
+ headers: {
3084
+ [name: string]: unknown;
3085
+ };
3086
+ content: {
3087
+ "application/json": components["schemas"]["GetLivenessChallengeResponse"];
3088
+ };
3089
+ };
3090
+ 500: {
3091
+ headers: {
3092
+ [name: string]: unknown;
3093
+ };
3094
+ content: {
3095
+ "application/json": components["schemas"]["BaxeError"];
3096
+ };
3097
+ };
3098
+ };
3099
+ };
3100
+ sdk_process_dv_liveness: {
3101
+ parameters: {
3102
+ query?: {
3103
+ /** @description Use sandbox environment */
3104
+ sandbox?: boolean | null;
3105
+ };
3106
+ header?: never;
3107
+ path: {
3108
+ /** @description Flow ID */
3109
+ flow_id: string;
3110
+ /** @description Verification Request ID */
3111
+ verification_request_id: string;
3112
+ };
3113
+ cookie?: never;
3114
+ };
3115
+ requestBody: {
3116
+ content: {
3117
+ "application/json": components["schemas"]["ProcessLivenessPayload"];
3118
+ };
3119
+ };
3120
+ responses: {
3121
+ 202: {
3122
+ headers: {
3123
+ [name: string]: unknown;
3124
+ };
3125
+ content: {
3126
+ "application/json": components["schemas"]["ProcessLivenessResponse"];
3127
+ };
3128
+ };
3129
+ 400: {
3130
+ headers: {
3131
+ [name: string]: unknown;
3132
+ };
3133
+ content: {
3134
+ "application/json": components["schemas"]["BaxeError"];
3135
+ };
3136
+ };
3137
+ 500: {
3138
+ headers: {
3139
+ [name: string]: unknown;
3140
+ };
3141
+ content: {
3142
+ "application/json": components["schemas"]["BaxeError"];
3143
+ };
3144
+ };
3145
+ };
3146
+ };
3147
+ sdk_process_dv_selection: {
3148
+ parameters: {
3149
+ query?: {
3150
+ /** @description Use sandbox environment */
3151
+ sandbox?: boolean | null;
3152
+ };
3153
+ header?: never;
3154
+ path: {
3155
+ /** @description Flow ID */
3156
+ flow_id: string;
3157
+ /** @description Verification Request ID */
3158
+ verification_request_id: string;
3159
+ };
3160
+ cookie?: never;
3161
+ };
3162
+ requestBody: {
3163
+ content: {
3164
+ "application/json": components["schemas"]["ProcessDocumentSelectionPayload"];
3165
+ };
3166
+ };
3167
+ responses: {
3168
+ 200: {
3169
+ headers: {
3170
+ [name: string]: unknown;
3171
+ };
3172
+ content: {
3173
+ "application/json": components["schemas"]["ProcessDocumentSelectionResponse"];
3174
+ };
3175
+ };
3176
+ 400: {
3177
+ headers: {
3178
+ [name: string]: unknown;
3179
+ };
3180
+ content: {
3181
+ "application/json": components["schemas"]["BaxeError"];
3182
+ };
3183
+ };
3184
+ 500: {
3185
+ headers: {
3186
+ [name: string]: unknown;
3187
+ };
3188
+ content: {
3189
+ "application/json": components["schemas"]["BaxeError"];
3190
+ };
3191
+ };
3192
+ };
3193
+ };
1751
3194
  get_completed_verification_requests: {
1752
3195
  parameters: {
1753
3196
  query: {
@@ -1784,6 +3227,58 @@ export interface operations {
1784
3227
  };
1785
3228
  };
1786
3229
  };
3230
+ sdk_list_flow_results: {
3231
+ parameters: {
3232
+ query: {
3233
+ pagination?: components["schemas"]["Pagination"];
3234
+ sandbox: boolean;
3235
+ locale?: components["schemas"]["Locale"];
3236
+ };
3237
+ header?: never;
3238
+ path: {
3239
+ /** @description Organization ID */
3240
+ organization_id: string;
3241
+ /** @description Flow slug to scope results to */
3242
+ flow_slug: string;
3243
+ };
3244
+ cookie?: never;
3245
+ };
3246
+ requestBody?: never;
3247
+ responses: {
3248
+ 200: {
3249
+ headers: {
3250
+ [name: string]: unknown;
3251
+ };
3252
+ content: {
3253
+ "application/json": components["schemas"]["ListOrganizationFlowResultsResponse"];
3254
+ };
3255
+ };
3256
+ 400: {
3257
+ headers: {
3258
+ [name: string]: unknown;
3259
+ };
3260
+ content: {
3261
+ "application/json": components["schemas"]["BaxeError"];
3262
+ };
3263
+ };
3264
+ 401: {
3265
+ headers: {
3266
+ [name: string]: unknown;
3267
+ };
3268
+ content: {
3269
+ "application/json": components["schemas"]["BaxeError"];
3270
+ };
3271
+ };
3272
+ 500: {
3273
+ headers: {
3274
+ [name: string]: unknown;
3275
+ };
3276
+ content: {
3277
+ "application/json": components["schemas"]["BaxeError"];
3278
+ };
3279
+ };
3280
+ };
3281
+ };
1787
3282
  get_sdk_flow_result_details: {
1788
3283
  parameters: {
1789
3284
  query: {