@ai-matrx/api 0.1.22 → 0.1.24

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.
Files changed (124) hide show
  1. package/CHANGELOG.md +36 -3
  2. package/dist/account.d.cts +2 -2
  3. package/dist/account.d.ts +2 -2
  4. package/dist/agents.cjs +11 -11
  5. package/dist/agents.d.cts +8 -2
  6. package/dist/agents.d.ts +8 -2
  7. package/dist/agents.js +1 -1
  8. package/dist/ai.cjs +38 -2
  9. package/dist/ai.d.cts +118 -3
  10. package/dist/ai.d.ts +118 -3
  11. package/dist/ai.js +32 -2
  12. package/dist/apps.cjs +5 -5
  13. package/dist/apps.d.cts +2 -2
  14. package/dist/apps.d.ts +2 -2
  15. package/dist/apps.js +1 -1
  16. package/dist/architecture.cjs +25 -25
  17. package/dist/architecture.d.cts +35 -21
  18. package/dist/architecture.d.ts +35 -21
  19. package/dist/architecture.js +15 -15
  20. package/dist/audio.cjs +4 -4
  21. package/dist/audio.d.cts +2 -2
  22. package/dist/audio.d.ts +2 -2
  23. package/dist/audio.js +1 -1
  24. package/dist/chat.cjs +23 -11
  25. package/dist/chat.d.cts +59 -3
  26. package/dist/chat.d.ts +59 -3
  27. package/dist/chat.js +12 -2
  28. package/dist/{chunk-3M4Y376I.js → chunk-E3PGCGP7.js} +1 -1
  29. package/dist/{chunk-FSXBRXRX.cjs → chunk-ZOZOF5DN.cjs} +1 -1
  30. package/dist/code.cjs +6 -6
  31. package/dist/code.d.cts +2 -2
  32. package/dist/code.d.ts +2 -2
  33. package/dist/code.js +1 -1
  34. package/dist/commerce.d.cts +2 -2
  35. package/dist/commerce.d.ts +2 -2
  36. package/dist/communications.cjs +4 -4
  37. package/dist/communications.d.cts +2 -2
  38. package/dist/communications.d.ts +2 -2
  39. package/dist/communications.js +1 -1
  40. package/dist/computer.cjs +4 -4
  41. package/dist/computer.d.cts +2 -2
  42. package/dist/computer.d.ts +2 -2
  43. package/dist/computer.js +1 -1
  44. package/dist/content.cjs +4 -4
  45. package/dist/content.d.cts +2 -2
  46. package/dist/content.d.ts +2 -2
  47. package/dist/content.js +1 -1
  48. package/dist/crm.cjs +2 -2
  49. package/dist/crm.d.cts +2 -2
  50. package/dist/crm.d.ts +2 -2
  51. package/dist/crm.js +1 -1
  52. package/dist/data.cjs +3 -3
  53. package/dist/data.d.cts +2 -2
  54. package/dist/data.d.ts +2 -2
  55. package/dist/data.js +1 -1
  56. package/dist/education.cjs +4 -4
  57. package/dist/education.d.cts +2 -2
  58. package/dist/education.d.ts +2 -2
  59. package/dist/education.js +1 -1
  60. package/dist/files.cjs +20 -20
  61. package/dist/files.d.cts +2 -2
  62. package/dist/files.d.ts +2 -2
  63. package/dist/files.js +1 -1
  64. package/dist/human-resources.d.cts +2 -2
  65. package/dist/human-resources.d.ts +2 -2
  66. package/dist/{index-oZNMwcTG.d.cts → index-BgjdVvrS.d.cts} +2 -2
  67. package/dist/{index-oZNMwcTG.d.ts → index-BgjdVvrS.d.ts} +2 -2
  68. package/dist/index.cjs +59 -67
  69. package/dist/index.d.cts +3 -11
  70. package/dist/index.d.ts +3 -11
  71. package/dist/index.js +3 -11
  72. package/dist/integrations.cjs +28 -4
  73. package/dist/integrations.d.cts +87 -5
  74. package/dist/integrations.d.ts +87 -5
  75. package/dist/integrations.js +23 -3
  76. package/dist/intelligence.cjs +6 -6
  77. package/dist/intelligence.d.cts +6 -2
  78. package/dist/intelligence.d.ts +6 -2
  79. package/dist/intelligence.js +1 -1
  80. package/dist/knowledge.cjs +42 -42
  81. package/dist/knowledge.d.cts +2 -2
  82. package/dist/knowledge.d.ts +2 -2
  83. package/dist/knowledge.js +1 -1
  84. package/dist/legal.cjs +6 -6
  85. package/dist/legal.d.cts +2 -2
  86. package/dist/legal.d.ts +2 -2
  87. package/dist/legal.js +1 -1
  88. package/dist/marketing.cjs +128 -76
  89. package/dist/marketing.d.cts +448 -3
  90. package/dist/marketing.d.ts +448 -3
  91. package/dist/marketing.js +45 -2
  92. package/dist/masterwork.cjs +32 -32
  93. package/dist/masterwork.d.cts +2 -2
  94. package/dist/masterwork.d.ts +2 -2
  95. package/dist/masterwork.js +1 -1
  96. package/dist/media.cjs +11 -11
  97. package/dist/media.d.cts +2 -2
  98. package/dist/media.d.ts +2 -2
  99. package/dist/media.js +1 -1
  100. package/dist/platform.cjs +3 -3
  101. package/dist/platform.d.cts +2 -2
  102. package/dist/platform.d.ts +2 -2
  103. package/dist/platform.js +1 -1
  104. package/dist/publish.cjs +7 -7
  105. package/dist/publish.d.cts +2 -2
  106. package/dist/publish.d.ts +2 -2
  107. package/dist/publish.js +1 -1
  108. package/dist/schemas.d.cts +1 -1
  109. package/dist/schemas.d.ts +1 -1
  110. package/dist/stream.cjs +10 -10
  111. package/dist/stream.d.cts +1 -1
  112. package/dist/stream.d.ts +1 -1
  113. package/dist/stream.js +1 -1
  114. package/dist/types.d.cts +516 -20
  115. package/dist/types.d.ts +516 -20
  116. package/dist/web.cjs +26 -26
  117. package/dist/web.d.cts +5 -2
  118. package/dist/web.d.ts +5 -2
  119. package/dist/web.js +1 -1
  120. package/dist/workflows.cjs +13 -13
  121. package/dist/workflows.d.cts +2 -2
  122. package/dist/workflows.d.ts +2 -2
  123. package/dist/workflows.js +1 -1
  124. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog — @ai-matrx/api
