@treeseed/sdk 0.13.0-rc.122 → 0.13.0-rc.124
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/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1392 -974
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +72 -27
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +34 -34
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.d.ts +2 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-path.js +13 -0
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -0
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.d.ts +126 -1
- package/dist/agent-capacity/contracts/capacity/providers/supply-policy.js +35 -1
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -3
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +21 -15
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.d.ts +3 -42
- package/dist/agent-capacity/contracts/capacity/workdays/capability-accounting.js +8 -8
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +227 -66
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +54 -19
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +214 -5
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.js +19 -0
- package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +47 -47
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +119 -0
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.js +16 -0
- package/dist/agent-capacity/contracts/support/execution-graph.d.ts +434 -230
- package/dist/agent-capacity/contracts/support/execution-graph.js +20 -18
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +2 -0
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +286 -254
- package/dist/agent-capacity/validation/agent-definition-schema.js +22 -28
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +1 -1
- package/dist/agent-capacity/validation/assignment-records.js +45 -0
- package/dist/capacity/agents/agent-capacity.d.ts +1 -0
- package/dist/capacity/agents/agent-capacity.js +1 -0
- package/dist/capacity-provider/capability-ontology.d.ts +102 -102
- package/dist/capacity-provider/client.d.ts +14 -7
- package/dist/capacity-provider/client.js +1 -4
- package/dist/capacity-provider/contracts/capacity-facts.d.ts +0 -1
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +40 -40
- package/dist/capacity-provider/contracts/governance.d.ts +2 -17
- package/dist/capacity-provider/contracts/index.d.ts +2 -0
- package/dist/capacity-provider/contracts/index.js +2 -0
- package/dist/capacity-provider/core-capability-catalog.d.ts +7 -7
- package/dist/capacity-provider/environment-catalog.d.ts +22 -22
- package/dist/capacity-provider/environment-catalog.js +1 -1
- package/dist/capacity-provider/install-configuration.d.ts +4 -4
- package/dist/capacity-provider/sandbox-contracts.d.ts +54 -54
- package/dist/capacity-provider/source-workspace.d.ts +76 -76
- package/dist/capacity-provider/validation.d.ts +10 -2
- package/dist/capacity-provider/validation.js +52 -22
- package/dist/content/validation/agent-operational-content-schemas.d.ts +120 -118
- package/dist/content/validation/agent-operational-content-schemas.js +2 -0
- package/dist/content/validation/auxiliary-content-schemas.d.ts +92 -92
- package/dist/content/validation/content-model-schemas.d.ts +3155 -2512
- package/dist/content/validation/content-model-schemas.js +97 -87
- package/dist/content/validation/portable-content-data.d.ts +173 -168
- package/dist/content/validation/schema-constraints.d.ts +78 -0
- package/dist/content/validation/schema-constraints.js +149 -0
- package/dist/deployment/ai/storage.d.ts +20 -20
- package/dist/deployment/ai-hosting.d.ts +12 -12
- package/dist/deployment/ai-instance.d.ts +12 -12
- package/dist/deployment/ai-mode.d.ts +34 -34
- package/dist/deployment/hosted-topology-template.d.ts +25 -25
- package/dist/deployment/hosted-topology.d.ts +146 -146
- package/dist/deployment/postgres/transfer.d.ts +2 -2
- package/dist/deployment/schemas.d.ts +504 -504
- package/dist/development/schemas.d.ts +325 -325
- package/dist/graph/context-query-contracts.js +1 -1
- package/dist/guarantees/index.d.ts +26 -2
- package/dist/identity/contracts.js +6 -1
- package/dist/operator-contracts/canonical-command-tree.js +22 -8
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +27 -27
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +25 -25
- package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +11 -9
- package/dist/operator-contracts/catalog/communication-operations.d.ts +108 -90
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +33 -33
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +27 -27
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +4 -4
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.js +2 -1
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +5 -5
- package/dist/operator-contracts/catalog/provider-environment-operations.d.ts +3 -3
- package/dist/operator-contracts/catalog/services/secret-operations.d.ts +16 -8
- package/dist/operator-contracts/catalog/services/secret-operations.js +2 -1
- package/dist/operator-contracts/catalog/workdays/profile-operations.d.ts +11 -11
- package/dist/operator-contracts/catalog/workdays/selection-commands.js +7 -6
- package/dist/operator-contracts/communication/contracts.d.ts +340 -198
- package/dist/operator-contracts/communication/contracts.js +6 -1
- package/dist/operator-contracts/control-plane-operation.d.ts +7 -0
- package/dist/operator-contracts/control-plane-operation.js +6 -0
- package/dist/operator-contracts/control-plane-operations.d.ts +469 -442
- package/dist/operator-contracts/control-plane-operations.js +26 -10
- package/dist/operator-contracts/inbox/contracts.d.ts +100 -100
- package/dist/operator-contracts/knowledge/contracts.d.ts +6 -6
- package/dist/operator-contracts/mcp.js +4 -3
- package/dist/operator-contracts/workday-lifecycle.d.ts +192 -2
- package/dist/operator-contracts/workday-lifecycle.js +108 -45
- package/dist/platform/agent-schema-verification.js +316 -33
- package/dist/platform/contracts.d.ts +72 -72
- package/dist/platform/schemas.d.ts +144 -36
- package/dist/platform/schemas.js +26 -0
- package/dist/platform/verification.js +4 -0
- package/dist/sdk-types/support/sdk-search-request.d.ts +2 -2
- package/dist/secrets-capability/secret-contracts.d.ts +2 -2
- package/dist/secrets-capability/shared-access.d.ts +1 -1
- package/dist/secrets-capability/shared-resources.d.ts +30 -30
- package/dist/security/encrypted-envelope.d.ts +6 -6
- package/dist/treedx/client.d.ts +4 -4
- package/dist/treedx/index.d.ts +1 -1
- package/dist/treedx/index.js +1 -0
- package/dist/treedx/types.d.ts +286 -0
- package/dist/treedx/types.js +44 -0
- package/dist/types/agents/agent-activity-profile.d.ts +1 -0
- package/guarantees/agent/golden/component-boundaries.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product-custody.guarantee.yaml +12 -0
- package/guarantees/agent/golden/product.guarantee.yaml +12 -0
- package/guarantees/agent/golden/scenes/component-boundaries.scene.yaml +837 -0
- package/guarantees/agent/golden/scenes/product-custody.scene.yaml +53 -0
- package/guarantees/agent/golden/scenes/product.scene.yaml +8 -0
- package/guarantees/verifiers/golden.verifiers.yaml +1429 -0
- package/package.json +10 -5
- package/tests/acceptance/golden-product.test.ts +205 -0
- package/tests/acceptance/golden-product.ts +404 -0
- package/tests/acceptance/product/base-red.ts +73 -0
- package/tests/acceptance/product/documentation-examples.ts +68 -0
- package/tests/acceptance/product/intent-runtime.ts +145 -0
- package/tests/acceptance/product/release-output.ts +160 -0
- package/tests/acceptance/product/research-artifact.ts +87 -0
- package/tests/acceptance/product/research-revision.ts +82 -0
- package/tests/acceptance/product/research-source.ts +91 -0
- package/tests/acceptance/product/test-chain.ts +192 -0
- package/treeseed.package.yaml +147 -0
- package/dist/.treeseed-build-complete.json +0 -1
|
@@ -10,15 +10,15 @@ export declare function inboxOperations(): {
|
|
|
10
10
|
}, undefined, {
|
|
11
11
|
schemaVersion: "treeseed.inbox-page/v1";
|
|
12
12
|
items: {
|
|
13
|
-
status: "
|
|
13
|
+
status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
|
|
14
14
|
kind: "question" | "proposal";
|
|
15
15
|
id: string;
|
|
16
16
|
version: number;
|
|
17
|
-
|
|
18
|
-
teamId: string;
|
|
17
|
+
title: string;
|
|
19
18
|
createdAt: string;
|
|
20
19
|
updatedAt: string;
|
|
21
|
-
|
|
20
|
+
teamId: string;
|
|
21
|
+
projectId: string;
|
|
22
22
|
authorId: string;
|
|
23
23
|
projectSlug: string;
|
|
24
24
|
authorLabel: string;
|
|
@@ -30,21 +30,21 @@ export declare function inboxOperations(): {
|
|
|
30
30
|
teamId: string;
|
|
31
31
|
itemId: string;
|
|
32
32
|
}, {}, undefined, {
|
|
33
|
-
status: "
|
|
33
|
+
status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
|
|
34
34
|
kind: "question" | "proposal";
|
|
35
35
|
id: string;
|
|
36
36
|
version: number;
|
|
37
37
|
schemaVersion: "treeseed.inbox-item/v1";
|
|
38
|
-
|
|
39
|
-
teamId: string;
|
|
38
|
+
title: string;
|
|
40
39
|
createdAt: string;
|
|
41
40
|
updatedAt: string;
|
|
42
|
-
|
|
41
|
+
teamId: string;
|
|
42
|
+
projectId: string;
|
|
43
43
|
discussionId: string | null;
|
|
44
44
|
authorId: string;
|
|
45
45
|
provenance: {
|
|
46
|
-
digest: string | null;
|
|
47
46
|
commitSha: string | null;
|
|
47
|
+
digest: string | null;
|
|
48
48
|
repositoryId: string | null;
|
|
49
49
|
contentPath: string | null;
|
|
50
50
|
};
|
|
@@ -66,8 +66,8 @@ export declare function inboxOperations(): {
|
|
|
66
66
|
parentId: string | null;
|
|
67
67
|
authorId: string;
|
|
68
68
|
provenance: {
|
|
69
|
-
digest: string | null;
|
|
70
69
|
commitSha: string | null;
|
|
70
|
+
digest: string | null;
|
|
71
71
|
repositoryId: string | null;
|
|
72
72
|
contentPath: string | null;
|
|
73
73
|
};
|
|
@@ -87,8 +87,8 @@ export declare function inboxOperations(): {
|
|
|
87
87
|
type: "item.created" | "item.updated" | "item.deleted" | "draft.updated" | "comment.created" | "question.answered" | "question.reopened" | "proposal.revised" | "proposal.decided";
|
|
88
88
|
id: string;
|
|
89
89
|
schemaVersion: "treeseed.inbox-event/v1";
|
|
90
|
-
teamId: string;
|
|
91
90
|
summary: string;
|
|
91
|
+
teamId: string;
|
|
92
92
|
sequence: string;
|
|
93
93
|
payload: Record<string, unknown>;
|
|
94
94
|
occurredAt: string;
|
|
@@ -100,8 +100,8 @@ export declare function inboxOperations(): {
|
|
|
100
100
|
createQuestion: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
101
101
|
teamId: string;
|
|
102
102
|
}, {}, {
|
|
103
|
-
projectId: string;
|
|
104
103
|
title: string;
|
|
104
|
+
projectId: string;
|
|
105
105
|
markdown: string;
|
|
106
106
|
severity?: "blocking" | "advisory" | undefined;
|
|
107
107
|
relatedObjectives?: string[] | undefined;
|
|
@@ -112,21 +112,21 @@ export declare function inboxOperations(): {
|
|
|
112
112
|
}, {
|
|
113
113
|
schemaVersion: "treeseed.inbox-mutation-receipt/v1";
|
|
114
114
|
item: {
|
|
115
|
-
status: "
|
|
115
|
+
status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
|
|
116
116
|
kind: "question" | "proposal";
|
|
117
117
|
id: string;
|
|
118
118
|
version: number;
|
|
119
119
|
schemaVersion: "treeseed.inbox-item/v1";
|
|
120
|
-
|
|
121
|
-
teamId: string;
|
|
120
|
+
title: string;
|
|
122
121
|
createdAt: string;
|
|
123
122
|
updatedAt: string;
|
|
124
|
-
|
|
123
|
+
teamId: string;
|
|
124
|
+
projectId: string;
|
|
125
125
|
discussionId: string | null;
|
|
126
126
|
authorId: string;
|
|
127
127
|
provenance: {
|
|
128
|
-
digest: string | null;
|
|
129
128
|
commitSha: string | null;
|
|
129
|
+
digest: string | null;
|
|
130
130
|
repositoryId: string | null;
|
|
131
131
|
contentPath: string | null;
|
|
132
132
|
};
|
|
@@ -148,8 +148,8 @@ export declare function inboxOperations(): {
|
|
|
148
148
|
parentId: string | null;
|
|
149
149
|
authorId: string;
|
|
150
150
|
provenance: {
|
|
151
|
-
digest: string | null;
|
|
152
151
|
commitSha: string | null;
|
|
152
|
+
digest: string | null;
|
|
153
153
|
repositoryId: string | null;
|
|
154
154
|
contentPath: string | null;
|
|
155
155
|
};
|
|
@@ -163,8 +163,8 @@ export declare function inboxOperations(): {
|
|
|
163
163
|
receipts?: Record<string, unknown>[] | undefined;
|
|
164
164
|
}>;
|
|
165
165
|
getDraft: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
166
|
-
teamId: string;
|
|
167
166
|
purpose: "feedback" | "proposal_revision";
|
|
167
|
+
teamId: string;
|
|
168
168
|
itemId: string;
|
|
169
169
|
}, {}, undefined, {
|
|
170
170
|
schemaVersion: "treeseed.inbox-draft/v1";
|
|
@@ -177,8 +177,8 @@ export declare function inboxOperations(): {
|
|
|
177
177
|
baseVersion: number;
|
|
178
178
|
} | null>;
|
|
179
179
|
putDraft: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
180
|
-
teamId: string;
|
|
181
180
|
purpose: "feedback" | "proposal_revision";
|
|
181
|
+
teamId: string;
|
|
182
182
|
itemId: string;
|
|
183
183
|
}, {}, {
|
|
184
184
|
markdown: string;
|
|
@@ -194,8 +194,8 @@ export declare function inboxOperations(): {
|
|
|
194
194
|
baseVersion: number;
|
|
195
195
|
}>;
|
|
196
196
|
deleteDraft: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
197
|
-
teamId: string;
|
|
198
197
|
purpose: "feedback" | "proposal_revision";
|
|
198
|
+
teamId: string;
|
|
199
199
|
itemId: string;
|
|
200
200
|
}, {}, {}, {
|
|
201
201
|
deleted: boolean;
|
|
@@ -212,21 +212,21 @@ export declare function inboxOperations(): {
|
|
|
212
212
|
}, {
|
|
213
213
|
schemaVersion: "treeseed.inbox-mutation-receipt/v1";
|
|
214
214
|
item: {
|
|
215
|
-
status: "
|
|
215
|
+
status: "rejected" | "approved" | "closed" | "answered" | "outstanding" | "deleted";
|
|
216
216
|
kind: "question" | "proposal";
|
|
217
217
|
id: string;
|
|
218
218
|
version: number;
|
|
219
219
|
schemaVersion: "treeseed.inbox-item/v1";
|
|
220
|
-
|
|
221
|
-
teamId: string;
|
|
220
|
+
title: string;
|
|
222
221
|
createdAt: string;
|
|
223
222
|
updatedAt: string;
|
|
224
|
-
|
|
223
|
+
teamId: string;
|
|
224
|
+
projectId: string;
|
|
225
225
|
discussionId: string | null;
|
|
226
226
|
authorId: string;
|
|
227
227
|
provenance: {
|
|
228
|
-
digest: string | null;
|
|
229
228
|
commitSha: string | null;
|
|
229
|
+
digest: string | null;
|
|
230
230
|
repositoryId: string | null;
|
|
231
231
|
contentPath: string | null;
|
|
232
232
|
};
|
|
@@ -248,8 +248,8 @@ export declare function inboxOperations(): {
|
|
|
248
248
|
parentId: string | null;
|
|
249
249
|
authorId: string;
|
|
250
250
|
provenance: {
|
|
251
|
-
digest: string | null;
|
|
252
251
|
commitSha: string | null;
|
|
252
|
+
digest: string | null;
|
|
253
253
|
repositoryId: string | null;
|
|
254
254
|
contentPath: string | null;
|
|
255
255
|
};
|
|
@@ -19,9 +19,9 @@ export declare const AI_INSTANCE_OPERATIONS: {
|
|
|
19
19
|
instanceId: string;
|
|
20
20
|
}, {}, {
|
|
21
21
|
name: string;
|
|
22
|
-
|
|
23
|
-
purpose: "both" | "inference" | "training";
|
|
22
|
+
purpose: "inference" | "both" | "training";
|
|
24
23
|
model: string;
|
|
24
|
+
projectId: string;
|
|
25
25
|
}, Record<string, unknown>>;
|
|
26
26
|
list: import("../../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
27
27
|
teamId: string;
|
|
@@ -38,10 +38,10 @@ export declare const AI_INSTANCE_OPERATIONS: {
|
|
|
38
38
|
instanceId: string;
|
|
39
39
|
}, {}, {
|
|
40
40
|
name: string;
|
|
41
|
-
projectId: string;
|
|
42
41
|
schedule: "always" | "weekdays";
|
|
43
|
-
purpose: "
|
|
42
|
+
purpose: "inference" | "both" | "training";
|
|
44
43
|
model: string;
|
|
44
|
+
projectId: string;
|
|
45
45
|
timeZone: string;
|
|
46
46
|
hostingConnectionId: string;
|
|
47
47
|
storageConnectionId: string | null;
|
|
@@ -6,7 +6,8 @@ const team = z.object({ teamId: z.string().min(1) }).strict(), instance = team.e
|
|
|
6
6
|
const empty = z.object({}).strict(), record = z.record(z.unknown());
|
|
7
7
|
function descriptor(action, method, path) {
|
|
8
8
|
const read = method === "GET";
|
|
9
|
-
|
|
9
|
+
const oauthScopes = read ? ["treeseed:read"] : ["treeseed:admin"];
|
|
10
|
+
return { operationId: `ai.instances.${action}`, description: `${action} a team-owned AI configuration; no cloud provisioning.`, rest: { method, path }, parameters: `treeseed.ai.instances.${action}.parameters/v1`, capability: read ? "infrastructure.read" : "infrastructure.write", authentication: "oauth", oauthScopes, kind: read ? "read" : "mutation", riskClass: "ordinary", confirmation: "never", surfaces: ["rest", "cli"], cacheScope: read ? "principal" : "none", pagination: "none", concurrencyRequired: !read };
|
|
10
11
|
}
|
|
11
12
|
const AI_INSTANCE_OPERATIONS = {
|
|
12
13
|
storageShow: defineOperation({ ...descriptor("storageShow", "GET", "/v1/teams/{teamId}/ai-instances/{instanceId}/storage"), operationId: "ai.instances.storage.show", parameters: "treeseed.ai.instances.storage.show.parameters/v1" }, { path: instance, query: empty, body: z.undefined(), output: record }),
|
|
@@ -14,8 +14,8 @@ export declare function knowledgeShareOperations(): {
|
|
|
14
14
|
sourceTeamId: string;
|
|
15
15
|
revokedAt: string | null;
|
|
16
16
|
expiresAt?: string | null | undefined;
|
|
17
|
-
paths?: string[] | undefined;
|
|
18
17
|
operations?: ("query" | "read" | "context" | "graph")[] | undefined;
|
|
18
|
+
paths?: string[] | undefined;
|
|
19
19
|
contentModels?: string[] | undefined;
|
|
20
20
|
}[];
|
|
21
21
|
}>;
|
|
@@ -33,8 +33,8 @@ export declare function knowledgeShareOperations(): {
|
|
|
33
33
|
sourceTeamId: string;
|
|
34
34
|
revokedAt: string | null;
|
|
35
35
|
expiresAt?: string | null | undefined;
|
|
36
|
-
paths?: string[] | undefined;
|
|
37
36
|
operations?: ("query" | "read" | "context" | "graph")[] | undefined;
|
|
37
|
+
paths?: string[] | undefined;
|
|
38
38
|
contentModels?: string[] | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
grant: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
@@ -43,8 +43,8 @@ export declare function knowledgeShareOperations(): {
|
|
|
43
43
|
projectIds: string[];
|
|
44
44
|
targetTeamId: string;
|
|
45
45
|
expiresAt?: string | null | undefined;
|
|
46
|
-
paths?: string[] | undefined;
|
|
47
46
|
operations?: ("query" | "read" | "context" | "graph")[] | undefined;
|
|
47
|
+
paths?: string[] | undefined;
|
|
48
48
|
contentModels?: string[] | undefined;
|
|
49
49
|
}, {
|
|
50
50
|
status: "active" | "revoked" | "expired";
|
|
@@ -57,8 +57,8 @@ export declare function knowledgeShareOperations(): {
|
|
|
57
57
|
sourceTeamId: string;
|
|
58
58
|
revokedAt: string | null;
|
|
59
59
|
expiresAt?: string | null | undefined;
|
|
60
|
-
paths?: string[] | undefined;
|
|
61
60
|
operations?: ("query" | "read" | "context" | "graph")[] | undefined;
|
|
61
|
+
paths?: string[] | undefined;
|
|
62
62
|
contentModels?: string[] | undefined;
|
|
63
63
|
}>;
|
|
64
64
|
revoke: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
@@ -75,8 +75,8 @@ export declare function knowledgeShareOperations(): {
|
|
|
75
75
|
sourceTeamId: string;
|
|
76
76
|
revokedAt: string | null;
|
|
77
77
|
expiresAt?: string | null | undefined;
|
|
78
|
-
paths?: string[] | undefined;
|
|
79
78
|
operations?: ("query" | "read" | "context" | "graph")[] | undefined;
|
|
79
|
+
paths?: string[] | undefined;
|
|
80
80
|
contentModels?: string[] | undefined;
|
|
81
81
|
}>;
|
|
82
82
|
};
|
|
@@ -26,16 +26,16 @@ export declare const PROVIDER_ENVIRONMENT_OPERATIONS: {
|
|
|
26
26
|
};
|
|
27
27
|
readonly environmentGrants: {
|
|
28
28
|
readonly show: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
29
|
-
teamId: string;
|
|
30
29
|
assignmentId: string;
|
|
30
|
+
teamId: string;
|
|
31
31
|
}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
|
|
32
32
|
readonly put: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
33
|
-
teamId: string;
|
|
34
33
|
assignmentId: string;
|
|
34
|
+
teamId: string;
|
|
35
35
|
}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
|
|
36
36
|
readonly revoke: import("../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
37
|
-
teamId: string;
|
|
38
37
|
assignmentId: string;
|
|
38
|
+
teamId: string;
|
|
39
39
|
}, {}, Record<string, unknown> | undefined, Record<string, unknown>>;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -7,12 +7,14 @@ export declare const SECRET_OPERATIONS: {
|
|
|
7
7
|
expectedVersion: number;
|
|
8
8
|
} | undefined, {
|
|
9
9
|
version: number;
|
|
10
|
+
fields: string[];
|
|
10
11
|
teamId: string;
|
|
11
|
-
profileId: string;
|
|
12
12
|
configured: boolean;
|
|
13
|
-
|
|
13
|
+
profileId: string;
|
|
14
14
|
connectionId: string;
|
|
15
15
|
custody: "openbao";
|
|
16
|
+
} | {
|
|
17
|
+
ok: boolean;
|
|
16
18
|
}>;
|
|
17
19
|
readonly putCredentials: import("../../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
18
20
|
teamId: string;
|
|
@@ -22,12 +24,14 @@ export declare const SECRET_OPERATIONS: {
|
|
|
22
24
|
expectedVersion: number;
|
|
23
25
|
} | undefined, {
|
|
24
26
|
version: number;
|
|
27
|
+
fields: string[];
|
|
25
28
|
teamId: string;
|
|
26
|
-
profileId: string;
|
|
27
29
|
configured: boolean;
|
|
28
|
-
|
|
30
|
+
profileId: string;
|
|
29
31
|
connectionId: string;
|
|
30
32
|
custody: "openbao";
|
|
33
|
+
} | {
|
|
34
|
+
ok: boolean;
|
|
31
35
|
}>;
|
|
32
36
|
readonly deleteCredentials: import("../../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
33
37
|
teamId: string;
|
|
@@ -37,12 +41,14 @@ export declare const SECRET_OPERATIONS: {
|
|
|
37
41
|
expectedVersion: number;
|
|
38
42
|
} | undefined, {
|
|
39
43
|
version: number;
|
|
44
|
+
fields: string[];
|
|
40
45
|
teamId: string;
|
|
41
|
-
profileId: string;
|
|
42
46
|
configured: boolean;
|
|
43
|
-
|
|
47
|
+
profileId: string;
|
|
44
48
|
connectionId: string;
|
|
45
49
|
custody: "openbao";
|
|
50
|
+
} | {
|
|
51
|
+
ok: boolean;
|
|
46
52
|
}>;
|
|
47
53
|
readonly validateCredentials: import("../../control-plane-operation.js").ControlPlaneOperationBinding<{
|
|
48
54
|
teamId: string;
|
|
@@ -52,11 +58,13 @@ export declare const SECRET_OPERATIONS: {
|
|
|
52
58
|
expectedVersion: number;
|
|
53
59
|
} | undefined, {
|
|
54
60
|
version: number;
|
|
61
|
+
fields: string[];
|
|
55
62
|
teamId: string;
|
|
56
|
-
profileId: string;
|
|
57
63
|
configured: boolean;
|
|
58
|
-
|
|
64
|
+
profileId: string;
|
|
59
65
|
connectionId: string;
|
|
60
66
|
custody: "openbao";
|
|
67
|
+
} | {
|
|
68
|
+
ok: boolean;
|
|
61
69
|
}>;
|
|
62
70
|
};
|
|
@@ -18,6 +18,7 @@ const put = z.object({
|
|
|
18
18
|
}).strict();
|
|
19
19
|
function operation(name, method) {
|
|
20
20
|
const read = method === "GET";
|
|
21
|
+
const output = name === "validate" ? z.object({ ok: z.boolean() }).strict() : descriptor;
|
|
21
22
|
return defineOperation({
|
|
22
23
|
operationId: `services.credentials.${name}`,
|
|
23
24
|
description: `${name} managed service credentials.`,
|
|
@@ -37,7 +38,7 @@ function operation(name, method) {
|
|
|
37
38
|
path,
|
|
38
39
|
query: z.object({}).strict(),
|
|
39
40
|
body: read ? z.undefined() : name === "put" ? put : z.object({ expectedVersion: version }).strict(),
|
|
40
|
-
output
|
|
41
|
+
output
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
const SECRET_OPERATIONS = {
|
|
@@ -16,26 +16,26 @@ export declare const WORKDAY_PROFILE_OPERATIONS: {
|
|
|
16
16
|
policy: {
|
|
17
17
|
durationSeconds: number;
|
|
18
18
|
maximumConcurrency: number;
|
|
19
|
+
planningPercent: number;
|
|
20
|
+
allocationWeight: number;
|
|
21
|
+
planningTurnMaximumSeconds: number;
|
|
19
22
|
communicationConcurrency: number;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
planningTurnMaximumSeconds?: number | undefined;
|
|
23
|
-
projectPercentages?: Record<string, number> | undefined;
|
|
24
|
-
agentClassPercentages?: Record<string, Record<string, number>> | undefined;
|
|
23
|
+
projectPercentages: Record<string, number>;
|
|
24
|
+
agentClassPercentages: Record<string, Record<string, number>>;
|
|
25
25
|
};
|
|
26
26
|
}, {
|
|
27
27
|
id: "default";
|
|
28
|
-
teamId: string;
|
|
29
28
|
revision: number;
|
|
29
|
+
teamId: string;
|
|
30
30
|
policy: {
|
|
31
31
|
durationSeconds: number;
|
|
32
32
|
maximumConcurrency: number;
|
|
33
|
+
planningPercent: number;
|
|
34
|
+
allocationWeight: number;
|
|
35
|
+
planningTurnMaximumSeconds: number;
|
|
33
36
|
communicationConcurrency: number;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
planningTurnMaximumSeconds?: number | undefined;
|
|
37
|
-
projectPercentages?: Record<string, number> | undefined;
|
|
38
|
-
agentClassPercentages?: Record<string, Record<string, number>> | undefined;
|
|
37
|
+
projectPercentages: Record<string, number>;
|
|
38
|
+
agentClassPercentages: Record<string, Record<string, number>>;
|
|
39
39
|
};
|
|
40
40
|
}>;
|
|
41
41
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
const WORKDAY_SELECTION_INPUTS = [
|
|
2
|
+
{ target: "body", field: "reportingAgentId", source: "option", name: "reportingAgent", required: false, transform: "identity" },
|
|
2
3
|
{ target: "body", field: "allocation.planningPercent", source: "option", name: "planningPercent", transform: "number" },
|
|
3
4
|
{ target: "body", field: "allocation.allocationWeight", source: "option", name: "allocationWeight", transform: "number" },
|
|
4
5
|
{ target: "body", field: "allocation.planningTurnMaximumSeconds", source: "option", name: "planningTurnMaximumSeconds", transform: "integer" },
|
|
5
6
|
{ target: "body", field: "allocation.projectPercentages", source: "option", name: "projectPercentages", transform: "json" },
|
|
6
7
|
{ target: "body", field: "allocation.agentClassPercentages", source: "option", name: "agentClassPercentages", transform: "json" },
|
|
7
|
-
{ target: "body", field: "
|
|
8
|
-
{ target: "body", field: "agentSelection.activityTypes", source: "option", name: "activity", transform: "csv" }
|
|
9
|
-
{ target: "body", field: "agentSelection.classSlugs", source: "option", name: "class", transform: "csv" }
|
|
8
|
+
{ target: "body", field: "groupIds", source: "option", name: "group", transform: "csv" },
|
|
9
|
+
{ target: "body", field: "agentSelection.activityTypes", source: "option", name: "activity", transform: "csv" }
|
|
10
10
|
];
|
|
11
11
|
const WORKDAY_PLAN_OPTIONS = [
|
|
12
|
+
{ name: "--reporting-agent", description: "Closeout Reporter identity; required when several are eligible.", type: "string" },
|
|
12
13
|
{ name: "--planning-percent", description: "Planning share of workday time and capacity (default 20%).", type: "number" },
|
|
13
14
|
{ name: "--allocation-weight", description: "Relative share among eligible concurrent workdays (default 1).", type: "number" },
|
|
14
15
|
{ name: "--planning-turn-maximum-seconds", description: "Maximum active seconds per planning turn (default 180).", type: "number" },
|
|
@@ -19,9 +20,9 @@ const WORKDAY_PLAN_OPTIONS = [
|
|
|
19
20
|
{ name: "--execution-mode", description: "Select simulation or production custody; both consume real capacity.", type: "string" },
|
|
20
21
|
{ name: "--proposal", description: "Governed proposal id for cooperative planning; repeat or comma-separate.", type: "string[]" },
|
|
21
22
|
{ name: "--decision", description: "Accepted decision id; repeat or comma-separate. The API derives and verifies acting authority.", type: "string[]" },
|
|
22
|
-
{ name: "--
|
|
23
|
-
{ name: "--
|
|
24
|
-
{ name: "--
|
|
23
|
+
{ name: "--continue-from", description: "Settled workday whose exact accepted results and review history should continue. Omit for a fresh simulation.", type: "string" },
|
|
24
|
+
{ name: "--group", description: "Shared proposal group; participants come from governed subscriptions. Repeat or comma-separate.", type: "string[]" },
|
|
25
|
+
{ name: "--activity", description: "Planning activity: planning, estimating, reviewing, reporting, or chat; repeat or comma-separate.", type: "string[]" }
|
|
25
26
|
];
|
|
26
27
|
export {
|
|
27
28
|
WORKDAY_PLAN_OPTIONS,
|