@runtypelabs/sdk 11.4.1 → 11.5.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/index.d.ts CHANGED
@@ -5063,6 +5063,12 @@ interface paths {
5063
5063
  progress?: unknown;
5064
5064
  retryOfExecutionId: string | null;
5065
5065
  rootExecutionId: string | null;
5066
+ /** @description Trace signal status and fired keys. Omitted until the organization binds a signal set. */
5067
+ signals?: {
5068
+ fired: string[];
5069
+ /** @enum {string} */
5070
+ status: "complete" | "pending" | "partial" | "none" | "unavailable";
5071
+ };
5066
5072
  startedAt: string | null;
5067
5073
  /** @enum {string} */
5068
5074
  status: "queued" | "running" | "paused" | "completed" | "failed" | "cancelled" | "interrupted";
@@ -29283,6 +29289,7 @@ interface paths {
29283
29289
  completedAt: string | null;
29284
29290
  executionId: string;
29285
29291
  parentToolCallId: string | null;
29292
+ signals?: components["schemas"]["SignalsBlock"];
29286
29293
  startedAt: string | null;
29287
29294
  status: string;
29288
29295
  }[];
@@ -34733,6 +34740,63 @@ interface paths {
34733
34740
  rootExecutionId: string | null;
34734
34741
  /** @description Cost the producer reported. */
34735
34742
  selfReportedCost: string | null;
34743
+ /** @description Trace signals. A list row carries status and fired only; GET /v1/runs/{id} adds results. Omitted entirely until the organization binds a signal set. */
34744
+ signals?: {
34745
+ fired: string[];
34746
+ results?: {
34747
+ answers: {
34748
+ [key: string]: {
34749
+ /** @enum {string} */
34750
+ band: "act" | "review" | "low";
34751
+ confidence?: number;
34752
+ distribution?: {
34753
+ [key: string]: number;
34754
+ };
34755
+ fired?: boolean;
34756
+ pNull?: number;
34757
+ refused?: boolean;
34758
+ source?: {
34759
+ end: number;
34760
+ field: string;
34761
+ spanId: string;
34762
+ start: number;
34763
+ };
34764
+ sources?: {
34765
+ end: number;
34766
+ field: string;
34767
+ spanId: string;
34768
+ start: number;
34769
+ }[];
34770
+ value?: unknown;
34771
+ };
34772
+ };
34773
+ bindingId: string;
34774
+ computedAt: string;
34775
+ error?: string;
34776
+ fired: string[];
34777
+ /** @enum {string} */
34778
+ sample: "uniform" | "filtered";
34779
+ signalSet: {
34780
+ id: string;
34781
+ name: string;
34782
+ version: number;
34783
+ };
34784
+ /** @enum {string} */
34785
+ status: "complete" | "failed" | "skipped_budget" | "skipped_policy";
34786
+ target: {
34787
+ executionId: string;
34788
+ spanId: string | null;
34789
+ turnIndex: number | null;
34790
+ };
34791
+ /** @enum {string} */
34792
+ unit: "turn" | "conversation" | "run";
34793
+ values: {
34794
+ [key: string]: unknown;
34795
+ };
34796
+ }[];
34797
+ /** @enum {string} */
34798
+ status: "complete" | "pending" | "partial" | "none" | "unavailable";
34799
+ };
34736
34800
  /**
34737
34801
  * @description hosted, or ingested for an OTLP export. An ingested run is never reported running.
34738
34802
  * @enum {string}
@@ -45581,6 +45645,8 @@ interface paths {
45581
45645
  status?: "running" | "completed" | "failed";
45582
45646
  /** @description live keeps runs real users and integrations started; test keeps runs started from the dashboard (Test, step tests, Ask); eval keeps eval-batch runs; sim keeps simulation turns; all, or omitted, keeps every run. A simulation turn is sim even when a schedule started it, a schedule run is live, and an eval batch run is eval whoever started it. */
45583
45647
  traffic?: "live" | "test" | "eval" | "sim" | "all";
45648
+ /** @description Runs where this signal fired: `key` for any fired value, or `key:value` for one choice value (for example frustration:churn_threat). */
45649
+ signal?: string;
45584
45650
  /** @description Window start (ISO 8601). Defaults to 24 hours ago. */
45585
45651
  from?: string;
45586
45652
  /** @description Window end (ISO 8601). Defaults to now. */
@@ -53254,34 +53320,50 @@ interface paths {
53254
53320
  patch?: never;
53255
53321
  trace?: never;
53256
53322
  };
53257
- "/v1/skill-proposals": {
53323
+ "/v1/signal-bindings": {
53258
53324
  parameters: {
53259
53325
  query?: never;
53260
53326
  header?: never;
53261
53327
  path?: never;
53262
53328
  cookie?: never;
53263
53329
  };
53264
- /** List pending skill proposals */
53330
+ /**
53331
+ * List signal bindings
53332
+ * @description Enabled bindings, newest first; filter by agent or set, or include disabled ones.
53333
+ */
53265
53334
  get: {
53266
53335
  parameters: {
53267
- query?: never;
53336
+ query?: {
53337
+ agentId?: string;
53338
+ signalSetId?: string;
53339
+ includeDisabled?: "true" | "false";
53340
+ };
53268
53341
  header?: never;
53269
53342
  path?: never;
53270
53343
  cookie?: never;
53271
53344
  };
53272
53345
  requestBody?: never;
53273
53346
  responses: {
53274
- /** @description Pending proposals */
53347
+ /** @description Bindings */
53275
53348
  200: {
53276
53349
  headers: {
53277
53350
  [name: string]: unknown;
53278
53351
  };
53279
53352
  content: {
53280
53353
  "application/json": {
53281
- data: components["schemas"]["EnrichedSkillProposal"][];
53354
+ data: components["schemas"]["SignalBinding"][];
53282
53355
  };
53283
53356
  };
53284
53357
  };
53358
+ /** @description Invalid request */
53359
+ 400: {
53360
+ headers: {
53361
+ [name: string]: unknown;
53362
+ };
53363
+ content: {
53364
+ "application/json": components["schemas"]["SignalError"];
53365
+ };
53366
+ };
53285
53367
  /** @description Unauthorized */
53286
53368
  401: {
53287
53369
  headers: {
@@ -53291,60 +53373,94 @@ interface paths {
53291
53373
  "application/json": components["schemas"]["Error"];
53292
53374
  };
53293
53375
  };
53294
- /** @description Insufficient permissions */
53376
+ /** @description Insufficient permissions, or no organization context */
53295
53377
  403: {
53296
53378
  headers: {
53297
53379
  [name: string]: unknown;
53298
53380
  };
53299
53381
  content: {
53300
- "application/json": components["schemas"]["Error"];
53382
+ "application/json": components["schemas"]["SignalError"];
53383
+ };
53384
+ };
53385
+ /** @description Not found */
53386
+ 404: {
53387
+ headers: {
53388
+ [name: string]: unknown;
53389
+ };
53390
+ content: {
53391
+ "application/json": components["schemas"]["SignalError"];
53301
53392
  };
53302
53393
  };
53303
53394
  };
53304
53395
  };
53305
53396
  put?: never;
53306
- post?: never;
53307
- delete?: never;
53308
- options?: never;
53309
- head?: never;
53310
- patch?: never;
53311
- trace?: never;
53312
- };
53313
- "/v1/skill-proposals/{id}/approve": {
53314
- parameters: {
53315
- query?: never;
53316
- header?: never;
53317
- path?: never;
53318
- cookie?: never;
53319
- };
53320
- get?: never;
53321
- put?: never;
53322
53397
  /**
53323
- * Approve a skill proposal
53324
- * @description Approve a pending proposal — publishes the proposed skill version.
53398
+ * Bind a signal set to an agent
53399
+ * @description Evaluate a set version on every matching turn of an agent from now on. Refused for an agent with loggingPolicy "off" and under zero data retention; an organization handling PHI must pass acknowledgeExternalProcessing.
53325
53400
  */
53326
53401
  post: {
53327
53402
  parameters: {
53328
53403
  query?: never;
53329
53404
  header?: never;
53330
- path: {
53331
- id: string;
53332
- };
53405
+ path?: never;
53333
53406
  cookie?: never;
53334
53407
  };
53335
- requestBody?: never;
53408
+ requestBody?: {
53409
+ content: {
53410
+ "application/json": {
53411
+ /** @description Required for a PHI organization whose set uses a decision model outside Cloudflare Workers AI. Written to the audit log. */
53412
+ acknowledgeExternalProcessing?: boolean;
53413
+ /** @description Default $25 a month. */
53414
+ budget?: {
53415
+ monthlyUsd: number;
53416
+ };
53417
+ coverage?: {
53418
+ /** @enum {string} */
53419
+ mode: "all";
53420
+ } | {
53421
+ /** @enum {string} */
53422
+ mode: "sample";
53423
+ rate: number;
53424
+ };
53425
+ filter?: {
53426
+ minTurns?: number;
53427
+ status?: string[];
53428
+ };
53429
+ signalSetId: string;
53430
+ /** @description Native and external (OTLP) agents bind alike. */
53431
+ target: {
53432
+ id: string;
53433
+ /** @enum {string} */
53434
+ kind: "agent";
53435
+ };
53436
+ /** @description Share drawn uniformly at random BEFORE the filter, so live-traffic rates stay unbiased. Default 0.05. */
53437
+ uniformShare?: number;
53438
+ /** @description Defaults to the set’s current version. */
53439
+ versionNumber?: number;
53440
+ };
53441
+ };
53442
+ };
53336
53443
  responses: {
53337
- /** @description Approved */
53338
- 200: {
53444
+ /** @description Bound */
53445
+ 201: {
53339
53446
  headers: {
53340
53447
  [name: string]: unknown;
53341
53448
  };
53342
53449
  content: {
53343
53450
  "application/json": {
53344
- proposal: components["schemas"]["SkillProposal"];
53451
+ binding: components["schemas"]["SignalBinding"];
53345
53452
  };
53346
53453
  };
53347
53454
  };
53455
+ /** @description Invalid request */
53456
+ 400: {
53457
+ headers: {
53458
+ [name: string]: unknown;
53459
+ };
53460
+ content: {
53461
+ "application/json": components["schemas"]["SignalError"];
53462
+ };
53463
+ };
53348
53464
  /** @description Unauthorized */
53349
53465
  401: {
53350
53466
  headers: {
@@ -53354,22 +53470,40 @@ interface paths {
53354
53470
  "application/json": components["schemas"]["Error"];
53355
53471
  };
53356
53472
  };
53357
- /** @description Insufficient permissions */
53473
+ /** @description Insufficient permissions, or no organization context */
53358
53474
  403: {
53359
53475
  headers: {
53360
53476
  [name: string]: unknown;
53361
53477
  };
53362
53478
  content: {
53363
- "application/json": components["schemas"]["Error"];
53479
+ "application/json": components["schemas"]["SignalError"];
53364
53480
  };
53365
53481
  };
53366
- /** @description Already reviewed */
53482
+ /** @description Not found */
53483
+ 404: {
53484
+ headers: {
53485
+ [name: string]: unknown;
53486
+ };
53487
+ content: {
53488
+ "application/json": components["schemas"]["SignalError"];
53489
+ };
53490
+ };
53491
+ /** @description Conflict, or external processing not yet acknowledged */
53367
53492
  409: {
53368
53493
  headers: {
53369
53494
  [name: string]: unknown;
53370
53495
  };
53371
53496
  content: {
53372
- "application/json": components["schemas"]["Error"];
53497
+ "application/json": components["schemas"]["SignalError"];
53498
+ };
53499
+ };
53500
+ /** @description Refused: the agent or organization posture forbids signal evaluation */
53501
+ 422: {
53502
+ headers: {
53503
+ [name: string]: unknown;
53504
+ };
53505
+ content: {
53506
+ "application/json": components["schemas"]["SignalError"];
53373
53507
  };
53374
53508
  };
53375
53509
  };
@@ -53380,7 +53514,7 @@ interface paths {
53380
53514
  patch?: never;
53381
53515
  trace?: never;
53382
53516
  };
53383
- "/v1/skill-proposals/{id}/reject": {
53517
+ "/v1/signal-bindings/{id}": {
53384
53518
  parameters: {
53385
53519
  query?: never;
53386
53520
  header?: never;
@@ -53389,8 +53523,12 @@ interface paths {
53389
53523
  };
53390
53524
  get?: never;
53391
53525
  put?: never;
53392
- /** Reject a skill proposal */
53393
- post: {
53526
+ post?: never;
53527
+ /**
53528
+ * Unbind a signal set
53529
+ * @description Stop evaluating. Existing results stay readable on their traces until those traces expire.
53530
+ */
53531
+ delete: {
53394
53532
  parameters: {
53395
53533
  query?: never;
53396
53534
  header?: never;
@@ -53399,25 +53537,28 @@ interface paths {
53399
53537
  };
53400
53538
  cookie?: never;
53401
53539
  };
53402
- requestBody?: {
53403
- content: {
53404
- "application/json": {
53405
- reason?: string;
53406
- };
53407
- };
53408
- };
53540
+ requestBody?: never;
53409
53541
  responses: {
53410
- /** @description Rejected */
53542
+ /** @description Disabled */
53411
53543
  200: {
53412
53544
  headers: {
53413
53545
  [name: string]: unknown;
53414
53546
  };
53415
53547
  content: {
53416
53548
  "application/json": {
53417
- proposal: components["schemas"]["SkillProposal"];
53549
+ binding: components["schemas"]["SignalBinding"];
53418
53550
  };
53419
53551
  };
53420
53552
  };
53553
+ /** @description Invalid request */
53554
+ 400: {
53555
+ headers: {
53556
+ [name: string]: unknown;
53557
+ };
53558
+ content: {
53559
+ "application/json": components["schemas"]["SignalError"];
53560
+ };
53561
+ };
53421
53562
  /** @description Unauthorized */
53422
53563
  401: {
53423
53564
  headers: {
@@ -53427,24 +53568,32 @@ interface paths {
53427
53568
  "application/json": components["schemas"]["Error"];
53428
53569
  };
53429
53570
  };
53430
- /** @description Insufficient permissions */
53571
+ /** @description Insufficient permissions, or no organization context */
53431
53572
  403: {
53432
53573
  headers: {
53433
53574
  [name: string]: unknown;
53434
53575
  };
53435
53576
  content: {
53436
- "application/json": components["schemas"]["Error"];
53577
+ "application/json": components["schemas"]["SignalError"];
53578
+ };
53579
+ };
53580
+ /** @description Not found */
53581
+ 404: {
53582
+ headers: {
53583
+ [name: string]: unknown;
53584
+ };
53585
+ content: {
53586
+ "application/json": components["schemas"]["SignalError"];
53437
53587
  };
53438
53588
  };
53439
53589
  };
53440
53590
  };
53441
- delete?: never;
53442
53591
  options?: never;
53443
53592
  head?: never;
53444
53593
  patch?: never;
53445
53594
  trace?: never;
53446
53595
  };
53447
- "/v1/skills": {
53596
+ "/v1/signal-sets": {
53448
53597
  parameters: {
53449
53598
  query?: never;
53450
53599
  header?: never;
@@ -53452,47 +53601,38 @@ interface paths {
53452
53601
  cookie?: never;
53453
53602
  };
53454
53603
  /**
53455
- * List skills
53456
- * @description List skills for the authenticated owner with cursor pagination, optionally filtered by status. Ordered newest-first (id descending).
53604
+ * List signal sets
53605
+ * @description The organization's signal sets, newest first, with each one's latest version number.
53457
53606
  */
53458
53607
  get: {
53459
53608
  parameters: {
53460
- query?: {
53461
- status?: "draft" | "active" | "archived";
53462
- limit?: string;
53463
- cursor?: string;
53464
- direction?: string;
53465
- includeCount?: string;
53466
- /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
53467
- view?: "full" | "compact";
53468
- };
53609
+ query?: never;
53469
53610
  header?: never;
53470
53611
  path?: never;
53471
53612
  cookie?: never;
53472
53613
  };
53473
53614
  requestBody?: never;
53474
53615
  responses: {
53475
- /** @description Paginated list of skills */
53616
+ /** @description Signal sets */
53476
53617
  200: {
53477
53618
  headers: {
53478
53619
  [name: string]: unknown;
53479
53620
  };
53480
53621
  content: {
53481
53622
  "application/json": {
53482
- data: {
53483
- [key: string]: unknown;
53484
- }[];
53485
- pagination: components["schemas"]["Pagination"];
53623
+ data: (components["schemas"]["SignalSet"] & {
53624
+ latestVersionNumber: number;
53625
+ })[];
53486
53626
  };
53487
53627
  };
53488
53628
  };
53489
- /** @description Invalid parameters */
53629
+ /** @description Invalid request */
53490
53630
  400: {
53491
53631
  headers: {
53492
53632
  [name: string]: unknown;
53493
53633
  };
53494
53634
  content: {
53495
- "application/json": components["schemas"]["Error"];
53635
+ "application/json": components["schemas"]["SignalError"];
53496
53636
  };
53497
53637
  };
53498
53638
  /** @description Unauthorized */
@@ -53504,30 +53644,30 @@ interface paths {
53504
53644
  "application/json": components["schemas"]["Error"];
53505
53645
  };
53506
53646
  };
53507
- /** @description Insufficient permissions */
53647
+ /** @description Insufficient permissions, or no organization context */
53508
53648
  403: {
53509
53649
  headers: {
53510
53650
  [name: string]: unknown;
53511
53651
  };
53512
53652
  content: {
53513
- "application/json": components["schemas"]["Error"];
53653
+ "application/json": components["schemas"]["SignalError"];
53514
53654
  };
53515
53655
  };
53516
- /** @description Internal server error */
53517
- 500: {
53656
+ /** @description Not found */
53657
+ 404: {
53518
53658
  headers: {
53519
53659
  [name: string]: unknown;
53520
53660
  };
53521
53661
  content: {
53522
- "application/json": components["schemas"]["Error"];
53662
+ "application/json": components["schemas"]["SignalError"];
53523
53663
  };
53524
53664
  };
53525
53665
  };
53526
53666
  };
53527
53667
  put?: never;
53528
53668
  /**
53529
- * Create a skill
53530
- * @description Create a skill from a SKILL.md string (`markdown`) or a structured manifest (`frontmatter` + `body`). Admin plane — no review queue.
53669
+ * Create a signal set
53670
+ * @description Create a signal set and its first version from a preset or a definition. Preview it against recent traces, then bind it to an agent.
53531
53671
  */
53532
53672
  post: {
53533
53673
  parameters: {
@@ -53539,7 +53679,14 @@ interface paths {
53539
53679
  requestBody?: {
53540
53680
  content: {
53541
53681
  "application/json": {
53542
- [key: string]: unknown;
53682
+ /** @description A signal set version: `{ unit: "turn", context: { priorTurns }, signals: { <key>: { type, instructions, options?, notable?, ... } }, bands: { act, review } }`. bool and choice signals go to the decision model; text, number, date, duration, list and estimate go to the extraction model. */
53683
+ definition?: {
53684
+ [key: string]: unknown;
53685
+ };
53686
+ description?: string | null;
53687
+ name: string;
53688
+ /** @description Start from a preset, e.g. "conversation_health". `definition`, when also given, replaces it. */
53689
+ preset?: string;
53543
53690
  };
53544
53691
  };
53545
53692
  };
@@ -53551,17 +53698,18 @@ interface paths {
53551
53698
  };
53552
53699
  content: {
53553
53700
  "application/json": {
53554
- [key: string]: unknown;
53701
+ signalSet: components["schemas"]["SignalSet"];
53702
+ version: components["schemas"]["SignalSetVersion"];
53555
53703
  };
53556
53704
  };
53557
53705
  };
53558
- /** @description Invalid manifest, or a manifest name that differs from the skill */
53706
+ /** @description Invalid request */
53559
53707
  400: {
53560
53708
  headers: {
53561
53709
  [name: string]: unknown;
53562
53710
  };
53563
53711
  content: {
53564
- "application/json": components["schemas"]["Error"];
53712
+ "application/json": components["schemas"]["SignalError"];
53565
53713
  };
53566
53714
  };
53567
53715
  /** @description Unauthorized */
@@ -53573,31 +53721,40 @@ interface paths {
53573
53721
  "application/json": components["schemas"]["Error"];
53574
53722
  };
53575
53723
  };
53576
- /** @description Insufficient permissions */
53724
+ /** @description Insufficient permissions, or no organization context */
53577
53725
  403: {
53578
53726
  headers: {
53579
53727
  [name: string]: unknown;
53580
53728
  };
53581
53729
  content: {
53582
- "application/json": components["schemas"]["Error"];
53730
+ "application/json": components["schemas"]["SignalError"];
53583
53731
  };
53584
53732
  };
53585
- /** @description Unsupported capability */
53586
- 422: {
53733
+ /** @description Not found */
53734
+ 404: {
53587
53735
  headers: {
53588
53736
  [name: string]: unknown;
53589
53737
  };
53590
53738
  content: {
53591
- "application/json": components["schemas"]["Error"];
53739
+ "application/json": components["schemas"]["SignalError"];
53592
53740
  };
53593
53741
  };
53594
- /** @description Internal server error */
53595
- 500: {
53742
+ /** @description Conflict, or external processing not yet acknowledged */
53743
+ 409: {
53596
53744
  headers: {
53597
53745
  [name: string]: unknown;
53598
53746
  };
53599
53747
  content: {
53600
- "application/json": components["schemas"]["Error"];
53748
+ "application/json": components["schemas"]["SignalError"];
53749
+ };
53750
+ };
53751
+ /** @description Refused: the agent or organization posture forbids signal evaluation */
53752
+ 422: {
53753
+ headers: {
53754
+ [name: string]: unknown;
53755
+ };
53756
+ content: {
53757
+ "application/json": components["schemas"]["SignalError"];
53601
53758
  };
53602
53759
  };
53603
53760
  };
@@ -53608,46 +53765,54 @@ interface paths {
53608
53765
  patch?: never;
53609
53766
  trace?: never;
53610
53767
  };
53611
- "/v1/skills/bind": {
53768
+ "/v1/signal-sets/presets": {
53612
53769
  parameters: {
53613
53770
  query?: never;
53614
53771
  header?: never;
53615
53772
  path?: never;
53616
53773
  cookie?: never;
53617
53774
  };
53618
- get?: never;
53619
- put?: never;
53620
- /** Bind a skill to an agent */
53621
- post: {
53775
+ /**
53776
+ * List signal set presets
53777
+ * @description Named starting points for `create_signal_set` (`preset: "conversation_health"`), with their full definitions.
53778
+ */
53779
+ get: {
53622
53780
  parameters: {
53623
53781
  query?: never;
53624
53782
  header?: never;
53625
53783
  path?: never;
53626
53784
  cookie?: never;
53627
53785
  };
53628
- requestBody?: {
53629
- content: {
53630
- "application/json": {
53631
- agentId: string;
53632
- displayOrder?: number;
53633
- enabled?: boolean;
53634
- skillId: string;
53635
- skillVersionId?: string | null;
53636
- };
53637
- };
53638
- };
53786
+ requestBody?: never;
53639
53787
  responses: {
53640
- /** @description Bound */
53641
- 201: {
53788
+ /** @description Presets */
53789
+ 200: {
53642
53790
  headers: {
53643
53791
  [name: string]: unknown;
53644
53792
  };
53645
53793
  content: {
53646
53794
  "application/json": {
53647
- [key: string]: unknown;
53795
+ data: {
53796
+ /** @description A signal set version: `{ unit: "turn", context: { priorTurns }, signals: { <key>: { type, instructions, options?, notable?, ... } }, bands: { act, review } }`. bool and choice signals go to the decision model; text, number, date, duration, list and estimate go to the extraction model. */
53797
+ definition: {
53798
+ [key: string]: unknown;
53799
+ };
53800
+ description: string;
53801
+ id: string;
53802
+ name: string;
53803
+ }[];
53648
53804
  };
53649
53805
  };
53650
53806
  };
53807
+ /** @description Invalid request */
53808
+ 400: {
53809
+ headers: {
53810
+ [name: string]: unknown;
53811
+ };
53812
+ content: {
53813
+ "application/json": components["schemas"]["SignalError"];
53814
+ };
53815
+ };
53651
53816
  /** @description Unauthorized */
53652
53817
  401: {
53653
53818
  headers: {
@@ -53657,13 +53822,13 @@ interface paths {
53657
53822
  "application/json": components["schemas"]["Error"];
53658
53823
  };
53659
53824
  };
53660
- /** @description Forbidden */
53825
+ /** @description Insufficient permissions, or no organization context */
53661
53826
  403: {
53662
53827
  headers: {
53663
53828
  [name: string]: unknown;
53664
53829
  };
53665
53830
  content: {
53666
- "application/json": components["schemas"]["Error"];
53831
+ "application/json": components["schemas"]["SignalError"];
53667
53832
  };
53668
53833
  };
53669
53834
  /** @description Not found */
@@ -53672,60 +53837,65 @@ interface paths {
53672
53837
  [name: string]: unknown;
53673
53838
  };
53674
53839
  content: {
53675
- "application/json": components["schemas"]["Error"];
53840
+ "application/json": components["schemas"]["SignalError"];
53676
53841
  };
53677
53842
  };
53678
53843
  };
53679
53844
  };
53845
+ put?: never;
53846
+ post?: never;
53680
53847
  delete?: never;
53681
53848
  options?: never;
53682
53849
  head?: never;
53683
53850
  patch?: never;
53684
53851
  trace?: never;
53685
53852
  };
53686
- "/v1/skills/bindings": {
53853
+ "/v1/signal-sets/{id}": {
53687
53854
  parameters: {
53688
53855
  query?: never;
53689
53856
  header?: never;
53690
53857
  path?: never;
53691
53858
  cookie?: never;
53692
53859
  };
53693
- /** List an agent's skill bindings */
53860
+ /**
53861
+ * Get a signal set
53862
+ * @description One signal set with every version, newest first, and the current version.
53863
+ */
53694
53864
  get: {
53695
53865
  parameters: {
53696
- query: {
53697
- agentId: string;
53698
- };
53866
+ query?: never;
53699
53867
  header?: never;
53700
- path?: never;
53868
+ path: {
53869
+ id: string;
53870
+ };
53701
53871
  cookie?: never;
53702
53872
  };
53703
53873
  requestBody?: never;
53704
53874
  responses: {
53705
- /** @description Bindings */
53875
+ /** @description Signal set */
53706
53876
  200: {
53707
53877
  headers: {
53708
53878
  [name: string]: unknown;
53709
53879
  };
53710
53880
  content: {
53711
53881
  "application/json": {
53712
- data: {
53713
- [key: string]: unknown;
53714
- }[];
53882
+ currentVersion: components["schemas"]["SignalSetVersion"] & (Record<string, never> | null);
53883
+ signalSet: components["schemas"]["SignalSet"];
53884
+ versions: components["schemas"]["SignalSetVersion"][];
53715
53885
  };
53716
53886
  };
53717
53887
  };
53718
- /** @description Unauthorized */
53719
- 401: {
53888
+ /** @description Invalid request */
53889
+ 400: {
53720
53890
  headers: {
53721
53891
  [name: string]: unknown;
53722
53892
  };
53723
53893
  content: {
53724
- "application/json": components["schemas"]["Error"];
53894
+ "application/json": components["schemas"]["SignalError"];
53725
53895
  };
53726
53896
  };
53727
- /** @description Forbidden */
53728
- 403: {
53897
+ /** @description Unauthorized */
53898
+ 401: {
53729
53899
  headers: {
53730
53900
  [name: string]: unknown;
53731
53901
  };
@@ -53733,133 +53903,71 @@ interface paths {
53733
53903
  "application/json": components["schemas"]["Error"];
53734
53904
  };
53735
53905
  };
53736
- };
53737
- };
53738
- put?: never;
53739
- post?: never;
53740
- delete?: never;
53741
- options?: never;
53742
- head?: never;
53743
- patch?: never;
53744
- trace?: never;
53745
- };
53746
- "/v1/skills/bindings/{bindingId}": {
53747
- parameters: {
53748
- query?: never;
53749
- header?: never;
53750
- path?: never;
53751
- cookie?: never;
53752
- };
53753
- get?: never;
53754
- put?: never;
53755
- post?: never;
53756
- /** Unbind a skill from an agent */
53757
- delete: {
53758
- parameters: {
53759
- query?: never;
53760
- header?: never;
53761
- path: {
53762
- bindingId: string;
53763
- };
53764
- cookie?: never;
53765
- };
53766
- requestBody?: never;
53767
- responses: {
53768
- /** @description Unbound */
53769
- 200: {
53770
- headers: {
53771
- [name: string]: unknown;
53772
- };
53773
- content: {
53774
- "application/json": {
53775
- success: boolean;
53776
- };
53777
- };
53778
- };
53779
- /** @description Unauthorized */
53780
- 401: {
53906
+ /** @description Insufficient permissions, or no organization context */
53907
+ 403: {
53781
53908
  headers: {
53782
53909
  [name: string]: unknown;
53783
53910
  };
53784
53911
  content: {
53785
- "application/json": components["schemas"]["Error"];
53912
+ "application/json": components["schemas"]["SignalError"];
53786
53913
  };
53787
53914
  };
53788
- /** @description Insufficient permissions */
53789
- 403: {
53915
+ /** @description Not found */
53916
+ 404: {
53790
53917
  headers: {
53791
53918
  [name: string]: unknown;
53792
53919
  };
53793
53920
  content: {
53794
- "application/json": components["schemas"]["Error"];
53921
+ "application/json": components["schemas"]["SignalError"];
53795
53922
  };
53796
53923
  };
53797
53924
  };
53798
53925
  };
53926
+ put?: never;
53927
+ post?: never;
53928
+ delete?: never;
53799
53929
  options?: never;
53800
53930
  head?: never;
53801
- patch?: never;
53802
- trace?: never;
53803
- };
53804
- "/v1/skills/ensure": {
53805
- parameters: {
53806
- query?: never;
53807
- header?: never;
53808
- path?: never;
53809
- cookie?: never;
53810
- };
53811
- get?: never;
53812
- put?: never;
53813
53931
  /**
53814
- * Ensure skill (config-as-code converge)
53815
- * @description Idempotently converge a repo-defined skill (SKILL.md manifest) onto the platform. Identity is name + account scope. Hash-only probes skip the payload in the steady state (a miss is a normal 200 `definitionRequired` response, not an error); full requests create the skill or append a new version when the canonical content hash differs. The response always carries the server-computed canonical hash + the version id. Set dryRun to plan without writing (CI drift gate), onConflict: "overwrite" to converge over dashboard/API edits, and release: "publish" to publish the converged version. Optional version.label / version.notes stamp provenance (a git SHA, a release tag) on the appended version row. Admin/control plane only — no review queue.
53932
+ * Update a signal set
53933
+ * @description Rename or re-describe a set. Its signals change only by publishing a new version.
53816
53934
  */
53817
- post: {
53935
+ patch: {
53818
53936
  parameters: {
53819
53937
  query?: never;
53820
53938
  header?: never;
53821
- path?: never;
53939
+ path: {
53940
+ id: string;
53941
+ };
53822
53942
  cookie?: never;
53823
53943
  };
53824
53944
  requestBody?: {
53825
53945
  content: {
53826
53946
  "application/json": {
53827
- contentHash?: string;
53828
- definition?: {
53829
- body?: string;
53830
- frontmatter?: {
53831
- [key: string]: unknown;
53832
- };
53833
- markdown?: string;
53834
- };
53835
- dryRun?: boolean;
53836
- expectedRemoteHash?: string;
53837
- name: string;
53838
- /** @enum {string} */
53839
- onConflict?: "error" | "overwrite";
53840
- /** @enum {string} */
53841
- release?: "none" | "publish";
53842
- version?: components["schemas"]["EnsureVersionMetadata"];
53947
+ description?: string | null;
53948
+ name?: string;
53843
53949
  };
53844
53950
  };
53845
53951
  };
53846
53952
  responses: {
53847
- /** @description Converge result: unchanged | created | updated | definitionRequired (hash miss — retry with the full definition) | plan (dryRun) */
53953
+ /** @description Updated */
53848
53954
  200: {
53849
53955
  headers: {
53850
53956
  [name: string]: unknown;
53851
53957
  };
53852
53958
  content: {
53853
- "application/json": components["schemas"]["SkillEnsureResponse"];
53959
+ "application/json": {
53960
+ signalSet: components["schemas"]["SignalSet"];
53961
+ };
53854
53962
  };
53855
53963
  };
53856
- /** @description Validation error / invalid manifest */
53964
+ /** @description Invalid request */
53857
53965
  400: {
53858
53966
  headers: {
53859
53967
  [name: string]: unknown;
53860
53968
  };
53861
53969
  content: {
53862
- "application/json": components["schemas"]["Error"];
53970
+ "application/json": components["schemas"]["SignalError"];
53863
53971
  };
53864
53972
  };
53865
53973
  /** @description Unauthorized */
@@ -53871,51 +53979,47 @@ interface paths {
53871
53979
  "application/json": components["schemas"]["Error"];
53872
53980
  };
53873
53981
  };
53874
- /** @description Insufficient permissions */
53982
+ /** @description Insufficient permissions, or no organization context */
53875
53983
  403: {
53876
53984
  headers: {
53877
53985
  [name: string]: unknown;
53878
53986
  };
53879
53987
  content: {
53880
- "application/json": components["schemas"]["Error"];
53988
+ "application/json": components["schemas"]["SignalError"];
53881
53989
  };
53882
53990
  };
53883
- /** @description Conflict: external_modification (last write was not ensure; pass onConflict: "overwrite") or remote_changed (expectedRemoteHash guard) */
53884
- 409: {
53991
+ /** @description Not found */
53992
+ 404: {
53885
53993
  headers: {
53886
53994
  [name: string]: unknown;
53887
53995
  };
53888
53996
  content: {
53889
- "application/json": components["schemas"]["SkillEnsureConflict"];
53997
+ "application/json": components["schemas"]["SignalError"];
53890
53998
  };
53891
53999
  };
53892
- /** @description Submitted contentHash does not match the server-recomputed canonical hash (code: content_hash_mismatch), or the manifest carries an unsupported capability such as mcpServers (code: unsupported_capability) */
53893
- 422: {
54000
+ /** @description Conflict, or external processing not yet acknowledged */
54001
+ 409: {
53894
54002
  headers: {
53895
54003
  [name: string]: unknown;
53896
54004
  };
53897
54005
  content: {
53898
- "application/json": components["schemas"]["SkillEnsureUnprocessable"];
54006
+ "application/json": components["schemas"]["SignalError"];
53899
54007
  };
53900
54008
  };
53901
- /** @description Internal server error */
53902
- 500: {
54009
+ /** @description Refused: the agent or organization posture forbids signal evaluation */
54010
+ 422: {
53903
54011
  headers: {
53904
54012
  [name: string]: unknown;
53905
54013
  };
53906
54014
  content: {
53907
- "application/json": components["schemas"]["Error"];
54015
+ "application/json": components["schemas"]["SignalError"];
53908
54016
  };
53909
54017
  };
53910
54018
  };
53911
54019
  };
53912
- delete?: never;
53913
- options?: never;
53914
- head?: never;
53915
- patch?: never;
53916
54020
  trace?: never;
53917
54021
  };
53918
- "/v1/skills/import": {
54022
+ "/v1/signal-sets/{id}/versions": {
53919
54023
  parameters: {
53920
54024
  query?: never;
53921
54025
  header?: never;
@@ -53925,42 +54029,48 @@ interface paths {
53925
54029
  get?: never;
53926
54030
  put?: never;
53927
54031
  /**
53928
- * Import a SKILL.md
53929
- * @description Import a single SKILL.md document. Lands with trustLevel=imported.
54032
+ * Publish a signal set version
54033
+ * @description Publish a new immutable version and make it current. Existing bindings keep the version they name; rebind to move one.
53930
54034
  */
53931
54035
  post: {
53932
54036
  parameters: {
53933
54037
  query?: never;
53934
54038
  header?: never;
53935
- path?: never;
54039
+ path: {
54040
+ id: string;
54041
+ };
53936
54042
  cookie?: never;
53937
54043
  };
53938
54044
  requestBody?: {
53939
54045
  content: {
53940
54046
  "application/json": {
53941
- markdown: string;
54047
+ /** @description A signal set version: `{ unit: "turn", context: { priorTurns }, signals: { <key>: { type, instructions, options?, notable?, ... } }, bands: { act, review } }`. bool and choice signals go to the decision model; text, number, date, duration, list and estimate go to the extraction model. */
54048
+ definition: {
54049
+ [key: string]: unknown;
54050
+ };
53942
54051
  };
53943
54052
  };
53944
54053
  };
53945
54054
  responses: {
53946
- /** @description Imported */
54055
+ /** @description Published */
53947
54056
  201: {
53948
54057
  headers: {
53949
54058
  [name: string]: unknown;
53950
54059
  };
53951
54060
  content: {
53952
54061
  "application/json": {
53953
- [key: string]: unknown;
54062
+ signalSet: components["schemas"]["SignalSet"];
54063
+ version: components["schemas"]["SignalSetVersion"];
53954
54064
  };
53955
54065
  };
53956
54066
  };
53957
- /** @description Invalid manifest */
54067
+ /** @description Invalid request */
53958
54068
  400: {
53959
54069
  headers: {
53960
54070
  [name: string]: unknown;
53961
54071
  };
53962
54072
  content: {
53963
- "application/json": components["schemas"]["Error"];
54073
+ "application/json": components["schemas"]["SignalError"];
53964
54074
  };
53965
54075
  };
53966
54076
  /** @description Unauthorized */
@@ -53972,22 +54082,22 @@ interface paths {
53972
54082
  "application/json": components["schemas"]["Error"];
53973
54083
  };
53974
54084
  };
53975
- /** @description Insufficient permissions */
54085
+ /** @description Insufficient permissions, or no organization context */
53976
54086
  403: {
53977
54087
  headers: {
53978
54088
  [name: string]: unknown;
53979
54089
  };
53980
54090
  content: {
53981
- "application/json": components["schemas"]["Error"];
54091
+ "application/json": components["schemas"]["SignalError"];
53982
54092
  };
53983
54093
  };
53984
- /** @description Unsupported capability */
53985
- 422: {
54094
+ /** @description Not found */
54095
+ 404: {
53986
54096
  headers: {
53987
54097
  [name: string]: unknown;
53988
54098
  };
53989
54099
  content: {
53990
- "application/json": components["schemas"]["Error"];
54100
+ "application/json": components["schemas"]["SignalError"];
53991
54101
  };
53992
54102
  };
53993
54103
  };
@@ -53998,7 +54108,7 @@ interface paths {
53998
54108
  patch?: never;
53999
54109
  trace?: never;
54000
54110
  };
54001
- "/v1/skills/propose": {
54111
+ "/v1/signal-sets/{id}/versions/{versionNumber}/preview": {
54002
54112
  parameters: {
54003
54113
  query?: never;
54004
54114
  header?: never;
@@ -54008,49 +54118,48 @@ interface paths {
54008
54118
  get?: never;
54009
54119
  put?: never;
54010
54120
  /**
54011
- * Propose a skill (deployed-agent data plane)
54012
- * @description Agent self-authoring endpoint hit by the `propose_skill` runtime tool. Review-by-default; auto-publishes only under the owner-set opt-out. NOT the admin create path.
54121
+ * Preview a signal set version
54122
+ * @description Dry-run one version over an agent’s recent traces: per-signal fire rates, confidences, spans and projected monthly cost. Writes no results; the model calls are billed.
54013
54123
  */
54014
54124
  post: {
54015
54125
  parameters: {
54016
54126
  query?: never;
54017
54127
  header?: never;
54018
- path?: never;
54128
+ path: {
54129
+ id: string;
54130
+ versionNumber: number;
54131
+ };
54019
54132
  cookie?: never;
54020
54133
  };
54021
54134
  requestBody?: {
54022
54135
  content: {
54023
54136
  "application/json": {
54024
- body: string;
54025
- capabilities?: {
54026
- [key: string]: unknown;
54027
- };
54028
- description: string;
54029
- name: string;
54030
- proposingAgentExecutionId: string;
54031
- proposingAgentId: string;
54137
+ /** @description Required for a PHI organization whose set uses a decision model outside Cloudflare Workers AI, after a human confirms. */
54138
+ acknowledgeExternalProcessing?: boolean;
54139
+ /** @description Run the version over this agent’s most recent completed traces. */
54140
+ agentId: string;
54141
+ /** @description Traces to read, default 20, at most 50. */
54142
+ limit?: number;
54032
54143
  };
54033
54144
  };
54034
54145
  };
54035
54146
  responses: {
54036
- /** @description Proposal outcome */
54147
+ /** @description Preview */
54037
54148
  200: {
54038
54149
  headers: {
54039
54150
  [name: string]: unknown;
54040
54151
  };
54041
54152
  content: {
54042
- "application/json": {
54043
- [key: string]: unknown;
54044
- };
54153
+ "application/json": components["schemas"]["SignalPreviewReport"];
54045
54154
  };
54046
54155
  };
54047
- /** @description Invalid manifest */
54156
+ /** @description Invalid request */
54048
54157
  400: {
54049
54158
  headers: {
54050
54159
  [name: string]: unknown;
54051
54160
  };
54052
54161
  content: {
54053
- "application/json": components["schemas"]["Error"];
54162
+ "application/json": components["schemas"]["SignalError"];
54054
54163
  };
54055
54164
  };
54056
54165
  /** @description Unauthorized */
@@ -54062,13 +54171,40 @@ interface paths {
54062
54171
  "application/json": components["schemas"]["Error"];
54063
54172
  };
54064
54173
  };
54065
- /** @description Unsupported capability */
54174
+ /** @description Insufficient permissions, or no organization context */
54175
+ 403: {
54176
+ headers: {
54177
+ [name: string]: unknown;
54178
+ };
54179
+ content: {
54180
+ "application/json": components["schemas"]["SignalError"];
54181
+ };
54182
+ };
54183
+ /** @description Not found */
54184
+ 404: {
54185
+ headers: {
54186
+ [name: string]: unknown;
54187
+ };
54188
+ content: {
54189
+ "application/json": components["schemas"]["SignalError"];
54190
+ };
54191
+ };
54192
+ /** @description Conflict, or external processing not yet acknowledged */
54193
+ 409: {
54194
+ headers: {
54195
+ [name: string]: unknown;
54196
+ };
54197
+ content: {
54198
+ "application/json": components["schemas"]["SignalError"];
54199
+ };
54200
+ };
54201
+ /** @description Refused: the agent or organization posture forbids signal evaluation */
54066
54202
  422: {
54067
54203
  headers: {
54068
54204
  [name: string]: unknown;
54069
54205
  };
54070
54206
  content: {
54071
- "application/json": components["schemas"]["Error"];
54207
+ "application/json": components["schemas"]["SignalError"];
54072
54208
  };
54073
54209
  };
54074
54210
  };
@@ -54079,7 +54215,7 @@ interface paths {
54079
54215
  patch?: never;
54080
54216
  trace?: never;
54081
54217
  };
54082
- "/v1/skills/pull": {
54218
+ "/v1/signals/stats": {
54083
54219
  parameters: {
54084
54220
  query?: never;
54085
54221
  header?: never;
@@ -54087,13 +54223,20 @@ interface paths {
54087
54223
  cookie?: never;
54088
54224
  };
54089
54225
  /**
54090
- * Pull skill definition (config-as-code)
54091
- * @description Return the canonical config-as-code definition and provenance for a skill by name — the absorb-drift direction of the ensure protocol. The contentHash is recomputed from the live skill state, so it is accurate even immediately after a dashboard edit.
54226
+ * Signal stats
54227
+ * @description Hourly rollup counters summed over the window, by binding, agent version, set version, signal key, value and sample. Rates "on live traffic" read sample=uniform only; filtered counters describe the traffic a binding selects. Never add the two.
54092
54228
  */
54093
54229
  get: {
54094
54230
  parameters: {
54095
- query: {
54096
- name: string;
54231
+ query?: {
54232
+ agentId?: string;
54233
+ bindingId?: string;
54234
+ signalSetVersionId?: string;
54235
+ sample?: "uniform" | "filtered";
54236
+ /** @description ISO 8601; defaults to 7 days ago. */
54237
+ from?: string;
54238
+ /** @description ISO 8601; defaults to now. */
54239
+ to?: string;
54097
54240
  };
54098
54241
  header?: never;
54099
54242
  path?: never;
@@ -54101,26 +54244,32 @@ interface paths {
54101
54244
  };
54102
54245
  requestBody?: never;
54103
54246
  responses: {
54104
- /** @description Canonical definition + provenance */
54247
+ /** @description Stats */
54105
54248
  200: {
54106
54249
  headers: {
54107
54250
  [name: string]: unknown;
54108
54251
  };
54109
54252
  content: {
54110
- "application/json": components["schemas"]["SkillPullResponse"];
54253
+ "application/json": {
54254
+ data: components["schemas"]["SignalStatRow"][];
54255
+ window: {
54256
+ from: string;
54257
+ to: string;
54258
+ };
54259
+ };
54111
54260
  };
54112
54261
  };
54113
- /** @description Unauthorized */
54114
- 401: {
54262
+ /** @description Invalid request */
54263
+ 400: {
54115
54264
  headers: {
54116
54265
  [name: string]: unknown;
54117
54266
  };
54118
54267
  content: {
54119
- "application/json": components["schemas"]["Error"];
54268
+ "application/json": components["schemas"]["SignalError"];
54120
54269
  };
54121
54270
  };
54122
- /** @description Insufficient permissions */
54123
- 403: {
54271
+ /** @description Unauthorized */
54272
+ 401: {
54124
54273
  headers: {
54125
54274
  [name: string]: unknown;
54126
54275
  };
@@ -54128,22 +54277,22 @@ interface paths {
54128
54277
  "application/json": components["schemas"]["Error"];
54129
54278
  };
54130
54279
  };
54131
- /** @description No skill with that name in the account scope */
54132
- 404: {
54280
+ /** @description Insufficient permissions, or no organization context */
54281
+ 403: {
54133
54282
  headers: {
54134
54283
  [name: string]: unknown;
54135
54284
  };
54136
54285
  content: {
54137
- "application/json": components["schemas"]["Error"];
54286
+ "application/json": components["schemas"]["SignalError"];
54138
54287
  };
54139
54288
  };
54140
- /** @description Internal server error */
54141
- 500: {
54289
+ /** @description Not found */
54290
+ 404: {
54142
54291
  headers: {
54143
54292
  [name: string]: unknown;
54144
54293
  };
54145
54294
  content: {
54146
- "application/json": components["schemas"]["Error"];
54295
+ "application/json": components["schemas"]["SignalError"];
54147
54296
  };
54148
54297
  };
54149
54298
  };
@@ -54156,21 +54305,923 @@ interface paths {
54156
54305
  patch?: never;
54157
54306
  trace?: never;
54158
54307
  };
54159
- "/v1/skills/{id}": {
54308
+ "/v1/skill-proposals": {
54160
54309
  parameters: {
54161
54310
  query?: never;
54162
54311
  header?: never;
54163
54312
  path?: never;
54164
54313
  cookie?: never;
54165
54314
  };
54166
- /** Get a skill */
54315
+ /** List pending skill proposals */
54167
54316
  get: {
54168
54317
  parameters: {
54169
54318
  query?: never;
54170
54319
  header?: never;
54171
- path: {
54172
- id: string;
54173
- };
54320
+ path?: never;
54321
+ cookie?: never;
54322
+ };
54323
+ requestBody?: never;
54324
+ responses: {
54325
+ /** @description Pending proposals */
54326
+ 200: {
54327
+ headers: {
54328
+ [name: string]: unknown;
54329
+ };
54330
+ content: {
54331
+ "application/json": {
54332
+ data: components["schemas"]["EnrichedSkillProposal"][];
54333
+ };
54334
+ };
54335
+ };
54336
+ /** @description Unauthorized */
54337
+ 401: {
54338
+ headers: {
54339
+ [name: string]: unknown;
54340
+ };
54341
+ content: {
54342
+ "application/json": components["schemas"]["Error"];
54343
+ };
54344
+ };
54345
+ /** @description Insufficient permissions */
54346
+ 403: {
54347
+ headers: {
54348
+ [name: string]: unknown;
54349
+ };
54350
+ content: {
54351
+ "application/json": components["schemas"]["Error"];
54352
+ };
54353
+ };
54354
+ };
54355
+ };
54356
+ put?: never;
54357
+ post?: never;
54358
+ delete?: never;
54359
+ options?: never;
54360
+ head?: never;
54361
+ patch?: never;
54362
+ trace?: never;
54363
+ };
54364
+ "/v1/skill-proposals/{id}/approve": {
54365
+ parameters: {
54366
+ query?: never;
54367
+ header?: never;
54368
+ path?: never;
54369
+ cookie?: never;
54370
+ };
54371
+ get?: never;
54372
+ put?: never;
54373
+ /**
54374
+ * Approve a skill proposal
54375
+ * @description Approve a pending proposal — publishes the proposed skill version.
54376
+ */
54377
+ post: {
54378
+ parameters: {
54379
+ query?: never;
54380
+ header?: never;
54381
+ path: {
54382
+ id: string;
54383
+ };
54384
+ cookie?: never;
54385
+ };
54386
+ requestBody?: never;
54387
+ responses: {
54388
+ /** @description Approved */
54389
+ 200: {
54390
+ headers: {
54391
+ [name: string]: unknown;
54392
+ };
54393
+ content: {
54394
+ "application/json": {
54395
+ proposal: components["schemas"]["SkillProposal"];
54396
+ };
54397
+ };
54398
+ };
54399
+ /** @description Unauthorized */
54400
+ 401: {
54401
+ headers: {
54402
+ [name: string]: unknown;
54403
+ };
54404
+ content: {
54405
+ "application/json": components["schemas"]["Error"];
54406
+ };
54407
+ };
54408
+ /** @description Insufficient permissions */
54409
+ 403: {
54410
+ headers: {
54411
+ [name: string]: unknown;
54412
+ };
54413
+ content: {
54414
+ "application/json": components["schemas"]["Error"];
54415
+ };
54416
+ };
54417
+ /** @description Already reviewed */
54418
+ 409: {
54419
+ headers: {
54420
+ [name: string]: unknown;
54421
+ };
54422
+ content: {
54423
+ "application/json": components["schemas"]["Error"];
54424
+ };
54425
+ };
54426
+ };
54427
+ };
54428
+ delete?: never;
54429
+ options?: never;
54430
+ head?: never;
54431
+ patch?: never;
54432
+ trace?: never;
54433
+ };
54434
+ "/v1/skill-proposals/{id}/reject": {
54435
+ parameters: {
54436
+ query?: never;
54437
+ header?: never;
54438
+ path?: never;
54439
+ cookie?: never;
54440
+ };
54441
+ get?: never;
54442
+ put?: never;
54443
+ /** Reject a skill proposal */
54444
+ post: {
54445
+ parameters: {
54446
+ query?: never;
54447
+ header?: never;
54448
+ path: {
54449
+ id: string;
54450
+ };
54451
+ cookie?: never;
54452
+ };
54453
+ requestBody?: {
54454
+ content: {
54455
+ "application/json": {
54456
+ reason?: string;
54457
+ };
54458
+ };
54459
+ };
54460
+ responses: {
54461
+ /** @description Rejected */
54462
+ 200: {
54463
+ headers: {
54464
+ [name: string]: unknown;
54465
+ };
54466
+ content: {
54467
+ "application/json": {
54468
+ proposal: components["schemas"]["SkillProposal"];
54469
+ };
54470
+ };
54471
+ };
54472
+ /** @description Unauthorized */
54473
+ 401: {
54474
+ headers: {
54475
+ [name: string]: unknown;
54476
+ };
54477
+ content: {
54478
+ "application/json": components["schemas"]["Error"];
54479
+ };
54480
+ };
54481
+ /** @description Insufficient permissions */
54482
+ 403: {
54483
+ headers: {
54484
+ [name: string]: unknown;
54485
+ };
54486
+ content: {
54487
+ "application/json": components["schemas"]["Error"];
54488
+ };
54489
+ };
54490
+ };
54491
+ };
54492
+ delete?: never;
54493
+ options?: never;
54494
+ head?: never;
54495
+ patch?: never;
54496
+ trace?: never;
54497
+ };
54498
+ "/v1/skills": {
54499
+ parameters: {
54500
+ query?: never;
54501
+ header?: never;
54502
+ path?: never;
54503
+ cookie?: never;
54504
+ };
54505
+ /**
54506
+ * List skills
54507
+ * @description List skills for the authenticated owner with cursor pagination, optionally filtered by status. Ordered newest-first (id descending).
54508
+ */
54509
+ get: {
54510
+ parameters: {
54511
+ query?: {
54512
+ status?: "draft" | "active" | "archived";
54513
+ limit?: string;
54514
+ cursor?: string;
54515
+ direction?: string;
54516
+ includeCount?: string;
54517
+ /** @description Response representation. `full` (default) preserves complete values; `compact` shortens every string value longer than 100 characters to a 100-character preview followed by `…`. */
54518
+ view?: "full" | "compact";
54519
+ };
54520
+ header?: never;
54521
+ path?: never;
54522
+ cookie?: never;
54523
+ };
54524
+ requestBody?: never;
54525
+ responses: {
54526
+ /** @description Paginated list of skills */
54527
+ 200: {
54528
+ headers: {
54529
+ [name: string]: unknown;
54530
+ };
54531
+ content: {
54532
+ "application/json": {
54533
+ data: {
54534
+ [key: string]: unknown;
54535
+ }[];
54536
+ pagination: components["schemas"]["Pagination"];
54537
+ };
54538
+ };
54539
+ };
54540
+ /** @description Invalid parameters */
54541
+ 400: {
54542
+ headers: {
54543
+ [name: string]: unknown;
54544
+ };
54545
+ content: {
54546
+ "application/json": components["schemas"]["Error"];
54547
+ };
54548
+ };
54549
+ /** @description Unauthorized */
54550
+ 401: {
54551
+ headers: {
54552
+ [name: string]: unknown;
54553
+ };
54554
+ content: {
54555
+ "application/json": components["schemas"]["Error"];
54556
+ };
54557
+ };
54558
+ /** @description Insufficient permissions */
54559
+ 403: {
54560
+ headers: {
54561
+ [name: string]: unknown;
54562
+ };
54563
+ content: {
54564
+ "application/json": components["schemas"]["Error"];
54565
+ };
54566
+ };
54567
+ /** @description Internal server error */
54568
+ 500: {
54569
+ headers: {
54570
+ [name: string]: unknown;
54571
+ };
54572
+ content: {
54573
+ "application/json": components["schemas"]["Error"];
54574
+ };
54575
+ };
54576
+ };
54577
+ };
54578
+ put?: never;
54579
+ /**
54580
+ * Create a skill
54581
+ * @description Create a skill from a SKILL.md string (`markdown`) or a structured manifest (`frontmatter` + `body`). Admin plane — no review queue.
54582
+ */
54583
+ post: {
54584
+ parameters: {
54585
+ query?: never;
54586
+ header?: never;
54587
+ path?: never;
54588
+ cookie?: never;
54589
+ };
54590
+ requestBody?: {
54591
+ content: {
54592
+ "application/json": {
54593
+ [key: string]: unknown;
54594
+ };
54595
+ };
54596
+ };
54597
+ responses: {
54598
+ /** @description Created */
54599
+ 201: {
54600
+ headers: {
54601
+ [name: string]: unknown;
54602
+ };
54603
+ content: {
54604
+ "application/json": {
54605
+ [key: string]: unknown;
54606
+ };
54607
+ };
54608
+ };
54609
+ /** @description Invalid manifest, or a manifest name that differs from the skill */
54610
+ 400: {
54611
+ headers: {
54612
+ [name: string]: unknown;
54613
+ };
54614
+ content: {
54615
+ "application/json": components["schemas"]["Error"];
54616
+ };
54617
+ };
54618
+ /** @description Unauthorized */
54619
+ 401: {
54620
+ headers: {
54621
+ [name: string]: unknown;
54622
+ };
54623
+ content: {
54624
+ "application/json": components["schemas"]["Error"];
54625
+ };
54626
+ };
54627
+ /** @description Insufficient permissions */
54628
+ 403: {
54629
+ headers: {
54630
+ [name: string]: unknown;
54631
+ };
54632
+ content: {
54633
+ "application/json": components["schemas"]["Error"];
54634
+ };
54635
+ };
54636
+ /** @description Unsupported capability */
54637
+ 422: {
54638
+ headers: {
54639
+ [name: string]: unknown;
54640
+ };
54641
+ content: {
54642
+ "application/json": components["schemas"]["Error"];
54643
+ };
54644
+ };
54645
+ /** @description Internal server error */
54646
+ 500: {
54647
+ headers: {
54648
+ [name: string]: unknown;
54649
+ };
54650
+ content: {
54651
+ "application/json": components["schemas"]["Error"];
54652
+ };
54653
+ };
54654
+ };
54655
+ };
54656
+ delete?: never;
54657
+ options?: never;
54658
+ head?: never;
54659
+ patch?: never;
54660
+ trace?: never;
54661
+ };
54662
+ "/v1/skills/bind": {
54663
+ parameters: {
54664
+ query?: never;
54665
+ header?: never;
54666
+ path?: never;
54667
+ cookie?: never;
54668
+ };
54669
+ get?: never;
54670
+ put?: never;
54671
+ /** Bind a skill to an agent */
54672
+ post: {
54673
+ parameters: {
54674
+ query?: never;
54675
+ header?: never;
54676
+ path?: never;
54677
+ cookie?: never;
54678
+ };
54679
+ requestBody?: {
54680
+ content: {
54681
+ "application/json": {
54682
+ agentId: string;
54683
+ displayOrder?: number;
54684
+ enabled?: boolean;
54685
+ skillId: string;
54686
+ skillVersionId?: string | null;
54687
+ };
54688
+ };
54689
+ };
54690
+ responses: {
54691
+ /** @description Bound */
54692
+ 201: {
54693
+ headers: {
54694
+ [name: string]: unknown;
54695
+ };
54696
+ content: {
54697
+ "application/json": {
54698
+ [key: string]: unknown;
54699
+ };
54700
+ };
54701
+ };
54702
+ /** @description Unauthorized */
54703
+ 401: {
54704
+ headers: {
54705
+ [name: string]: unknown;
54706
+ };
54707
+ content: {
54708
+ "application/json": components["schemas"]["Error"];
54709
+ };
54710
+ };
54711
+ /** @description Forbidden */
54712
+ 403: {
54713
+ headers: {
54714
+ [name: string]: unknown;
54715
+ };
54716
+ content: {
54717
+ "application/json": components["schemas"]["Error"];
54718
+ };
54719
+ };
54720
+ /** @description Not found */
54721
+ 404: {
54722
+ headers: {
54723
+ [name: string]: unknown;
54724
+ };
54725
+ content: {
54726
+ "application/json": components["schemas"]["Error"];
54727
+ };
54728
+ };
54729
+ };
54730
+ };
54731
+ delete?: never;
54732
+ options?: never;
54733
+ head?: never;
54734
+ patch?: never;
54735
+ trace?: never;
54736
+ };
54737
+ "/v1/skills/bindings": {
54738
+ parameters: {
54739
+ query?: never;
54740
+ header?: never;
54741
+ path?: never;
54742
+ cookie?: never;
54743
+ };
54744
+ /** List an agent's skill bindings */
54745
+ get: {
54746
+ parameters: {
54747
+ query: {
54748
+ agentId: string;
54749
+ };
54750
+ header?: never;
54751
+ path?: never;
54752
+ cookie?: never;
54753
+ };
54754
+ requestBody?: never;
54755
+ responses: {
54756
+ /** @description Bindings */
54757
+ 200: {
54758
+ headers: {
54759
+ [name: string]: unknown;
54760
+ };
54761
+ content: {
54762
+ "application/json": {
54763
+ data: {
54764
+ [key: string]: unknown;
54765
+ }[];
54766
+ };
54767
+ };
54768
+ };
54769
+ /** @description Unauthorized */
54770
+ 401: {
54771
+ headers: {
54772
+ [name: string]: unknown;
54773
+ };
54774
+ content: {
54775
+ "application/json": components["schemas"]["Error"];
54776
+ };
54777
+ };
54778
+ /** @description Forbidden */
54779
+ 403: {
54780
+ headers: {
54781
+ [name: string]: unknown;
54782
+ };
54783
+ content: {
54784
+ "application/json": components["schemas"]["Error"];
54785
+ };
54786
+ };
54787
+ };
54788
+ };
54789
+ put?: never;
54790
+ post?: never;
54791
+ delete?: never;
54792
+ options?: never;
54793
+ head?: never;
54794
+ patch?: never;
54795
+ trace?: never;
54796
+ };
54797
+ "/v1/skills/bindings/{bindingId}": {
54798
+ parameters: {
54799
+ query?: never;
54800
+ header?: never;
54801
+ path?: never;
54802
+ cookie?: never;
54803
+ };
54804
+ get?: never;
54805
+ put?: never;
54806
+ post?: never;
54807
+ /** Unbind a skill from an agent */
54808
+ delete: {
54809
+ parameters: {
54810
+ query?: never;
54811
+ header?: never;
54812
+ path: {
54813
+ bindingId: string;
54814
+ };
54815
+ cookie?: never;
54816
+ };
54817
+ requestBody?: never;
54818
+ responses: {
54819
+ /** @description Unbound */
54820
+ 200: {
54821
+ headers: {
54822
+ [name: string]: unknown;
54823
+ };
54824
+ content: {
54825
+ "application/json": {
54826
+ success: boolean;
54827
+ };
54828
+ };
54829
+ };
54830
+ /** @description Unauthorized */
54831
+ 401: {
54832
+ headers: {
54833
+ [name: string]: unknown;
54834
+ };
54835
+ content: {
54836
+ "application/json": components["schemas"]["Error"];
54837
+ };
54838
+ };
54839
+ /** @description Insufficient permissions */
54840
+ 403: {
54841
+ headers: {
54842
+ [name: string]: unknown;
54843
+ };
54844
+ content: {
54845
+ "application/json": components["schemas"]["Error"];
54846
+ };
54847
+ };
54848
+ };
54849
+ };
54850
+ options?: never;
54851
+ head?: never;
54852
+ patch?: never;
54853
+ trace?: never;
54854
+ };
54855
+ "/v1/skills/ensure": {
54856
+ parameters: {
54857
+ query?: never;
54858
+ header?: never;
54859
+ path?: never;
54860
+ cookie?: never;
54861
+ };
54862
+ get?: never;
54863
+ put?: never;
54864
+ /**
54865
+ * Ensure skill (config-as-code converge)
54866
+ * @description Idempotently converge a repo-defined skill (SKILL.md manifest) onto the platform. Identity is name + account scope. Hash-only probes skip the payload in the steady state (a miss is a normal 200 `definitionRequired` response, not an error); full requests create the skill or append a new version when the canonical content hash differs. The response always carries the server-computed canonical hash + the version id. Set dryRun to plan without writing (CI drift gate), onConflict: "overwrite" to converge over dashboard/API edits, and release: "publish" to publish the converged version. Optional version.label / version.notes stamp provenance (a git SHA, a release tag) on the appended version row. Admin/control plane only — no review queue.
54867
+ */
54868
+ post: {
54869
+ parameters: {
54870
+ query?: never;
54871
+ header?: never;
54872
+ path?: never;
54873
+ cookie?: never;
54874
+ };
54875
+ requestBody?: {
54876
+ content: {
54877
+ "application/json": {
54878
+ contentHash?: string;
54879
+ definition?: {
54880
+ body?: string;
54881
+ frontmatter?: {
54882
+ [key: string]: unknown;
54883
+ };
54884
+ markdown?: string;
54885
+ };
54886
+ dryRun?: boolean;
54887
+ expectedRemoteHash?: string;
54888
+ name: string;
54889
+ /** @enum {string} */
54890
+ onConflict?: "error" | "overwrite";
54891
+ /** @enum {string} */
54892
+ release?: "none" | "publish";
54893
+ version?: components["schemas"]["EnsureVersionMetadata"];
54894
+ };
54895
+ };
54896
+ };
54897
+ responses: {
54898
+ /** @description Converge result: unchanged | created | updated | definitionRequired (hash miss — retry with the full definition) | plan (dryRun) */
54899
+ 200: {
54900
+ headers: {
54901
+ [name: string]: unknown;
54902
+ };
54903
+ content: {
54904
+ "application/json": components["schemas"]["SkillEnsureResponse"];
54905
+ };
54906
+ };
54907
+ /** @description Validation error / invalid manifest */
54908
+ 400: {
54909
+ headers: {
54910
+ [name: string]: unknown;
54911
+ };
54912
+ content: {
54913
+ "application/json": components["schemas"]["Error"];
54914
+ };
54915
+ };
54916
+ /** @description Unauthorized */
54917
+ 401: {
54918
+ headers: {
54919
+ [name: string]: unknown;
54920
+ };
54921
+ content: {
54922
+ "application/json": components["schemas"]["Error"];
54923
+ };
54924
+ };
54925
+ /** @description Insufficient permissions */
54926
+ 403: {
54927
+ headers: {
54928
+ [name: string]: unknown;
54929
+ };
54930
+ content: {
54931
+ "application/json": components["schemas"]["Error"];
54932
+ };
54933
+ };
54934
+ /** @description Conflict: external_modification (last write was not ensure; pass onConflict: "overwrite") or remote_changed (expectedRemoteHash guard) */
54935
+ 409: {
54936
+ headers: {
54937
+ [name: string]: unknown;
54938
+ };
54939
+ content: {
54940
+ "application/json": components["schemas"]["SkillEnsureConflict"];
54941
+ };
54942
+ };
54943
+ /** @description Submitted contentHash does not match the server-recomputed canonical hash (code: content_hash_mismatch), or the manifest carries an unsupported capability such as mcpServers (code: unsupported_capability) */
54944
+ 422: {
54945
+ headers: {
54946
+ [name: string]: unknown;
54947
+ };
54948
+ content: {
54949
+ "application/json": components["schemas"]["SkillEnsureUnprocessable"];
54950
+ };
54951
+ };
54952
+ /** @description Internal server error */
54953
+ 500: {
54954
+ headers: {
54955
+ [name: string]: unknown;
54956
+ };
54957
+ content: {
54958
+ "application/json": components["schemas"]["Error"];
54959
+ };
54960
+ };
54961
+ };
54962
+ };
54963
+ delete?: never;
54964
+ options?: never;
54965
+ head?: never;
54966
+ patch?: never;
54967
+ trace?: never;
54968
+ };
54969
+ "/v1/skills/import": {
54970
+ parameters: {
54971
+ query?: never;
54972
+ header?: never;
54973
+ path?: never;
54974
+ cookie?: never;
54975
+ };
54976
+ get?: never;
54977
+ put?: never;
54978
+ /**
54979
+ * Import a SKILL.md
54980
+ * @description Import a single SKILL.md document. Lands with trustLevel=imported.
54981
+ */
54982
+ post: {
54983
+ parameters: {
54984
+ query?: never;
54985
+ header?: never;
54986
+ path?: never;
54987
+ cookie?: never;
54988
+ };
54989
+ requestBody?: {
54990
+ content: {
54991
+ "application/json": {
54992
+ markdown: string;
54993
+ };
54994
+ };
54995
+ };
54996
+ responses: {
54997
+ /** @description Imported */
54998
+ 201: {
54999
+ headers: {
55000
+ [name: string]: unknown;
55001
+ };
55002
+ content: {
55003
+ "application/json": {
55004
+ [key: string]: unknown;
55005
+ };
55006
+ };
55007
+ };
55008
+ /** @description Invalid manifest */
55009
+ 400: {
55010
+ headers: {
55011
+ [name: string]: unknown;
55012
+ };
55013
+ content: {
55014
+ "application/json": components["schemas"]["Error"];
55015
+ };
55016
+ };
55017
+ /** @description Unauthorized */
55018
+ 401: {
55019
+ headers: {
55020
+ [name: string]: unknown;
55021
+ };
55022
+ content: {
55023
+ "application/json": components["schemas"]["Error"];
55024
+ };
55025
+ };
55026
+ /** @description Insufficient permissions */
55027
+ 403: {
55028
+ headers: {
55029
+ [name: string]: unknown;
55030
+ };
55031
+ content: {
55032
+ "application/json": components["schemas"]["Error"];
55033
+ };
55034
+ };
55035
+ /** @description Unsupported capability */
55036
+ 422: {
55037
+ headers: {
55038
+ [name: string]: unknown;
55039
+ };
55040
+ content: {
55041
+ "application/json": components["schemas"]["Error"];
55042
+ };
55043
+ };
55044
+ };
55045
+ };
55046
+ delete?: never;
55047
+ options?: never;
55048
+ head?: never;
55049
+ patch?: never;
55050
+ trace?: never;
55051
+ };
55052
+ "/v1/skills/propose": {
55053
+ parameters: {
55054
+ query?: never;
55055
+ header?: never;
55056
+ path?: never;
55057
+ cookie?: never;
55058
+ };
55059
+ get?: never;
55060
+ put?: never;
55061
+ /**
55062
+ * Propose a skill (deployed-agent data plane)
55063
+ * @description Agent self-authoring endpoint hit by the `propose_skill` runtime tool. Review-by-default; auto-publishes only under the owner-set opt-out. NOT the admin create path.
55064
+ */
55065
+ post: {
55066
+ parameters: {
55067
+ query?: never;
55068
+ header?: never;
55069
+ path?: never;
55070
+ cookie?: never;
55071
+ };
55072
+ requestBody?: {
55073
+ content: {
55074
+ "application/json": {
55075
+ body: string;
55076
+ capabilities?: {
55077
+ [key: string]: unknown;
55078
+ };
55079
+ description: string;
55080
+ name: string;
55081
+ proposingAgentExecutionId: string;
55082
+ proposingAgentId: string;
55083
+ };
55084
+ };
55085
+ };
55086
+ responses: {
55087
+ /** @description Proposal outcome */
55088
+ 200: {
55089
+ headers: {
55090
+ [name: string]: unknown;
55091
+ };
55092
+ content: {
55093
+ "application/json": {
55094
+ [key: string]: unknown;
55095
+ };
55096
+ };
55097
+ };
55098
+ /** @description Invalid manifest */
55099
+ 400: {
55100
+ headers: {
55101
+ [name: string]: unknown;
55102
+ };
55103
+ content: {
55104
+ "application/json": components["schemas"]["Error"];
55105
+ };
55106
+ };
55107
+ /** @description Unauthorized */
55108
+ 401: {
55109
+ headers: {
55110
+ [name: string]: unknown;
55111
+ };
55112
+ content: {
55113
+ "application/json": components["schemas"]["Error"];
55114
+ };
55115
+ };
55116
+ /** @description Unsupported capability */
55117
+ 422: {
55118
+ headers: {
55119
+ [name: string]: unknown;
55120
+ };
55121
+ content: {
55122
+ "application/json": components["schemas"]["Error"];
55123
+ };
55124
+ };
55125
+ };
55126
+ };
55127
+ delete?: never;
55128
+ options?: never;
55129
+ head?: never;
55130
+ patch?: never;
55131
+ trace?: never;
55132
+ };
55133
+ "/v1/skills/pull": {
55134
+ parameters: {
55135
+ query?: never;
55136
+ header?: never;
55137
+ path?: never;
55138
+ cookie?: never;
55139
+ };
55140
+ /**
55141
+ * Pull skill definition (config-as-code)
55142
+ * @description Return the canonical config-as-code definition and provenance for a skill by name — the absorb-drift direction of the ensure protocol. The contentHash is recomputed from the live skill state, so it is accurate even immediately after a dashboard edit.
55143
+ */
55144
+ get: {
55145
+ parameters: {
55146
+ query: {
55147
+ name: string;
55148
+ };
55149
+ header?: never;
55150
+ path?: never;
55151
+ cookie?: never;
55152
+ };
55153
+ requestBody?: never;
55154
+ responses: {
55155
+ /** @description Canonical definition + provenance */
55156
+ 200: {
55157
+ headers: {
55158
+ [name: string]: unknown;
55159
+ };
55160
+ content: {
55161
+ "application/json": components["schemas"]["SkillPullResponse"];
55162
+ };
55163
+ };
55164
+ /** @description Unauthorized */
55165
+ 401: {
55166
+ headers: {
55167
+ [name: string]: unknown;
55168
+ };
55169
+ content: {
55170
+ "application/json": components["schemas"]["Error"];
55171
+ };
55172
+ };
55173
+ /** @description Insufficient permissions */
55174
+ 403: {
55175
+ headers: {
55176
+ [name: string]: unknown;
55177
+ };
55178
+ content: {
55179
+ "application/json": components["schemas"]["Error"];
55180
+ };
55181
+ };
55182
+ /** @description No skill with that name in the account scope */
55183
+ 404: {
55184
+ headers: {
55185
+ [name: string]: unknown;
55186
+ };
55187
+ content: {
55188
+ "application/json": components["schemas"]["Error"];
55189
+ };
55190
+ };
55191
+ /** @description Internal server error */
55192
+ 500: {
55193
+ headers: {
55194
+ [name: string]: unknown;
55195
+ };
55196
+ content: {
55197
+ "application/json": components["schemas"]["Error"];
55198
+ };
55199
+ };
55200
+ };
55201
+ };
55202
+ put?: never;
55203
+ post?: never;
55204
+ delete?: never;
55205
+ options?: never;
55206
+ head?: never;
55207
+ patch?: never;
55208
+ trace?: never;
55209
+ };
55210
+ "/v1/skills/{id}": {
55211
+ parameters: {
55212
+ query?: never;
55213
+ header?: never;
55214
+ path?: never;
55215
+ cookie?: never;
55216
+ };
55217
+ /** Get a skill */
55218
+ get: {
55219
+ parameters: {
55220
+ query?: never;
55221
+ header?: never;
55222
+ path: {
55223
+ id: string;
55224
+ };
54174
55225
  cookie?: never;
54175
55226
  };
54176
55227
  requestBody?: never;
@@ -57531,6 +58582,7 @@ interface paths {
57531
58582
  enableWorkspaceModel: boolean;
57532
58583
  externalTelemetryAllowed?: boolean;
57533
58584
  modelCreditPromoMultiplier?: number;
58585
+ signalsConfigured?: boolean;
57534
58586
  simulationsAvailable?: boolean;
57535
58587
  workspaceModelEligible: boolean;
57536
58588
  workspaceModelReady: boolean;
@@ -58994,6 +60046,7 @@ interface components {
58994
60046
  tree: components["schemas"]["TraceTree"];
58995
60047
  }[];
58996
60048
  producedBy?: components["schemas"]["TraceProducedBy"] & unknown;
60049
+ signals?: components["schemas"]["SignalsBlock"] & unknown;
58997
60050
  totalExecutions: number;
58998
60051
  truncation?: {
58999
60052
  limit: number;
@@ -61901,6 +62954,63 @@ interface components {
61901
62954
  rootExecutionId: string | null;
61902
62955
  /** @description Cost the producer reported. */
61903
62956
  selfReportedCost: string | null;
62957
+ /** @description Trace signals. A list row carries status and fired only; GET /v1/runs/{id} adds results. Omitted entirely until the organization binds a signal set. */
62958
+ signals?: {
62959
+ fired: string[];
62960
+ results?: {
62961
+ answers: {
62962
+ [key: string]: {
62963
+ /** @enum {string} */
62964
+ band: "act" | "review" | "low";
62965
+ confidence?: number;
62966
+ distribution?: {
62967
+ [key: string]: number;
62968
+ };
62969
+ fired?: boolean;
62970
+ pNull?: number;
62971
+ refused?: boolean;
62972
+ source?: {
62973
+ end: number;
62974
+ field: string;
62975
+ spanId: string;
62976
+ start: number;
62977
+ };
62978
+ sources?: {
62979
+ end: number;
62980
+ field: string;
62981
+ spanId: string;
62982
+ start: number;
62983
+ }[];
62984
+ value?: unknown;
62985
+ };
62986
+ };
62987
+ bindingId: string;
62988
+ computedAt: string;
62989
+ error?: string;
62990
+ fired: string[];
62991
+ /** @enum {string} */
62992
+ sample: "uniform" | "filtered";
62993
+ signalSet: {
62994
+ id: string;
62995
+ name: string;
62996
+ version: number;
62997
+ };
62998
+ /** @enum {string} */
62999
+ status: "complete" | "failed" | "skipped_budget" | "skipped_policy";
63000
+ target: {
63001
+ executionId: string;
63002
+ spanId: string | null;
63003
+ turnIndex: number | null;
63004
+ };
63005
+ /** @enum {string} */
63006
+ unit: "turn" | "conversation" | "run";
63007
+ values: {
63008
+ [key: string]: unknown;
63009
+ };
63010
+ }[];
63011
+ /** @enum {string} */
63012
+ status: "complete" | "pending" | "partial" | "none" | "unavailable";
63013
+ };
61904
63014
  /**
61905
63015
  * @description hosted, or ingested for an OTLP export. An ingested run is never reported running.
61906
63016
  * @enum {string}
@@ -62423,6 +63533,168 @@ interface components {
62423
63533
  severity: "warning";
62424
63534
  suggestedFix: string;
62425
63535
  };
63536
+ SignalAnswer: {
63537
+ /** @enum {string} */
63538
+ band: "act" | "review" | "low";
63539
+ confidence?: number;
63540
+ distribution?: {
63541
+ [key: string]: number;
63542
+ };
63543
+ fired?: boolean;
63544
+ pNull?: number;
63545
+ refused?: boolean;
63546
+ source?: components["schemas"]["SignalSource"];
63547
+ sources?: components["schemas"]["SignalSource"][];
63548
+ value?: unknown;
63549
+ };
63550
+ SignalBinding: {
63551
+ budget: {
63552
+ monthlyUsd: number;
63553
+ };
63554
+ coverage: {
63555
+ [key: string]: unknown;
63556
+ };
63557
+ createdAt: string;
63558
+ disabledAt: string | null;
63559
+ enabled: boolean;
63560
+ externalProcessingAcknowledgedAt: string | null;
63561
+ filter: {
63562
+ [key: string]: unknown;
63563
+ };
63564
+ id: string;
63565
+ signalSetId: string;
63566
+ signalSetName?: string;
63567
+ signalSetVersionId: string;
63568
+ target: {
63569
+ id: string;
63570
+ /** @enum {string} */
63571
+ kind: "agent";
63572
+ };
63573
+ uniformShare: number;
63574
+ versionNumber?: number;
63575
+ };
63576
+ SignalError: components["schemas"]["Error"] & {
63577
+ /** @description Stable code, e.g. SIGNAL_SET_INVALID or SIGNALS_EXTERNAL_PROCESSING_UNACKNOWLEDGED. */
63578
+ code?: string;
63579
+ details?: {
63580
+ [key: string]: unknown;
63581
+ };
63582
+ };
63583
+ SignalPreviewReport: {
63584
+ /** @description What this preview spent. */
63585
+ costUsd: number;
63586
+ evaluated: number;
63587
+ failed: number;
63588
+ /** @description Agreement with human labels; null until labels exist. */
63589
+ labelAgreement: null;
63590
+ monthlyTraceVolume: number;
63591
+ notes: string[];
63592
+ /** @description Mean unit cost times the agent’s last-30-day trace volume. */
63593
+ projectedMonthlyUsd: number;
63594
+ samples: {
63595
+ [key: string]: unknown;
63596
+ }[];
63597
+ signals: {
63598
+ evaluated: number;
63599
+ fireRate: number;
63600
+ fired: number;
63601
+ key: string;
63602
+ meanConfidence: number | null;
63603
+ reviewBand: number;
63604
+ type: string;
63605
+ valueCounts: {
63606
+ [key: string]: number;
63607
+ };
63608
+ }[];
63609
+ tracesRead: number;
63610
+ };
63611
+ SignalResult: {
63612
+ answers: {
63613
+ [key: string]: components["schemas"]["SignalAnswer"];
63614
+ };
63615
+ bindingId: string;
63616
+ computedAt: string;
63617
+ error?: string;
63618
+ fired: string[];
63619
+ /** @enum {string} */
63620
+ sample: "uniform" | "filtered";
63621
+ signalSet: {
63622
+ id: string;
63623
+ name: string;
63624
+ version: number;
63625
+ };
63626
+ /** @enum {string} */
63627
+ status: "complete" | "failed" | "skipped_budget" | "skipped_policy";
63628
+ target: {
63629
+ executionId: string;
63630
+ spanId: string | null;
63631
+ turnIndex: number | null;
63632
+ };
63633
+ /** @enum {string} */
63634
+ unit: "turn" | "conversation" | "run";
63635
+ values: {
63636
+ [key: string]: unknown;
63637
+ };
63638
+ };
63639
+ SignalSet: {
63640
+ /** @description A platform-seeded set that runs on every agent with no model call; read-only on every surface. */
63641
+ builtin: boolean;
63642
+ createdAt: string;
63643
+ createdByUserId: string | null;
63644
+ currentVersionId: string | null;
63645
+ description: string | null;
63646
+ id: string;
63647
+ lastModifiedSource: string | null;
63648
+ name: string;
63649
+ organizationId: string;
63650
+ /** @description The preset this set was created from, if any. */
63651
+ preset: string | null;
63652
+ updatedAt: string;
63653
+ };
63654
+ SignalSetVersion: {
63655
+ createdAt: string;
63656
+ createdByUserId: string | null;
63657
+ /** @description A signal set version: `{ unit: "turn", context: { priorTurns }, signals: { <key>: { type, instructions, options?, notable?, ... } }, bands: { act, review } }`. bool and choice signals go to the decision model; text, number, date, duration, list and estimate go to the extraction model. */
63658
+ definition: {
63659
+ [key: string]: unknown;
63660
+ };
63661
+ id: string;
63662
+ signalSetId: string;
63663
+ unit: string;
63664
+ versionNumber: number;
63665
+ };
63666
+ SignalSource: {
63667
+ end: number;
63668
+ field: string;
63669
+ spanId: string;
63670
+ start: number;
63671
+ };
63672
+ SignalStatRow: {
63673
+ agentId: string;
63674
+ agentVersionId: string | null;
63675
+ bindingId: string;
63676
+ costMicros: number;
63677
+ evaluated: number;
63678
+ failed: number;
63679
+ fired: number;
63680
+ reviewBand: number;
63681
+ /** @enum {string} */
63682
+ sample: "uniform" | "filtered";
63683
+ /** @description `*` is the unit-level row: evaluated, skipped, failed and cost. */
63684
+ signalKey: string;
63685
+ signalSetId: string;
63686
+ signalSetVersionId: string;
63687
+ skipped: number;
63688
+ valueBucket: string;
63689
+ versionNumber: number;
63690
+ };
63691
+ /** @description Typed signals read from this trace by the signal sets bound to its agent. Omitted entirely until the organization binds a signal set; once it has, `status` is `none` on a trace no binding matched. */
63692
+ SignalsBlock: {
63693
+ fired: string[];
63694
+ results: components["schemas"]["SignalResult"][];
63695
+ /** @enum {string} */
63696
+ status: "complete" | "pending" | "partial" | "none" | "unavailable";
63697
+ };
62426
63698
  SkillEnsureConflict: {
62427
63699
  /** @enum {string} */
62428
63700
  code: "external_modification" | "remote_changed";
@@ -62758,6 +64030,11 @@ interface components {
62758
64030
  /** @enum {string} */
62759
64031
  nodeType: "root" | "iteration" | "model" | "tool" | "step" | "system";
62760
64032
  recorded?: boolean;
64033
+ /** @description Signal results that target this span. Omitted until the organization binds a signal set. */
64034
+ signals?: {
64035
+ fired: string[];
64036
+ results: components["schemas"]["SignalResult"][];
64037
+ };
62761
64038
  startEntry?: components["schemas"]["TraceLogEntry"];
62762
64039
  startOffsetMs?: number | null;
62763
64040
  startedAt?: string | null;
@@ -62804,6 +64081,7 @@ interface components {
62804
64081
  root: components["schemas"]["TraceNode"] | null;
62805
64082
  /** @description The run itself failed, as opposed to a span inside a run that completed. */
62806
64083
  runFailed?: boolean;
64084
+ signals?: components["schemas"]["SignalsBlock"];
62807
64085
  /** @enum {string} */
62808
64086
  source?: "logs" | "records" | "logs+records";
62809
64087
  startedAt?: string | null;
@@ -73835,6 +75113,15 @@ interface RunListRow {
73835
75113
  pendingApproval?: unknown;
73836
75114
  budgetExhausted?: boolean | null;
73837
75115
  inputMessages?: unknown;
75116
+ /**
75117
+ * Trace signals. A list row carries `status` and `fired`; `runs.get` adds
75118
+ * `results`. Omitted until the organization binds a signal set.
75119
+ */
75120
+ signals?: {
75121
+ status: 'complete' | 'pending' | 'partial' | 'none' | 'unavailable';
75122
+ fired: string[];
75123
+ results?: Array<Record<string, unknown>>;
75124
+ };
73838
75125
  }
73839
75126
  /** Filters `GET /v1/runs` accepts. Every one lands on an indexed or key column. */
73840
75127
  interface RunListParams {
@@ -73856,6 +75143,8 @@ interface RunListParams {
73856
75143
  */
73857
75144
  includeChildren?: 'true' | 'false';
73858
75145
  source?: 'hosted' | 'ingested';
75146
+ /** Runs where a signal fired: `key`, or `key:value` for one choice value. */
75147
+ signal?: string;
73859
75148
  /**
73860
75149
  * `running`, `completed` or `failed` only. `queued`, `awaiting` and
73861
75150
  * `cancelled` exist only in the live overlay and answer 400.
@@ -74158,6 +75447,233 @@ export declare class QuestionSetsNamespace {
74158
75447
  pull(slug: string): Promise<QuestionSetPullResult>;
74159
75448
  }
74160
75449
  //#endregion
75450
+ //#region src/signals-namespace.d.ts
75451
+ /** A signal set version's definition, as the API validates it. */
75452
+ interface SignalSetDefinitionInput {
75453
+ unit?: 'turn';
75454
+ context?: {
75455
+ priorTurns?: number;
75456
+ };
75457
+ signals: Record<string, {
75458
+ type: string;
75459
+ instructions?: string;
75460
+ [key: string]: unknown;
75461
+ }>;
75462
+ bands?: {
75463
+ act?: number;
75464
+ review?: number;
75465
+ };
75466
+ /** Extraction model id for `text` and `number` signals; defaults to the platform extraction model. */
75467
+ extractionModel?: string;
75468
+ /** Decision model id for boolean and choice signals; defaults to the platform decision model. */
75469
+ decisionModel?: string;
75470
+ }
75471
+ interface SignalSet {
75472
+ id: string;
75473
+ organizationId: string;
75474
+ createdByUserId: string | null;
75475
+ name: string;
75476
+ description: string | null;
75477
+ preset: string | null;
75478
+ /** Platform-seeded and read-only: writes to it return `SIGNAL_SET_BUILTIN`. */
75479
+ builtin: boolean;
75480
+ currentVersionId: string | null;
75481
+ lastModifiedSource: string | null;
75482
+ createdAt: string;
75483
+ updatedAt: string;
75484
+ }
75485
+ interface SignalSetVersion {
75486
+ id: string;
75487
+ signalSetId: string;
75488
+ versionNumber: number;
75489
+ unit: string;
75490
+ definition: Record<string, unknown>;
75491
+ createdByUserId: string | null;
75492
+ createdAt: string;
75493
+ }
75494
+ interface SignalBinding {
75495
+ id: string;
75496
+ signalSetId: string;
75497
+ signalSetName?: string;
75498
+ signalSetVersionId: string;
75499
+ versionNumber?: number;
75500
+ target: {
75501
+ kind: 'agent';
75502
+ id: string;
75503
+ };
75504
+ filter: Record<string, unknown>;
75505
+ coverage: Record<string, unknown>;
75506
+ uniformShare: number;
75507
+ budget: {
75508
+ monthlyUsd: number;
75509
+ };
75510
+ enabled: boolean;
75511
+ disabledAt: string | null;
75512
+ externalProcessingAcknowledgedAt: string | null;
75513
+ createdAt: string;
75514
+ }
75515
+ interface SignalSetPreset {
75516
+ id: string;
75517
+ name: string;
75518
+ description: string;
75519
+ definition: Record<string, unknown>;
75520
+ }
75521
+ interface SignalStatRow {
75522
+ bindingId: string;
75523
+ agentId: string;
75524
+ agentVersionId: string | null;
75525
+ signalSetId: string;
75526
+ signalSetVersionId: string;
75527
+ versionNumber: number;
75528
+ /** `*` is the unit-level row: evaluated, skipped, failed and cost. */
75529
+ signalKey: string;
75530
+ valueBucket: string;
75531
+ sample: 'uniform' | 'filtered';
75532
+ evaluated: number;
75533
+ fired: number;
75534
+ reviewBand: number;
75535
+ skipped: number;
75536
+ failed: number;
75537
+ costMicros: number;
75538
+ }
75539
+ interface SignalPreviewReport {
75540
+ tracesRead: number;
75541
+ evaluated: number;
75542
+ failed: number;
75543
+ signals: Array<{
75544
+ key: string;
75545
+ type: string;
75546
+ evaluated: number;
75547
+ fired: number;
75548
+ fireRate: number;
75549
+ reviewBand: number;
75550
+ meanConfidence: number | null;
75551
+ valueCounts: Record<string, number>;
75552
+ }>;
75553
+ samples: Array<Record<string, unknown>>;
75554
+ costUsd: number;
75555
+ projectedMonthlyUsd: number;
75556
+ monthlyTraceVolume: number;
75557
+ labelAgreement: number | null;
75558
+ notes: string[];
75559
+ }
75560
+ interface CreateSignalSetInput {
75561
+ name: string;
75562
+ description?: string;
75563
+ /** Start from a preset such as `conversation_health`; a definition, when also given, replaces it. */
75564
+ preset?: string;
75565
+ definition?: SignalSetDefinitionInput;
75566
+ }
75567
+ interface BindSignalSetInput {
75568
+ signalSetId: string;
75569
+ /** Defaults to the set's current version. */
75570
+ versionNumber?: number;
75571
+ target: {
75572
+ kind: 'agent';
75573
+ id: string;
75574
+ };
75575
+ filter?: {
75576
+ status?: string[];
75577
+ minTurns?: number;
75578
+ };
75579
+ coverage?: {
75580
+ mode: 'all';
75581
+ } | {
75582
+ mode: 'sample';
75583
+ rate: number;
75584
+ };
75585
+ uniformShare?: number;
75586
+ budget?: {
75587
+ monthlyUsd: number;
75588
+ };
75589
+ /** Only after a human confirms; a PHI organization on a model outside Workers AI is refused until this is true. */
75590
+ acknowledgeExternalProcessing?: boolean;
75591
+ }
75592
+ interface SignalStatsParams {
75593
+ agentId?: string;
75594
+ bindingId?: string;
75595
+ signalSetVersionId?: string;
75596
+ sample?: 'uniform' | 'filtered';
75597
+ from?: string;
75598
+ to?: string;
75599
+ }
75600
+ /**
75601
+ * Trace signals: typed fields read out of every bound agent turn. Configure
75602
+ * sets and bindings here; results arrive as the `signals` block on runs and traces.
75603
+ */
75604
+ export declare class SignalsNamespace {
75605
+ private getClient;
75606
+ constructor(getClient: () => Pick<ApiClient, 'get' | 'post' | 'patch' | 'delete'>);
75607
+ /** The organization's signal sets, newest first. */
75608
+ listSets(): Promise<{
75609
+ data: Array<SignalSet & {
75610
+ latestVersionNumber: number;
75611
+ }>;
75612
+ }>;
75613
+ /** The named starting points `createSet` accepts as `preset`. */
75614
+ listPresets(): Promise<{
75615
+ data: SignalSetPreset[];
75616
+ }>;
75617
+ /** A set with every immutable version and its current one. */
75618
+ getSet(id: string): Promise<{
75619
+ signalSet: SignalSet;
75620
+ versions: SignalSetVersion[];
75621
+ currentVersion: SignalSetVersion | null;
75622
+ }>;
75623
+ /**
75624
+ * Create a set from a preset or a definition; version 1 is current at once.
75625
+ *
75626
+ * @example
75627
+ * ```typescript
75628
+ * const { signalSet } = await Runtype.signals.createSet({ name: 'Health', preset: 'conversation_health' })
75629
+ * ```
75630
+ */
75631
+ createSet(input: CreateSignalSetInput): Promise<{
75632
+ signalSet: SignalSet;
75633
+ version: SignalSetVersion;
75634
+ }>;
75635
+ /** Rename or re-describe a set; signals change only through `publishVersion`. */
75636
+ updateSet(id: string, input: {
75637
+ name?: string;
75638
+ description?: string | null;
75639
+ }): Promise<{
75640
+ signalSet: SignalSet;
75641
+ }>;
75642
+ /** Publish a new immutable version and make it current. Existing bindings keep theirs. */
75643
+ publishVersion(id: string, definition: SignalSetDefinitionInput): Promise<{
75644
+ signalSet: SignalSet;
75645
+ version: SignalSetVersion;
75646
+ }>;
75647
+ /** Dry-run a version over an agent's recent completed traces. Writes no results; model calls are billed. */
75648
+ preview(id: string, versionNumber: number, input: {
75649
+ agentId: string;
75650
+ limit?: number;
75651
+ acknowledgeExternalProcessing?: boolean;
75652
+ }): Promise<SignalPreviewReport>;
75653
+ listBindings(params?: {
75654
+ agentId?: string;
75655
+ signalSetId?: string;
75656
+ includeDisabled?: boolean;
75657
+ }): Promise<{
75658
+ data: SignalBinding[];
75659
+ }>;
75660
+ /** Bind a set version to an agent. Refusals carry a stable `code` such as `SIGNALS_LOGGING_OFF`. */
75661
+ bind(input: BindSignalSetInput): Promise<{
75662
+ binding: SignalBinding;
75663
+ }>;
75664
+ unbind(bindingId: string): Promise<{
75665
+ binding: SignalBinding;
75666
+ }>;
75667
+ /** Hourly rollups summed over the window. Read `sample: 'uniform'` for live-traffic rates. */
75668
+ stats(params?: SignalStatsParams): Promise<{
75669
+ data: SignalStatRow[];
75670
+ window: {
75671
+ from: string;
75672
+ to: string;
75673
+ };
75674
+ }>;
75675
+ }
75676
+ //#endregion
74161
75677
  //#region src/products-ensure.d.ts
74162
75678
  /** Canonical normalized form of a product definition (name + canvas excluded). */
74163
75679
  export declare function normalizeProductDefinition(definition: ProductContentInput): {
@@ -75083,6 +76599,17 @@ export declare class Runtype {
75083
76599
  * ```
75084
76600
  */
75085
76601
  static get questionSets(): QuestionSetsNamespace;
76602
+ /**
76603
+ * Signals namespace - trace signal sets, bindings, preview and stats
76604
+ *
76605
+ * @example
76606
+ * ```typescript
76607
+ * const { signalSet } = await Runtype.signals.createSet({ name: 'Health', preset: 'conversation_health' })
76608
+ * await Runtype.signals.preview(signalSet.id, 1, { agentId })
76609
+ * await Runtype.signals.bind({ signalSetId: signalSet.id, target: { kind: 'agent', id: agentId } })
76610
+ * ```
76611
+ */
76612
+ static get signals(): SignalsNamespace;
75086
76613
  /**
75087
76614
  * Products namespace - Product config-as-code (define / ensure / pull)
75088
76615
  *
@@ -75373,8 +76900,7 @@ interface DecisionModelCatalog {
75373
76900
  models: DecisionModelCatalogEntry[];
75374
76901
  }
75375
76902
  //#endregion
75376
- //#region ../shared/dist/index-DxcjM9ZR.d.ts
75377
- //#endregion
76903
+ //#region ../shared/dist/index-BEIJ_QMH.d.ts
75378
76904
  //#region src/extraction/models.d.ts
75379
76905
  type ExtractionModelProvider = 'cloudflare';
75380
76906
  type ExtractionModelRoute = 'cloudflare-workers-ai';
@@ -75938,6 +77464,7 @@ export declare class RuntypeClient implements ApiClient {
75938
77464
  private timeout;
75939
77465
  private headers;
75940
77466
  sandboxDeployments: SandboxDeploymentsNamespace;
77467
+ signals: SignalsNamespace;
75941
77468
  flows: FlowsEndpoint;
75942
77469
  prompts: PromptsEndpoint;
75943
77470
  records: RecordsEndpoint;
@@ -77460,5 +78987,5 @@ export declare function getLikelySupportingCandidatePaths(bestCandidatePath: str
77460
78987
  export declare function getDefaultPlanPath(taskName: string): string;
77461
78988
  export declare function sanitizeTaskSlug(taskName: string): string;
77462
78989
  //#endregion
77463
- export type { A2AHandlerOptions, A2ARunInput, A2ATextMessage, AIGrader, ActivateAgentAliasInput, ActivateAgentPromotionInput, AgentAlias, AgentAliasActivation, AgentAliasArchiveFailure, AgentAliasArchived, AgentAliasList, AgentAliasTransport, AgentCapabilityChange, AgentCapabilityDeclaration, AgentDefinition, AgentDefinitionConfig, AgentDeploymentList, AgentDeploymentPromotion, AgentDeploymentReceipt, AgentPromotionManifest, AgentPromotionTransport, AgentPromotionValidation, AgentPullResult, AgentSkillBinding, AgentSkillBindingChange, AgentStreamEvent, ApiKeyRequest, ApiKeyRequestDelivery, ApiKeyRequestEnvironment, ApiKeyRequestHandoff, ApiKeyRequestListParams, ApiKeyRequestRequester, ApiKeyRequestStatus, ApplyGeneratedProposalOptions, ApplyGeneratedProposalResult, ArchiveAgentAliasEverywhereResult, ArchiveAgentAliasInput, AttachRuntimeToolsOptions, BatchClient, BatchListParams, BatchOptions, BatchRequest, BatchResult, BatchScheduleConfig, BatchStatus, BindSkillInput, BuiltInGraderId, CaseExpected, CheckGrader, ClaimApiKeyRequestInput, ClaimApiKeyRequestResponse, ClientConversation, ClientToken, ClientTokenConfig, ClientTokenDefinition, ClientTokenEnvironment, ClientTokenVersionPin, ClientWidgetTheme, CollectionPullResult, CollectionSchemaChange, ConditionalGetResult, ConditionalStepConfig, ContextErrorHandling, ContextFallback, CreateApiKeyRequestInput, CreateApiKeyRequestResponse, CreateClientTokenRequest, CreateClientTokenResponse, CreateEvalSuiteInput, CreatePromptData, DecisionModelCatalog, DecisionModelCatalogEntry, DecomposeCriteriaResult, DefineAgentInput, DefineEvalCaseInput, DefineEvalInput, DefineFlowInput, DefineProductInput, DefineScheduleInput, DefineSkillInput, DefineSurfaceInput, DefineToolInput, DetachedReattach, DetachedReconnectOptions, DispatchClient, DispatchEvent, DispatchOptions, EnsureAgentConverged, EnsureAgentOptions, EnsureAgentPlan, EnsureAgentResult, EnsureClientTokenConverged, EnsureClientTokenOptions, EnsureClientTokenPlan, EnsureClientTokenResult, EnsureCollectionConverged, EnsureCollectionOptions, EnsureCollectionPlan, EnsureCollectionResult, EnsureEvalApplyOptions, EnsureEvalOptions, EnsureEvalPlan, EnsureEvalResult, EnsureFlowConverged, EnsureFlowOptions, EnsureFlowPlan, EnsureFlowResult, EnsureFpoOptions, EnsureFpoResult, EnsureProductConverged, EnsureProductOptions, EnsureProductPlan, EnsureProductResult, EnsureQuestionSetConverged, EnsureQuestionSetOptions, EnsureQuestionSetPlan, EnsureQuestionSetResult, EnsureScheduleConverged, EnsureScheduleOptions, EnsureSchedulePlan, EnsureScheduleResult, EnsureSkillConverged, EnsureSkillOptions, EnsureSkillPlan, EnsureSkillResult, EnsureSurfaceConverged, EnsureSurfaceOptions, EnsureSurfacePlan, EnsureSurfaceResult, EnsureToolConverged, EnsureToolOptions, EnsureToolPlan, EnsureToolResult, ErrorHandlingMode, EvalAgentSelector, EvalAgentTargetResolution, EvalCaseDefinition, EvalCaseInput, EvalCaseProposal, EvalCaseProposalAccepted, EvalCaseProposalListResult, EvalCasesGenerated, EvalClient, EvalDefinition, EvalEndUserIdentity, EvalIdentityDefaults, EvalListParams, EvalMessage, EvalOptions, EvalProposalSource, EvalProposalStatus, EvalProposedCase, EvalPullResult, EvalRecord, EvalRequest, EvalResult, EvalRunCaseScores, EvalRunConfig, EvalRunEvidence, EvalRunScores, EvalStatus, EvalSuiteCase, EvalSuiteCaseInput, EvalSuiteCoverage, EvalSuiteDetail, EvalSuiteLatestRun, EvalSuiteListResult, EvalSuiteRunQueued, EvalSuiteRunResult, EvalSuiteSummary, EvalTarget, EvalTenantIdentity, ExecutionStreamEvent, ExecutionTerminalOutcome, ExportSimulationDesignBriefResponse, ExtractionModelCatalog, ExtractionModelCatalogEntry, FallbackFailEvent, FallbackStartEvent, FallbackSuccessEvent, FallbackTrigger, FallbackTriggerType, FallbacksExhaustedEvent, FallbacksInitiatedEvent, FetchUrlStepConfig, FieldFormat, FlowCompleteEvent, FlowConfig, FlowDefinition, FlowDefinitionStep, FlowErrorEvent, FlowFallback, FlowInlineEvalInput, FlowPausedEvent, FlowPullResult, FlowStartEvent, FlowStreamEvent, FlowSummary, FlowValidationClient, FlowValidationIssue, FlowValidationResult, FpoEntityOutcome, FpoInput, GenerateEmbeddingStepConfig, GenerateEvalCasesInput, GeneratedRuntimeToolGateDecision, GeneratedRuntimeToolGateOptions, GetApiKeyRequestResponse, GetRecordStepConfig, GetSimulationEpisodeResponse, Gradeable, GraderConfig, GraderOutcome, GraderSeverity, HumanVerdict, JudgeAttemptDiagnostic, JudgeDiagnostics, JudgeParseError, ListAgentAliasesOptions, ListAgentDeploymentsOptions, ListConversationsResponse, ListRecordsStepConfig, ListSimulationEpisodesParams, ListSimulationEpisodesResponse, ListSimulationToolExchangesParams, ListSimulationToolExchangesResponse, LoopStepConfig, ManagedDeploymentAccepted, ManagedDeploymentCapability, ManagedDeploymentConfig, ManagedDeploymentCredentialAuthority, ManagedDeploymentDefinition, ManagedDeploymentDesiredSpec, ManagedDeploymentHealth, ManagedDeploymentLanguage, ManagedDeploymentProfileIdentity, ManagedDeploymentResource, ManagedDeploymentRetention, ManagedDeploymentRuntimeProfile, ManagedDeploymentSleepPolicy, ManagedDeploymentUpdateOptions, ManagedDeploymentWriteOptions, ManagedDeploymentWriteRequest, Message, MessageFallback, ModelFallback, ModelOverride, OrganizationAgentAlias, OrganizationAgentAliasList, PersistedGraderOutcome, PrepareAgentPromotionInput, PreviewSimulationVariantRequest, PreviewSimulationVariantResponse, ProductDefinition, ProductPullResult, PromoteAgentInput, PromoteAgentResult, PromptErrorHandling, PromptFallback, PromptListParams, PromptStepConfig, PullFpoResult, QuestionSetDefinition, QuestionSetPullResult, RecordCollectionDefinition, RecordCollectionValidationMode, RecordConfig, RecordFilter, RecordFilterCondition, RecordFilterGroup, RecordFilterOperator, RetrieveRecordStepConfig, RetryFallback, RollbackAgentAliasInput, RunEvalCaseResult, RunEvalInput, RunEvalResult, RunListParams, RunListResponse, RunListRow, AgentSkillBinding$1 as RuntypeAgentSkillBinding, ConditionalStepConfig$1 as RuntypeConditionalStepConfig, RuntypeConfig, FetchUrlStepConfig$1 as RuntypeFetchUrlStepConfig, FlowConfig$1 as RuntypeFlowConfig, GenerateEmbeddingStepConfig$1 as RuntypeGenerateEmbeddingStepConfig, GetRecordStepConfig$1 as RuntypeGetRecordStepConfig, ListRecordsStepConfig$1 as RuntypeListRecordsStepConfig, LoopStepConfig$1 as RuntypeLoopStepConfig, Message$1 as RuntypeMessage, ModelOverride$1 as RuntypeModelOverride, Prompt$1 as RuntypePrompt, PromptStepConfig$1 as RuntypePromptStepConfig, RecordConfig$1 as RuntypeRecordConfig, RetrieveRecordStepConfig$1 as RuntypeRetrieveRecordStepConfig, SearchStepConfig as RuntypeSearchStepConfig, SendEmailStepConfig as RuntypeSendEmailStepConfig, SendEventStepConfig as RuntypeSendEventStepConfig, SendStreamStepConfig as RuntypeSendStreamStepConfig, SetVariableStepConfig as RuntypeSetVariableStepConfig, Skill as RuntypeSkill, SkillBindingWithAgent as RuntypeSkillBindingWithAgent, SkillCapabilities as RuntypeSkillCapabilities, SkillFrontmatter as RuntypeSkillFrontmatter, SkillManifest as RuntypeSkillManifest, SkillProposal as RuntypeSkillProposal, SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, SkillVersion as RuntypeSkillVersion, TransformDataStepConfig as RuntypeTransformDataStepConfig, UpsertFlowConfig as RuntypeUpsertFlowConfig, UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, VectorSearchStepConfig as RuntypeVectorSearchStepConfig, WaitUntilStepConfig as RuntypeWaitUntilStepConfig, ScheduleDefinition, ScheduleDefinitionMessage, ScheduleEnsureTransport, SchedulePullResult, SearchStepConfig$1 as SearchStepConfig, SendEmailStepConfig$1 as SendEmailStepConfig, SendEventStepConfig$1 as SendEventStepConfig, SendStreamStepConfig$1 as SendStreamStepConfig, SetVariableStepConfig$1 as SetVariableStepConfig, SimulationDesignBrief, SimulationEpisode, SimulationEpisodeMetrics, SimulationEpisodeScore, SimulationEpisodeStatus, SimulationEpisodeTranscript, SimulationServedBy, SimulationServedByCounts, SimulationTermination, SimulationToolCallFacts, SimulationToolExchange, SimulationToolProfile, SimulationTranscriptMessage, SimulationTurnLayerFacts, SkillDefinition, SkillListPage, SkillListPagination, SkillListParams, SkillManifestInput, SkillMarkdownInput, SkillOrigin, SkillProposalStatus, SkillPullResult, SkillStatus, SkillTrustLevel, SkillVersionStatus, SkillWithVersion, SkillWriteInput, StepCompleteEvent, StepDeltaEvent, StepFallback, StepFieldMeta, StepStartEvent, StepWaitingLocalEvent, StreamCallbacks, StreamConsumeOptions, StreamEvent, StreamEventOf, SurfaceDefinition, SurfaceDefinitionStatus, SurfaceDefinitionType, SurfacePullResult, ToolDefinition, ToolDefinitionType, ToolPullResult, TransformDataStepConfig$1 as TransformDataStepConfig, UpdateClientTokenRequest, UpdateEvalCaseInput, UpdateEvalSuiteInput, UpdatePromptData, UpdateSimulationTargetRequest, UpdateSimulationVariantRequest, UploadSimulationToolExchangesRequest, UploadedSimulationToolExchange, UpsertFlowConfig$1 as UpsertFlowConfig, UpsertRecordStepConfig$1 as UpsertRecordStepConfig, ValidateAgentPromotionInput, VectorSearchStepConfig$1 as VectorSearchStepConfig, WaitUntilStepConfig$1 as WaitUntilStepConfig, WorkflowCompileDeps, WorkflowCompletionCriteriaConfig, WorkflowConfig, WorkflowConfigFactory, WorkflowHookEntry, WorkflowHookKind, WorkflowHookRef, WorkflowHookSignatures, WorkflowMilestoneConfig, WorkflowPolicyConfig, WorkflowRecoveryConfig, WorkflowSlot };
78990
+ export type { A2AHandlerOptions, A2ARunInput, A2ATextMessage, AIGrader, ActivateAgentAliasInput, ActivateAgentPromotionInput, AgentAlias, AgentAliasActivation, AgentAliasArchiveFailure, AgentAliasArchived, AgentAliasList, AgentAliasTransport, AgentCapabilityChange, AgentCapabilityDeclaration, AgentDefinition, AgentDefinitionConfig, AgentDeploymentList, AgentDeploymentPromotion, AgentDeploymentReceipt, AgentPromotionManifest, AgentPromotionTransport, AgentPromotionValidation, AgentPullResult, AgentSkillBinding, AgentSkillBindingChange, AgentStreamEvent, ApiKeyRequest, ApiKeyRequestDelivery, ApiKeyRequestEnvironment, ApiKeyRequestHandoff, ApiKeyRequestListParams, ApiKeyRequestRequester, ApiKeyRequestStatus, ApplyGeneratedProposalOptions, ApplyGeneratedProposalResult, ArchiveAgentAliasEverywhereResult, ArchiveAgentAliasInput, AttachRuntimeToolsOptions, BatchClient, BatchListParams, BatchOptions, BatchRequest, BatchResult, BatchScheduleConfig, BatchStatus, BindSignalSetInput, BindSkillInput, BuiltInGraderId, CaseExpected, CheckGrader, ClaimApiKeyRequestInput, ClaimApiKeyRequestResponse, ClientConversation, ClientToken, ClientTokenConfig, ClientTokenDefinition, ClientTokenEnvironment, ClientTokenVersionPin, ClientWidgetTheme, CollectionPullResult, CollectionSchemaChange, ConditionalGetResult, ConditionalStepConfig, ContextErrorHandling, ContextFallback, CreateApiKeyRequestInput, CreateApiKeyRequestResponse, CreateClientTokenRequest, CreateClientTokenResponse, CreateEvalSuiteInput, CreatePromptData, CreateSignalSetInput, DecisionModelCatalog, DecisionModelCatalogEntry, DecomposeCriteriaResult, DefineAgentInput, DefineEvalCaseInput, DefineEvalInput, DefineFlowInput, DefineProductInput, DefineScheduleInput, DefineSkillInput, DefineSurfaceInput, DefineToolInput, DetachedReattach, DetachedReconnectOptions, DispatchClient, DispatchEvent, DispatchOptions, EnsureAgentConverged, EnsureAgentOptions, EnsureAgentPlan, EnsureAgentResult, EnsureClientTokenConverged, EnsureClientTokenOptions, EnsureClientTokenPlan, EnsureClientTokenResult, EnsureCollectionConverged, EnsureCollectionOptions, EnsureCollectionPlan, EnsureCollectionResult, EnsureEvalApplyOptions, EnsureEvalOptions, EnsureEvalPlan, EnsureEvalResult, EnsureFlowConverged, EnsureFlowOptions, EnsureFlowPlan, EnsureFlowResult, EnsureFpoOptions, EnsureFpoResult, EnsureProductConverged, EnsureProductOptions, EnsureProductPlan, EnsureProductResult, EnsureQuestionSetConverged, EnsureQuestionSetOptions, EnsureQuestionSetPlan, EnsureQuestionSetResult, EnsureScheduleConverged, EnsureScheduleOptions, EnsureSchedulePlan, EnsureScheduleResult, EnsureSkillConverged, EnsureSkillOptions, EnsureSkillPlan, EnsureSkillResult, EnsureSurfaceConverged, EnsureSurfaceOptions, EnsureSurfacePlan, EnsureSurfaceResult, EnsureToolConverged, EnsureToolOptions, EnsureToolPlan, EnsureToolResult, ErrorHandlingMode, EvalAgentSelector, EvalAgentTargetResolution, EvalCaseDefinition, EvalCaseInput, EvalCaseProposal, EvalCaseProposalAccepted, EvalCaseProposalListResult, EvalCasesGenerated, EvalClient, EvalDefinition, EvalEndUserIdentity, EvalIdentityDefaults, EvalListParams, EvalMessage, EvalOptions, EvalProposalSource, EvalProposalStatus, EvalProposedCase, EvalPullResult, EvalRecord, EvalRequest, EvalResult, EvalRunCaseScores, EvalRunConfig, EvalRunEvidence, EvalRunScores, EvalStatus, EvalSuiteCase, EvalSuiteCaseInput, EvalSuiteCoverage, EvalSuiteDetail, EvalSuiteLatestRun, EvalSuiteListResult, EvalSuiteRunQueued, EvalSuiteRunResult, EvalSuiteSummary, EvalTarget, EvalTenantIdentity, ExecutionStreamEvent, ExecutionTerminalOutcome, ExportSimulationDesignBriefResponse, ExtractionModelCatalog, ExtractionModelCatalogEntry, FallbackFailEvent, FallbackStartEvent, FallbackSuccessEvent, FallbackTrigger, FallbackTriggerType, FallbacksExhaustedEvent, FallbacksInitiatedEvent, FetchUrlStepConfig, FieldFormat, FlowCompleteEvent, FlowConfig, FlowDefinition, FlowDefinitionStep, FlowErrorEvent, FlowFallback, FlowInlineEvalInput, FlowPausedEvent, FlowPullResult, FlowStartEvent, FlowStreamEvent, FlowSummary, FlowValidationClient, FlowValidationIssue, FlowValidationResult, FpoEntityOutcome, FpoInput, GenerateEmbeddingStepConfig, GenerateEvalCasesInput, GeneratedRuntimeToolGateDecision, GeneratedRuntimeToolGateOptions, GetApiKeyRequestResponse, GetRecordStepConfig, GetSimulationEpisodeResponse, Gradeable, GraderConfig, GraderOutcome, GraderSeverity, HumanVerdict, JudgeAttemptDiagnostic, JudgeDiagnostics, JudgeParseError, ListAgentAliasesOptions, ListAgentDeploymentsOptions, ListConversationsResponse, ListRecordsStepConfig, ListSimulationEpisodesParams, ListSimulationEpisodesResponse, ListSimulationToolExchangesParams, ListSimulationToolExchangesResponse, LoopStepConfig, ManagedDeploymentAccepted, ManagedDeploymentCapability, ManagedDeploymentConfig, ManagedDeploymentCredentialAuthority, ManagedDeploymentDefinition, ManagedDeploymentDesiredSpec, ManagedDeploymentHealth, ManagedDeploymentLanguage, ManagedDeploymentProfileIdentity, ManagedDeploymentResource, ManagedDeploymentRetention, ManagedDeploymentRuntimeProfile, ManagedDeploymentSleepPolicy, ManagedDeploymentUpdateOptions, ManagedDeploymentWriteOptions, ManagedDeploymentWriteRequest, Message, MessageFallback, ModelFallback, ModelOverride, OrganizationAgentAlias, OrganizationAgentAliasList, PersistedGraderOutcome, PrepareAgentPromotionInput, PreviewSimulationVariantRequest, PreviewSimulationVariantResponse, ProductDefinition, ProductPullResult, PromoteAgentInput, PromoteAgentResult, PromptErrorHandling, PromptFallback, PromptListParams, PromptStepConfig, PullFpoResult, QuestionSetDefinition, QuestionSetPullResult, RecordCollectionDefinition, RecordCollectionValidationMode, RecordConfig, RecordFilter, RecordFilterCondition, RecordFilterGroup, RecordFilterOperator, RetrieveRecordStepConfig, RetryFallback, RollbackAgentAliasInput, RunEvalCaseResult, RunEvalInput, RunEvalResult, RunListParams, RunListResponse, RunListRow, AgentSkillBinding$1 as RuntypeAgentSkillBinding, ConditionalStepConfig$1 as RuntypeConditionalStepConfig, RuntypeConfig, FetchUrlStepConfig$1 as RuntypeFetchUrlStepConfig, FlowConfig$1 as RuntypeFlowConfig, GenerateEmbeddingStepConfig$1 as RuntypeGenerateEmbeddingStepConfig, GetRecordStepConfig$1 as RuntypeGetRecordStepConfig, ListRecordsStepConfig$1 as RuntypeListRecordsStepConfig, LoopStepConfig$1 as RuntypeLoopStepConfig, Message$1 as RuntypeMessage, ModelOverride$1 as RuntypeModelOverride, Prompt$1 as RuntypePrompt, PromptStepConfig$1 as RuntypePromptStepConfig, RecordConfig$1 as RuntypeRecordConfig, RetrieveRecordStepConfig$1 as RuntypeRetrieveRecordStepConfig, SearchStepConfig as RuntypeSearchStepConfig, SendEmailStepConfig as RuntypeSendEmailStepConfig, SendEventStepConfig as RuntypeSendEventStepConfig, SendStreamStepConfig as RuntypeSendStreamStepConfig, SetVariableStepConfig as RuntypeSetVariableStepConfig, Skill as RuntypeSkill, SkillBindingWithAgent as RuntypeSkillBindingWithAgent, SkillCapabilities as RuntypeSkillCapabilities, SkillFrontmatter as RuntypeSkillFrontmatter, SkillManifest as RuntypeSkillManifest, SkillProposal as RuntypeSkillProposal, SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, SkillVersion as RuntypeSkillVersion, TransformDataStepConfig as RuntypeTransformDataStepConfig, UpsertFlowConfig as RuntypeUpsertFlowConfig, UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, VectorSearchStepConfig as RuntypeVectorSearchStepConfig, WaitUntilStepConfig as RuntypeWaitUntilStepConfig, ScheduleDefinition, ScheduleDefinitionMessage, ScheduleEnsureTransport, SchedulePullResult, SearchStepConfig$1 as SearchStepConfig, SendEmailStepConfig$1 as SendEmailStepConfig, SendEventStepConfig$1 as SendEventStepConfig, SendStreamStepConfig$1 as SendStreamStepConfig, SetVariableStepConfig$1 as SetVariableStepConfig, SignalBinding, SignalPreviewReport, SignalSet, SignalSetDefinitionInput, SignalSetPreset, SignalSetVersion, SignalStatRow, SignalStatsParams, SimulationDesignBrief, SimulationEpisode, SimulationEpisodeMetrics, SimulationEpisodeScore, SimulationEpisodeStatus, SimulationEpisodeTranscript, SimulationServedBy, SimulationServedByCounts, SimulationTermination, SimulationToolCallFacts, SimulationToolExchange, SimulationToolProfile, SimulationTranscriptMessage, SimulationTurnLayerFacts, SkillDefinition, SkillListPage, SkillListPagination, SkillListParams, SkillManifestInput, SkillMarkdownInput, SkillOrigin, SkillProposalStatus, SkillPullResult, SkillStatus, SkillTrustLevel, SkillVersionStatus, SkillWithVersion, SkillWriteInput, StepCompleteEvent, StepDeltaEvent, StepFallback, StepFieldMeta, StepStartEvent, StepWaitingLocalEvent, StreamCallbacks, StreamConsumeOptions, StreamEvent, StreamEventOf, SurfaceDefinition, SurfaceDefinitionStatus, SurfaceDefinitionType, SurfacePullResult, ToolDefinition, ToolDefinitionType, ToolPullResult, TransformDataStepConfig$1 as TransformDataStepConfig, UpdateClientTokenRequest, UpdateEvalCaseInput, UpdateEvalSuiteInput, UpdatePromptData, UpdateSimulationTargetRequest, UpdateSimulationVariantRequest, UploadSimulationToolExchangesRequest, UploadedSimulationToolExchange, UpsertFlowConfig$1 as UpsertFlowConfig, UpsertRecordStepConfig$1 as UpsertRecordStepConfig, ValidateAgentPromotionInput, VectorSearchStepConfig$1 as VectorSearchStepConfig, WaitUntilStepConfig$1 as WaitUntilStepConfig, WorkflowCompileDeps, WorkflowCompletionCriteriaConfig, WorkflowConfig, WorkflowConfigFactory, WorkflowHookEntry, WorkflowHookKind, WorkflowHookRef, WorkflowHookSignatures, WorkflowMilestoneConfig, WorkflowPolicyConfig, WorkflowRecoveryConfig, WorkflowSlot };
77464
78991
  export {}