@cat-factory/contracts 0.317.0 → 0.319.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/api-keys.d.ts +5 -5
- package/dist/api-keys.d.ts.map +1 -1
- package/dist/api-keys.js +6 -3
- package/dist/api-keys.js.map +1 -1
- package/dist/binary-generators.d.ts +10 -127
- package/dist/binary-generators.d.ts.map +1 -1
- package/dist/binary-generators.js +10 -92
- package/dist/binary-generators.js.map +1 -1
- package/dist/binary-outputs.d.ts +44 -0
- package/dist/binary-outputs.d.ts.map +1 -1
- package/dist/binary-outputs.js +22 -0
- package/dist/binary-outputs.js.map +1 -1
- package/dist/capability-credentials.d.ts +142 -2
- package/dist/capability-credentials.d.ts.map +1 -1
- package/dist/capability-credentials.js +167 -1
- package/dist/capability-credentials.js.map +1 -1
- package/dist/execution.d.ts +2 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/foundational-services.d.ts +88 -2
- package/dist/foundational-services.d.ts.map +1 -1
- package/dist/foundational-services.js +62 -2
- package/dist/foundational-services.js.map +1 -1
- package/dist/modelPolicy.d.ts +1 -1
- package/dist/modelPolicy.js +1 -1
- package/dist/platform-assets.d.ts +22 -0
- package/dist/platform-assets.d.ts.map +1 -1
- package/dist/platform-assets.js +24 -0
- package/dist/platform-assets.js.map +1 -1
- package/dist/reserved-env-keys.d.ts.map +1 -1
- package/dist/reserved-env-keys.js +16 -2
- package/dist/reserved-env-keys.js.map +1 -1
- package/dist/routes/accounts.d.ts +4 -4
- package/dist/routes/agent-runs.d.ts +2 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/api-keys.d.ts +8 -8
- package/dist/routes/bug-hunt.d.ts +2 -0
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/capability-credentials.d.ts +3 -3
- package/dist/routes/execution.d.ts +9 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/foundational-services.d.ts +38 -2
- package/dist/routes/foundational-services.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +1 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +5 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/runners.d.ts +30 -0
- package/dist/routes/runners.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +3 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +2 -0
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/runners.d.ts +208 -0
- package/dist/runners.d.ts.map +1 -1
- package/dist/runners.js +45 -0
- package/dist/runners.js.map +1 -1
- package/dist/snapshot.d.ts +1 -0
- package/dist/snapshot.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ export declare const capabilityCredentialStatusSchema: v.ObjectSchema<{
|
|
|
74
74
|
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name (letters, digits and underscores, not starting with a digit)">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
75
75
|
/** Which capabilities want it — id + label, so the UI can say who a key is for. */
|
|
76
76
|
readonly declaredBy: v.ArraySchema<v.ObjectSchema<{
|
|
77
|
-
readonly subject: v.PicklistSchema<["tool-server", "binary-generator"], undefined>;
|
|
77
|
+
readonly subject: v.PicklistSchema<["tool-server", "binary-generator", "foundational-service"], undefined>;
|
|
78
78
|
readonly id: v.StringSchema<undefined>;
|
|
79
79
|
readonly label: v.StringSchema<undefined>;
|
|
80
80
|
/** The definition's own note on how the value is presented, when it states one. */
|
|
@@ -127,7 +127,7 @@ export declare const capabilityCredentialsViewSchema: v.ObjectSchema<{
|
|
|
127
127
|
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name (letters, digits and underscores, not starting with a digit)">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
128
128
|
/** Which capabilities want it — id + label, so the UI can say who a key is for. */
|
|
129
129
|
readonly declaredBy: v.ArraySchema<v.ObjectSchema<{
|
|
130
|
-
readonly subject: v.PicklistSchema<["tool-server", "binary-generator"], undefined>;
|
|
130
|
+
readonly subject: v.PicklistSchema<["tool-server", "binary-generator", "foundational-service"], undefined>;
|
|
131
131
|
readonly id: v.StringSchema<undefined>;
|
|
132
132
|
readonly label: v.StringSchema<undefined>;
|
|
133
133
|
/** The definition's own note on how the value is presented, when it states one. */
|
|
@@ -182,4 +182,144 @@ export declare const capabilityCredentialEntriesSchema: v.ArraySchema<v.ObjectSc
|
|
|
182
182
|
export declare function parseCapabilityCredentialEntries(raw: unknown): CapabilityCredentialEntry[];
|
|
183
183
|
/** The non-secret summary persisted beside the sealed values, so a read decrypts nothing. */
|
|
184
184
|
export declare function capabilityCredentialsSummary(entries: CapabilityCredentialEntry[], updatedAt: number): CapabilityCredentialRef[];
|
|
185
|
+
/**
|
|
186
|
+
* ONE credential a registered capability needs, declared by NAME only, never a value.
|
|
187
|
+
*
|
|
188
|
+
* The value is resolved per dispatch through the facade-wired `ToolSecretResolver` port (the
|
|
189
|
+
* same port a tool server's credentials go through) and written straight onto the job body,
|
|
190
|
+
* where the harness injects it into THIS JOB's agent environment. It never reaches
|
|
191
|
+
* `AgentRunContext`, a prompt, or the telemetry snapshot: only the key NAME does, because the
|
|
192
|
+
* agent has to know which variable to read.
|
|
193
|
+
*
|
|
194
|
+
* A declarer states a LIST of these, because a vendor's account is not always one string. HTTP Basic over a
|
|
195
|
+
* key/secret pair is the ordinary case that breaks a single field, and it is common enough to be
|
|
196
|
+
* a shape rather than one vendor's eccentricity. Under one field the two halves have to be
|
|
197
|
+
* colon-joined into a single variable, which rotates them together, hands the operator one
|
|
198
|
+
* checklist row where their vendor console shows two values, and turns a mis-joined value into a
|
|
199
|
+
* 401 indistinguishable from a wrong key.
|
|
200
|
+
*/
|
|
201
|
+
export declare const capabilityCredentialSchema: v.ObjectSchema<{
|
|
202
|
+
/**
|
|
203
|
+
* The credential's LOOKUP key: what the secret resolver is asked for, and what a workspace
|
|
204
|
+
* stores its own value under. Also the ENVIRONMENT VARIABLE the agent reads it from unless
|
|
205
|
+
* {@link envName} says otherwise, so it must be a valid POSIX variable name either way: a
|
|
206
|
+
* generator declaring `x-rd-token` would resolve fine and then be dropped by the harness's env
|
|
207
|
+
* validation, which is a silent "the integration just 401s" at run time.
|
|
208
|
+
*
|
|
209
|
+
* It may NOT name a variable the platform's own configuration owns
|
|
210
|
+
* ({@link isReservedPlatformEnvKey}). The resolver reads the key off the deployment's
|
|
211
|
+
* environment and the value is injected into an agent process, so an integration declaring
|
|
212
|
+
* `ENCRYPTION_KEY` would hand a prompt-injectable agent the deployment's master sealing key.
|
|
213
|
+
* Refused here so a deployment learns at boot, and again at dispatch, since a mothership-mode
|
|
214
|
+
* node boot-validates none of the definitions it resolves.
|
|
215
|
+
*/
|
|
216
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
217
|
+
/**
|
|
218
|
+
* The environment variable the value is injected as, when that differs from {@link key}. This
|
|
219
|
+
* is the name the agent is told to read, and it is what a vendor SDK that auto-reads its own
|
|
220
|
+
* documented variable needs.
|
|
221
|
+
*
|
|
222
|
+
* Held to the toolchain rule rather than the reserved-platform one, because it reads nothing:
|
|
223
|
+
* the floor above is about what may be READ off the deployment's environment, and an injection
|
|
224
|
+
* name only decides what a variable is called inside this job's agent process. That is what lets
|
|
225
|
+
* a declaration keep a vendor's documented name even when a platform prefix family covers it.
|
|
226
|
+
*/
|
|
227
|
+
readonly envName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>, undefined>;
|
|
228
|
+
/**
|
|
229
|
+
* How the capability expects the credential to be presented (`X-RD-Token: <value>`,
|
|
230
|
+
* `Authorization: Bearer <value>`). Folded into the brief verbatim: the agent writes the
|
|
231
|
+
* request itself, and a key with no stated header is a key it has to guess the use of.
|
|
232
|
+
*/
|
|
233
|
+
readonly usage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
234
|
+
/**
|
|
235
|
+
* When true (the default), a capability whose credential does not resolve is reported to
|
|
236
|
+
* the agent as UNAVAILABLE rather than offered. Set false only for an endpoint that genuinely
|
|
237
|
+
* works unauthenticated — an agent handed an API whose first call 401s burns a run
|
|
238
|
+
* discovering it.
|
|
239
|
+
*/
|
|
240
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
241
|
+
}, undefined>;
|
|
242
|
+
export type CapabilityCredential = v.InferOutput<typeof capabilityCredentialSchema>;
|
|
243
|
+
/**
|
|
244
|
+
* The two names a credential carries, which is all the fallback below reads.
|
|
245
|
+
*
|
|
246
|
+
* Structural rather than {@link CapabilityCredential} itself, because the DISPATCH projection
|
|
247
|
+
* carries a narrower shape (kernel's `ResolvedBinaryGeneratorCredential`, which drops `usage` and
|
|
248
|
+
* every other prose field the container executor has no use for) and would otherwise have to
|
|
249
|
+
* either widen or re-spell the fallback. A parameter type nothing outside the two names can
|
|
250
|
+
* satisfy is what makes the "one place" claim below enforceable rather than aspirational.
|
|
251
|
+
*/
|
|
252
|
+
export interface CapabilityCredentialNames {
|
|
253
|
+
key: string;
|
|
254
|
+
envName?: string;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* The environment variable one credential arrives as: its {@link CapabilityCredential.envName}
|
|
258
|
+
* when it declares one, else its lookup key.
|
|
259
|
+
*
|
|
260
|
+
* The ONE place that fallback is written, because three layers apply it (the schemas' uniqueness
|
|
261
|
+
* checks, the dispatch-time resolvers that key the job body, and the briefs that tell the
|
|
262
|
+
* agent which variable to read) and a copy that drifted would name a variable that is never set:
|
|
263
|
+
* a capability reported as unavailable on every run, with nothing to see at either end.
|
|
264
|
+
*/
|
|
265
|
+
export declare function credentialInjectionName(credential: CapabilityCredentialNames): string;
|
|
266
|
+
/**
|
|
267
|
+
* The form an injection name is COMPARED in, which is not the form it is injected under.
|
|
268
|
+
*
|
|
269
|
+
* Case-folded, the same way {@link isReservedPlatformEnvKey} folds the lookup key it screens, and
|
|
270
|
+
* for the reason that floor has: environment lookup is case-insensitive on Windows, so `ACME_KEY`
|
|
271
|
+
* and `acme_key` are two variables in the declaration and one variable in the process that reads
|
|
272
|
+
* them. A rule comparing them exactly would call that pair distinct and let one value overwrite
|
|
273
|
+
* the other on the one platform where it matters.
|
|
274
|
+
*/
|
|
275
|
+
export declare function comparableCredentialInjectionName(credential: CapabilityCredentialNames): string;
|
|
276
|
+
/**
|
|
277
|
+
* Whether every credential in a declaration arrives as its own variable.
|
|
278
|
+
*
|
|
279
|
+
* Exported so the boot checks and the schemas share one implementation rather than agreeing by
|
|
280
|
+
* hand. Duplicate LOOKUP keys are deliberately allowed: a capability wanting one stored value
|
|
281
|
+
* delivered under two names is odd but honest, and nothing is lost. A duplicate INJECTION name
|
|
282
|
+
* loses a value, which is why only that one is refused.
|
|
283
|
+
*/
|
|
284
|
+
export declare function uniqueCredentialInjectionNames(credentials: readonly CapabilityCredentialNames[]): boolean;
|
|
285
|
+
/** One capability that claims environment variables, as {@link credentialInjectionCollisions} reads it. */
|
|
286
|
+
export interface CredentialInjectionClaimant {
|
|
287
|
+
/**
|
|
288
|
+
* How this claimant is NAMED in the fault message, qualified by what it is: `integration "x"`,
|
|
289
|
+
* `service "y"`. The rule spans registries, so an id alone would leave an operator hunting for
|
|
290
|
+
* which registry to edit.
|
|
291
|
+
*/
|
|
292
|
+
owner: string;
|
|
293
|
+
credentials?: readonly CapabilityCredentialNames[];
|
|
294
|
+
}
|
|
295
|
+
/** One environment variable two or more claimants want to hold different values. */
|
|
296
|
+
export interface CredentialInjectionCollision {
|
|
297
|
+
/** The variable, in the spelling the deployment wrote (comparison is case-folded; injection is not). */
|
|
298
|
+
envName: string;
|
|
299
|
+
message: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* The rule that spans DECLARATIONS: two capabilities may not inject different values into one
|
|
303
|
+
* environment variable.
|
|
304
|
+
*
|
|
305
|
+
* The across-declaration twin of {@link uniqueCredentialInjectionNames}, and stated over CLAIMANTS
|
|
306
|
+
* rather than over any one registry's definition type because the variable is the shared resource
|
|
307
|
+
* and the registries cannot see each other. A generative integration, a foundational service and
|
|
308
|
+
* an MCP tool server are registered independently, and the pair only meets when a step selects
|
|
309
|
+
* both, so a rule scoped to one registry answers a question narrower than the fault: the same
|
|
310
|
+
* collision graded twice, once per registry, produces two remediations for one variable.
|
|
311
|
+
*
|
|
312
|
+
* A SHARED name is legitimate and common, because one vendor behind an image endpoint and a music
|
|
313
|
+
* endpoint is one account: what makes that safe is that both look the value up under the SAME key,
|
|
314
|
+
* so whichever resolves first sets the variable to exactly what the other wanted. Different keys
|
|
315
|
+
* behind one name is the opposite, and there is no arbitration that makes it right. Serving the
|
|
316
|
+
* first claimant sets the variable the second capability's brief tells the agent to read, so the
|
|
317
|
+
* agent authenticates one thing with another's credential; withholding it (what dispatch does,
|
|
318
|
+
* since a mothership node validates nothing) costs both capabilities every run. Only a
|
|
319
|
+
* disagreement about the VALUE is reported.
|
|
320
|
+
*
|
|
321
|
+
* Takes the claimants that PARSED. Reading a malformed definition's credentials would restate a
|
|
322
|
+
* fault already reported as a second, more confusing one.
|
|
323
|
+
*/
|
|
324
|
+
export declare function credentialInjectionCollisions(claimants: readonly CredentialInjectionClaimant[]): CredentialInjectionCollision[];
|
|
185
325
|
//# sourceMappingURL=capability-credentials.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-credentials.d.ts","sourceRoot":"","sources":["../src/capability-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiC5B;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,6BAA6B,2ZAiBzC,CAAA;AAED,8FAA8F;AAC9F,eAAO,MAAM,+BAA+B;;;aAG1C,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;;;;;GAUG;AACH,eAAO,MAAM,6BAA6B;;aAExC,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAE9F;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B;;IAExC,2FAA2F;;aAE3F,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEzF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gCAAgC;;IAE3C,mFAAmF;;;;;QAM/E,mFAAmF;;;IAIvF,uEAAuE;;IAEvE,iDAAiD;;IAEjD,6EAA6E;;aAE7E,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE/F;;;GAGG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAE7C,wFAAwF;AACxF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;wDAU7C,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,WAAW,C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B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEnF;;;;;;;;GAQG;AACH,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,CAErF;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,CAE/F;AAED;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAC5C,WAAW,EAAE,SAAS,yBAAyB,EAAE,GAChD,OAAO,CAGT;AAED,2GAA2G;AAC3G,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,SAAS,yBAAyB,EAAE,CAAA;CACnD;AAED,oFAAoF;AACpF,MAAM,WAAW,4BAA4B;IAC3C,wGAAwG;IACxG,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,6BAA6B,CAC3C,SAAS,EAAE,SAAS,2BAA2B,EAAE,GAChD,4BAA4B,EAAE,CAkChC"}
|
|
@@ -96,7 +96,7 @@ export const capabilityCredentialStatusSchema = v.object({
|
|
|
96
96
|
key: capabilityCredentialKeySchema,
|
|
97
97
|
/** Which capabilities want it — id + label, so the UI can say who a key is for. */
|
|
98
98
|
declaredBy: v.array(v.object({
|
|
99
|
-
subject: v.picklist(['tool-server', 'binary-generator']),
|
|
99
|
+
subject: v.picklist(['tool-server', 'binary-generator', 'foundational-service']),
|
|
100
100
|
id: v.string(),
|
|
101
101
|
label: v.string(),
|
|
102
102
|
/** The definition's own note on how the value is presented, when it states one. */
|
|
@@ -167,4 +167,170 @@ export function parseCapabilityCredentialEntries(raw) {
|
|
|
167
167
|
export function capabilityCredentialsSummary(entries, updatedAt) {
|
|
168
168
|
return entries.map((entry) => ({ key: entry.key, updatedAt }));
|
|
169
169
|
}
|
|
170
|
+
// ---------------------------------------------------------------------------
|
|
171
|
+
// The DECLARATION half of the same subject: how a capability a DEPLOYMENT registers in code says
|
|
172
|
+
// which secrets it needs, which is what turns the store above from a blank form into a checklist.
|
|
173
|
+
//
|
|
174
|
+
// It lives beside the store rather than in each registry's own module because the two names a
|
|
175
|
+
// credential carries, and the floors over them, are properties of the injection CHANNEL (a value
|
|
176
|
+
// resolved through `ToolSecretResolver` and set as a variable of one job's agent process) rather
|
|
177
|
+
// than of what declared it. It was the generative integrations' own schema until a foundational
|
|
178
|
+
// STORAGE service needed the same declaration: the platform had a credential seam applied to what
|
|
179
|
+
// MAKES an artifact and not to where it GOES, and a second copy of the shape would have been the
|
|
180
|
+
// first place two declarers could disagree about a reserved key.
|
|
181
|
+
//
|
|
182
|
+
// WHO may declare one is a separate question, and the registries answer it differently: see
|
|
183
|
+
// `createFoundationalServiceSchema`, where only the code-registered tier may.
|
|
184
|
+
// ---------------------------------------------------------------------------
|
|
185
|
+
/**
|
|
186
|
+
* ONE credential a registered capability needs, declared by NAME only, never a value.
|
|
187
|
+
*
|
|
188
|
+
* The value is resolved per dispatch through the facade-wired `ToolSecretResolver` port (the
|
|
189
|
+
* same port a tool server's credentials go through) and written straight onto the job body,
|
|
190
|
+
* where the harness injects it into THIS JOB's agent environment. It never reaches
|
|
191
|
+
* `AgentRunContext`, a prompt, or the telemetry snapshot: only the key NAME does, because the
|
|
192
|
+
* agent has to know which variable to read.
|
|
193
|
+
*
|
|
194
|
+
* A declarer states a LIST of these, because a vendor's account is not always one string. HTTP Basic over a
|
|
195
|
+
* key/secret pair is the ordinary case that breaks a single field, and it is common enough to be
|
|
196
|
+
* a shape rather than one vendor's eccentricity. Under one field the two halves have to be
|
|
197
|
+
* colon-joined into a single variable, which rotates them together, hands the operator one
|
|
198
|
+
* checklist row where their vendor console shows two values, and turns a mis-joined value into a
|
|
199
|
+
* 401 indistinguishable from a wrong key.
|
|
200
|
+
*/
|
|
201
|
+
export const capabilityCredentialSchema = v.object({
|
|
202
|
+
/**
|
|
203
|
+
* The credential's LOOKUP key: what the secret resolver is asked for, and what a workspace
|
|
204
|
+
* stores its own value under. Also the ENVIRONMENT VARIABLE the agent reads it from unless
|
|
205
|
+
* {@link envName} says otherwise, so it must be a valid POSIX variable name either way: a
|
|
206
|
+
* generator declaring `x-rd-token` would resolve fine and then be dropped by the harness's env
|
|
207
|
+
* validation, which is a silent "the integration just 401s" at run time.
|
|
208
|
+
*
|
|
209
|
+
* It may NOT name a variable the platform's own configuration owns
|
|
210
|
+
* ({@link isReservedPlatformEnvKey}). The resolver reads the key off the deployment's
|
|
211
|
+
* environment and the value is injected into an agent process, so an integration declaring
|
|
212
|
+
* `ENCRYPTION_KEY` would hand a prompt-injectable agent the deployment's master sealing key.
|
|
213
|
+
* Refused here so a deployment learns at boot, and again at dispatch, since a mothership-mode
|
|
214
|
+
* node boot-validates none of the definitions it resolves.
|
|
215
|
+
*/
|
|
216
|
+
key: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(128), v.regex(/^[A-Za-z_][A-Za-z0-9_]*$/, 'must be a valid environment variable name'), v.check((key) => !isReservedPlatformEnvKey(key), (issue) => reservedEnvKeyMessage(String(issue.input)))),
|
|
217
|
+
/**
|
|
218
|
+
* The environment variable the value is injected as, when that differs from {@link key}. This
|
|
219
|
+
* is the name the agent is told to read, and it is what a vendor SDK that auto-reads its own
|
|
220
|
+
* documented variable needs.
|
|
221
|
+
*
|
|
222
|
+
* Held to the toolchain rule rather than the reserved-platform one, because it reads nothing:
|
|
223
|
+
* the floor above is about what may be READ off the deployment's environment, and an injection
|
|
224
|
+
* name only decides what a variable is called inside this job's agent process. That is what lets
|
|
225
|
+
* a declaration keep a vendor's documented name even when a platform prefix family covers it.
|
|
226
|
+
*/
|
|
227
|
+
envName: v.optional(v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(128), v.regex(/^[A-Za-z_][A-Za-z0-9_]*$/, 'must be a valid environment variable name'), v.check((name) => !isToolchainEnvName(name), (issue) => toolchainEnvNameMessage(String(issue.input))))),
|
|
228
|
+
/**
|
|
229
|
+
* How the capability expects the credential to be presented (`X-RD-Token: <value>`,
|
|
230
|
+
* `Authorization: Bearer <value>`). Folded into the brief verbatim: the agent writes the
|
|
231
|
+
* request itself, and a key with no stated header is a key it has to guess the use of.
|
|
232
|
+
*/
|
|
233
|
+
usage: v.optional(v.pipe(v.string(), v.trim(), v.maxLength(400))),
|
|
234
|
+
/**
|
|
235
|
+
* When true (the default), a capability whose credential does not resolve is reported to
|
|
236
|
+
* the agent as UNAVAILABLE rather than offered. Set false only for an endpoint that genuinely
|
|
237
|
+
* works unauthenticated — an agent handed an API whose first call 401s burns a run
|
|
238
|
+
* discovering it.
|
|
239
|
+
*/
|
|
240
|
+
required: v.optional(v.boolean()),
|
|
241
|
+
});
|
|
242
|
+
/**
|
|
243
|
+
* The environment variable one credential arrives as: its {@link CapabilityCredential.envName}
|
|
244
|
+
* when it declares one, else its lookup key.
|
|
245
|
+
*
|
|
246
|
+
* The ONE place that fallback is written, because three layers apply it (the schemas' uniqueness
|
|
247
|
+
* checks, the dispatch-time resolvers that key the job body, and the briefs that tell the
|
|
248
|
+
* agent which variable to read) and a copy that drifted would name a variable that is never set:
|
|
249
|
+
* a capability reported as unavailable on every run, with nothing to see at either end.
|
|
250
|
+
*/
|
|
251
|
+
export function credentialInjectionName(credential) {
|
|
252
|
+
return credential.envName ?? credential.key;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* The form an injection name is COMPARED in, which is not the form it is injected under.
|
|
256
|
+
*
|
|
257
|
+
* Case-folded, the same way {@link isReservedPlatformEnvKey} folds the lookup key it screens, and
|
|
258
|
+
* for the reason that floor has: environment lookup is case-insensitive on Windows, so `ACME_KEY`
|
|
259
|
+
* and `acme_key` are two variables in the declaration and one variable in the process that reads
|
|
260
|
+
* them. A rule comparing them exactly would call that pair distinct and let one value overwrite
|
|
261
|
+
* the other on the one platform where it matters.
|
|
262
|
+
*/
|
|
263
|
+
export function comparableCredentialInjectionName(credential) {
|
|
264
|
+
return credentialInjectionName(credential).toUpperCase();
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Whether every credential in a declaration arrives as its own variable.
|
|
268
|
+
*
|
|
269
|
+
* Exported so the boot checks and the schemas share one implementation rather than agreeing by
|
|
270
|
+
* hand. Duplicate LOOKUP keys are deliberately allowed: a capability wanting one stored value
|
|
271
|
+
* delivered under two names is odd but honest, and nothing is lost. A duplicate INJECTION name
|
|
272
|
+
* loses a value, which is why only that one is refused.
|
|
273
|
+
*/
|
|
274
|
+
export function uniqueCredentialInjectionNames(credentials) {
|
|
275
|
+
const names = credentials.map(comparableCredentialInjectionName);
|
|
276
|
+
return new Set(names).size === names.length;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* The rule that spans DECLARATIONS: two capabilities may not inject different values into one
|
|
280
|
+
* environment variable.
|
|
281
|
+
*
|
|
282
|
+
* The across-declaration twin of {@link uniqueCredentialInjectionNames}, and stated over CLAIMANTS
|
|
283
|
+
* rather than over any one registry's definition type because the variable is the shared resource
|
|
284
|
+
* and the registries cannot see each other. A generative integration, a foundational service and
|
|
285
|
+
* an MCP tool server are registered independently, and the pair only meets when a step selects
|
|
286
|
+
* both, so a rule scoped to one registry answers a question narrower than the fault: the same
|
|
287
|
+
* collision graded twice, once per registry, produces two remediations for one variable.
|
|
288
|
+
*
|
|
289
|
+
* A SHARED name is legitimate and common, because one vendor behind an image endpoint and a music
|
|
290
|
+
* endpoint is one account: what makes that safe is that both look the value up under the SAME key,
|
|
291
|
+
* so whichever resolves first sets the variable to exactly what the other wanted. Different keys
|
|
292
|
+
* behind one name is the opposite, and there is no arbitration that makes it right. Serving the
|
|
293
|
+
* first claimant sets the variable the second capability's brief tells the agent to read, so the
|
|
294
|
+
* agent authenticates one thing with another's credential; withholding it (what dispatch does,
|
|
295
|
+
* since a mothership node validates nothing) costs both capabilities every run. Only a
|
|
296
|
+
* disagreement about the VALUE is reported.
|
|
297
|
+
*
|
|
298
|
+
* Takes the claimants that PARSED. Reading a malformed definition's credentials would restate a
|
|
299
|
+
* fault already reported as a second, more confusing one.
|
|
300
|
+
*/
|
|
301
|
+
export function credentialInjectionCollisions(claimants) {
|
|
302
|
+
// Grouped by the COMPARABLE (case-folded) name and reported under the spelling the deployment
|
|
303
|
+
// wrote, because `ACME_KEY` and `acme_key` are one variable wherever the environment ignores case
|
|
304
|
+
// and two everywhere else: the pair collides on exactly the platform where the operator has the
|
|
305
|
+
// least chance of noticing it.
|
|
306
|
+
const claims = new Map();
|
|
307
|
+
for (const claimant of claimants) {
|
|
308
|
+
for (const credential of claimant.credentials ?? []) {
|
|
309
|
+
const comparable = comparableCredentialInjectionName(credential);
|
|
310
|
+
const claim = claims.get(comparable) ?? {
|
|
311
|
+
spelling: credentialInjectionName(credential),
|
|
312
|
+
byKey: new Map(),
|
|
313
|
+
};
|
|
314
|
+
claim.byKey.set(credential.key, [...(claim.byKey.get(credential.key) ?? []), claimant.owner]);
|
|
315
|
+
claims.set(comparable, claim);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
const collisions = [];
|
|
319
|
+
for (const [, { spelling, byKey }] of claims) {
|
|
320
|
+
if (byKey.size < 2)
|
|
321
|
+
continue;
|
|
322
|
+
const described = [...byKey]
|
|
323
|
+
.map(([key, owners]) => `"${key}" (${owners.join(', ')})`)
|
|
324
|
+
.sort()
|
|
325
|
+
.join(' and ');
|
|
326
|
+
collisions.push({
|
|
327
|
+
envName: spelling,
|
|
328
|
+
message: `Registered capabilities disagree about environment variable "${spelling}": it is declared ` +
|
|
329
|
+
`for lookup keys ${described}. One variable cannot hold both values, so every dispatch ` +
|
|
330
|
+
`carrying both withholds it from BOTH of them. Give one a distinct \`envName\`, or point ` +
|
|
331
|
+
`both at the same lookup key if they really share an account.`,
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
return collisions;
|
|
335
|
+
}
|
|
170
336
|
//# sourceMappingURL=capability-credentials.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-credentials.js","sourceRoot":"","sources":["../src/capability-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,wBAAwB,CAAA;AAE/B,8EAA8E;AAC9E,2FAA2F;AAC3F,kCAAkC;AAClC,EAAE;AACF,gGAAgG;AAChG,+FAA+F;AAC/F,kGAAkG;AAClG,+FAA+F;AAC/F,gGAAgG;AAChG,iGAAiG;AACjG,sFAAsF;AACtF,EAAE;AACF,kGAAkG;AAClG,yFAAyF;AACzF,+FAA+F;AAC/F,+FAA+F;AAC/F,4FAA4F;AAC5F,8FAA8F;AAC9F,EAAE;AACF,gGAAgG;AAChG,+FAA+F;AAC/F,yFAAyF;AACzF,yDAAyD;AACzD,8EAA8E;AAE9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CACjD,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,IAAI,EAAE,EACR,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACd,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,EAChB,CAAC,CAAC,KAAK,CACL,0BAA0B,EAC1B,wGAAwG,CACzG,EACD,CAAC,CAAC,KAAK,CACL,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,wBAAwB,CAAC,GAAG,CAAC,EACvC,CAAC,KAAK,EAAE,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CACtD,EACD,CAAC,CAAC,KAAK,CACL,CAAC,GAAG,EAAE,EAAE,CA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AAO,EACL,gEAAgE,QAAQ,oBAAoB;gBAC5F,mBAAmB,SAAS,4DAA4D;gBACxF,0FAA0F;gBAC1F,8DAA8D;SACjE,CAAC,CAAA;IACJ,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
package/dist/execution.d.ts
CHANGED
|
@@ -2082,6 +2082,7 @@ export declare const pipelineStepSchema: v.ObjectSchema<{
|
|
|
2082
2082
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
2083
2083
|
}, undefined>, undefined>;
|
|
2084
2084
|
readonly generator: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2085
|
+
readonly processedBy: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2085
2086
|
readonly modality: v.OptionalSchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
2086
2087
|
}, undefined>, undefined>;
|
|
2087
2088
|
readonly unknownServices: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -3929,6 +3930,7 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
|
|
|
3929
3930
|
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
3930
3931
|
}, undefined>, undefined>;
|
|
3931
3932
|
readonly generator: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3933
|
+
readonly processedBy: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3932
3934
|
readonly modality: v.OptionalSchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
3933
3935
|
}, undefined>, undefined>;
|
|
3934
3936
|
readonly unknownServices: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
package/dist/execution.d.ts.map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;;QAEH;;;;;;;WAOG;;QAEH;;;;WAIG;;;;;;;;;;;;;;;;;QAEH;;;;;WAKG;;;YAn0BH,+FAA+F;;YAE/F,qFAAqF;;YAErF;4DACgD;;;;;;IA80BhD;;;;OAIG;;;QAnrCH,0EAA0E;;QAE1E,8EAA8E;;QAE9E,4EAA4E;;QAE5E;;;;;;WAMG;;QAEH,yCAAyC;;QAEzC,+EAA+E;;;;;;gBA5D/E,gEAAgE;;;;;QA8DhE;;;;;WAKG;;;IA8pCH;;;;;;OAMG;;;QA3rCH,0EAA0E;;QAE1E,8EAA8E;;QAE9E,4EAA4E;;QAE5E;;;;;;WAMG;;QAEH,yCAAyC;;QAEzC,+EAA+E;;;;;;gBA5D/E,gEAAgE;;;;;QA8DhE;;;;;WAKG;;;IAsqCH;;;;;;;;;OASG;;QA3nCH,yGAAyG;;QAEzG,8FAA8F;;QAE9F,8FAA8F;;QAE9F,iGAAiG;;;IAunCjG;;;;;;;;OAQG;;IAEH;;;;;;;OAOG;;;;;IAEH;;;;;;OAMG;;IAEH;;;;;;;;;;;;;;;;;OAiBG;;IAEH;;;;;;;;;;;;;OAaG;;IAEH;;;;OAIG;;IAEH;;;;;;;;;;OAUG;;IAEH;;;;;;;;;;OAUG;;IAEH;;;;;;;;;OASG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;;;;;;OAYG;;;;;;;;;;;;;;;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -221,6 +221,18 @@ export declare const resolvedFoundationalServiceSchema: v.ObjectSchema<{
|
|
|
221
221
|
*/
|
|
222
222
|
readonly omittedOperations: v.NumberSchema<undefined>;
|
|
223
223
|
}, undefined>, undefined>;
|
|
224
|
+
/**
|
|
225
|
+
* The credentials this service authenticates with, by KEY NAME only. Present only on a
|
|
226
|
+
* `builtin` entry, because only the code-registered tier may declare one (see
|
|
227
|
+
* {@link createFoundationalServiceSchema}); an account or workspace row carries none and this
|
|
228
|
+
* is absent rather than empty for it.
|
|
229
|
+
*/
|
|
230
|
+
readonly credentials: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
231
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
232
|
+
readonly envName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>, undefined>;
|
|
233
|
+
readonly usage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
234
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
235
|
+
}, undefined>, undefined>, undefined>;
|
|
224
236
|
readonly tier: v.PicklistSchema<["builtin", "account", "workspace"], undefined>;
|
|
225
237
|
}, undefined>;
|
|
226
238
|
export type ResolvedFoundationalService = v.InferOutput<typeof resolvedFoundationalServiceSchema>;
|
|
@@ -256,7 +268,7 @@ export declare const uploadApiContractSchema: v.ObjectSchema<{
|
|
|
256
268
|
}, undefined>;
|
|
257
269
|
export type UploadApiContract = v.InferOutput<typeof uploadApiContractSchema>;
|
|
258
270
|
/** Register a foundational service at the addressed tier. */
|
|
259
|
-
export declare const createFoundationalServiceSchema: v.ObjectSchema<{
|
|
271
|
+
export declare const createFoundationalServiceSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
260
272
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "must be a lower-kebab slug">]>;
|
|
261
273
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
262
274
|
readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 400, undefined>]>;
|
|
@@ -269,8 +281,70 @@ export declare const createFoundationalServiceSchema: v.ObjectSchema<{
|
|
|
269
281
|
/** The document text. Capped so one upload cannot make a catalog read unbounded. */
|
|
270
282
|
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 1000000, undefined>]>;
|
|
271
283
|
}, undefined>, undefined>, undefined>;
|
|
272
|
-
|
|
284
|
+
/**
|
|
285
|
+
* The credentials a step must authenticate to this service WITH, declared by key name and
|
|
286
|
+
* never by value, resolved per dispatch through the same `ToolSecretResolver` a generative
|
|
287
|
+
* integration's are and injected into the job as named environment variables. The service's
|
|
288
|
+
* own `description` and contract document are what tell the agent which variable carries
|
|
289
|
+
* what, exactly as an integration's `usage` does.
|
|
290
|
+
*
|
|
291
|
+
* Only the DEPLOYMENT's own code-registered (`builtin`) tier may declare these, and the
|
|
292
|
+
* write boundary refuses them on a stored account/workspace row
|
|
293
|
+
* ({@link storedTierMayNotDeclareCredentials}). The reason is the resolver's shipped default:
|
|
294
|
+
* it reads the declared key off the DEPLOYMENT'S OWN ENVIRONMENT, so a declaration is a
|
|
295
|
+
* request to read deployment-level secret state and hand it to an agent process. Every other
|
|
296
|
+
* declarer on the platform (tool servers, generative integrations) is deployment code, where
|
|
297
|
+
* that is the same trust boundary as the process itself; a foundational service is the first
|
|
298
|
+
* one a workspace ADMIN can also create over REST, and there the two are not the same at all.
|
|
299
|
+
* `isReservedPlatformEnvKey` bounds the damage to non-platform variables, which is a floor,
|
|
300
|
+
* not a licence.
|
|
301
|
+
*
|
|
302
|
+
* A per-workspace credential is still perfectly reachable: the deployment declares the KEY in
|
|
303
|
+
* code and each workspace stores its own VALUE in the sealed capability-credential store,
|
|
304
|
+
* which is the split that store exists for.
|
|
305
|
+
*/
|
|
306
|
+
readonly credentials: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
307
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
308
|
+
readonly envName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>, undefined>;
|
|
309
|
+
readonly usage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
310
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
311
|
+
}, undefined>, undefined>, undefined>;
|
|
312
|
+
}, undefined>, v.CheckAction<{
|
|
313
|
+
id: string;
|
|
314
|
+
name: string;
|
|
315
|
+
summary: string;
|
|
316
|
+
description: string;
|
|
317
|
+
capabilities?: string[] | undefined;
|
|
318
|
+
contracts?: {
|
|
319
|
+
contractId: string;
|
|
320
|
+
format: "lokalise-api-contract" | "openapi" | "toad-contract";
|
|
321
|
+
title: string;
|
|
322
|
+
body: string;
|
|
323
|
+
}[] | undefined;
|
|
324
|
+
credentials?: {
|
|
325
|
+
key: string;
|
|
326
|
+
envName?: string | undefined;
|
|
327
|
+
usage?: string | undefined;
|
|
328
|
+
required?: boolean | undefined;
|
|
329
|
+
}[] | undefined;
|
|
330
|
+
}, "each credential must arrive as its own environment variable (duplicate injection name)">]>;
|
|
273
331
|
export type CreateFoundationalServiceInput = v.InferOutput<typeof createFoundationalServiceSchema>;
|
|
332
|
+
/**
|
|
333
|
+
* The refusal a STORED (account / workspace) foundational service earns by declaring credentials,
|
|
334
|
+
* or null when it declares none.
|
|
335
|
+
*
|
|
336
|
+
* A message rather than a boolean because the caller throws it verbatim, and the operator's next
|
|
337
|
+
* move is not obvious from "not allowed": the capability they want does exist, one layer over, and
|
|
338
|
+
* this names it.
|
|
339
|
+
*
|
|
340
|
+
* The rule cannot live in the schema, because ONE schema serves both doors on purpose: the REST
|
|
341
|
+
* write boundary and `foundationalServiceDefinitionIssues`, which holds a deployment's
|
|
342
|
+
* code-registered definition to exactly what an uploaded one must satisfy. What differs between
|
|
343
|
+
* them is not the SHAPE but the DECLARER, and only the caller knows which one it is.
|
|
344
|
+
*/
|
|
345
|
+
export declare function storedTierMayNotDeclareCredentials(input: {
|
|
346
|
+
credentials?: unknown[];
|
|
347
|
+
}): string | null;
|
|
274
348
|
/**
|
|
275
349
|
* The ways `definition` fails {@link createFoundationalServiceSchema}, as readable lines — empty
|
|
276
350
|
* when it would be accepted.
|
|
@@ -298,6 +372,18 @@ export declare const updateFoundationalServiceSchema: v.ObjectSchema<{
|
|
|
298
372
|
/** The document text. Capped so one upload cannot make a catalog read unbounded. */
|
|
299
373
|
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 1000000, undefined>]>;
|
|
300
374
|
}, undefined>, undefined>, undefined>;
|
|
375
|
+
/**
|
|
376
|
+
* Refused rather than accepted, for the reason {@link createFoundationalServiceSchema} gives:
|
|
377
|
+
* a stored row may not declare credentials, and this is the door that would otherwise add them
|
|
378
|
+
* to one that was created without any. Present in the schema at all so the refusal is a stated
|
|
379
|
+
* rule with a message, rather than a field silently stripped by object parsing.
|
|
380
|
+
*/
|
|
381
|
+
readonly credentials: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
382
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
383
|
+
readonly envName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>, undefined>;
|
|
384
|
+
readonly usage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
385
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
386
|
+
}, undefined>, undefined>, undefined>;
|
|
301
387
|
}, undefined>;
|
|
302
388
|
export type UpdateFoundationalServiceInput = v.InferOutput<typeof updateFoundationalServiceSchema>;
|
|
303
389
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundational-services.d.ts","sourceRoot":"","sources":["../src/foundational-services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"foundational-services.d.ts","sourceRoot":"","sources":["../src/foundational-services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyB5B,oFAAoF;AACpF,eAAO,MAAM,kCAAkC,uDAA0B,CAAA;AACzE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,kEAAkD,CAAA;AAC5F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,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