@zyphe-sdk/core 0.9.0 → 0.10.0

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/index.d.ts CHANGED
@@ -2373,12 +2373,23 @@ interface components {
2373
2373
  */
2374
2374
  verificationRequestId?: string | null;
2375
2375
  };
2376
+ /**
2377
+ * @description The classes the API names a document with: the `documentClass` of a DV result, of the V2 webhook
2378
+ * and of the `DOCUMENT_EXPIRED` notification, and the `<step>.documentClass` of a flow rule.
2379
+ *
2380
+ * Served in the OpenAPI schema even though no response field carries one: the fields stay
2381
+ * strings, so a new class is not a breaking change for a client, but a client that lets an
2382
+ * operator author conditions on the class needs the exact value set, and generating it beats
2383
+ * transcribing it. The variants are in the order such a client offers them.
2384
+ * @enum {string}
2385
+ */
2386
+ DocumentClassName: "IdentificationCard" | "DriversLicense" | "Passport" | "ResidenceDocument" | "Visa" | "TravelDocument" | "TaxIdentification" | "MedicalCard" | "AlienId" | "Unknown";
2376
2387
  /**
2377
2388
  * @description Named categories of identity documents.
2378
2389
  *
2379
2390
  * Served in the OpenAPI schema even though no response field carries one: the cluster is
2380
2391
  * derived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM
2381
- * conditions as `<step>.documentClass`. Clients that let an operator author those conditions
2392
+ * conditions as `<step>.documentCluster`. Clients that let an operator author those conditions
2382
2393
  * need the exact value set, and generating it beats transcribing it.
2383
2394
  * @enum {string}
2384
2395
  */
