@tangle-network/agent-interface 5.10.7 → 5.10.8
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.
|
@@ -15,7 +15,10 @@ export declare const AgentProfileCapabilitiesSchema: z.ZodObject<{
|
|
|
15
15
|
opaque: "opaque";
|
|
16
16
|
}>>;
|
|
17
17
|
enforcement: z.ZodLiteral<"exact">;
|
|
18
|
-
transports: z.ZodTuple<[z.
|
|
18
|
+
transports: z.ZodTuple<[z.ZodEnum<{
|
|
19
|
+
"https:443": "https:443";
|
|
20
|
+
https: "https";
|
|
21
|
+
}>], null>;
|
|
19
22
|
lifecycle: z.ZodLiteral<true>;
|
|
20
23
|
placementReceiptRequired: z.ZodLiteral<true>;
|
|
21
24
|
}, z.core.$strict>>;
|
|
@@ -1573,7 +1573,10 @@ export declare const AgentEnvironmentCapabilitiesSchema: z.ZodObject<{
|
|
|
1573
1573
|
opaque: "opaque";
|
|
1574
1574
|
}>>;
|
|
1575
1575
|
enforcement: z.ZodLiteral<"exact">;
|
|
1576
|
-
transports: z.ZodTuple<[z.
|
|
1576
|
+
transports: z.ZodTuple<[z.ZodEnum<{
|
|
1577
|
+
"https:443": "https:443";
|
|
1578
|
+
https: "https";
|
|
1579
|
+
}>], null>;
|
|
1577
1580
|
lifecycle: z.ZodLiteral<true>;
|
|
1578
1581
|
placementReceiptRequired: z.ZodLiteral<true>;
|
|
1579
1582
|
}, z.core.$strict>>;
|
|
@@ -1702,7 +1705,10 @@ export declare const AgentEnvironmentCapabilitiesSchema: z.ZodObject<{
|
|
|
1702
1705
|
opaque: "opaque";
|
|
1703
1706
|
}>>;
|
|
1704
1707
|
enforcement: z.ZodLiteral<"exact">;
|
|
1705
|
-
transports: z.ZodTuple<[z.
|
|
1708
|
+
transports: z.ZodTuple<[z.ZodEnum<{
|
|
1709
|
+
"https:443": "https:443";
|
|
1710
|
+
https: "https";
|
|
1711
|
+
}>], null>;
|
|
1706
1712
|
lifecycle: z.ZodLiteral<true>;
|
|
1707
1713
|
placementReceiptRequired: z.ZodLiteral<true>;
|
|
1708
1714
|
}, z.core.$strict>>;
|
|
@@ -1761,7 +1767,7 @@ export interface CreateAgentEnvironmentInput {
|
|
|
1761
1767
|
} | {
|
|
1762
1768
|
name: string;
|
|
1763
1769
|
exposeInBox: true;
|
|
1764
|
-
})[] | Record<string, string>;
|
|
1770
|
+
})[] | "all" | Record<string, string>;
|
|
1765
1771
|
/** Same declaration as AgentProfile. Empty selections remain explicit wire values.
|
|
1766
1772
|
* Trusted issuer authorization is required before resolving any reference. */
|
|
1767
1773
|
proxySecrets?: readonly ProxySecretBinding[];
|
|
@@ -2371,13 +2377,23 @@ export interface AgentEnvironmentProvider {
|
|
|
2371
2377
|
readonly exactProcess?: AgentExactProcessProvider;
|
|
2372
2378
|
/** Host-only store; expectedUpdatedAt rejects stale writes and removal without mutation. */
|
|
2373
2379
|
readonly secrets?: {
|
|
2374
|
-
create(name: string, value: string
|
|
2380
|
+
create(name: string, value: string, options?: {
|
|
2381
|
+
proxySecrets?: readonly ProxySecretBinding[];
|
|
2382
|
+
exposeInBox?: true;
|
|
2383
|
+
reason?: string;
|
|
2384
|
+
}): Promise<unknown>;
|
|
2375
2385
|
list?(): Promise<readonly {
|
|
2376
2386
|
name: string;
|
|
2377
2387
|
updatedAt: Date;
|
|
2388
|
+
proxySecrets?: readonly ProxySecretBinding[];
|
|
2389
|
+
exposeInBox?: true;
|
|
2390
|
+
reason?: string;
|
|
2378
2391
|
}[]>;
|
|
2379
2392
|
update?(name: string, value: string, options?: {
|
|
2380
2393
|
expectedUpdatedAt?: string;
|
|
2394
|
+
proxySecrets?: readonly ProxySecretBinding[];
|
|
2395
|
+
exposeInBox?: true;
|
|
2396
|
+
reason?: string;
|
|
2381
2397
|
}): Promise<unknown>;
|
|
2382
2398
|
delete(name: string, options?: {
|
|
2383
2399
|
expectedUpdatedAt?: string;
|
package/dist/proxy-secrets.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from "zod";
|
|
|
5
5
|
* Never scan other query fields. Basic is one strict base64 value decoding to exactly public
|
|
6
6
|
* username:placeholder; the username is printable ASCII without colon. Bearer is exactly
|
|
7
7
|
* "Bearer SP placeholder". Embedded placeholders never match. Authority, TLS SNI and validated
|
|
8
|
-
* destination must agree on the declared FQDN
|
|
8
|
+
* destination must agree on the declared FQDN and effective port over HTTPS.
|
|
9
9
|
*/
|
|
10
10
|
export declare const ProxySecretPresentationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11
11
|
type: z.ZodLiteral<"bearer">;
|
|
@@ -312,7 +312,10 @@ export declare const ProxySecretCapabilitiesSchema: z.ZodObject<{
|
|
|
312
312
|
opaque: "opaque";
|
|
313
313
|
}>>;
|
|
314
314
|
enforcement: z.ZodLiteral<"exact">;
|
|
315
|
-
transports: z.ZodTuple<[z.
|
|
315
|
+
transports: z.ZodTuple<[z.ZodEnum<{
|
|
316
|
+
"https:443": "https:443";
|
|
317
|
+
https: "https";
|
|
318
|
+
}>], null>;
|
|
316
319
|
lifecycle: z.ZodLiteral<true>;
|
|
317
320
|
placementReceiptRequired: z.ZodLiteral<true>;
|
|
318
321
|
}, z.core.$strict>;
|
package/dist/proxy-secrets.js
CHANGED
|
@@ -32,7 +32,7 @@ const headerSchema = z.string().max(256).regex(/^[!#$%&'*+.^_\x60|~0-9A-Za-z-]+$
|
|
|
32
32
|
* Never scan other query fields. Basic is one strict base64 value decoding to exactly public
|
|
33
33
|
* username:placeholder; the username is printable ASCII without colon. Bearer is exactly
|
|
34
34
|
* "Bearer SP placeholder". Embedded placeholders never match. Authority, TLS SNI and validated
|
|
35
|
-
* destination must agree on the declared FQDN
|
|
35
|
+
* destination must agree on the declared FQDN and effective port over HTTPS.
|
|
36
36
|
*/
|
|
37
37
|
export const ProxySecretPresentationSchema = z.discriminatedUnion("type", [
|
|
38
38
|
z.strictObject({ type: z.literal("bearer") }),
|
|
@@ -117,7 +117,7 @@ export const ProxySecretCapabilitiesSchema = z.strictObject({
|
|
|
117
117
|
protocolVersion: z.literal(1), supportedDrivers: list(boundedIdentifierSchema),
|
|
118
118
|
presentations: list(z.enum(["bearer", "basic", "header", "query"])),
|
|
119
119
|
placeholderFormats: list(z.enum(["opaque", "jwt"])),
|
|
120
|
-
enforcement: z.literal("exact"), transports: z.tuple([z.
|
|
120
|
+
enforcement: z.literal("exact"), transports: z.tuple([z.enum(["https:443", "https"])]),
|
|
121
121
|
lifecycle: z.literal(true), placementReceiptRequired: z.literal(true),
|
|
122
122
|
});
|
|
123
123
|
export const ProxySecretUpdateControlsSchema = z.strictObject({
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
"query": ""
|
|
773
773
|
},
|
|
774
774
|
"authorized": true,
|
|
775
|
-
"reason": "exact selected component over HTTPS
|
|
775
|
+
"reason": "exact selected component over HTTPS with matching authority, SNI and destination port"
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
778
|
"name": "exact-header",
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
"query": ""
|
|
813
813
|
},
|
|
814
814
|
"authorized": true,
|
|
815
|
-
"reason": "exact selected component over HTTPS
|
|
815
|
+
"reason": "exact selected component over HTTPS with matching authority, SNI and destination port"
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
818
|
"name": "exact-query",
|
|
@@ -847,7 +847,7 @@
|
|
|
847
847
|
"query": "api_key=opaque-placeholder"
|
|
848
848
|
},
|
|
849
849
|
"authorized": true,
|
|
850
|
-
"reason": "exact selected component over HTTPS
|
|
850
|
+
"reason": "exact selected component over HTTPS with matching authority, SNI and destination port"
|
|
851
851
|
},
|
|
852
852
|
{
|
|
853
853
|
"name": "explicit-443",
|
|
@@ -886,7 +886,7 @@
|
|
|
886
886
|
"query": ""
|
|
887
887
|
},
|
|
888
888
|
"authorized": true,
|
|
889
|
-
"reason": "exact selected component over HTTPS
|
|
889
|
+
"reason": "exact selected component over HTTPS with matching authority, SNI and destination port"
|
|
890
890
|
},
|
|
891
891
|
{
|
|
892
892
|
"name": "wrong-host",
|