@vess-id/ai-identity 0.14.0-alpha.3 → 0.14.0-alpha.4

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.mts CHANGED
@@ -9103,6 +9103,14 @@ declare const GATEWAY_ERROR_CODE: {
9103
9103
  * prompt, unlike CREDENTIAL_INVALID / RESOURCE_MISMATCH which re-request.
9104
9104
  */
9105
9105
  readonly POLICY_FORBIDDEN: "POLICY_FORBIDDEN";
9106
+ /**
9107
+ * Cedar `RequireApproval` fired at invoke time (HTTP 202 `auth_required`) —
9108
+ * the VC was already issued, but the per-request evaluation (e.g. a new
9109
+ * recipient that fails the internal-domain fold) still needs approval. Unlike
9110
+ * POLICY_FORBIDDEN this IS lift-able: the ExecutionEngine mints an OOB
9111
+ * approval URL (`waitingForApproval`) so the user can approve and retry.
9112
+ */
9113
+ readonly APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
9106
9114
  };
9107
9115
  type GatewayErrorCode = (typeof GATEWAY_ERROR_CODE)[keyof typeof GATEWAY_ERROR_CODE];
9108
9116
 
package/dist/index.js CHANGED
@@ -5911,7 +5911,15 @@ var GATEWAY_ERROR_CODE = {
5911
5911
  * The ExecutionEngine surfaces this as a TERMINAL denial with NO approval
5912
5912
  * prompt, unlike CREDENTIAL_INVALID / RESOURCE_MISMATCH which re-request.
5913
5913
  */
5914
- POLICY_FORBIDDEN: "POLICY_FORBIDDEN"
5914
+ POLICY_FORBIDDEN: "POLICY_FORBIDDEN",
5915
+ /**
5916
+ * Cedar `RequireApproval` fired at invoke time (HTTP 202 `auth_required`) —
5917
+ * the VC was already issued, but the per-request evaluation (e.g. a new
5918
+ * recipient that fails the internal-domain fold) still needs approval. Unlike
5919
+ * POLICY_FORBIDDEN this IS lift-able: the ExecutionEngine mints an OOB
5920
+ * approval URL (`waitingForApproval`) so the user can approve and retry.
5921
+ */
5922
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED"
5915
5923
  };
5916
5924
 
5917
5925
  // src/registry/action-summary.ts