@@ -2620,6 +2631,13 @@ interface components {
2620
2631
  data: {
2621
2632
  [key: string]: unknown;
2622
2633
  };
2634
+ /** @description The class of the document, the same whichever provider read it: `Passport`, `DriversLicense`,
2635
+ * `IdentificationCard`, `ResidenceDocument`, `Visa`, `TravelDocument`, `TaxIdentification`,
2636
+ * `MedicalCard`, `AlienId` (a foreign-national registration id) or `Unknown`. Derived from
2637
+ * `documentType`, the type the result stores: for a failed result it can be the document the
2638
+ * holder picked rather than the one read. A `documentType` the types above do not cover, or of
2639
+ * 0 (none read), reads `Unknown`. `null` when the result has no `documentType`. */
2640
+ documentClass?: string | null;
2623
2641
  /** Format: uuid */
2624
2642
  documentId?: string | null;
2625
2643
  /** Format: int32 */
@@ -10326,6 +10344,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10326
10344
  data: {
10327
10345
  [key: string]: unknown;
10328
10346
  };
10347
+ documentClass?: string | null;
10329
10348
  documentId?: string | null;
10330
10349
  documentScorePercent?: number | null;
10331
10350
  documentType?: number | null;
@@ -10537,6 +10556,7 @@ declare function getFlowResult({ organizationId, flowResultId, isSandbox }: GetF
10537
10556
  data: {
10538
10557
  [key: string]: unknown;
10539
10558
  };
10559
+ documentClass?: string | null;
10540
10560
  documentId?: string | null;
10541
10561
  documentScorePercent?: number | null;
10542
10562
  documentType?: number | null;
package/dist/openapi.d.ts CHANGED
@@ -2371,12 +2371,23 @@ export interface components {
2371
2371
  */
2372
2372
  verificationRequestId?: string | null;
2373
2373
  };
2374
+ /**
2375
+ * @description The classes the API names a document with: the `documentClass` of a DV result, of the V2 webhook
2376
+ * and of the `DOCUMENT_EXPIRED` notification, and the `<step>.documentClass` of a flow rule.
2377
+ *
2378
+ * Served in the OpenAPI schema even though no response field carries one: the fields stay
2379
+ * strings, so a new class is not a breaking change for a client, but a client that lets an
2380
+ * operator author conditions on the class needs the exact value set, and generating it beats
2381
+ * transcribing it. The variants are in the order such a client offers them.
2382
+ * @enum {string}
2383
+ */
2384
+ DocumentClassName: "IdentificationCard" | "DriversLicense" | "Passport" | "ResidenceDocument" | "Visa" | "TravelDocument" | "TaxIdentification" | "MedicalCard" | "AlienId" | "Unknown";
2374
2385
  /**
2375
2386
  * @description Named categories of identity documents.
2376
2387
  *
2377
2388
  * Served in the OpenAPI schema even though no response field carries one: the cluster is
2378
2389
  * derived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM
2379
- * conditions as `<step>.documentClass`. Clients that let an operator author those conditions
2390
+ * conditions as `<step>.documentCluster`. Clients that let an operator author those conditions
2380
2391
  * need the exact value set, and generating it beats transcribing it.
2381
2392
  * @enum {string}
2382
2393
  */
@@ -2618,6 +2629,13 @@ export interface components {
2618
2629
  data: {
2619
2630
  [key: string]: unknown;
2620
2631
  };
2632
+ /** @description The class of the document, the same whichever provider read it: `Passport`, `DriversLicense`,
2633
+ * `IdentificationCard`, `ResidenceDocument`, `Visa`, `TravelDocument`, `TaxIdentification`,
2634
+ * `MedicalCard`, `AlienId` (a foreign-national registration id) or `Unknown`. Derived from
2635
+ * `documentType`, the type the result stores: for a failed result it can be the document the
2636
+ * holder picked rather than the one read. A `documentType` the types above do not cover, or of
2637
+ * 0 (none read), reads `Unknown`. `null` when the result has no `documentType`. */
2638
+ documentClass?: string | null;
2621
2639
  /** Format: uuid */
2622
2640
  documentId?: string | null;
2623
2641
  /** Format: int32 */
package/dist/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "zyphe-sdk",
5
5
  "description": "",
6
- "version": "3.9.0"
6
+ "version": "3.9.2"
7
7
  },
8
8
  "paths": {
9
9
  "/flows/{slug}/fullflow": {
@@ -9080,9 +9080,25 @@
9080
9080
  }
9081
9081
  }
9082
9082
  },
9083
+ "DocumentClassName": {
9084
+ "type": "string",
9085
+ "description": "The classes the API names a document with: the `documentClass` of a DV result, of the V2 webhook\nand of the `DOCUMENT_EXPIRED` notification, and the `<step>.documentClass` of a flow rule.\n\nServed in the OpenAPI schema even though no response field carries one: the fields stay\nstrings, so a new class is not a breaking change for a client, but a client that lets an\noperator author conditions on the class needs the exact value set, and generating it beats\ntranscribing it. The variants are in the order such a client offers them.",
9086
+ "enum": [
9087
+ "IdentificationCard",
9088
+ "DriversLicense",
9089
+ "Passport",
9090
+ "ResidenceDocument",
9091
+ "Visa",
9092
+ "TravelDocument",
9093
+ "TaxIdentification",
9094
+ "MedicalCard",
9095
+ "AlienId",
9096
+ "Unknown"
9097
+ ]
9098
+ },
9083
9099
  "DocumentClusterName": {
9084
9100
  "type": "string",
9085
- "description": "Named categories of identity documents.\n\nServed in the OpenAPI schema even though no response field carries one: the cluster is\nderived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM\nconditions as `<step>.documentClass`. Clients that let an operator author those conditions\nneed the exact value set, and generating it beats transcribing it.",
9101
+ "description": "Named categories of identity documents.\n\nServed in the OpenAPI schema even though no response field carries one: the cluster is\nderived at flow-evaluation time from a result's numeric `documentType` and exposed to JDM\nconditions as `<step>.documentCluster`. Clients that let an operator author those conditions\nneed the exact value set, and generating it beats transcribing it.",
9086
9102
  "enum": [
9087
9103
  "ID_CARDS",
9088
9104
  "PASSPORTS",
@@ -9705,6 +9721,13 @@
9705
9721
  "type": "string"
9706
9722
  }
9707
9723
  },
9724
+ "documentClass": {
9725
+ "type": [
9726
+ "string",
9727
+ "null"
9728
+ ],
9729
+ "description": "The class of the document, the same whichever provider read it: `Passport`, `DriversLicense`,\n`IdentificationCard`, `ResidenceDocument`, `Visa`, `TravelDocument`, `TaxIdentification`,\n`MedicalCard`, `AlienId` (a foreign-national registration id) or `Unknown`. Derived from\n`documentType`, the type the result stores: for a failed result it can be the document the\nholder picked rather than the one read. A `documentType` the types above do not cover, or of\n0 (none read), reads `Unknown`. `null` when the result has no `documentType`."
9730
+ },
9708
9731
  "documentId": {
9709
9732
  "type": [
9710
9733
  "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyphe-sdk/core",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Simplifies interaction with the Zyphe platform for creating and managing digital identities and digital onboarding flows with ease",
5
5
  "license": "MIT",
6
6
  "author": "Zyphe",