@tangle-network/agent-interface 1.7.0 → 1.7.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.
@@ -1,6 +1,8 @@
1
1
  import { z } from "zod";
2
2
  /** Limits applied before a value is hashed, copied, or sent to a provider. */
3
3
  export declare const CONTRACT_MAX_STRING_LENGTH = 16384;
4
+ /** Maximum length of one canonical confidential-attestation quote. */
5
+ export declare const CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH = 32768;
4
6
  export declare const CONTRACT_MAX_IDENTIFIER_LENGTH = 512;
5
7
  export declare const CONTRACT_MAX_ARRAY_LENGTH = 1024;
6
8
  export declare const CONTRACT_MAX_MAP_ENTRIES = 256;
@@ -8,6 +10,7 @@ export declare const CONTRACT_MAX_JSON_DEPTH = 16;
8
10
  export declare const CONTRACT_MAX_JSON_BYTES = 1048576;
9
11
  export declare const CONTRACT_MAX_JSON_NODES = 8192;
10
12
  export declare const boundedStringSchema: z.ZodString;
13
+ export declare const confidentialAttestationQuoteSchema: z.ZodString;
11
14
  export declare const boundedIdentifierSchema: z.ZodString;
12
15
  /**
13
16
  * Validate JSON without asking Zod to recursively copy an attacker-sized
@@ -1,6 +1,8 @@
1
1
  import { z } from "zod";
2
2
  /** Limits applied before a value is hashed, copied, or sent to a provider. */
3
3
  export const CONTRACT_MAX_STRING_LENGTH = 16_384;
4
+ /** Maximum length of one canonical confidential-attestation quote. */
5
+ export const CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH = 32_768;
4
6
  export const CONTRACT_MAX_IDENTIFIER_LENGTH = 512;
5
7
  export const CONTRACT_MAX_ARRAY_LENGTH = 1_024;
6
8
  export const CONTRACT_MAX_MAP_ENTRIES = 256;
@@ -8,6 +10,9 @@ export const CONTRACT_MAX_JSON_DEPTH = 16;
8
10
  export const CONTRACT_MAX_JSON_BYTES = 1_048_576;
9
11
  export const CONTRACT_MAX_JSON_NODES = 8_192;
10
12
  export const boundedStringSchema = z.string().max(CONTRACT_MAX_STRING_LENGTH);
13
+ export const confidentialAttestationQuoteSchema = z
14
+ .string()
15
+ .max(CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH);
11
16
  export const boundedIdentifierSchema = boundedStringSchema
12
17
  .min(1)
13
18
  .max(CONTRACT_MAX_IDENTIFIER_LENGTH)
package/dist/index.d.ts CHANGED
@@ -40,3 +40,4 @@ export * from "./harness-capabilities.js";
40
40
  export * from "./profile-schema.js";
41
41
  export * from "./profile-security.js";
42
42
  export * from "./sandbox-size.js";
43
+ export { CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH, } from "./contract-limits.js";
package/dist/index.js CHANGED
@@ -38,3 +38,4 @@ export * from "./harness-capabilities.js";
38
38
  export * from "./profile-schema.js";
39
39
  export * from "./profile-security.js";
40
40
  export * from "./sandbox-size.js";
41
+ export { CONTRACT_MAX_CONFIDENTIAL_ATTESTATION_QUOTE_LENGTH, } from "./contract-limits.js";
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { boundedStringSchema } from "./contract-limits.js";
2
+ import { boundedStringSchema, confidentialAttestationQuoteSchema, } from "./contract-limits.js";
3
3
  import { AgentExactRunControlRefSchema, } from "./runtime-control.js";
4
4
  import { idSchema, sha256DigestSchema, wireDigest } from "./workspace-branching-shared.js";
5
5
  /**
@@ -18,7 +18,7 @@ export const ConfidentialAttestationSchema = z
18
18
  requestDigest: sha256DigestSchema,
19
19
  profileDigest: sha256DigestSchema,
20
20
  policy: idSchema,
21
- quote: boundedStringSchema.min(1),
21
+ quote: confidentialAttestationQuoteSchema.min(1),
22
22
  providerKeyId: idSchema,
23
23
  providerSignature: boundedStringSchema.min(1),
24
24
  verifiedAt: z.iso.datetime().max(64),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-interface",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",