@adea-ai/contracts 5.0.0 → 5.0.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/identifiers.js +3 -1
- package/package.json +1 -1
package/dist/identifiers.js
CHANGED
|
@@ -3,7 +3,9 @@ import { z } from 'zod';
|
|
|
3
3
|
export const OPAQUE_IDENTIFIER_SUFFIX_LENGTH = 26;
|
|
4
4
|
const opaqueIdentifier = (prefix, kind) => z
|
|
5
5
|
.string()
|
|
6
|
-
.regex(
|
|
6
|
+
.regex(
|
|
7
|
+
// nosemgrep: javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp -- pattern built from a repo constant or escaped value, anchored; not attacker input
|
|
8
|
+
new RegExp(`^${prefix}_[0-9A-HJKMNP-TV-Z]{${OPAQUE_IDENTIFIER_SUFFIX_LENGTH}}$`), `Expected a canonical opaque ${kind}`)
|
|
7
9
|
.transform((value) => value);
|
|
8
10
|
export const IdentifierSchemas = {
|
|
9
11
|
requestId: opaqueIdentifier('req', 'request ID'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adea-ai/contracts",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Runtime-independent service boundary between Adea and the Control Plane: canonical identifiers, envelopes, Control API schemas, pagination, and versioning.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|