fiftyone.pipeline.did 4.5.36 → 4.5.37

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/didClient.js CHANGED
@@ -69,6 +69,19 @@ const ContextResult = Object.freeze({
69
69
  NO_CONTEXT: 'nocontext',
70
70
  /** The service holds no secret covering the identifier's date. */
71
71
  NOT_CHECKABLE: 'notcheckable',
72
+ /**
73
+ * The service that checked the identifier could not complete the check,
74
+ * and the reason is that service rather than the identifier. It either
75
+ * compared nothing, or compared some factors and reports at least one as
76
+ * `misconfigured` in `factors`. Nothing a caller sends can produce it.
77
+ */
78
+ MISCONFIGURED: 'misconfigured',
79
+ /**
80
+ * The creation date is one the scheme could not have produced, being in
81
+ * the future or before the creator context scheme began, so the
82
+ * identifier is fabricated rather than the service being wrong.
83
+ */
84
+ INVALID_DATE: 'invaliddate',
72
85
  /** The sealed result was redeemed outside the freshness window. */
73
86
  EXPIRED: 'expired',
74
87
  /** The sealed result had already been redeemed on that instance. */
@@ -102,7 +115,13 @@ const SignatureResult = Object.freeze({
102
115
  */
103
116
  const FactorResult = Object.freeze({
104
117
  VERIFIED: 'verified',
105
- MISMATCH: 'mismatch'
118
+ MISMATCH: 'mismatch',
119
+ /**
120
+ * The service that checked the identifier is not configured to determine
121
+ * this factor, so it could not have checked it for any request. This is
122
+ * NOT a mismatch and must not be read as one.
123
+ */
124
+ MISCONFIGURED: 'misconfigured'
106
125
  });
107
126
 
108
127
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.pipeline.did",
3
- "version": "4.5.36",
3
+ "version": "4.5.37",
4
4
  "description": "Strongly typed reader for the 51Did (51Degrees Identifier) value returned by the 51Degrees Cloud service. Parses the OWID envelope and exposes the Flags, License Id and match key plus the identifier type. Compare match keys, never envelopes.",
5
5
  "keywords": [
6
6
  "51degrees",
@@ -345,6 +345,8 @@ export const ContextResult: Readonly<{
345
345
  NO_CONTEXT: "nocontext";
346
346
  /** The service holds no secret covering the identifier's date. */
347
347
  NOT_CHECKABLE: "notcheckable";
348
+ MISCONFIGURED: "misconfigured";
349
+ INVALID_DATE: "invaliddate";
348
350
  /** The sealed result was redeemed outside the freshness window. */
349
351
  EXPIRED: "expired";
350
352
  /** The sealed result had already been redeemed on that instance. */
@@ -369,12 +371,14 @@ export const SignatureResult: Readonly<{
369
371
  UNKNOWN: "unknown";
370
372
  }>;
371
373
  /**
372
- * The outcome of one factor in a mismatch. The cloud reports `null` for a
374
+ * The outcome of one factor in a mismatch or a partly misconfigured
375
+ * result. The cloud reports `null` for a
373
376
  * factor that was not compared, which is passed through unchanged.
374
377
  */
375
378
  export const FactorResult: Readonly<{
376
379
  VERIFIED: "verified";
377
380
  MISMATCH: "mismatch";
381
+ MISCONFIGURED: "misconfigured";
378
382
  }>;
379
383
  /**
380
384
  * The reason a {@link DidClient#verifySignatureDetailed} answer was given.