@cotal-ai/auth 0.57.0 → 0.58.0
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/auth-admin.d.ts +10 -0
- package/dist/auth-admin.d.ts.map +1 -1
- package/dist/auth-admin.js +162 -213
- package/dist/auth-admin.js.map +1 -1
- package/dist/auth-service-contract.d.ts +64 -0
- package/dist/auth-service-contract.d.ts.map +1 -0
- package/dist/auth-service-contract.js +131 -0
- package/dist/auth-service-contract.js.map +1 -0
- package/dist/authority-client.d.ts +16 -0
- package/dist/authority-client.d.ts.map +1 -1
- package/dist/authority-client.js +61 -1
- package/dist/authority-client.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/manager-authority.d.ts +102 -1
- package/dist/manager-authority.d.ts.map +1 -1
- package/dist/manager-authority.js +276 -16
- package/dist/manager-authority.js.map +1 -1
- package/dist/manager-contract.d.ts +4 -0
- package/dist/manager-contract.d.ts.map +1 -1
- package/dist/manager-contract.js +7 -1
- package/dist/manager-contract.js.map +1 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +8 -0
- package/dist/provider.js.map +1 -1
- package/dist/service.d.ts +68 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +572 -149
- package/dist/service.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The AUTH plane's v0.4 SERVICE CONTRACT (#399 M2): the §13.7 cluster document + compiled command
|
|
3
|
+
* contract for the `retire-lifecycle` op the auth plane serves on the `ep.*` rails. Shaped like
|
|
4
|
+
* `implementations/manager/src/manager-service-contract.ts` (the manager's own contract module):
|
|
5
|
+
* ONE `CommandRow`, its compiled input/output pair, and the cluster-document/artifact/command-def
|
|
6
|
+
* builders a `serveEndpoint` registration needs.
|
|
7
|
+
*
|
|
8
|
+
* This module is PURE DATA + schema (no broker, no barrier, no wire I/O): the registration and
|
|
9
|
+
* serve WIRING lives in the plane (`openAuthAuthorityPlane` / `openAuthAdminListener`).
|
|
10
|
+
*/
|
|
11
|
+
import { compileContract, contractDigest, } from "@cotal-ai/core";
|
|
12
|
+
/** The auth plane's endpoint NAME (matches `AUTH_ENDPOINT` in `@cotal-ai/core`). */
|
|
13
|
+
export const AUTH_SERVICE_ENDPOINT = "auth";
|
|
14
|
+
/** The auth cluster document's URN (§13.7 content-addressed authority). */
|
|
15
|
+
export const AUTH_CLUSTER_URN = "ai.cotal.auth";
|
|
16
|
+
// ---- input/output schemas (closed shape) --------------------------------------------------------
|
|
17
|
+
/** The `retireLifecycle` args — the shape `parseRetireArgs` (`auth-admin.ts:146`) accepts. The
|
|
18
|
+
* target (owner, actor, lifecycleUid) is never an argument: `exact` mode carries it in the
|
|
19
|
+
* subject, broker-enforced, so the handler reads it from `ctx.subject.target`. */
|
|
20
|
+
const RETIRE_LIFECYCLE_INPUT_SCHEMA = {
|
|
21
|
+
type: "object",
|
|
22
|
+
additionalProperties: false,
|
|
23
|
+
required: ["opId", "serveEndpoint", "serveInstanceId", "serveEpoch"],
|
|
24
|
+
properties: {
|
|
25
|
+
/** The requester's stable operation id (a retry sends the SAME opId). */
|
|
26
|
+
opId: { type: "string" },
|
|
27
|
+
/** The serve-issuance gate's endpoint name the requester's serve grant is keyed under. */
|
|
28
|
+
serveEndpoint: { type: "string" },
|
|
29
|
+
/** The serve-issuance gate's instance id (lookup coordinate, not an authz input). */
|
|
30
|
+
serveInstanceId: { type: "string" },
|
|
31
|
+
/** The declared process epoch (a superseded predecessor is refused). */
|
|
32
|
+
serveEpoch: { type: "integer", minimum: 0 },
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
/** The `retireLifecycle` output — the object the handler returns (`auth-admin.ts:390`). */
|
|
36
|
+
const RETIRE_LIFECYCLE_OUTPUT_SCHEMA = {
|
|
37
|
+
type: "object",
|
|
38
|
+
additionalProperties: false,
|
|
39
|
+
required: ["retired", "lifecycleUid", "opId", "evictedPrincipals"],
|
|
40
|
+
properties: {
|
|
41
|
+
retired: { type: "boolean" },
|
|
42
|
+
lifecycleUid: { type: "string" },
|
|
43
|
+
opId: { type: "string" },
|
|
44
|
+
evictedPrincipals: { type: "array", items: { type: "string" } },
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
const ROWS = [
|
|
48
|
+
{ name: "retire-lifecycle", capability: "auth.admin", input: RETIRE_LIFECYCLE_INPUT_SCHEMA, output: RETIRE_LIFECYCLE_OUTPUT_SCHEMA, targeted: true, modes: ["exact"], handler: "retireLifecycle" },
|
|
49
|
+
];
|
|
50
|
+
const COMPILED = new Map();
|
|
51
|
+
function pairFor(name) {
|
|
52
|
+
let pair = COMPILED.get(name);
|
|
53
|
+
if (!pair) {
|
|
54
|
+
const r = ROWS.find((row) => row.name === name);
|
|
55
|
+
if (!r)
|
|
56
|
+
throw new Error(`unknown auth command contract "${name}"`);
|
|
57
|
+
pair = { input: compileContract({ root: r.input }), output: compileContract({ root: r.output }) };
|
|
58
|
+
COMPILED.set(name, pair);
|
|
59
|
+
}
|
|
60
|
+
return pair;
|
|
61
|
+
}
|
|
62
|
+
/** §13.7 closure digest of a self-contained schema root, WITHOUT compiling. */
|
|
63
|
+
function closureDigestOfSource(root) {
|
|
64
|
+
return contractDigest({ v: 1, root: contractDigest(root), members: [] });
|
|
65
|
+
}
|
|
66
|
+
/** Per-command compiled contract pairs, exported for CALLERS (mirrors `MANAGER_CONTRACTS`). Lazy:
|
|
67
|
+
* a pair compiles on its first access, so importing the module alone pays no Ajv compile. */
|
|
68
|
+
export const AUTH_CONTRACTS = new Proxy({}, {
|
|
69
|
+
has: (_, name) => ROWS.some((r) => r.name === name),
|
|
70
|
+
ownKeys: () => ROWS.map((r) => r.name),
|
|
71
|
+
getOwnPropertyDescriptor: (_, name) => (ROWS.some((r) => r.name === name) ? { configurable: true, enumerable: true, get: () => pairFor(name) } : undefined),
|
|
72
|
+
get: (_, name) => (typeof name === "string" && ROWS.some((r) => r.name === name) ? pairFor(name) : undefined),
|
|
73
|
+
});
|
|
74
|
+
/** Every §13.7 contract artifact the auth plane PUBLISHES to the EPC store at registration: each
|
|
75
|
+
* DISTINCT schema root plus its single-member closure manifest. */
|
|
76
|
+
export function authContractArtifactValues() {
|
|
77
|
+
const values = [];
|
|
78
|
+
const seen = new Set();
|
|
79
|
+
for (const r of ROWS) {
|
|
80
|
+
for (const source of [r.input, r.output]) {
|
|
81
|
+
const rootDigest = contractDigest(source);
|
|
82
|
+
if (seen.has(rootDigest))
|
|
83
|
+
continue;
|
|
84
|
+
seen.add(rootDigest);
|
|
85
|
+
values.push(source, { v: 1, root: rootDigest, members: [] });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return values;
|
|
89
|
+
}
|
|
90
|
+
/** The §13.7 cluster DOCUMENT: the content-addressed authority for the auth plane's served
|
|
91
|
+
* command surface. Revision 1: the single `retire-lifecycle` command. */
|
|
92
|
+
export function authClusterDocument() {
|
|
93
|
+
return {
|
|
94
|
+
urn: AUTH_CLUSTER_URN,
|
|
95
|
+
revision: 1,
|
|
96
|
+
attributes: [],
|
|
97
|
+
events: [],
|
|
98
|
+
commands: ROWS.map((r) => ({
|
|
99
|
+
name: r.name,
|
|
100
|
+
class: "ephemeral",
|
|
101
|
+
targeted: r.targeted,
|
|
102
|
+
...(r.modes ? { modes: r.modes } : {}),
|
|
103
|
+
capability: r.capability,
|
|
104
|
+
inputDigest: closureDigestOfSource(r.input),
|
|
105
|
+
outputDigest: closureDigestOfSource(r.output),
|
|
106
|
+
})),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
/** The two-digest §13.7 content addressing for the auth document (mirrors
|
|
110
|
+
* `managerClusterArtifacts`): both artifacts publish to the `epc` store at their own digest;
|
|
111
|
+
* `clusterDigests` in the service spec carries the closure digest. */
|
|
112
|
+
export function authClusterArtifacts() {
|
|
113
|
+
const document = authClusterDocument();
|
|
114
|
+
const rootDigest = contractDigest(document);
|
|
115
|
+
const manifest = { v: 1, root: rootDigest, members: [] };
|
|
116
|
+
const closureDigest = contractDigest(manifest);
|
|
117
|
+
return { document, rootDigest, manifest, closureDigest };
|
|
118
|
+
}
|
|
119
|
+
/** Build the `EpCommandDef[]` `serveEndpoint` consumes. */
|
|
120
|
+
export function authCommandDefs(handlers) {
|
|
121
|
+
// First use MATERIALIZES the compiled pairs (the Proxy compiles lazily; a compile failure
|
|
122
|
+
// surfaces here, at registration, exactly where serve would need the validators).
|
|
123
|
+
for (const r of ROWS)
|
|
124
|
+
pairFor(r.name);
|
|
125
|
+
return ROWS.map((r) => ({
|
|
126
|
+
command: r.name,
|
|
127
|
+
contract: pairFor(r.name),
|
|
128
|
+
handler: (ctx) => handlers[r.handler](ctx),
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=auth-service-contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-service-contract.js","sourceRoot":"","sources":["../src/auth-service-contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,eAAe,EACf,cAAc,GAKf,MAAM,gBAAgB,CAAC;AAExB,oFAAoF;AACpF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAE5C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAEhD,oGAAoG;AAEpG;;mFAEmF;AACnF,MAAM,6BAA6B,GAAG;IACpC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,CAAC;IACpE,UAAU,EAAE;QACV,yEAAyE;QACzE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,0FAA0F;QAC1F,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,qFAA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|
};
|
|
64
64
|
export { remoteManagerRegistrationProof };
|
|
65
|
+
/**
|
|
66
|
+
* The AUTH PLANE's OWN registration executor grant (#399 M2): the ONE `(auth, instanceId)`
|
|
67
|
+
* self-registration this plane performs at boot (`registerServiceInstance` +
|
|
68
|
+
* `authorizeServeGrant` + `writeServiceStatus` + the §13.7 contract-artifact publish), mirrored
|
|
69
|
+
* from the manager's `endpointServeExecutorPermissions` (`packages/core/src/provision.ts:2426`)
|
|
70
|
+
* but built directly (the auth plane self-authorizes its own name with the space signing seed,
|
|
71
|
+
* exactly as the manager self-authorizes `manager`, so this rides the same self-minted
|
|
72
|
+
* `openAuthorityClient` door as the writer/barrier connections rather than a `mintCreds` profile).
|
|
73
|
+
* Key-pinned to exactly this instance's gate/cred/repair rows and its two `svc.auth.<instanceId>`
|
|
74
|
+
* record keys plus the endpoint's `govern.auth` head; the contract-artifact publish is the same
|
|
75
|
+
* single-token `epc.*` form {@link contractPublisherGrants} uses (never the wide `epc.>`).
|
|
76
|
+
*/
|
|
77
|
+
export declare function authRegistrationExecutorGrants(space: string, connId: string, instanceId: string): {
|
|
78
|
+
publish: string[];
|
|
79
|
+
subscribe: string[];
|
|
80
|
+
};
|
|
65
81
|
/**
|
|
66
82
|
* The BARRIER EXECUTOR's scoped credential grant (SPEC 13.9): the lifecycle-barrier surface —
|
|
67
83
|
* exactly what the takeover barrier (and its retirement sibling) reaches through the sealed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authority-client.d.ts","sourceRoot":"","sources":["../src/authority-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzF,OAAO,
|
|
1
|
+
{"version":3,"file":"authority-client.d.ts","sourceRoot":"","sources":["../src/authority-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAA6B,KAA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AAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,CAuE7F;AAED,MAAM,WAAW,uBAAuB;IACtC;;8CAE0C;IAC1C,OAAO,IAAI,aAAa,CAAC;IACzB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,OAAO,CAAC,GAClD,OAAO,CAAC,uBAAuB,CAAC,CAqDlC"}
|
package/dist/authority-client.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
import { connect, jwtAuthenticator } from "@nats-io/transport-node";
|
|
28
28
|
import { encodeUser } from "@nats-io/jwt";
|
|
29
29
|
import { fromPublic, fromSeed } from "@nats-io/nkeys";
|
|
30
|
-
import { EpEnvelopeError, assertInboxConnId, endpointToken, epAuthBucket, epfStreamName, newIdentity, recordsBucket, retirementFrontierStreams, spacePrefix, assertPoolToken, principalTags, principalKey, remoteManagerActors, remoteManagerRegistrationProof } from "@cotal-ai/core";
|
|
30
|
+
import { EpEnvelopeError, admissionBucket, assertInboxConnId, endpointToken, epAuthBucket, epcStreamName, epfStreamName, newIdentity, recordsBucket, retirementFrontierStreams, spacePrefix, assertPoolToken, principalTags, principalKey, remoteManagerActors, remoteManagerRegistrationProof, AUTH_ENDPOINT, assertLifecycleToken, epcredFamilyPrefix, epgateKey, eprepairKey, GOVERN_HEAD, RECORD_KINDS, recordAtomicKey, recordSpecKey, recordStatusKey } from "@cotal-ai/core";
|
|
31
31
|
import { authConnectReaderGrants, openConnectReader } from "./connect-reader.js";
|
|
32
32
|
/** Self-minted infra-credential TTL (fact-3 pin: SHORT expiry + in-process renewal, a bounded
|
|
33
33
|
* in-memory credential that closes with the service — never an unbounded persisted one). */
|
|
@@ -84,6 +84,7 @@ export function authorityWriterGrants(space, connId) {
|
|
|
84
84
|
* HTTP handler chooses fixed profiles and caller-generated nkeys. */
|
|
85
85
|
export function remoteManagerIssuerGrants(space, connId) {
|
|
86
86
|
const base = authorityWriterGrants(space, connId);
|
|
87
|
+
const admission = `KV_${admissionBucket(space)}`;
|
|
87
88
|
return {
|
|
88
89
|
publish: [
|
|
89
90
|
...base.publish,
|
|
@@ -95,11 +96,70 @@ export function remoteManagerIssuerGrants(space, connId) {
|
|
|
95
96
|
// issuance family is reachable through this server-side connection.
|
|
96
97
|
`$KV.${epAuthBucket(space)}.epgate.manager.>`,
|
|
97
98
|
`$KV.${epAuthBucket(space)}.epcred.manager.>`,
|
|
99
|
+
// Standing renewal re-derives the serve surface from the registered spec's content-addressed
|
|
100
|
+
// cluster artifacts: read-only Direct Get on the space's contract store, nothing else.
|
|
101
|
+
`$JS.API.DIRECT.GET.${epcStreamName(space)}.${spacePrefix(space)}.epc.>`,
|
|
102
|
+
`$JS.API.DIRECT.GET.${epcStreamName(space)}`,
|
|
103
|
+
// Run attempt authorization reads the run's admission record from the admission KV store:
|
|
104
|
+
`$JS.API.STREAM.INFO.${admission}`,
|
|
105
|
+
`$JS.API.STREAM.MSG.GET.${admission}`,
|
|
106
|
+
`$JS.API.DIRECT.GET.${admission}`,
|
|
107
|
+
`$JS.API.DIRECT.GET.${admission}.>`,
|
|
98
108
|
],
|
|
99
109
|
subscribe: base.subscribe,
|
|
100
110
|
};
|
|
101
111
|
}
|
|
102
112
|
export { remoteManagerRegistrationProof };
|
|
113
|
+
/**
|
|
114
|
+
* The AUTH PLANE's OWN registration executor grant (#399 M2): the ONE `(auth, instanceId)`
|
|
115
|
+
* self-registration this plane performs at boot (`registerServiceInstance` +
|
|
116
|
+
* `authorizeServeGrant` + `writeServiceStatus` + the §13.7 contract-artifact publish), mirrored
|
|
117
|
+
* from the manager's `endpointServeExecutorPermissions` (`packages/core/src/provision.ts:2426`)
|
|
118
|
+
* but built directly (the auth plane self-authorizes its own name with the space signing seed,
|
|
119
|
+
* exactly as the manager self-authorizes `manager`, so this rides the same self-minted
|
|
120
|
+
* `openAuthorityClient` door as the writer/barrier connections rather than a `mintCreds` profile).
|
|
121
|
+
* Key-pinned to exactly this instance's gate/cred/repair rows and its two `svc.auth.<instanceId>`
|
|
122
|
+
* record keys plus the endpoint's `govern.auth` head; the contract-artifact publish is the same
|
|
123
|
+
* single-token `epc.*` form {@link contractPublisherGrants} uses (never the wide `epc.>`).
|
|
124
|
+
*/
|
|
125
|
+
export function authRegistrationExecutorGrants(space, connId, instanceId) {
|
|
126
|
+
const auth = `KV_${epAuthBucket(space)}`;
|
|
127
|
+
const records = `KV_${recordsBucket(space)}`;
|
|
128
|
+
const gateKey = epgateKey(AUTH_ENDPOINT, instanceId);
|
|
129
|
+
const credPrefix = epcredFamilyPrefix(AUTH_ENDPOINT, instanceId);
|
|
130
|
+
const repairKey = eprepairKey(AUTH_ENDPOINT, instanceId);
|
|
131
|
+
const recordKeys = [
|
|
132
|
+
recordSpecKey(RECORD_KINDS.svc, [AUTH_ENDPOINT, assertLifecycleToken(instanceId, "instanceId")]),
|
|
133
|
+
recordStatusKey(RECORD_KINDS.svc, [AUTH_ENDPOINT, assertLifecycleToken(instanceId, "instanceId")]),
|
|
134
|
+
recordAtomicKey(GOVERN_HEAD, [AUTH_ENDPOINT]),
|
|
135
|
+
];
|
|
136
|
+
const inbox = assertInboxConnId(connId);
|
|
137
|
+
return {
|
|
138
|
+
publish: [
|
|
139
|
+
"$JS.API.INFO",
|
|
140
|
+
`$JS.API.STREAM.MSG.GET.${auth}`,
|
|
141
|
+
`$JS.API.STREAM.MSG.GET.${records}`,
|
|
142
|
+
// Registration Phase 2 enumerates the epcred family (`kv.keys('epcred.<endpoint>.<instanceId>.>')`)
|
|
143
|
+
// to revoke + verify-evict a superseded serve family before publishing a new spec (SPEC 13.1).
|
|
144
|
+
// `kv.keys()` opens an ephemeral ordered consumer, so the executor needs CONSUMER lifecycle on
|
|
145
|
+
// the auth stream, scoped the same as the manager's own mirror (`endpointServeExecutorPermissions`,
|
|
146
|
+
// provision.ts:2477-2479): the whole bucket, since a subject-wildcard consumer cannot be key-pinned
|
|
147
|
+
// tighter by a broker ACL.
|
|
148
|
+
`$JS.API.CONSUMER.CREATE.${auth}.>`,
|
|
149
|
+
`$JS.API.CONSUMER.INFO.${auth}.>`,
|
|
150
|
+
`$JS.API.CONSUMER.DELETE.${auth}.>`,
|
|
151
|
+
`$JS.API.DIRECT.GET.${recordsBucket(space)}`,
|
|
152
|
+
`$JS.API.DIRECT.GET.${recordsBucket(space)}.>`,
|
|
153
|
+
`$KV.${epAuthBucket(space)}.${gateKey}`,
|
|
154
|
+
`$KV.${epAuthBucket(space)}.${repairKey}`,
|
|
155
|
+
`$KV.${epAuthBucket(space)}.${credPrefix}.>`,
|
|
156
|
+
...recordKeys.map((k) => `$KV.${recordsBucket(space)}.${k}`),
|
|
157
|
+
`${spacePrefix(space)}.epc.*`,
|
|
158
|
+
`$JS.API.DIRECT.GET.${epcStreamName(space)}.${spacePrefix(space)}.epc.>`,
|
|
159
|
+
],
|
|
160
|
+
subscribe: [`_INBOX_${inbox}.>`],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
103
163
|
/**
|
|
104
164
|
* The BARRIER EXECUTOR's scoped credential grant (SPEC 13.9): the lifecycle-barrier surface —
|
|
105
165
|
* exactly what the takeover barrier (and its retirement sibling) reaches through the sealed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authority-client.js","sourceRoot":"","sources":["../src/authority-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAuB,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAA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YACpC,IAAI,MAAM;gBAAE,MAAM;YAClB,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;gBAClD,MAAM,GAAG,SAAS,CAAC;gBACnB,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,sBAAsB,CAAC,CAAC,IAAI,uDAAuD,CAAC,CAAC;YACxG,CAAC;iBAAM,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;gBAClC,IAAI,CAAC;oBACH,MAAM,GAAG,MAAM,iBAAiB,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBACnD,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,kDAAkD,CAAC,CAAC;gBACvE,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,MAAM,GAAG,SAAS,CAAC;oBACnB,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,gCAAiC,CAAW,EAAE,OAAO,IAAI,MAAM,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC;gBACjH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,EAAE,CAAC;IACL,OAAO;QACL,OAAO,EAAE,GAAG,EAAE;YACZ,IAAI,MAAM,KAAK,SAAS;gBACtB,MAAM,IAAI,eAAe,CAAC,aAAa,EAAE,+KAA+K,CAAC,CAAC;YAC5N,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,KAAK,EAAE,KAAK,IAAI,EAAE;YAChB,MAAM,GAAG,IAAI,CAAC;YACd,MAAM,GAAG,SAAS,CAAC,CAAC,oEAAoE;YACxF,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC;QAClB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export { calloutPermissions, type AclResolver } from "./permissions.js";
|
|
|
8
8
|
export { USER_AUTH_TRUST_SCHEME, userAuthTrustFingerprint, validateRetainedManagedAgent, } from "./continuity.js";
|
|
9
9
|
export { AUTH_PROVIDER_NAME, authCalloutKey, authIssuerKey, authOwnerSecretKey, authServiceKeysKey, clearAuthServiceInfo, ensureCalloutAuth, ensureIssuer, ensureOwnerSecret, ensurePinnedIdp, loadAuthServiceInfo, loadCalloutAuth, loadIssuer, loadOwnerSecret, loadPinnedIdp, loadServiceKeys, saveAuthServiceInfo, saveServiceKeys, spaceIssuer, type AuthServiceInfo, type PinnedIdp, type ServiceKeys, } from "./store.js";
|
|
10
10
|
export { actorLedgerDir, managedActorLedgerDir, findInteractiveActor, findManagedActor, findActorUnified, grantActor, grantManagedActor, ledgerAclResolver, ledgerAuthorizeConnect, ledgerAuthorizeGrant, ledgerAuthorizeAgentExchange, ledgerRowFilename, loadActorLedger, revokeActor, revokeManagedActor, newActorToken, hashActorToken, AGENT_BEARER_TTL_SEC, type ActorKind, type ActorRow, } from "./ledger.js";
|
|
11
|
-
export { runAuthService, openAuthAuthorityPlane, dispatchManagerAuthorityRequest, JWKS_MAX_AGE_SEC, INTERACTIVE_RETIRE_PATH, MANAGED_RETIRE_PATH, VERIFY_ENROLLMENT_PATH, composeUserBundle, finalizeUserBundleEndpoint, checkAdvertisedServer, checkAgentProvisioningUrl, type AuthAuthorityPlane } from "./service.js";
|
|
11
|
+
export { runAuthService, startAuthService, type AuthServiceHandle, openAuthAuthorityPlane, dispatchManagerAuthorityRequest, handleManagerServiceAuthority, JWKS_MAX_AGE_SEC, INTERACTIVE_RETIRE_PATH, MANAGED_RETIRE_PATH, VERIFY_ENROLLMENT_PATH, composeUserBundle, finalizeUserBundleEndpoint, checkAdvertisedServer, checkAgentProvisioningUrl, type AuthAuthorityPlane } from "./service.js";
|
|
12
12
|
export { remoteManagerIssuerGrants } from "./authority-client.js";
|
|
13
13
|
export { authConnectReaderGrants, openConnectReader, authorizeConnectCredential, type ConnectReader, } from "./connect-reader.js";
|
|
14
|
-
export { issueRemoteManagerAuthority, parseRemoteManagerAuthorityRequest, type IssueRemoteManagerAuthorityArgs } from "./manager-authority.js";
|
|
14
|
+
export { admitRemoteRun, authorizeRemoteRunAttempt, parseRemoteRunAttemptRequest, type RemoteRunAttemptGrant, parseRemoteRunAdmissionRequest, authorizeRemoteManagerRenewal, issueRemoteManagerAuthority, parseRemoteManagerAuthorityRequest, type IssueRemoteManagerAuthorityArgs } from "./manager-authority.js";
|
|
15
15
|
export { parseRemoteManagerMaintenanceRequest, authorizeRemoteManagerMaintenance, completeRemoteManagerMaintenance } from "./manager-maintenance.js";
|
|
16
16
|
export { parseRemoteRetainedAgentValidationRequest, authorizeRemoteRetainedAgentValidation, completeRemoteRetainedAgentValidation, remoteManagerCurrentRegistrationProof, type AuthorizeRemoteRetainedAgentValidationArgs, } from "./retained-manager-validation.js";
|
|
17
17
|
export { parseRemoteManagerAdminAuthorizationRequest, authorizeRemoteManagerAdmin } from "./manager-admin-authorization.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,oBAAoB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,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AkB,EAClB,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,KAAK,SAAS,EACd,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,oBAAoB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,UAAU,EACf,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,eAAe,EACf,cAAc,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,SAAS,GACf,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,gBAAgB,EAChB,WAAW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C3F,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,14 +8,14 @@ export { calloutPermissions } from "./permissions.js";
|
|
|
8
8
|
export { USER_AUTH_TRUST_SCHEME, userAuthTrustFingerprint, validateRetainedManagedAgent, } from "./continuity.js";
|
|
9
9
|
export { AUTH_PROVIDER_NAME, authCalloutKey, authIssuerKey, authOwnerSecretKey, authServiceKeysKey, clearAuthServiceInfo, ensureCalloutAuth, ensureIssuer, ensureOwnerSecret, ensurePinnedIdp, loadAuthServiceInfo, loadCalloutAuth, loadIssuer, loadOwnerSecret, loadPinnedIdp, loadServiceKeys, saveAuthServiceInfo, saveServiceKeys, spaceIssuer, } from "./store.js";
|
|
10
10
|
export { actorLedgerDir, managedActorLedgerDir, findInteractiveActor, findManagedActor, findActorUnified, grantActor, grantManagedActor, ledgerAclResolver, ledgerAuthorizeConnect, ledgerAuthorizeGrant, ledgerAuthorizeAgentExchange, ledgerRowFilename, loadActorLedger, revokeActor, revokeManagedActor, newActorToken, hashActorToken, AGENT_BEARER_TTL_SEC, } from "./ledger.js";
|
|
11
|
-
export { runAuthService, openAuthAuthorityPlane, dispatchManagerAuthorityRequest, JWKS_MAX_AGE_SEC, INTERACTIVE_RETIRE_PATH, MANAGED_RETIRE_PATH, VERIFY_ENROLLMENT_PATH, composeUserBundle, finalizeUserBundleEndpoint, checkAdvertisedServer, checkAgentProvisioningUrl } from "./service.js";
|
|
11
|
+
export { runAuthService, startAuthService, openAuthAuthorityPlane, dispatchManagerAuthorityRequest, handleManagerServiceAuthority, JWKS_MAX_AGE_SEC, INTERACTIVE_RETIRE_PATH, MANAGED_RETIRE_PATH, VERIFY_ENROLLMENT_PATH, composeUserBundle, finalizeUserBundleEndpoint, checkAdvertisedServer, checkAgentProvisioningUrl } from "./service.js";
|
|
12
12
|
export { remoteManagerIssuerGrants } from "./authority-client.js";
|
|
13
13
|
// The R1 connect-arm deny-new READ seam (SPEC 13.1): the reader grant builder, the sealed
|
|
14
14
|
// shape-proved reader, and the pure connect-credential check the production composition runs.
|
|
15
15
|
// The WRITE side (authority-client, root-credential, activateLifecycleAtUid) stays
|
|
16
16
|
// package-internal — the sealed plane is its only production door; smokes import the modules.
|
|
17
17
|
export { authConnectReaderGrants, openConnectReader, authorizeConnectCredential, } from "./connect-reader.js";
|
|
18
|
-
export { issueRemoteManagerAuthority, parseRemoteManagerAuthorityRequest } from "./manager-authority.js";
|
|
18
|
+
export { admitRemoteRun, authorizeRemoteRunAttempt, parseRemoteRunAttemptRequest, parseRemoteRunAdmissionRequest, authorizeRemoteManagerRenewal, issueRemoteManagerAuthority, parseRemoteManagerAuthorityRequest } from "./manager-authority.js";
|
|
19
19
|
export { parseRemoteManagerMaintenanceRequest, authorizeRemoteManagerMaintenance, completeRemoteManagerMaintenance } from "./manager-maintenance.js";
|
|
20
20
|
export { parseRemoteRetainedAgentValidationRequest, authorizeRemoteRetainedAgentValidation, completeRemoteRetainedAgentValidation, remoteManagerCurrentRegistrationProof, } from "./retained-manager-validation.js";
|
|
21
21
|
export { parseRemoteManagerAdminAuthorizationRequest, authorizeRemoteManagerAdmin } from "./manager-admin-authorization.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,GAMjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,GAKpB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,GAMnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,eAAe,EACf,cAAc,GAMf,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EACf,YAAY,GAIb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kBAAkB,EAAoB,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,eAAe,EACf,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,WAAW,GAIZ,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,oBAAoB,GAGrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,yBAAyB,EAA2B,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO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,mBAAmB,EAA6G,MAAM,qBAAqB,CAAC;AACjQ,6FAA6F;AAC7F,sFAAsF;AACtF,6FAA6F;AAC7F,uFAAuF;AACvF,4FAA4F;AAC5F,qFAAqF;AACrF,8DAA8D;AAC9D,OAAO,EACL,qBAAqB,EAAE,0BAA0B,EACjD,0BAA0B,EAAE,2BAA2B,GAExD,MAAM,yBAAyB,CAAC;AACjC,wFAAwF;AACxF,uFAAuF;AACvF,4FAA4F;AAC5F,yFAAyF;AACzF,iGAAiG;AACjG,4FAA4F;AAC5F,0FAA0F;AAC1F,yFAAyF;AACzF,wFAAwF;AACxF,WAAW"}
|
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import { remoteManagerActors, type RemoteManagerAuthorityMaterial, type RemoteManagerAuthorityRequest } from "@cotal-ai/core";
|
|
1
|
+
import { remoteManagerActors, type RemoteManagerAuthorityMaterial, type RemoteManagerAuthorityRequest, type RemoteRunAdmissionRequest, type RemoteRunAttemptRequest, type RunAdmissionView, type RunStatusValue, type RunDriverGrantArgs, type RunOperatorGrantArgs, type RemoteRunAdmissionResult, type IssuedStore, type IssuedSourceRef } from "@cotal-ai/core";
|
|
2
|
+
import type { KV } from "@nats-io/kv";
|
|
3
|
+
/** Host-only renewal authorization. The embedding host supplies a fresh gate and active run
|
|
4
|
+
* observation from its authoritative stores, never coordinates asserted by the participant. */
|
|
5
|
+
export declare function authorizeRemoteManagerRenewal(args: {
|
|
6
|
+
request: RemoteManagerAuthorityRequest;
|
|
7
|
+
owner: string;
|
|
8
|
+
space: string;
|
|
9
|
+
accountPublicKey: string;
|
|
10
|
+
proofSecret: string | Uint8Array;
|
|
11
|
+
observeManagerGate: (instanceId: string) => Promise<{
|
|
12
|
+
state: "open" | "frozen" | "retired";
|
|
13
|
+
principal: string;
|
|
14
|
+
processEpoch: number;
|
|
15
|
+
registrationRevision: number;
|
|
16
|
+
} | null>;
|
|
17
|
+
observeRun: (runId: string) => Promise<{
|
|
18
|
+
state: string;
|
|
19
|
+
holder: string;
|
|
20
|
+
takeoverId: string;
|
|
21
|
+
epoch: number;
|
|
22
|
+
fencingToken: number;
|
|
23
|
+
instanceId: string;
|
|
24
|
+
} | null>;
|
|
25
|
+
}): Promise<void>;
|
|
2
26
|
/** Host-only typed request after the IdP proof and ledger row have been authenticated. */
|
|
3
27
|
export interface IssueRemoteManagerAuthorityArgs {
|
|
4
28
|
request: RemoteManagerAuthorityRequest;
|
|
@@ -14,10 +38,87 @@ export interface IssueRemoteManagerAuthorityArgs {
|
|
|
14
38
|
credentials: RemoteManagerAuthorityMaterial["credentials"];
|
|
15
39
|
nextRegistrationProof?: string;
|
|
16
40
|
}>;
|
|
41
|
+
/** The host must fresh-read the assigned account, manager gate and, for a run, activated
|
|
42
|
+
* journal attempt before signing. No callback means the renewal operation is unavailable. */
|
|
43
|
+
authorizeRenewal?: (args: {
|
|
44
|
+
owner: string;
|
|
45
|
+
request: RemoteManagerAuthorityRequest;
|
|
46
|
+
}) => Promise<void>;
|
|
17
47
|
now?: () => number;
|
|
18
48
|
}
|
|
19
49
|
/** Closed request parser: unknown fields and profile-like extensions are refused, never ignored. */
|
|
20
50
|
export declare function parseRemoteManagerAuthorityRequest(raw: unknown): RemoteManagerAuthorityRequest;
|
|
21
51
|
/** Issue one lifecycle phase after the IdP proof and interactive row were fresh-read. */
|
|
22
52
|
export declare function issueRemoteManagerAuthority(args: IssueRemoteManagerAuthorityArgs): Promise<RemoteManagerAuthorityMaterial>;
|
|
53
|
+
type ManagerGate = {
|
|
54
|
+
state: "open" | "frozen" | "retired";
|
|
55
|
+
principal: string;
|
|
56
|
+
processEpoch: number;
|
|
57
|
+
registrationRevision: number;
|
|
58
|
+
};
|
|
59
|
+
/** Closed parser for {@link RemoteRunAdmissionRequest}: unknown fields refuse, never ignored. */
|
|
60
|
+
export declare function parseRemoteRunAdmissionRequest(raw: unknown): RemoteRunAdmissionRequest;
|
|
61
|
+
/**
|
|
62
|
+
* Host-side first-run admission for a registered signerless manager. The manager is trusted only to
|
|
63
|
+
* forward the `ep.v1` request subject it served (delegation to the registered host, not a proof of
|
|
64
|
+
* an arbitrary message). Everything else is derived here: the caller and generation come from the
|
|
65
|
+
* subject, the evidence and live sources from the issued store, the ceiling from that evidence.
|
|
66
|
+
* Every refusal happens before the create; an exact retry returns the admission already written.
|
|
67
|
+
*/
|
|
68
|
+
export declare function admitRemoteRun(args: {
|
|
69
|
+
request: unknown;
|
|
70
|
+
owner: string;
|
|
71
|
+
space: string;
|
|
72
|
+
accountPublicKey: string;
|
|
73
|
+
proofSecret: string | Uint8Array;
|
|
74
|
+
endpoint: string;
|
|
75
|
+
observeManagerGate: (instanceId: string) => Promise<ManagerGate | null>;
|
|
76
|
+
issued: IssuedStore;
|
|
77
|
+
sourceIsLive: (source: IssuedSourceRef) => Promise<boolean>;
|
|
78
|
+
admissions: KV;
|
|
79
|
+
now?: () => number;
|
|
80
|
+
}): Promise<RemoteRunAdmissionResult>;
|
|
81
|
+
/** Closed parser for {@link RemoteRunAttemptRequest}. */
|
|
82
|
+
export declare function parseRemoteRunAttemptRequest(raw: unknown): RemoteRunAttemptRequest;
|
|
83
|
+
/** What the host then signs, and nothing else: one fixed profile per caller-held nkey. */
|
|
84
|
+
export type RemoteRunAttemptGrant = {
|
|
85
|
+
kind: "attempt";
|
|
86
|
+
driver: {
|
|
87
|
+
id: string;
|
|
88
|
+
profile: "run-driver";
|
|
89
|
+
runDriver: RunDriverGrantArgs;
|
|
90
|
+
};
|
|
91
|
+
mediator: {
|
|
92
|
+
id: string;
|
|
93
|
+
profile: "run-mediator";
|
|
94
|
+
runMediator: RunDriverGrantArgs;
|
|
95
|
+
};
|
|
96
|
+
} | {
|
|
97
|
+
kind: "operator";
|
|
98
|
+
operator: {
|
|
99
|
+
id: string;
|
|
100
|
+
profile: "run-operator";
|
|
101
|
+
runOperator: RunOperatorGrantArgs;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Host-only authorization for {@link RemoteRunAttemptRequest}. Every coordinate the returned grant
|
|
106
|
+
* pins is derived from host stores: the admission must exist unrevoked on this instance, the
|
|
107
|
+
* attempt must be exactly the next epoch/fencing token the run record implies (1/1 for a first
|
|
108
|
+
* attempt with no record, as stock `start` launches), and an answer must name a waiting pause.
|
|
109
|
+
* Refuses before the host signs anything.
|
|
110
|
+
*/
|
|
111
|
+
export declare function authorizeRemoteRunAttempt(args: {
|
|
112
|
+
request: unknown;
|
|
113
|
+
owner: string;
|
|
114
|
+
space: string;
|
|
115
|
+
accountPublicKey: string;
|
|
116
|
+
proofSecret: string | Uint8Array;
|
|
117
|
+
endpoint: string;
|
|
118
|
+
observeManagerGate: (instanceId: string) => Promise<ManagerGate | null>;
|
|
119
|
+
readAdmission: (runId: string) => Promise<RunAdmissionView>;
|
|
120
|
+
readRunStatus: (runId: string) => Promise<RunStatusValue | undefined>;
|
|
121
|
+
checkpointWaiting: (token: string) => Promise<boolean>;
|
|
122
|
+
}): Promise<RemoteRunAttemptGrant>;
|
|
123
|
+
export {};
|
|
23
124
|
//# sourceMappingURL=manager-authority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager-authority.d.ts","sourceRoot":"","sources":["../src/manager-authority.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,mBAAmB,EACnB,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,
|
|
1
|
+
{"version":3,"file":"manager-authority.d.ts","sourceRoot":"","sources":["../src/manager-authority.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,mBAAmB,EACnB,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAE7B,KAAK,WAAW,EAChB,KAAK,eAAe,EAQrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,EA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