2
2
 
3
+ ### Unreleased
4
+
5
+ - **Removed** the deprecated aliases `ENDPOINTS.ai.chat` (use `ENDPOINTS.ai.manual`) and `ENDPOINTS.utilities.pdfExtractText` (use `ENDPOINTS.pdf.extractText`); no importer existed. Added `FEATURE.md`. Consumer action: none.
6
+
7
+ ## 0.1.24
8
+
9
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
10
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/api/src`.
11
+
12
+ ## 0.1.23
13
+
14
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
15
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
16
+ Diff: `git diff e2771d68e0 cdea8c928e -- apps/shared/api/src`
17
+
18
+ Changed shipped source files (31):
19
+ - `apps/shared/api/src/deployments.generated.ts`
20
+ - `apps/shared/api/src/generated/account.ts`
21
+ - `apps/shared/api/src/generated/agents.ts`
22
+ - `apps/shared/api/src/generated/ai.ts`
23
+ - `apps/shared/api/src/generated/apps.ts`
24
+ - `apps/shared/api/src/generated/architecture.ts`
25
+ - `apps/shared/api/src/generated/audio.ts`
26
+ - `apps/shared/api/src/generated/chat.ts`
27
+ - `apps/shared/api/src/generated/code.ts`
28
+ - `apps/shared/api/src/generated/commerce.ts`
29
+ - `apps/shared/api/src/generated/communications.ts`
30
+ - `apps/shared/api/src/generated/computer.ts`
31
+ - ...and 19 more
32
+
3
33
  ## 0.1.22
4
34
 
5
35
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -8,9 +38,12 @@ No source changes intended and no consumer action required.
8
38
 
9
39
  ## 0.1.21
10
40
 
11
- Automatic changed-only republish (docs/metadata drift since the last tag — see
12
- `git diff npm/api/v0.1.20..npm/api/v0.1.21 -- apps/shared/api`).
13
- No source changes intended and no consumer action required.
41
+ BREAKING (corrected after the fact; the original entry wrongly said "no source changes"):
42
+ the v1 protocol fallback was deleted (`src/core/protocol.ts`, `client.ts`, `call.ts`), and
43
+ `MatrxTransportDiagnostics.onProtocolDowngrade` no longer exists.
44
+
45
+ Consumer action: remove any use of `diagnostics.onProtocolDowngrade` (it is now a TS2353
46
+ excess-property error). No v1 fallback exists any more; there is nothing to replace it with.
14
47
 
15
48
  ## 0.1.20
16
49
 
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions } from './index-oZNMwcTG.cjs';
1
+ import { A as Api, C as CallOptions } from './index-BgjdVvrS.cjs';
2
2
  import { JsonValue, UserAnalysisPreferencesResponse } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 605c060bacf38697b876c603bf0260b9b2941fe22b1da1722810724c3d0c39be
7
+ * CONTRACT_SHA256 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
8
8
  */
9
9
 
10
10
  /** Result of opening, completing, or re-minting an action request. */
package/dist/account.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions } from './index-oZNMwcTG.js';
1
+ import { A as Api, C as CallOptions } from './index-BgjdVvrS.js';
2
2
  import { JsonValue, UserAnalysisPreferencesResponse } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 605c060bacf38697b876c603bf0260b9b2941fe22b1da1722810724c3d0c39be
7
+ * CONTRACT_SHA256 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
8
8
  */
9
9
 
10
10
  /** Result of opening, completing, or re-minting an action request. */
package/dist/agents.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkFSXBRXRX_cjs = require('./chunk-FSXBRXRX.cjs');
3
+ var chunkZOZOF5DN_cjs = require('./chunk-ZOZOF5DN.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/agents.ts
@@ -50,15 +50,15 @@ function resolvePromptBlocks(api, args, options) {
50
50
  }
51
51
  var $agentsStartAgent = { m: "POST", p: "/ai/agent/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent" };
52
52
  function agentsStartAgent(api, args, options) {
53
- return chunkFSXBRXRX_cjs.openJsonOrStream(api, $agentsStartAgent, args, options);
53
+ return chunkZOZOF5DN_cjs.openJsonOrStream(api, $agentsStartAgent, args, options);
54
54
  }
55
55
  var $agentsStartAgentPost = { m: "POST", p: "/ai/agents/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent_post" };
56
56
  function agentsStartAgentPost(api, args, options) {
57
- return chunkFSXBRXRX_cjs.openJsonOrStream(api, $agentsStartAgentPost, args, options);
57
+ return chunkZOZOF5DN_cjs.openJsonOrStream(api, $agentsStartAgentPost, args, options);
58
58
  }
59
59
  var $startMandatedAgent = { m: "POST", p: "/ai/mandates/{mandate_key}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_mandated_agent" };
60
60
  function startMandatedAgent(api, args, options) {
61
- return chunkFSXBRXRX_cjs.openStream(api, $startMandatedAgent, args, options);
61
+ return chunkZOZOF5DN_cjs.openStream(api, $startMandatedAgent, args, options);
62
62
  }
63
63
  var $invalidateAgentCache = { m: "POST", p: "/ai/agents/{agent_id}/invalidate-cache", d: "aidream", a: "guest", o: "required", n: "agents.invalidate_agent_cache" };
64
64
  function invalidateAgentCache(api, args, options) {
@@ -66,7 +66,7 @@ function invalidateAgentCache(api, args, options) {
66
66
  }
67
67
  var $mockStream = { m: "POST", p: "/ai/mock-stream/{scenario}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.mock_stream" };
68
68
  function mockStream(api, args, options) {
69
- return chunkFSXBRXRX_cjs.openStream(api, $mockStream, args, options);
69
+ return chunkZOZOF5DN_cjs.openStream(api, $mockStream, args, options);
70
70
  }
71
71
  var $listScenarios = { m: "GET", p: "/ai/mock-stream/scenarios", d: "aidream", a: "guest", o: "optional", n: "agents.list_scenarios" };
72
72
  function listScenarios(api, args, options) {
@@ -82,11 +82,11 @@ function getUserPromptsAndBuiltins(api, args, options) {
82
82
  }
83
83
  var $startPrompt = { m: "POST", p: "/ai/prompts/{prompt_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_prompt" };
84
84
  function startPrompt(api, args, options) {
85
- return chunkFSXBRXRX_cjs.openStream(api, $startPrompt, args, options);
85
+ return chunkZOZOF5DN_cjs.openStream(api, $startPrompt, args, options);
86
86
  }
87
87
  var $startAgentBlocks = { m: "POST", p: "/ai/agents-blocks/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_agent_blocks" };
88
88
  function startAgentBlocks(api, args, options) {
89
- return chunkFSXBRXRX_cjs.openStream(api, $startAgentBlocks, args, options);
89
+ return chunkZOZOF5DN_cjs.openStream(api, $startAgentBlocks, args, options);
90
90
  }
91
91
  var $previewContext = { m: "POST", p: "/ai/context/preview", d: "aidream", a: "guest", o: "required", n: "agents.preview_context" };
92
92
  function previewContext(api, args, options) {
@@ -230,7 +230,7 @@ function judgeFirstRuns(api, args, options) {
230
230
  }
231
231
  var $agentFromChat = { m: "POST", p: "/agent-studio/from-chat", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.agent_from_chat" };
232
232
  function agentFromChat(api, args, options) {
233
- return chunkFSXBRXRX_cjs.openStream(api, $agentFromChat, args, options);
233
+ return chunkZOZOF5DN_cjs.openStream(api, $agentFromChat, args, options);
234
234
  }
235
235
  var $importPreview = { m: "POST", p: "/agent-studio/import/preview", d: "aidream", a: "guest", o: "required", n: "agents.import_preview" };
236
236
  function importPreview(api, args, options) {
@@ -242,7 +242,7 @@ function importDraft(api, args, options) {
242
242
  }
243
243
  var $adminAgentFromChat = { m: "POST", p: "/admin/agent-studio/from-chat", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "agents.admin_agent_from_chat" };
244
244
  function adminAgentFromChat(api, args, options) {
245
- return chunkFSXBRXRX_cjs.openStream(api, $adminAgentFromChat, args, options);
245
+ return chunkZOZOF5DN_cjs.openStream(api, $adminAgentFromChat, args, options);
246
246
  }
247
247
  var $adminToolsListTools = { m: "GET", p: "/admin/tools", d: "aidream", a: "admin", o: "exempt", n: "agents.admin_tools_list_tools" };
248
248
  function adminToolsListTools(api, args, options) {
@@ -278,7 +278,7 @@ function getOrCreateTestSession(api, args, options) {
278
278
  }
279
279
  var $executeToolTest = { m: "POST", p: "/tools/test/execute", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.execute_tool_test" };
280
280
  function executeToolTest(api, args, options) {
281
- return chunkFSXBRXRX_cjs.openStream(api, $executeToolTest, args, options);
281
+ return chunkZOZOF5DN_cjs.openStream(api, $executeToolTest, args, options);
282
282
  }
283
283
  var $getDbSurfaceManifest = { m: "GET", p: "/surfaces/{client_name}/{surface_name}/manifest", d: "aidream", a: "guest", o: "exempt", n: "agents.get_db_surface_manifest" };
284
284
  function getDbSurfaceManifest(api, args, options) {
@@ -310,7 +310,7 @@ function previewVariableBinding(api, args, options) {
310
310
  }
311
311
  var $runMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.run_matrix_battle" };
312
312
  function runMatrixBattle(api, args, options) {
313
- return chunkFSXBRXRX_cjs.openStream(api, $runMatrixBattle, args, options);
313
+ return chunkZOZOF5DN_cjs.openStream(api, $runMatrixBattle, args, options);
314
314
  }
315
315
  var $cancelMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/cancel", d: "aidream", a: "guest", o: "required", n: "agents.cancel_matrix_battle" };
316
316
  function cancelMatrixBattle(api, args, options) {
package/dist/agents.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-oZNMwcTG.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-BgjdVvrS.cjs';
2
2
  import { JsonValue, ContextAnchor, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, LLMParams, HostTurn, MandateTestHolder, ResourceContextPolicy, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, IdeState, SandboxBindingRequest, PageContext, ChatMessageInput, CacheBypass, DirectiveItemApplied, DirectiveItemFailed, ActionNeeded } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 605c060bacf38697b876c603bf0260b9b2941fe22b1da1722810724c3d0c39be
7
+ * CONTRACT_SHA256 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
8
8
  */
9
9
 
10
10
  /** AgentBlocksStartRequest */
@@ -32,6 +32,8 @@ type AgentBlocksStartRequest = {
32
32
  target_instance_id?: string | null;
33
33
  conversation_id: string;
34
34
  is_new: boolean;
35
+ /** Start this conversation as a CHILD of an existing conversation the caller may add to (a user-visible session started from a parent chat). Validated: a parent that is missing or not the caller's answer */
36
+ parent_conversation_id?: string | null;
35
37
  user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
36
38
  variables?: {
37
39
  [key: string]: unknown;
@@ -171,6 +173,8 @@ type AgentStartRequest = {
171
173
  target_instance_id?: string | null;
172
174
  conversation_id: string;
173
175
  is_new: boolean;
176
+ /** Start this conversation as a CHILD of an existing conversation the caller may add to (a user-visible session started from a parent chat). Validated: a parent that is missing or not the caller's answer */
177
+ parent_conversation_id?: string | null;
174
178
  user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
175
179
  host_turn?: HostTurn | null;
176
180
  model_this_turn_only?: boolean;
@@ -1615,6 +1619,8 @@ type PromptStartRequest = {
1615
1619
  target_instance_id?: string | null;
1616
1620
  conversation_id: string;
1617
1621
  is_new: boolean;
1622
+ /** Start this conversation as a CHILD of an existing conversation the caller may add to (a user-visible session started from a parent chat). Validated: a parent that is missing or not the caller's answer */
1623
+ parent_conversation_id?: string | null;
1618
1624
  user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
1619
1625
  variables?: {
1620
1626
  [key: string]: unknown;
package/dist/agents.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-oZNMwcTG.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-BgjdVvrS.js';
2
2
  import { JsonValue, ContextAnchor, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, LLMParams, HostTurn, MandateTestHolder, ResourceContextPolicy, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, IdeState, SandboxBindingRequest, PageContext, ChatMessageInput, CacheBypass, DirectiveItemApplied, DirectiveItemFailed, ActionNeeded } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 605c060bacf38697b876c603bf0260b9b2941fe22b1da1722810724c3d0c39be
7
+ * CONTRACT_SHA256 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
8
8
  */
9
9
 
10
10
  /** AgentBlocksStartRequest */
@@ -32,6 +32,8 @@ type AgentBlocksStartRequest = {
32
32
  target_instance_id?: string | null;
33
33
  conversation_id: string;
34
34
  is_new: boolean;
35
+ /** Start this conversation as a CHILD of an existing conversation the caller may add to (a user-visible session started from a parent chat). Validated: a parent that is missing or not the caller's answer */
36
+ parent_conversation_id?: string | null;
35
37
  user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
36
38
  variables?: {
37
39
  [key: string]: unknown;
@@ -171,6 +173,8 @@ type AgentStartRequest = {
171
173
  target_instance_id?: string | null;
172
174
  conversation_id: string;
173
175
  is_new: boolean;
176
+ /** Start this conversation as a CHILD of an existing conversation the caller may add to (a user-visible session started from a parent chat). Validated: a parent that is missing or not the caller's answer */
177
+ parent_conversation_id?: string | null;
174
178
  user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
175
179
  host_turn?: HostTurn | null;
176
180
  model_this_turn_only?: boolean;
@@ -1615,6 +1619,8 @@ type PromptStartRequest = {
1615
1619
  target_instance_id?: string | null;
1616
1620
  conversation_id: string;
1617
1621
  is_new: boolean;
1622
+ /** Start this conversation as a CHILD of an existing conversation the caller may add to (a user-visible session started from a parent chat). Validated: a parent that is missing or not the caller's answer */
1623
+ parent_conversation_id?: string | null;
1618
1624
  user_input?: string | ((TextPart | ThinkingPart | ToolCallPart | ToolResultPart | (UserImageMediaPart | UserAudioMediaPart | UserVideoMediaPart | UserDocumentMediaPart | UserYouTubeMediaPart) | CodeExecPart | CodeResultPart | WebSearchPart | WebpageInputPart | NotesInputPart | TaskInputPart | AgentInputPart | ProjectInputPart | AgentAppInputPart | TranscriptInputPart | TranscriptSessionInputPart | WorkbookInputPart | DocumentInputPart | TableInputPart | ListInputPart | DataInputPart | ContextInputPart | RemarksInputPart | DecisionQuestionsPart | DecisionAnswersPart | SpeechScriptPart)[]) | null;
1619
1625
  variables?: {
1620
1626
  [key: string]: unknown;
package/dist/agents.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream, openStream } from './chunk-3M4Y376I.js';
1
+ import { openJsonOrStream, openStream } from './chunk-E3PGCGP7.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/agents.ts
package/dist/ai.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkFSXBRXRX_cjs = require('./chunk-FSXBRXRX.cjs');
3
+ var chunkZOZOF5DN_cjs = require('./chunk-ZOZOF5DN.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/ai.ts
@@ -16,6 +16,30 @@ var $createEmbeddings = { m: "POST", p: "/ai/google/embeddings", d: "aidream", a
16
16
  function createEmbeddings(api, args, options) {
17
17
  return api.call($createEmbeddings, args, options);
18
18
  }
19
+ var $getStatus = { m: "GET", p: "/ai-test-mode/status", d: "aidream", a: "user", o: "required", n: "ai.get_status" };
20
+ function getStatus(api, args, options) {
21
+ return api.call($getStatus, args, options);
22
+ }
23
+ var $listBaselines = { m: "GET", p: "/admin/ai-test-mode/baselines", d: "aidream", a: "admin", o: "exempt", n: "ai.list_baselines" };
24
+ function listBaselines(api, args, options) {
25
+ return api.call($listBaselines, args, options);
26
+ }
27
+ var $patchBaseline = { m: "PATCH", p: "/admin/ai-test-mode/baselines/{baseline_id}", d: "aidream", a: "admin", o: "exempt", n: "ai.patch_baseline" };
28
+ function patchBaseline(api, args, options) {
29
+ return api.call($patchBaseline, args, options);
30
+ }
31
+ var $deleteBaseline = { m: "DELETE", p: "/admin/ai-test-mode/baselines/{baseline_id}", d: "aidream", a: "admin", o: "exempt", n: "ai.delete_baseline" };
32
+ function deleteBaseline(api, args, options) {
33
+ return api.call($deleteBaseline, args, options);
34
+ }
35
+ var $putStandIn = { m: "PUT", p: "/admin/ai-test-mode/stand-ins/{mandate_key}", d: "aidream", a: "admin", o: "exempt", n: "ai.put_stand_in" };
36
+ function putStandIn(api, args, options) {
37
+ return api.call($putStandIn, args, options);
38
+ }
39
+ var $getReport = { m: "GET", p: "/admin/ai-test-mode/report", d: "aidream", a: "admin", o: "exempt", n: "ai.get_report" };
40
+ function getReport(api, args, options) {
41
+ return api.call($getReport, args, options);
42
+ }
19
43
  var $syncRegisteredUsagesEndpoint = { m: "POST", p: "/agent-usage/sync", d: "aidream", a: "admin", o: "exempt", n: "ai.sync_registered_usages_endpoint" };
20
44
  function syncRegisteredUsagesEndpoint(api, args, options) {
21
45
  return api.call($syncRegisteredUsagesEndpoint, args, options);
@@ -54,7 +78,7 @@ function listModels(api, args, options) {
54
78
  }
55
79
  var $chatCompletions = { m: "POST", p: "/v1/chat/completions", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse_or_json", n: "ai.chat_completions" };
56
80
  function chatCompletions(api, args, options) {
57
- return chunkFSXBRXRX_cjs.openJsonOrStream(api, $chatCompletions, args, options);
81
+ return chunkZOZOF5DN_cjs.openJsonOrStream(api, $chatCompletions, args, options);
58
82
  }
59
83
  var $audioSpeech = { m: "POST", p: "/v1/audio/speech", d: "matrx-local", a: "loopback_token", o: "exempt", n: "ai.audio_speech" };
60
84
  function audioSpeech(api, args, options) {
@@ -76,6 +100,12 @@ var TABLE = {
76
100
  "GET /ai-models": $getAllAiModels,
77
101
  "POST /ai/latency/client-report": $clientLatencyReport,
78
102
  "POST /ai/google/embeddings": $createEmbeddings,
103
+ "GET /ai-test-mode/status": $getStatus,
104
+ "GET /admin/ai-test-mode/baselines": $listBaselines,
105
+ "PATCH /admin/ai-test-mode/baselines/{baseline_id}": $patchBaseline,
106
+ "DELETE /admin/ai-test-mode/baselines/{baseline_id}": $deleteBaseline,
107
+ "PUT /admin/ai-test-mode/stand-ins/{mandate_key}": $putStandIn,
108
+ "GET /admin/ai-test-mode/report": $getReport,
79
109
  "POST /agent-usage/sync": $syncRegisteredUsagesEndpoint,
80
110
  "GET /agent-usage/registry": $registryDiffEndpoint,
81
111
  "POST /agent-usage/scan": $runScanEndpoint,
@@ -101,10 +131,16 @@ exports.call = call;
101
131
  exports.chatCompletions = chatCompletions;
102
132
  exports.clientLatencyReport = clientLatencyReport;
103
133
  exports.createEmbeddings = createEmbeddings;
134
+ exports.deleteBaseline = deleteBaseline;
104
135
  exports.embeddings = embeddings;
105
136
  exports.getAllAiModels = getAllAiModels;
137
+ exports.getReport = getReport;
138
+ exports.getStatus = getStatus;
106
139
  exports.hfTokenAssist = hfTokenAssist;
140
+ exports.listBaselines = listBaselines;
107
141
  exports.listModels = listModels;
142
+ exports.patchBaseline = patchBaseline;
143
+ exports.putStandIn = putStandIn;
108
144
  exports.refreshProviderModels = refreshProviderModels;
109
145
  exports.registryDiffEndpoint = registryDiffEndpoint;
110
146
  exports.reloadCatalog = reloadCatalog;
package/dist/ai.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-oZNMwcTG.cjs';
1
+ import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-BgjdVvrS.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 605c060bacf38697b876c603bf0260b9b2941fe22b1da1722810724c3d0c39be
7
+ * CONTRACT_SHA256 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
8
8
  */
9
9
 
10
10
  /** AgentUsageReportResponse */
@@ -60,6 +60,18 @@ type AvailabilityDriftSummary = {
60
60
  };
61
61
  write_failures?: string[];
62
62
  };
63
+ /** BaselineList */
64
+ type BaselineList = {
65
+ baselines: {
66
+ [key: string]: JsonValue;
67
+ }[];
68
+ };
69
+ /** BaselinePatch */
70
+ type BaselinePatch = {
71
+ label?: string | null;
72
+ /** True pins this as the mandate's stand-in. */
73
+ stand_in?: boolean | null;
74
+ };
63
75
  /** ClientLatencyReport */
64
76
  type ClientLatencyReport = {
65
77
  latency_id: string;
@@ -313,6 +325,24 @@ type SettingsProbeSkippedOffering = {
313
325
  modality: string;
314
326
  why: string;
315
327
  };
328
+ /** StandInBody */
329
+ type StandInBody = {
330
+ label?: string | null;
331
+ /** The answer the step should return: any AiExecutionResult fields — usually `content` (kind instances) and/or `structured_output` and `final_text`. */
332
+ result: {
333
+ [key: string]: JsonValue;
334
+ };
335
+ };
336
+ /** TestModeStatus */
337
+ type TestModeStatus = {
338
+ requested: "real" | "replay" | "stand_in";
339
+ effective: "real" | "replay" | "stand_in";
340
+ reason: string;
341
+ /** The server allows test modes AND this caller may use them. */
342
+ available: boolean;
343
+ server_reason: string;
344
+ modes?: string[];
345
+ };
316
346
  /** An AVAILABLE offering the provider's own fresh list says it cannot serve. */
317
347
  type UnservableOffering = {
318
348
  offering_id: string;
@@ -344,6 +374,67 @@ type CreateEmbeddingsResult = EmbeddingResponse;
344
374
  /** Create Embeddings */
345
375
  /** `POST /ai/google/embeddings` · aidream · auth guest · org required */
346
376
  declare function createEmbeddings(api: Api, args: CreateEmbeddingsArgs, options?: CallOptions): Promise<CreateEmbeddingsResult>;
377
+ type GetStatusArgs = {
378
+ [key: string]: never;
379
+ };
380
+ type GetStatusResult = TestModeStatus;
381
+ /** Get Status */
382
+ /** `GET /ai-test-mode/status` · aidream · auth user · org required */
383
+ declare function getStatus(api: Api, args?: GetStatusArgs, options?: CallOptions): Promise<GetStatusResult>;
384
+ type ListBaselinesArgs = {
385
+ query?: {
386
+ mandate_key?: string | null;
387
+ include_provider_calls?: boolean;
388
+ };
389
+ };
390
+ type ListBaselinesResult = BaselineList;
391
+ /** List Baselines */
392
+ /** `GET /admin/ai-test-mode/baselines` · aidream · auth admin · org exempt */
393
+ declare function listBaselines(api: Api, args?: ListBaselinesArgs, options?: CallOptions): Promise<ListBaselinesResult>;
394
+ type PatchBaselineArgs = {
395
+ path: {
396
+ baseline_id: string;
397
+ };
398
+ body: BaselinePatch;
399
+ };
400
+ type PatchBaselineResult = {
401
+ [key: string]: JsonValue;
402
+ };
403
+ /** Patch Baseline */
404
+ /** `PATCH /admin/ai-test-mode/baselines/{baseline_id}` · aidream · auth admin · org exempt */
405
+ declare function patchBaseline(api: Api, args: PatchBaselineArgs, options?: CallOptions): Promise<PatchBaselineResult>;
406
+ type DeleteBaselineArgs = {
407
+ path: {
408
+ baseline_id: string;
409
+ };
410
+ };
411
+ type DeleteBaselineResult = {
412
+ [key: string]: boolean;
413
+ };
414
+ /** Delete Baseline */
415
+ /** `DELETE /admin/ai-test-mode/baselines/{baseline_id}` · aidream · auth admin · org exempt */
416
+ declare function deleteBaseline(api: Api, args: DeleteBaselineArgs, options?: CallOptions): Promise<DeleteBaselineResult>;
417
+ type PutStandInArgs = {
418
+ path: {
419
+ mandate_key: string;
420
+ };
421
+ body: StandInBody;
422
+ };
423
+ type PutStandInResult = {
424
+ [key: string]: JsonValue;
425
+ };
426
+ /** Put Stand In */
427
+ /** `PUT /admin/ai-test-mode/stand-ins/{mandate_key}` · aidream · auth admin · org exempt */
428
+ declare function putStandIn(api: Api, args: PutStandInArgs, options?: CallOptions): Promise<PutStandInResult>;
429
+ type GetReportArgs = {
430
+ [key: string]: never;
431
+ };
432
+ type GetReportResult = {
433
+ [key: string]: JsonValue;
434
+ };
435
+ /** Get Report */
436
+ /** `GET /admin/ai-test-mode/report` · aidream · auth admin · org exempt */
437
+ declare function getReport(api: Api, args?: GetReportArgs, options?: CallOptions): Promise<GetReportResult>;
347
438
  type SyncRegisteredUsagesEndpointArgs = {
348
439
  [key: string]: never;
349
440
  };
@@ -458,6 +549,30 @@ interface Operations {
458
549
  args: CreateEmbeddingsArgs;
459
550
  result: CreateEmbeddingsResult;
460
551
  };
552
+ "GET /ai-test-mode/status": {
553
+ args: GetStatusArgs;
554
+ result: GetStatusResult;
555
+ };
556
+ "GET /admin/ai-test-mode/baselines": {
557
+ args: ListBaselinesArgs;
558
+ result: ListBaselinesResult;
559
+ };
560
+ "PATCH /admin/ai-test-mode/baselines/{baseline_id}": {
561
+ args: PatchBaselineArgs;
562
+ result: PatchBaselineResult;
563
+ };
564
+ "DELETE /admin/ai-test-mode/baselines/{baseline_id}": {
565
+ args: DeleteBaselineArgs;
566
+ result: DeleteBaselineResult;
567
+ };
568
+ "PUT /admin/ai-test-mode/stand-ins/{mandate_key}": {
569
+ args: PutStandInArgs;
570
+ result: PutStandInResult;
571
+ };
572
+ "GET /admin/ai-test-mode/report": {
573
+ args: GetReportArgs;
574
+ result: GetReportResult;
575
+ };
461
576
  "POST /agent-usage/sync": {
462
577
  args: SyncRegisteredUsagesEndpointArgs;
463
578
  result: SyncRegisteredUsagesEndpointResult;
@@ -514,4 +629,4 @@ interface Operations {
514
629
  /** Path-keyed call, scoped to this domain only (never a global path map). */
515
630
  declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
516
631
 
517
- export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, embeddings, getAllAiModels, hfTokenAssist, listModels, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };
632
+ export { type AgentUsageReportResponse, type AgentUsageRollupEntry, type AiCatalogReloadSummary, type AiModelsResponse, type AnalyzeRepoArgs, type AnalyzeRepoResult, type AnalyzeRequest_MatrxLocal, type AudioSpeechArgs, type AudioSpeechResult, type AudioTranscriptionsArgs, type AudioTranscriptionsResult, type AvailabilityDriftSummary, type BaselineList, type BaselinePatch, type ChatCompletionsArgs, type ChatCompletionsResult, type ClientLatencyReport, type ClientLatencyReportAck, type ClientLatencyReportArgs, type ClientLatencyReportResult, type CodeAgentUsage, type CreateEmbeddingsArgs, type CreateEmbeddingsResult, type DeleteBaselineArgs, type DeleteBaselineResult, type EmbeddingPart, type EmbeddingRequest, type EmbeddingResponse, type EmbeddingsArgs, type EmbeddingsResult, type GetAllAiModelsArgs, type GetAllAiModelsResult, type GetReportArgs, type GetReportResult, type GetStatusArgs, type GetStatusResult, type HardwareInfo, type HfAssistRequest, type HfAssistResponse, type HfTokenAssistArgs, type HfTokenAssistResult, type ListBaselinesArgs, type ListBaselinesResult, type ListModelsArgs, type ListModelsResult, type ModelFileEntry, type Operations, type ParameterFactsSummary, type PatchBaselineArgs, type PatchBaselineResult, type ProviderModelsRefreshRequest, type ProviderModelsRefreshSummary, type ProviderRefreshResult, type PutStandInArgs, type PutStandInResult, type QuarantinedRowSummary, type RefreshProviderModelsArgs, type RefreshProviderModelsResult, type RegistryDbRow, type RegistryDiffEndpointArgs, type RegistryDiffEndpointResult, type RegistryDiffResponse, type RegistrySyncReport, type ReloadCatalogArgs, type ReloadCatalogResult, type RepoAnalysisResult, type ReportEndpointArgs, type ReportEndpointResult, type RunScanEndpointArgs, type RunScanEndpointResult, type RunSettingsProbeArgs, type RunSettingsProbeResult, type ScanSummary, type SettingsProbeOutcome, type SettingsProbeRequest, type SettingsProbeResponse, type SettingsProbeSkippedOffering, type StandInBody, type SyncRegisteredUsagesEndpointArgs, type SyncRegisteredUsagesEndpointResult, type TestModeStatus, type UnservableOffering, analyzeRepo, audioSpeech, audioTranscriptions, call, chatCompletions, clientLatencyReport, createEmbeddings, deleteBaseline, embeddings, getAllAiModels, getReport, getStatus, hfTokenAssist, listBaselines, listModels, patchBaseline, putStandIn, refreshProviderModels, registryDiffEndpoint, reloadCatalog, reportEndpoint, runScanEndpoint, runSettingsProbe, syncRegisteredUsagesEndpoint };