@work-shape/catalyst-cli 0.8.0-rc.3 → 0.8.0-rc.4
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/index.d.ts +484 -9
- package/dist/index.js +5648 -4956
- package/package.json +4 -4
- package/skills/catalyst/SKILL.md +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -4210,6 +4210,409 @@ declare const apiOperations: {
|
|
|
4210
4210
|
readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
|
|
4211
4211
|
};
|
|
4212
4212
|
}>;
|
|
4213
|
+
readonly "knowledge_bases.sync": Operation<{
|
|
4214
|
+
readonly id: "knowledge_bases.sync";
|
|
4215
|
+
readonly method: "POST";
|
|
4216
|
+
readonly path: "/api/v1/knowledge-bases/:knowledgeBase/sync";
|
|
4217
|
+
readonly summary: "Start a full source sync and return its Operation Run immediately; concurrent starts join the running sync";
|
|
4218
|
+
readonly scope: "config_assets:write";
|
|
4219
|
+
readonly effect: "changing";
|
|
4220
|
+
readonly body: zod.ZodObject<{
|
|
4221
|
+
source: zod.ZodString;
|
|
4222
|
+
mode: zod.ZodOptional<zod.ZodLiteral<"full">>;
|
|
4223
|
+
}, zod_v4_core.$strict>;
|
|
4224
|
+
readonly response: {
|
|
4225
|
+
readonly kind: "json";
|
|
4226
|
+
readonly schema: zod.ZodObject<{
|
|
4227
|
+
syncRunId: zod.ZodString;
|
|
4228
|
+
source: zod.ZodString;
|
|
4229
|
+
mode: zod.ZodEnum<{
|
|
4230
|
+
full: "full";
|
|
4231
|
+
initial: "initial";
|
|
4232
|
+
changes: "changes";
|
|
4233
|
+
}>;
|
|
4234
|
+
reason: zod.ZodOptional<zod.ZodEnum<{
|
|
4235
|
+
cursor_expired: "cursor_expired";
|
|
4236
|
+
}>>;
|
|
4237
|
+
state: zod.ZodEnum<{
|
|
4238
|
+
failed: "failed";
|
|
4239
|
+
running: "running";
|
|
4240
|
+
done: "done";
|
|
4241
|
+
}>;
|
|
4242
|
+
counts: zod.ZodObject<{
|
|
4243
|
+
discovered: zod.ZodNumber;
|
|
4244
|
+
added: zod.ZodNumber;
|
|
4245
|
+
changed: zod.ZodNumber;
|
|
4246
|
+
moved: zod.ZodNumber;
|
|
4247
|
+
withdrawn: zod.ZodNumber;
|
|
4248
|
+
failed: zod.ZodNumber;
|
|
4249
|
+
skipped: zod.ZodNumber;
|
|
4250
|
+
}, zod_v4_core.$strict>;
|
|
4251
|
+
bytesFetched: zod.ZodNumber;
|
|
4252
|
+
failureCode: zod.ZodOptional<zod.ZodEnum<{
|
|
4253
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
4254
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
4255
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
4256
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
4257
|
+
}>>;
|
|
4258
|
+
startedAt: zod.ZodString;
|
|
4259
|
+
endedAt: zod.ZodOptional<zod.ZodString>;
|
|
4260
|
+
}, zod_v4_core.$strict>;
|
|
4261
|
+
};
|
|
4262
|
+
readonly rateClass: "write";
|
|
4263
|
+
readonly tag: "Knowledge Bases";
|
|
4264
|
+
readonly auth: "principal";
|
|
4265
|
+
readonly requires: readonly [];
|
|
4266
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT"];
|
|
4267
|
+
} & {
|
|
4268
|
+
readonly accepted: zod.ZodObject<{
|
|
4269
|
+
id: zod.ZodString;
|
|
4270
|
+
operation: zod.ZodString;
|
|
4271
|
+
effect: zod.ZodEnum<{
|
|
4272
|
+
reading: "reading";
|
|
4273
|
+
changing: "changing";
|
|
4274
|
+
}>;
|
|
4275
|
+
status: zod.ZodEnum<{
|
|
4276
|
+
failed: "failed";
|
|
4277
|
+
running: "running";
|
|
4278
|
+
pending_confirmation: "pending_confirmation";
|
|
4279
|
+
pending_approval: "pending_approval";
|
|
4280
|
+
done: "done";
|
|
4281
|
+
denied: "denied";
|
|
4282
|
+
expired: "expired";
|
|
4283
|
+
}>;
|
|
4284
|
+
actor: zod.ZodObject<{
|
|
4285
|
+
kind: zod.ZodEnum<{
|
|
4286
|
+
user: "user";
|
|
4287
|
+
service_principal: "service_principal";
|
|
4288
|
+
}>;
|
|
4289
|
+
id: zod.ZodString;
|
|
4290
|
+
label: zod.ZodString;
|
|
4291
|
+
}, zod_v4_core.$strip>;
|
|
4292
|
+
origin: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
4293
|
+
kind: zod.ZodLiteral<"agent">;
|
|
4294
|
+
agentRunId: zod.ZodString;
|
|
4295
|
+
conversationId: zod.ZodString;
|
|
4296
|
+
agentName: zod.ZodString;
|
|
4297
|
+
toolCallId: zod.ZodString;
|
|
4298
|
+
toolName: zod.ZodString;
|
|
4299
|
+
toolRevisionId: zod.ZodOptional<zod.ZodString>;
|
|
4300
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4301
|
+
kind: zod.ZodLiteral<"user">;
|
|
4302
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4303
|
+
kind: zod.ZodLiteral<"cli">;
|
|
4304
|
+
unattended: zod.ZodOptional<zod.ZodLiteral<true>>;
|
|
4305
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4306
|
+
kind: zod.ZodLiteral<"mcp">;
|
|
4307
|
+
clientName: zod.ZodOptional<zod.ZodString>;
|
|
4308
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4309
|
+
kind: zod.ZodLiteral<"app">;
|
|
4310
|
+
appName: zod.ZodOptional<zod.ZodString>;
|
|
4311
|
+
appRevisionId: zod.ZodString;
|
|
4312
|
+
actionName: zod.ZodString;
|
|
4313
|
+
pageSessionId: zod.ZodString;
|
|
4314
|
+
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
4315
|
+
target: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodObject<{
|
|
4316
|
+
connection: zod.ZodString;
|
|
4317
|
+
operation: zod.ZodString;
|
|
4318
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4319
|
+
dataStore: zod.ZodString;
|
|
4320
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4321
|
+
workflow: zod.ZodString;
|
|
4322
|
+
}, zod_v4_core.$strip>]>>;
|
|
4323
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4324
|
+
kind: zod.ZodLiteral<"workflow">;
|
|
4325
|
+
workflowRunId: zod.ZodString;
|
|
4326
|
+
stepRunId: zod.ZodString;
|
|
4327
|
+
boundBy: zod.ZodOptional<zod.ZodObject<{
|
|
4328
|
+
id: zod.ZodString;
|
|
4329
|
+
label: zod.ZodString;
|
|
4330
|
+
}, zod_v4_core.$strip>>;
|
|
4331
|
+
}, zod_v4_core.$strip>, zod.ZodObject<{
|
|
4332
|
+
kind: zod.ZodLiteral<"schedule">;
|
|
4333
|
+
scheduleId: zod.ZodString;
|
|
4334
|
+
}, zod_v4_core.$strip>], "kind">;
|
|
4335
|
+
target: zod.ZodEnum<{
|
|
4336
|
+
test: "test";
|
|
4337
|
+
live: "live";
|
|
4338
|
+
dry_run: "dry_run";
|
|
4339
|
+
}>;
|
|
4340
|
+
app: zod.ZodOptional<zod.ZodObject<{
|
|
4341
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
4342
|
+
revision: zod.ZodOptional<zod.ZodNumber>;
|
|
4343
|
+
deleted: zod.ZodBoolean;
|
|
4344
|
+
}, zod_v4_core.$strip>>;
|
|
4345
|
+
workspaceId: zod.ZodOptional<zod.ZodString>;
|
|
4346
|
+
approvalRequestId: zod.ZodOptional<zod.ZodString>;
|
|
4347
|
+
inputHash: zod.ZodString;
|
|
4348
|
+
attempt: zod.ZodNumber;
|
|
4349
|
+
decision: zod.ZodOptional<zod.ZodObject<{
|
|
4350
|
+
mode: zod.ZodEnum<{
|
|
4351
|
+
direct: "direct";
|
|
4352
|
+
confirmed: "confirmed";
|
|
4353
|
+
approved: "approved";
|
|
4354
|
+
declined: "declined";
|
|
4355
|
+
}>;
|
|
4356
|
+
reason: zod.ZodOptional<zod.ZodEnum<{
|
|
4357
|
+
inherited_approval_not_applied: "inherited_approval_not_applied";
|
|
4358
|
+
workflow_publish: "workflow_publish";
|
|
4359
|
+
approved_by_caller: "approved_by_caller";
|
|
4360
|
+
}>>;
|
|
4361
|
+
by: zod.ZodString;
|
|
4362
|
+
byLabel: zod.ZodOptional<zod.ZodString>;
|
|
4363
|
+
at: zod.ZodISODateTime;
|
|
4364
|
+
comment: zod.ZodOptional<zod.ZodString>;
|
|
4365
|
+
}, zod_v4_core.$strip>>;
|
|
4366
|
+
error: zod.ZodOptional<zod.ZodObject<{
|
|
4367
|
+
code: zod.ZodString;
|
|
4368
|
+
message: zod.ZodString;
|
|
4369
|
+
reason: zod.ZodOptional<zod.ZodString>;
|
|
4370
|
+
}, zod_v4_core.$strip>>;
|
|
4371
|
+
usage: zod.ZodOptional<zod.ZodObject<{
|
|
4372
|
+
modelCalls: zod.ZodNumber;
|
|
4373
|
+
inputTokens: zod.ZodNumber;
|
|
4374
|
+
outputTokens: zod.ZodNumber;
|
|
4375
|
+
totalTokens: zod.ZodNumber;
|
|
4376
|
+
}, zod_v4_core.$strip>>;
|
|
4377
|
+
correlationId: zod.ZodString;
|
|
4378
|
+
createdAt: zod.ZodISODateTime;
|
|
4379
|
+
startedAt: zod.ZodOptional<zod.ZodISODateTime>;
|
|
4380
|
+
finishedAt: zod.ZodOptional<zod.ZodISODateTime>;
|
|
4381
|
+
expiresAt: zod.ZodOptional<zod.ZodISODateTime>;
|
|
4382
|
+
href: zod.ZodString;
|
|
4383
|
+
}, zod_v4_core.$strip>;
|
|
4384
|
+
readonly headers: {
|
|
4385
|
+
readonly request: readonly ["Idempotency-Key", "Catalyst-Unattended"];
|
|
4386
|
+
readonly response: readonly ["Operation-Run-Id", "Location", "Idempotent-Replayed"];
|
|
4387
|
+
};
|
|
4388
|
+
}>;
|
|
4389
|
+
readonly "knowledge_bases.sources": Operation<{
|
|
4390
|
+
readonly id: "knowledge_bases.sources";
|
|
4391
|
+
readonly method: "GET";
|
|
4392
|
+
readonly path: "/api/v1/knowledge-bases/:knowledgeBase/sources";
|
|
4393
|
+
readonly summary: "Read source states, counts, failure codes and sync progress";
|
|
4394
|
+
readonly scope: "config_assets:read";
|
|
4395
|
+
readonly effect: "reading";
|
|
4396
|
+
readonly response: {
|
|
4397
|
+
readonly kind: "json";
|
|
4398
|
+
readonly schema: zod.ZodObject<{
|
|
4399
|
+
sources: zod.ZodArray<zod.ZodObject<{
|
|
4400
|
+
id: zod.ZodString;
|
|
4401
|
+
connection: zod.ZodString;
|
|
4402
|
+
items: zod.ZodObject<{
|
|
4403
|
+
discovered: zod.ZodNumber;
|
|
4404
|
+
fetched: zod.ZodNumber;
|
|
4405
|
+
indexed: zod.ZodNumber;
|
|
4406
|
+
failed: zod.ZodNumber;
|
|
4407
|
+
withdrawn: zod.ZodNumber;
|
|
4408
|
+
}, zod_v4_core.$strict>;
|
|
4409
|
+
failures: zod.ZodArray<zod.ZodObject<{
|
|
4410
|
+
code: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
4411
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
4412
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
4413
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
4414
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
4415
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
4416
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
4417
|
+
}>, zod.ZodEnum<{
|
|
4418
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
4419
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
4420
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
4421
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
4422
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
4423
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
4424
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
4425
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
4426
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
4427
|
+
}>]>;
|
|
4428
|
+
count: zod.ZodNumber;
|
|
4429
|
+
}, zod_v4_core.$strict>>;
|
|
4430
|
+
running: zod.ZodOptional<zod.ZodObject<{
|
|
4431
|
+
syncRunId: zod.ZodString;
|
|
4432
|
+
mode: zod.ZodEnum<{
|
|
4433
|
+
full: "full";
|
|
4434
|
+
initial: "initial";
|
|
4435
|
+
changes: "changes";
|
|
4436
|
+
}>;
|
|
4437
|
+
startedAt: zod.ZodString;
|
|
4438
|
+
itemsPerMinute: zod.ZodOptional<zod.ZodNumber>;
|
|
4439
|
+
estimatedEndAt: zod.ZodOptional<zod.ZodString>;
|
|
4440
|
+
}, zod_v4_core.$strict>>;
|
|
4441
|
+
last: zod.ZodOptional<zod.ZodObject<{
|
|
4442
|
+
syncRunId: zod.ZodString;
|
|
4443
|
+
source: zod.ZodString;
|
|
4444
|
+
mode: zod.ZodEnum<{
|
|
4445
|
+
full: "full";
|
|
4446
|
+
initial: "initial";
|
|
4447
|
+
changes: "changes";
|
|
4448
|
+
}>;
|
|
4449
|
+
reason: zod.ZodOptional<zod.ZodEnum<{
|
|
4450
|
+
cursor_expired: "cursor_expired";
|
|
4451
|
+
}>>;
|
|
4452
|
+
state: zod.ZodEnum<{
|
|
4453
|
+
failed: "failed";
|
|
4454
|
+
running: "running";
|
|
4455
|
+
done: "done";
|
|
4456
|
+
}>;
|
|
4457
|
+
counts: zod.ZodObject<{
|
|
4458
|
+
discovered: zod.ZodNumber;
|
|
4459
|
+
added: zod.ZodNumber;
|
|
4460
|
+
changed: zod.ZodNumber;
|
|
4461
|
+
moved: zod.ZodNumber;
|
|
4462
|
+
withdrawn: zod.ZodNumber;
|
|
4463
|
+
failed: zod.ZodNumber;
|
|
4464
|
+
skipped: zod.ZodNumber;
|
|
4465
|
+
}, zod_v4_core.$strict>;
|
|
4466
|
+
bytesFetched: zod.ZodNumber;
|
|
4467
|
+
failureCode: zod.ZodOptional<zod.ZodEnum<{
|
|
4468
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
4469
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
4470
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
4471
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
4472
|
+
}>>;
|
|
4473
|
+
startedAt: zod.ZodString;
|
|
4474
|
+
endedAt: zod.ZodOptional<zod.ZodString>;
|
|
4475
|
+
}, zod_v4_core.$strict>>;
|
|
4476
|
+
lastChangeAt: zod.ZodOptional<zod.ZodString>;
|
|
4477
|
+
oldestOpenChangeAt: zod.ZodOptional<zod.ZodString>;
|
|
4478
|
+
}, zod_v4_core.$strict>>;
|
|
4479
|
+
}, zod_v4_core.$strict>;
|
|
4480
|
+
};
|
|
4481
|
+
readonly rateClass: "read";
|
|
4482
|
+
readonly tag: "Knowledge Bases";
|
|
4483
|
+
readonly auth: "principal";
|
|
4484
|
+
readonly requires: readonly [];
|
|
4485
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT"];
|
|
4486
|
+
} & {
|
|
4487
|
+
readonly headers: {
|
|
4488
|
+
readonly response: readonly ["Operation-Run-Id"];
|
|
4489
|
+
};
|
|
4490
|
+
}>;
|
|
4491
|
+
readonly "knowledge_bases.source_items": Operation<{
|
|
4492
|
+
readonly id: "knowledge_bases.source_items";
|
|
4493
|
+
readonly method: "GET";
|
|
4494
|
+
readonly path: "/api/v1/knowledge-bases/:knowledgeBase/sources/:source/items";
|
|
4495
|
+
readonly summary: "Page through the items of a source, newest change first; filter by state or failure code";
|
|
4496
|
+
readonly scope: "config_assets:read";
|
|
4497
|
+
readonly effect: "reading";
|
|
4498
|
+
readonly query: zod.ZodObject<{
|
|
4499
|
+
state: zod.ZodOptional<zod.ZodEnum<{
|
|
4500
|
+
failed: "failed";
|
|
4501
|
+
withdrawn: "withdrawn";
|
|
4502
|
+
indexed: "indexed";
|
|
4503
|
+
discovered: "discovered";
|
|
4504
|
+
fetched: "fetched";
|
|
4505
|
+
}>>;
|
|
4506
|
+
failureCode: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
4507
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
4508
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
4509
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
4510
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
4511
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
4512
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
4513
|
+
}>, zod.ZodEnum<{
|
|
4514
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
4515
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
4516
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
4517
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
4518
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
4519
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
4520
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
4521
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
4522
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
4523
|
+
}>]>>;
|
|
4524
|
+
limit: zod.ZodOptional<zod.ZodCoercedNumber<unknown>>;
|
|
4525
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
4526
|
+
}, zod_v4_core.$strict>;
|
|
4527
|
+
readonly response: {
|
|
4528
|
+
readonly kind: "json";
|
|
4529
|
+
readonly schema: zod.ZodObject<{
|
|
4530
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
4531
|
+
id: zod.ZodString;
|
|
4532
|
+
itemId: zod.ZodString;
|
|
4533
|
+
name: zod.ZodString;
|
|
4534
|
+
path: zod.ZodString;
|
|
4535
|
+
state: zod.ZodEnum<{
|
|
4536
|
+
failed: "failed";
|
|
4537
|
+
withdrawn: "withdrawn";
|
|
4538
|
+
indexed: "indexed";
|
|
4539
|
+
discovered: "discovered";
|
|
4540
|
+
fetched: "fetched";
|
|
4541
|
+
}>;
|
|
4542
|
+
failureCode: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
4543
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
4544
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
4545
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
4546
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
4547
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
4548
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
4549
|
+
}>, zod.ZodEnum<{
|
|
4550
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
4551
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
4552
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
4553
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
4554
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
4555
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
4556
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
4557
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
4558
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
4559
|
+
}>]>>;
|
|
4560
|
+
documentId: zod.ZodOptional<zod.ZodString>;
|
|
4561
|
+
originLink: zod.ZodOptional<zod.ZodString>;
|
|
4562
|
+
changedAt: zod.ZodString;
|
|
4563
|
+
}, zod_v4_core.$strict>>;
|
|
4564
|
+
nextCursor: zod.ZodOptional<zod.ZodString>;
|
|
4565
|
+
}, zod_v4_core.$strict>;
|
|
4566
|
+
};
|
|
4567
|
+
readonly rateClass: "read";
|
|
4568
|
+
readonly tag: "Knowledge Bases";
|
|
4569
|
+
readonly auth: "principal";
|
|
4570
|
+
readonly requires: readonly [];
|
|
4571
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT"];
|
|
4572
|
+
} & {
|
|
4573
|
+
readonly headers: {
|
|
4574
|
+
readonly response: readonly ["Operation-Run-Id"];
|
|
4575
|
+
};
|
|
4576
|
+
}>;
|
|
4577
|
+
readonly "knowledge_bases.locate": Operation<{
|
|
4578
|
+
readonly id: "knowledge_bases.locate";
|
|
4579
|
+
readonly method: "GET";
|
|
4580
|
+
readonly path: "/api/v1/knowledge-bases/:knowledgeBase/locate";
|
|
4581
|
+
readonly summary: "Locate a source item for erasure: state and lifecycle times without content, file name or path";
|
|
4582
|
+
readonly scope: "config_assets:read";
|
|
4583
|
+
readonly effect: "reading";
|
|
4584
|
+
readonly query: zod.ZodObject<{
|
|
4585
|
+
sourceItemId: zod.ZodString;
|
|
4586
|
+
}, zod_v4_core.$strict>;
|
|
4587
|
+
readonly response: {
|
|
4588
|
+
readonly kind: "json";
|
|
4589
|
+
readonly schema: zod.ZodObject<{
|
|
4590
|
+
sourceItemId: zod.ZodString;
|
|
4591
|
+
source: zod.ZodString;
|
|
4592
|
+
itemId: zod.ZodString;
|
|
4593
|
+
state: zod.ZodEnum<{
|
|
4594
|
+
failed: "failed";
|
|
4595
|
+
withdrawn: "withdrawn";
|
|
4596
|
+
indexed: "indexed";
|
|
4597
|
+
discovered: "discovered";
|
|
4598
|
+
fetched: "fetched";
|
|
4599
|
+
}>;
|
|
4600
|
+
discoveredAt: zod.ZodString;
|
|
4601
|
+
fetchedAt: zod.ZodOptional<zod.ZodString>;
|
|
4602
|
+
withdrawnAt: zod.ZodOptional<zod.ZodString>;
|
|
4603
|
+
purgedAt: zod.ZodOptional<zod.ZodString>;
|
|
4604
|
+
}, zod_v4_core.$strict>;
|
|
4605
|
+
};
|
|
4606
|
+
readonly rateClass: "read";
|
|
4607
|
+
readonly tag: "Knowledge Bases";
|
|
4608
|
+
readonly auth: "principal";
|
|
4609
|
+
readonly requires: readonly [];
|
|
4610
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT"];
|
|
4611
|
+
} & {
|
|
4612
|
+
readonly headers: {
|
|
4613
|
+
readonly response: readonly ["Operation-Run-Id"];
|
|
4614
|
+
};
|
|
4615
|
+
}>;
|
|
4213
4616
|
readonly "knowledge_bases.get": Operation<{
|
|
4214
4617
|
readonly id: "knowledge_bases.get";
|
|
4215
4618
|
readonly method: "GET";
|
|
@@ -4627,6 +5030,10 @@ declare const apiOperations: {
|
|
|
4627
5030
|
title: zod.ZodString;
|
|
4628
5031
|
format: zod.ZodString;
|
|
4629
5032
|
bytes: zod.ZodNumber;
|
|
5033
|
+
originalStatus: zod.ZodOptional<zod.ZodEnum<{
|
|
5034
|
+
available: "available";
|
|
5035
|
+
released: "released";
|
|
5036
|
+
}>>;
|
|
4630
5037
|
state: zod.ZodEnum<{
|
|
4631
5038
|
failed: "failed";
|
|
4632
5039
|
pending: "pending";
|
|
@@ -4811,24 +5218,50 @@ declare const apiOperations: {
|
|
|
4811
5218
|
readonly method: "POST";
|
|
4812
5219
|
readonly path: "/api/v1/knowledge-bases/:knowledgeBase/documents/retry";
|
|
4813
5220
|
readonly summary: "Index documents of a Knowledge Base again: a failed one goes back to pending, and its content is queued";
|
|
4814
|
-
readonly scope: "
|
|
5221
|
+
readonly scope: "config_assets:write";
|
|
4815
5222
|
readonly effect: "changing";
|
|
4816
|
-
readonly body: zod.ZodObject<{
|
|
5223
|
+
readonly body: zod.ZodUnion<readonly [zod.ZodObject<{
|
|
4817
5224
|
documentIds: zod.ZodArray<zod.ZodString>;
|
|
4818
|
-
}, zod_v4_core.$strict
|
|
5225
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
5226
|
+
source: zod.ZodString;
|
|
5227
|
+
sourceItemIds: zod.ZodArray<zod.ZodString>;
|
|
5228
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
5229
|
+
source: zod.ZodString;
|
|
5230
|
+
failureCode: zod.ZodUnion<readonly [zod.ZodEnum<{
|
|
5231
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
5232
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
5233
|
+
knowledge_source_unreachable: "knowledge_source_unreachable";
|
|
5234
|
+
knowledge_source_refused: "knowledge_source_refused";
|
|
5235
|
+
knowledge_fetch_failed: "knowledge_fetch_failed";
|
|
5236
|
+
knowledge_source_limit_reached: "knowledge_source_limit_reached";
|
|
5237
|
+
}>, zod.ZodEnum<{
|
|
5238
|
+
knowledge_file_format_unsupported: "knowledge_file_format_unsupported";
|
|
5239
|
+
knowledge_file_over_limit: "knowledge_file_over_limit";
|
|
5240
|
+
knowledge_file_unreadable: "knowledge_file_unreadable";
|
|
5241
|
+
knowledge_file_missing: "knowledge_file_missing";
|
|
5242
|
+
knowledge_extraction_failed: "knowledge_extraction_failed";
|
|
5243
|
+
knowledge_file_format_unavailable: "knowledge_file_format_unavailable";
|
|
5244
|
+
knowledge_text_unreadable: "knowledge_text_unreadable";
|
|
5245
|
+
knowledge_text_empty: "knowledge_text_empty";
|
|
5246
|
+
knowledge_index_failed: "knowledge_index_failed";
|
|
5247
|
+
}>]>;
|
|
5248
|
+
}, zod_v4_core.$strict>, zod.ZodObject<{
|
|
5249
|
+
source: zod.ZodString;
|
|
5250
|
+
all: zod.ZodLiteral<true>;
|
|
5251
|
+
}, zod_v4_core.$strict>]>;
|
|
4819
5252
|
readonly response: {
|
|
4820
5253
|
readonly kind: "json";
|
|
4821
5254
|
readonly schema: zod.ZodObject<{
|
|
4822
|
-
documents: zod.ZodArray<zod.ZodObject<{
|
|
5255
|
+
documents: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
4823
5256
|
id: zod.ZodString;
|
|
4824
5257
|
state: zod.ZodEnum<{
|
|
4825
5258
|
failed: "failed";
|
|
4826
5259
|
pending: "pending";
|
|
4827
5260
|
indexed: "indexed";
|
|
4828
5261
|
}>;
|
|
4829
|
-
}, zod_v4_core.$
|
|
5262
|
+
}, zod_v4_core.$strict>>>;
|
|
4830
5263
|
queued: zod.ZodNumber;
|
|
4831
|
-
}, zod_v4_core.$
|
|
5264
|
+
}, zod_v4_core.$strict>;
|
|
4832
5265
|
};
|
|
4833
5266
|
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED", "TIMEOUT"];
|
|
4834
5267
|
readonly rateClass: "write";
|
|
@@ -5661,6 +6094,7 @@ declare const apiOperations: {
|
|
|
5661
6094
|
readonly effect: "changing";
|
|
5662
6095
|
readonly body: zod.ZodObject<{
|
|
5663
6096
|
input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
6097
|
+
key: zod.ZodOptional<zod.ZodString>;
|
|
5664
6098
|
}, zod_v4_core.$strip>;
|
|
5665
6099
|
readonly response: {
|
|
5666
6100
|
readonly kind: "json";
|
|
@@ -5700,6 +6134,7 @@ declare const apiOperations: {
|
|
|
5700
6134
|
label: zod.ZodString;
|
|
5701
6135
|
}, zod_v4_core.$strip>;
|
|
5702
6136
|
scheduledFor: zod.ZodOptional<zod.ZodISODateTime>;
|
|
6137
|
+
runKey: zod.ZodOptional<zod.ZodString>;
|
|
5703
6138
|
operationRunId: zod.ZodOptional<zod.ZodString>;
|
|
5704
6139
|
parentRunId: zod.ZodOptional<zod.ZodString>;
|
|
5705
6140
|
parentStepRunId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5727,7 +6162,7 @@ declare const apiOperations: {
|
|
|
5727
6162
|
dataPrunedAt: zod.ZodOptional<zod.ZodISODateTime>;
|
|
5728
6163
|
}, zod_v4_core.$strip>;
|
|
5729
6164
|
};
|
|
5730
|
-
readonly errors: readonly ["NOT_FOUND", "CONFLICT"];
|
|
6165
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "VALIDATION_FAILED"];
|
|
5731
6166
|
readonly rateClass: "write";
|
|
5732
6167
|
} & {
|
|
5733
6168
|
readonly accepted: zod.ZodObject<{
|
|
@@ -5863,6 +6298,7 @@ declare const apiOperations: {
|
|
|
5863
6298
|
readonly effect: "changing";
|
|
5864
6299
|
readonly body: zod.ZodObject<{
|
|
5865
6300
|
input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
6301
|
+
key: zod.ZodOptional<zod.ZodString>;
|
|
5866
6302
|
}, zod_v4_core.$strip>;
|
|
5867
6303
|
readonly response: {
|
|
5868
6304
|
readonly kind: "json";
|
|
@@ -5902,6 +6338,7 @@ declare const apiOperations: {
|
|
|
5902
6338
|
label: zod.ZodString;
|
|
5903
6339
|
}, zod_v4_core.$strip>;
|
|
5904
6340
|
scheduledFor: zod.ZodOptional<zod.ZodISODateTime>;
|
|
6341
|
+
runKey: zod.ZodOptional<zod.ZodString>;
|
|
5905
6342
|
operationRunId: zod.ZodOptional<zod.ZodString>;
|
|
5906
6343
|
parentRunId: zod.ZodOptional<zod.ZodString>;
|
|
5907
6344
|
parentStepRunId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -6057,7 +6494,7 @@ declare const apiOperations: {
|
|
|
6057
6494
|
readonly id: "workflows.list_runs";
|
|
6058
6495
|
readonly method: "GET";
|
|
6059
6496
|
readonly path: "/api/v1/workflows/:workflow/runs";
|
|
6060
|
-
readonly summary: "List the runs of one Workflow with their status, newest first";
|
|
6497
|
+
readonly summary: "List the runs of one Workflow with their status, newest first: all of them, or those of one run key or key prefix";
|
|
6061
6498
|
readonly tag: "Workflows";
|
|
6062
6499
|
readonly auth: "principal";
|
|
6063
6500
|
readonly scope: "config_assets:read";
|
|
@@ -6066,6 +6503,8 @@ declare const apiOperations: {
|
|
|
6066
6503
|
readonly query: zod.ZodObject<{
|
|
6067
6504
|
limit: zod.ZodDefault<zod.ZodCoercedNumber<unknown>>;
|
|
6068
6505
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
6506
|
+
key: zod.ZodOptional<zod.ZodString>;
|
|
6507
|
+
keyPrefix: zod.ZodOptional<zod.ZodString>;
|
|
6069
6508
|
}, zod_v4_core.$strip>;
|
|
6070
6509
|
readonly response: {
|
|
6071
6510
|
readonly kind: "page";
|
|
@@ -6106,6 +6545,7 @@ declare const apiOperations: {
|
|
|
6106
6545
|
label: zod.ZodString;
|
|
6107
6546
|
}, zod_v4_core.$strip>;
|
|
6108
6547
|
scheduledFor: zod.ZodOptional<zod.ZodISODateTime>;
|
|
6548
|
+
runKey: zod.ZodOptional<zod.ZodString>;
|
|
6109
6549
|
operationRunId: zod.ZodOptional<zod.ZodString>;
|
|
6110
6550
|
parentRunId: zod.ZodOptional<zod.ZodString>;
|
|
6111
6551
|
parentStepRunId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -6137,7 +6577,7 @@ declare const apiOperations: {
|
|
|
6137
6577
|
readonly order: readonly string[];
|
|
6138
6578
|
readonly descending: boolean;
|
|
6139
6579
|
};
|
|
6140
|
-
readonly errors: readonly [];
|
|
6580
|
+
readonly errors: readonly ["VALIDATION_FAILED"];
|
|
6141
6581
|
readonly rateClass: "read";
|
|
6142
6582
|
} & {
|
|
6143
6583
|
readonly headers: {
|
|
@@ -6192,6 +6632,7 @@ declare const apiOperations: {
|
|
|
6192
6632
|
label: zod.ZodString;
|
|
6193
6633
|
}, zod_v4_core.$strip>;
|
|
6194
6634
|
scheduledFor: zod.ZodOptional<zod.ZodISODateTime>;
|
|
6635
|
+
runKey: zod.ZodOptional<zod.ZodString>;
|
|
6195
6636
|
operationRunId: zod.ZodOptional<zod.ZodString>;
|
|
6196
6637
|
parentRunId: zod.ZodOptional<zod.ZodString>;
|
|
6197
6638
|
parentStepRunId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -6324,6 +6765,7 @@ declare const apiOperations: {
|
|
|
6324
6765
|
}>;
|
|
6325
6766
|
attempt: zod.ZodNumber;
|
|
6326
6767
|
operationRunId: zod.ZodOptional<zod.ZodString>;
|
|
6768
|
+
linkedRunId: zod.ZodOptional<zod.ZodString>;
|
|
6327
6769
|
error: zod.ZodOptional<zod.ZodObject<{
|
|
6328
6770
|
code: zod.ZodString;
|
|
6329
6771
|
message: zod.ZodString;
|
|
@@ -6398,6 +6840,7 @@ declare const apiOperations: {
|
|
|
6398
6840
|
label: zod.ZodString;
|
|
6399
6841
|
}, zod_v4_core.$strip>;
|
|
6400
6842
|
scheduledFor: zod.ZodOptional<zod.ZodISODateTime>;
|
|
6843
|
+
runKey: zod.ZodOptional<zod.ZodString>;
|
|
6401
6844
|
operationRunId: zod.ZodOptional<zod.ZodString>;
|
|
6402
6845
|
parentRunId: zod.ZodOptional<zod.ZodString>;
|
|
6403
6846
|
parentStepRunId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -7717,6 +8160,8 @@ declare const apiOperations: {
|
|
|
7717
8160
|
config: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
7718
8161
|
author: zod.ZodObject<{
|
|
7719
8162
|
userId: zod.ZodOptional<zod.ZodString>;
|
|
8163
|
+
displayLabel: zod.ZodOptional<zod.ZodString>;
|
|
8164
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
7720
8165
|
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
7721
8166
|
release: zod.ZodBoolean;
|
|
7722
8167
|
}, zod_v4_core.$strip>;
|
|
@@ -8066,6 +8511,7 @@ declare const apiOperations: {
|
|
|
8066
8511
|
baseRevision: zod.ZodNumber;
|
|
8067
8512
|
author: zod.ZodObject<{
|
|
8068
8513
|
userId: zod.ZodOptional<zod.ZodString>;
|
|
8514
|
+
displayLabel: zod.ZodOptional<zod.ZodString>;
|
|
8069
8515
|
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
8070
8516
|
release: zod.ZodBoolean;
|
|
8071
8517
|
}, zod_v4_core.$strip>;
|
|
@@ -8566,6 +9012,7 @@ declare const apiOperations: {
|
|
|
8566
9012
|
readonly schema: zod.ZodObject<{
|
|
8567
9013
|
config: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
8568
9014
|
runsAs: zod.ZodOptional<zod.ZodString>;
|
|
9015
|
+
publishQuestion: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
8569
9016
|
contentRevision: zod.ZodOptional<zod.ZodNumber>;
|
|
8570
9017
|
files: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
8571
9018
|
path: zod.ZodString;
|
|
@@ -8607,12 +9054,18 @@ declare const apiOperations: {
|
|
|
8607
9054
|
reason: zod.ZodLiteral<"unknown_model">;
|
|
8608
9055
|
}, zod_v4_core.$strip>>>;
|
|
8609
9056
|
chatAvailable: zod.ZodOptional<zod.ZodBoolean>;
|
|
9057
|
+
allowed: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<{
|
|
9058
|
+
publish: "publish";
|
|
9059
|
+
delete: "delete";
|
|
9060
|
+
write: "write";
|
|
9061
|
+
}>>>;
|
|
8610
9062
|
updatedAt: zod.ZodISODateTime;
|
|
8611
9063
|
agentDraft: zod.ZodOptional<zod.ZodObject<{
|
|
8612
9064
|
revision: zod.ZodNumber;
|
|
8613
9065
|
baseRevision: zod.ZodNumber;
|
|
8614
9066
|
author: zod.ZodObject<{
|
|
8615
9067
|
userId: zod.ZodOptional<zod.ZodString>;
|
|
9068
|
+
displayLabel: zod.ZodOptional<zod.ZodString>;
|
|
8616
9069
|
conversationId: zod.ZodOptional<zod.ZodString>;
|
|
8617
9070
|
release: zod.ZodBoolean;
|
|
8618
9071
|
}, zod_v4_core.$strip>;
|
|
@@ -18862,6 +19315,7 @@ declare const assetSummarySchema: z.ZodObject<{
|
|
|
18862
19315
|
baseRevision: z.ZodNumber;
|
|
18863
19316
|
author: z.ZodObject<{
|
|
18864
19317
|
userId: z.ZodOptional<z.ZodString>;
|
|
19318
|
+
displayLabel: z.ZodOptional<z.ZodString>;
|
|
18865
19319
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
18866
19320
|
release: z.ZodBoolean;
|
|
18867
19321
|
}, z.core.$strip>;
|
|
@@ -18886,6 +19340,7 @@ declare const assetSummarySchema: z.ZodObject<{
|
|
|
18886
19340
|
declare const assetSchema: z.ZodObject<{
|
|
18887
19341
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18888
19342
|
runsAs: z.ZodOptional<z.ZodString>;
|
|
19343
|
+
publishQuestion: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18889
19344
|
contentRevision: z.ZodOptional<z.ZodNumber>;
|
|
18890
19345
|
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18891
19346
|
path: z.ZodString;
|
|
@@ -18927,12 +19382,18 @@ declare const assetSchema: z.ZodObject<{
|
|
|
18927
19382
|
reason: z.ZodLiteral<"unknown_model">;
|
|
18928
19383
|
}, z.core.$strip>>>;
|
|
18929
19384
|
chatAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
19385
|
+
allowed: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
19386
|
+
publish: "publish";
|
|
19387
|
+
delete: "delete";
|
|
19388
|
+
write: "write";
|
|
19389
|
+
}>>>;
|
|
18930
19390
|
updatedAt: z.ZodISODateTime;
|
|
18931
19391
|
agentDraft: z.ZodOptional<z.ZodObject<{
|
|
18932
19392
|
revision: z.ZodNumber;
|
|
18933
19393
|
baseRevision: z.ZodNumber;
|
|
18934
19394
|
author: z.ZodObject<{
|
|
18935
19395
|
userId: z.ZodOptional<z.ZodString>;
|
|
19396
|
+
displayLabel: z.ZodOptional<z.ZodString>;
|
|
18936
19397
|
conversationId: z.ZodOptional<z.ZodString>;
|
|
18937
19398
|
release: z.ZodBoolean;
|
|
18938
19399
|
}, z.core.$strip>;
|
|
@@ -19140,8 +19601,20 @@ interface AssetBaseline {
|
|
|
19140
19601
|
* same name can be at the same number. An entry of an earlier CLI has none.
|
|
19141
19602
|
*/
|
|
19142
19603
|
id?: string;
|
|
19604
|
+
/** For an agent: its live revision. A draft never moves it. */
|
|
19143
19605
|
revision: number;
|
|
19144
19606
|
hash: string;
|
|
19607
|
+
/**
|
|
19608
|
+
* For an agent: the draft revision the last pull or push saw, or null where it saw none. A
|
|
19609
|
+
* push names it, so it never writes over a draft somebody changed since. Left out by a CLI
|
|
19610
|
+
* from before agent drafts, whose baseline cannot be pushed until one pull.
|
|
19611
|
+
*/
|
|
19612
|
+
draftRevision?: number | null;
|
|
19613
|
+
/**
|
|
19614
|
+
* For an agent: `hash` is of the draft this working copy pushed, not of the live revision,
|
|
19615
|
+
* so a pull reads the live revision again and a diff compares against it.
|
|
19616
|
+
*/
|
|
19617
|
+
draftPushed?: true;
|
|
19145
19618
|
}
|
|
19146
19619
|
/** The delete of an asset as a pull or a push saw it. */
|
|
19147
19620
|
interface DeletedAssetBaseline {
|
|
@@ -19221,6 +19694,8 @@ interface ConfigCommandOptions {
|
|
|
19221
19694
|
instance?: string;
|
|
19222
19695
|
force?: boolean;
|
|
19223
19696
|
prune?: boolean;
|
|
19697
|
+
/** On push: publish each agent draft the push wrote. */
|
|
19698
|
+
publish?: boolean;
|
|
19224
19699
|
only?: string[];
|
|
19225
19700
|
/** The workspace `pull` binds the working copy to, or finds it bound to. */
|
|
19226
19701
|
workspace?: string;
|