@ai-matrx/api 0.0.0-stage → 0.1.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/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +18 -2
- package/dist/account.cjs +670 -0
- package/dist/account.d.cts +3246 -0
- package/dist/account.d.ts +3246 -0
- package/dist/account.js +558 -0
- package/dist/agents.cjs +598 -0
- package/dist/agents.d.cts +3417 -0
- package/dist/agents.d.ts +3417 -0
- package/dist/agents.js +497 -0
- package/dist/ai.cjs +109 -0
- package/dist/ai.d.cts +493 -0
- package/dist/ai.d.ts +493 -0
- package/dist/ai.js +91 -0
- package/dist/apps.cjs +394 -0
- package/dist/apps.d.cts +1094 -0
- package/dist/apps.d.ts +1094 -0
- package/dist/apps.js +328 -0
- package/dist/architecture.cjs +1223 -0
- package/dist/architecture.d.cts +4701 -0
- package/dist/architecture.d.ts +4701 -0
- package/dist/architecture.js +1016 -0
- package/dist/audio.cjs +226 -0
- package/dist/audio.d.cts +723 -0
- package/dist/audio.d.ts +723 -0
- package/dist/audio.js +188 -0
- package/dist/chat.cjs +538 -0
- package/dist/chat.d.cts +2251 -0
- package/dist/chat.d.ts +2251 -0
- package/dist/chat.js +447 -0
- package/dist/chunk-2SXAAKGV.cjs +279 -0
- package/dist/chunk-AY5N6EA4.js +43 -0
- package/dist/chunk-BMQI7UET.cjs +48 -0
- package/dist/chunk-FNIYADWI.cjs +59 -0
- package/dist/chunk-KIEAFMKB.js +264 -0
- package/dist/chunk-UONBYRE4.js +1012 -0
- package/dist/chunk-YTEOFGFC.js +57 -0
- package/dist/chunk-YUDQWDCM.cjs +1047 -0
- package/dist/code.cjs +561 -0
- package/dist/code.d.cts +1976 -0
- package/dist/code.d.ts +1976 -0
- package/dist/code.js +467 -0
- package/dist/commerce.cjs +22 -0
- package/dist/commerce.d.cts +45 -0
- package/dist/commerce.d.ts +45 -0
- package/dist/commerce.js +18 -0
- package/dist/communications.cjs +215 -0
- package/dist/communications.d.cts +948 -0
- package/dist/communications.d.ts +948 -0
- package/dist/communications.js +179 -0
- package/dist/computer.cjs +330 -0
- package/dist/computer.d.cts +733 -0
- package/dist/computer.d.ts +733 -0
- package/dist/computer.js +275 -0
- package/dist/content.cjs +425 -0
- package/dist/content.d.cts +1796 -0
- package/dist/content.d.ts +1796 -0
- package/dist/content.js +354 -0
- package/dist/credentials.cjs +22 -0
- package/dist/credentials.d.cts +82 -0
- package/dist/credentials.d.ts +82 -0
- package/dist/credentials.js +1 -0
- package/dist/crm.cjs +271 -0
- package/dist/crm.d.cts +1731 -0
- package/dist/crm.d.ts +1731 -0
- package/dist/crm.js +226 -0
- package/dist/data.cjs +382 -0
- package/dist/data.d.cts +1860 -0
- package/dist/data.d.ts +1860 -0
- package/dist/data.js +318 -0
- package/dist/education.cjs +28 -0
- package/dist/education.d.cts +73 -0
- package/dist/education.d.ts +73 -0
- package/dist/education.js +23 -0
- package/dist/files.cjs +1330 -0
- package/dist/files.d.cts +4956 -0
- package/dist/files.d.ts +4956 -0
- package/dist/files.js +1104 -0
- package/dist/human-resources.cjs +178 -0
- package/dist/human-resources.d.cts +1208 -0
- package/dist/human-resources.d.ts +1208 -0
- package/dist/human-resources.js +148 -0
- package/dist/index-C2E-Cp19.d.ts +385 -0
- package/dist/index-wC2vtb70.d.cts +385 -0
- package/dist/index.cjs +1934 -0
- package/dist/index.d.cts +2006 -0
- package/dist/index.d.ts +2006 -0
- package/dist/index.js +1668 -0
- package/dist/integrations.cjs +5116 -0
- package/dist/integrations.d.cts +19213 -0
- package/dist/integrations.d.ts +19213 -0
- package/dist/integrations.js +4263 -0
- package/dist/intelligence.cjs +1305 -0
- package/dist/intelligence.d.cts +4658 -0
- package/dist/intelligence.d.ts +4658 -0
- package/dist/intelligence.js +1196 -0
- package/dist/knowledge.cjs +1113 -0
- package/dist/knowledge.d.cts +5427 -0
- package/dist/knowledge.d.ts +5427 -0
- package/dist/knowledge.js +921 -0
- package/dist/legal.cjs +225 -0
- package/dist/legal.d.cts +1038 -0
- package/dist/legal.d.ts +1038 -0
- package/dist/legal.js +187 -0
- package/dist/marketing.cjs +1155 -0
- package/dist/marketing.d.cts +7741 -0
- package/dist/marketing.d.ts +7741 -0
- package/dist/marketing.js +951 -0
- package/dist/masterwork.cjs +283 -0
- package/dist/masterwork.d.cts +1938 -0
- package/dist/masterwork.d.ts +1938 -0
- package/dist/masterwork.js +231 -0
- package/dist/media.cjs +610 -0
- package/dist/media.d.cts +2270 -0
- package/dist/media.d.ts +2270 -0
- package/dist/media.js +507 -0
- package/dist/net.cjs +67 -0
- package/dist/net.d.cts +204 -0
- package/dist/net.d.ts +204 -0
- package/dist/net.js +2 -0
- package/dist/platform.cjs +150 -0
- package/dist/platform.d.cts +572 -0
- package/dist/platform.d.ts +572 -0
- package/dist/platform.js +125 -0
- package/dist/publish.cjs +248 -0
- package/dist/publish.d.cts +1431 -0
- package/dist/publish.d.ts +1431 -0
- package/dist/publish.js +206 -0
- package/dist/schemas.cjs +2 -0
- package/dist/schemas.d.cts +1353 -0
- package/dist/schemas.d.ts +1353 -0
- package/dist/schemas.js +1 -0
- package/dist/stream.cjs +44 -0
- package/dist/stream.d.cts +2 -0
- package/dist/stream.d.ts +2 -0
- package/dist/stream.js +3 -0
- package/dist/web.cjs +1045 -0
- package/dist/web.d.cts +4186 -0
- package/dist/web.d.ts +4186 -0
- package/dist/web.js +867 -0
- package/dist/workflows.cjs +825 -0
- package/dist/workflows.d.cts +4699 -0
- package/dist/workflows.d.ts +4699 -0
- package/dist/workflows.js +686 -0
- package/package.json +418 -4
|
@@ -0,0 +1,4658 @@
|
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-wC2vtb70.cjs';
|
|
2
|
+
import { JsonValue, MandateTestHolder } from './schemas.cjs';
|
|
3
|
+
import './credentials.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* GENERATED — DO NOT EDIT. Regenerate with:
|
|
7
|
+
* uv run python scripts/mandates_generate.py (aidream repo; --dry-run also writes this file)
|
|
8
|
+
*
|
|
9
|
+
* THE ONE GENERATOR (`aidream/scripts/mandates_generate.py`, stage (h)) emits this
|
|
10
|
+
* from the IN-PROCESS mandate declarations — the same `declared_mandates()` the
|
|
11
|
+
* boot sync writes to the database from. There is no hand list anywhere.
|
|
12
|
+
*
|
|
13
|
+
* aidream revision: 22ab61341c907a72485c89512fbc0cb42c17e11c
|
|
14
|
+
* generator version: 1.0.0
|
|
15
|
+
* package version: 0.58.7
|
|
16
|
+
* active keys: 559
|
|
17
|
+
* retiring keys: 0
|
|
18
|
+
*
|
|
19
|
+
* THE IDENTIFIER RULE: every `.` in a key becomes `__`, any character outside
|
|
20
|
+
* [A-Za-z0-9_] becomes `_`, a leading digit gets an `_` prefix. So
|
|
21
|
+
* `seo.keyword_classifier` is `MANDATE_KEYS.seo__keyword_classifier`. Collisions are a
|
|
22
|
+
* fatal generator error, never a silently dropped key.
|
|
23
|
+
*/
|
|
24
|
+
/** Where this module came from — surfaced so a report can name the exact build. */
|
|
25
|
+
declare const MANDATE_KEYS_META: {
|
|
26
|
+
readonly aidreamRevision: "22ab61341c907a72485c89512fbc0cb42c17e11c";
|
|
27
|
+
readonly generatorVersion: "1.0.0";
|
|
28
|
+
readonly packageVersion: "0.58.7";
|
|
29
|
+
readonly retireWindow: 3;
|
|
30
|
+
};
|
|
31
|
+
/** Every declared mandate key, by THE IDENTIFIER RULE. */
|
|
32
|
+
declare const MANDATE_KEYS: {
|
|
33
|
+
readonly agent_apps__prompt_app_dev: "agent_apps.prompt_app_dev";
|
|
34
|
+
readonly agent_factory__build: "agent_factory.build";
|
|
35
|
+
readonly agent_factory__contract: "agent_factory.contract";
|
|
36
|
+
readonly agent_factory__instructions: "agent_factory.instructions";
|
|
37
|
+
readonly agent_factory__proof_review: "agent_factory.proof_review";
|
|
38
|
+
readonly agent_factory__structure_builder: "agent_factory.structure_builder";
|
|
39
|
+
readonly agent_factory__tool_choice: "agent_factory.tool_choice";
|
|
40
|
+
readonly agent_studio__chat_brief: "agent_studio.chat_brief";
|
|
41
|
+
readonly ai__translation_cell_draft: "ai.translation_cell_draft";
|
|
42
|
+
readonly alchemy__prepare_content: "alchemy.prepare_content";
|
|
43
|
+
readonly ambient__page_guidance: "ambient.page_guidance";
|
|
44
|
+
readonly ambient__spoken_summary: "ambient.spoken_summary";
|
|
45
|
+
readonly applets__build: "applets.build";
|
|
46
|
+
readonly applets__fix: "applets.fix";
|
|
47
|
+
readonly audio__live_music: "audio.live_music";
|
|
48
|
+
readonly audio__speech: "audio.speech";
|
|
49
|
+
readonly brand__voice_rewrite: "brand.voice_rewrite";
|
|
50
|
+
readonly chat__cx_default: "chat.cx_default";
|
|
51
|
+
readonly chat__default_new_chat: "chat.default_new_chat";
|
|
52
|
+
readonly chat__quick_audio_plan: "chat.quick_audio_plan";
|
|
53
|
+
readonly chat__quick_fair_news: "chat.quick_fair_news";
|
|
54
|
+
readonly chat__quick_flashcards: "chat.quick_flashcards";
|
|
55
|
+
readonly chat__quick_image: "chat.quick_image";
|
|
56
|
+
readonly chat__quick_org_chart: "chat.quick_org_chart";
|
|
57
|
+
readonly chat__quick_research: "chat.quick_research";
|
|
58
|
+
readonly chat__quick_showcase: "chat.quick_showcase";
|
|
59
|
+
readonly chat__quick_writing_partner: "chat.quick_writing_partner";
|
|
60
|
+
readonly chat__response_mode_brainstorm: "chat.response_mode_brainstorm";
|
|
61
|
+
readonly chat__response_mode_data: "chat.response_mode_data";
|
|
62
|
+
readonly chat__response_mode_research: "chat.response_mode_research";
|
|
63
|
+
readonly chat__response_mode_video: "chat.response_mode_video";
|
|
64
|
+
readonly checks__cleanup_bakeoff__answer: "checks.cleanup_bakeoff.answer";
|
|
65
|
+
readonly checks__cleanup_bakeoff__judge: "checks.cleanup_bakeoff.judge";
|
|
66
|
+
readonly checks__finding_disposition: "checks.finding_disposition";
|
|
67
|
+
readonly checks__finding_disposition_review: "checks.finding_disposition_review";
|
|
68
|
+
readonly cms__content_writing: "cms.content_writing";
|
|
69
|
+
readonly cms__publish_review: "cms.publish_review";
|
|
70
|
+
readonly cms__seo_metadata: "cms.seo_metadata";
|
|
71
|
+
readonly cms__site_editing: "cms.site_editing";
|
|
72
|
+
readonly cms__theme_design: "cms.theme_design";
|
|
73
|
+
readonly code_editor__code_edit: "code_editor.code_edit";
|
|
74
|
+
readonly code_editor__dynamic_context_edit: "code_editor.dynamic_context_edit";
|
|
75
|
+
readonly code_editor__prompt_app_ui_edit: "code_editor.prompt_app_ui_edit";
|
|
76
|
+
readonly coding_session__conversation_responder: "coding_session.conversation_responder";
|
|
77
|
+
readonly coding_session__managed_translation_reference: "coding_session.managed_translation_reference";
|
|
78
|
+
readonly commerce_intake__assess_value: "commerce_intake.assess_value";
|
|
79
|
+
readonly commerce_intake__extract_vision: "commerce_intake.extract_vision";
|
|
80
|
+
readonly commerce_intake__grading: "commerce_intake.grading";
|
|
81
|
+
readonly commerce_intake__instant_analysis: "commerce_intake.instant_analysis";
|
|
82
|
+
readonly commerce_intake__refute_no_value: "commerce_intake.refute_no_value";
|
|
83
|
+
readonly commerce_intake__research_product: "commerce_intake.research_product";
|
|
84
|
+
readonly commerce_intake__segment_photos: "commerce_intake.segment_photos";
|
|
85
|
+
readonly commerce_intake__verify_enrichment: "commerce_intake.verify_enrichment";
|
|
86
|
+
readonly content_gate__section_relevance_decision: "content_gate.section_relevance_decision";
|
|
87
|
+
readonly content_ir__component_artisan: "content_ir.component_artisan";
|
|
88
|
+
readonly content_ir__kind_architect: "content_ir.kind_architect";
|
|
89
|
+
readonly content_ir__kind_component_builder: "content_ir.kind_component_builder";
|
|
90
|
+
readonly content_ir__kind_creator: "content_ir.kind_creator";
|
|
91
|
+
readonly content_plan__branch_purpose: "content_plan.branch_purpose";
|
|
92
|
+
readonly content_plan__brief_writer: "content_plan.brief_writer";
|
|
93
|
+
readonly content_plan__deepen_page: "content_plan.deepen_page";
|
|
94
|
+
readonly content_plan__entity_attacher: "content_plan.entity_attacher";
|
|
95
|
+
readonly content_plan__entity_curator: "content_plan.entity_curator";
|
|
96
|
+
readonly content_plan__family_namer: "content_plan.family_namer";
|
|
97
|
+
readonly content_plan__keyword_strategist: "content_plan.keyword_strategist";
|
|
98
|
+
readonly content_plan__merge_wave: "content_plan.merge_wave";
|
|
99
|
+
readonly content_plan__p3_family: "content_plan.p3_family";
|
|
100
|
+
readonly content_plan__p4_write: "content_plan.p4_write";
|
|
101
|
+
readonly content_plan__p5_review: "content_plan.p5_review";
|
|
102
|
+
readonly content_plan__p6_build: "content_plan.p6_build";
|
|
103
|
+
readonly content_plan__p6_build__about: "content_plan.p6_build.about";
|
|
104
|
+
readonly content_plan__p6_build__blog: "content_plan.p6_build.blog";
|
|
105
|
+
readonly content_plan__p6_build__comparison: "content_plan.p6_build.comparison";
|
|
106
|
+
readonly content_plan__p6_build__contact: "content_plan.p6_build.contact";
|
|
107
|
+
readonly content_plan__p6_build__faq: "content_plan.p6_build.faq";
|
|
108
|
+
readonly content_plan__p6_build__guide: "content_plan.p6_build.guide";
|
|
109
|
+
readonly content_plan__p6_build__home: "content_plan.p6_build.home";
|
|
110
|
+
readonly content_plan__p6_build__index: "content_plan.p6_build.index";
|
|
111
|
+
readonly content_plan__p6_build__location: "content_plan.p6_build.location";
|
|
112
|
+
readonly content_plan__p6_build__pillar: "content_plan.p6_build.pillar";
|
|
113
|
+
readonly content_plan__p6_build__pricing: "content_plan.p6_build.pricing";
|
|
114
|
+
readonly content_plan__p6_build__service: "content_plan.p6_build.service";
|
|
115
|
+
readonly content_plan__plan_reviewer: "content_plan.plan_reviewer";
|
|
116
|
+
readonly content_plan__research_wave__audience_journey: "content_plan.research_wave.audience_journey";
|
|
117
|
+
readonly content_plan__research_wave__competitor_coverage: "content_plan.research_wave.competitor_coverage";
|
|
118
|
+
readonly content_plan__research_wave__keyword_value: "content_plan.research_wave.keyword_value";
|
|
119
|
+
readonly content_plan__route_picker: "content_plan.route_picker";
|
|
120
|
+
readonly content_plan__shape_planner: "content_plan.shape_planner";
|
|
121
|
+
readonly conversation__action_auditor: "conversation.action_auditor";
|
|
122
|
+
readonly conversation__decision_ledger: "conversation.decision_ledger";
|
|
123
|
+
readonly conversation__drift_auditor: "conversation.drift_auditor";
|
|
124
|
+
readonly conversation__label_agent_run: "conversation.label_agent_run";
|
|
125
|
+
readonly conversation__label_chat: "conversation.label_chat";
|
|
126
|
+
readonly conversation__outcome_summarizer: "conversation.outcome_summarizer";
|
|
127
|
+
readonly conversation__vision_extractor: "conversation.vision_extractor";
|
|
128
|
+
readonly conversation__vision_interviewer: "conversation.vision_interviewer";
|
|
129
|
+
readonly crm__journalist_beat_analyst: "crm.journalist_beat_analyst";
|
|
130
|
+
readonly crm__media_list_ranker: "crm.media_list_ranker";
|
|
131
|
+
readonly crm__outreach_draft_reviewer: "crm.outreach_draft_reviewer";
|
|
132
|
+
readonly crm__outreach_fact_check: "crm.outreach_fact_check";
|
|
133
|
+
readonly crm__outreach_personalization_coach: "crm.outreach_personalization_coach";
|
|
134
|
+
readonly crm__outreach_personalization_writer: "crm.outreach_personalization_writer";
|
|
135
|
+
readonly crm__outreach_pitch_writer: "crm.outreach_pitch_writer";
|
|
136
|
+
readonly crm__outreach_recipient_shortlister: "crm.outreach_recipient_shortlister";
|
|
137
|
+
readonly crm__outreach_reply_drafter: "crm.outreach_reply_drafter";
|
|
138
|
+
readonly crm__outreach_strategy: "crm.outreach_strategy";
|
|
139
|
+
readonly crm__party_kind_judge: "crm.party_kind_judge";
|
|
140
|
+
readonly crm__save_contact: "crm.save_contact";
|
|
141
|
+
readonly data__formula_writing: "data.formula_writing";
|
|
142
|
+
readonly data__page_guidance: "data.page_guidance";
|
|
143
|
+
readonly data__row_action: "data.row_action";
|
|
144
|
+
readonly dictionary__workspace_guide: "dictionary.workspace_guide";
|
|
145
|
+
readonly distillation__timeline_distiller: "distillation.timeline_distiller";
|
|
146
|
+
readonly distillation__timeline_unfolder: "distillation.timeline_unfolder";
|
|
147
|
+
readonly docproc__content_structure: "docproc.content_structure";
|
|
148
|
+
readonly education__admin_guidance: "education.admin_guidance";
|
|
149
|
+
readonly education__analytics_narrate: "education.analytics_narrate";
|
|
150
|
+
readonly education__audio_study_guidance: "education.audio_study_guidance";
|
|
151
|
+
readonly education__card_image_generator: "education.card_image_generator";
|
|
152
|
+
readonly education__card_image_prompt_writer: "education.card_image_prompt_writer";
|
|
153
|
+
readonly education__card_image_qc_judge: "education.card_image_qc_judge";
|
|
154
|
+
readonly education__card_image_web_source: "education.card_image_web_source";
|
|
155
|
+
readonly education__classes_guidance: "education.classes_guidance";
|
|
156
|
+
readonly education__creator_guidance: "education.creator_guidance";
|
|
157
|
+
readonly education__data_guidance: "education.data_guidance";
|
|
158
|
+
readonly education__exam_prep_guidance: "education.exam_prep_guidance";
|
|
159
|
+
readonly education__family_guidance: "education.family_guidance";
|
|
160
|
+
readonly education__fastfire_guidance: "education.fastfire_guidance";
|
|
161
|
+
readonly education__features_guidance: "education.features_guidance";
|
|
162
|
+
readonly education__flashcards_guidance: "education.flashcards_guidance";
|
|
163
|
+
readonly education__game_guidance: "education.game_guidance";
|
|
164
|
+
readonly education__grade_handwritten: "education.grade_handwritten";
|
|
165
|
+
readonly education__grade_work_guidance: "education.grade_work_guidance";
|
|
166
|
+
readonly education__kit_title: "education.kit_title";
|
|
167
|
+
readonly education__learn_guidance: "education.learn_guidance";
|
|
168
|
+
readonly education__levels_guidance: "education.levels_guidance";
|
|
169
|
+
readonly education__library_guidance: "education.library_guidance";
|
|
170
|
+
readonly education__media_guidance: "education.media_guidance";
|
|
171
|
+
readonly education__memory_generate: "education.memory_generate";
|
|
172
|
+
readonly education__memory_guidance: "education.memory_guidance";
|
|
173
|
+
readonly education__memory_hint: "education.memory_hint";
|
|
174
|
+
readonly education__mind_maps_guidance: "education.mind_maps_guidance";
|
|
175
|
+
readonly education__mindmap_generate: "education.mindmap_generate";
|
|
176
|
+
readonly education__notes_generate: "education.notes_generate";
|
|
177
|
+
readonly education__notes_guidance: "education.notes_guidance";
|
|
178
|
+
readonly education__offline_guidance: "education.offline_guidance";
|
|
179
|
+
readonly education__page_guidance: "education.page_guidance";
|
|
180
|
+
readonly education__plan_generate: "education.plan_generate";
|
|
181
|
+
readonly education__planner_guidance: "education.planner_guidance";
|
|
182
|
+
readonly education__practice_oral_guidance: "education.practice_oral_guidance";
|
|
183
|
+
readonly education__practice_tests_guidance: "education.practice_tests_guidance";
|
|
184
|
+
readonly education__progress_guidance: "education.progress_guidance";
|
|
185
|
+
readonly education__quiz_deepen_item: "education.quiz_deepen_item";
|
|
186
|
+
readonly education__quiz_generate: "education.quiz_generate";
|
|
187
|
+
readonly education__quiz_generate_from_source: "education.quiz_generate_from_source";
|
|
188
|
+
readonly education__quizzes_guidance: "education.quizzes_guidance";
|
|
189
|
+
readonly education__spoken_practice_design: "education.spoken_practice_design";
|
|
190
|
+
readonly education__spoken_practice_design_language: "education.spoken_practice_design_language";
|
|
191
|
+
readonly education__spoken_practice_grade: "education.spoken_practice_grade";
|
|
192
|
+
readonly education__spoken_practice_grade_pronunciation: "education.spoken_practice_grade_pronunciation";
|
|
193
|
+
readonly education__spoken_practice_review: "education.spoken_practice_review";
|
|
194
|
+
readonly education__start_guidance: "education.start_guidance";
|
|
195
|
+
readonly education__study_aids_guidance: "education.study_aids_guidance";
|
|
196
|
+
readonly education__study_pack_flashcards: "education.study_pack_flashcards";
|
|
197
|
+
readonly education__study_pack_lessons: "education.study_pack_lessons";
|
|
198
|
+
readonly education__study_pack_notes: "education.study_pack_notes";
|
|
199
|
+
readonly education__study_pack_quiz: "education.study_pack_quiz";
|
|
200
|
+
readonly education__study_pack_v2_flashcards: "education.study_pack_v2_flashcards";
|
|
201
|
+
readonly education__study_pack_v2_lessons: "education.study_pack_v2_lessons";
|
|
202
|
+
readonly education__study_pack_v2_notes: "education.study_pack_v2_notes";
|
|
203
|
+
readonly education__study_pack_v2_quiz: "education.study_pack_v2_quiz";
|
|
204
|
+
readonly education__subjects_guidance: "education.subjects_guidance";
|
|
205
|
+
readonly education__summaries_guidance: "education.summaries_guidance";
|
|
206
|
+
readonly education__summarize: "education.summarize";
|
|
207
|
+
readonly education__tutor_guidance: "education.tutor_guidance";
|
|
208
|
+
readonly education__tutor_message: "education.tutor_message";
|
|
209
|
+
readonly education__voice_tutor: "education.voice_tutor";
|
|
210
|
+
readonly evaluators__comparative_judge: "evaluators.comparative_judge";
|
|
211
|
+
readonly evaluators__rubric_judge: "evaluators.rubric_judge";
|
|
212
|
+
readonly extend__browser_chat: "extend.browser_chat";
|
|
213
|
+
readonly extend__pattern_from_data: "extend.pattern_from_data";
|
|
214
|
+
readonly extend__structured_extractor: "extend.structured_extractor";
|
|
215
|
+
readonly feedback__item_triage_decision: "feedback.item_triage_decision";
|
|
216
|
+
readonly flashcards__enrich_card: "flashcards.enrich_card";
|
|
217
|
+
readonly flashcards__expand_card: "flashcards.expand_card";
|
|
218
|
+
readonly flashcards__fix_giveaway_cards: "flashcards.fix_giveaway_cards";
|
|
219
|
+
readonly flashcards__generate_cards: "flashcards.generate_cards";
|
|
220
|
+
readonly flashcards__generate_from_source: "flashcards.generate_from_source";
|
|
221
|
+
readonly flashcards__grade_spoken: "flashcards.grade_spoken";
|
|
222
|
+
readonly flashcards__grade_typed_answer: "flashcards.grade_typed_answer";
|
|
223
|
+
readonly flashcards__help_live: "flashcards.help_live";
|
|
224
|
+
readonly flashcards__helper_tts: "flashcards.helper_tts";
|
|
225
|
+
readonly flashcards__make_quiz_items: "flashcards.make_quiz_items";
|
|
226
|
+
readonly flashcards__micro_coach: "flashcards.micro_coach";
|
|
227
|
+
readonly flashcards__review_batch: "flashcards.review_batch";
|
|
228
|
+
readonly flashcards__spoken_front_tts: "flashcards.spoken_front_tts";
|
|
229
|
+
readonly flashcards__verify_against_source: "flashcards.verify_against_source";
|
|
230
|
+
readonly foundry__planner: "foundry.planner";
|
|
231
|
+
readonly google__channel_video_plan: "google.channel_video_plan";
|
|
232
|
+
readonly google__desk_work: "google.desk_work";
|
|
233
|
+
readonly google__traffic_change_explanation: "google.traffic_change_explanation";
|
|
234
|
+
readonly growth_loop__quality_analyze: "growth_loop.quality_analyze";
|
|
235
|
+
readonly growth_loop__quality_brief: "growth_loop.quality_brief";
|
|
236
|
+
readonly growth_loop__quality_crawl: "growth_loop.quality_crawl";
|
|
237
|
+
readonly growth_loop__quality_fill: "growth_loop.quality_fill";
|
|
238
|
+
readonly growth_loop__quality_measure: "growth_loop.quality_measure";
|
|
239
|
+
readonly growth_loop__quality_plan: "growth_loop.quality_plan";
|
|
240
|
+
readonly growth_loop__quality_publish: "growth_loop.quality_publish";
|
|
241
|
+
readonly growth_loop__quality_realize: "growth_loop.quality_realize";
|
|
242
|
+
readonly growth_loop__quality_research: "growth_loop.quality_research";
|
|
243
|
+
readonly growth_loop__quality_serve: "growth_loop.quality_serve";
|
|
244
|
+
readonly growth_loop__quality_suggest: "growth_loop.quality_suggest";
|
|
245
|
+
readonly growth_loop__quality_writeback: "growth_loop.quality_writeback";
|
|
246
|
+
readonly growth_loop__supervisor: "growth_loop.supervisor";
|
|
247
|
+
readonly hindsight__crystallizer: "hindsight.crystallizer";
|
|
248
|
+
readonly hindsight__replay_judge: "hindsight.replay_judge";
|
|
249
|
+
readonly hindsight__reviewer: "hindsight.reviewer";
|
|
250
|
+
readonly human_decisions__fallback_decider: "human_decisions.fallback_decider";
|
|
251
|
+
readonly image__generate: "image.generate";
|
|
252
|
+
readonly image_pipeline__concept: "image_pipeline.concept";
|
|
253
|
+
readonly image_pipeline__prompt_write: "image_pipeline.prompt_write";
|
|
254
|
+
readonly image_pipeline__qc_judge: "image_pipeline.qc_judge";
|
|
255
|
+
readonly iteration__architect: "iteration.architect";
|
|
256
|
+
readonly iteration__diagnostic: "iteration.diagnostic";
|
|
257
|
+
readonly iteration__root_cause: "iteration.root_cause";
|
|
258
|
+
readonly iteration__thinking_display: "iteration.thinking_display";
|
|
259
|
+
readonly kg__cluster_namer: "kg.cluster_namer";
|
|
260
|
+
readonly kg__ner_extractor: "kg.ner_extractor";
|
|
261
|
+
readonly knowledge__document_verifier: "knowledge.document_verifier";
|
|
262
|
+
readonly knowledge__qa_generator: "knowledge.qa_generator";
|
|
263
|
+
readonly knowledge__section_summarizer: "knowledge.section_summarizer";
|
|
264
|
+
readonly local__answer_question: "local.answer_question";
|
|
265
|
+
readonly local__chat_persona_brainstorm: "local.chat_persona_brainstorm";
|
|
266
|
+
readonly local__chat_persona_code_review: "local.chat_persona_code_review";
|
|
267
|
+
readonly local__chat_persona_explain_simply: "local.chat_persona_explain_simply";
|
|
268
|
+
readonly local__chat_persona_helpful: "local.chat_persona_helpful";
|
|
269
|
+
readonly local__chat_persona_spoken_replies: "local.chat_persona_spoken_replies";
|
|
270
|
+
readonly local__chat_persona_summarize: "local.chat_persona_summarize";
|
|
271
|
+
readonly local__chat_persona_transcript_polish: "local.chat_persona_transcript_polish";
|
|
272
|
+
readonly local__cloud_chat: "local.cloud_chat";
|
|
273
|
+
readonly local__cloud_chat_reply: "local.cloud_chat_reply";
|
|
274
|
+
readonly local__confidential_chat: "local.confidential_chat";
|
|
275
|
+
readonly local__explain_code: "local.explain_code";
|
|
276
|
+
readonly local__extract_action_items: "local.extract_action_items";
|
|
277
|
+
readonly local__improve_writing: "local.improve_writing";
|
|
278
|
+
readonly local__polish_style_action_items: "local.polish_style_action_items";
|
|
279
|
+
readonly local__polish_style_bullets: "local.polish_style_bullets";
|
|
280
|
+
readonly local__polish_style_custom: "local.polish_style_custom";
|
|
281
|
+
readonly local__polish_style_formal: "local.polish_style_formal";
|
|
282
|
+
readonly local__polish_style_light_cleanup: "local.polish_style_light_cleanup";
|
|
283
|
+
readonly local__polish_style_meeting_notes: "local.polish_style_meeting_notes";
|
|
284
|
+
readonly local__polish_style_standard: "local.polish_style_standard";
|
|
285
|
+
readonly local__polish_transcript: "local.polish_transcript";
|
|
286
|
+
readonly local__raw_completion: "local.raw_completion";
|
|
287
|
+
readonly local__summarize_text: "local.summarize_text";
|
|
288
|
+
readonly local__tool_calling_chat: "local.tool_calling_chat";
|
|
289
|
+
readonly make__describe_template: "make.describe_template";
|
|
290
|
+
readonly mandate_outcome__goal_clause_extraction: "mandate_outcome.goal_clause_extraction";
|
|
291
|
+
readonly mandate_outcome__goal_fitness_decision: "mandate_outcome.goal_fitness_decision";
|
|
292
|
+
readonly mandates__holder_draft: "mandates.holder_draft";
|
|
293
|
+
readonly marketing__endowment_analysis: "marketing.endowment_analysis";
|
|
294
|
+
readonly marketing__endowment_portfolio: "marketing.endowment_portfolio";
|
|
295
|
+
readonly marketing__image_prompt: "marketing.image_prompt";
|
|
296
|
+
readonly marketing__page_image: "marketing.page_image";
|
|
297
|
+
readonly marketing__page_image_all_in_one: "marketing.page_image_all_in_one";
|
|
298
|
+
readonly marketing__video_metadata: "marketing.video_metadata";
|
|
299
|
+
readonly masterwork__approach_selector: "masterwork.approach_selector";
|
|
300
|
+
readonly masterwork__audition_judge: "masterwork.audition_judge";
|
|
301
|
+
readonly masterwork__bad_draft: "masterwork.bad_draft";
|
|
302
|
+
readonly masterwork__bad_example_probe: "masterwork.bad_example_probe";
|
|
303
|
+
readonly masterwork__case_oracle: "masterwork.case_oracle";
|
|
304
|
+
readonly masterwork__checkup_auditor: "masterwork.checkup_auditor";
|
|
305
|
+
readonly masterwork__coherence_partner: "masterwork.coherence_partner";
|
|
306
|
+
readonly masterwork__conductor: "masterwork.conductor";
|
|
307
|
+
readonly masterwork__corpus_cleaner: "masterwork.corpus_cleaner";
|
|
308
|
+
readonly masterwork__corpus_synthesizer: "masterwork.corpus_synthesizer";
|
|
309
|
+
readonly masterwork__counterparty: "masterwork.counterparty";
|
|
310
|
+
readonly masterwork__critique_distiller: "masterwork.critique_distiller";
|
|
311
|
+
readonly masterwork__draft_triage: "masterwork.draft_triage";
|
|
312
|
+
readonly masterwork__drip_distiller: "masterwork.drip_distiller";
|
|
313
|
+
readonly masterwork__drip_question: "masterwork.drip_question";
|
|
314
|
+
readonly masterwork__elicitation_judge: "masterwork.elicitation_judge";
|
|
315
|
+
readonly masterwork__exception_hunter: "masterwork.exception_hunter";
|
|
316
|
+
readonly masterwork__exemplar_distiller: "masterwork.exemplar_distiller";
|
|
317
|
+
readonly masterwork__faithfulness_judge: "masterwork.faithfulness_judge";
|
|
318
|
+
readonly masterwork__intake_designer: "masterwork.intake_designer";
|
|
319
|
+
readonly masterwork__markup_distiller: "masterwork.markup_distiller";
|
|
320
|
+
readonly masterwork__meeting_scavenger: "masterwork.meeting_scavenger";
|
|
321
|
+
readonly masterwork__monologue_distiller: "masterwork.monologue_distiller";
|
|
322
|
+
readonly masterwork__outcome_judge: "masterwork.outcome_judge";
|
|
323
|
+
readonly masterwork__pairwise_judge: "masterwork.pairwise_judge";
|
|
324
|
+
readonly masterwork__prediction_boundary: "masterwork.prediction_boundary";
|
|
325
|
+
readonly masterwork__prediction_distiller: "masterwork.prediction_distiller";
|
|
326
|
+
readonly masterwork__relationship_auditor: "masterwork.relationship_auditor";
|
|
327
|
+
readonly masterwork__rule_improver: "masterwork.rule_improver";
|
|
328
|
+
readonly masterwork__rulebook_auditor: "masterwork.rulebook_auditor";
|
|
329
|
+
readonly masterwork__scout: "masterwork.scout";
|
|
330
|
+
readonly masterwork__sealed_case_oracle: "masterwork.sealed_case_oracle";
|
|
331
|
+
readonly masterwork__sort_case_writer: "masterwork.sort_case_writer";
|
|
332
|
+
readonly masterwork__sort_distiller: "masterwork.sort_distiller";
|
|
333
|
+
readonly masterwork__source_distiller: "masterwork.source_distiller";
|
|
334
|
+
readonly masterwork__teach_back_distiller: "masterwork.teach_back_distiller";
|
|
335
|
+
readonly masterwork__teach_back_explainer: "masterwork.teach_back_explainer";
|
|
336
|
+
readonly masterwork__template__chief_edit: "masterwork.template.chief_edit";
|
|
337
|
+
readonly masterwork__template__chief_generate: "masterwork.template.chief_generate";
|
|
338
|
+
readonly masterwork__template__editor: "masterwork.template.editor";
|
|
339
|
+
readonly masterwork__template__maker: "masterwork.template.maker";
|
|
340
|
+
readonly masterwork__timeline_distiller: "masterwork.timeline_distiller";
|
|
341
|
+
readonly masterwork__timeline_segmenter: "masterwork.timeline_segmenter";
|
|
342
|
+
readonly masterwork__transcript_distiller: "masterwork.transcript_distiller";
|
|
343
|
+
readonly masterwork__transcript_shortlister: "masterwork.transcript_shortlister";
|
|
344
|
+
readonly masterwork__triad_distiller: "masterwork.triad_distiller";
|
|
345
|
+
readonly masterwork__triad_generator: "masterwork.triad_generator";
|
|
346
|
+
readonly masterwork__understudy: "masterwork.understudy";
|
|
347
|
+
readonly masterwork__unfolding_judge: "masterwork.unfolding_judge";
|
|
348
|
+
readonly masterworks__bench__a2_loop: "masterworks.bench.a2_loop";
|
|
349
|
+
readonly masterworks__bench__calibration_decoy: "masterworks.bench.calibration_decoy";
|
|
350
|
+
readonly masterworks__bench__consensus: "masterworks.bench.consensus";
|
|
351
|
+
readonly masterworks__bench__extract: "masterworks.bench.extract";
|
|
352
|
+
readonly masterworks__bench__judge: "masterworks.bench.judge";
|
|
353
|
+
readonly masterworks__bench__panel: "masterworks.bench.panel";
|
|
354
|
+
readonly masterworks__bench__raw_arm: "masterworks.bench.raw_arm";
|
|
355
|
+
readonly masterworks__vanilla_arm__answer_from_facts: "masterworks.vanilla_arm.answer_from_facts";
|
|
356
|
+
readonly masterworks__vanilla_arm__best_work: "masterworks.vanilla_arm.best_work";
|
|
357
|
+
readonly masterworks__vanilla_arm__outcome_case: "masterworks.vanilla_arm.outcome_case";
|
|
358
|
+
readonly masterworks__vanilla_arm__professional_help: "masterworks.vanilla_arm.professional_help";
|
|
359
|
+
readonly media__youtube_analyzer: "media.youtube_analyzer";
|
|
360
|
+
readonly media_catalog__item_vetting_decision: "media_catalog.item_vetting_decision";
|
|
361
|
+
readonly meet__agenda_draft: "meet.agenda_draft";
|
|
362
|
+
readonly meet__live_intelligence: "meet.live_intelligence";
|
|
363
|
+
readonly meet__live_notes: "meet.live_notes";
|
|
364
|
+
readonly meet__pre_meeting_brief: "meet.pre_meeting_brief";
|
|
365
|
+
readonly meet__transcription: "meet.transcription";
|
|
366
|
+
readonly meet__wrap_up: "meet.wrap_up";
|
|
367
|
+
readonly memory__observer: "memory.observer";
|
|
368
|
+
readonly memory__reflector: "memory.reflector";
|
|
369
|
+
readonly mermaid__diagram_editing: "mermaid.diagram_editing";
|
|
370
|
+
readonly messaging__action_item_extraction: "messaging.action_item_extraction";
|
|
371
|
+
readonly messaging__conversation_catch_up: "messaging.conversation_catch_up";
|
|
372
|
+
readonly messaging__conversation_summary: "messaging.conversation_summary";
|
|
373
|
+
readonly messaging__reply_drafting: "messaging.reply_drafting";
|
|
374
|
+
readonly ner__deep_chunk_extractor: "ner.deep_chunk_extractor";
|
|
375
|
+
readonly ner__document_orienter: "ner.document_orienter";
|
|
376
|
+
readonly ner__entity_canonicalizer: "ner.entity_canonicalizer";
|
|
377
|
+
readonly ner__finisher: "ner.finisher";
|
|
378
|
+
readonly ner__item_proposer: "ner.item_proposer";
|
|
379
|
+
readonly ner__magic_moment_detector: "ner.magic_moment_detector";
|
|
380
|
+
readonly ner__scope_proposer: "ner.scope_proposer";
|
|
381
|
+
readonly ner__scope_slot_filler: "ner.scope_slot_filler";
|
|
382
|
+
readonly ner__suggestion_reviewer: "ner.suggestion_reviewer";
|
|
383
|
+
readonly ner__sweep_scope_discoverer: "ner.sweep_scope_discoverer";
|
|
384
|
+
readonly ner__sweep_scope_reference_finder: "ner.sweep_scope_reference_finder";
|
|
385
|
+
readonly ner__sweep_value_miner: "ner.sweep_value_miner";
|
|
386
|
+
readonly news__angles: "news.angles";
|
|
387
|
+
readonly news__coarse_relevance: "news.coarse_relevance";
|
|
388
|
+
readonly news__monitor_setup_proposer: "news.monitor_setup_proposer";
|
|
389
|
+
readonly news__report: "news.report";
|
|
390
|
+
readonly news__story_origin: "news.story_origin";
|
|
391
|
+
readonly news__triage: "news.triage";
|
|
392
|
+
readonly notes__organizer: "notes.organizer";
|
|
393
|
+
readonly notes__page_guidance: "notes.page_guidance";
|
|
394
|
+
readonly observability__tool_trace_pattern_detection: "observability.tool_trace_pattern_detection";
|
|
395
|
+
readonly observability__tool_trace_triage: "observability.tool_trace_triage";
|
|
396
|
+
readonly orchestras__role_describer: "orchestras.role_describer";
|
|
397
|
+
readonly orchestration__tool_failure_standoff_decision: "orchestration.tool_failure_standoff_decision";
|
|
398
|
+
readonly org_chart__seat_job_suggester: "org_chart.seat_job_suggester";
|
|
399
|
+
readonly pdf__chunk_clean_ocr_text: "pdf.chunk_clean_ocr_text";
|
|
400
|
+
readonly pdf__chunk_flashcards_json: "pdf.chunk_flashcards_json";
|
|
401
|
+
readonly pdf__chunk_flashcards_typescript: "pdf.chunk_flashcards_typescript";
|
|
402
|
+
readonly pdf__content_cleaner: "pdf.content_cleaner";
|
|
403
|
+
readonly personal_staff__escalation: "personal_staff.escalation";
|
|
404
|
+
readonly personal_staff__front_line: "personal_staff.front_line";
|
|
405
|
+
readonly podcast__audience_adapter: "podcast.audience_adapter";
|
|
406
|
+
readonly podcast__audio_dialogue: "podcast.audio_dialogue";
|
|
407
|
+
readonly podcast__audio_english: "podcast.audio_english";
|
|
408
|
+
readonly podcast__audio_persian: "podcast.audio_persian";
|
|
409
|
+
readonly podcast__chapter_marker: "podcast.chapter_marker";
|
|
410
|
+
readonly podcast__content_extractor: "podcast.content_extractor";
|
|
411
|
+
readonly podcast__deep_research: "podcast.deep_research";
|
|
412
|
+
readonly podcast__image_v1: "podcast.image_v1";
|
|
413
|
+
readonly podcast__image_v2: "podcast.image_v2";
|
|
414
|
+
readonly podcast__image_v3: "podcast.image_v3";
|
|
415
|
+
readonly podcast__image_v4: "podcast.image_v4";
|
|
416
|
+
readonly podcast__image_v5: "podcast.image_v5";
|
|
417
|
+
readonly podcast__image_v6_feature: "podcast.image_v6_feature";
|
|
418
|
+
readonly podcast__image_v6_feature_prompt: "podcast.image_v6_feature_prompt";
|
|
419
|
+
readonly podcast__live_rewrite: "podcast.live_rewrite";
|
|
420
|
+
readonly podcast__metadata: "podcast.metadata";
|
|
421
|
+
readonly podcast__multihost_script: "podcast.multihost_script";
|
|
422
|
+
readonly podcast__post_prep_expansion: "podcast.post_prep_expansion";
|
|
423
|
+
readonly podcast__post_prep_fact_checking: "podcast.post_prep_fact_checking";
|
|
424
|
+
readonly podcast__post_prep_summarization: "podcast.post_prep_summarization";
|
|
425
|
+
readonly podcast__post_prep_translation: "podcast.post_prep_translation";
|
|
426
|
+
readonly podcast__race_frontier: "podcast.race_frontier";
|
|
427
|
+
readonly podcast__relevance_gate: "podcast.relevance_gate";
|
|
428
|
+
readonly podcast__roundtable_script: "podcast.roundtable_script";
|
|
429
|
+
readonly podcast__script_educational: "podcast.script_educational";
|
|
430
|
+
readonly podcast__script_news: "podcast.script_news";
|
|
431
|
+
readonly podcast__script_persian: "podcast.script_persian";
|
|
432
|
+
readonly podcast__solo_script: "podcast.solo_script";
|
|
433
|
+
readonly podcast__title_optimizer: "podcast.title_optimizer";
|
|
434
|
+
readonly podcast__video_v1: "podcast.video_v1";
|
|
435
|
+
readonly podcast__video_v2: "podcast.video_v2";
|
|
436
|
+
readonly podcast_client__blog_writer: "podcast_client.blog_writer";
|
|
437
|
+
readonly podcast_client__show_notes: "podcast_client.show_notes";
|
|
438
|
+
readonly podcast_client__topic_ideas: "podcast_client.topic_ideas";
|
|
439
|
+
readonly podcast_client__web_content_extractor: "podcast_client.web_content_extractor";
|
|
440
|
+
readonly podcast_client__youtube_research: "podcast_client.youtube_research";
|
|
441
|
+
readonly product_capture__instant_analysis: "product_capture.instant_analysis";
|
|
442
|
+
readonly projects__creation_guide: "projects.creation_guide";
|
|
443
|
+
readonly proof_runs__judge: "proof_runs.judge";
|
|
444
|
+
readonly purpose__writer: "purpose.writer";
|
|
445
|
+
readonly rag__chunk_contextualizer: "rag.chunk_contextualizer";
|
|
446
|
+
readonly rag__grounded_synthesis: "rag.grounded_synthesis";
|
|
447
|
+
readonly rag__grounding_claim_extract: "rag.grounding_claim_extract";
|
|
448
|
+
readonly rag__grounding_judge: "rag.grounding_judge";
|
|
449
|
+
readonly rag__hyde_generator: "rag.hyde_generator";
|
|
450
|
+
readonly rag__image_caption: "rag.image_caption";
|
|
451
|
+
readonly rag__pdf_page_cleaner: "rag.pdf_page_cleaner";
|
|
452
|
+
readonly rag__query_expander: "rag.query_expander";
|
|
453
|
+
readonly rag_kinds__grounded_synthesis: "rag_kinds.grounded_synthesis";
|
|
454
|
+
readonly records__enrichment: "records.enrichment";
|
|
455
|
+
readonly research__auto_tagger: "research.auto_tagger";
|
|
456
|
+
readonly research__condenser_1: "research.condenser_1";
|
|
457
|
+
readonly research__condenser_2: "research.condenser_2";
|
|
458
|
+
readonly research__coverage_audit: "research.coverage_audit";
|
|
459
|
+
readonly research__cross_cutting_tags: "research.cross_cutting_tags";
|
|
460
|
+
readonly research__document_assembly: "research.document_assembly";
|
|
461
|
+
readonly research__keyword_synthesis: "research.keyword_synthesis";
|
|
462
|
+
readonly research__report: "research.report";
|
|
463
|
+
readonly research__report_updater: "research.report_updater";
|
|
464
|
+
readonly research__source_authority: "research.source_authority";
|
|
465
|
+
readonly research__source_triage_decision: "research.source_triage_decision";
|
|
466
|
+
readonly research__structured_page_summary: "research.structured_page_summary";
|
|
467
|
+
readonly research__suggest_setup: "research.suggest_setup";
|
|
468
|
+
readonly research__tag_consolidation: "research.tag_consolidation";
|
|
469
|
+
readonly research__topic_deep_research: "research.topic_deep_research";
|
|
470
|
+
readonly research_client__output_blog: "research_client.output_blog";
|
|
471
|
+
readonly research_client__output_brand_profile: "research_client.output_brand_profile";
|
|
472
|
+
readonly research_client__output_competitive_landscape: "research_client.output_competitive_landscape";
|
|
473
|
+
readonly research_client__output_gap_analysis: "research_client.output_gap_analysis";
|
|
474
|
+
readonly research_client__output_literature_review: "research_client.output_literature_review";
|
|
475
|
+
readonly research_client__output_reputation_business: "research_client.output_reputation_business";
|
|
476
|
+
readonly research_client__output_reputation_personal: "research_client.output_reputation_personal";
|
|
477
|
+
readonly research_client__output_seo: "research_client.output_seo";
|
|
478
|
+
readonly research_client__output_slides: "research_client.output_slides";
|
|
479
|
+
readonly scraper__fact_check: "scraper.fact_check";
|
|
480
|
+
readonly scraper__keyword_analysis: "scraper.keyword_analysis";
|
|
481
|
+
readonly scraper__page_fetch_verdict: "scraper.page_fetch_verdict";
|
|
482
|
+
readonly seo__ai_visibility_blind_question_writer: "seo.ai_visibility_blind_question_writer";
|
|
483
|
+
readonly seo__ai_visibility_buyer_jobs: "seo.ai_visibility_buyer_jobs";
|
|
484
|
+
readonly seo__ai_visibility_decision_analyst: "seo.ai_visibility_decision_analyst";
|
|
485
|
+
readonly seo__ai_visibility_evidence_icp: "seo.ai_visibility_evidence_icp";
|
|
486
|
+
readonly seo__ai_visibility_panel_designer: "seo.ai_visibility_panel_designer";
|
|
487
|
+
readonly seo__ai_visibility_panel_report: "seo.ai_visibility_panel_report";
|
|
488
|
+
readonly seo__ai_visibility_question_architect: "seo.ai_visibility_question_architect";
|
|
489
|
+
readonly seo__ai_visibility_question_qa: "seo.ai_visibility_question_qa";
|
|
490
|
+
readonly seo__ai_visibility_writing_audit: "seo.ai_visibility_writing_audit";
|
|
491
|
+
readonly seo__backlink_analysis: "seo.backlink_analysis";
|
|
492
|
+
readonly seo__backlink_context_assessor: "seo.backlink_context_assessor";
|
|
493
|
+
readonly seo__backlink_work_planner: "seo.backlink_work_planner";
|
|
494
|
+
readonly seo__business_model_verdict: "seo.business_model_verdict";
|
|
495
|
+
readonly seo__competitor_classifier: "seo.competitor_classifier";
|
|
496
|
+
readonly seo__competitor_opportunity_autopsy: "seo.competitor_opportunity_autopsy";
|
|
497
|
+
readonly seo__competitor_page_autopsy: "seo.competitor_page_autopsy";
|
|
498
|
+
readonly seo__coverage_analyst: "seo.coverage_analyst";
|
|
499
|
+
readonly seo__digital_pr_reputation_adjudicator: "seo.digital_pr_reputation_adjudicator";
|
|
500
|
+
readonly seo__evidence_workbench: "seo.evidence_workbench";
|
|
501
|
+
readonly seo__finding_fixer: "seo.finding_fixer";
|
|
502
|
+
readonly seo__guidelines_drafter: "seo.guidelines_drafter";
|
|
503
|
+
readonly seo__ideal_customer_profile: "seo.ideal_customer_profile";
|
|
504
|
+
readonly seo__keyword_classifier: "seo.keyword_classifier";
|
|
505
|
+
readonly seo__keyword_expander: "seo.keyword_expander";
|
|
506
|
+
readonly seo__keyword_researcher: "seo.keyword_researcher";
|
|
507
|
+
readonly seo__keyword_serp_intent_analyst: "seo.keyword_serp_intent_analyst";
|
|
508
|
+
readonly seo__landscape_brief: "seo.landscape_brief";
|
|
509
|
+
readonly seo__map_author: "seo.map_author";
|
|
510
|
+
readonly seo__map_curation: "seo.map_curation";
|
|
511
|
+
readonly seo__money_map: "seo.money_map";
|
|
512
|
+
readonly seo__offering_extraction: "seo.offering_extraction";
|
|
513
|
+
readonly seo__offering_valuation: "seo.offering_valuation";
|
|
514
|
+
readonly seo__page_analyzer: "seo.page_analyzer";
|
|
515
|
+
readonly seo__page_intent_proposer: "seo.page_intent_proposer";
|
|
516
|
+
readonly seo__page_keyword_mapper: "seo.page_keyword_mapper";
|
|
517
|
+
readonly seo__page_mapper: "seo.page_mapper";
|
|
518
|
+
readonly seo__press_calendar_planner: "seo.press_calendar_planner";
|
|
519
|
+
readonly seo__press_clip_reviewer: "seo.press_clip_reviewer";
|
|
520
|
+
readonly seo__press_headlines: "seo.press_headlines";
|
|
521
|
+
readonly seo__press_moment_researcher: "seo.press_moment_researcher";
|
|
522
|
+
readonly seo__press_newsworthiness_check: "seo.press_newsworthiness_check";
|
|
523
|
+
readonly seo__press_source_request_responder: "seo.press_source_request_responder";
|
|
524
|
+
readonly seo__press_story_analyst: "seo.press_story_analyst";
|
|
525
|
+
readonly seo__press_strategist: "seo.press_strategist";
|
|
526
|
+
readonly seo__reputation_crisis_holding: "seo.reputation_crisis_holding";
|
|
527
|
+
readonly seo__session_rule_writer: "seo.session_rule_writer";
|
|
528
|
+
readonly seo__session_stamp_proposer: "seo.session_stamp_proposer";
|
|
529
|
+
readonly seo__site_intake: "seo.site_intake";
|
|
530
|
+
readonly seo__site_link_authority_router: "seo.site_link_authority_router";
|
|
531
|
+
readonly seo__site_strategist: "seo.site_strategist";
|
|
532
|
+
readonly seo__starter_pack_proposer: "seo.starter_pack_proposer";
|
|
533
|
+
readonly seo__strategy__site_brief__generate: "seo.strategy.site_brief.generate";
|
|
534
|
+
readonly seo__topic_assigner: "seo.topic_assigner";
|
|
535
|
+
readonly seo__topic_curation: "seo.topic_curation";
|
|
536
|
+
readonly shapes__write_picker_description: "shapes.write_picker_description";
|
|
537
|
+
readonly sms__owner_beta: "sms.owner_beta";
|
|
538
|
+
readonly spaces__ask_page: "spaces.ask_page";
|
|
539
|
+
readonly spaces__autofill: "spaces.autofill";
|
|
540
|
+
readonly spaces__build: "spaces.build";
|
|
541
|
+
readonly spaces__design_database: "spaces.design_database";
|
|
542
|
+
readonly spaces__move_in: "spaces.move_in";
|
|
543
|
+
readonly spaces__writing_assist: "spaces.writing_assist";
|
|
544
|
+
readonly surfaces_client__binding_mapper: "surfaces_client.binding_mapper";
|
|
545
|
+
readonly tasks__triage: "tasks.triage";
|
|
546
|
+
readonly tool_viz__component_generator: "tool_viz.component_generator";
|
|
547
|
+
readonly tools__summarize_content: "tools.summarize_content";
|
|
548
|
+
readonly transcript_studio__document_edit: "transcript_studio.document_edit";
|
|
549
|
+
readonly transcript_studio__scribe_live: "transcript_studio.scribe_live";
|
|
550
|
+
readonly transcripts__clean_with_context: "transcripts.clean_with_context";
|
|
551
|
+
readonly transcripts__clean_with_context_variable: "transcripts.clean_with_context_variable";
|
|
552
|
+
readonly transcripts__clean_without_context: "transcripts.clean_without_context";
|
|
553
|
+
readonly vision_interview__adversary: "vision_interview.adversary";
|
|
554
|
+
readonly vision_interview__amplifier: "vision_interview.amplifier";
|
|
555
|
+
readonly vision_interview__answer_tracker: "vision_interview.answer_tracker";
|
|
556
|
+
readonly vision_interview__archaeologist: "vision_interview.archaeologist";
|
|
557
|
+
readonly vision_interview__architect: "vision_interview.architect";
|
|
558
|
+
readonly vision_interview__cartographer: "vision_interview.cartographer";
|
|
559
|
+
readonly vision_interview__requirements_author: "vision_interview.requirements_author";
|
|
560
|
+
readonly vision_interview__scribe: "vision_interview.scribe";
|
|
561
|
+
readonly vision_interview__sounding_board: "vision_interview.sounding_board";
|
|
562
|
+
readonly vision_interview__transcript_cleaner: "vision_interview.transcript_cleaner";
|
|
563
|
+
readonly vision_interview__vision_author: "vision_interview.vision_author";
|
|
564
|
+
readonly voice__communicator: "voice.communicator";
|
|
565
|
+
readonly voice__gemini_live: "voice.gemini_live";
|
|
566
|
+
readonly voice__intro: "voice.intro";
|
|
567
|
+
readonly voice__owner_beta: "voice.owner_beta";
|
|
568
|
+
readonly war_room__master: "war_room.master";
|
|
569
|
+
readonly war_room__room: "war_room.room";
|
|
570
|
+
readonly war_room__thread: "war_room.thread";
|
|
571
|
+
readonly web__endpoint_family_judge: "web.endpoint_family_judge";
|
|
572
|
+
readonly workflow__complex_research__keyword_synthesis: "workflow.complex_research.keyword_synthesis";
|
|
573
|
+
readonly workflow__complex_research__page_summary: "workflow.complex_research.page_summary";
|
|
574
|
+
readonly workflow__complex_research__report: "workflow.complex_research.report";
|
|
575
|
+
readonly workflow__conductor: "workflow.conductor";
|
|
576
|
+
readonly workflow__deep_research__keyword_synthesis: "workflow.deep_research.keyword_synthesis";
|
|
577
|
+
readonly workflow__extract_namer: "workflow.extract_namer";
|
|
578
|
+
readonly workflow__plan_design: "workflow.plan_design";
|
|
579
|
+
readonly workflow__plan_input_kind_authoring: "workflow.plan_input_kind_authoring";
|
|
580
|
+
readonly workflow__plan_node_type_recommender: "workflow.plan_node_type_recommender";
|
|
581
|
+
readonly workflow__plan_notes_writer: "workflow.plan_notes_writer";
|
|
582
|
+
readonly workflow__plan_output_kind_authoring: "workflow.plan_output_kind_authoring";
|
|
583
|
+
readonly workflow__recovery_advisor: "workflow.recovery_advisor";
|
|
584
|
+
readonly workflow__run_assist_suggester: "workflow.run_assist_suggester";
|
|
585
|
+
readonly workflow__step_intelligence: "workflow.step_intelligence";
|
|
586
|
+
readonly workflow__steward: "workflow.steward";
|
|
587
|
+
readonly workflow__steward__agent_run: "workflow.steward.agent_run";
|
|
588
|
+
readonly workflow__steward__data: "workflow.steward.data";
|
|
589
|
+
readonly workflow__steward__decision: "workflow.steward.decision";
|
|
590
|
+
readonly workflow__steward__user_input: "workflow.steward.user_input";
|
|
591
|
+
readonly workflow__wizard__agent_run: "workflow.wizard.agent_run";
|
|
592
|
+
};
|
|
593
|
+
/** Every key this package version accepts — active plus retiring. */
|
|
594
|
+
type MandateKey = (typeof MANDATE_KEYS)[keyof typeof MANDATE_KEYS];
|
|
595
|
+
/** The key set as a runtime array, in generated order. */
|
|
596
|
+
declare const ALL_MANDATE_KEYS: readonly MandateKey[];
|
|
597
|
+
/** Keys still in the union but no longer declared (two-phase retire, phase 1). */
|
|
598
|
+
declare const RETIRING_MANDATE_KEYS: {};
|
|
599
|
+
/**
|
|
600
|
+
* Declared FAMILIES — a prefix the feature's own roster owns, and its members.
|
|
601
|
+
* Emitted from `declared_families()` (aidream `services/mandates/carriers.py`).
|
|
602
|
+
*/
|
|
603
|
+
declare const MANDATE_FAMILIES: {
|
|
604
|
+
readonly "ambient.page_guidance_overrides": readonly ["data.page_guidance", "education.admin_guidance", "education.audio_study_guidance", "education.classes_guidance", "education.creator_guidance", "education.data_guidance", "education.exam_prep_guidance", "education.family_guidance", "education.fastfire_guidance", "education.features_guidance", "education.flashcards_guidance", "education.game_guidance", "education.grade_work_guidance", "education.learn_guidance", "education.levels_guidance", "education.library_guidance", "education.media_guidance", "education.memory_guidance", "education.mind_maps_guidance", "education.notes_guidance", "education.offline_guidance", "education.page_guidance", "education.planner_guidance", "education.practice_oral_guidance", "education.practice_tests_guidance", "education.progress_guidance", "education.quizzes_guidance", "education.start_guidance", "education.study_aids_guidance", "education.subjects_guidance", "education.summaries_guidance", "education.tutor_guidance", "notes.page_guidance"];
|
|
605
|
+
readonly "checks.cleanup_bakeoff": readonly ["checks.cleanup_bakeoff.answer", "checks.cleanup_bakeoff.judge"];
|
|
606
|
+
readonly "content_plan.p6_build": readonly ["content_plan.p6_build.about", "content_plan.p6_build.blog", "content_plan.p6_build.comparison", "content_plan.p6_build.contact", "content_plan.p6_build.faq", "content_plan.p6_build.guide", "content_plan.p6_build.home", "content_plan.p6_build.index", "content_plan.p6_build.location", "content_plan.p6_build.pillar", "content_plan.p6_build.pricing", "content_plan.p6_build.service"];
|
|
607
|
+
readonly "content_plan.research_wave": readonly ["content_plan.research_wave.audience_journey", "content_plan.research_wave.competitor_coverage", "content_plan.research_wave.keyword_value"];
|
|
608
|
+
readonly conversation: readonly ["conversation.action_auditor", "conversation.decision_ledger", "conversation.drift_auditor", "conversation.outcome_summarizer", "conversation.vision_extractor", "conversation.vision_interviewer"];
|
|
609
|
+
readonly "masterworks.bench": readonly ["masterworks.bench.a2_loop", "masterworks.bench.calibration_decoy", "masterworks.bench.consensus", "masterworks.bench.extract", "masterworks.bench.judge", "masterworks.bench.panel", "masterworks.bench.raw_arm"];
|
|
610
|
+
readonly "masterworks.vanilla_arm": readonly ["masterworks.vanilla_arm.answer_from_facts", "masterworks.vanilla_arm.best_work", "masterworks.vanilla_arm.outcome_case", "masterworks.vanilla_arm.professional_help"];
|
|
611
|
+
readonly vision_interview: readonly ["vision_interview.adversary", "vision_interview.amplifier", "vision_interview.answer_tracker", "vision_interview.archaeologist", "vision_interview.architect", "vision_interview.cartographer", "vision_interview.requirements_author", "vision_interview.scribe", "vision_interview.sounding_board", "vision_interview.transcript_cleaner", "vision_interview.vision_author"];
|
|
612
|
+
};
|
|
613
|
+
type MandateFamilyPrefix = keyof typeof MANDATE_FAMILIES;
|
|
614
|
+
/** Members of a declared family, typed as real keys. */
|
|
615
|
+
type MandateFamilyMember<P extends MandateFamilyPrefix> = (typeof MANDATE_FAMILIES)[P][number];
|
|
616
|
+
/**
|
|
617
|
+
* THE DYNAMIC FAMILIES — DB-authored (`mandate.definition` origin='user'). No
|
|
618
|
+
* generated union can contain them, so their accessors return a BRANDED
|
|
619
|
+
* `DynamicMandateKey`, deliberately NOT assignable to `MandateKey`: a carrier that
|
|
620
|
+
* demands a declared key still refuses one, and a carrier that accepts either
|
|
621
|
+
* says so in its own signature (`MandateKey | DynamicMandateKey`).
|
|
622
|
+
*/
|
|
623
|
+
declare const dynamicMandateKeyBrand: unique symbol;
|
|
624
|
+
type DynamicMandateKey = string & {
|
|
625
|
+
readonly [dynamicMandateKeyBrand]: true;
|
|
626
|
+
};
|
|
627
|
+
declare const DYNAMIC_MANDATE_FAMILIES: {
|
|
628
|
+
readonly app: {
|
|
629
|
+
readonly prefix: "app";
|
|
630
|
+
readonly note: "One mandate per user-built app (`mandate.definition` origin='user').";
|
|
631
|
+
};
|
|
632
|
+
readonly shortcut: {
|
|
633
|
+
readonly prefix: "shortcut";
|
|
634
|
+
readonly note: "One mandate per user-authored shortcut (origin='user').";
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
type DynamicMandateFamilyPrefix = keyof typeof DYNAMIC_MANDATE_FAMILIES;
|
|
638
|
+
/**
|
|
639
|
+
* The mandate key of a user-built app. DB-authored — never a declared key.
|
|
640
|
+
* `surfaceSlug` names the per-surface row a few apps carry
|
|
641
|
+
* (`app.<app>.<surface>`); omit it for the app's own mandate.
|
|
642
|
+
*/
|
|
643
|
+
declare function mandateKeyOfApp(appSlug: string, surfaceSlug?: string): DynamicMandateKey;
|
|
644
|
+
/**
|
|
645
|
+
* The mandate key of a user-authored shortcut. DB-authored. `surfaceSlug` names
|
|
646
|
+
* the per-surface row (`shortcut.<shortcut>.<surface>`), which is how most live
|
|
647
|
+
* shortcut rows are keyed; omit it for the shortcut's own mandate.
|
|
648
|
+
*/
|
|
649
|
+
declare function mandateKeyOfShortcut(shortcutSlug: string, surfaceSlug?: string): DynamicMandateKey;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
653
|
+
* CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
|
|
654
|
+
*/
|
|
655
|
+
|
|
656
|
+
/** The floor math, in full, with its inputs. */
|
|
657
|
+
type AdmissionVerdict = {
|
|
658
|
+
admitted?: boolean;
|
|
659
|
+
quality_score?: number | null;
|
|
660
|
+
baseline_score?: number;
|
|
661
|
+
improvement?: number | null;
|
|
662
|
+
required_improvement?: number;
|
|
663
|
+
cost_ratio?: number | null;
|
|
664
|
+
max_cost_ratio?: number;
|
|
665
|
+
judged?: number;
|
|
666
|
+
wins?: number;
|
|
667
|
+
ties?: number;
|
|
668
|
+
losses?: number;
|
|
669
|
+
errored?: number;
|
|
670
|
+
skipped_for_budget?: number;
|
|
671
|
+
spend_usd?: number;
|
|
672
|
+
statement?: string;
|
|
673
|
+
outcomes?: HeldOutOutcome[];
|
|
674
|
+
};
|
|
675
|
+
/** AdvanceCounts */
|
|
676
|
+
type AdvanceCounts = {
|
|
677
|
+
total?: number;
|
|
678
|
+
advanced?: number;
|
|
679
|
+
reverted?: number;
|
|
680
|
+
refused?: number;
|
|
681
|
+
excluded?: number;
|
|
682
|
+
};
|
|
683
|
+
/** AdvanceReport */
|
|
684
|
+
type AdvanceReport = {
|
|
685
|
+
batch_id: string;
|
|
686
|
+
batch_label?: string | null;
|
|
687
|
+
action: "advance" | "revert";
|
|
688
|
+
reverts_batch_id?: string | null;
|
|
689
|
+
results?: AdvanceRowResult[];
|
|
690
|
+
counts?: AdvanceCounts;
|
|
691
|
+
computed_at: string;
|
|
692
|
+
};
|
|
693
|
+
/** ``organization_id`` is injected by callApi's scope resolution and grants */
|
|
694
|
+
type AdvanceRequest = {
|
|
695
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
696
|
+
organization_id?: string | null;
|
|
697
|
+
/** Optional associated project selected by the caller. */
|
|
698
|
+
project_id?: string | null;
|
|
699
|
+
/** Optional associated task selected by the caller. */
|
|
700
|
+
task_id?: string | null;
|
|
701
|
+
/** Stable application slug that initiated the request. */
|
|
702
|
+
source_app?: string | null;
|
|
703
|
+
/** Stable feature slug within the source application. */
|
|
704
|
+
source_feature?: string | null;
|
|
705
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
706
|
+
initiation?: ("user" | "auto") | null;
|
|
707
|
+
batch_label?: string | null;
|
|
708
|
+
tokens: ApplyToken[];
|
|
709
|
+
};
|
|
710
|
+
/** AdvanceRowResult */
|
|
711
|
+
type AdvanceRowResult = {
|
|
712
|
+
token: ApplyToken;
|
|
713
|
+
mandate_key?: string | null;
|
|
714
|
+
status: "advanced" | "reverted" | "refused" | "excluded";
|
|
715
|
+
reason?: string | null;
|
|
716
|
+
prior_pinned_version_id?: string | null;
|
|
717
|
+
new_pinned_version_id?: string | null;
|
|
718
|
+
ledger_row_id?: string | null;
|
|
719
|
+
};
|
|
720
|
+
/** Sampling / decode settings on an agent_config. */
|
|
721
|
+
type AgentConfigSettings = {
|
|
722
|
+
temperature?: number | null;
|
|
723
|
+
max_tokens?: number | null;
|
|
724
|
+
top_p?: number | null;
|
|
725
|
+
[key: string]: unknown;
|
|
726
|
+
};
|
|
727
|
+
/** One iteration step. version=1 is the original agent's output, */
|
|
728
|
+
type AgentVersion_Input = {
|
|
729
|
+
version: number;
|
|
730
|
+
agent_config: IterationAgentConfig;
|
|
731
|
+
response: string;
|
|
732
|
+
feedback_received?: string | null;
|
|
733
|
+
diagnosis?: string | null;
|
|
734
|
+
root_cause?: string | null;
|
|
735
|
+
architect_validated?: boolean | null;
|
|
736
|
+
model_id?: string | null;
|
|
737
|
+
};
|
|
738
|
+
/** One iteration step. version=1 is the original agent's output, */
|
|
739
|
+
type AgentVersion_Output = {
|
|
740
|
+
version: number;
|
|
741
|
+
agent_config: IterationAgentConfig;
|
|
742
|
+
response: string;
|
|
743
|
+
feedback_received?: string | null;
|
|
744
|
+
diagnosis?: string | null;
|
|
745
|
+
root_cause?: string | null;
|
|
746
|
+
architect_validated?: boolean | null;
|
|
747
|
+
model_id?: string | null;
|
|
748
|
+
};
|
|
749
|
+
/** Per-judge / per-class agreement — the queryable accuracy record. */
|
|
750
|
+
type AgreementRollup = {
|
|
751
|
+
rows?: AgreementRow[];
|
|
752
|
+
total_invocations?: number;
|
|
753
|
+
total_scored?: number;
|
|
754
|
+
};
|
|
755
|
+
/** AgreementRow */
|
|
756
|
+
type AgreementRow = {
|
|
757
|
+
judge_key: string;
|
|
758
|
+
judge_version: number;
|
|
759
|
+
subject_kind: string;
|
|
760
|
+
mode: string;
|
|
761
|
+
invocations: number;
|
|
762
|
+
scored: number;
|
|
763
|
+
agreed_count: number;
|
|
764
|
+
agreement_rate?: number | null;
|
|
765
|
+
};
|
|
766
|
+
type Answer = NoulAnswer | ChoiceAnswer | ScoreAnswer;
|
|
767
|
+
/** ApplyToken */
|
|
768
|
+
type ApplyToken = {
|
|
769
|
+
holder_kind: "mandate_default" | "binding";
|
|
770
|
+
row_id: string;
|
|
771
|
+
expected_pinned_version_id?: string | null;
|
|
772
|
+
target_version_id?: string | null;
|
|
773
|
+
};
|
|
774
|
+
/** ArchiveOut */
|
|
775
|
+
type ArchiveOut = {
|
|
776
|
+
status: string;
|
|
777
|
+
};
|
|
778
|
+
/** One human answer to ONE of the questions the judge answered. */
|
|
779
|
+
type AuthorityAnswer = {
|
|
780
|
+
/** The question name, exactly as the judge answered it. */
|
|
781
|
+
question: string;
|
|
782
|
+
/** The human's answer, in the judge's own vocabulary. */
|
|
783
|
+
answer: string;
|
|
784
|
+
note?: string;
|
|
785
|
+
/** Who is answering. Recorded on the label so a calibration can name its raters. */
|
|
786
|
+
actor_id?: string | null;
|
|
787
|
+
};
|
|
788
|
+
/** BenchCalibration */
|
|
789
|
+
type BenchCalibration = {
|
|
790
|
+
judge_key?: string;
|
|
791
|
+
judge_version?: number;
|
|
792
|
+
mandate_key?: string | null;
|
|
793
|
+
labeled_rows?: number;
|
|
794
|
+
questions?: QuestionCalibration[];
|
|
795
|
+
note?: string;
|
|
796
|
+
};
|
|
797
|
+
/** Offer-aware reporting for ONE binding of a provision-carrying mandate. */
|
|
798
|
+
type BindingOfferConsumption = {
|
|
799
|
+
binding_id: string;
|
|
800
|
+
principal_type: string;
|
|
801
|
+
holder_type?: string;
|
|
802
|
+
consumed?: string[];
|
|
803
|
+
available?: string[];
|
|
804
|
+
unoffered?: string[];
|
|
805
|
+
};
|
|
806
|
+
/** BindingResult */
|
|
807
|
+
type BindingResult = {
|
|
808
|
+
id: string;
|
|
809
|
+
mandate_key: string;
|
|
810
|
+
principal_type: "user" | "org";
|
|
811
|
+
subject_user_id?: string | null;
|
|
812
|
+
organization_id: string;
|
|
813
|
+
holder_type?: "agent" | "workflow";
|
|
814
|
+
agent_id?: string | null;
|
|
815
|
+
agent_version_id?: string | null;
|
|
816
|
+
holder_id?: string | null;
|
|
817
|
+
holder_version_id?: string | null;
|
|
818
|
+
use_latest: boolean;
|
|
819
|
+
config_overrides?: {
|
|
820
|
+
[key: string]: JsonValue;
|
|
821
|
+
} | null;
|
|
822
|
+
consumption_map?: {
|
|
823
|
+
[key: string]: JsonValue;
|
|
824
|
+
} | null;
|
|
825
|
+
auto_run?: boolean | null;
|
|
826
|
+
is_enabled: boolean;
|
|
827
|
+
created: boolean;
|
|
828
|
+
applies_in?: string;
|
|
829
|
+
notes?: string[];
|
|
830
|
+
contract_check?: ContractCheck | null;
|
|
831
|
+
};
|
|
832
|
+
/** BoardConversionRow */
|
|
833
|
+
type BoardConversionRow = {
|
|
834
|
+
mandate_key: string;
|
|
835
|
+
repo_slug: string | null;
|
|
836
|
+
location: string;
|
|
837
|
+
symbol: string | null;
|
|
838
|
+
revision: string;
|
|
839
|
+
revision_kind: string;
|
|
840
|
+
};
|
|
841
|
+
/** A flagged reference row — a real location, the revision it was measured */
|
|
842
|
+
type BoardFinding = {
|
|
843
|
+
mandate_key: string;
|
|
844
|
+
reference_type: string;
|
|
845
|
+
repo_slug: string | null;
|
|
846
|
+
location: string;
|
|
847
|
+
flag: string;
|
|
848
|
+
presence: string;
|
|
849
|
+
status: "open" | "awaiting_release" | "by_design";
|
|
850
|
+
revision: string;
|
|
851
|
+
revision_kind: string;
|
|
852
|
+
sentence: string | null;
|
|
853
|
+
remedy: string | null;
|
|
854
|
+
};
|
|
855
|
+
/** BoardRepo */
|
|
856
|
+
type BoardRepo = {
|
|
857
|
+
repo_slug: string;
|
|
858
|
+
github_full_name: string | null;
|
|
859
|
+
scan_state: "verified" | "unverified";
|
|
860
|
+
last_complete_candidate: BoardScanSummary | null;
|
|
861
|
+
last_complete_deployed: BoardScanSummary | null;
|
|
862
|
+
finding_counts: {
|
|
863
|
+
[key: string]: number;
|
|
864
|
+
};
|
|
865
|
+
reference_count: number;
|
|
866
|
+
open_finding_count: number;
|
|
867
|
+
conversion_count: number;
|
|
868
|
+
open_findings: BoardFinding[];
|
|
869
|
+
awaiting_release_count?: number;
|
|
870
|
+
awaiting_release?: BoardFinding[];
|
|
871
|
+
by_design_count?: number;
|
|
872
|
+
by_design?: BoardFinding[];
|
|
873
|
+
};
|
|
874
|
+
/** BoardScanSummary */
|
|
875
|
+
type BoardScanSummary = {
|
|
876
|
+
revision: string;
|
|
877
|
+
revision_kind: string;
|
|
878
|
+
scanner_version: string | null;
|
|
879
|
+
package_path: string | null;
|
|
880
|
+
verification_status: string;
|
|
881
|
+
scanned_at: string | null;
|
|
882
|
+
finding_counts: {
|
|
883
|
+
[key: string]: number;
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
/** BoundAgentTruth */
|
|
887
|
+
type BoundAgentTruth = {
|
|
888
|
+
id: string;
|
|
889
|
+
name: string;
|
|
890
|
+
declared_variables: string[];
|
|
891
|
+
output_schema?: {
|
|
892
|
+
[key: string]: JsonValue;
|
|
893
|
+
} | null;
|
|
894
|
+
pinned_version_id?: string | null;
|
|
895
|
+
pinned_version_declared_variables?: string[] | null;
|
|
896
|
+
pinned_version_output_schema?: {
|
|
897
|
+
[key: string]: JsonValue;
|
|
898
|
+
} | null;
|
|
899
|
+
};
|
|
900
|
+
/** What the ledger says about one judge (optionally one subject class). */
|
|
901
|
+
type Calibration = {
|
|
902
|
+
judge_key: string;
|
|
903
|
+
judge_version?: number | null;
|
|
904
|
+
subject_kind?: string | null;
|
|
905
|
+
cases?: number;
|
|
906
|
+
raw_agreement?: number | null;
|
|
907
|
+
cohens_kappa?: number | null;
|
|
908
|
+
band?: "insufficient_data" | "not_usable" | "usable" | "production";
|
|
909
|
+
confusion?: {
|
|
910
|
+
[key: string]: {
|
|
911
|
+
[key: string]: number;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
note?: string;
|
|
915
|
+
};
|
|
916
|
+
/** CaseOutcome */
|
|
917
|
+
type CaseOutcome = {
|
|
918
|
+
case_id: string;
|
|
919
|
+
title?: string;
|
|
920
|
+
result?: string;
|
|
921
|
+
reason?: string;
|
|
922
|
+
verdict?: string | null;
|
|
923
|
+
consecutive_failures?: number;
|
|
924
|
+
replay_group_id?: string | null;
|
|
925
|
+
cost_usd?: number;
|
|
926
|
+
};
|
|
927
|
+
/** A page of change history, plus the counts the panel headlines. */
|
|
928
|
+
type ChangeHistoryOut = {
|
|
929
|
+
rows?: ChangeHistoryRow[];
|
|
930
|
+
limit: number;
|
|
931
|
+
offset: number;
|
|
932
|
+
has_more?: boolean;
|
|
933
|
+
};
|
|
934
|
+
/** One applied change to one governed unit — Internal Affairs' window. */
|
|
935
|
+
type ChangeHistoryRow = {
|
|
936
|
+
change_id: string;
|
|
937
|
+
unit_token: "agent" | "tool" | "workflow";
|
|
938
|
+
unit_id: string;
|
|
939
|
+
unit_name?: string | null;
|
|
940
|
+
version_to: number;
|
|
941
|
+
version_from?: number | null;
|
|
942
|
+
version_from_confidence?: ("recorded" | "inferred") | null;
|
|
943
|
+
restored_version?: number | null;
|
|
944
|
+
change_role: "apply" | "revert" | "edit";
|
|
945
|
+
actor_tier?: ("system" | "agent" | "user") | null;
|
|
946
|
+
actor_system?: string | null;
|
|
947
|
+
actor_id?: string | null;
|
|
948
|
+
finding_id?: string | null;
|
|
949
|
+
finding_lever?: ("instructions" | "resources" | "tools" | "architecture" | "stopping_condition") | null;
|
|
950
|
+
finding_title?: string | null;
|
|
951
|
+
finding_status?: string | null;
|
|
952
|
+
finding_confidence?: number | null;
|
|
953
|
+
review_id?: string | null;
|
|
954
|
+
enrollment_id?: string | null;
|
|
955
|
+
change_note?: string | null;
|
|
956
|
+
organization_id?: string | null;
|
|
957
|
+
changed_at?: string | null;
|
|
958
|
+
};
|
|
959
|
+
/** ChoiceAnswer */
|
|
960
|
+
type ChoiceAnswer = {
|
|
961
|
+
type?: "choice";
|
|
962
|
+
choice: string;
|
|
963
|
+
probabilities: {
|
|
964
|
+
[key: string]: number;
|
|
965
|
+
};
|
|
966
|
+
confidence: number;
|
|
967
|
+
};
|
|
968
|
+
/** ChoiceQuestion */
|
|
969
|
+
type ChoiceQuestion = {
|
|
970
|
+
type?: "choice";
|
|
971
|
+
instructions: SystemOneEntry;
|
|
972
|
+
criteria: {
|
|
973
|
+
[key: string]: SystemOneEntry;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
/** WHERE a mandate's runner is invoked. Locations only. */
|
|
977
|
+
type CodeTruthCallSite = {
|
|
978
|
+
source_file: string;
|
|
979
|
+
line: number;
|
|
980
|
+
};
|
|
981
|
+
/** CodeTruthField */
|
|
982
|
+
type CodeTruthField = {
|
|
983
|
+
name: string;
|
|
984
|
+
mapped_name: string;
|
|
985
|
+
type: string;
|
|
986
|
+
required: boolean;
|
|
987
|
+
default_value?: JsonValue | null;
|
|
988
|
+
};
|
|
989
|
+
/** CodeTruthModel */
|
|
990
|
+
type CodeTruthModel = {
|
|
991
|
+
name: string;
|
|
992
|
+
schema: {
|
|
993
|
+
[key: string]: JsonValue;
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
/** CodeTruthSource */
|
|
997
|
+
type CodeTruthSource = {
|
|
998
|
+
class_name: string;
|
|
999
|
+
module: string;
|
|
1000
|
+
source_file: string;
|
|
1001
|
+
line: number;
|
|
1002
|
+
};
|
|
1003
|
+
/** LEGACY spelling of :class:`OfferedValueMapping`. */
|
|
1004
|
+
type CodeValueMapping = {
|
|
1005
|
+
mapType?: "code_value";
|
|
1006
|
+
target: string;
|
|
1007
|
+
required?: boolean;
|
|
1008
|
+
};
|
|
1009
|
+
/** Mode A — explicit (non-streaming) commit of the side-by-side */
|
|
1010
|
+
type CommitChoiceRequest = {
|
|
1011
|
+
session: IterationSession_Input;
|
|
1012
|
+
choice: "A" | "B";
|
|
1013
|
+
};
|
|
1014
|
+
/** THE PERSISTED MISMATCH — what a Holder fails of its mandate's contract. */
|
|
1015
|
+
type ContractCheck = {
|
|
1016
|
+
state: "met" | "unmet";
|
|
1017
|
+
problems?: string[];
|
|
1018
|
+
expected_output_kind?: string | null;
|
|
1019
|
+
required_output_keys?: string[];
|
|
1020
|
+
holder_type?: "agent" | "workflow";
|
|
1021
|
+
holder_name?: string;
|
|
1022
|
+
holder_output_kind?: string | null;
|
|
1023
|
+
holder_output_keys?: string[];
|
|
1024
|
+
set_aside_at_run?: boolean;
|
|
1025
|
+
summary?: string;
|
|
1026
|
+
checked_at?: string;
|
|
1027
|
+
};
|
|
1028
|
+
/** A pass that produced no proposal, and exactly why. */
|
|
1029
|
+
type CrystallizationRefusal = {
|
|
1030
|
+
reason: "no_trajectories" | "insufficient_argument_coverage" | "trajectories_too_short" | "too_few_trajectories" | "too_few_conversations" | "not_diverse" | "ambiguous_boundary" | "incoherent_cluster" | "insufficient_holdout" | "reviewer_declined" | "reviewer_unavailable" | "plan_rejected_by_gate";
|
|
1031
|
+
detail: string;
|
|
1032
|
+
measured?: {
|
|
1033
|
+
[key: string]: JsonValue;
|
|
1034
|
+
};
|
|
1035
|
+
ambiguous?: {
|
|
1036
|
+
[key: string]: JsonValue;
|
|
1037
|
+
}[];
|
|
1038
|
+
};
|
|
1039
|
+
/** The outcome of one crystallization pass over one orchestra. */
|
|
1040
|
+
type CrystallizationResult = {
|
|
1041
|
+
status?: "proposed" | "refused" | "not_admitted" | "error";
|
|
1042
|
+
subject_id?: string;
|
|
1043
|
+
subject_label?: string;
|
|
1044
|
+
enrollment_id?: string | null;
|
|
1045
|
+
review_id?: string | null;
|
|
1046
|
+
finding_id?: string | null;
|
|
1047
|
+
assist_id?: string | null;
|
|
1048
|
+
definition_id?: string | null;
|
|
1049
|
+
turns_scanned?: number;
|
|
1050
|
+
turns_usable?: number;
|
|
1051
|
+
scan_truncated?: string[];
|
|
1052
|
+
cluster?: TrajectoryCluster | null;
|
|
1053
|
+
refusal?: CrystallizationRefusal | null;
|
|
1054
|
+
plan?: {
|
|
1055
|
+
[key: string]: JsonValue;
|
|
1056
|
+
} | null;
|
|
1057
|
+
verdict?: AdmissionVerdict | null;
|
|
1058
|
+
reviewer_cost_usd?: number;
|
|
1059
|
+
error?: string | null;
|
|
1060
|
+
};
|
|
1061
|
+
/** Run one crystallization pass over one Orchestra. */
|
|
1062
|
+
type CrystallizationRunIn = {
|
|
1063
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1064
|
+
organization_id?: string | null;
|
|
1065
|
+
/** Optional associated project selected by the caller. */
|
|
1066
|
+
project_id?: string | null;
|
|
1067
|
+
/** Optional associated task selected by the caller. */
|
|
1068
|
+
task_id?: string | null;
|
|
1069
|
+
/** Stable application slug that initiated the request. */
|
|
1070
|
+
source_app?: string | null;
|
|
1071
|
+
/** Stable feature slug within the source application. */
|
|
1072
|
+
source_feature?: string | null;
|
|
1073
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1074
|
+
initiation?: ("user" | "auto") | null;
|
|
1075
|
+
conductor_agent_id: string;
|
|
1076
|
+
execute?: boolean;
|
|
1077
|
+
};
|
|
1078
|
+
/** One Orchestra and how much recorded history it has. */
|
|
1079
|
+
type CrystallizationSubjectOut = {
|
|
1080
|
+
agent_id: string;
|
|
1081
|
+
name: string;
|
|
1082
|
+
mode?: string | null;
|
|
1083
|
+
conversations?: number;
|
|
1084
|
+
};
|
|
1085
|
+
/** Outcome of one free detection pass. */
|
|
1086
|
+
type CrystallizationSweepResult = {
|
|
1087
|
+
status?: string;
|
|
1088
|
+
addressee_user_id?: string | null;
|
|
1089
|
+
subjects_examined?: number;
|
|
1090
|
+
subjects_skipped_no_history?: number;
|
|
1091
|
+
candidates?: number;
|
|
1092
|
+
assists_created?: number;
|
|
1093
|
+
refusals?: {
|
|
1094
|
+
[key: string]: string;
|
|
1095
|
+
};
|
|
1096
|
+
errors?: string[];
|
|
1097
|
+
};
|
|
1098
|
+
/** DecisionCalibrationReport */
|
|
1099
|
+
type DecisionCalibrationReport = {
|
|
1100
|
+
agent_id: string;
|
|
1101
|
+
min_labels: number;
|
|
1102
|
+
target_precision: number;
|
|
1103
|
+
bins?: number;
|
|
1104
|
+
groups?: GroupCalibration[];
|
|
1105
|
+
};
|
|
1106
|
+
/** DecisionResultPayload */
|
|
1107
|
+
type DecisionResultPayload = {
|
|
1108
|
+
type?: "decision_result";
|
|
1109
|
+
execution_id: string;
|
|
1110
|
+
request_id: string;
|
|
1111
|
+
provider_request_id?: string | null;
|
|
1112
|
+
model: string;
|
|
1113
|
+
answers: {
|
|
1114
|
+
[key: string]: Answer;
|
|
1115
|
+
};
|
|
1116
|
+
usage: DecisionUsage_Output;
|
|
1117
|
+
cost_usd: number;
|
|
1118
|
+
offering_id: string;
|
|
1119
|
+
route: string;
|
|
1120
|
+
};
|
|
1121
|
+
/** HTTP/service input; native runner validates the provider discriminated body. */
|
|
1122
|
+
type DecisionRunRequest = {
|
|
1123
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1124
|
+
organization_id?: string | null;
|
|
1125
|
+
/** Optional associated project selected by the caller. */
|
|
1126
|
+
project_id?: string | null;
|
|
1127
|
+
/** Optional associated task selected by the caller. */
|
|
1128
|
+
task_id?: string | null;
|
|
1129
|
+
/** Stable application slug that initiated the request. */
|
|
1130
|
+
source_app?: string | null;
|
|
1131
|
+
/** Stable feature slug within the source application. */
|
|
1132
|
+
source_feature?: string | null;
|
|
1133
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1134
|
+
initiation?: ("user" | "auto") | null;
|
|
1135
|
+
model: string;
|
|
1136
|
+
offering_id?: string | null;
|
|
1137
|
+
state: SystemOneState;
|
|
1138
|
+
questions: {
|
|
1139
|
+
[key: string]: Question;
|
|
1140
|
+
};
|
|
1141
|
+
};
|
|
1142
|
+
/** DecisionUsage */
|
|
1143
|
+
type DecisionUsage_Output = {
|
|
1144
|
+
input_tokens: number;
|
|
1145
|
+
output_tokens: number;
|
|
1146
|
+
};
|
|
1147
|
+
/** What this viewer may do to the mandate's definition. The UI reads this */
|
|
1148
|
+
type DefinitionRights = {
|
|
1149
|
+
mandate_key: string;
|
|
1150
|
+
can_edit: boolean;
|
|
1151
|
+
can_remove: boolean;
|
|
1152
|
+
reason?: string | null;
|
|
1153
|
+
};
|
|
1154
|
+
/** A fixed literal, written on the binding itself. */
|
|
1155
|
+
type DirectValueMapping = {
|
|
1156
|
+
mapType?: "direct_value";
|
|
1157
|
+
target: JsonValue;
|
|
1158
|
+
deliver?: "variable" | "context";
|
|
1159
|
+
};
|
|
1160
|
+
/** Result of sending human guidance into the reviewer's thread. */
|
|
1161
|
+
type DiscussOut = {
|
|
1162
|
+
review_id: string;
|
|
1163
|
+
reviewer_conversation_id?: string | null;
|
|
1164
|
+
reply?: string;
|
|
1165
|
+
findings_created?: number;
|
|
1166
|
+
finding_ids?: string[];
|
|
1167
|
+
cost_usd?: number;
|
|
1168
|
+
status?: string;
|
|
1169
|
+
reason?: string | null;
|
|
1170
|
+
};
|
|
1171
|
+
/** DiscussRequest */
|
|
1172
|
+
type DiscussRequest = {
|
|
1173
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1174
|
+
organization_id?: string | null;
|
|
1175
|
+
/** Optional associated project selected by the caller. */
|
|
1176
|
+
project_id?: string | null;
|
|
1177
|
+
/** Optional associated task selected by the caller. */
|
|
1178
|
+
task_id?: string | null;
|
|
1179
|
+
/** Stable application slug that initiated the request. */
|
|
1180
|
+
source_app?: string | null;
|
|
1181
|
+
/** Stable feature slug within the source application. */
|
|
1182
|
+
source_feature?: string | null;
|
|
1183
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1184
|
+
initiation?: ("user" | "auto") | null;
|
|
1185
|
+
message: string;
|
|
1186
|
+
};
|
|
1187
|
+
/** One descriptive input — description is the only required field. */
|
|
1188
|
+
type DraftInputItem = {
|
|
1189
|
+
name?: string | null;
|
|
1190
|
+
description: string;
|
|
1191
|
+
kind?: string | null;
|
|
1192
|
+
required?: boolean | null;
|
|
1193
|
+
};
|
|
1194
|
+
/** DrainResult */
|
|
1195
|
+
type DrainResult = {
|
|
1196
|
+
enrollments_seen?: number;
|
|
1197
|
+
enrollments_reviewed?: number;
|
|
1198
|
+
findings_created?: number;
|
|
1199
|
+
assists_created?: number;
|
|
1200
|
+
replays_reaped?: number;
|
|
1201
|
+
reviews_reaped?: number;
|
|
1202
|
+
skipped?: {
|
|
1203
|
+
[key: string]: number;
|
|
1204
|
+
};
|
|
1205
|
+
errors?: string[];
|
|
1206
|
+
};
|
|
1207
|
+
/** One rung that named a Holder and was not used, with the reason. */
|
|
1208
|
+
type DroppedRungResponse = {
|
|
1209
|
+
rung: "system" | "org" | "user";
|
|
1210
|
+
binding_id?: string | null;
|
|
1211
|
+
organization_id?: string | null;
|
|
1212
|
+
holder_id?: string | null;
|
|
1213
|
+
reason: string;
|
|
1214
|
+
};
|
|
1215
|
+
/** EnrollmentCostRow */
|
|
1216
|
+
type EnrollmentCostRow = {
|
|
1217
|
+
enrollment_id: string;
|
|
1218
|
+
display_name: string;
|
|
1219
|
+
review_cost?: number;
|
|
1220
|
+
replay_cost?: number;
|
|
1221
|
+
total_cost?: number;
|
|
1222
|
+
};
|
|
1223
|
+
/** EnrollmentDetailOut */
|
|
1224
|
+
type EnrollmentDetailOut = {
|
|
1225
|
+
enrollment: EnrollmentOut;
|
|
1226
|
+
pending_examples?: number;
|
|
1227
|
+
spend: EnrollmentSpend;
|
|
1228
|
+
reviews?: ReviewOut[];
|
|
1229
|
+
findings?: FindingOut[];
|
|
1230
|
+
};
|
|
1231
|
+
/** One enrolled subject — the thing Hindsight watches. */
|
|
1232
|
+
type EnrollmentOut = {
|
|
1233
|
+
id: string;
|
|
1234
|
+
subject_kind: "agent" | "workflow" | "tool" | "environment" | "orchestra" | "workflow_node";
|
|
1235
|
+
subject_id?: string | null;
|
|
1236
|
+
subject_ref?: string | null;
|
|
1237
|
+
subject_selector?: {
|
|
1238
|
+
[key: string]: string;
|
|
1239
|
+
};
|
|
1240
|
+
display_name: string;
|
|
1241
|
+
review_every_n: number;
|
|
1242
|
+
max_examples_per_review: number;
|
|
1243
|
+
goal?: string | null;
|
|
1244
|
+
window_mode?: "since_watermark" | "last_n_runs";
|
|
1245
|
+
window_n?: number | null;
|
|
1246
|
+
lens_visibility?: "with_context" | "unit_only";
|
|
1247
|
+
status: string;
|
|
1248
|
+
example_watermark_at?: string | null;
|
|
1249
|
+
last_review_at?: string | null;
|
|
1250
|
+
next_eligible_at?: string | null;
|
|
1251
|
+
created_at?: string | null;
|
|
1252
|
+
};
|
|
1253
|
+
/** What Hindsight SPENT on one enrollment. Excludes original-run cost. */
|
|
1254
|
+
type EnrollmentSpend = {
|
|
1255
|
+
review_cost?: number;
|
|
1256
|
+
replay_cost?: number;
|
|
1257
|
+
total_cost?: number;
|
|
1258
|
+
review_count?: number;
|
|
1259
|
+
replay_count?: number;
|
|
1260
|
+
replay_failed_count?: number;
|
|
1261
|
+
};
|
|
1262
|
+
/** EnrollmentUpdateRequest */
|
|
1263
|
+
type EnrollmentUpdateRequest = {
|
|
1264
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1265
|
+
organization_id?: string | null;
|
|
1266
|
+
/** Optional associated project selected by the caller. */
|
|
1267
|
+
project_id?: string | null;
|
|
1268
|
+
/** Optional associated task selected by the caller. */
|
|
1269
|
+
task_id?: string | null;
|
|
1270
|
+
/** Stable application slug that initiated the request. */
|
|
1271
|
+
source_app?: string | null;
|
|
1272
|
+
/** Stable feature slug within the source application. */
|
|
1273
|
+
source_feature?: string | null;
|
|
1274
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1275
|
+
initiation?: ("user" | "auto") | null;
|
|
1276
|
+
window_mode?: ("since_watermark" | "last_n_runs") | null;
|
|
1277
|
+
window_n?: number | null;
|
|
1278
|
+
lens_visibility?: ("with_context" | "unit_only") | null;
|
|
1279
|
+
status?: ("active" | "paused" | "archived") | null;
|
|
1280
|
+
review_every_n?: number | null;
|
|
1281
|
+
max_examples_per_review?: number | null;
|
|
1282
|
+
goal?: string | null;
|
|
1283
|
+
lens_config?: {
|
|
1284
|
+
[key: string]: unknown;
|
|
1285
|
+
} | null;
|
|
1286
|
+
display_name?: string | null;
|
|
1287
|
+
};
|
|
1288
|
+
/** The answer to "does this arm satisfy the case's claim?" */
|
|
1289
|
+
type ExpectationVerdict = {
|
|
1290
|
+
result: "pass" | "fail" | "error";
|
|
1291
|
+
reason: string;
|
|
1292
|
+
kind?: string;
|
|
1293
|
+
samples_satisfying?: number;
|
|
1294
|
+
sample_count?: number;
|
|
1295
|
+
verdict?: string | null;
|
|
1296
|
+
};
|
|
1297
|
+
/** Turn N>=2 — the user's feedback message + replayed session. */
|
|
1298
|
+
type FeedbackIterationRequest = {
|
|
1299
|
+
session: IterationSession_Input;
|
|
1300
|
+
user_feedback: string;
|
|
1301
|
+
show_thinking?: boolean;
|
|
1302
|
+
apply_choice?: ("A" | "B") | null;
|
|
1303
|
+
};
|
|
1304
|
+
/** Receipt for an apply / reject click. */
|
|
1305
|
+
type FindingDecisionOut = {
|
|
1306
|
+
finding_id: string;
|
|
1307
|
+
status: string;
|
|
1308
|
+
applied_version_number?: number | null;
|
|
1309
|
+
repo_diff?: RepoDiffReceiptOut | null;
|
|
1310
|
+
};
|
|
1311
|
+
/** Per lever per governed unit: is Hindsight's advice on this unit good? */
|
|
1312
|
+
type FindingEffectivenessRow = {
|
|
1313
|
+
id: string;
|
|
1314
|
+
unit_token: "agent" | "tool" | "workflow";
|
|
1315
|
+
unit_id?: string | null;
|
|
1316
|
+
unit_display_name?: string | null;
|
|
1317
|
+
lever: "instructions" | "resources" | "tools" | "architecture" | "stopping_condition";
|
|
1318
|
+
organization_id?: string | null;
|
|
1319
|
+
findings_total?: number;
|
|
1320
|
+
proposed_count?: number;
|
|
1321
|
+
evidencing_count?: number;
|
|
1322
|
+
ready_count?: number;
|
|
1323
|
+
approved_count?: number;
|
|
1324
|
+
applied_count?: number;
|
|
1325
|
+
rejected_count?: number;
|
|
1326
|
+
reverted_count?: number;
|
|
1327
|
+
superseded_count?: number;
|
|
1328
|
+
undecided_count?: number;
|
|
1329
|
+
machine_applicable_count?: number;
|
|
1330
|
+
accept_rate?: number | null;
|
|
1331
|
+
revert_rate?: number | null;
|
|
1332
|
+
avg_confidence?: number | null;
|
|
1333
|
+
time_to_decision_seconds_avg?: number | null;
|
|
1334
|
+
time_to_decision_seconds_p50?: number | null;
|
|
1335
|
+
time_to_revert_seconds_avg?: number | null;
|
|
1336
|
+
cost_delta_usd_avg?: number | null;
|
|
1337
|
+
cost_signal_findings?: number;
|
|
1338
|
+
pre_apply_request_count?: number | null;
|
|
1339
|
+
post_apply_request_count?: number | null;
|
|
1340
|
+
first_finding_at?: string | null;
|
|
1341
|
+
last_finding_at?: string | null;
|
|
1342
|
+
last_decision_at?: string | null;
|
|
1343
|
+
};
|
|
1344
|
+
/** One proposed improvement on one of the four levers. */
|
|
1345
|
+
type FindingOut = {
|
|
1346
|
+
id: string;
|
|
1347
|
+
review_id: string;
|
|
1348
|
+
enrollment_id: string;
|
|
1349
|
+
lever: "instructions" | "resources" | "tools" | "architecture" | "stopping_condition";
|
|
1350
|
+
title: string;
|
|
1351
|
+
reasoning?: string | null;
|
|
1352
|
+
evidence?: (string | {
|
|
1353
|
+
[key: string]: JsonValue;
|
|
1354
|
+
})[];
|
|
1355
|
+
snapshot_ids?: string[];
|
|
1356
|
+
proposal?: FindingProposalOut;
|
|
1357
|
+
machine_applicable?: boolean;
|
|
1358
|
+
confidence?: number | null;
|
|
1359
|
+
status: string;
|
|
1360
|
+
applied_at?: string | null;
|
|
1361
|
+
applied_version_number?: number | null;
|
|
1362
|
+
pre_apply_version?: number | null;
|
|
1363
|
+
created_at?: string | null;
|
|
1364
|
+
};
|
|
1365
|
+
/** The reviewer's proposed change. Shape varies by lever, so every field is */
|
|
1366
|
+
type FindingProposalOut = {
|
|
1367
|
+
summary?: string | null;
|
|
1368
|
+
details?: string | null;
|
|
1369
|
+
proposed_system_text?: string | null;
|
|
1370
|
+
section_key?: string | null;
|
|
1371
|
+
section_content?: string | null;
|
|
1372
|
+
content?: string | null;
|
|
1373
|
+
resource_description?: string | null;
|
|
1374
|
+
node_id?: string | null;
|
|
1375
|
+
node_config_json?: string | null;
|
|
1376
|
+
repo?: string | null;
|
|
1377
|
+
file_path?: string | null;
|
|
1378
|
+
unified_diff?: string | null;
|
|
1379
|
+
replay_verdicts?: {
|
|
1380
|
+
[key: string]: number;
|
|
1381
|
+
};
|
|
1382
|
+
[key: string]: unknown;
|
|
1383
|
+
};
|
|
1384
|
+
/** Receipt for a revert click — which version came back, and as what. */
|
|
1385
|
+
type FindingRevertOut = {
|
|
1386
|
+
finding_id: string;
|
|
1387
|
+
status: string;
|
|
1388
|
+
agent_id: string;
|
|
1389
|
+
reverted_from_version: number;
|
|
1390
|
+
reverted_to_version: number;
|
|
1391
|
+
new_version_number?: number | null;
|
|
1392
|
+
};
|
|
1393
|
+
/** What the platform knows about one mandate's goal, as a version. */
|
|
1394
|
+
type GoalClauseRecord = {
|
|
1395
|
+
mandate_key: string;
|
|
1396
|
+
goal_hash: string;
|
|
1397
|
+
goal_text: string;
|
|
1398
|
+
goal_grounding: string;
|
|
1399
|
+
judgeable?: boolean | null;
|
|
1400
|
+
judgeable_reason?: string;
|
|
1401
|
+
never_clauses?: string[];
|
|
1402
|
+
job_sentence?: string;
|
|
1403
|
+
ratified_by?: string | null;
|
|
1404
|
+
row_id?: string | null;
|
|
1405
|
+
};
|
|
1406
|
+
/** One agent version × one question (optionally narrowed to a model/method). */
|
|
1407
|
+
type GroupCalibration = {
|
|
1408
|
+
version: number;
|
|
1409
|
+
question: string;
|
|
1410
|
+
answer_type?: string | null;
|
|
1411
|
+
items?: number;
|
|
1412
|
+
labeled?: number;
|
|
1413
|
+
agreement: Calibration;
|
|
1414
|
+
probability: ProbabilityCalibration;
|
|
1415
|
+
confidence: ProbabilityCalibration;
|
|
1416
|
+
};
|
|
1417
|
+
/** One held-out turn, re-executed for real and ranked against its own record. */
|
|
1418
|
+
type HeldOutOutcome = {
|
|
1419
|
+
turn_key: string;
|
|
1420
|
+
status?: "ran" | "errored" | "skipped_for_budget";
|
|
1421
|
+
run_id?: string | null;
|
|
1422
|
+
definition_id?: string | null;
|
|
1423
|
+
verdict?: string | null;
|
|
1424
|
+
judge_confidence?: number | null;
|
|
1425
|
+
judge_ledger_id?: string | null;
|
|
1426
|
+
baseline_cost_usd?: number | null;
|
|
1427
|
+
candidate_cost_usd?: number | null;
|
|
1428
|
+
error?: string | null;
|
|
1429
|
+
};
|
|
1430
|
+
/** Platform-wide Hindsight spend — what this system costs to run. */
|
|
1431
|
+
type HindsightCostsOut = {
|
|
1432
|
+
review_cost?: number;
|
|
1433
|
+
replay_cost?: number;
|
|
1434
|
+
total_cost?: number;
|
|
1435
|
+
review_count?: number;
|
|
1436
|
+
replay_count?: number;
|
|
1437
|
+
by_enrollment?: EnrollmentCostRow[];
|
|
1438
|
+
};
|
|
1439
|
+
/** A DRY-RUN's hypothetical change (R23). */
|
|
1440
|
+
type ImpactDelta = {
|
|
1441
|
+
model_id?: string | null;
|
|
1442
|
+
settings?: {
|
|
1443
|
+
[key: string]: JsonValue;
|
|
1444
|
+
} | null;
|
|
1445
|
+
};
|
|
1446
|
+
/** ImpactFinding */
|
|
1447
|
+
type ImpactFinding = {
|
|
1448
|
+
rule_id: string;
|
|
1449
|
+
grade: "identical" | "green" | "orange" | "red";
|
|
1450
|
+
message: string;
|
|
1451
|
+
field?: string | null;
|
|
1452
|
+
before?: JsonValue | null;
|
|
1453
|
+
after?: JsonValue | null;
|
|
1454
|
+
};
|
|
1455
|
+
/** ImpactPrincipal */
|
|
1456
|
+
type ImpactPrincipal = {
|
|
1457
|
+
kind: "org" | "user";
|
|
1458
|
+
organization_id: string;
|
|
1459
|
+
subject_user_id?: string | null;
|
|
1460
|
+
};
|
|
1461
|
+
/** The envelope. ``verdicts`` is the frozen contract; the rest is what the */
|
|
1462
|
+
type ImpactReport = {
|
|
1463
|
+
verdicts?: ImpactVerdict[];
|
|
1464
|
+
withheld?: ImpactWithheld;
|
|
1465
|
+
agents_examined?: number;
|
|
1466
|
+
unknown_agent_ids?: string[];
|
|
1467
|
+
unknown_sentence?: string | null;
|
|
1468
|
+
dry_run?: boolean;
|
|
1469
|
+
computed_at: string;
|
|
1470
|
+
};
|
|
1471
|
+
/** There is no batch id on ``agent.definition_version`` — a batch writer */
|
|
1472
|
+
type ImpactRequest = {
|
|
1473
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
1474
|
+
organization_id?: string | null;
|
|
1475
|
+
/** Optional associated project selected by the caller. */
|
|
1476
|
+
project_id?: string | null;
|
|
1477
|
+
/** Optional associated task selected by the caller. */
|
|
1478
|
+
task_id?: string | null;
|
|
1479
|
+
/** Stable application slug that initiated the request. */
|
|
1480
|
+
source_app?: string | null;
|
|
1481
|
+
/** Stable feature slug within the source application. */
|
|
1482
|
+
source_feature?: string | null;
|
|
1483
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
1484
|
+
initiation?: ("user" | "auto") | null;
|
|
1485
|
+
agent_ids: string[];
|
|
1486
|
+
delta?: ImpactDelta | null;
|
|
1487
|
+
include_descendants?: boolean;
|
|
1488
|
+
};
|
|
1489
|
+
/** ImpactVerdict */
|
|
1490
|
+
type ImpactVerdict = {
|
|
1491
|
+
holder_kind: "mandate_default" | "binding";
|
|
1492
|
+
row_id: string;
|
|
1493
|
+
mandate_key: string;
|
|
1494
|
+
principal: ImpactPrincipal;
|
|
1495
|
+
agent_id: string;
|
|
1496
|
+
agent_name: string;
|
|
1497
|
+
lineage_path?: LineageStep[];
|
|
1498
|
+
pinned_version_id?: string | null;
|
|
1499
|
+
pinned_version_number?: number | null;
|
|
1500
|
+
latest_version_id?: string | null;
|
|
1501
|
+
latest_version_number?: number | null;
|
|
1502
|
+
grade: "identical" | "green" | "orange" | "red";
|
|
1503
|
+
blocker?: ("unreachable" | "unsupported_holder" | "set_aside" | "tracks_latest") | null;
|
|
1504
|
+
set_aside_reason?: string | null;
|
|
1505
|
+
findings?: ImpactFinding[];
|
|
1506
|
+
settings_drift?: SettingsDrift;
|
|
1507
|
+
changed_columns?: string[];
|
|
1508
|
+
apply_token: ApplyToken;
|
|
1509
|
+
auto_advance_eligible?: boolean;
|
|
1510
|
+
};
|
|
1511
|
+
/** Rungs that EXIST on these agents and this caller may not read (R31). */
|
|
1512
|
+
type ImpactWithheld = {
|
|
1513
|
+
total?: number;
|
|
1514
|
+
by_principal_kind?: ImpactWithheldGroup[];
|
|
1515
|
+
sentence?: string | null;
|
|
1516
|
+
};
|
|
1517
|
+
/** ImpactWithheldGroup */
|
|
1518
|
+
type ImpactWithheldGroup = {
|
|
1519
|
+
principal_kind: string;
|
|
1520
|
+
count: number;
|
|
1521
|
+
explanation: string;
|
|
1522
|
+
};
|
|
1523
|
+
/** Turn 1 — the user's first message in either mode. */
|
|
1524
|
+
type InitialIterationRequest = {
|
|
1525
|
+
mode: "side_by_side" | "invisible";
|
|
1526
|
+
original_user_request: string;
|
|
1527
|
+
initial_agent_id?: string | null;
|
|
1528
|
+
initial_agent_config?: IterationAgentConfig | null;
|
|
1529
|
+
show_thinking?: boolean;
|
|
1530
|
+
};
|
|
1531
|
+
/** The portable agent description the Architect Agent emits and that */
|
|
1532
|
+
type IterationAgentConfig = {
|
|
1533
|
+
system_prompt: string;
|
|
1534
|
+
model?: string;
|
|
1535
|
+
tools?: string[];
|
|
1536
|
+
variables?: {
|
|
1537
|
+
[key: string]: unknown;
|
|
1538
|
+
};
|
|
1539
|
+
context?: {
|
|
1540
|
+
[key: string]: unknown;
|
|
1541
|
+
};
|
|
1542
|
+
settings?: AgentConfigSettings;
|
|
1543
|
+
[key: string]: unknown;
|
|
1544
|
+
};
|
|
1545
|
+
/** The full session state. Client holds it and replays it on every */
|
|
1546
|
+
type IterationSession_Input = {
|
|
1547
|
+
session_id?: string;
|
|
1548
|
+
mode: "side_by_side" | "invisible";
|
|
1549
|
+
original_user_request: string;
|
|
1550
|
+
accumulated_feedback?: string[];
|
|
1551
|
+
versions?: AgentVersion_Input[];
|
|
1552
|
+
current_version?: number;
|
|
1553
|
+
selected_version?: number | null;
|
|
1554
|
+
};
|
|
1555
|
+
/** The full session state. Client holds it and replays it on every */
|
|
1556
|
+
type IterationSession_Output = {
|
|
1557
|
+
session_id?: string;
|
|
1558
|
+
mode: "side_by_side" | "invisible";
|
|
1559
|
+
original_user_request: string;
|
|
1560
|
+
accumulated_feedback?: string[];
|
|
1561
|
+
versions?: AgentVersion_Output[];
|
|
1562
|
+
current_version?: number;
|
|
1563
|
+
selected_version?: number | null;
|
|
1564
|
+
};
|
|
1565
|
+
/** One judge's calibration against human labels, plus its raw counts. */
|
|
1566
|
+
type JudgeAccuracyReport = {
|
|
1567
|
+
calibration: Calibration;
|
|
1568
|
+
scored_by_authority?: {
|
|
1569
|
+
[key: string]: number;
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
/** LineageStep */
|
|
1573
|
+
type LineageStep = {
|
|
1574
|
+
agent_id: string;
|
|
1575
|
+
agent_name: string;
|
|
1576
|
+
relation: "self" | "duplicated_from";
|
|
1577
|
+
};
|
|
1578
|
+
/** LiveCandidate */
|
|
1579
|
+
type LiveCandidate = {
|
|
1580
|
+
id: string;
|
|
1581
|
+
mandate_id: string;
|
|
1582
|
+
mandate_key: string;
|
|
1583
|
+
rung: "global" | "org" | "user";
|
|
1584
|
+
rung_principal_id?: string | null;
|
|
1585
|
+
holder_type: "agent" | "workflow";
|
|
1586
|
+
holder_id: string;
|
|
1587
|
+
holder_version_id?: string | null;
|
|
1588
|
+
holder_name: string;
|
|
1589
|
+
baseline_holder_type?: ("agent" | "workflow") | null;
|
|
1590
|
+
baseline_holder_id?: string | null;
|
|
1591
|
+
baseline_holder_version_id?: string | null;
|
|
1592
|
+
baseline_holder_name?: string | null;
|
|
1593
|
+
baseline_inherited?: boolean;
|
|
1594
|
+
set_by: string;
|
|
1595
|
+
organization_id: string;
|
|
1596
|
+
status: "collecting" | "ready" | "promoted" | "discarded" | "cancelled";
|
|
1597
|
+
recommendation?: ("promote" | "hold" | "reject") | null;
|
|
1598
|
+
recommendation_reason?: string | null;
|
|
1599
|
+
skips?: {
|
|
1600
|
+
[key: string]: number;
|
|
1601
|
+
};
|
|
1602
|
+
counts: LiveCandidateCounts;
|
|
1603
|
+
stalled?: boolean;
|
|
1604
|
+
decided_by?: string | null;
|
|
1605
|
+
decided_at?: string | null;
|
|
1606
|
+
decision_note?: string | null;
|
|
1607
|
+
promotion_ref?: {
|
|
1608
|
+
[key: string]: JsonValue;
|
|
1609
|
+
} | null;
|
|
1610
|
+
put_back_until?: string | null;
|
|
1611
|
+
can_decide?: boolean;
|
|
1612
|
+
created_at: string;
|
|
1613
|
+
updated_at: string;
|
|
1614
|
+
replaced?: LiveCandidateReplaced | null;
|
|
1615
|
+
};
|
|
1616
|
+
/** LiveCandidateAgreementRequest */
|
|
1617
|
+
type LiveCandidateAgreementRequest = {
|
|
1618
|
+
agreement: "agree" | "disagree";
|
|
1619
|
+
organization_id?: string | null;
|
|
1620
|
+
};
|
|
1621
|
+
/** LiveCandidateAgreementResult */
|
|
1622
|
+
type LiveCandidateAgreementResult = {
|
|
1623
|
+
run: LiveCandidateRun;
|
|
1624
|
+
settled: number;
|
|
1625
|
+
};
|
|
1626
|
+
/** Derived from the child rows every time — never stored twice (§2.1). */
|
|
1627
|
+
type LiveCandidateCounts = {
|
|
1628
|
+
runs_wanted: number;
|
|
1629
|
+
runs_in?: number;
|
|
1630
|
+
runs_failed?: number;
|
|
1631
|
+
runs_stopped?: number;
|
|
1632
|
+
runs_pending?: number;
|
|
1633
|
+
verdicts?: {
|
|
1634
|
+
[key: string]: number;
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
/** LiveCandidateDetail */
|
|
1638
|
+
type LiveCandidateDetail = {
|
|
1639
|
+
candidate: LiveCandidate;
|
|
1640
|
+
runs?: LiveCandidateRun[];
|
|
1641
|
+
};
|
|
1642
|
+
/** LiveCandidateDiscardRequest */
|
|
1643
|
+
type LiveCandidateDiscardRequest = {
|
|
1644
|
+
note?: string | null;
|
|
1645
|
+
organization_id?: string | null;
|
|
1646
|
+
};
|
|
1647
|
+
/** P17 — an honest forecast from the mandate's own recent run history, no schedule. */
|
|
1648
|
+
type LiveCandidateForecast = {
|
|
1649
|
+
doors?: {
|
|
1650
|
+
[key: string]: number;
|
|
1651
|
+
};
|
|
1652
|
+
eligible_of_recent?: number[];
|
|
1653
|
+
window_days: number;
|
|
1654
|
+
sampled?: number;
|
|
1655
|
+
};
|
|
1656
|
+
/** LiveCandidatePromoteRequest */
|
|
1657
|
+
type LiveCandidatePromoteRequest = {
|
|
1658
|
+
note?: string | null;
|
|
1659
|
+
version_id?: string | null;
|
|
1660
|
+
organization_id?: string | null;
|
|
1661
|
+
};
|
|
1662
|
+
/** ``promoted`` — the rung now runs the candidate; ``needs_version`` — the pairs ran */
|
|
1663
|
+
type LiveCandidatePromoteResult = {
|
|
1664
|
+
status: "promoted" | "needs_version";
|
|
1665
|
+
message: string;
|
|
1666
|
+
candidate: LiveCandidate;
|
|
1667
|
+
versions?: LiveCandidateVersionChoice[];
|
|
1668
|
+
};
|
|
1669
|
+
/** Set only on a set response: the candidate this one cancelled on the same rung (P7). */
|
|
1670
|
+
type LiveCandidateReplaced = {
|
|
1671
|
+
id: string;
|
|
1672
|
+
holder_name: string;
|
|
1673
|
+
runs_in: number;
|
|
1674
|
+
message: string;
|
|
1675
|
+
};
|
|
1676
|
+
/** LiveCandidateRun */
|
|
1677
|
+
type LiveCandidateRun = {
|
|
1678
|
+
id: string;
|
|
1679
|
+
candidate_id: string;
|
|
1680
|
+
number: number;
|
|
1681
|
+
door: string;
|
|
1682
|
+
status: "queued" | "running" | "completed" | "stopped" | "failed" | "timed_out";
|
|
1683
|
+
verdict?: ("better" | "same" | "worse" | "regressed") | null;
|
|
1684
|
+
stop_match?: ("same_call" | "same_tool_different_args" | "different_tool" | "live_made_no_call") | null;
|
|
1685
|
+
judge_verdict_id?: string | null;
|
|
1686
|
+
judge_error_code?: string | null;
|
|
1687
|
+
human_agreement?: ("agree" | "disagree") | null;
|
|
1688
|
+
live_user_id?: string | null;
|
|
1689
|
+
live_organization_id?: string | null;
|
|
1690
|
+
live_request_id: string;
|
|
1691
|
+
live_conversation_id?: string | null;
|
|
1692
|
+
live_wf_run_id?: string | null;
|
|
1693
|
+
live_execution_id?: string | null;
|
|
1694
|
+
live_metrics?: {
|
|
1695
|
+
[key: string]: JsonValue;
|
|
1696
|
+
} | null;
|
|
1697
|
+
live_error_code?: string | null;
|
|
1698
|
+
candidate_request_id?: string | null;
|
|
1699
|
+
candidate_conversation_id?: string | null;
|
|
1700
|
+
candidate_wf_run_id?: string | null;
|
|
1701
|
+
candidate_execution_id?: string | null;
|
|
1702
|
+
candidate_resolved_holder_id?: string | null;
|
|
1703
|
+
candidate_resolved_version_id?: string | null;
|
|
1704
|
+
candidate_metrics?: {
|
|
1705
|
+
[key: string]: JsonValue;
|
|
1706
|
+
} | null;
|
|
1707
|
+
candidate_error_code?: string | null;
|
|
1708
|
+
input_differences?: JsonValue;
|
|
1709
|
+
tool_dispositions?: LiveCandidateToolDisposition[];
|
|
1710
|
+
attempts?: number;
|
|
1711
|
+
notified_at?: string | null;
|
|
1712
|
+
created_at: string;
|
|
1713
|
+
updated_at: string;
|
|
1714
|
+
payload?: LiveCandidateRunPayload | null;
|
|
1715
|
+
payload_withheld_reason?: string | null;
|
|
1716
|
+
};
|
|
1717
|
+
/** The sensitive half (A2) — only ever read under the viewer's own identity. */
|
|
1718
|
+
type LiveCandidateRunPayload = {
|
|
1719
|
+
door_args?: JsonValue;
|
|
1720
|
+
live_output?: JsonValue;
|
|
1721
|
+
candidate_output?: JsonValue;
|
|
1722
|
+
live_error?: JsonValue;
|
|
1723
|
+
candidate_error?: JsonValue;
|
|
1724
|
+
live_input_digest?: JsonValue;
|
|
1725
|
+
candidate_input_digest?: JsonValue;
|
|
1726
|
+
stopped_at?: JsonValue;
|
|
1727
|
+
judge?: JsonValue;
|
|
1728
|
+
live_tool_results?: JsonValue;
|
|
1729
|
+
};
|
|
1730
|
+
/** LiveCandidateSetRequest */
|
|
1731
|
+
type LiveCandidateSetRequest = {
|
|
1732
|
+
rung: "global" | "org" | "user";
|
|
1733
|
+
rung_principal_id?: string | null;
|
|
1734
|
+
holder_type: "agent" | "workflow";
|
|
1735
|
+
holder_id: string;
|
|
1736
|
+
holder_version_id?: string | null;
|
|
1737
|
+
runs_wanted?: number | null;
|
|
1738
|
+
organization_id?: string | null;
|
|
1739
|
+
};
|
|
1740
|
+
/** LiveCandidateToolDisposition */
|
|
1741
|
+
type LiveCandidateToolDisposition = {
|
|
1742
|
+
seq?: number | null;
|
|
1743
|
+
tool?: string | null;
|
|
1744
|
+
side_effect_class?: string | null;
|
|
1745
|
+
disposition?: ("real" | "borrowed" | "stopped") | null;
|
|
1746
|
+
args_digest?: string | null;
|
|
1747
|
+
borrowed_from_call_id?: string | null;
|
|
1748
|
+
stopped_reason?: string | null;
|
|
1749
|
+
[key: string]: unknown;
|
|
1750
|
+
};
|
|
1751
|
+
/** LiveCandidateVersionChoice */
|
|
1752
|
+
type LiveCandidateVersionChoice = {
|
|
1753
|
+
version_id: string | null;
|
|
1754
|
+
runs: number;
|
|
1755
|
+
label: string;
|
|
1756
|
+
};
|
|
1757
|
+
/** LiveCandidatesResponse */
|
|
1758
|
+
type LiveCandidatesResponse = {
|
|
1759
|
+
active?: LiveCandidate | null;
|
|
1760
|
+
open?: LiveCandidate[];
|
|
1761
|
+
history?: LiveCandidate[];
|
|
1762
|
+
forecast: LiveCandidateForecast;
|
|
1763
|
+
};
|
|
1764
|
+
/** ``POST /mandates/runs/{request_id}/answer`` — what the person answered. */
|
|
1765
|
+
type MandateAnswerRequest = {
|
|
1766
|
+
values?: {
|
|
1767
|
+
[key: string]: JsonValue;
|
|
1768
|
+
};
|
|
1769
|
+
};
|
|
1770
|
+
/** MandateBindingDeleteRequest */
|
|
1771
|
+
type MandateBindingDeleteRequest = {
|
|
1772
|
+
principal_type?: "user" | "org";
|
|
1773
|
+
organization_id?: string | null;
|
|
1774
|
+
};
|
|
1775
|
+
/** MandateBindingDeleteResponse */
|
|
1776
|
+
type MandateBindingDeleteResponse = {
|
|
1777
|
+
mandate_key: string;
|
|
1778
|
+
principal_type: "user" | "org";
|
|
1779
|
+
removed: boolean;
|
|
1780
|
+
};
|
|
1781
|
+
/** MandateBindingRequest */
|
|
1782
|
+
type MandateBindingRequest = {
|
|
1783
|
+
principal_type?: "user" | "org";
|
|
1784
|
+
holder_type?: "agent" | "workflow";
|
|
1785
|
+
agent_id?: string | null;
|
|
1786
|
+
agent_version_id?: string | null;
|
|
1787
|
+
holder_id?: string | null;
|
|
1788
|
+
holder_version_id?: string | null;
|
|
1789
|
+
use_latest?: boolean | null;
|
|
1790
|
+
config_overrides?: {
|
|
1791
|
+
[key: string]: JsonValue;
|
|
1792
|
+
} | null;
|
|
1793
|
+
consumption_map?: {
|
|
1794
|
+
[key: string]: JsonValue;
|
|
1795
|
+
} | null;
|
|
1796
|
+
auto_run?: boolean | null;
|
|
1797
|
+
is_enabled?: boolean;
|
|
1798
|
+
organization_id?: string | null;
|
|
1799
|
+
};
|
|
1800
|
+
/** One labelled comparison column. */
|
|
1801
|
+
type MandateCandidate = {
|
|
1802
|
+
candidate_id?: string;
|
|
1803
|
+
label?: string;
|
|
1804
|
+
selection?: "current" | "mandate_pinned" | "latest" | "agent" | "version" | "workflow";
|
|
1805
|
+
agent_id?: string | null;
|
|
1806
|
+
agent_version_id?: string | null;
|
|
1807
|
+
workflow_id?: string | null;
|
|
1808
|
+
workflow_version_id?: string | null;
|
|
1809
|
+
config_overrides?: {
|
|
1810
|
+
[key: string]: JsonValue;
|
|
1811
|
+
} | null;
|
|
1812
|
+
};
|
|
1813
|
+
/** MandateCodeTruth */
|
|
1814
|
+
type MandateCodeTruth = {
|
|
1815
|
+
mandate_key: string;
|
|
1816
|
+
resolution: "code_declaration_found" | "code_exists_but_import_failed" | "no_code_declaration_found";
|
|
1817
|
+
drift: "code_only" | "db_only" | "diff" | "match";
|
|
1818
|
+
bound_agent_drift?: ("code_only" | "db_only" | "diff" | "match") | null;
|
|
1819
|
+
code_variables: string[];
|
|
1820
|
+
db_required_variables: string[];
|
|
1821
|
+
code_only_variables: string[];
|
|
1822
|
+
db_only_variables: string[];
|
|
1823
|
+
bound_agent_missing_variables?: string[];
|
|
1824
|
+
bound_agent_only_variables?: string[];
|
|
1825
|
+
spill_variables?: string[];
|
|
1826
|
+
bound_agent_spilled_variables?: string[];
|
|
1827
|
+
provision_key?: string | null;
|
|
1828
|
+
offered_values?: string[];
|
|
1829
|
+
offer_consumption?: BindingOfferConsumption[];
|
|
1830
|
+
source?: CodeTruthSource | null;
|
|
1831
|
+
inputs?: CodeTruthField[];
|
|
1832
|
+
variable_map?: {
|
|
1833
|
+
[key: string]: string;
|
|
1834
|
+
};
|
|
1835
|
+
output?: CodeTruthModel | null;
|
|
1836
|
+
passes_user_input?: boolean;
|
|
1837
|
+
call_sites?: CodeTruthCallSite[];
|
|
1838
|
+
bound_agent?: BoundAgentTruth | null;
|
|
1839
|
+
import_error?: string | null;
|
|
1840
|
+
};
|
|
1841
|
+
/** MandateCodeTruthReport */
|
|
1842
|
+
type MandateCodeTruthReport = {
|
|
1843
|
+
mandates: MandateCodeTruth[];
|
|
1844
|
+
import_failures: string[];
|
|
1845
|
+
counts: {
|
|
1846
|
+
[key: string]: number;
|
|
1847
|
+
};
|
|
1848
|
+
};
|
|
1849
|
+
/** MandateCoverageCounts */
|
|
1850
|
+
type MandateCoverageCounts = {
|
|
1851
|
+
green: number;
|
|
1852
|
+
orange: number;
|
|
1853
|
+
red: number;
|
|
1854
|
+
};
|
|
1855
|
+
/** MandateCoverageOrangeRow */
|
|
1856
|
+
type MandateCoverageOrangeRow = {
|
|
1857
|
+
mandate_key: string;
|
|
1858
|
+
leader_key: string | null;
|
|
1859
|
+
reason: string;
|
|
1860
|
+
};
|
|
1861
|
+
/** MandateCoverageRedRow */
|
|
1862
|
+
type MandateCoverageRedRow = {
|
|
1863
|
+
mandate_key: string;
|
|
1864
|
+
reason: string;
|
|
1865
|
+
holder_problems?: string[];
|
|
1866
|
+
};
|
|
1867
|
+
/** MandateCoverageResponse */
|
|
1868
|
+
type MandateCoverageResponse = {
|
|
1869
|
+
counts: MandateCoverageCounts;
|
|
1870
|
+
orange: MandateCoverageOrangeRow[];
|
|
1871
|
+
red: MandateCoverageRedRow[];
|
|
1872
|
+
computed_at: string;
|
|
1873
|
+
};
|
|
1874
|
+
/** MandateCoverageState */
|
|
1875
|
+
type MandateCoverageState = {
|
|
1876
|
+
mandate_key: string;
|
|
1877
|
+
state: "green" | "orange" | "red";
|
|
1878
|
+
leader_key: string | null;
|
|
1879
|
+
reason: string | null;
|
|
1880
|
+
holder_problems?: string[];
|
|
1881
|
+
};
|
|
1882
|
+
/** MandateCoverageStatesResponse */
|
|
1883
|
+
type MandateCoverageStatesResponse = {
|
|
1884
|
+
organization_id: string | null;
|
|
1885
|
+
counts: MandateCoverageCounts;
|
|
1886
|
+
states: MandateCoverageState[];
|
|
1887
|
+
computed_at: string;
|
|
1888
|
+
};
|
|
1889
|
+
/** MandateCreateRequest */
|
|
1890
|
+
type MandateCreateRequest = {
|
|
1891
|
+
mandate_key: string;
|
|
1892
|
+
label: string;
|
|
1893
|
+
goal: string;
|
|
1894
|
+
description?: string | null;
|
|
1895
|
+
output_kind?: string | null;
|
|
1896
|
+
output_constraints?: string | null;
|
|
1897
|
+
draft_inputs?: DraftInputItem[];
|
|
1898
|
+
organization_id?: string | null;
|
|
1899
|
+
};
|
|
1900
|
+
/** MandateCreatedResponse */
|
|
1901
|
+
type MandateCreatedResponse = {
|
|
1902
|
+
mandate_key: string;
|
|
1903
|
+
mandate_id: string;
|
|
1904
|
+
goal_grounding: string;
|
|
1905
|
+
origin: string;
|
|
1906
|
+
};
|
|
1907
|
+
/** MandateDefaultHolderRequest */
|
|
1908
|
+
type MandateDefaultHolderRequest = {
|
|
1909
|
+
holder_type?: "agent" | "workflow";
|
|
1910
|
+
agent_id?: string | null;
|
|
1911
|
+
agent_version_id?: string | null;
|
|
1912
|
+
use_latest?: boolean | null;
|
|
1913
|
+
holder_id?: string | null;
|
|
1914
|
+
holder_version_id?: string | null;
|
|
1915
|
+
consumption_map?: {
|
|
1916
|
+
[key: string]: JsonValue;
|
|
1917
|
+
} | null;
|
|
1918
|
+
config_overrides?: {
|
|
1919
|
+
[key: string]: JsonValue;
|
|
1920
|
+
} | null;
|
|
1921
|
+
auto_run?: boolean | null;
|
|
1922
|
+
organization_id?: string | null;
|
|
1923
|
+
};
|
|
1924
|
+
/** What the mandate's BOTTOM RUNG now says — its own default Holder. */
|
|
1925
|
+
type MandateDefaultHolderResult = {
|
|
1926
|
+
mandate_key: string;
|
|
1927
|
+
home_organization_id: string;
|
|
1928
|
+
holder_type?: "agent" | "workflow";
|
|
1929
|
+
holder_id?: string | null;
|
|
1930
|
+
holder_version_id?: string | null;
|
|
1931
|
+
use_latest: boolean;
|
|
1932
|
+
applies_in?: string;
|
|
1933
|
+
consumption_map?: {
|
|
1934
|
+
[key: string]: JsonValue;
|
|
1935
|
+
} | null;
|
|
1936
|
+
config_overrides?: {
|
|
1937
|
+
[key: string]: JsonValue;
|
|
1938
|
+
} | null;
|
|
1939
|
+
auto_run?: boolean | null;
|
|
1940
|
+
notes?: string[];
|
|
1941
|
+
contract_check?: ContractCheck | null;
|
|
1942
|
+
};
|
|
1943
|
+
/** The owner-editable definition fields. Absent = unchanged. */
|
|
1944
|
+
type MandateDefinitionPatch = {
|
|
1945
|
+
label?: string | null;
|
|
1946
|
+
description?: string | null;
|
|
1947
|
+
output_kind?: string | null;
|
|
1948
|
+
output_constraints?: string | null;
|
|
1949
|
+
};
|
|
1950
|
+
/** MandateDefinitionPatchResponse */
|
|
1951
|
+
type MandateDefinitionPatchResponse = {
|
|
1952
|
+
mandate_key: string;
|
|
1953
|
+
changed: string[];
|
|
1954
|
+
};
|
|
1955
|
+
/** Everything a client needs to render and run a mandate, by key alone. */
|
|
1956
|
+
type MandateDescribeResponse = {
|
|
1957
|
+
mandate_key: string;
|
|
1958
|
+
label: string;
|
|
1959
|
+
goal: string;
|
|
1960
|
+
output_kind?: string | null;
|
|
1961
|
+
inputs?: MandateServedInput[];
|
|
1962
|
+
holder?: MandateHolderRef | null;
|
|
1963
|
+
};
|
|
1964
|
+
/** MandateDraftInputsPatchRequest */
|
|
1965
|
+
type MandateDraftInputsPatchRequest = {
|
|
1966
|
+
draft_inputs: DraftInputItem[];
|
|
1967
|
+
organization_id?: string | null;
|
|
1968
|
+
};
|
|
1969
|
+
/** MandateDraftInputsResponse */
|
|
1970
|
+
type MandateDraftInputsResponse = {
|
|
1971
|
+
mandate_key: string;
|
|
1972
|
+
draft_inputs: DraftInputItem[];
|
|
1973
|
+
};
|
|
1974
|
+
/** MandateExemplarTestResults */
|
|
1975
|
+
type MandateExemplarTestResults = {
|
|
1976
|
+
exemplar_id: string;
|
|
1977
|
+
exemplar_label: string;
|
|
1978
|
+
results: MandateTestResult[];
|
|
1979
|
+
};
|
|
1980
|
+
/** MandateGoalPatchRequest */
|
|
1981
|
+
type MandateGoalPatchRequest = {
|
|
1982
|
+
goal: string;
|
|
1983
|
+
organization_id?: string | null;
|
|
1984
|
+
};
|
|
1985
|
+
/** MandateGoalResponse */
|
|
1986
|
+
type MandateGoalResponse = {
|
|
1987
|
+
mandate_key: string;
|
|
1988
|
+
goal: string;
|
|
1989
|
+
goal_grounding: string;
|
|
1990
|
+
};
|
|
1991
|
+
/** MandateHolderRef */
|
|
1992
|
+
type MandateHolderRef = {
|
|
1993
|
+
type: "agent" | "workflow";
|
|
1994
|
+
};
|
|
1995
|
+
/** MandateHolderRow */
|
|
1996
|
+
type MandateHolderRow = {
|
|
1997
|
+
rung: "system" | "organization" | "user";
|
|
1998
|
+
holder_type: string | null;
|
|
1999
|
+
holder_name: string | null;
|
|
2000
|
+
owner_name: string | null;
|
|
2001
|
+
is_enabled: boolean;
|
|
2002
|
+
runnable: boolean;
|
|
2003
|
+
detail: string;
|
|
2004
|
+
};
|
|
2005
|
+
/** THE mandate's input declaration, resolved for THIS caller. */
|
|
2006
|
+
type MandateInputSurfaceResponse = {
|
|
2007
|
+
mandate_key: string;
|
|
2008
|
+
provision_key?: string | null;
|
|
2009
|
+
surface_source: "provision" | "mandate_inputs" | "holder" | "none";
|
|
2010
|
+
holder_name?: string | null;
|
|
2011
|
+
accepts_user_input?: boolean;
|
|
2012
|
+
inputs?: MandateServedInput[];
|
|
2013
|
+
notes?: string[];
|
|
2014
|
+
[key: string]: unknown;
|
|
2015
|
+
};
|
|
2016
|
+
/** A parked run's question: what to ask, and where it resumes. */
|
|
2017
|
+
type MandateNeedsInput = {
|
|
2018
|
+
run_id: string;
|
|
2019
|
+
checkpoint_id?: string | null;
|
|
2020
|
+
inputs?: MandateServedInput[];
|
|
2021
|
+
message?: string;
|
|
2022
|
+
};
|
|
2023
|
+
/** MandateOfferRow */
|
|
2024
|
+
type MandateOfferRow = {
|
|
2025
|
+
surface: string;
|
|
2026
|
+
href: string;
|
|
2027
|
+
audience: "everyone" | "organization" | "admins";
|
|
2028
|
+
live: boolean;
|
|
2029
|
+
detail: string;
|
|
2030
|
+
};
|
|
2031
|
+
/** MandateOriginFacts */
|
|
2032
|
+
type MandateOriginFacts = {
|
|
2033
|
+
origin: string | null;
|
|
2034
|
+
kind: "code" | "migration" | "user" | "unknown";
|
|
2035
|
+
created_at: string | null;
|
|
2036
|
+
updated_at: string | null;
|
|
2037
|
+
created_by_name: string | null;
|
|
2038
|
+
organization_name: string | null;
|
|
2039
|
+
code_path: string | null;
|
|
2040
|
+
migrated_from_table: string | null;
|
|
2041
|
+
original_created_at: string | null;
|
|
2042
|
+
sentence: string;
|
|
2043
|
+
};
|
|
2044
|
+
/** The patrol's own state and running cost (Arman, 2026-09-17: *"if there is */
|
|
2045
|
+
type MandatePatrolSection = {
|
|
2046
|
+
tool_name: string;
|
|
2047
|
+
task_id: string;
|
|
2048
|
+
enabled: boolean;
|
|
2049
|
+
schedule: string | null;
|
|
2050
|
+
trigger_enabled: boolean;
|
|
2051
|
+
next_due_at: string | null;
|
|
2052
|
+
last_run_at: string | null;
|
|
2053
|
+
enabled_at: string | null;
|
|
2054
|
+
runs: PatrolRunRow[];
|
|
2055
|
+
runs_counted: number;
|
|
2056
|
+
runs_failed: number;
|
|
2057
|
+
recent_runs_counted?: number;
|
|
2058
|
+
recent_runs_failed?: number;
|
|
2059
|
+
failing_streak?: number;
|
|
2060
|
+
last_success_at?: string | null;
|
|
2061
|
+
cumulative_wall_seconds: number;
|
|
2062
|
+
cumulative_vcpu_seconds: number;
|
|
2063
|
+
cumulative_compute_cost_usd: number | null;
|
|
2064
|
+
cumulative_model_spend_usd: number;
|
|
2065
|
+
cost_note: string;
|
|
2066
|
+
read_error?: string | null;
|
|
2067
|
+
};
|
|
2068
|
+
/** MandateProvenanceReport */
|
|
2069
|
+
type MandateProvenanceReport = {
|
|
2070
|
+
mandate_key: string;
|
|
2071
|
+
label: string | null;
|
|
2072
|
+
origin: MandateOriginFacts;
|
|
2073
|
+
offered_on: MandateOfferRow[];
|
|
2074
|
+
offered_sentence: string;
|
|
2075
|
+
usage: MandateUsageFacts;
|
|
2076
|
+
held_by: MandateHolderRow[];
|
|
2077
|
+
held_sentence: string;
|
|
2078
|
+
computed_at: string;
|
|
2079
|
+
};
|
|
2080
|
+
/** MandateReferenceBoard */
|
|
2081
|
+
type MandateReferenceBoard = {
|
|
2082
|
+
repos: BoardRepo[];
|
|
2083
|
+
conversion_list: BoardConversionRow[];
|
|
2084
|
+
conversion_count: number;
|
|
2085
|
+
conversion_counts_by_repo: {
|
|
2086
|
+
[key: string]: number;
|
|
2087
|
+
};
|
|
2088
|
+
bypass_count?: number;
|
|
2089
|
+
bypass_counts_by_repo?: {
|
|
2090
|
+
[key: string]: number;
|
|
2091
|
+
};
|
|
2092
|
+
open_finding_count: number;
|
|
2093
|
+
awaiting_release_count?: number;
|
|
2094
|
+
by_design_count?: number;
|
|
2095
|
+
unverified_repos: string[];
|
|
2096
|
+
patrol?: MandatePatrolSection | null;
|
|
2097
|
+
source?: "mandate.reference";
|
|
2098
|
+
};
|
|
2099
|
+
/** MandateReferenceReport */
|
|
2100
|
+
type MandateReferenceReport = {
|
|
2101
|
+
mandate_key: string;
|
|
2102
|
+
defined_in: MandateReferenceRow[];
|
|
2103
|
+
used_by: MandateReferenceRow[];
|
|
2104
|
+
flags: MandateReferenceRow[];
|
|
2105
|
+
scan_completeness: {
|
|
2106
|
+
[key: string]: RepoScanCompleteness;
|
|
2107
|
+
};
|
|
2108
|
+
unscanned_repos: string[];
|
|
2109
|
+
single_consumption_site_by_design: boolean;
|
|
2110
|
+
source?: "mandate.reference";
|
|
2111
|
+
};
|
|
2112
|
+
/** One reference to a mandate key, as the tab renders it. */
|
|
2113
|
+
type MandateReferenceRow = {
|
|
2114
|
+
identity_hash: string;
|
|
2115
|
+
mandate_key: string;
|
|
2116
|
+
reference_type: string;
|
|
2117
|
+
repo_slug: string | null;
|
|
2118
|
+
package_path: string | null;
|
|
2119
|
+
package_name: string | null;
|
|
2120
|
+
language: string | null;
|
|
2121
|
+
file_path: string | null;
|
|
2122
|
+
symbol: string | null;
|
|
2123
|
+
occurrence_n: number | null;
|
|
2124
|
+
line: number | null;
|
|
2125
|
+
revision: string;
|
|
2126
|
+
revision_kind: string;
|
|
2127
|
+
presence: string;
|
|
2128
|
+
flag: string;
|
|
2129
|
+
caller_identity_hash: string | null;
|
|
2130
|
+
location: string;
|
|
2131
|
+
flag_sentence: string | null;
|
|
2132
|
+
remedy: string | null;
|
|
2133
|
+
scan_status: string | null;
|
|
2134
|
+
by_design?: boolean;
|
|
2135
|
+
};
|
|
2136
|
+
/** What a client needs to run this mandate's agent, resolved for the caller. */
|
|
2137
|
+
type MandateResolutionResponse = {
|
|
2138
|
+
mandate_key: string;
|
|
2139
|
+
holder_type?: "agent" | "workflow";
|
|
2140
|
+
agent_id?: string | null;
|
|
2141
|
+
is_version?: boolean;
|
|
2142
|
+
definition_agent_id?: string | null;
|
|
2143
|
+
workflow_id?: string | null;
|
|
2144
|
+
workflow_version_id?: string | null;
|
|
2145
|
+
version_number?: number | null;
|
|
2146
|
+
config_overrides?: {
|
|
2147
|
+
[key: string]: JsonValue;
|
|
2148
|
+
} | null;
|
|
2149
|
+
input_kind?: string | null;
|
|
2150
|
+
output_kind?: string | null;
|
|
2151
|
+
contract?: {
|
|
2152
|
+
[key: string]: JsonValue;
|
|
2153
|
+
};
|
|
2154
|
+
provenance: "system" | "org" | "user" | "run";
|
|
2155
|
+
freshness: string;
|
|
2156
|
+
provision_key?: string | null;
|
|
2157
|
+
offered_values?: OfferedValueResponse[];
|
|
2158
|
+
consumption_map?: {
|
|
2159
|
+
[key: string]: JsonValue;
|
|
2160
|
+
} | null;
|
|
2161
|
+
auto_run?: boolean | null;
|
|
2162
|
+
dropped_rungs?: DroppedRungResponse[];
|
|
2163
|
+
output_warnings?: OutputWarningResponse[];
|
|
2164
|
+
};
|
|
2165
|
+
/** MandateResultPromoteRequest */
|
|
2166
|
+
type MandateResultPromoteRequest = {
|
|
2167
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2168
|
+
organization_id?: string | null;
|
|
2169
|
+
/** Optional associated project selected by the caller. */
|
|
2170
|
+
project_id?: string | null;
|
|
2171
|
+
/** Optional associated task selected by the caller. */
|
|
2172
|
+
task_id?: string | null;
|
|
2173
|
+
/** Stable application slug that initiated the request. */
|
|
2174
|
+
source_app?: string | null;
|
|
2175
|
+
/** Stable feature slug within the source application. */
|
|
2176
|
+
source_feature?: string | null;
|
|
2177
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2178
|
+
initiation?: ("user" | "auto") | null;
|
|
2179
|
+
result_id: string;
|
|
2180
|
+
};
|
|
2181
|
+
/** Receipt for promoting a persisted bench result into the exemplar's */
|
|
2182
|
+
type MandateResultPromotion = {
|
|
2183
|
+
mandate_key: string;
|
|
2184
|
+
exemplar_id: string;
|
|
2185
|
+
result_id: string;
|
|
2186
|
+
promoted_to_reference_at: string;
|
|
2187
|
+
reference_output: string;
|
|
2188
|
+
has_reference_artifact: boolean;
|
|
2189
|
+
};
|
|
2190
|
+
/** Everything one bench cell spent, read from the runtime spine's ledger */
|
|
2191
|
+
type MandateRunAccounting = {
|
|
2192
|
+
ledger_execution_id?: string | null;
|
|
2193
|
+
total_cost_usd?: number;
|
|
2194
|
+
model_calls?: number;
|
|
2195
|
+
input_tokens?: number;
|
|
2196
|
+
output_tokens?: number;
|
|
2197
|
+
cached_tokens?: number;
|
|
2198
|
+
unpriced_model_calls?: number;
|
|
2199
|
+
nested_mandate_runs?: number;
|
|
2200
|
+
executions?: number;
|
|
2201
|
+
failed_executions?: number;
|
|
2202
|
+
unsettled_executions?: number;
|
|
2203
|
+
not_counted?: string[];
|
|
2204
|
+
};
|
|
2205
|
+
/** MandateRunDetail */
|
|
2206
|
+
type MandateRunDetail = {
|
|
2207
|
+
conversation_id: string;
|
|
2208
|
+
mandate_key?: string | null;
|
|
2209
|
+
door?: string | null;
|
|
2210
|
+
created_at?: string | null;
|
|
2211
|
+
ran_by?: string | null;
|
|
2212
|
+
holder?: RunHolder;
|
|
2213
|
+
settings?: {
|
|
2214
|
+
[key: string]: JsonValue;
|
|
2215
|
+
};
|
|
2216
|
+
provisions?: RunProvision[];
|
|
2217
|
+
placement?: {
|
|
2218
|
+
[key: string]: JsonValue;
|
|
2219
|
+
} | null;
|
|
2220
|
+
variables?: {
|
|
2221
|
+
[key: string]: JsonValue;
|
|
2222
|
+
};
|
|
2223
|
+
user_input?: string | null;
|
|
2224
|
+
context?: {
|
|
2225
|
+
[key: string]: JsonValue;
|
|
2226
|
+
};
|
|
2227
|
+
output?: string;
|
|
2228
|
+
result?: {
|
|
2229
|
+
[key: string]: JsonValue;
|
|
2230
|
+
} | null;
|
|
2231
|
+
success?: boolean | null;
|
|
2232
|
+
error?: string | null;
|
|
2233
|
+
cost?: number | null;
|
|
2234
|
+
duration_ms?: number | null;
|
|
2235
|
+
test_run?: boolean;
|
|
2236
|
+
replay_of?: string | null;
|
|
2237
|
+
};
|
|
2238
|
+
/** MandateRunListItem */
|
|
2239
|
+
type MandateRunListItem = {
|
|
2240
|
+
request_id: string;
|
|
2241
|
+
conversation_id: string;
|
|
2242
|
+
mandate_key: string;
|
|
2243
|
+
started_at?: string | null;
|
|
2244
|
+
status: "running" | "waiting_input" | "completed" | "failed" | "cancelled";
|
|
2245
|
+
applet_id?: string | null;
|
|
2246
|
+
};
|
|
2247
|
+
/** MandateRunListResponse */
|
|
2248
|
+
type MandateRunListResponse = {
|
|
2249
|
+
runs?: MandateRunListItem[];
|
|
2250
|
+
};
|
|
2251
|
+
/** MandateRunResultResponse */
|
|
2252
|
+
type MandateRunResultResponse = {
|
|
2253
|
+
request_id: string;
|
|
2254
|
+
conversation_id: string;
|
|
2255
|
+
mandate_key: string;
|
|
2256
|
+
holder_type: "agent" | "workflow";
|
|
2257
|
+
status: "running" | "waiting_input" | "completed" | "failed" | "cancelled";
|
|
2258
|
+
text?: string;
|
|
2259
|
+
envelope?: {
|
|
2260
|
+
[key: string]: JsonValue;
|
|
2261
|
+
} | JsonValue[] | null;
|
|
2262
|
+
result_note?: string | null;
|
|
2263
|
+
needs_input?: MandateNeedsInput | null;
|
|
2264
|
+
organization_id?: string | null;
|
|
2265
|
+
};
|
|
2266
|
+
/** One entry of the mandate's served input surface. */
|
|
2267
|
+
type MandateServedInput = {
|
|
2268
|
+
name: string;
|
|
2269
|
+
kind: string;
|
|
2270
|
+
sourcing: "ask" | "require" | "optional";
|
|
2271
|
+
variant?: string | null;
|
|
2272
|
+
default?: JsonValue | null;
|
|
2273
|
+
label?: string;
|
|
2274
|
+
help?: string;
|
|
2275
|
+
placeholder?: string;
|
|
2276
|
+
options?: string[];
|
|
2277
|
+
origin?: "field" | "variable" | "provision" | "mandate_input" | "holder" | "binding_prompt";
|
|
2278
|
+
example?: string;
|
|
2279
|
+
node_id?: string | null;
|
|
2280
|
+
json_schema?: {
|
|
2281
|
+
[key: string]: JsonValue;
|
|
2282
|
+
};
|
|
2283
|
+
required?: boolean;
|
|
2284
|
+
pinned?: boolean;
|
|
2285
|
+
read_only?: boolean;
|
|
2286
|
+
pinned_value?: JsonValue | null;
|
|
2287
|
+
[key: string]: unknown;
|
|
2288
|
+
};
|
|
2289
|
+
/** One declared Mandate, as an authoring surface needs to show it. */
|
|
2290
|
+
type MandateSummaryResponse = {
|
|
2291
|
+
mandate_key: string;
|
|
2292
|
+
label: string;
|
|
2293
|
+
description?: string | null;
|
|
2294
|
+
goal?: string | null;
|
|
2295
|
+
output_kind?: string | null;
|
|
2296
|
+
provision_key?: string | null;
|
|
2297
|
+
};
|
|
2298
|
+
/** MandateTestBatchRequest */
|
|
2299
|
+
type MandateTestBatchRequest = {
|
|
2300
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2301
|
+
organization_id?: string | null;
|
|
2302
|
+
/** Optional associated project selected by the caller. */
|
|
2303
|
+
project_id?: string | null;
|
|
2304
|
+
/** Optional associated task selected by the caller. */
|
|
2305
|
+
task_id?: string | null;
|
|
2306
|
+
/** Stable application slug that initiated the request. */
|
|
2307
|
+
source_app?: string | null;
|
|
2308
|
+
/** Stable feature slug within the source application. */
|
|
2309
|
+
source_feature?: string | null;
|
|
2310
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2311
|
+
initiation?: ("user" | "auto") | null;
|
|
2312
|
+
exemplar_ids?: string[] | null;
|
|
2313
|
+
baseline?: MandateCandidate;
|
|
2314
|
+
candidates: MandateCandidate[];
|
|
2315
|
+
principal?: MandateTestPrincipal;
|
|
2316
|
+
};
|
|
2317
|
+
/** MandateTestBatchResponse */
|
|
2318
|
+
type MandateTestBatchResponse = {
|
|
2319
|
+
mandate_key: string;
|
|
2320
|
+
exemplar_count: number;
|
|
2321
|
+
columns: MandateTestColumn[];
|
|
2322
|
+
exemplars: MandateExemplarTestResults[];
|
|
2323
|
+
};
|
|
2324
|
+
/** MandateTestColumn */
|
|
2325
|
+
type MandateTestColumn = {
|
|
2326
|
+
candidate_id: string;
|
|
2327
|
+
label: string;
|
|
2328
|
+
selection: "current" | "mandate_pinned" | "latest" | "agent" | "version" | "workflow";
|
|
2329
|
+
workflow_id?: string | null;
|
|
2330
|
+
workflow_version_id?: string | null;
|
|
2331
|
+
};
|
|
2332
|
+
/** MandateTestPrincipal */
|
|
2333
|
+
type MandateTestPrincipal = {
|
|
2334
|
+
user_id?: string | null;
|
|
2335
|
+
organization_id?: string | null;
|
|
2336
|
+
};
|
|
2337
|
+
/** MandateTestRequest */
|
|
2338
|
+
type MandateTestRequest = {
|
|
2339
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2340
|
+
organization_id?: string | null;
|
|
2341
|
+
/** Optional associated project selected by the caller. */
|
|
2342
|
+
project_id?: string | null;
|
|
2343
|
+
/** Optional associated task selected by the caller. */
|
|
2344
|
+
task_id?: string | null;
|
|
2345
|
+
/** Stable application slug that initiated the request. */
|
|
2346
|
+
source_app?: string | null;
|
|
2347
|
+
/** Stable feature slug within the source application. */
|
|
2348
|
+
source_feature?: string | null;
|
|
2349
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2350
|
+
initiation?: ("user" | "auto") | null;
|
|
2351
|
+
exemplar_id?: string | null;
|
|
2352
|
+
variables?: {
|
|
2353
|
+
[key: string]: JsonValue;
|
|
2354
|
+
} | null;
|
|
2355
|
+
user_input?: string | null;
|
|
2356
|
+
candidate?: MandateCandidate;
|
|
2357
|
+
principal?: MandateTestPrincipal;
|
|
2358
|
+
};
|
|
2359
|
+
/** A persisted result entry stored in agent.exemplar metadata (test_bench_results). */
|
|
2360
|
+
type MandateTestResult = {
|
|
2361
|
+
id?: string;
|
|
2362
|
+
created_at?: string;
|
|
2363
|
+
mandate_key: string;
|
|
2364
|
+
exemplar_id?: string | null;
|
|
2365
|
+
candidate_id: string;
|
|
2366
|
+
candidate_label: string;
|
|
2367
|
+
candidate: MandateCandidate;
|
|
2368
|
+
principal: MandateTestPrincipal;
|
|
2369
|
+
holder_type?: string;
|
|
2370
|
+
run_id?: string | null;
|
|
2371
|
+
workflow_id?: string | null;
|
|
2372
|
+
workflow_version_id?: string | null;
|
|
2373
|
+
agent_id?: string | null;
|
|
2374
|
+
definition_agent_id?: string | null;
|
|
2375
|
+
is_version?: boolean;
|
|
2376
|
+
provenance?: "system" | "org" | "user" | "run" | "mandate-pinned" | "latest" | "agent" | "version" | "unresolved";
|
|
2377
|
+
applied_config_overrides?: {
|
|
2378
|
+
[key: string]: JsonValue;
|
|
2379
|
+
} | null;
|
|
2380
|
+
output?: string;
|
|
2381
|
+
artifact?: {
|
|
2382
|
+
[key: string]: JsonValue;
|
|
2383
|
+
} | null;
|
|
2384
|
+
structural: StructuralVerdict;
|
|
2385
|
+
usage?: {
|
|
2386
|
+
[key: string]: JsonValue;
|
|
2387
|
+
};
|
|
2388
|
+
model_id?: string | null;
|
|
2389
|
+
duration_ms?: number;
|
|
2390
|
+
accounting?: MandateRunAccounting | null;
|
|
2391
|
+
contract_check?: ContractCheck | null;
|
|
2392
|
+
error?: string | null;
|
|
2393
|
+
notes?: string[];
|
|
2394
|
+
verdict_note?: string | null;
|
|
2395
|
+
promoted_to_reference_at?: string | null;
|
|
2396
|
+
};
|
|
2397
|
+
/** One try of a mandate at the caller's own level. There is deliberately NO */
|
|
2398
|
+
type MandateTryRequest = {
|
|
2399
|
+
variables?: {
|
|
2400
|
+
[key: string]: JsonValue;
|
|
2401
|
+
};
|
|
2402
|
+
user_input?: string | null;
|
|
2403
|
+
candidate?: MemberTryCandidate;
|
|
2404
|
+
organization_id?: string | null;
|
|
2405
|
+
};
|
|
2406
|
+
/** MandateUsageFacts */
|
|
2407
|
+
type MandateUsageFacts = {
|
|
2408
|
+
conversation_count: number | null;
|
|
2409
|
+
request_count: number | null;
|
|
2410
|
+
first_run_at: string | null;
|
|
2411
|
+
last_run_at: string | null;
|
|
2412
|
+
runs_href: string;
|
|
2413
|
+
observed_attempted: number | null;
|
|
2414
|
+
observed_resolved: number | null;
|
|
2415
|
+
observed_executed: number | null;
|
|
2416
|
+
observed_last_at: string | null;
|
|
2417
|
+
code_reference_count: number;
|
|
2418
|
+
sentence: string;
|
|
2419
|
+
};
|
|
2420
|
+
/** Code truth plus the mapping to evaluate against the resolved mandate agent. */
|
|
2421
|
+
type MandateVariableVerdictRequest = {
|
|
2422
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2423
|
+
organization_id?: string | null;
|
|
2424
|
+
/** Optional associated project selected by the caller. */
|
|
2425
|
+
project_id?: string | null;
|
|
2426
|
+
/** Optional associated task selected by the caller. */
|
|
2427
|
+
task_id?: string | null;
|
|
2428
|
+
/** Stable application slug that initiated the request. */
|
|
2429
|
+
source_app?: string | null;
|
|
2430
|
+
/** Stable feature slug within the source application. */
|
|
2431
|
+
source_feature?: string | null;
|
|
2432
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2433
|
+
initiation?: ("user" | "auto") | null;
|
|
2434
|
+
code_values: {
|
|
2435
|
+
[key: string]: JsonValue;
|
|
2436
|
+
};
|
|
2437
|
+
mapping?: {
|
|
2438
|
+
[key: string]: CodeValueMapping | OfferedValueMapping | DirectValueMapping | UnmappedValueMapping | PromptUserValueMapping;
|
|
2439
|
+
};
|
|
2440
|
+
spill_variables?: string[];
|
|
2441
|
+
user_input?: string | null;
|
|
2442
|
+
};
|
|
2443
|
+
/** What to run: the binding that runs for you now, or a named agent/workflow. */
|
|
2444
|
+
type MemberTryCandidate = {
|
|
2445
|
+
selection?: "current" | "agent" | "workflow";
|
|
2446
|
+
agent_id?: string | null;
|
|
2447
|
+
workflow_id?: string | null;
|
|
2448
|
+
workflow_version_id?: string | null;
|
|
2449
|
+
label?: string;
|
|
2450
|
+
};
|
|
2451
|
+
/** NoulAnswer */
|
|
2452
|
+
type NoulAnswer = {
|
|
2453
|
+
type?: "noul";
|
|
2454
|
+
noul: number;
|
|
2455
|
+
};
|
|
2456
|
+
/** NoulQuestion */
|
|
2457
|
+
type NoulQuestion = {
|
|
2458
|
+
type?: "noul";
|
|
2459
|
+
instructions: SystemOneEntry;
|
|
2460
|
+
criteria?: {
|
|
2461
|
+
[key: string]: SystemOneEntry;
|
|
2462
|
+
} | null;
|
|
2463
|
+
};
|
|
2464
|
+
/** The neutral map type: consume one offered/code-supplied value. */
|
|
2465
|
+
type OfferedValueMapping = {
|
|
2466
|
+
mapType?: "offered_value";
|
|
2467
|
+
target: string;
|
|
2468
|
+
required?: boolean;
|
|
2469
|
+
deliver?: "variable" | "context";
|
|
2470
|
+
when_absent?: ("skip" | "use_default" | "fail") | null;
|
|
2471
|
+
default?: JsonValue | null;
|
|
2472
|
+
};
|
|
2473
|
+
/** One value the mandate's Provision offers — the client's copy of the */
|
|
2474
|
+
type OfferedValueResponse = {
|
|
2475
|
+
name: string;
|
|
2476
|
+
kind: string;
|
|
2477
|
+
guaranteed?: boolean;
|
|
2478
|
+
lazy?: boolean;
|
|
2479
|
+
example?: string;
|
|
2480
|
+
};
|
|
2481
|
+
/** The Holder that runs does not declare an output this job reads — the wire */
|
|
2482
|
+
type OutputWarningResponse = {
|
|
2483
|
+
rung: "run" | "system" | "org" | "user";
|
|
2484
|
+
holder_type?: "agent" | "workflow";
|
|
2485
|
+
holder_id?: string | null;
|
|
2486
|
+
missing_keys?: string[];
|
|
2487
|
+
reason: string;
|
|
2488
|
+
};
|
|
2489
|
+
/** ONE `mandate_reference_patrol` run, and what it cost. */
|
|
2490
|
+
type PatrolRunRow = {
|
|
2491
|
+
run_id: string;
|
|
2492
|
+
status: string;
|
|
2493
|
+
due_at: string | null;
|
|
2494
|
+
started_at: string | null;
|
|
2495
|
+
finished_at: string | null;
|
|
2496
|
+
wall_seconds: number | null;
|
|
2497
|
+
seconds_source: "recorded" | "derived_from_timestamps" | "unknown";
|
|
2498
|
+
cpu_seconds: number | null;
|
|
2499
|
+
vcpu_seconds: number | null;
|
|
2500
|
+
cpu_count_source: string | null;
|
|
2501
|
+
compute_cost_usd: number | null;
|
|
2502
|
+
compute_cost_note: string | null;
|
|
2503
|
+
model_spend_usd: number | null;
|
|
2504
|
+
model_spend_evidence: string | null;
|
|
2505
|
+
revision: string | null;
|
|
2506
|
+
rows_submitted: number | null;
|
|
2507
|
+
findings: number | null;
|
|
2508
|
+
error_rows_filed: number | null;
|
|
2509
|
+
error_rows_resolved: number | null;
|
|
2510
|
+
error_rows_request_id: string | null;
|
|
2511
|
+
git_clone_bytes: number | null;
|
|
2512
|
+
spend_row: string | null;
|
|
2513
|
+
failed_legs: string[];
|
|
2514
|
+
summary: string | null;
|
|
2515
|
+
error_message: string | null;
|
|
2516
|
+
cost_recorded: boolean;
|
|
2517
|
+
};
|
|
2518
|
+
/** One run the NEXT review would read, settled or not. */
|
|
2519
|
+
type PendingExampleOut = {
|
|
2520
|
+
kind: string;
|
|
2521
|
+
id: string;
|
|
2522
|
+
at?: string | null;
|
|
2523
|
+
settled?: boolean;
|
|
2524
|
+
stats?: {
|
|
2525
|
+
[key: string]: unknown;
|
|
2526
|
+
};
|
|
2527
|
+
};
|
|
2528
|
+
/** What the next review would read — the honesty surface for "Review now". */
|
|
2529
|
+
type PendingExamplesOut = {
|
|
2530
|
+
settle_cutoff_at: string;
|
|
2531
|
+
settle_minutes: number;
|
|
2532
|
+
examples?: PendingExampleOut[];
|
|
2533
|
+
unsettled_count?: number;
|
|
2534
|
+
};
|
|
2535
|
+
/** PendingLabels */
|
|
2536
|
+
type PendingLabels = {
|
|
2537
|
+
rows?: PendingVerdict[];
|
|
2538
|
+
total_awaiting?: number;
|
|
2539
|
+
limit?: number;
|
|
2540
|
+
note?: string;
|
|
2541
|
+
};
|
|
2542
|
+
/** One judged run waiting for a human to answer the same questions. */
|
|
2543
|
+
type PendingVerdict = {
|
|
2544
|
+
verdict_id: string;
|
|
2545
|
+
mandate_key: string;
|
|
2546
|
+
judged_at?: string | null;
|
|
2547
|
+
verdict: string;
|
|
2548
|
+
confidence?: number | null;
|
|
2549
|
+
reasoning?: string | null;
|
|
2550
|
+
answers?: {
|
|
2551
|
+
[key: string]: JsonValue;
|
|
2552
|
+
};
|
|
2553
|
+
unanswerable?: {
|
|
2554
|
+
[key: string]: JsonValue;
|
|
2555
|
+
};
|
|
2556
|
+
authority_answers?: {
|
|
2557
|
+
[key: string]: JsonValue;
|
|
2558
|
+
};
|
|
2559
|
+
input_cut_ratio?: number;
|
|
2560
|
+
questions_awaiting?: string[];
|
|
2561
|
+
};
|
|
2562
|
+
/** PlacementPreviewRequest */
|
|
2563
|
+
type PlacementPreviewRequest = {
|
|
2564
|
+
provisions?: {
|
|
2565
|
+
[key: string]: JsonValue;
|
|
2566
|
+
};
|
|
2567
|
+
holder: MandateTestHolder;
|
|
2568
|
+
config_overrides?: {
|
|
2569
|
+
[key: string]: JsonValue;
|
|
2570
|
+
} | null;
|
|
2571
|
+
organization_id?: string | null;
|
|
2572
|
+
};
|
|
2573
|
+
/** PlacementPreviewResponse */
|
|
2574
|
+
type PlacementPreviewResponse = {
|
|
2575
|
+
placement: {
|
|
2576
|
+
[key: string]: JsonValue;
|
|
2577
|
+
};
|
|
2578
|
+
problems?: PlacementProblem[];
|
|
2579
|
+
};
|
|
2580
|
+
/** PlacementProblem */
|
|
2581
|
+
type PlacementProblem = {
|
|
2582
|
+
severity: "error" | "warning";
|
|
2583
|
+
provision?: string | null;
|
|
2584
|
+
variable?: string | null;
|
|
2585
|
+
message: string;
|
|
2586
|
+
};
|
|
2587
|
+
/** Reliability curve + Brier + expected calibration error + threshold. */
|
|
2588
|
+
type ProbabilityCalibration = {
|
|
2589
|
+
cases?: number;
|
|
2590
|
+
accuracy?: number | null;
|
|
2591
|
+
mean_predicted?: number | null;
|
|
2592
|
+
brier_score?: number | null;
|
|
2593
|
+
expected_calibration_error?: number | null;
|
|
2594
|
+
bins?: ReliabilityBin[];
|
|
2595
|
+
recommended_threshold?: ThresholdRecommendation | null;
|
|
2596
|
+
};
|
|
2597
|
+
/** ProducerYieldOut */
|
|
2598
|
+
type ProducerYieldOut = {
|
|
2599
|
+
rows?: ProducerYieldRow[];
|
|
2600
|
+
totals: ProducerYieldTotals;
|
|
2601
|
+
floors?: YieldFloors;
|
|
2602
|
+
};
|
|
2603
|
+
/** ProducerYieldRow */
|
|
2604
|
+
type ProducerYieldRow = {
|
|
2605
|
+
producer_key: string;
|
|
2606
|
+
display_name: string;
|
|
2607
|
+
outcome_token: string;
|
|
2608
|
+
/** no_acceptance_signal | never_decided | measured | idle. Read this BEFORE any rate below — a NULL rate is never a zero. */
|
|
2609
|
+
measurement_state: string;
|
|
2610
|
+
produced: number;
|
|
2611
|
+
accepted?: number | null;
|
|
2612
|
+
rejected?: number | null;
|
|
2613
|
+
expired?: number | null;
|
|
2614
|
+
undecided?: number | null;
|
|
2615
|
+
decided?: number | null;
|
|
2616
|
+
runs?: number;
|
|
2617
|
+
cost_usd?: number | null;
|
|
2618
|
+
/** accepted / PRODUCED. NULL until something is decided. */
|
|
2619
|
+
yield_rate?: number | null;
|
|
2620
|
+
accept_rate_of_decided?: number | null;
|
|
2621
|
+
decision_rate?: number | null;
|
|
2622
|
+
/** The honest cost number. */
|
|
2623
|
+
cost_per_accepted_usd?: number | null;
|
|
2624
|
+
/** The FLATTERING cost number. Never alarm on it. */
|
|
2625
|
+
cost_per_produced_usd?: number | null;
|
|
2626
|
+
age_days?: number | null;
|
|
2627
|
+
last_produced_at?: string | null;
|
|
2628
|
+
last_accepted_at?: string | null;
|
|
2629
|
+
door_href?: string | null;
|
|
2630
|
+
};
|
|
2631
|
+
/** ProducerYieldTotals */
|
|
2632
|
+
type ProducerYieldTotals = {
|
|
2633
|
+
producers?: number;
|
|
2634
|
+
cost_usd?: number;
|
|
2635
|
+
measured_cost_usd?: number;
|
|
2636
|
+
unmeasurable_cost_usd?: number;
|
|
2637
|
+
produced?: number;
|
|
2638
|
+
accepted?: number;
|
|
2639
|
+
yield_rate?: number | null;
|
|
2640
|
+
cost_per_accepted_usd?: number | null;
|
|
2641
|
+
};
|
|
2642
|
+
/** Ask the person for this input, at the moment of the run. */
|
|
2643
|
+
type PromptUserValueMapping = {
|
|
2644
|
+
mapType?: "prompt_user";
|
|
2645
|
+
prompt?: string;
|
|
2646
|
+
defaultValue?: JsonValue | null;
|
|
2647
|
+
required?: boolean;
|
|
2648
|
+
deliver?: "variable" | "context";
|
|
2649
|
+
};
|
|
2650
|
+
/** ProofResult */
|
|
2651
|
+
type ProofResult = {
|
|
2652
|
+
finding_id: string;
|
|
2653
|
+
status?: "proven" | "unprovable" | "failed";
|
|
2654
|
+
evidence_class?: "loop_iteration" | "same_unit_regression" | "none";
|
|
2655
|
+
snapshot_id?: string | null;
|
|
2656
|
+
replay_group_id?: string | null;
|
|
2657
|
+
verdict?: string | null;
|
|
2658
|
+
control_faithful?: boolean | null;
|
|
2659
|
+
cost_usd?: number;
|
|
2660
|
+
claim?: string;
|
|
2661
|
+
note?: string;
|
|
2662
|
+
error?: string | null;
|
|
2663
|
+
arms?: {
|
|
2664
|
+
[key: string]: JsonValue;
|
|
2665
|
+
}[];
|
|
2666
|
+
};
|
|
2667
|
+
type Question = NoulQuestion | ChoiceQuestion | ScoreQuestion;
|
|
2668
|
+
/** One question's agreement with the human labels collected for it. */
|
|
2669
|
+
type QuestionCalibration = {
|
|
2670
|
+
question: string;
|
|
2671
|
+
calibration: Calibration;
|
|
2672
|
+
};
|
|
2673
|
+
/** A human taking authorship of one mandate goal's extracted rubric. */
|
|
2674
|
+
type Ratification = {
|
|
2675
|
+
/** The admin's user id. This is WHO now owns this rubric. */
|
|
2676
|
+
ratified_by: string;
|
|
2677
|
+
note?: string;
|
|
2678
|
+
/** Does this goal say enough to judge a run against? Omit to keep whatever the extraction recorded. */
|
|
2679
|
+
judgeable?: boolean | null;
|
|
2680
|
+
};
|
|
2681
|
+
/** RegressionCaseIn */
|
|
2682
|
+
type RegressionCaseIn = {
|
|
2683
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2684
|
+
organization_id?: string | null;
|
|
2685
|
+
/** Optional associated project selected by the caller. */
|
|
2686
|
+
project_id?: string | null;
|
|
2687
|
+
/** Optional associated task selected by the caller. */
|
|
2688
|
+
task_id?: string | null;
|
|
2689
|
+
/** Stable application slug that initiated the request. */
|
|
2690
|
+
source_app?: string | null;
|
|
2691
|
+
/** Stable feature slug within the source application. */
|
|
2692
|
+
source_feature?: string | null;
|
|
2693
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2694
|
+
initiation?: ("user" | "auto") | null;
|
|
2695
|
+
title?: string;
|
|
2696
|
+
expectation?: {
|
|
2697
|
+
[key: string]: JsonValue;
|
|
2698
|
+
};
|
|
2699
|
+
notes?: string | null;
|
|
2700
|
+
origin?: "human_click" | "finding" | "walk" | "sweep";
|
|
2701
|
+
origin_finding_id?: string | null;
|
|
2702
|
+
corrected_output_ref?: string | null;
|
|
2703
|
+
};
|
|
2704
|
+
/** RegressionCaseOut */
|
|
2705
|
+
type RegressionCaseOut = {
|
|
2706
|
+
id: string;
|
|
2707
|
+
snapshot_id: string;
|
|
2708
|
+
conversation_id?: string | null;
|
|
2709
|
+
title?: string;
|
|
2710
|
+
expectation?: {
|
|
2711
|
+
[key: string]: JsonValue;
|
|
2712
|
+
};
|
|
2713
|
+
notes?: string | null;
|
|
2714
|
+
origin?: string;
|
|
2715
|
+
origin_finding_id?: string | null;
|
|
2716
|
+
corrected_output_ref?: string | null;
|
|
2717
|
+
agent_definition_version?: string | null;
|
|
2718
|
+
workflow_definition_version?: string | null;
|
|
2719
|
+
status?: string;
|
|
2720
|
+
last_replay_group_id?: string | null;
|
|
2721
|
+
last_result?: string | null;
|
|
2722
|
+
last_verdict?: string | null;
|
|
2723
|
+
last_reason?: string | null;
|
|
2724
|
+
last_checked_at?: string | null;
|
|
2725
|
+
last_cost_usd?: number | null;
|
|
2726
|
+
consecutive_failures?: number;
|
|
2727
|
+
created_at?: string | null;
|
|
2728
|
+
};
|
|
2729
|
+
/** RegressionCaseRunIn */
|
|
2730
|
+
type RegressionCaseRunIn = {
|
|
2731
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2732
|
+
organization_id?: string | null;
|
|
2733
|
+
/** Optional associated project selected by the caller. */
|
|
2734
|
+
project_id?: string | null;
|
|
2735
|
+
/** Optional associated task selected by the caller. */
|
|
2736
|
+
task_id?: string | null;
|
|
2737
|
+
/** Stable application slug that initiated the request. */
|
|
2738
|
+
source_app?: string | null;
|
|
2739
|
+
/** Stable feature slug within the source application. */
|
|
2740
|
+
source_feature?: string | null;
|
|
2741
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2742
|
+
initiation?: ("user" | "auto") | null;
|
|
2743
|
+
delta?: {
|
|
2744
|
+
[key: string]: JsonValue;
|
|
2745
|
+
};
|
|
2746
|
+
samples?: number | null;
|
|
2747
|
+
judge?: boolean | null;
|
|
2748
|
+
};
|
|
2749
|
+
/** RegressionCaseStatusIn */
|
|
2750
|
+
type RegressionCaseStatusIn = {
|
|
2751
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2752
|
+
organization_id?: string | null;
|
|
2753
|
+
/** Optional associated project selected by the caller. */
|
|
2754
|
+
project_id?: string | null;
|
|
2755
|
+
/** Optional associated task selected by the caller. */
|
|
2756
|
+
task_id?: string | null;
|
|
2757
|
+
/** Stable application slug that initiated the request. */
|
|
2758
|
+
source_app?: string | null;
|
|
2759
|
+
/** Stable feature slug within the source application. */
|
|
2760
|
+
source_feature?: string | null;
|
|
2761
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2762
|
+
initiation?: ("user" | "auto") | null;
|
|
2763
|
+
status: "active" | "retired";
|
|
2764
|
+
};
|
|
2765
|
+
/** RegressionRunResult */
|
|
2766
|
+
type RegressionRunResult = {
|
|
2767
|
+
case_id: string;
|
|
2768
|
+
snapshot_id: string;
|
|
2769
|
+
replay_group_id?: string | null;
|
|
2770
|
+
evaluated_arm_key?: string | null;
|
|
2771
|
+
verdict: ExpectationVerdict;
|
|
2772
|
+
cost_usd?: number;
|
|
2773
|
+
faithful?: boolean | null;
|
|
2774
|
+
};
|
|
2775
|
+
/** One bin of the reliability curve. Empty bins are omitted, never zero-filled. */
|
|
2776
|
+
type ReliabilityBin = {
|
|
2777
|
+
lower: number;
|
|
2778
|
+
upper: number;
|
|
2779
|
+
count: number;
|
|
2780
|
+
mean_predicted: number;
|
|
2781
|
+
observed_accuracy: number;
|
|
2782
|
+
gap: number;
|
|
2783
|
+
};
|
|
2784
|
+
/** One re-run of a real historical request under a candidate change. */
|
|
2785
|
+
type ReplayOut = {
|
|
2786
|
+
id: string;
|
|
2787
|
+
enrollment_id: string;
|
|
2788
|
+
finding_id?: string | null;
|
|
2789
|
+
source_conversation_id?: string | null;
|
|
2790
|
+
source_wf_run_id?: string | null;
|
|
2791
|
+
replay_conversation_id?: string | null;
|
|
2792
|
+
replay_wf_run_id?: string | null;
|
|
2793
|
+
variant: string;
|
|
2794
|
+
status: string;
|
|
2795
|
+
metrics?: {
|
|
2796
|
+
[key: string]: unknown;
|
|
2797
|
+
};
|
|
2798
|
+
original_metrics?: {
|
|
2799
|
+
[key: string]: unknown;
|
|
2800
|
+
};
|
|
2801
|
+
verdict?: ("better" | "same" | "worse" | "regressed") | null;
|
|
2802
|
+
judge?: {
|
|
2803
|
+
[key: string]: unknown;
|
|
2804
|
+
} | null;
|
|
2805
|
+
error?: {
|
|
2806
|
+
[key: string]: unknown;
|
|
2807
|
+
} | null;
|
|
2808
|
+
created_at?: string | null;
|
|
2809
|
+
completed_at?: string | null;
|
|
2810
|
+
};
|
|
2811
|
+
/** Kind-shaped source: an agent replay sends `source_conversation_id`, a */
|
|
2812
|
+
type ReplayRequest = {
|
|
2813
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2814
|
+
organization_id?: string | null;
|
|
2815
|
+
/** Optional associated project selected by the caller. */
|
|
2816
|
+
project_id?: string | null;
|
|
2817
|
+
/** Optional associated task selected by the caller. */
|
|
2818
|
+
task_id?: string | null;
|
|
2819
|
+
/** Stable application slug that initiated the request. */
|
|
2820
|
+
source_app?: string | null;
|
|
2821
|
+
/** Stable feature slug within the source application. */
|
|
2822
|
+
source_feature?: string | null;
|
|
2823
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2824
|
+
initiation?: ("user" | "auto") | null;
|
|
2825
|
+
source_conversation_id?: string | null;
|
|
2826
|
+
source_wf_run_id?: string | null;
|
|
2827
|
+
overrides?: {
|
|
2828
|
+
[key: string]: JsonValue;
|
|
2829
|
+
};
|
|
2830
|
+
finding_id?: string | null;
|
|
2831
|
+
variant?: string;
|
|
2832
|
+
};
|
|
2833
|
+
/** Outcome of a replay DISPATCH. ``queued`` means the row was created and */
|
|
2834
|
+
type ReplayRunResult = {
|
|
2835
|
+
replay_id: string;
|
|
2836
|
+
status?: "queued" | "completed" | "failed";
|
|
2837
|
+
verdict?: string | null;
|
|
2838
|
+
reason?: string | null;
|
|
2839
|
+
};
|
|
2840
|
+
/** What accepting a repo-artifact finding did with its diff (D8). */
|
|
2841
|
+
type RepoDiffReceiptOut = {
|
|
2842
|
+
status: "filed" | "deduped" | "failed";
|
|
2843
|
+
file_path: string;
|
|
2844
|
+
feedback_id?: string | null;
|
|
2845
|
+
};
|
|
2846
|
+
/** The newest COMPLETE scan for one active repository, or the absence of one. */
|
|
2847
|
+
type RepoScanCompleteness = {
|
|
2848
|
+
repo_slug: string;
|
|
2849
|
+
revision: string | null;
|
|
2850
|
+
revision_kind: string | null;
|
|
2851
|
+
scanned_at: string | null;
|
|
2852
|
+
is_complete: boolean;
|
|
2853
|
+
};
|
|
2854
|
+
/** Same injected scope, same rule: it is never an authority for the write. */
|
|
2855
|
+
type RevertRequest = {
|
|
2856
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2857
|
+
organization_id?: string | null;
|
|
2858
|
+
/** Optional associated project selected by the caller. */
|
|
2859
|
+
project_id?: string | null;
|
|
2860
|
+
/** Optional associated task selected by the caller. */
|
|
2861
|
+
task_id?: string | null;
|
|
2862
|
+
/** Stable application slug that initiated the request. */
|
|
2863
|
+
source_app?: string | null;
|
|
2864
|
+
/** Stable feature slug within the source application. */
|
|
2865
|
+
source_feature?: string | null;
|
|
2866
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2867
|
+
initiation?: ("user" | "auto") | null;
|
|
2868
|
+
batch_id: string;
|
|
2869
|
+
row_id?: string | null;
|
|
2870
|
+
batch_label?: string | null;
|
|
2871
|
+
};
|
|
2872
|
+
/** ReviewDetailOut */
|
|
2873
|
+
type ReviewDetailOut = {
|
|
2874
|
+
review: ReviewOut;
|
|
2875
|
+
findings?: FindingOut[];
|
|
2876
|
+
replays?: ReplayOut[];
|
|
2877
|
+
};
|
|
2878
|
+
/** One real run the reviewer read. */
|
|
2879
|
+
type ReviewExample = {
|
|
2880
|
+
kind?: string;
|
|
2881
|
+
id?: string;
|
|
2882
|
+
at?: string | null;
|
|
2883
|
+
stats?: {
|
|
2884
|
+
[key: string]: unknown;
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
/** One review pass over a window of real examples. */
|
|
2888
|
+
type ReviewOut = {
|
|
2889
|
+
id: string;
|
|
2890
|
+
enrollment_id: string;
|
|
2891
|
+
status: string;
|
|
2892
|
+
window_from?: string | null;
|
|
2893
|
+
window_to?: string | null;
|
|
2894
|
+
example_count?: number;
|
|
2895
|
+
examples?: ReviewExample[];
|
|
2896
|
+
reviewer_conversation_id?: string | null;
|
|
2897
|
+
summary?: string | null;
|
|
2898
|
+
what_worked?: string | null;
|
|
2899
|
+
error?: {
|
|
2900
|
+
[key: string]: unknown;
|
|
2901
|
+
} | null;
|
|
2902
|
+
total_cost?: number | null;
|
|
2903
|
+
created_at?: string | null;
|
|
2904
|
+
completed_at?: string | null;
|
|
2905
|
+
};
|
|
2906
|
+
/** ReviewRunResult */
|
|
2907
|
+
type ReviewRunResult = {
|
|
2908
|
+
enrollment_id: string;
|
|
2909
|
+
review_id?: string | null;
|
|
2910
|
+
status?: "completed" | "skipped" | "failed";
|
|
2911
|
+
reason?: string | null;
|
|
2912
|
+
example_count?: number;
|
|
2913
|
+
findings_created?: number;
|
|
2914
|
+
assists_created?: number;
|
|
2915
|
+
replays_run?: number;
|
|
2916
|
+
cost_usd?: number;
|
|
2917
|
+
};
|
|
2918
|
+
/** The reviewer's conversation, so a human can read it and reply. */
|
|
2919
|
+
type ReviewThreadOut = {
|
|
2920
|
+
conversation_id?: string | null;
|
|
2921
|
+
available?: boolean;
|
|
2922
|
+
messages?: ThreadMessageOut[];
|
|
2923
|
+
reason?: string | null;
|
|
2924
|
+
};
|
|
2925
|
+
/** RunHolder */
|
|
2926
|
+
type RunHolder = {
|
|
2927
|
+
type?: ("agent" | "workflow") | null;
|
|
2928
|
+
id?: string | null;
|
|
2929
|
+
version_id?: string | null;
|
|
2930
|
+
name?: string | null;
|
|
2931
|
+
version_number?: number | null;
|
|
2932
|
+
};
|
|
2933
|
+
/** RunProvision */
|
|
2934
|
+
type RunProvision = {
|
|
2935
|
+
name: string;
|
|
2936
|
+
kind?: string | null;
|
|
2937
|
+
supplied?: boolean;
|
|
2938
|
+
value?: JsonValue;
|
|
2939
|
+
truncated?: boolean;
|
|
2940
|
+
value_ref?: string | null;
|
|
2941
|
+
};
|
|
2942
|
+
/** ScoreAnswer */
|
|
2943
|
+
type ScoreAnswer = {
|
|
2944
|
+
type?: "score";
|
|
2945
|
+
score: number;
|
|
2946
|
+
probabilities: {
|
|
2947
|
+
[key: string]: number;
|
|
2948
|
+
};
|
|
2949
|
+
confidence: number;
|
|
2950
|
+
legend: {
|
|
2951
|
+
[key: string]: JsonValue;
|
|
2952
|
+
};
|
|
2953
|
+
};
|
|
2954
|
+
/** ScoreQuestion */
|
|
2955
|
+
type ScoreQuestion = {
|
|
2956
|
+
type?: "score";
|
|
2957
|
+
instructions: SystemOneEntry;
|
|
2958
|
+
criteria: SystemOneEntry[];
|
|
2959
|
+
};
|
|
2960
|
+
/** SettingsCapabilityIssue */
|
|
2961
|
+
type SettingsCapabilityIssue = {
|
|
2962
|
+
key: string;
|
|
2963
|
+
action: "dropped" | "omitted" | "mapped" | "clamped" | "const" | "effort_ceiling" | "unsupported_value" | "to_default";
|
|
2964
|
+
canonical_value?: JsonValue | null;
|
|
2965
|
+
sent_value?: JsonValue | null;
|
|
2966
|
+
reason: string;
|
|
2967
|
+
expected: boolean;
|
|
2968
|
+
};
|
|
2969
|
+
/** SettingsDrift */
|
|
2970
|
+
type SettingsDrift = {
|
|
2971
|
+
keys?: SettingsDriftKey[];
|
|
2972
|
+
capability?: SettingsCapabilityIssue[];
|
|
2973
|
+
capability_checked?: boolean;
|
|
2974
|
+
};
|
|
2975
|
+
/** SettingsDriftKey */
|
|
2976
|
+
type SettingsDriftKey = {
|
|
2977
|
+
key: string;
|
|
2978
|
+
change: "added" | "removed" | "changed";
|
|
2979
|
+
before?: JsonValue | null;
|
|
2980
|
+
after?: JsonValue | null;
|
|
2981
|
+
};
|
|
2982
|
+
/** Explicitly sweep the suite under a model change. */
|
|
2983
|
+
type ShadowSweepIn = {
|
|
2984
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
2985
|
+
organization_id?: string | null;
|
|
2986
|
+
/** Optional associated project selected by the caller. */
|
|
2987
|
+
project_id?: string | null;
|
|
2988
|
+
/** Optional associated task selected by the caller. */
|
|
2989
|
+
task_id?: string | null;
|
|
2990
|
+
/** Stable application slug that initiated the request. */
|
|
2991
|
+
source_app?: string | null;
|
|
2992
|
+
/** Stable feature slug within the source application. */
|
|
2993
|
+
source_feature?: string | null;
|
|
2994
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
2995
|
+
initiation?: ("user" | "auto") | null;
|
|
2996
|
+
new_model?: string | null;
|
|
2997
|
+
from_model?: string | null;
|
|
2998
|
+
limit?: number | null;
|
|
2999
|
+
samples?: number | null;
|
|
3000
|
+
};
|
|
3001
|
+
/** What one pass actually did — with the honesty fields first. */
|
|
3002
|
+
type ShadowSweepReport = {
|
|
3003
|
+
ok?: boolean;
|
|
3004
|
+
new_model?: string | null;
|
|
3005
|
+
from_model?: string | null;
|
|
3006
|
+
selected?: number;
|
|
3007
|
+
checked?: number;
|
|
3008
|
+
skipped_for_budget?: number;
|
|
3009
|
+
hit_cost_ceiling?: boolean;
|
|
3010
|
+
passed?: number;
|
|
3011
|
+
failed?: number;
|
|
3012
|
+
errored?: number;
|
|
3013
|
+
total_cost_usd?: number;
|
|
3014
|
+
outcomes?: CaseOutcome[];
|
|
3015
|
+
assist_id?: string | null;
|
|
3016
|
+
error?: string | null;
|
|
3017
|
+
};
|
|
3018
|
+
/** A SOFT mandate authored by an ordinary user or an organization admin. */
|
|
3019
|
+
type SoftMandateCreateRequest = {
|
|
3020
|
+
mandate_key: string;
|
|
3021
|
+
label: string;
|
|
3022
|
+
goal: string;
|
|
3023
|
+
description?: string | null;
|
|
3024
|
+
output_kind?: string | null;
|
|
3025
|
+
output_constraints?: string | null;
|
|
3026
|
+
draft_inputs?: DraftInputItem[];
|
|
3027
|
+
level: "user" | "organization";
|
|
3028
|
+
organization_id?: string | null;
|
|
3029
|
+
};
|
|
3030
|
+
/** SoftMandateCreatedResponse */
|
|
3031
|
+
type SoftMandateCreatedResponse = {
|
|
3032
|
+
mandate_key: string;
|
|
3033
|
+
mandate_id: string;
|
|
3034
|
+
goal_grounding: string;
|
|
3035
|
+
origin: string;
|
|
3036
|
+
organization_id: string;
|
|
3037
|
+
shown_to?: string | null;
|
|
3038
|
+
};
|
|
3039
|
+
/** StructuralVerdict */
|
|
3040
|
+
type StructuralVerdict = {
|
|
3041
|
+
checked: boolean;
|
|
3042
|
+
ok?: boolean | null;
|
|
3043
|
+
errors?: string[];
|
|
3044
|
+
output_kind?: string | null;
|
|
3045
|
+
missing_required_keys?: string[];
|
|
3046
|
+
degraded_reason?: string | null;
|
|
3047
|
+
};
|
|
3048
|
+
/** SweepResult */
|
|
3049
|
+
type SweepResult = {
|
|
3050
|
+
stamped: number;
|
|
3051
|
+
limit: number;
|
|
3052
|
+
};
|
|
3053
|
+
type SystemOneEntry = string | {
|
|
3054
|
+
[key: string]: JsonValue;
|
|
3055
|
+
} | JsonValue[] | null;
|
|
3056
|
+
type SystemOneState = string | {
|
|
3057
|
+
[key: string]: JsonValue;
|
|
3058
|
+
} | JsonValue[];
|
|
3059
|
+
/** One message in the reviewer's own conversation, rendered for display. */
|
|
3060
|
+
type ThreadMessageOut = {
|
|
3061
|
+
id: string;
|
|
3062
|
+
role: string;
|
|
3063
|
+
position?: number | null;
|
|
3064
|
+
created_at?: string | null;
|
|
3065
|
+
text?: string;
|
|
3066
|
+
truncated?: boolean;
|
|
3067
|
+
full_chars?: number;
|
|
3068
|
+
};
|
|
3069
|
+
/** The lowest cut whose answers at or above it met the target precision. */
|
|
3070
|
+
type ThresholdRecommendation = {
|
|
3071
|
+
target_precision: number;
|
|
3072
|
+
threshold?: number | null;
|
|
3073
|
+
precision?: number | null;
|
|
3074
|
+
coverage?: number | null;
|
|
3075
|
+
answers_at_or_above?: number;
|
|
3076
|
+
note?: string;
|
|
3077
|
+
};
|
|
3078
|
+
/** A tool ranked by recent dispatch volume + failure ratio (enroll picker). */
|
|
3079
|
+
type ToolSubjectOut = {
|
|
3080
|
+
tool_name: string;
|
|
3081
|
+
calls: number;
|
|
3082
|
+
fails: number;
|
|
3083
|
+
fail_ratio: number;
|
|
3084
|
+
};
|
|
3085
|
+
/** One turn of one orchestra, as an ORDERED path. */
|
|
3086
|
+
type Trajectory = {
|
|
3087
|
+
conversation_id: string;
|
|
3088
|
+
user_request_id: string;
|
|
3089
|
+
steps?: TrajectoryStep[];
|
|
3090
|
+
request_text?: string;
|
|
3091
|
+
started_at?: string;
|
|
3092
|
+
cost_usd?: number | null;
|
|
3093
|
+
duration_ms?: number | null;
|
|
3094
|
+
final_text?: string;
|
|
3095
|
+
};
|
|
3096
|
+
/** A clean set of DIVERSE turns that share one ordered structure. */
|
|
3097
|
+
type TrajectoryCluster = {
|
|
3098
|
+
seed_key: string;
|
|
3099
|
+
shared_sequence?: string[];
|
|
3100
|
+
members?: Trajectory[];
|
|
3101
|
+
fit_keys?: string[];
|
|
3102
|
+
holdout_keys?: string[];
|
|
3103
|
+
min_internal_similarity?: number;
|
|
3104
|
+
max_instance_similarity?: number;
|
|
3105
|
+
distinct_conversations?: number;
|
|
3106
|
+
mean_arg_coverage?: number;
|
|
3107
|
+
};
|
|
3108
|
+
/** One delegation inside a turn — what was called and with WHICH ARGUMENT */
|
|
3109
|
+
type TrajectoryStep = {
|
|
3110
|
+
tool_name: string;
|
|
3111
|
+
arg_keys?: string[];
|
|
3112
|
+
instance?: string;
|
|
3113
|
+
args_recovered?: boolean;
|
|
3114
|
+
call_id?: string;
|
|
3115
|
+
};
|
|
3116
|
+
/** Optional body for a manual review. */
|
|
3117
|
+
type TriggerReviewRequest = {
|
|
3118
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
3119
|
+
organization_id?: string | null;
|
|
3120
|
+
/** Optional associated project selected by the caller. */
|
|
3121
|
+
project_id?: string | null;
|
|
3122
|
+
/** Optional associated task selected by the caller. */
|
|
3123
|
+
task_id?: string | null;
|
|
3124
|
+
/** Stable application slug that initiated the request. */
|
|
3125
|
+
source_app?: string | null;
|
|
3126
|
+
/** Stable feature slug within the source application. */
|
|
3127
|
+
source_feature?: string | null;
|
|
3128
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
3129
|
+
initiation?: ("user" | "auto") | null;
|
|
3130
|
+
example_ids?: string[] | null;
|
|
3131
|
+
};
|
|
3132
|
+
/** UnmappedValueMapping */
|
|
3133
|
+
type UnmappedValueMapping = {
|
|
3134
|
+
mapType?: "unmapped";
|
|
3135
|
+
};
|
|
3136
|
+
/** VariableResolution */
|
|
3137
|
+
type VariableResolution = {
|
|
3138
|
+
variables?: {
|
|
3139
|
+
[key: string]: JsonValue;
|
|
3140
|
+
};
|
|
3141
|
+
user_input?: string | null;
|
|
3142
|
+
verdicts?: VariableVerdict[];
|
|
3143
|
+
blocking?: boolean;
|
|
3144
|
+
spilled_text?: string | null;
|
|
3145
|
+
};
|
|
3146
|
+
/** VariableVerdict */
|
|
3147
|
+
type VariableVerdict = {
|
|
3148
|
+
variable: string;
|
|
3149
|
+
verdict: VariableVerdictKind;
|
|
3150
|
+
code_name?: string | null;
|
|
3151
|
+
message: string;
|
|
3152
|
+
caution?: boolean;
|
|
3153
|
+
blocking?: boolean;
|
|
3154
|
+
lossy?: boolean;
|
|
3155
|
+
};
|
|
3156
|
+
/** VariableVerdictKind */
|
|
3157
|
+
type VariableVerdictKind = "ok" | "renamed" | "default_used" | "intentionally_blank" | "spilled_to_user_input" | "dropped" | "missing_from_code" | "required_unmapped" | "type_mismatch";
|
|
3158
|
+
/** WireReplayArmIn */
|
|
3159
|
+
type WireReplayArmIn = {
|
|
3160
|
+
key?: string;
|
|
3161
|
+
delta?: {
|
|
3162
|
+
[key: string]: JsonValue;
|
|
3163
|
+
};
|
|
3164
|
+
};
|
|
3165
|
+
/** WireReplayArmResult */
|
|
3166
|
+
type WireReplayArmResult = {
|
|
3167
|
+
replay_step_id: string;
|
|
3168
|
+
arm_key: string;
|
|
3169
|
+
status: string;
|
|
3170
|
+
verdict?: string | null;
|
|
3171
|
+
sample_count?: number;
|
|
3172
|
+
cost_usd?: number;
|
|
3173
|
+
pinned_model?: string | null;
|
|
3174
|
+
faithful?: boolean | null;
|
|
3175
|
+
error?: string | null;
|
|
3176
|
+
};
|
|
3177
|
+
/** The control arm is added by the service and always runs — a caller */
|
|
3178
|
+
type WireReplayIn = {
|
|
3179
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
3180
|
+
organization_id?: string | null;
|
|
3181
|
+
/** Optional associated project selected by the caller. */
|
|
3182
|
+
project_id?: string | null;
|
|
3183
|
+
/** Optional associated task selected by the caller. */
|
|
3184
|
+
task_id?: string | null;
|
|
3185
|
+
/** Stable application slug that initiated the request. */
|
|
3186
|
+
source_app?: string | null;
|
|
3187
|
+
/** Stable feature slug within the source application. */
|
|
3188
|
+
source_feature?: string | null;
|
|
3189
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
3190
|
+
initiation?: ("user" | "auto") | null;
|
|
3191
|
+
arms?: WireReplayArmIn[];
|
|
3192
|
+
samples?: number;
|
|
3193
|
+
finding_id?: string | null;
|
|
3194
|
+
judge?: boolean;
|
|
3195
|
+
};
|
|
3196
|
+
/** WireReplayResult */
|
|
3197
|
+
type WireReplayResult = {
|
|
3198
|
+
replay_group_id: string;
|
|
3199
|
+
snapshot_id: string;
|
|
3200
|
+
arms?: WireReplayArmResult[];
|
|
3201
|
+
total_cost_usd?: number;
|
|
3202
|
+
reason?: string | null;
|
|
3203
|
+
};
|
|
3204
|
+
/** One ARM of a Level-1 wire replay (`hindsight.replay_step`, C-16). */
|
|
3205
|
+
type WireReplayStepOut = {
|
|
3206
|
+
id: string;
|
|
3207
|
+
replay_group_id: string;
|
|
3208
|
+
arm_key: string;
|
|
3209
|
+
delta: {
|
|
3210
|
+
[key: string]: unknown;
|
|
3211
|
+
};
|
|
3212
|
+
pinned_model?: string | null;
|
|
3213
|
+
pinned_params: {
|
|
3214
|
+
[key: string]: unknown;
|
|
3215
|
+
};
|
|
3216
|
+
sample_count?: number;
|
|
3217
|
+
samples: {
|
|
3218
|
+
[key: string]: unknown;
|
|
3219
|
+
}[];
|
|
3220
|
+
output_kind?: string;
|
|
3221
|
+
cost_usd?: number;
|
|
3222
|
+
fidelity: {
|
|
3223
|
+
[key: string]: unknown;
|
|
3224
|
+
};
|
|
3225
|
+
verdicts: {
|
|
3226
|
+
[key: string]: unknown;
|
|
3227
|
+
};
|
|
3228
|
+
verdict?: string | null;
|
|
3229
|
+
status: string;
|
|
3230
|
+
error?: {
|
|
3231
|
+
[key: string]: unknown;
|
|
3232
|
+
} | null;
|
|
3233
|
+
created_at?: string | null;
|
|
3234
|
+
started_at?: string | null;
|
|
3235
|
+
completed_at?: string | null;
|
|
3236
|
+
};
|
|
3237
|
+
/** WorkflowImpactReport */
|
|
3238
|
+
type WorkflowImpactReport = {
|
|
3239
|
+
verdicts?: WorkflowImpactVerdict[];
|
|
3240
|
+
withheld?: WorkflowImpactWithheld;
|
|
3241
|
+
workflows_examined?: number;
|
|
3242
|
+
computed_at: string;
|
|
3243
|
+
};
|
|
3244
|
+
/** ``workflow_ids`` narrows the read; omitted = every workflow-held rung */
|
|
3245
|
+
type WorkflowImpactRequest = {
|
|
3246
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
3247
|
+
organization_id?: string | null;
|
|
3248
|
+
/** Optional associated project selected by the caller. */
|
|
3249
|
+
project_id?: string | null;
|
|
3250
|
+
/** Optional associated task selected by the caller. */
|
|
3251
|
+
task_id?: string | null;
|
|
3252
|
+
/** Stable application slug that initiated the request. */
|
|
3253
|
+
source_app?: string | null;
|
|
3254
|
+
/** Stable feature slug within the source application. */
|
|
3255
|
+
source_feature?: string | null;
|
|
3256
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
3257
|
+
initiation?: ("user" | "auto") | null;
|
|
3258
|
+
workflow_ids?: string[] | null;
|
|
3259
|
+
};
|
|
3260
|
+
/** WorkflowImpactVerdict */
|
|
3261
|
+
type WorkflowImpactVerdict = {
|
|
3262
|
+
holder_kind: "mandate_default" | "binding";
|
|
3263
|
+
row_id: string;
|
|
3264
|
+
mandate_key: string;
|
|
3265
|
+
principal_kind: "system" | "org" | "user";
|
|
3266
|
+
organization_id?: string | null;
|
|
3267
|
+
subject_user_id?: string | null;
|
|
3268
|
+
workflow_id: string;
|
|
3269
|
+
workflow_name: string;
|
|
3270
|
+
pinned_version_id?: string | null;
|
|
3271
|
+
pinned_version_number?: number | null;
|
|
3272
|
+
latest_version_id?: string | null;
|
|
3273
|
+
latest_version_number?: number | null;
|
|
3274
|
+
grade: "identical" | "green" | "orange" | "red";
|
|
3275
|
+
blocker?: ("tracks_latest" | "unreachable" | "set_aside") | null;
|
|
3276
|
+
set_aside_reason?: string | null;
|
|
3277
|
+
findings?: ImpactFinding[];
|
|
3278
|
+
breaks?: {
|
|
3279
|
+
[key: string]: "identical" | "green" | "orange" | "red";
|
|
3280
|
+
};
|
|
3281
|
+
contract_broken?: boolean;
|
|
3282
|
+
behind_latest?: boolean;
|
|
3283
|
+
};
|
|
3284
|
+
/** WorkflowImpactWithheld */
|
|
3285
|
+
type WorkflowImpactWithheld = {
|
|
3286
|
+
total?: number;
|
|
3287
|
+
by_principal_kind?: {
|
|
3288
|
+
[key: string]: number;
|
|
3289
|
+
};
|
|
3290
|
+
sentence?: string | null;
|
|
3291
|
+
};
|
|
3292
|
+
/** WorkflowStarterResult */
|
|
3293
|
+
type WorkflowStarterResult = {
|
|
3294
|
+
workflow_id: string;
|
|
3295
|
+
name: string;
|
|
3296
|
+
mandate_key: string;
|
|
3297
|
+
inputs?: string[];
|
|
3298
|
+
output_kind?: string | null;
|
|
3299
|
+
skipped?: WorkflowStarterSkipped[];
|
|
3300
|
+
studio_path: string;
|
|
3301
|
+
message: string;
|
|
3302
|
+
};
|
|
3303
|
+
/** WorkflowStarterSkipped */
|
|
3304
|
+
type WorkflowStarterSkipped = {
|
|
3305
|
+
name: string;
|
|
3306
|
+
reason: string;
|
|
3307
|
+
};
|
|
3308
|
+
/** YieldBreachOut */
|
|
3309
|
+
type YieldBreachOut = {
|
|
3310
|
+
producer_key: string;
|
|
3311
|
+
display_name: string;
|
|
3312
|
+
kind: string;
|
|
3313
|
+
urgency: string;
|
|
3314
|
+
headline: string;
|
|
3315
|
+
detail: string;
|
|
3316
|
+
fix: string;
|
|
3317
|
+
produced: number;
|
|
3318
|
+
accepted?: number | null;
|
|
3319
|
+
cost_usd?: number | null;
|
|
3320
|
+
door_href?: string | null;
|
|
3321
|
+
};
|
|
3322
|
+
/** YieldCheckOut */
|
|
3323
|
+
type YieldCheckOut = {
|
|
3324
|
+
/** clean | breached | no_addressee | error. `clean` means the pass RAN and found nothing — never confuse it with 'never ran'. */
|
|
3325
|
+
status: string;
|
|
3326
|
+
producers_checked?: number;
|
|
3327
|
+
assists_created?: number;
|
|
3328
|
+
breaches?: YieldBreachOut[];
|
|
3329
|
+
error?: string | null;
|
|
3330
|
+
};
|
|
3331
|
+
/** The thresholds the alarm uses, so the surface can show its own rules. */
|
|
3332
|
+
type YieldFloors = {
|
|
3333
|
+
min_produced_for_verdict?: number;
|
|
3334
|
+
yield_floor?: number;
|
|
3335
|
+
never_decided_min_age_days?: number;
|
|
3336
|
+
no_signal_min_cost_usd?: number;
|
|
3337
|
+
};
|
|
3338
|
+
/** MandateCatalogResponse */
|
|
3339
|
+
type aidream__api__routers__mandate_bindings__MandateCatalogResponse = {
|
|
3340
|
+
mandates: MandateSummaryResponse[];
|
|
3341
|
+
count: number;
|
|
3342
|
+
};
|
|
3343
|
+
/** EnrollRequest */
|
|
3344
|
+
type aidream__services__hindsight__enrollment__EnrollRequest = {
|
|
3345
|
+
/** Organization context for the request; omitted to use the authenticated context. */
|
|
3346
|
+
organization_id?: string | null;
|
|
3347
|
+
/** Optional associated project selected by the caller. */
|
|
3348
|
+
project_id?: string | null;
|
|
3349
|
+
/** Optional associated task selected by the caller. */
|
|
3350
|
+
task_id?: string | null;
|
|
3351
|
+
/** Stable application slug that initiated the request. */
|
|
3352
|
+
source_app?: string | null;
|
|
3353
|
+
/** Stable feature slug within the source application. */
|
|
3354
|
+
source_feature?: string | null;
|
|
3355
|
+
/** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
|
|
3356
|
+
initiation?: ("user" | "auto") | null;
|
|
3357
|
+
window_mode?: ("since_watermark" | "last_n_runs") | null;
|
|
3358
|
+
window_n?: number | null;
|
|
3359
|
+
lens_visibility?: ("with_context" | "unit_only") | null;
|
|
3360
|
+
subject_kind: "agent" | "workflow" | "tool" | "environment" | "orchestra" | "workflow_node";
|
|
3361
|
+
subject_id?: string | null;
|
|
3362
|
+
subject_ref?: string | null;
|
|
3363
|
+
subject_selector?: {
|
|
3364
|
+
[key: string]: string;
|
|
3365
|
+
};
|
|
3366
|
+
display_name?: string | null;
|
|
3367
|
+
review_every_n?: number;
|
|
3368
|
+
max_examples_per_review?: number;
|
|
3369
|
+
goal?: string | null;
|
|
3370
|
+
lens_config?: {
|
|
3371
|
+
[key: string]: unknown;
|
|
3372
|
+
};
|
|
3373
|
+
backfill_days?: number;
|
|
3374
|
+
};
|
|
3375
|
+
type GetAgentCalibrationArgs = {
|
|
3376
|
+
path: {
|
|
3377
|
+
agent_id: string;
|
|
3378
|
+
};
|
|
3379
|
+
query?: {
|
|
3380
|
+
model?: string | null;
|
|
3381
|
+
method?: string | null;
|
|
3382
|
+
};
|
|
3383
|
+
};
|
|
3384
|
+
type GetAgentCalibrationResult = DecisionCalibrationReport;
|
|
3385
|
+
/** Get Agent Calibration */
|
|
3386
|
+
/** `GET /decision-review/agents/{agent_id}/calibration` · aidream · auth guest · org required */
|
|
3387
|
+
declare function getAgentCalibration(api: Api, args: GetAgentCalibrationArgs, options?: CallOptions): Promise<GetAgentCalibrationResult>;
|
|
3388
|
+
type CreateDecisionArgs = {
|
|
3389
|
+
body: DecisionRunRequest;
|
|
3390
|
+
};
|
|
3391
|
+
type CreateDecisionResult = unknown;
|
|
3392
|
+
/** Create Decision */
|
|
3393
|
+
/** `POST /ai/decisions` · aidream · auth guest · org required · ndjson */
|
|
3394
|
+
declare function createDecision(api: Api, args: CreateDecisionArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
3395
|
+
type ReadDecisionArgs = {
|
|
3396
|
+
path: {
|
|
3397
|
+
execution_id: string;
|
|
3398
|
+
};
|
|
3399
|
+
};
|
|
3400
|
+
type ReadDecisionResult = DecisionResultPayload;
|
|
3401
|
+
/** Read Decision */
|
|
3402
|
+
/** `GET /ai/decisions/{execution_id}` · aidream · auth guest · org required */
|
|
3403
|
+
declare function readDecision(api: Api, args: ReadDecisionArgs, options?: CallOptions): Promise<ReadDecisionResult>;
|
|
3404
|
+
type ListEnrollmentsArgs = {
|
|
3405
|
+
query?: {
|
|
3406
|
+
status?: string | null;
|
|
3407
|
+
};
|
|
3408
|
+
};
|
|
3409
|
+
type ListEnrollmentsResult = EnrollmentOut[];
|
|
3410
|
+
/** List Enrollments */
|
|
3411
|
+
/** `GET /hindsight/enrollments` · aidream · auth guest · org optional */
|
|
3412
|
+
declare function listEnrollments(api: Api, args?: ListEnrollmentsArgs, options?: CallOptions): Promise<ListEnrollmentsResult>;
|
|
3413
|
+
type EnrollArgs = {
|
|
3414
|
+
body: aidream__services__hindsight__enrollment__EnrollRequest;
|
|
3415
|
+
};
|
|
3416
|
+
type EnrollResult = EnrollmentOut;
|
|
3417
|
+
/** Enroll */
|
|
3418
|
+
/** `POST /hindsight/enrollments` · aidream · auth guest · org required */
|
|
3419
|
+
declare function enroll(api: Api, args: EnrollArgs, options?: CallOptions): Promise<EnrollResult>;
|
|
3420
|
+
type GetEnrollmentArgs = {
|
|
3421
|
+
path: {
|
|
3422
|
+
enrollment_id: string;
|
|
3423
|
+
};
|
|
3424
|
+
};
|
|
3425
|
+
type GetEnrollmentResult = EnrollmentDetailOut;
|
|
3426
|
+
/** Get Enrollment */
|
|
3427
|
+
/** `GET /hindsight/enrollments/{enrollment_id}` · aidream · auth guest · org optional */
|
|
3428
|
+
declare function getEnrollment(api: Api, args: GetEnrollmentArgs, options?: CallOptions): Promise<GetEnrollmentResult>;
|
|
3429
|
+
type PatchEnrollmentArgs = {
|
|
3430
|
+
path: {
|
|
3431
|
+
enrollment_id: string;
|
|
3432
|
+
};
|
|
3433
|
+
body: EnrollmentUpdateRequest;
|
|
3434
|
+
};
|
|
3435
|
+
type PatchEnrollmentResult = EnrollmentOut;
|
|
3436
|
+
/** Patch Enrollment */
|
|
3437
|
+
/** `PATCH /hindsight/enrollments/{enrollment_id}` · aidream · auth guest · org required */
|
|
3438
|
+
declare function patchEnrollment(api: Api, args: PatchEnrollmentArgs, options?: CallOptions): Promise<PatchEnrollmentResult>;
|
|
3439
|
+
type ArchiveEnrollmentArgs = {
|
|
3440
|
+
path: {
|
|
3441
|
+
enrollment_id: string;
|
|
3442
|
+
};
|
|
3443
|
+
};
|
|
3444
|
+
type ArchiveEnrollmentResult = ArchiveOut;
|
|
3445
|
+
/** Archive Enrollment */
|
|
3446
|
+
/** `DELETE /hindsight/enrollments/{enrollment_id}` · aidream · auth guest · org required */
|
|
3447
|
+
declare function archiveEnrollment(api: Api, args: ArchiveEnrollmentArgs, options?: CallOptions): Promise<ArchiveEnrollmentResult>;
|
|
3448
|
+
type GetPendingExamplesArgs = {
|
|
3449
|
+
path: {
|
|
3450
|
+
enrollment_id: string;
|
|
3451
|
+
};
|
|
3452
|
+
};
|
|
3453
|
+
type GetPendingExamplesResult = PendingExamplesOut;
|
|
3454
|
+
/** Get Pending Examples */
|
|
3455
|
+
/** `GET /hindsight/enrollments/{enrollment_id}/pending-examples` · aidream · auth guest · org optional */
|
|
3456
|
+
declare function getPendingExamples(api: Api, args: GetPendingExamplesArgs, options?: CallOptions): Promise<GetPendingExamplesResult>;
|
|
3457
|
+
type HindsightCostsArgs = {
|
|
3458
|
+
[key: string]: never;
|
|
3459
|
+
};
|
|
3460
|
+
type HindsightCostsResult = HindsightCostsOut;
|
|
3461
|
+
/** Hindsight Costs */
|
|
3462
|
+
/** `GET /hindsight/costs` · aidream · auth guest · org optional */
|
|
3463
|
+
declare function hindsightCosts(api: Api, args?: HindsightCostsArgs, options?: CallOptions): Promise<HindsightCostsResult>;
|
|
3464
|
+
type TriggerReviewArgs = {
|
|
3465
|
+
path: {
|
|
3466
|
+
enrollment_id: string;
|
|
3467
|
+
};
|
|
3468
|
+
body?: TriggerReviewRequest | null;
|
|
3469
|
+
};
|
|
3470
|
+
type TriggerReviewResult = ReviewRunResult;
|
|
3471
|
+
/** Trigger Review */
|
|
3472
|
+
/** `POST /hindsight/enrollments/{enrollment_id}/review` · aidream · auth guest · org required */
|
|
3473
|
+
declare function triggerReview(api: Api, args: TriggerReviewArgs, options?: CallOptions): Promise<TriggerReviewResult>;
|
|
3474
|
+
type GetReviewArgs = {
|
|
3475
|
+
path: {
|
|
3476
|
+
review_id: string;
|
|
3477
|
+
};
|
|
3478
|
+
};
|
|
3479
|
+
type GetReviewResult = ReviewDetailOut;
|
|
3480
|
+
/** Get Review */
|
|
3481
|
+
/** `GET /hindsight/reviews/{review_id}` · aidream · auth guest · org optional */
|
|
3482
|
+
declare function getReview(api: Api, args: GetReviewArgs, options?: CallOptions): Promise<GetReviewResult>;
|
|
3483
|
+
type GetThreadArgs = {
|
|
3484
|
+
path: {
|
|
3485
|
+
review_id: string;
|
|
3486
|
+
};
|
|
3487
|
+
};
|
|
3488
|
+
type GetThreadResult = ReviewThreadOut;
|
|
3489
|
+
/** Get Thread */
|
|
3490
|
+
/** `GET /hindsight/reviews/{review_id}/thread` · aidream · auth guest · org optional */
|
|
3491
|
+
declare function getThread(api: Api, args: GetThreadArgs, options?: CallOptions): Promise<GetThreadResult>;
|
|
3492
|
+
type DiscussReviewRouteArgs = {
|
|
3493
|
+
path: {
|
|
3494
|
+
review_id: string;
|
|
3495
|
+
};
|
|
3496
|
+
body: DiscussRequest;
|
|
3497
|
+
};
|
|
3498
|
+
type DiscussReviewRouteResult = DiscussOut;
|
|
3499
|
+
/** Discuss Review Route */
|
|
3500
|
+
/** `POST /hindsight/reviews/{review_id}/discuss` · aidream · auth guest · org required */
|
|
3501
|
+
declare function discussReviewRoute(api: Api, args: DiscussReviewRouteArgs, options?: CallOptions): Promise<DiscussReviewRouteResult>;
|
|
3502
|
+
type DiscussFindingRouteArgs = {
|
|
3503
|
+
path: {
|
|
3504
|
+
finding_id: string;
|
|
3505
|
+
};
|
|
3506
|
+
body: DiscussRequest;
|
|
3507
|
+
};
|
|
3508
|
+
type DiscussFindingRouteResult = DiscussOut;
|
|
3509
|
+
/** Discuss Finding Route */
|
|
3510
|
+
/** `POST /hindsight/findings/{finding_id}/discuss` · aidream · auth guest · org required */
|
|
3511
|
+
declare function discussFindingRoute(api: Api, args: DiscussFindingRouteArgs, options?: CallOptions): Promise<DiscussFindingRouteResult>;
|
|
3512
|
+
type ApplyFindingRouteArgs = {
|
|
3513
|
+
path: {
|
|
3514
|
+
finding_id: string;
|
|
3515
|
+
};
|
|
3516
|
+
};
|
|
3517
|
+
type ApplyFindingRouteResult = FindingDecisionOut;
|
|
3518
|
+
/** Apply Finding Route */
|
|
3519
|
+
/** `POST /hindsight/findings/{finding_id}/apply` · aidream · auth guest · org required */
|
|
3520
|
+
declare function applyFindingRoute(api: Api, args: ApplyFindingRouteArgs, options?: CallOptions): Promise<ApplyFindingRouteResult>;
|
|
3521
|
+
type RevertFindingRouteArgs = {
|
|
3522
|
+
path: {
|
|
3523
|
+
finding_id: string;
|
|
3524
|
+
};
|
|
3525
|
+
};
|
|
3526
|
+
type RevertFindingRouteResult = FindingRevertOut;
|
|
3527
|
+
/** Revert Finding Route */
|
|
3528
|
+
/** `POST /hindsight/findings/{finding_id}/revert` · aidream · auth guest · org required */
|
|
3529
|
+
declare function revertFindingRoute(api: Api, args: RevertFindingRouteArgs, options?: CallOptions): Promise<RevertFindingRouteResult>;
|
|
3530
|
+
type ProveFindingRouteArgs = {
|
|
3531
|
+
path: {
|
|
3532
|
+
finding_id: string;
|
|
3533
|
+
};
|
|
3534
|
+
query?: {
|
|
3535
|
+
samples?: number;
|
|
3536
|
+
};
|
|
3537
|
+
};
|
|
3538
|
+
type ProveFindingRouteResult = ProofResult;
|
|
3539
|
+
/** Prove Finding Route */
|
|
3540
|
+
/** `POST /hindsight/findings/{finding_id}/prove` · aidream · auth guest · org required */
|
|
3541
|
+
declare function proveFindingRoute(api: Api, args: ProveFindingRouteArgs, options?: CallOptions): Promise<ProveFindingRouteResult>;
|
|
3542
|
+
type RejectFindingRouteArgs = {
|
|
3543
|
+
path: {
|
|
3544
|
+
finding_id: string;
|
|
3545
|
+
};
|
|
3546
|
+
};
|
|
3547
|
+
type RejectFindingRouteResult = FindingDecisionOut;
|
|
3548
|
+
/** Reject Finding Route */
|
|
3549
|
+
/** `POST /hindsight/findings/{finding_id}/reject` · aidream · auth guest · org required */
|
|
3550
|
+
declare function rejectFindingRoute(api: Api, args: RejectFindingRouteArgs, options?: CallOptions): Promise<RejectFindingRouteResult>;
|
|
3551
|
+
type TriggerReplayArgs = {
|
|
3552
|
+
path: {
|
|
3553
|
+
enrollment_id: string;
|
|
3554
|
+
};
|
|
3555
|
+
body: ReplayRequest;
|
|
3556
|
+
};
|
|
3557
|
+
type TriggerReplayResult = ReplayRunResult;
|
|
3558
|
+
/** Trigger Replay */
|
|
3559
|
+
/** `POST /hindsight/enrollments/{enrollment_id}/replay` · aidream · auth guest · org required */
|
|
3560
|
+
declare function triggerReplay(api: Api, args: TriggerReplayArgs, options?: CallOptions): Promise<TriggerReplayResult>;
|
|
3561
|
+
type GetReplayArgs = {
|
|
3562
|
+
path: {
|
|
3563
|
+
replay_id: string;
|
|
3564
|
+
};
|
|
3565
|
+
};
|
|
3566
|
+
type GetReplayResult = ReplayOut;
|
|
3567
|
+
/** Get Replay */
|
|
3568
|
+
/** `GET /hindsight/replays/{replay_id}` · aidream · auth guest · org optional */
|
|
3569
|
+
declare function getReplay(api: Api, args: GetReplayArgs, options?: CallOptions): Promise<GetReplayResult>;
|
|
3570
|
+
type GetChangeHistoryArgs = {
|
|
3571
|
+
query?: {
|
|
3572
|
+
unit_token?: ("agent" | "tool" | "workflow") | null;
|
|
3573
|
+
unit_id?: string | null;
|
|
3574
|
+
change_role?: ("apply" | "revert" | "edit") | null;
|
|
3575
|
+
actor_tier?: ("system" | "agent" | "user" | "code" | "ai" | "human") | null;
|
|
3576
|
+
with_findings_only?: boolean;
|
|
3577
|
+
limit?: number;
|
|
3578
|
+
offset?: number;
|
|
3579
|
+
};
|
|
3580
|
+
};
|
|
3581
|
+
type GetChangeHistoryResult = ChangeHistoryOut;
|
|
3582
|
+
/** Get Change History */
|
|
3583
|
+
/** `GET /hindsight/change-history` · aidream · auth guest · org optional */
|
|
3584
|
+
declare function getChangeHistory(api: Api, args?: GetChangeHistoryArgs, options?: CallOptions): Promise<GetChangeHistoryResult>;
|
|
3585
|
+
type GetFindingEffectivenessArgs = {
|
|
3586
|
+
query?: {
|
|
3587
|
+
unit_token?: ("agent" | "tool" | "workflow") | null;
|
|
3588
|
+
unit_id?: string | null;
|
|
3589
|
+
lever?: ("instructions" | "resources" | "tools" | "architecture" | "stopping_condition") | null;
|
|
3590
|
+
};
|
|
3591
|
+
};
|
|
3592
|
+
type GetFindingEffectivenessResult = FindingEffectivenessRow[];
|
|
3593
|
+
/** Get Finding Effectiveness */
|
|
3594
|
+
/** `GET /hindsight/finding-effectiveness` · aidream · auth guest · org optional */
|
|
3595
|
+
declare function getFindingEffectiveness(api: Api, args?: GetFindingEffectivenessArgs, options?: CallOptions): Promise<GetFindingEffectivenessResult>;
|
|
3596
|
+
type ListToolSubjectsArgs = {
|
|
3597
|
+
query?: {
|
|
3598
|
+
hours?: number;
|
|
3599
|
+
};
|
|
3600
|
+
};
|
|
3601
|
+
type ListToolSubjectsResult = ToolSubjectOut[];
|
|
3602
|
+
/** List Tool Subjects */
|
|
3603
|
+
/** `GET /hindsight/subjects/tools` · aidream · auth guest · org optional */
|
|
3604
|
+
declare function listToolSubjects(api: Api, args?: ListToolSubjectsArgs, options?: CallOptions): Promise<ListToolSubjectsResult>;
|
|
3605
|
+
type TriggerWireReplayArgs = {
|
|
3606
|
+
path: {
|
|
3607
|
+
snapshot_id: string;
|
|
3608
|
+
};
|
|
3609
|
+
body: WireReplayIn;
|
|
3610
|
+
};
|
|
3611
|
+
type TriggerWireReplayResult = WireReplayResult;
|
|
3612
|
+
/** Trigger Wire Replay */
|
|
3613
|
+
/** `POST /hindsight/snapshots/{snapshot_id}/wire-replay` · aidream · auth guest · org required */
|
|
3614
|
+
declare function triggerWireReplay(api: Api, args: TriggerWireReplayArgs, options?: CallOptions): Promise<TriggerWireReplayResult>;
|
|
3615
|
+
type ListWireReplaysArgs = {
|
|
3616
|
+
path: {
|
|
3617
|
+
snapshot_id: string;
|
|
3618
|
+
};
|
|
3619
|
+
};
|
|
3620
|
+
type ListWireReplaysResult = WireReplayStepOut[];
|
|
3621
|
+
/** List Wire Replays */
|
|
3622
|
+
/** `GET /hindsight/snapshots/{snapshot_id}/wire-replays` · aidream · auth guest · org optional */
|
|
3623
|
+
declare function listWireReplays(api: Api, args: ListWireReplaysArgs, options?: CallOptions): Promise<ListWireReplaysResult>;
|
|
3624
|
+
type GetWireReplayGroupArgs = {
|
|
3625
|
+
path: {
|
|
3626
|
+
replay_group_id: string;
|
|
3627
|
+
};
|
|
3628
|
+
};
|
|
3629
|
+
type GetWireReplayGroupResult = WireReplayStepOut[];
|
|
3630
|
+
/** Get Wire Replay Group */
|
|
3631
|
+
/** `GET /hindsight/wire-replays/{replay_group_id}` · aidream · auth guest · org optional */
|
|
3632
|
+
declare function getWireReplayGroup(api: Api, args: GetWireReplayGroupArgs, options?: CallOptions): Promise<GetWireReplayGroupResult>;
|
|
3633
|
+
type CreateSnapshotRegressionCaseArgs = {
|
|
3634
|
+
path: {
|
|
3635
|
+
snapshot_id: string;
|
|
3636
|
+
};
|
|
3637
|
+
body: RegressionCaseIn;
|
|
3638
|
+
};
|
|
3639
|
+
type CreateSnapshotRegressionCaseResult = RegressionCaseOut;
|
|
3640
|
+
/** Create Snapshot Regression Case */
|
|
3641
|
+
/** `POST /hindsight/snapshots/{snapshot_id}/regression-case` · aidream · auth guest · org required */
|
|
3642
|
+
declare function createSnapshotRegressionCase(api: Api, args: CreateSnapshotRegressionCaseArgs, options?: CallOptions): Promise<CreateSnapshotRegressionCaseResult>;
|
|
3643
|
+
type ListCasesArgs = {
|
|
3644
|
+
query?: {
|
|
3645
|
+
snapshot_id?: string | null;
|
|
3646
|
+
origin_finding_id?: string | null;
|
|
3647
|
+
status?: string | null;
|
|
3648
|
+
limit?: number;
|
|
3649
|
+
offset?: number;
|
|
3650
|
+
};
|
|
3651
|
+
};
|
|
3652
|
+
type ListCasesResult = RegressionCaseOut[];
|
|
3653
|
+
/** List Cases */
|
|
3654
|
+
/** `GET /hindsight/regression-cases` · aidream · auth guest · org optional */
|
|
3655
|
+
declare function listCases(api: Api, args?: ListCasesArgs, options?: CallOptions): Promise<ListCasesResult>;
|
|
3656
|
+
type GetCaseArgs = {
|
|
3657
|
+
path: {
|
|
3658
|
+
case_id: string;
|
|
3659
|
+
};
|
|
3660
|
+
};
|
|
3661
|
+
type GetCaseResult = RegressionCaseOut;
|
|
3662
|
+
/** Get Case */
|
|
3663
|
+
/** `GET /hindsight/regression-cases/{case_id}` · aidream · auth guest · org optional */
|
|
3664
|
+
declare function getCase(api: Api, args: GetCaseArgs, options?: CallOptions): Promise<GetCaseResult>;
|
|
3665
|
+
type RunCaseArgs = {
|
|
3666
|
+
path: {
|
|
3667
|
+
case_id: string;
|
|
3668
|
+
};
|
|
3669
|
+
body: RegressionCaseRunIn;
|
|
3670
|
+
};
|
|
3671
|
+
type RunCaseResult = RegressionRunResult;
|
|
3672
|
+
/** Run Case */
|
|
3673
|
+
/** `POST /hindsight/regression-cases/{case_id}/run` · aidream · auth guest · org required */
|
|
3674
|
+
declare function runCase(api: Api, args: RunCaseArgs, options?: CallOptions): Promise<RunCaseResult>;
|
|
3675
|
+
type SetCaseStatusArgs = {
|
|
3676
|
+
path: {
|
|
3677
|
+
case_id: string;
|
|
3678
|
+
};
|
|
3679
|
+
body: RegressionCaseStatusIn;
|
|
3680
|
+
};
|
|
3681
|
+
type SetCaseStatusResult = RegressionCaseOut;
|
|
3682
|
+
/** Set Case Status */
|
|
3683
|
+
/** `POST /hindsight/regression-cases/{case_id}/status` · aidream · auth guest · org required */
|
|
3684
|
+
declare function setCaseStatus(api: Api, args: SetCaseStatusArgs, options?: CallOptions): Promise<SetCaseStatusResult>;
|
|
3685
|
+
type TriggerShadowRecompilationArgs = {
|
|
3686
|
+
body: ShadowSweepIn;
|
|
3687
|
+
};
|
|
3688
|
+
type TriggerShadowRecompilationResult = ShadowSweepReport;
|
|
3689
|
+
/** Trigger Shadow Recompilation */
|
|
3690
|
+
/** `POST /hindsight/shadow-recompilation` · aidream · auth guest · org required */
|
|
3691
|
+
declare function triggerShadowRecompilation(api: Api, args: TriggerShadowRecompilationArgs, options?: CallOptions): Promise<TriggerShadowRecompilationResult>;
|
|
3692
|
+
type ListCrystallizationSubjectsArgs = {
|
|
3693
|
+
[key: string]: never;
|
|
3694
|
+
};
|
|
3695
|
+
type ListCrystallizationSubjectsResult = CrystallizationSubjectOut[];
|
|
3696
|
+
/** List Crystallization Subjects */
|
|
3697
|
+
/** `GET /hindsight/crystallization/subjects` · aidream · auth guest · org optional */
|
|
3698
|
+
declare function listCrystallizationSubjects(api: Api, args?: ListCrystallizationSubjectsArgs, options?: CallOptions): Promise<ListCrystallizationSubjectsResult>;
|
|
3699
|
+
type RunCrystallizationPassArgs = {
|
|
3700
|
+
body: CrystallizationRunIn;
|
|
3701
|
+
};
|
|
3702
|
+
type RunCrystallizationPassResult = CrystallizationResult;
|
|
3703
|
+
/** Run Crystallization Pass */
|
|
3704
|
+
/** `POST /hindsight/crystallization/run` · aidream · auth guest · org required */
|
|
3705
|
+
declare function runCrystallizationPass(api: Api, args: RunCrystallizationPassArgs, options?: CallOptions): Promise<RunCrystallizationPassResult>;
|
|
3706
|
+
type TriggerCrystallizationSweepArgs = {
|
|
3707
|
+
[key: string]: never;
|
|
3708
|
+
};
|
|
3709
|
+
type TriggerCrystallizationSweepResult = CrystallizationSweepResult;
|
|
3710
|
+
/** Trigger Crystallization Sweep */
|
|
3711
|
+
/** `POST /hindsight/crystallization/sweep` · aidream · auth guest · org required */
|
|
3712
|
+
declare function triggerCrystallizationSweep(api: Api, args?: TriggerCrystallizationSweepArgs, options?: CallOptions): Promise<TriggerCrystallizationSweepResult>;
|
|
3713
|
+
type TriggerDrainArgs = {
|
|
3714
|
+
[key: string]: never;
|
|
3715
|
+
};
|
|
3716
|
+
type TriggerDrainResult = DrainResult;
|
|
3717
|
+
/** Trigger Drain */
|
|
3718
|
+
/** `POST /hindsight/drain` · aidream · auth guest · org required */
|
|
3719
|
+
declare function triggerDrain(api: Api, args?: TriggerDrainArgs, options?: CallOptions): Promise<TriggerDrainResult>;
|
|
3720
|
+
type RunInitialArgs = {
|
|
3721
|
+
body: InitialIterationRequest;
|
|
3722
|
+
};
|
|
3723
|
+
type RunInitialResult = unknown;
|
|
3724
|
+
/** Run Initial */
|
|
3725
|
+
/** `POST /agent-iteration/run-initial` · aidream · auth guest · org required · ndjson */
|
|
3726
|
+
declare function runInitial(api: Api, args: RunInitialArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
3727
|
+
type RunFeedbackArgs = {
|
|
3728
|
+
body: FeedbackIterationRequest;
|
|
3729
|
+
};
|
|
3730
|
+
type RunFeedbackResult = unknown;
|
|
3731
|
+
/** Run Feedback */
|
|
3732
|
+
/** `POST /agent-iteration/feedback` · aidream · auth guest · org required · ndjson */
|
|
3733
|
+
declare function runFeedback(api: Api, args: RunFeedbackArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
3734
|
+
type CommitChoiceArgs = {
|
|
3735
|
+
body: CommitChoiceRequest;
|
|
3736
|
+
};
|
|
3737
|
+
type CommitChoiceResult = IterationSession_Output;
|
|
3738
|
+
/** Commit Choice */
|
|
3739
|
+
/** `POST /agent-iteration/commit-choice` · aidream · auth guest · org required */
|
|
3740
|
+
declare function commitChoice(api: Api, args: CommitChoiceArgs, options?: CallOptions): Promise<CommitChoiceResult>;
|
|
3741
|
+
type MandateVariableVerdictsArgs = {
|
|
3742
|
+
path: {
|
|
3743
|
+
mandate_key: string;
|
|
3744
|
+
};
|
|
3745
|
+
body: MandateVariableVerdictRequest;
|
|
3746
|
+
};
|
|
3747
|
+
type MandateVariableVerdictsResult = VariableResolution;
|
|
3748
|
+
/** Mandate Variable Verdicts */
|
|
3749
|
+
/** `POST /mandates/{mandate_key}/variable-verdicts` · aidream · auth admin · org required */
|
|
3750
|
+
declare function mandateVariableVerdicts(api: Api, args: MandateVariableVerdictsArgs, options?: CallOptions): Promise<MandateVariableVerdictsResult>;
|
|
3751
|
+
type GetMandateCodeTruthArgs = {
|
|
3752
|
+
[key: string]: never;
|
|
3753
|
+
};
|
|
3754
|
+
type GetMandateCodeTruthResult = MandateCodeTruthReport;
|
|
3755
|
+
/** Get Mandate Code Truth */
|
|
3756
|
+
/** `GET /mandates/code-truth` · aidream · auth admin · org exempt */
|
|
3757
|
+
declare function getMandateCodeTruth(api: Api, args?: GetMandateCodeTruthArgs, options?: CallOptions): Promise<GetMandateCodeTruthResult>;
|
|
3758
|
+
type GetMandateReferenceBoardArgs = {
|
|
3759
|
+
[key: string]: never;
|
|
3760
|
+
};
|
|
3761
|
+
type GetMandateReferenceBoardResult = MandateReferenceBoard;
|
|
3762
|
+
/** Get Mandate Reference Board */
|
|
3763
|
+
/** `GET /mandates/references/board` · aidream · auth admin · org exempt */
|
|
3764
|
+
declare function getMandateReferenceBoard(api: Api, args?: GetMandateReferenceBoardArgs, options?: CallOptions): Promise<GetMandateReferenceBoardResult>;
|
|
3765
|
+
type GetMandateReferencesArgs = {
|
|
3766
|
+
path: {
|
|
3767
|
+
mandate_key: string;
|
|
3768
|
+
};
|
|
3769
|
+
};
|
|
3770
|
+
type GetMandateReferencesResult = MandateReferenceReport;
|
|
3771
|
+
/** Get Mandate References */
|
|
3772
|
+
/** `GET /mandates/{mandate_key}/references` · aidream · auth admin · org exempt */
|
|
3773
|
+
declare function getMandateReferences(api: Api, args: GetMandateReferencesArgs, options?: CallOptions): Promise<GetMandateReferencesResult>;
|
|
3774
|
+
type PromoteExemplarTestResultArgs = {
|
|
3775
|
+
path: {
|
|
3776
|
+
mandate_key: string;
|
|
3777
|
+
exemplar_id: string;
|
|
3778
|
+
};
|
|
3779
|
+
body: MandateResultPromoteRequest;
|
|
3780
|
+
};
|
|
3781
|
+
type PromoteExemplarTestResultResult = MandateResultPromotion;
|
|
3782
|
+
/** Promote Exemplar Test Result */
|
|
3783
|
+
/** `POST /mandates/{mandate_key}/exemplars/{exemplar_id}/promote` · aidream · auth admin · org required */
|
|
3784
|
+
declare function promoteExemplarTestResult(api: Api, args: PromoteExemplarTestResultArgs, options?: CallOptions): Promise<PromoteExemplarTestResultResult>;
|
|
3785
|
+
type TestMandateAllExemplarsArgs = {
|
|
3786
|
+
path: {
|
|
3787
|
+
mandate_key: string;
|
|
3788
|
+
};
|
|
3789
|
+
body: MandateTestBatchRequest;
|
|
3790
|
+
};
|
|
3791
|
+
type TestMandateAllExemplarsResult = MandateTestBatchResponse;
|
|
3792
|
+
/** Test Mandate All Exemplars */
|
|
3793
|
+
/** `POST /mandates/{mandate_key}/tests` · aidream · auth admin · org required */
|
|
3794
|
+
declare function testMandateAllExemplars(api: Api, args: TestMandateAllExemplarsArgs, options?: CallOptions): Promise<TestMandateAllExemplarsResult>;
|
|
3795
|
+
type TestMandateArgs = {
|
|
3796
|
+
path: {
|
|
3797
|
+
mandate_key: string;
|
|
3798
|
+
};
|
|
3799
|
+
body: MandateTestRequest;
|
|
3800
|
+
};
|
|
3801
|
+
type TestMandateResult = MandateTestResult;
|
|
3802
|
+
/** Test Mandate */
|
|
3803
|
+
/** `POST /mandates/{mandate_key}/test` · aidream · auth admin · org required */
|
|
3804
|
+
declare function testMandate(api: Api, args: TestMandateArgs, options?: CallOptions): Promise<TestMandateResult>;
|
|
3805
|
+
type AdminListEnrollmentsArgs = {
|
|
3806
|
+
query?: {
|
|
3807
|
+
status?: string | null;
|
|
3808
|
+
};
|
|
3809
|
+
};
|
|
3810
|
+
type AdminListEnrollmentsResult = EnrollmentOut[];
|
|
3811
|
+
/** Admin List Enrollments */
|
|
3812
|
+
/** `GET /admin/hindsight/enrollments` · aidream · auth admin · org exempt */
|
|
3813
|
+
declare function adminListEnrollments(api: Api, args?: AdminListEnrollmentsArgs, options?: CallOptions): Promise<AdminListEnrollmentsResult>;
|
|
3814
|
+
type AdminGetEnrollmentArgs = {
|
|
3815
|
+
path: {
|
|
3816
|
+
enrollment_id: string;
|
|
3817
|
+
};
|
|
3818
|
+
};
|
|
3819
|
+
type AdminGetEnrollmentResult = EnrollmentDetailOut;
|
|
3820
|
+
/** Admin Get Enrollment */
|
|
3821
|
+
/** `GET /admin/hindsight/enrollments/{enrollment_id}` · aidream · auth admin · org exempt */
|
|
3822
|
+
declare function adminGetEnrollment(api: Api, args: AdminGetEnrollmentArgs, options?: CallOptions): Promise<AdminGetEnrollmentResult>;
|
|
3823
|
+
type AdminGetReviewArgs = {
|
|
3824
|
+
path: {
|
|
3825
|
+
review_id: string;
|
|
3826
|
+
};
|
|
3827
|
+
};
|
|
3828
|
+
type AdminGetReviewResult = ReviewDetailOut;
|
|
3829
|
+
/** Admin Get Review */
|
|
3830
|
+
/** `GET /admin/hindsight/reviews/{review_id}` · aidream · auth admin · org exempt */
|
|
3831
|
+
declare function adminGetReview(api: Api, args: AdminGetReviewArgs, options?: CallOptions): Promise<AdminGetReviewResult>;
|
|
3832
|
+
type MandateCoverageArgs = {
|
|
3833
|
+
query?: {
|
|
3834
|
+
organization_id?: string | null;
|
|
3835
|
+
};
|
|
3836
|
+
};
|
|
3837
|
+
type MandateCoverageResult = MandateCoverageResponse;
|
|
3838
|
+
/** Mandate Coverage */
|
|
3839
|
+
/** `GET /mandates/coverage` · aidream · auth admin · org exempt */
|
|
3840
|
+
declare function mandateCoverage(api: Api, args?: MandateCoverageArgs, options?: CallOptions): Promise<MandateCoverageResult>;
|
|
3841
|
+
type MandateCoverageStatesArgs = {
|
|
3842
|
+
query?: {
|
|
3843
|
+
organization_id?: string | null;
|
|
3844
|
+
};
|
|
3845
|
+
};
|
|
3846
|
+
type MandateCoverageStatesResult = MandateCoverageStatesResponse;
|
|
3847
|
+
/** Mandate Coverage States */
|
|
3848
|
+
/** `GET /mandates/coverage/states` · aidream · auth guest · org optional */
|
|
3849
|
+
declare function mandateCoverageStates(api: Api, args?: MandateCoverageStatesArgs, options?: CallOptions): Promise<MandateCoverageStatesResult>;
|
|
3850
|
+
type MandateProvenanceArgs = {
|
|
3851
|
+
path: {
|
|
3852
|
+
mandate_key: string;
|
|
3853
|
+
};
|
|
3854
|
+
};
|
|
3855
|
+
type MandateProvenanceResult = MandateProvenanceReport;
|
|
3856
|
+
/** Mandate Provenance */
|
|
3857
|
+
/** `GET /mandates/{mandate_key}/provenance` · aidream · auth guest · org optional */
|
|
3858
|
+
declare function mandateProvenance(api: Api, args: MandateProvenanceArgs, options?: CallOptions): Promise<MandateProvenanceResult>;
|
|
3859
|
+
type AgentImpactArgs = {
|
|
3860
|
+
body: ImpactRequest;
|
|
3861
|
+
};
|
|
3862
|
+
type AgentImpactResult = ImpactReport;
|
|
3863
|
+
/** Agent Impact */
|
|
3864
|
+
/** `POST /mandates/impact` · aidream · auth admin · org exempt */
|
|
3865
|
+
declare function agentImpact(api: Api, args: AgentImpactArgs, options?: CallOptions): Promise<AgentImpactResult>;
|
|
3866
|
+
type WorkflowImpactArgs = {
|
|
3867
|
+
body: WorkflowImpactRequest;
|
|
3868
|
+
};
|
|
3869
|
+
type WorkflowImpactResult = WorkflowImpactReport;
|
|
3870
|
+
/** Workflow Impact */
|
|
3871
|
+
/** `POST /mandates/impact/workflows` · aidream · auth admin · org exempt */
|
|
3872
|
+
declare function workflowImpact(api: Api, args: WorkflowImpactArgs, options?: CallOptions): Promise<WorkflowImpactResult>;
|
|
3873
|
+
type AgentImpactAdvanceArgs = {
|
|
3874
|
+
body: AdvanceRequest;
|
|
3875
|
+
};
|
|
3876
|
+
type AgentImpactAdvanceResult = AdvanceReport;
|
|
3877
|
+
/** Agent Impact Advance */
|
|
3878
|
+
/** `POST /mandates/impact/advance` · aidream · auth admin · org required */
|
|
3879
|
+
declare function agentImpactAdvance(api: Api, args: AgentImpactAdvanceArgs, options?: CallOptions): Promise<AgentImpactAdvanceResult>;
|
|
3880
|
+
type AgentImpactRevertArgs = {
|
|
3881
|
+
body: RevertRequest;
|
|
3882
|
+
};
|
|
3883
|
+
type AgentImpactRevertResult = AdvanceReport;
|
|
3884
|
+
/** Agent Impact Revert */
|
|
3885
|
+
/** `POST /mandates/impact/revert` · aidream · auth admin · org required */
|
|
3886
|
+
declare function agentImpactRevert(api: Api, args: AgentImpactRevertArgs, options?: CallOptions): Promise<AgentImpactRevertResult>;
|
|
3887
|
+
type AgentImpactMineArgs = {
|
|
3888
|
+
body: ImpactRequest;
|
|
3889
|
+
};
|
|
3890
|
+
type AgentImpactMineResult = ImpactReport;
|
|
3891
|
+
/** Agent Impact Mine */
|
|
3892
|
+
/** `POST /mandates/impact/mine` · aidream · auth guest · org required */
|
|
3893
|
+
declare function agentImpactMine(api: Api, args: AgentImpactMineArgs, options?: CallOptions): Promise<AgentImpactMineResult>;
|
|
3894
|
+
type AgentImpactAdvanceMineArgs = {
|
|
3895
|
+
body: AdvanceRequest;
|
|
3896
|
+
};
|
|
3897
|
+
type AgentImpactAdvanceMineResult = AdvanceReport;
|
|
3898
|
+
/** Agent Impact Advance Mine */
|
|
3899
|
+
/** `POST /mandates/impact/advance/mine` · aidream · auth guest · org required */
|
|
3900
|
+
declare function agentImpactAdvanceMine(api: Api, args: AgentImpactAdvanceMineArgs, options?: CallOptions): Promise<AgentImpactAdvanceMineResult>;
|
|
3901
|
+
type AgentImpactRevertMineArgs = {
|
|
3902
|
+
body: RevertRequest;
|
|
3903
|
+
};
|
|
3904
|
+
type AgentImpactRevertMineResult = AdvanceReport;
|
|
3905
|
+
/** Agent Impact Revert Mine */
|
|
3906
|
+
/** `POST /mandates/impact/revert/mine` · aidream · auth guest · org required */
|
|
3907
|
+
declare function agentImpactRevertMine(api: Api, args: AgentImpactRevertMineArgs, options?: CallOptions): Promise<AgentImpactRevertMineResult>;
|
|
3908
|
+
type GetMandateResolutionArgs = {
|
|
3909
|
+
path: {
|
|
3910
|
+
mandate_key: string;
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3913
|
+
type GetMandateResolutionResult = MandateResolutionResponse;
|
|
3914
|
+
/** Get Mandate Resolution */
|
|
3915
|
+
/** `GET /mandates/{mandate_key}/resolution` · aidream · auth guest · org required */
|
|
3916
|
+
declare function getMandateResolution(api: Api, args: GetMandateResolutionArgs, options?: CallOptions): Promise<GetMandateResolutionResult>;
|
|
3917
|
+
type GetMandateDescribeArgs = {
|
|
3918
|
+
path: {
|
|
3919
|
+
mandate_key: string;
|
|
3920
|
+
};
|
|
3921
|
+
};
|
|
3922
|
+
type GetMandateDescribeResult = MandateDescribeResponse;
|
|
3923
|
+
/** Get Mandate Describe */
|
|
3924
|
+
/** `GET /mandates/{mandate_key}/describe` · aidream · auth guest · org required */
|
|
3925
|
+
declare function getMandateDescribe(api: Api, args: GetMandateDescribeArgs, options?: CallOptions): Promise<GetMandateDescribeResult>;
|
|
3926
|
+
type PutMandateBindingArgs = {
|
|
3927
|
+
path: {
|
|
3928
|
+
mandate_key: string;
|
|
3929
|
+
};
|
|
3930
|
+
body: MandateBindingRequest;
|
|
3931
|
+
};
|
|
3932
|
+
type PutMandateBindingResult = BindingResult;
|
|
3933
|
+
/** Put Mandate Binding */
|
|
3934
|
+
/** `PUT /mandates/{mandate_key}/binding` · aidream · auth guest · org required */
|
|
3935
|
+
declare function putMandateBinding(api: Api, args: PutMandateBindingArgs, options?: CallOptions): Promise<PutMandateBindingResult>;
|
|
3936
|
+
type DeleteMandateBindingArgs = {
|
|
3937
|
+
path: {
|
|
3938
|
+
mandate_key: string;
|
|
3939
|
+
};
|
|
3940
|
+
body: MandateBindingDeleteRequest;
|
|
3941
|
+
};
|
|
3942
|
+
type DeleteMandateBindingResult = MandateBindingDeleteResponse;
|
|
3943
|
+
/** Delete Mandate Binding */
|
|
3944
|
+
/** `DELETE /mandates/{mandate_key}/binding` · aidream · auth guest · org required */
|
|
3945
|
+
declare function deleteMandateBinding(api: Api, args: DeleteMandateBindingArgs, options?: CallOptions): Promise<DeleteMandateBindingResult>;
|
|
3946
|
+
type PutMandateDefaultHolderArgs = {
|
|
3947
|
+
path: {
|
|
3948
|
+
mandate_key: string;
|
|
3949
|
+
};
|
|
3950
|
+
body: MandateDefaultHolderRequest;
|
|
3951
|
+
};
|
|
3952
|
+
type PutMandateDefaultHolderResult = MandateDefaultHolderResult;
|
|
3953
|
+
/** Put Mandate Default Holder */
|
|
3954
|
+
/** `PUT /mandates/{mandate_key}/default-holder` · aidream · auth guest · org required */
|
|
3955
|
+
declare function putMandateDefaultHolder(api: Api, args: PutMandateDefaultHolderArgs, options?: CallOptions): Promise<PutMandateDefaultHolderResult>;
|
|
3956
|
+
type GetMandateInputSurfaceArgs = {
|
|
3957
|
+
path: {
|
|
3958
|
+
mandate_key: string;
|
|
3959
|
+
};
|
|
3960
|
+
};
|
|
3961
|
+
type GetMandateInputSurfaceResult = MandateInputSurfaceResponse;
|
|
3962
|
+
/** Get Mandate Input Surface */
|
|
3963
|
+
/** `GET /mandates/{mandate_key}/input-surface` · aidream · auth guest · org optional */
|
|
3964
|
+
declare function getMandateInputSurface(api: Api, args: GetMandateInputSurfaceArgs, options?: CallOptions): Promise<GetMandateInputSurfaceResult>;
|
|
3965
|
+
type PostMandateWorkflowStarterArgs = {
|
|
3966
|
+
path: {
|
|
3967
|
+
mandate_key: string;
|
|
3968
|
+
};
|
|
3969
|
+
};
|
|
3970
|
+
type PostMandateWorkflowStarterResult = WorkflowStarterResult;
|
|
3971
|
+
/** Post Mandate Workflow Starter */
|
|
3972
|
+
/** `POST /mandates/{mandate_key}/workflow-starter` · aidream · auth guest · org required */
|
|
3973
|
+
declare function postMandateWorkflowStarter(api: Api, args: PostMandateWorkflowStarterArgs, options?: CallOptions): Promise<PostMandateWorkflowStarterResult>;
|
|
3974
|
+
type ListMandatesArgs = {
|
|
3975
|
+
[key: string]: never;
|
|
3976
|
+
};
|
|
3977
|
+
type ListMandatesResult = aidream__api__routers__mandate_bindings__MandateCatalogResponse;
|
|
3978
|
+
/** List Mandates */
|
|
3979
|
+
/** `GET /mandates` · aidream · auth guest · org optional */
|
|
3980
|
+
declare function listMandates(api: Api, args?: ListMandatesArgs, options?: CallOptions): Promise<ListMandatesResult>;
|
|
3981
|
+
type CreateMandateArgs = {
|
|
3982
|
+
body: MandateCreateRequest;
|
|
3983
|
+
};
|
|
3984
|
+
type CreateMandateResult = MandateCreatedResponse;
|
|
3985
|
+
/** Create Mandate */
|
|
3986
|
+
/** `POST /mandates` · aidream · auth admin · org required */
|
|
3987
|
+
declare function createMandate(api: Api, args: CreateMandateArgs, options?: CallOptions): Promise<CreateMandateResult>;
|
|
3988
|
+
type CreateSoftMandateArgs = {
|
|
3989
|
+
body: SoftMandateCreateRequest;
|
|
3990
|
+
};
|
|
3991
|
+
type CreateSoftMandateResult = SoftMandateCreatedResponse;
|
|
3992
|
+
/** Create Soft Mandate */
|
|
3993
|
+
/** `POST /mandates/soft` · aidream · auth guest · org required */
|
|
3994
|
+
declare function createSoftMandate(api: Api, args: CreateSoftMandateArgs, options?: CallOptions): Promise<CreateSoftMandateResult>;
|
|
3995
|
+
type PatchMandateGoalArgs = {
|
|
3996
|
+
path: {
|
|
3997
|
+
mandate_key: string;
|
|
3998
|
+
};
|
|
3999
|
+
body: MandateGoalPatchRequest;
|
|
4000
|
+
};
|
|
4001
|
+
type PatchMandateGoalResult = MandateGoalResponse;
|
|
4002
|
+
/** Patch Mandate Goal */
|
|
4003
|
+
/** `PATCH /mandates/{mandate_key}/goal` · aidream · auth guest · org required */
|
|
4004
|
+
declare function patchMandateGoal(api: Api, args: PatchMandateGoalArgs, options?: CallOptions): Promise<PatchMandateGoalResult>;
|
|
4005
|
+
type PatchMandateDraftInputsArgs = {
|
|
4006
|
+
path: {
|
|
4007
|
+
mandate_key: string;
|
|
4008
|
+
};
|
|
4009
|
+
body: MandateDraftInputsPatchRequest;
|
|
4010
|
+
};
|
|
4011
|
+
type PatchMandateDraftInputsResult = MandateDraftInputsResponse;
|
|
4012
|
+
/** Patch Mandate Draft Inputs */
|
|
4013
|
+
/** `PATCH /mandates/{mandate_key}/draft-inputs` · aidream · auth guest · org required */
|
|
4014
|
+
declare function patchMandateDraftInputs(api: Api, args: PatchMandateDraftInputsArgs, options?: CallOptions): Promise<PatchMandateDraftInputsResult>;
|
|
4015
|
+
type GetMandateDefinitionRightsArgs = {
|
|
4016
|
+
path: {
|
|
4017
|
+
mandate_key: string;
|
|
4018
|
+
};
|
|
4019
|
+
};
|
|
4020
|
+
type GetMandateDefinitionRightsResult = DefinitionRights;
|
|
4021
|
+
/** Get Mandate Definition Rights */
|
|
4022
|
+
/** `GET /mandates/{mandate_key}/definition-rights` · aidream · auth guest · org optional */
|
|
4023
|
+
declare function getMandateDefinitionRights(api: Api, args: GetMandateDefinitionRightsArgs, options?: CallOptions): Promise<GetMandateDefinitionRightsResult>;
|
|
4024
|
+
type PatchMandateDefinitionFieldsArgs = {
|
|
4025
|
+
path: {
|
|
4026
|
+
mandate_key: string;
|
|
4027
|
+
};
|
|
4028
|
+
body: MandateDefinitionPatch;
|
|
4029
|
+
};
|
|
4030
|
+
type PatchMandateDefinitionFieldsResult = MandateDefinitionPatchResponse;
|
|
4031
|
+
/** Patch Mandate Definition Fields */
|
|
4032
|
+
/** `PATCH /mandates/{mandate_key}/definition` · aidream · auth guest · org required */
|
|
4033
|
+
declare function patchMandateDefinitionFields(api: Api, args: PatchMandateDefinitionFieldsArgs, options?: CallOptions): Promise<PatchMandateDefinitionFieldsResult>;
|
|
4034
|
+
type TryMandateArgs = {
|
|
4035
|
+
path: {
|
|
4036
|
+
mandate_key: string;
|
|
4037
|
+
};
|
|
4038
|
+
body: MandateTryRequest;
|
|
4039
|
+
};
|
|
4040
|
+
type TryMandateResult = MandateTestResult;
|
|
4041
|
+
/** Try Mandate */
|
|
4042
|
+
/** `POST /mandates/{mandate_key}/try` · aidream · auth guest · org required */
|
|
4043
|
+
declare function tryMandate(api: Api, args: TryMandateArgs, options?: CallOptions): Promise<TryMandateResult>;
|
|
4044
|
+
type PreviewMandatePlacementArgs = {
|
|
4045
|
+
path: {
|
|
4046
|
+
mandate_key: string;
|
|
4047
|
+
};
|
|
4048
|
+
body: PlacementPreviewRequest;
|
|
4049
|
+
};
|
|
4050
|
+
type PreviewMandatePlacementResult = PlacementPreviewResponse;
|
|
4051
|
+
/** Preview Mandate Placement */
|
|
4052
|
+
/** `POST /mandates/{mandate_key}/placement` · aidream · auth guest · org required */
|
|
4053
|
+
declare function previewMandatePlacement(api: Api, args: PreviewMandatePlacementArgs, options?: CallOptions): Promise<PreviewMandatePlacementResult>;
|
|
4054
|
+
type GetMandateRunArgs = {
|
|
4055
|
+
path: {
|
|
4056
|
+
conversation_id: string;
|
|
4057
|
+
};
|
|
4058
|
+
};
|
|
4059
|
+
type GetMandateRunResult = MandateRunDetail;
|
|
4060
|
+
/** Get Mandate Run */
|
|
4061
|
+
/** `GET /mandates/runs/{conversation_id}` · aidream · auth guest · org optional */
|
|
4062
|
+
declare function getMandateRun(api: Api, args: GetMandateRunArgs, options?: CallOptions): Promise<GetMandateRunResult>;
|
|
4063
|
+
type ReplayMandateRunArgs = {
|
|
4064
|
+
path: {
|
|
4065
|
+
conversation_id: string;
|
|
4066
|
+
};
|
|
4067
|
+
};
|
|
4068
|
+
type ReplayMandateRunResult = unknown;
|
|
4069
|
+
/** Replay Mandate Run */
|
|
4070
|
+
/** `POST /mandates/runs/{conversation_id}/replay` · aidream · auth guest · org required · ndjson */
|
|
4071
|
+
declare function replayMandateRun(api: Api, args: ReplayMandateRunArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
4072
|
+
type GetMandateRunResultArgs = {
|
|
4073
|
+
path: {
|
|
4074
|
+
request_id: string;
|
|
4075
|
+
};
|
|
4076
|
+
};
|
|
4077
|
+
type GetMandateRunResultResult = MandateRunResultResponse;
|
|
4078
|
+
/** Get Mandate Run Result */
|
|
4079
|
+
/** `GET /mandates/runs/{request_id}/result` · aidream · auth guest · org optional */
|
|
4080
|
+
declare function getMandateRunResult(api: Api, args: GetMandateRunResultArgs, options?: CallOptions): Promise<GetMandateRunResultResult>;
|
|
4081
|
+
type AnswerMandateRunArgs = {
|
|
4082
|
+
path: {
|
|
4083
|
+
request_id: string;
|
|
4084
|
+
};
|
|
4085
|
+
body: MandateAnswerRequest;
|
|
4086
|
+
};
|
|
4087
|
+
type AnswerMandateRunResult = unknown;
|
|
4088
|
+
/** Answer Mandate Run */
|
|
4089
|
+
/** `POST /mandates/runs/{request_id}/answer` · aidream · auth guest · org required · ndjson */
|
|
4090
|
+
declare function answerMandateRun(api: Api, args: AnswerMandateRunArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
4091
|
+
type GetMandateRunsArgs = {
|
|
4092
|
+
path: {
|
|
4093
|
+
mandate_key: string;
|
|
4094
|
+
};
|
|
4095
|
+
query?: {
|
|
4096
|
+
applet_id?: string | null;
|
|
4097
|
+
limit?: number;
|
|
4098
|
+
};
|
|
4099
|
+
};
|
|
4100
|
+
type GetMandateRunsResult = MandateRunListResponse;
|
|
4101
|
+
/** Get Mandate Runs */
|
|
4102
|
+
/** `GET /mandates/{mandate_key}/runs` · aidream · auth guest · org optional */
|
|
4103
|
+
declare function getMandateRuns(api: Api, args: GetMandateRunsArgs, options?: CallOptions): Promise<GetMandateRunsResult>;
|
|
4104
|
+
type GetMandateCandidatesArgs = {
|
|
4105
|
+
path: {
|
|
4106
|
+
mandate_key: string;
|
|
4107
|
+
};
|
|
4108
|
+
};
|
|
4109
|
+
type GetMandateCandidatesResult = LiveCandidatesResponse;
|
|
4110
|
+
/** Get Mandate Candidates */
|
|
4111
|
+
/** `GET /mandates/{mandate_key}/candidates` · aidream · auth guest · org optional */
|
|
4112
|
+
declare function getMandateCandidates(api: Api, args: GetMandateCandidatesArgs, options?: CallOptions): Promise<GetMandateCandidatesResult>;
|
|
4113
|
+
type PostMandateCandidateArgs = {
|
|
4114
|
+
path: {
|
|
4115
|
+
mandate_key: string;
|
|
4116
|
+
};
|
|
4117
|
+
body: LiveCandidateSetRequest;
|
|
4118
|
+
};
|
|
4119
|
+
type PostMandateCandidateResult = LiveCandidate;
|
|
4120
|
+
/** Post Mandate Candidate */
|
|
4121
|
+
/** `POST /mandates/{mandate_key}/candidates` · aidream · auth guest · org required */
|
|
4122
|
+
declare function postMandateCandidate(api: Api, args: PostMandateCandidateArgs, options?: CallOptions): Promise<PostMandateCandidateResult>;
|
|
4123
|
+
type GetMandateCandidateArgs = {
|
|
4124
|
+
path: {
|
|
4125
|
+
candidate_id: string;
|
|
4126
|
+
};
|
|
4127
|
+
};
|
|
4128
|
+
type GetMandateCandidateResult = LiveCandidateDetail;
|
|
4129
|
+
/** Get Mandate Candidate */
|
|
4130
|
+
/** `GET /mandate-candidates/{candidate_id}` · aidream · auth guest · org optional */
|
|
4131
|
+
declare function getMandateCandidate(api: Api, args: GetMandateCandidateArgs, options?: CallOptions): Promise<GetMandateCandidateResult>;
|
|
4132
|
+
type PostMandateCandidatePromoteArgs = {
|
|
4133
|
+
path: {
|
|
4134
|
+
candidate_id: string;
|
|
4135
|
+
};
|
|
4136
|
+
body: LiveCandidatePromoteRequest;
|
|
4137
|
+
};
|
|
4138
|
+
type PostMandateCandidatePromoteResult = LiveCandidatePromoteResult;
|
|
4139
|
+
/** Post Mandate Candidate Promote */
|
|
4140
|
+
/** `POST /mandate-candidates/{candidate_id}/promote` · aidream · auth guest · org required */
|
|
4141
|
+
declare function postMandateCandidatePromote(api: Api, args: PostMandateCandidatePromoteArgs, options?: CallOptions): Promise<PostMandateCandidatePromoteResult>;
|
|
4142
|
+
type PostMandateCandidatePutBackArgs = {
|
|
4143
|
+
path: {
|
|
4144
|
+
candidate_id: string;
|
|
4145
|
+
};
|
|
4146
|
+
};
|
|
4147
|
+
type PostMandateCandidatePutBackResult = LiveCandidate;
|
|
4148
|
+
/** Post Mandate Candidate Put Back */
|
|
4149
|
+
/** `POST /mandate-candidates/{candidate_id}/put-back` · aidream · auth guest · org required */
|
|
4150
|
+
declare function postMandateCandidatePutBack(api: Api, args: PostMandateCandidatePutBackArgs, options?: CallOptions): Promise<PostMandateCandidatePutBackResult>;
|
|
4151
|
+
type PostMandateCandidateDiscardArgs = {
|
|
4152
|
+
path: {
|
|
4153
|
+
candidate_id: string;
|
|
4154
|
+
};
|
|
4155
|
+
body: LiveCandidateDiscardRequest;
|
|
4156
|
+
};
|
|
4157
|
+
type PostMandateCandidateDiscardResult = LiveCandidate;
|
|
4158
|
+
/** Post Mandate Candidate Discard */
|
|
4159
|
+
/** `POST /mandate-candidates/{candidate_id}/discard` · aidream · auth guest · org required */
|
|
4160
|
+
declare function postMandateCandidateDiscard(api: Api, args: PostMandateCandidateDiscardArgs, options?: CallOptions): Promise<PostMandateCandidateDiscardResult>;
|
|
4161
|
+
type GetMandateCandidateRunArgs = {
|
|
4162
|
+
path: {
|
|
4163
|
+
run_id: string;
|
|
4164
|
+
};
|
|
4165
|
+
};
|
|
4166
|
+
type GetMandateCandidateRunResult = LiveCandidateRun;
|
|
4167
|
+
/** Get Mandate Candidate Run */
|
|
4168
|
+
/** `GET /mandate-candidate-runs/{run_id}` · aidream · auth guest · org optional */
|
|
4169
|
+
declare function getMandateCandidateRun(api: Api, args: GetMandateCandidateRunArgs, options?: CallOptions): Promise<GetMandateCandidateRunResult>;
|
|
4170
|
+
type PostMandateCandidateRunAgreementArgs = {
|
|
4171
|
+
path: {
|
|
4172
|
+
run_id: string;
|
|
4173
|
+
};
|
|
4174
|
+
body: LiveCandidateAgreementRequest;
|
|
4175
|
+
};
|
|
4176
|
+
type PostMandateCandidateRunAgreementResult = LiveCandidateAgreementResult;
|
|
4177
|
+
/** Post Mandate Candidate Run Agreement */
|
|
4178
|
+
/** `POST /mandate-candidate-runs/{run_id}/agreement` · aidream · auth guest · org required */
|
|
4179
|
+
declare function postMandateCandidateRunAgreement(api: Api, args: PostMandateCandidateRunAgreementArgs, options?: CallOptions): Promise<PostMandateCandidateRunAgreementResult>;
|
|
4180
|
+
type GetAgreementArgs = {
|
|
4181
|
+
query?: {
|
|
4182
|
+
judge_key?: string | null;
|
|
4183
|
+
organization_id?: string | null;
|
|
4184
|
+
};
|
|
4185
|
+
};
|
|
4186
|
+
type GetAgreementResult = AgreementRollup;
|
|
4187
|
+
/** Get Agreement */
|
|
4188
|
+
/** `GET /admin/judges/agreement` · aidream · auth admin · org exempt */
|
|
4189
|
+
declare function getAgreement(api: Api, args?: GetAgreementArgs, options?: CallOptions): Promise<GetAgreementResult>;
|
|
4190
|
+
type GetMandateOutcomePendingArgs = {
|
|
4191
|
+
query?: {
|
|
4192
|
+
mandate_key?: string | null;
|
|
4193
|
+
limit?: number;
|
|
4194
|
+
};
|
|
4195
|
+
};
|
|
4196
|
+
type GetMandateOutcomePendingResult = PendingLabels;
|
|
4197
|
+
/** Get Mandate Outcome Pending */
|
|
4198
|
+
/** `GET /admin/judges/mandate-outcome/pending` · aidream · auth admin · org exempt */
|
|
4199
|
+
declare function getMandateOutcomePending(api: Api, args?: GetMandateOutcomePendingArgs, options?: CallOptions): Promise<GetMandateOutcomePendingResult>;
|
|
4200
|
+
type PostMandateOutcomeAuthorityArgs = {
|
|
4201
|
+
path: {
|
|
4202
|
+
verdict_id: string;
|
|
4203
|
+
};
|
|
4204
|
+
body: AuthorityAnswer;
|
|
4205
|
+
};
|
|
4206
|
+
type PostMandateOutcomeAuthorityResult = PendingVerdict;
|
|
4207
|
+
/** Post Mandate Outcome Authority */
|
|
4208
|
+
/** `POST /admin/judges/mandate-outcome/{verdict_id}/authority` · aidream · auth admin · org exempt */
|
|
4209
|
+
declare function postMandateOutcomeAuthority(api: Api, args: PostMandateOutcomeAuthorityArgs, options?: CallOptions): Promise<PostMandateOutcomeAuthorityResult>;
|
|
4210
|
+
type GetMandateOutcomeCalibrationArgs = {
|
|
4211
|
+
query?: {
|
|
4212
|
+
mandate_key?: string | null;
|
|
4213
|
+
};
|
|
4214
|
+
};
|
|
4215
|
+
type GetMandateOutcomeCalibrationResult = BenchCalibration;
|
|
4216
|
+
/** Get Mandate Outcome Calibration */
|
|
4217
|
+
/** `GET /admin/judges/mandate-outcome/calibration` · aidream · auth admin · org exempt */
|
|
4218
|
+
declare function getMandateOutcomeCalibration(api: Api, args?: GetMandateOutcomeCalibrationArgs, options?: CallOptions): Promise<GetMandateOutcomeCalibrationResult>;
|
|
4219
|
+
type PostRatifyGoalClausesArgs = {
|
|
4220
|
+
path: {
|
|
4221
|
+
row_id: string;
|
|
4222
|
+
};
|
|
4223
|
+
body: Ratification;
|
|
4224
|
+
};
|
|
4225
|
+
type PostRatifyGoalClausesResult = GoalClauseRecord;
|
|
4226
|
+
/** Post Ratify Goal Clauses */
|
|
4227
|
+
/** `POST /admin/judges/mandate-outcome/goal-clauses/{row_id}/ratify` · aidream · auth admin · org exempt */
|
|
4228
|
+
declare function postRatifyGoalClauses(api: Api, args: PostRatifyGoalClausesArgs, options?: CallOptions): Promise<PostRatifyGoalClausesResult>;
|
|
4229
|
+
type GetCalibrationArgs = {
|
|
4230
|
+
path: {
|
|
4231
|
+
judge_key: string;
|
|
4232
|
+
};
|
|
4233
|
+
query?: {
|
|
4234
|
+
judge_version?: number | null;
|
|
4235
|
+
subject_kind?: string | null;
|
|
4236
|
+
};
|
|
4237
|
+
};
|
|
4238
|
+
type GetCalibrationResult = JudgeAccuracyReport;
|
|
4239
|
+
/** Get Calibration */
|
|
4240
|
+
/** `GET /admin/judges/{judge_key}/calibration` · aidream · auth admin · org exempt */
|
|
4241
|
+
declare function getCalibration(api: Api, args: GetCalibrationArgs, options?: CallOptions): Promise<GetCalibrationResult>;
|
|
4242
|
+
type PostSweepFeedbackArgs = {
|
|
4243
|
+
query?: {
|
|
4244
|
+
limit?: number;
|
|
4245
|
+
};
|
|
4246
|
+
};
|
|
4247
|
+
type PostSweepFeedbackResult = SweepResult;
|
|
4248
|
+
/** Post Sweep Feedback */
|
|
4249
|
+
/** `POST /admin/judges/sweep-feedback` · aidream · auth admin · org exempt */
|
|
4250
|
+
declare function postSweepFeedback(api: Api, args?: PostSweepFeedbackArgs, options?: CallOptions): Promise<PostSweepFeedbackResult>;
|
|
4251
|
+
type GetProducerYieldArgs = {
|
|
4252
|
+
[key: string]: never;
|
|
4253
|
+
};
|
|
4254
|
+
type GetProducerYieldResult = ProducerYieldOut;
|
|
4255
|
+
/** Get Producer Yield */
|
|
4256
|
+
/** `GET /admin/producer-yield` · aidream · auth admin · org exempt */
|
|
4257
|
+
declare function getProducerYield(api: Api, args?: GetProducerYieldArgs, options?: CallOptions): Promise<GetProducerYieldResult>;
|
|
4258
|
+
type PostYieldCheckArgs = {
|
|
4259
|
+
[key: string]: never;
|
|
4260
|
+
};
|
|
4261
|
+
type PostYieldCheckResult = YieldCheckOut;
|
|
4262
|
+
/** Post Yield Check */
|
|
4263
|
+
/** `POST /admin/producer-yield/check` · aidream · auth admin · org exempt */
|
|
4264
|
+
declare function postYieldCheck(api: Api, args?: PostYieldCheckArgs, options?: CallOptions): Promise<PostYieldCheckResult>;
|
|
4265
|
+
type ResolveLocalMandateArgs = {
|
|
4266
|
+
path: {
|
|
4267
|
+
mandate_key: string;
|
|
4268
|
+
};
|
|
4269
|
+
};
|
|
4270
|
+
type ResolveLocalMandateResult = {
|
|
4271
|
+
[key: string]: unknown;
|
|
4272
|
+
};
|
|
4273
|
+
/** Resolve Local Mandate */
|
|
4274
|
+
/** `GET /local-mandates/{mandate_key}` · matrx-local · auth loopback_token · org exempt */
|
|
4275
|
+
declare function resolveLocalMandate(api: Api, args: ResolveLocalMandateArgs, options?: CallOptions): Promise<ResolveLocalMandateResult>;
|
|
4276
|
+
/** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
|
|
4277
|
+
interface Operations {
|
|
4278
|
+
"GET /decision-review/agents/{agent_id}/calibration": {
|
|
4279
|
+
args: GetAgentCalibrationArgs;
|
|
4280
|
+
result: GetAgentCalibrationResult;
|
|
4281
|
+
};
|
|
4282
|
+
"GET /ai/decisions/{execution_id}": {
|
|
4283
|
+
args: ReadDecisionArgs;
|
|
4284
|
+
result: ReadDecisionResult;
|
|
4285
|
+
};
|
|
4286
|
+
"GET /hindsight/enrollments": {
|
|
4287
|
+
args: ListEnrollmentsArgs;
|
|
4288
|
+
result: ListEnrollmentsResult;
|
|
4289
|
+
};
|
|
4290
|
+
"POST /hindsight/enrollments": {
|
|
4291
|
+
args: EnrollArgs;
|
|
4292
|
+
result: EnrollResult;
|
|
4293
|
+
};
|
|
4294
|
+
"GET /hindsight/enrollments/{enrollment_id}": {
|
|
4295
|
+
args: GetEnrollmentArgs;
|
|
4296
|
+
result: GetEnrollmentResult;
|
|
4297
|
+
};
|
|
4298
|
+
"PATCH /hindsight/enrollments/{enrollment_id}": {
|
|
4299
|
+
args: PatchEnrollmentArgs;
|
|
4300
|
+
result: PatchEnrollmentResult;
|
|
4301
|
+
};
|
|
4302
|
+
"DELETE /hindsight/enrollments/{enrollment_id}": {
|
|
4303
|
+
args: ArchiveEnrollmentArgs;
|
|
4304
|
+
result: ArchiveEnrollmentResult;
|
|
4305
|
+
};
|
|
4306
|
+
"GET /hindsight/enrollments/{enrollment_id}/pending-examples": {
|
|
4307
|
+
args: GetPendingExamplesArgs;
|
|
4308
|
+
result: GetPendingExamplesResult;
|
|
4309
|
+
};
|
|
4310
|
+
"GET /hindsight/costs": {
|
|
4311
|
+
args: HindsightCostsArgs;
|
|
4312
|
+
result: HindsightCostsResult;
|
|
4313
|
+
};
|
|
4314
|
+
"POST /hindsight/enrollments/{enrollment_id}/review": {
|
|
4315
|
+
args: TriggerReviewArgs;
|
|
4316
|
+
result: TriggerReviewResult;
|
|
4317
|
+
};
|
|
4318
|
+
"GET /hindsight/reviews/{review_id}": {
|
|
4319
|
+
args: GetReviewArgs;
|
|
4320
|
+
result: GetReviewResult;
|
|
4321
|
+
};
|
|
4322
|
+
"GET /hindsight/reviews/{review_id}/thread": {
|
|
4323
|
+
args: GetThreadArgs;
|
|
4324
|
+
result: GetThreadResult;
|
|
4325
|
+
};
|
|
4326
|
+
"POST /hindsight/reviews/{review_id}/discuss": {
|
|
4327
|
+
args: DiscussReviewRouteArgs;
|
|
4328
|
+
result: DiscussReviewRouteResult;
|
|
4329
|
+
};
|
|
4330
|
+
"POST /hindsight/findings/{finding_id}/discuss": {
|
|
4331
|
+
args: DiscussFindingRouteArgs;
|
|
4332
|
+
result: DiscussFindingRouteResult;
|
|
4333
|
+
};
|
|
4334
|
+
"POST /hindsight/findings/{finding_id}/apply": {
|
|
4335
|
+
args: ApplyFindingRouteArgs;
|
|
4336
|
+
result: ApplyFindingRouteResult;
|
|
4337
|
+
};
|
|
4338
|
+
"POST /hindsight/findings/{finding_id}/revert": {
|
|
4339
|
+
args: RevertFindingRouteArgs;
|
|
4340
|
+
result: RevertFindingRouteResult;
|
|
4341
|
+
};
|
|
4342
|
+
"POST /hindsight/findings/{finding_id}/prove": {
|
|
4343
|
+
args: ProveFindingRouteArgs;
|
|
4344
|
+
result: ProveFindingRouteResult;
|
|
4345
|
+
};
|
|
4346
|
+
"POST /hindsight/findings/{finding_id}/reject": {
|
|
4347
|
+
args: RejectFindingRouteArgs;
|
|
4348
|
+
result: RejectFindingRouteResult;
|
|
4349
|
+
};
|
|
4350
|
+
"POST /hindsight/enrollments/{enrollment_id}/replay": {
|
|
4351
|
+
args: TriggerReplayArgs;
|
|
4352
|
+
result: TriggerReplayResult;
|
|
4353
|
+
};
|
|
4354
|
+
"GET /hindsight/replays/{replay_id}": {
|
|
4355
|
+
args: GetReplayArgs;
|
|
4356
|
+
result: GetReplayResult;
|
|
4357
|
+
};
|
|
4358
|
+
"GET /hindsight/change-history": {
|
|
4359
|
+
args: GetChangeHistoryArgs;
|
|
4360
|
+
result: GetChangeHistoryResult;
|
|
4361
|
+
};
|
|
4362
|
+
"GET /hindsight/finding-effectiveness": {
|
|
4363
|
+
args: GetFindingEffectivenessArgs;
|
|
4364
|
+
result: GetFindingEffectivenessResult;
|
|
4365
|
+
};
|
|
4366
|
+
"GET /hindsight/subjects/tools": {
|
|
4367
|
+
args: ListToolSubjectsArgs;
|
|
4368
|
+
result: ListToolSubjectsResult;
|
|
4369
|
+
};
|
|
4370
|
+
"POST /hindsight/snapshots/{snapshot_id}/wire-replay": {
|
|
4371
|
+
args: TriggerWireReplayArgs;
|
|
4372
|
+
result: TriggerWireReplayResult;
|
|
4373
|
+
};
|
|
4374
|
+
"GET /hindsight/snapshots/{snapshot_id}/wire-replays": {
|
|
4375
|
+
args: ListWireReplaysArgs;
|
|
4376
|
+
result: ListWireReplaysResult;
|
|
4377
|
+
};
|
|
4378
|
+
"GET /hindsight/wire-replays/{replay_group_id}": {
|
|
4379
|
+
args: GetWireReplayGroupArgs;
|
|
4380
|
+
result: GetWireReplayGroupResult;
|
|
4381
|
+
};
|
|
4382
|
+
"POST /hindsight/snapshots/{snapshot_id}/regression-case": {
|
|
4383
|
+
args: CreateSnapshotRegressionCaseArgs;
|
|
4384
|
+
result: CreateSnapshotRegressionCaseResult;
|
|
4385
|
+
};
|
|
4386
|
+
"GET /hindsight/regression-cases": {
|
|
4387
|
+
args: ListCasesArgs;
|
|
4388
|
+
result: ListCasesResult;
|
|
4389
|
+
};
|
|
4390
|
+
"GET /hindsight/regression-cases/{case_id}": {
|
|
4391
|
+
args: GetCaseArgs;
|
|
4392
|
+
result: GetCaseResult;
|
|
4393
|
+
};
|
|
4394
|
+
"POST /hindsight/regression-cases/{case_id}/run": {
|
|
4395
|
+
args: RunCaseArgs;
|
|
4396
|
+
result: RunCaseResult;
|
|
4397
|
+
};
|
|
4398
|
+
"POST /hindsight/regression-cases/{case_id}/status": {
|
|
4399
|
+
args: SetCaseStatusArgs;
|
|
4400
|
+
result: SetCaseStatusResult;
|
|
4401
|
+
};
|
|
4402
|
+
"POST /hindsight/shadow-recompilation": {
|
|
4403
|
+
args: TriggerShadowRecompilationArgs;
|
|
4404
|
+
result: TriggerShadowRecompilationResult;
|
|
4405
|
+
};
|
|
4406
|
+
"GET /hindsight/crystallization/subjects": {
|
|
4407
|
+
args: ListCrystallizationSubjectsArgs;
|
|
4408
|
+
result: ListCrystallizationSubjectsResult;
|
|
4409
|
+
};
|
|
4410
|
+
"POST /hindsight/crystallization/run": {
|
|
4411
|
+
args: RunCrystallizationPassArgs;
|
|
4412
|
+
result: RunCrystallizationPassResult;
|
|
4413
|
+
};
|
|
4414
|
+
"POST /hindsight/crystallization/sweep": {
|
|
4415
|
+
args: TriggerCrystallizationSweepArgs;
|
|
4416
|
+
result: TriggerCrystallizationSweepResult;
|
|
4417
|
+
};
|
|
4418
|
+
"POST /hindsight/drain": {
|
|
4419
|
+
args: TriggerDrainArgs;
|
|
4420
|
+
result: TriggerDrainResult;
|
|
4421
|
+
};
|
|
4422
|
+
"POST /agent-iteration/commit-choice": {
|
|
4423
|
+
args: CommitChoiceArgs;
|
|
4424
|
+
result: CommitChoiceResult;
|
|
4425
|
+
};
|
|
4426
|
+
"POST /mandates/{mandate_key}/variable-verdicts": {
|
|
4427
|
+
args: MandateVariableVerdictsArgs;
|
|
4428
|
+
result: MandateVariableVerdictsResult;
|
|
4429
|
+
};
|
|
4430
|
+
"GET /mandates/code-truth": {
|
|
4431
|
+
args: GetMandateCodeTruthArgs;
|
|
4432
|
+
result: GetMandateCodeTruthResult;
|
|
4433
|
+
};
|
|
4434
|
+
"GET /mandates/references/board": {
|
|
4435
|
+
args: GetMandateReferenceBoardArgs;
|
|
4436
|
+
result: GetMandateReferenceBoardResult;
|
|
4437
|
+
};
|
|
4438
|
+
"GET /mandates/{mandate_key}/references": {
|
|
4439
|
+
args: GetMandateReferencesArgs;
|
|
4440
|
+
result: GetMandateReferencesResult;
|
|
4441
|
+
};
|
|
4442
|
+
"POST /mandates/{mandate_key}/exemplars/{exemplar_id}/promote": {
|
|
4443
|
+
args: PromoteExemplarTestResultArgs;
|
|
4444
|
+
result: PromoteExemplarTestResultResult;
|
|
4445
|
+
};
|
|
4446
|
+
"POST /mandates/{mandate_key}/tests": {
|
|
4447
|
+
args: TestMandateAllExemplarsArgs;
|
|
4448
|
+
result: TestMandateAllExemplarsResult;
|
|
4449
|
+
};
|
|
4450
|
+
"POST /mandates/{mandate_key}/test": {
|
|
4451
|
+
args: TestMandateArgs;
|
|
4452
|
+
result: TestMandateResult;
|
|
4453
|
+
};
|
|
4454
|
+
"GET /admin/hindsight/enrollments": {
|
|
4455
|
+
args: AdminListEnrollmentsArgs;
|
|
4456
|
+
result: AdminListEnrollmentsResult;
|
|
4457
|
+
};
|
|
4458
|
+
"GET /admin/hindsight/enrollments/{enrollment_id}": {
|
|
4459
|
+
args: AdminGetEnrollmentArgs;
|
|
4460
|
+
result: AdminGetEnrollmentResult;
|
|
4461
|
+
};
|
|
4462
|
+
"GET /admin/hindsight/reviews/{review_id}": {
|
|
4463
|
+
args: AdminGetReviewArgs;
|
|
4464
|
+
result: AdminGetReviewResult;
|
|
4465
|
+
};
|
|
4466
|
+
"GET /mandates/coverage": {
|
|
4467
|
+
args: MandateCoverageArgs;
|
|
4468
|
+
result: MandateCoverageResult;
|
|
4469
|
+
};
|
|
4470
|
+
"GET /mandates/coverage/states": {
|
|
4471
|
+
args: MandateCoverageStatesArgs;
|
|
4472
|
+
result: MandateCoverageStatesResult;
|
|
4473
|
+
};
|
|
4474
|
+
"GET /mandates/{mandate_key}/provenance": {
|
|
4475
|
+
args: MandateProvenanceArgs;
|
|
4476
|
+
result: MandateProvenanceResult;
|
|
4477
|
+
};
|
|
4478
|
+
"POST /mandates/impact": {
|
|
4479
|
+
args: AgentImpactArgs;
|
|
4480
|
+
result: AgentImpactResult;
|
|
4481
|
+
};
|
|
4482
|
+
"POST /mandates/impact/workflows": {
|
|
4483
|
+
args: WorkflowImpactArgs;
|
|
4484
|
+
result: WorkflowImpactResult;
|
|
4485
|
+
};
|
|
4486
|
+
"POST /mandates/impact/advance": {
|
|
4487
|
+
args: AgentImpactAdvanceArgs;
|
|
4488
|
+
result: AgentImpactAdvanceResult;
|
|
4489
|
+
};
|
|
4490
|
+
"POST /mandates/impact/revert": {
|
|
4491
|
+
args: AgentImpactRevertArgs;
|
|
4492
|
+
result: AgentImpactRevertResult;
|
|
4493
|
+
};
|
|
4494
|
+
"POST /mandates/impact/mine": {
|
|
4495
|
+
args: AgentImpactMineArgs;
|
|
4496
|
+
result: AgentImpactMineResult;
|
|
4497
|
+
};
|
|
4498
|
+
"POST /mandates/impact/advance/mine": {
|
|
4499
|
+
args: AgentImpactAdvanceMineArgs;
|
|
4500
|
+
result: AgentImpactAdvanceMineResult;
|
|
4501
|
+
};
|
|
4502
|
+
"POST /mandates/impact/revert/mine": {
|
|
4503
|
+
args: AgentImpactRevertMineArgs;
|
|
4504
|
+
result: AgentImpactRevertMineResult;
|
|
4505
|
+
};
|
|
4506
|
+
"GET /mandates/{mandate_key}/resolution": {
|
|
4507
|
+
args: GetMandateResolutionArgs;
|
|
4508
|
+
result: GetMandateResolutionResult;
|
|
4509
|
+
};
|
|
4510
|
+
"GET /mandates/{mandate_key}/describe": {
|
|
4511
|
+
args: GetMandateDescribeArgs;
|
|
4512
|
+
result: GetMandateDescribeResult;
|
|
4513
|
+
};
|
|
4514
|
+
"PUT /mandates/{mandate_key}/binding": {
|
|
4515
|
+
args: PutMandateBindingArgs;
|
|
4516
|
+
result: PutMandateBindingResult;
|
|
4517
|
+
};
|
|
4518
|
+
"DELETE /mandates/{mandate_key}/binding": {
|
|
4519
|
+
args: DeleteMandateBindingArgs;
|
|
4520
|
+
result: DeleteMandateBindingResult;
|
|
4521
|
+
};
|
|
4522
|
+
"PUT /mandates/{mandate_key}/default-holder": {
|
|
4523
|
+
args: PutMandateDefaultHolderArgs;
|
|
4524
|
+
result: PutMandateDefaultHolderResult;
|
|
4525
|
+
};
|
|
4526
|
+
"GET /mandates/{mandate_key}/input-surface": {
|
|
4527
|
+
args: GetMandateInputSurfaceArgs;
|
|
4528
|
+
result: GetMandateInputSurfaceResult;
|
|
4529
|
+
};
|
|
4530
|
+
"POST /mandates/{mandate_key}/workflow-starter": {
|
|
4531
|
+
args: PostMandateWorkflowStarterArgs;
|
|
4532
|
+
result: PostMandateWorkflowStarterResult;
|
|
4533
|
+
};
|
|
4534
|
+
"GET /mandates": {
|
|
4535
|
+
args: ListMandatesArgs;
|
|
4536
|
+
result: ListMandatesResult;
|
|
4537
|
+
};
|
|
4538
|
+
"POST /mandates": {
|
|
4539
|
+
args: CreateMandateArgs;
|
|
4540
|
+
result: CreateMandateResult;
|
|
4541
|
+
};
|
|
4542
|
+
"POST /mandates/soft": {
|
|
4543
|
+
args: CreateSoftMandateArgs;
|
|
4544
|
+
result: CreateSoftMandateResult;
|
|
4545
|
+
};
|
|
4546
|
+
"PATCH /mandates/{mandate_key}/goal": {
|
|
4547
|
+
args: PatchMandateGoalArgs;
|
|
4548
|
+
result: PatchMandateGoalResult;
|
|
4549
|
+
};
|
|
4550
|
+
"PATCH /mandates/{mandate_key}/draft-inputs": {
|
|
4551
|
+
args: PatchMandateDraftInputsArgs;
|
|
4552
|
+
result: PatchMandateDraftInputsResult;
|
|
4553
|
+
};
|
|
4554
|
+
"GET /mandates/{mandate_key}/definition-rights": {
|
|
4555
|
+
args: GetMandateDefinitionRightsArgs;
|
|
4556
|
+
result: GetMandateDefinitionRightsResult;
|
|
4557
|
+
};
|
|
4558
|
+
"PATCH /mandates/{mandate_key}/definition": {
|
|
4559
|
+
args: PatchMandateDefinitionFieldsArgs;
|
|
4560
|
+
result: PatchMandateDefinitionFieldsResult;
|
|
4561
|
+
};
|
|
4562
|
+
"POST /mandates/{mandate_key}/try": {
|
|
4563
|
+
args: TryMandateArgs;
|
|
4564
|
+
result: TryMandateResult;
|
|
4565
|
+
};
|
|
4566
|
+
"POST /mandates/{mandate_key}/placement": {
|
|
4567
|
+
args: PreviewMandatePlacementArgs;
|
|
4568
|
+
result: PreviewMandatePlacementResult;
|
|
4569
|
+
};
|
|
4570
|
+
"GET /mandates/runs/{conversation_id}": {
|
|
4571
|
+
args: GetMandateRunArgs;
|
|
4572
|
+
result: GetMandateRunResult;
|
|
4573
|
+
};
|
|
4574
|
+
"GET /mandates/runs/{request_id}/result": {
|
|
4575
|
+
args: GetMandateRunResultArgs;
|
|
4576
|
+
result: GetMandateRunResultResult;
|
|
4577
|
+
};
|
|
4578
|
+
"GET /mandates/{mandate_key}/runs": {
|
|
4579
|
+
args: GetMandateRunsArgs;
|
|
4580
|
+
result: GetMandateRunsResult;
|
|
4581
|
+
};
|
|
4582
|
+
"GET /mandates/{mandate_key}/candidates": {
|
|
4583
|
+
args: GetMandateCandidatesArgs;
|
|
4584
|
+
result: GetMandateCandidatesResult;
|
|
4585
|
+
};
|
|
4586
|
+
"POST /mandates/{mandate_key}/candidates": {
|
|
4587
|
+
args: PostMandateCandidateArgs;
|
|
4588
|
+
result: PostMandateCandidateResult;
|
|
4589
|
+
};
|
|
4590
|
+
"GET /mandate-candidates/{candidate_id}": {
|
|
4591
|
+
args: GetMandateCandidateArgs;
|
|
4592
|
+
result: GetMandateCandidateResult;
|
|
4593
|
+
};
|
|
4594
|
+
"POST /mandate-candidates/{candidate_id}/promote": {
|
|
4595
|
+
args: PostMandateCandidatePromoteArgs;
|
|
4596
|
+
result: PostMandateCandidatePromoteResult;
|
|
4597
|
+
};
|
|
4598
|
+
"POST /mandate-candidates/{candidate_id}/put-back": {
|
|
4599
|
+
args: PostMandateCandidatePutBackArgs;
|
|
4600
|
+
result: PostMandateCandidatePutBackResult;
|
|
4601
|
+
};
|
|
4602
|
+
"POST /mandate-candidates/{candidate_id}/discard": {
|
|
4603
|
+
args: PostMandateCandidateDiscardArgs;
|
|
4604
|
+
result: PostMandateCandidateDiscardResult;
|
|
4605
|
+
};
|
|
4606
|
+
"GET /mandate-candidate-runs/{run_id}": {
|
|
4607
|
+
args: GetMandateCandidateRunArgs;
|
|
4608
|
+
result: GetMandateCandidateRunResult;
|
|
4609
|
+
};
|
|
4610
|
+
"POST /mandate-candidate-runs/{run_id}/agreement": {
|
|
4611
|
+
args: PostMandateCandidateRunAgreementArgs;
|
|
4612
|
+
result: PostMandateCandidateRunAgreementResult;
|
|
4613
|
+
};
|
|
4614
|
+
"GET /admin/judges/agreement": {
|
|
4615
|
+
args: GetAgreementArgs;
|
|
4616
|
+
result: GetAgreementResult;
|
|
4617
|
+
};
|
|
4618
|
+
"GET /admin/judges/mandate-outcome/pending": {
|
|
4619
|
+
args: GetMandateOutcomePendingArgs;
|
|
4620
|
+
result: GetMandateOutcomePendingResult;
|
|
4621
|
+
};
|
|
4622
|
+
"POST /admin/judges/mandate-outcome/{verdict_id}/authority": {
|
|
4623
|
+
args: PostMandateOutcomeAuthorityArgs;
|
|
4624
|
+
result: PostMandateOutcomeAuthorityResult;
|
|
4625
|
+
};
|
|
4626
|
+
"GET /admin/judges/mandate-outcome/calibration": {
|
|
4627
|
+
args: GetMandateOutcomeCalibrationArgs;
|
|
4628
|
+
result: GetMandateOutcomeCalibrationResult;
|
|
4629
|
+
};
|
|
4630
|
+
"POST /admin/judges/mandate-outcome/goal-clauses/{row_id}/ratify": {
|
|
4631
|
+
args: PostRatifyGoalClausesArgs;
|
|
4632
|
+
result: PostRatifyGoalClausesResult;
|
|
4633
|
+
};
|
|
4634
|
+
"GET /admin/judges/{judge_key}/calibration": {
|
|
4635
|
+
args: GetCalibrationArgs;
|
|
4636
|
+
result: GetCalibrationResult;
|
|
4637
|
+
};
|
|
4638
|
+
"POST /admin/judges/sweep-feedback": {
|
|
4639
|
+
args: PostSweepFeedbackArgs;
|
|
4640
|
+
result: PostSweepFeedbackResult;
|
|
4641
|
+
};
|
|
4642
|
+
"GET /admin/producer-yield": {
|
|
4643
|
+
args: GetProducerYieldArgs;
|
|
4644
|
+
result: GetProducerYieldResult;
|
|
4645
|
+
};
|
|
4646
|
+
"POST /admin/producer-yield/check": {
|
|
4647
|
+
args: PostYieldCheckArgs;
|
|
4648
|
+
result: PostYieldCheckResult;
|
|
4649
|
+
};
|
|
4650
|
+
"GET /local-mandates/{mandate_key}": {
|
|
4651
|
+
args: ResolveLocalMandateArgs;
|
|
4652
|
+
result: ResolveLocalMandateResult;
|
|
4653
|
+
};
|
|
4654
|
+
}
|
|
4655
|
+
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
4656
|
+
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
4657
|
+
|
|
4658
|
+
export { ALL_MANDATE_KEYS, type AdminGetEnrollmentArgs, type AdminGetEnrollmentResult, type AdminGetReviewArgs, type AdminGetReviewResult, type AdminListEnrollmentsArgs, type AdminListEnrollmentsResult, type AdmissionVerdict, type AdvanceCounts, type AdvanceReport, type AdvanceRequest, type AdvanceRowResult, type AgentConfigSettings, type AgentImpactAdvanceArgs, type AgentImpactAdvanceMineArgs, type AgentImpactAdvanceMineResult, type AgentImpactAdvanceResult, type AgentImpactArgs, type AgentImpactMineArgs, type AgentImpactMineResult, type AgentImpactResult, type AgentImpactRevertArgs, type AgentImpactRevertMineArgs, type AgentImpactRevertMineResult, type AgentImpactRevertResult, type AgentVersion_Input, type AgentVersion_Output, type AgreementRollup, type AgreementRow, type Answer, type AnswerMandateRunArgs, type AnswerMandateRunResult, type ApplyFindingRouteArgs, type ApplyFindingRouteResult, type ApplyToken, type ArchiveEnrollmentArgs, type ArchiveEnrollmentResult, type ArchiveOut, type AuthorityAnswer, type BenchCalibration, type BindingOfferConsumption, type BindingResult, type BoardConversionRow, type BoardFinding, type BoardRepo, type BoardScanSummary, type BoundAgentTruth, type Calibration, type CaseOutcome, type ChangeHistoryOut, type ChangeHistoryRow, type ChoiceAnswer, type ChoiceQuestion, type CodeTruthCallSite, type CodeTruthField, type CodeTruthModel, type CodeTruthSource, type CodeValueMapping, type CommitChoiceArgs, type CommitChoiceRequest, type CommitChoiceResult, type ContractCheck, type CreateDecisionArgs, type CreateDecisionResult, type CreateMandateArgs, type CreateMandateResult, type CreateSnapshotRegressionCaseArgs, type CreateSnapshotRegressionCaseResult, type CreateSoftMandateArgs, type CreateSoftMandateResult, type CrystallizationRefusal, type CrystallizationResult, type CrystallizationRunIn, type CrystallizationSubjectOut, type CrystallizationSweepResult, DYNAMIC_MANDATE_FAMILIES, type DecisionCalibrationReport, type DecisionResultPayload, type DecisionRunRequest, type DecisionUsage_Output, type DefinitionRights, type DeleteMandateBindingArgs, type DeleteMandateBindingResult, type DirectValueMapping, type DiscussFindingRouteArgs, type DiscussFindingRouteResult, type DiscussOut, type DiscussRequest, type DiscussReviewRouteArgs, type DiscussReviewRouteResult, type DraftInputItem, type DrainResult, type DroppedRungResponse, type DynamicMandateFamilyPrefix, type DynamicMandateKey, type EnrollArgs, type EnrollResult, type EnrollmentCostRow, type EnrollmentDetailOut, type EnrollmentOut, type EnrollmentSpend, type EnrollmentUpdateRequest, type ExpectationVerdict, type FeedbackIterationRequest, type FindingDecisionOut, type FindingEffectivenessRow, type FindingOut, type FindingProposalOut, type FindingRevertOut, type GetAgentCalibrationArgs, type GetAgentCalibrationResult, type GetAgreementArgs, type GetAgreementResult, type GetCalibrationArgs, type GetCalibrationResult, type GetCaseArgs, type GetCaseResult, type GetChangeHistoryArgs, type GetChangeHistoryResult, type GetEnrollmentArgs, type GetEnrollmentResult, type GetFindingEffectivenessArgs, type GetFindingEffectivenessResult, type GetMandateCandidateArgs, type GetMandateCandidateResult, type GetMandateCandidateRunArgs, type GetMandateCandidateRunResult, type GetMandateCandidatesArgs, type GetMandateCandidatesResult, type GetMandateCodeTruthArgs, type GetMandateCodeTruthResult, type GetMandateDefinitionRightsArgs, type GetMandateDefinitionRightsResult, type GetMandateDescribeArgs, type GetMandateDescribeResult, type GetMandateInputSurfaceArgs, type GetMandateInputSurfaceResult, type GetMandateOutcomeCalibrationArgs, type GetMandateOutcomeCalibrationResult, type GetMandateOutcomePendingArgs, type GetMandateOutcomePendingResult, type GetMandateReferenceBoardArgs, type GetMandateReferenceBoardResult, type GetMandateReferencesArgs, type GetMandateReferencesResult, type GetMandateResolutionArgs, type GetMandateResolutionResult, type GetMandateRunArgs, type GetMandateRunResult, type GetMandateRunResultArgs, type GetMandateRunResultResult, type GetMandateRunsArgs, type GetMandateRunsResult, type GetPendingExamplesArgs, type GetPendingExamplesResult, type GetProducerYieldArgs, type GetProducerYieldResult, type GetReplayArgs, type GetReplayResult, type GetReviewArgs, type GetReviewResult, type GetThreadArgs, type GetThreadResult, type GetWireReplayGroupArgs, type GetWireReplayGroupResult, type GoalClauseRecord, type GroupCalibration, type HeldOutOutcome, type HindsightCostsArgs, type HindsightCostsOut, type HindsightCostsResult, type ImpactDelta, type ImpactFinding, type ImpactPrincipal, type ImpactReport, type ImpactRequest, type ImpactVerdict, type ImpactWithheld, type ImpactWithheldGroup, type InitialIterationRequest, type IterationAgentConfig, type IterationSession_Input, type IterationSession_Output, type JudgeAccuracyReport, type LineageStep, type ListCasesArgs, type ListCasesResult, type ListCrystallizationSubjectsArgs, type ListCrystallizationSubjectsResult, type ListEnrollmentsArgs, type ListEnrollmentsResult, type ListMandatesArgs, type ListMandatesResult, type ListToolSubjectsArgs, type ListToolSubjectsResult, type ListWireReplaysArgs, type ListWireReplaysResult, type LiveCandidate, type LiveCandidateAgreementRequest, type LiveCandidateAgreementResult, type LiveCandidateCounts, type LiveCandidateDetail, type LiveCandidateDiscardRequest, type LiveCandidateForecast, type LiveCandidatePromoteRequest, type LiveCandidatePromoteResult, type LiveCandidateReplaced, type LiveCandidateRun, type LiveCandidateRunPayload, type LiveCandidateSetRequest, type LiveCandidateToolDisposition, type LiveCandidateVersionChoice, type LiveCandidatesResponse, MANDATE_FAMILIES, MANDATE_KEYS, MANDATE_KEYS_META, type MandateAnswerRequest, type MandateBindingDeleteRequest, type MandateBindingDeleteResponse, type MandateBindingRequest, type MandateCandidate, type MandateCodeTruth, type MandateCodeTruthReport, type MandateCoverageArgs, type MandateCoverageCounts, type MandateCoverageOrangeRow, type MandateCoverageRedRow, type MandateCoverageResponse, type MandateCoverageResult, type MandateCoverageState, type MandateCoverageStatesArgs, type MandateCoverageStatesResponse, type MandateCoverageStatesResult, type MandateCreateRequest, type MandateCreatedResponse, type MandateDefaultHolderRequest, type MandateDefaultHolderResult, type MandateDefinitionPatch, type MandateDefinitionPatchResponse, type MandateDescribeResponse, type MandateDraftInputsPatchRequest, type MandateDraftInputsResponse, type MandateExemplarTestResults, type MandateFamilyMember, type MandateFamilyPrefix, type MandateGoalPatchRequest, type MandateGoalResponse, type MandateHolderRef, type MandateHolderRow, type MandateInputSurfaceResponse, type MandateKey, type MandateNeedsInput, type MandateOfferRow, type MandateOriginFacts, type MandatePatrolSection, type MandateProvenanceArgs, type MandateProvenanceReport, type MandateProvenanceResult, type MandateReferenceBoard, type MandateReferenceReport, type MandateReferenceRow, type MandateResolutionResponse, type MandateResultPromoteRequest, type MandateResultPromotion, type MandateRunAccounting, type MandateRunDetail, type MandateRunListItem, type MandateRunListResponse, type MandateRunResultResponse, type MandateServedInput, type MandateSummaryResponse, type MandateTestBatchRequest, type MandateTestBatchResponse, type MandateTestColumn, type MandateTestPrincipal, type MandateTestRequest, type MandateTestResult, type MandateTryRequest, type MandateUsageFacts, type MandateVariableVerdictRequest, type MandateVariableVerdictsArgs, type MandateVariableVerdictsResult, type MemberTryCandidate, type NoulAnswer, type NoulQuestion, type OfferedValueMapping, type OfferedValueResponse, type Operations, type OutputWarningResponse, type PatchEnrollmentArgs, type PatchEnrollmentResult, type PatchMandateDefinitionFieldsArgs, type PatchMandateDefinitionFieldsResult, type PatchMandateDraftInputsArgs, type PatchMandateDraftInputsResult, type PatchMandateGoalArgs, type PatchMandateGoalResult, type PatrolRunRow, type PendingExampleOut, type PendingExamplesOut, type PendingLabels, type PendingVerdict, type PlacementPreviewRequest, type PlacementPreviewResponse, type PlacementProblem, type PostMandateCandidateArgs, type PostMandateCandidateDiscardArgs, type PostMandateCandidateDiscardResult, type PostMandateCandidatePromoteArgs, type PostMandateCandidatePromoteResult, type PostMandateCandidatePutBackArgs, type PostMandateCandidatePutBackResult, type PostMandateCandidateResult, type PostMandateCandidateRunAgreementArgs, type PostMandateCandidateRunAgreementResult, type PostMandateOutcomeAuthorityArgs, type PostMandateOutcomeAuthorityResult, type PostMandateWorkflowStarterArgs, type PostMandateWorkflowStarterResult, type PostRatifyGoalClausesArgs, type PostRatifyGoalClausesResult, type PostSweepFeedbackArgs, type PostSweepFeedbackResult, type PostYieldCheckArgs, type PostYieldCheckResult, type PreviewMandatePlacementArgs, type PreviewMandatePlacementResult, type ProbabilityCalibration, type ProducerYieldOut, type ProducerYieldRow, type ProducerYieldTotals, type PromoteExemplarTestResultArgs, type PromoteExemplarTestResultResult, type PromptUserValueMapping, type ProofResult, type ProveFindingRouteArgs, type ProveFindingRouteResult, type PutMandateBindingArgs, type PutMandateBindingResult, type PutMandateDefaultHolderArgs, type PutMandateDefaultHolderResult, type Question, type QuestionCalibration, RETIRING_MANDATE_KEYS, type Ratification, type ReadDecisionArgs, type ReadDecisionResult, type RegressionCaseIn, type RegressionCaseOut, type RegressionCaseRunIn, type RegressionCaseStatusIn, type RegressionRunResult, type RejectFindingRouteArgs, type RejectFindingRouteResult, type ReliabilityBin, type ReplayMandateRunArgs, type ReplayMandateRunResult, type ReplayOut, type ReplayRequest, type ReplayRunResult, type RepoDiffReceiptOut, type RepoScanCompleteness, type ResolveLocalMandateArgs, type ResolveLocalMandateResult, type RevertFindingRouteArgs, type RevertFindingRouteResult, type RevertRequest, type ReviewDetailOut, type ReviewExample, type ReviewOut, type ReviewRunResult, type ReviewThreadOut, type RunCaseArgs, type RunCaseResult, type RunCrystallizationPassArgs, type RunCrystallizationPassResult, type RunFeedbackArgs, type RunFeedbackResult, type RunHolder, type RunInitialArgs, type RunInitialResult, type RunProvision, type ScoreAnswer, type ScoreQuestion, type SetCaseStatusArgs, type SetCaseStatusResult, type SettingsCapabilityIssue, type SettingsDrift, type SettingsDriftKey, type ShadowSweepIn, type ShadowSweepReport, type SoftMandateCreateRequest, type SoftMandateCreatedResponse, type StructuralVerdict, type SweepResult, type SystemOneEntry, type SystemOneState, type TestMandateAllExemplarsArgs, type TestMandateAllExemplarsResult, type TestMandateArgs, type TestMandateResult, type ThreadMessageOut, type ThresholdRecommendation, type ToolSubjectOut, type Trajectory, type TrajectoryCluster, type TrajectoryStep, type TriggerCrystallizationSweepArgs, type TriggerCrystallizationSweepResult, type TriggerDrainArgs, type TriggerDrainResult, type TriggerReplayArgs, type TriggerReplayResult, type TriggerReviewArgs, type TriggerReviewRequest, type TriggerReviewResult, type TriggerShadowRecompilationArgs, type TriggerShadowRecompilationResult, type TriggerWireReplayArgs, type TriggerWireReplayResult, type TryMandateArgs, type TryMandateResult, type UnmappedValueMapping, type VariableResolution, type VariableVerdict, type VariableVerdictKind, type WireReplayArmIn, type WireReplayArmResult, type WireReplayIn, type WireReplayResult, type WireReplayStepOut, type WorkflowImpactArgs, type WorkflowImpactReport, type WorkflowImpactRequest, type WorkflowImpactResult, type WorkflowImpactVerdict, type WorkflowImpactWithheld, type WorkflowStarterResult, type WorkflowStarterSkipped, type YieldBreachOut, type YieldCheckOut, type YieldFloors, adminGetEnrollment, adminGetReview, adminListEnrollments, agentImpact, agentImpactAdvance, agentImpactAdvanceMine, agentImpactMine, agentImpactRevert, agentImpactRevertMine, type aidream__api__routers__mandate_bindings__MandateCatalogResponse, type aidream__services__hindsight__enrollment__EnrollRequest, answerMandateRun, applyFindingRoute, archiveEnrollment, call, commitChoice, createDecision, createMandate, createSnapshotRegressionCase, createSoftMandate, deleteMandateBinding, discussFindingRoute, discussReviewRoute, enroll, getAgentCalibration, getAgreement, getCalibration, getCase, getChangeHistory, getEnrollment, getFindingEffectiveness, getMandateCandidate, getMandateCandidateRun, getMandateCandidates, getMandateCodeTruth, getMandateDefinitionRights, getMandateDescribe, getMandateInputSurface, getMandateOutcomeCalibration, getMandateOutcomePending, getMandateReferenceBoard, getMandateReferences, getMandateResolution, getMandateRun, getMandateRunResult, getMandateRuns, getPendingExamples, getProducerYield, getReplay, getReview, getThread, getWireReplayGroup, hindsightCosts, listCases, listCrystallizationSubjects, listEnrollments, listMandates, listToolSubjects, listWireReplays, mandateCoverage, mandateCoverageStates, mandateKeyOfApp, mandateKeyOfShortcut, mandateProvenance, mandateVariableVerdicts, patchEnrollment, patchMandateDefinitionFields, patchMandateDraftInputs, patchMandateGoal, postMandateCandidate, postMandateCandidateDiscard, postMandateCandidatePromote, postMandateCandidatePutBack, postMandateCandidateRunAgreement, postMandateOutcomeAuthority, postMandateWorkflowStarter, postRatifyGoalClauses, postSweepFeedback, postYieldCheck, previewMandatePlacement, promoteExemplarTestResult, proveFindingRoute, putMandateBinding, putMandateDefaultHolder, readDecision, rejectFindingRoute, replayMandateRun, resolveLocalMandate, revertFindingRoute, runCase, runCrystallizationPass, runFeedback, runInitial, setCaseStatus, testMandate, testMandateAllExemplars, triggerCrystallizationSweep, triggerDrain, triggerReplay, triggerReview, triggerShadowRecompilation, triggerWireReplay, tryMandate, workflowImpact };
|