@camstack/types 1.2.339 → 1.2.341

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.
@@ -1054,6 +1054,16 @@ export declare const pipelineOrchestratorCapability: {
1054
1054
  decodeBudgetMb: z.ZodOptional<z.ZodNumber>;
1055
1055
  maxLiveDecodeWorkers: z.ZodOptional<z.ZodNumber>;
1056
1056
  reachableHost: z.ZodOptional<z.ZodString>;
1057
+ color: z.ZodOptional<z.ZodEnum<{
1058
+ "node-a": "node-a";
1059
+ "node-b": "node-b";
1060
+ "node-c": "node-c";
1061
+ "node-d": "node-d";
1062
+ "node-e": "node-e";
1063
+ "node-f": "node-f";
1064
+ "node-g": "node-g";
1065
+ "node-h": "node-h";
1066
+ }>>;
1057
1067
  inferenceDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1058
1068
  enabled: z.ZodBoolean;
1059
1069
  weight: z.ZodOptional<z.ZodNumber>;
@@ -1078,6 +1088,16 @@ export declare const pipelineOrchestratorCapability: {
1078
1088
  decodeBudgetMb: z.ZodOptional<z.ZodNumber>;
1079
1089
  maxLiveDecodeWorkers: z.ZodOptional<z.ZodNumber>;
1080
1090
  reachableHost: z.ZodOptional<z.ZodString>;
1091
+ color: z.ZodOptional<z.ZodEnum<{
1092
+ "node-a": "node-a";
1093
+ "node-b": "node-b";
1094
+ "node-c": "node-c";
1095
+ "node-d": "node-d";
1096
+ "node-e": "node-e";
1097
+ "node-f": "node-f";
1098
+ "node-g": "node-g";
1099
+ "node-h": "node-h";
1100
+ }>>;
1081
1101
  inferenceDevices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1082
1102
  enabled: z.ZodBoolean;
1083
1103
  weight: z.ZodOptional<z.ZodNumber>;
@@ -1168,7 +1188,17 @@ export declare const pipelineOrchestratorCapability: {
1168
1188
  */
1169
1189
  readonly setAgentReachableHost: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
1170
1190
  agentNodeId: z.ZodString;
1171
- reachableHost: z.ZodNullable<z.ZodString>;
1191
+ reachableHost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ color: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1193
+ "node-a": "node-a";
1194
+ "node-b": "node-b";
1195
+ "node-c": "node-c";
1196
+ "node-d": "node-d";
1197
+ "node-e": "node-e";
1198
+ "node-f": "node-f";
1199
+ "node-g": "node-g";
1200
+ "node-h": "node-h";
1201
+ }>>>;
1172
1202
  }, z.core.$strip>, z.ZodObject<{
1173
1203
  success: z.ZodLiteral<true>;
1174
1204
  }, z.core.$strip>, "mutation">;
@@ -10,9 +10,11 @@ import { type InferProvider } from './capability-definition.js';
10
10
  * once is what makes a second provider (RunPod, a local NVIDIA node) a new
11
11
  * manifest entry and nothing else.
12
12
  *
13
- * Collection, routed by the `addonId` in every single-row input (the `llm` /
14
- * `notification-output` posture); `describe` concat-fans across providers.
15
- * Every method is `admin`: these spend money.
13
+ * Collection of provider **types** (addons). Each addon owns zero or more
14
+ * **entries** (credentials + defaults). Concat-fans: `describe`,
15
+ * `describeTypes`, `listEntries`, `listJobs`. Single-row work is keyed by
16
+ * `entryId`; callers also pass the owning `addonId` as the collection
17
+ * selector (broker posture). Every method is `admin`: these spend money.
16
18
  *
17
19
  * Every cloud object a provider creates is tagged with the orchestrator's
18
20
  * `jobKey`, so a retried submit finds the job it already started instead of
@@ -36,8 +38,8 @@ export declare const TrainingRegionOptionSchema: z.ZodObject<{
36
38
  }, z.core.$strip>;
37
39
  export type TrainingRegionOption = z.infer<typeof TrainingRegionOptionSchema>;
38
40
  /**
39
- * The provider's per-account settings, as the orchestrator reads them. They
40
- * live in the PROVIDER addon's settings (operator decision 2026-10-08: they
41
+ * The provider's per-entry settings, as the orchestrator reads them. They
42
+ * live on the PROVIDER addon's entry (operator decision 2026-10-08: they
41
43
  * depend on the user's account), never hard-coded in the orchestrator.
42
44
  */
43
45
  export declare const TrainingProviderDefaultsSchema: z.ZodObject<{
@@ -48,8 +50,29 @@ export declare const TrainingProviderDefaultsSchema: z.ZodObject<{
48
50
  failedDatasetGraceHours: z.ZodNumber;
49
51
  }, z.core.$strip>;
50
52
  export type TrainingProviderDefaults = z.infer<typeof TrainingProviderDefaultsSchema>;
53
+ /** One creatable provider type, for the Add-entry dialog. */
54
+ export declare const TrainingProviderTypeSchema: z.ZodObject<{
55
+ typeId: z.ZodString;
56
+ label: z.ZodString;
57
+ iconAsset: z.ZodString;
58
+ addonId: z.ZodString;
59
+ }, z.core.$strip>;
60
+ export type TrainingProviderType = z.infer<typeof TrainingProviderTypeSchema>;
61
+ /** One configured account / workspace under a provider type. */
62
+ export declare const TrainingProviderEntrySchema: z.ZodObject<{
63
+ entryId: z.ZodString;
64
+ typeId: z.ZodString;
65
+ name: z.ZodString;
66
+ addonId: z.ZodString;
67
+ configured: z.ZodBoolean;
68
+ }, z.core.$strip>;
69
+ export type TrainingProviderEntry = z.infer<typeof TrainingProviderEntrySchema>;
51
70
  export declare const TrainingProviderDescriptorSchema: z.ZodObject<{
52
71
  addonId: z.ZodString;
72
+ entryId: z.ZodString;
73
+ typeId: z.ZodString;
74
+ name: z.ZodString;
75
+ iconAsset: z.ZodString;
53
76
  kind: z.ZodString;
54
77
  label: z.ZodString;
55
78
  gpuTypes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -146,9 +169,13 @@ export declare const trainingProviderCapability: {
146
169
  readonly mode: 'collection';
147
170
  readonly internal: true;
148
171
  readonly methods: {
149
- /** Every provider's offer and settings. Concat-fans across providers. */
172
+ /** Every entry's offer and settings. Concat-fans across providers. */
150
173
  readonly describe: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
151
174
  addonId: z.ZodString;
175
+ entryId: z.ZodString;
176
+ typeId: z.ZodString;
177
+ name: z.ZodString;
178
+ iconAsset: z.ZodString;
152
179
  kind: z.ZodString;
153
180
  label: z.ZodString;
154
181
  gpuTypes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
@@ -175,9 +202,40 @@ export declare const trainingProviderCapability: {
175
202
  failedDatasetGraceHours: z.ZodNumber;
176
203
  }, z.core.$strip>;
177
204
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
178
- /** Call the provider with the stored credentials. Never returns them. */
179
- readonly validateCredentials: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
205
+ /** Creatable types for the Add-entry dialog. Concat-fans. */
206
+ readonly describeTypes: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
207
+ typeId: z.ZodString;
208
+ label: z.ZodString;
209
+ iconAsset: z.ZodString;
180
210
  addonId: z.ZodString;
211
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
212
+ /** Configured entries (pills). Concat-fans. */
213
+ readonly listEntries: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
214
+ entryId: z.ZodString;
215
+ typeId: z.ZodString;
216
+ name: z.ZodString;
217
+ addonId: z.ZodString;
218
+ configured: z.ZodBoolean;
219
+ }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
220
+ /**
221
+ * Create an entry under this provider type. Pin with `{ addonId }` of the
222
+ * type's owning addon (from describeTypes).
223
+ */
224
+ readonly createEntry: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
225
+ typeId: z.ZodString;
226
+ name: z.ZodString;
227
+ }, z.core.$strip>, z.ZodObject<{
228
+ entryId: z.ZodString;
229
+ }, z.core.$strip>, "mutation">;
230
+ /** Delete an entry. Pin with the owning `{ addonId }`. */
231
+ readonly deleteEntry: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
232
+ entryId: z.ZodString;
233
+ }, z.core.$strip>, z.ZodObject<{
234
+ ok: z.ZodLiteral<true>;
235
+ }, z.core.$strip>, "mutation">;
236
+ /** Call the provider with the entry's stored credentials. Never returns them. */
237
+ readonly validateCredentials: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
238
+ entryId: z.ZodString;
181
239
  }, z.core.$strip>, z.ZodObject<{
182
240
  ok: z.ZodBoolean;
183
241
  account: z.ZodOptional<z.ZodString>;
@@ -192,7 +250,7 @@ export declare const trainingProviderCapability: {
192
250
  }, z.core.$strip>, "mutation">;
193
251
  /** USD range for a run of `gpuSeconds` on `gpuType` in `region`. */
194
252
  readonly estimateJob: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
195
- addonId: z.ZodString;
253
+ entryId: z.ZodString;
196
254
  gpuType: z.ZodString;
197
255
  region: z.ZodString;
198
256
  datasetBytes: z.ZodNumber;
@@ -210,7 +268,7 @@ export declare const trainingProviderCapability: {
210
268
  * call replaces a partial upload. Answers what actually landed.
211
269
  */
212
270
  readonly uploadDataset: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
213
- addonId: z.ZodString;
271
+ entryId: z.ZodString;
214
272
  jobKey: z.ZodString;
215
273
  ticket: z.ZodObject<{
216
274
  url: z.ZodString;
@@ -229,7 +287,7 @@ export declare const trainingProviderCapability: {
229
287
  * provider (a hard timeout), not by the hub.
230
288
  */
231
289
  readonly submitJob: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
232
- addonId: z.ZodString;
290
+ entryId: z.ZodString;
233
291
  jobKey: z.ZodString;
234
292
  trainer: z.ZodObject<{
235
293
  repo: z.ZodString;
@@ -263,7 +321,7 @@ export declare const trainingProviderCapability: {
263
321
  lastFetchedAt: z.ZodNumber;
264
322
  }, z.core.$strip>, "mutation">;
265
323
  readonly getJob: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
266
- addonId: z.ZodString;
324
+ entryId: z.ZodString;
267
325
  jobKey: z.ZodString;
268
326
  }, z.core.$strip>, z.ZodObject<{
269
327
  jobKey: z.ZodString;
@@ -290,7 +348,7 @@ export declare const trainingProviderCapability: {
290
348
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
291
349
  /** Stdout/stderr since `cursor` (opaque), oldest first, at most `max` lines. */
292
350
  readonly listJobEvents: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
293
- addonId: z.ZodString;
351
+ entryId: z.ZodString;
294
352
  jobKey: z.ZodString;
295
353
  cursor: z.ZodOptional<z.ZodString>;
296
354
  max: z.ZodNumber;
@@ -303,14 +361,14 @@ export declare const trainingProviderCapability: {
303
361
  }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
304
362
  /** Stop the job. Idempotent: an unknown or finished job is a no-op. */
305
363
  readonly cancelJob: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
306
- addonId: z.ZodString;
364
+ entryId: z.ZodString;
307
365
  jobKey: z.ZodString;
308
366
  }, z.core.$strip>, z.ZodObject<{
309
367
  ok: z.ZodLiteral<true>;
310
368
  }, z.core.$strip>, "mutation">;
311
369
  /** The job's `result.json`, as text (small, JSON). `found: false` before it exists. */
312
370
  readonly readResult: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
313
- addonId: z.ZodString;
371
+ entryId: z.ZodString;
314
372
  jobKey: z.ZodString;
315
373
  }, z.core.$strip>, z.ZodObject<{
316
374
  found: z.ZodBoolean;
@@ -322,7 +380,7 @@ export declare const trainingProviderCapability: {
322
380
  * stages nothing on disk. The caller dials it at once.
323
381
  */
324
382
  readonly offerArtifact: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
325
- addonId: z.ZodString;
383
+ entryId: z.ZodString;
326
384
  jobKey: z.ZodString;
327
385
  path: z.ZodEnum<{
328
386
  "bundle.tar": "bundle.tar";
@@ -337,14 +395,17 @@ export declare const trainingProviderCapability: {
337
395
  }, z.core.$strip>, "mutation">;
338
396
  /** Delete every cloud object tagged with `jobKey` (the dataset first). Idempotent. */
339
397
  readonly cleanupJob: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
340
- addonId: z.ZodString;
398
+ entryId: z.ZodString;
341
399
  jobKey: z.ZodString;
342
400
  }, z.core.$strip>, z.ZodObject<{
343
401
  deleted: z.ZodReadonly<z.ZodArray<z.ZodString>>;
344
402
  }, z.core.$strip>, "mutation">;
345
- /** Every job the provider can still see — the orphan sweep diffs it against our records. */
403
+ /**
404
+ * Jobs this provider can still see. Optional `entryId` filters; omit to
405
+ * list every entry (orphan sweep). Pin with `{ addonId }`.
406
+ */
346
407
  readonly listJobs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
347
- addonId: z.ZodString;
408
+ entryId: z.ZodOptional<z.ZodString>;
348
409
  }, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
349
410
  jobKey: z.ZodString;
350
411
  providerJobId: z.ZodOptional<z.ZodString>;