@peac/kernel 0.12.0 → 0.12.2

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/errors.mjs CHANGED
@@ -119,6 +119,8 @@ var ERROR_CODES = {
119
119
  E_EAT_UNSUPPORTED_ALG: "E_EAT_UNSUPPORTED_ALG",
120
120
  E_EVIDENCE_NOT_JSON: "E_EVIDENCE_NOT_JSON",
121
121
  E_EXPIRED: "E_EXPIRED",
122
+ E_EXTENSION_NON_JSON_VALUE: "E_EXTENSION_NON_JSON_VALUE",
123
+ E_EXTENSION_SIZE_EXCEEDED: "E_EXTENSION_SIZE_EXCEEDED",
122
124
  E_INVALID_AMOUNT: "E_INVALID_AMOUNT",
123
125
  E_INVALID_AUDIENCE: "E_INVALID_AUDIENCE",
124
126
  E_INVALID_CURRENCY: "E_INVALID_CURRENCY",
@@ -145,6 +147,8 @@ var ERROR_CODES = {
145
147
  E_WIRE_VERSION_MISMATCH: "E_WIRE_VERSION_MISMATCH",
146
148
  // Verification error codes
147
149
  E_EAT_SIGNATURE_FAILED: "E_EAT_SIGNATURE_FAILED",
150
+ E_EXTENSION_GROUP_MISMATCH: "E_EXTENSION_GROUP_MISMATCH",
151
+ E_EXTENSION_GROUP_REQUIRED: "E_EXTENSION_GROUP_REQUIRED",
148
152
  E_INVALID_SIGNATURE: "E_INVALID_SIGNATURE",
149
153
  E_KEY_NOT_FOUND: "E_KEY_NOT_FOUND",
150
154
  E_KID_REUSE_DETECTED: "E_KID_REUSE_DETECTED",
@@ -1175,6 +1179,24 @@ var ERRORS = {
1175
1179
  next_action: "retry_with_different_input",
1176
1180
  category: "validation"
1177
1181
  },
1182
+ E_EXTENSION_NON_JSON_VALUE: {
1183
+ code: "E_EXTENSION_NON_JSON_VALUE",
1184
+ http_status: 400,
1185
+ title: "Extension Non-JSON Value",
1186
+ description: "Extension group value is not a plain JSON value; functions, Symbols, BigInt, Date, RegExp, Map, Set, objects with toJSON(), and other non-JSON types are rejected",
1187
+ retryable: false,
1188
+ next_action: "retry_with_different_input",
1189
+ category: "validation"
1190
+ },
1191
+ E_EXTENSION_SIZE_EXCEEDED: {
1192
+ code: "E_EXTENSION_SIZE_EXCEEDED",
1193
+ http_status: 400,
1194
+ title: "Extension Size Exceeded",
1195
+ description: "Extension group or total extensions record exceeds the normative byte-budget limit (EXTENSION_BUDGET)",
1196
+ retryable: false,
1197
+ next_action: "retry_with_different_input",
1198
+ category: "validation"
1199
+ },
1178
1200
  E_INVALID_AMOUNT: {
1179
1201
  code: "E_INVALID_AMOUNT",
1180
1202
  http_status: 400,
@@ -1401,6 +1423,24 @@ var ERRORS = {
1401
1423
  next_action: "retry_with_different_key",
1402
1424
  category: "verification"
1403
1425
  },
1426
+ E_EXTENSION_GROUP_MISMATCH: {
1427
+ code: "E_EXTENSION_GROUP_MISMATCH",
1428
+ http_status: 400,
1429
+ title: "Extension Group Mismatch",
1430
+ description: "Registered receipt type has a mapped extension group, but a different registered first-party extension group is present while the expected one is absent",
1431
+ retryable: false,
1432
+ next_action: "retry_with_different_input",
1433
+ category: "verification"
1434
+ },
1435
+ E_EXTENSION_GROUP_REQUIRED: {
1436
+ code: "E_EXTENSION_GROUP_REQUIRED",
1437
+ http_status: 400,
1438
+ title: "Extension Group Required",
1439
+ description: "Registered receipt type has a mapped extension group, but that group is absent from the extensions record",
1440
+ retryable: false,
1441
+ next_action: "retry_with_different_input",
1442
+ category: "verification"
1443
+ },
1404
1444
  E_INVALID_SIGNATURE: {
1405
1445
  code: "E_INVALID_SIGNATURE",
1406
1446
  http_status: 400,