@ai-matrx/api 0.1.30 → 0.1.32

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 (132) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/dist/account.d.cts +8 -8
  3. package/dist/account.d.ts +8 -8
  4. package/dist/agents.cjs +160 -12
  5. package/dist/agents.d.cts +821 -15
  6. package/dist/agents.d.ts +821 -15
  7. package/dist/agents.js +127 -4
  8. package/dist/ai.cjs +26 -2
  9. package/dist/ai.d.cts +76 -3
  10. package/dist/ai.d.ts +76 -3
  11. package/dist/ai.js +22 -2
  12. package/dist/apps.cjs +5 -11
  13. package/dist/apps.d.cts +3 -49
  14. package/dist/apps.d.ts +3 -49
  15. package/dist/apps.js +2 -7
  16. package/dist/architecture.cjs +96 -42
  17. package/dist/architecture.d.cts +269 -43
  18. package/dist/architecture.d.ts +269 -43
  19. package/dist/architecture.js +73 -28
  20. package/dist/audio.cjs +39 -39
  21. package/dist/audio.d.cts +15 -3
  22. package/dist/audio.d.ts +15 -3
  23. package/dist/audio.js +2 -2
  24. package/dist/chat.cjs +11 -11
  25. package/dist/chat.d.cts +7 -2
  26. package/dist/chat.d.ts +7 -2
  27. package/dist/chat.js +1 -1
  28. package/dist/{chunk-ILAZVNEL.cjs → chunk-27ZEEIXM.cjs} +1 -1
  29. package/dist/{chunk-35BH3TJW.js → chunk-5TRUQNVW.js} +1 -1
  30. package/dist/{chunk-RIIIDGZJ.js → chunk-DKJGWA5L.js} +1 -1
  31. package/dist/{chunk-I4AWZ7GN.js → chunk-LYHAZQX5.js} +1 -1
  32. package/dist/{chunk-FFXB3EDM.cjs → chunk-LYRANVIS.cjs} +3 -3
  33. package/dist/{chunk-VU3BK4NY.cjs → chunk-TMEGWPWE.cjs} +37 -37
  34. package/dist/{chunk-NH7VE36B.cjs → chunk-VK5BH6FK.cjs} +4 -4
  35. package/dist/{chunk-KZD6TVJ4.js → chunk-X75SKCDS.js} +1 -1
  36. package/dist/code.cjs +6 -6
  37. package/dist/code.d.cts +4 -2
  38. package/dist/code.d.ts +4 -2
  39. package/dist/code.js +1 -1
  40. package/dist/commerce.d.cts +2 -2
  41. package/dist/commerce.d.ts +2 -2
  42. package/dist/communications.cjs +4 -4
  43. package/dist/communications.d.cts +2 -2
  44. package/dist/communications.d.ts +2 -2
  45. package/dist/communications.js +1 -1
  46. package/dist/computer.cjs +4 -4
  47. package/dist/computer.d.cts +2 -2
  48. package/dist/computer.d.ts +2 -2
  49. package/dist/computer.js +1 -1
  50. package/dist/content.cjs +4 -4
  51. package/dist/content.d.cts +2 -2
  52. package/dist/content.d.ts +2 -2
  53. package/dist/content.js +1 -1
  54. package/dist/crm.cjs +8 -2
  55. package/dist/crm.d.cts +26 -3
  56. package/dist/crm.d.ts +26 -3
  57. package/dist/crm.js +7 -2
  58. package/dist/data.cjs +22 -4
  59. package/dist/data.d.cts +185 -3
  60. package/dist/data.d.ts +185 -3
  61. package/dist/data.js +17 -2
  62. package/dist/education.cjs +4 -4
  63. package/dist/education.d.cts +2 -2
  64. package/dist/education.d.ts +2 -2
  65. package/dist/education.js +1 -1
  66. package/dist/files.cjs +228 -228
  67. package/dist/files.d.cts +8 -8
  68. package/dist/files.d.ts +8 -8
  69. package/dist/files.js +2 -2
  70. package/dist/human-resources.d.cts +2 -2
  71. package/dist/human-resources.d.ts +2 -2
  72. package/dist/{index-B6p8TJkh.d.cts → index-A1nOdg4F.d.cts} +2 -2
  73. package/dist/{index-B6p8TJkh.d.ts → index-A1nOdg4F.d.ts} +2 -2
  74. package/dist/index.cjs +69 -59
  75. package/dist/index.d.cts +9 -4
  76. package/dist/index.d.ts +9 -4
  77. package/dist/index.js +13 -3
  78. package/dist/integrations.cjs +35 -5
  79. package/dist/integrations.d.cts +97 -3
  80. package/dist/integrations.d.ts +97 -3
  81. package/dist/integrations.js +27 -2
  82. package/dist/intelligence.cjs +19 -8
  83. package/dist/intelligence.d.cts +98 -28
  84. package/dist/intelligence.d.ts +98 -28
  85. package/dist/intelligence.js +13 -4
  86. package/dist/knowledge.cjs +42 -42
  87. package/dist/knowledge.d.cts +11 -11
  88. package/dist/knowledge.d.ts +11 -11
  89. package/dist/knowledge.js +1 -1
  90. package/dist/legal.cjs +6 -6
  91. package/dist/legal.d.cts +2 -2
  92. package/dist/legal.d.ts +2 -2
  93. package/dist/legal.js +1 -1
  94. package/dist/marketing.cjs +194 -78
  95. package/dist/marketing.d.cts +601 -7
  96. package/dist/marketing.d.ts +601 -7
  97. package/dist/marketing.js +98 -2
  98. package/dist/masterwork.cjs +32 -32
  99. package/dist/masterwork.d.cts +2 -2
  100. package/dist/masterwork.d.ts +2 -2
  101. package/dist/masterwork.js +1 -1
  102. package/dist/media.cjs +34 -11
  103. package/dist/media.d.cts +61 -3
  104. package/dist/media.d.ts +61 -3
  105. package/dist/media.js +21 -2
  106. package/dist/platform.cjs +27 -27
  107. package/dist/platform.d.cts +2 -2
  108. package/dist/platform.d.ts +2 -2
  109. package/dist/platform.js +2 -2
  110. package/dist/publish.cjs +7 -7
  111. package/dist/publish.d.cts +2 -2
  112. package/dist/publish.d.ts +2 -2
  113. package/dist/publish.js +1 -1
  114. package/dist/recording.cjs +17 -17
  115. package/dist/recording.js +4 -4
  116. package/dist/schemas.d.cts +45 -3
  117. package/dist/schemas.d.ts +45 -3
  118. package/dist/stream.cjs +10 -10
  119. package/dist/stream.d.cts +1 -1
  120. package/dist/stream.d.ts +1 -1
  121. package/dist/stream.js +1 -1
  122. package/dist/types.d.cts +1958 -75
  123. package/dist/types.d.ts +1958 -75
  124. package/dist/web.cjs +61 -26
  125. package/dist/web.d.cts +111 -3
  126. package/dist/web.d.ts +111 -3
  127. package/dist/web.js +31 -2
  128. package/dist/workflows.cjs +13 -13
  129. package/dist/workflows.d.cts +32 -2
  130. package/dist/workflows.d.ts +32 -2
  131. package/dist/workflows.js +1 -1
  132. package/package.json +4 -4
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkFFXB3EDM_cjs = require('./chunk-FFXB3EDM.cjs');
4
- var chunkVU3BK4NY_cjs = require('./chunk-VU3BK4NY.cjs');
5
- var chunkNH7VE36B_cjs = require('./chunk-NH7VE36B.cjs');
6
- var chunkILAZVNEL_cjs = require('./chunk-ILAZVNEL.cjs');
3
+ var chunkLYRANVIS_cjs = require('./chunk-LYRANVIS.cjs');
4
+ var chunkTMEGWPWE_cjs = require('./chunk-TMEGWPWE.cjs');
5
+ var chunkVK5BH6FK_cjs = require('./chunk-VK5BH6FK.cjs');
6
+ var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
7
7
  require('./chunk-2SXAAKGV.cjs');
8
8
 
9
9
  // src/recording.ts
@@ -22,7 +22,7 @@ var MatrxAudioClient = class {
22
22
  this.#getOrganizationId = options.getOrganizationId;
23
23
  this.#requestTimeoutMs = options.requestTimeoutMs ?? 3e4;
24
24
  this.#journalFolder = options.journalFolder ?? "Transcripts/Browser Audio";
25
- this.#api = chunkILAZVNEL_cjs.createApi({
25
+ this.#api = chunk27ZEEIXM_cjs.createApi({
26
26
  credentials: async () => {
27
27
  const accessToken = await this.#getAccessToken();
28
28
  return accessToken ? { kind: "user", accessToken } : null;
@@ -44,7 +44,7 @@ var MatrxAudioClient = class {
44
44
  if (this.#organizationToken !== token || !this.#organizationPromise) {
45
45
  this.#organizationToken = token;
46
46
  const organizationPromise = (async () => {
47
- const identity = await chunkFFXB3EDM_cjs.whoami(this.#api);
47
+ const identity = await chunkLYRANVIS_cjs.whoami(this.#api);
48
48
  if (!identity.authenticated || !identity.organization_id) {
49
49
  throw new Error(
50
50
  "Audio recovery requires an authenticated organization scope."
@@ -72,7 +72,7 @@ var MatrxAudioClient = class {
72
72
  async transcribe(file, signal) {
73
73
  const form = new FormData();
74
74
  form.append("file", file);
75
- const result = await chunkNH7VE36B_cjs.transcribeUpload(
75
+ const result = await chunkVK5BH6FK_cjs.transcribeUpload(
76
76
  this.#api,
77
77
  { body: form },
78
78
  await this.#call(signal)
@@ -92,7 +92,7 @@ var MatrxAudioClient = class {
92
92
  }
93
93
  );
94
94
  this.#fullAudioUploads.set(recordingId, uploaded);
95
- const result = await chunkNH7VE36B_cjs.transcribeFile(
95
+ const result = await chunkVK5BH6FK_cjs.transcribeFile(
96
96
  this.#api,
97
97
  { body: { file_id: uploaded.file_id } },
98
98
  await this.#call(options?.signal)
@@ -107,7 +107,7 @@ var MatrxAudioClient = class {
107
107
  form.append("shown_to", "only_me");
108
108
  form.append("visibility", "personal");
109
109
  form.append("metadata_json", JSON.stringify({ origin: "transcripts", ...metadata }));
110
- return chunkVU3BK4NY_cjs.uploadFile(this.#api, { body: form }, await this.#call());
110
+ return chunkTMEGWPWE_cjs.uploadFile(this.#api, { body: form }, await this.#call());
111
111
  }
112
112
  async journalChunk(input) {
113
113
  const index = String(input.chunkIndex).padStart(4, "0");
@@ -123,7 +123,7 @@ var MatrxAudioClient = class {
123
123
  }
124
124
  );
125
125
  try {
126
- const journal = await chunkNH7VE36B_cjs.createRecordingJournalChunk(
126
+ const journal = await chunkVK5BH6FK_cjs.createRecordingJournalChunk(
127
127
  this.#api,
128
128
  {
129
129
  body: {
@@ -156,7 +156,7 @@ var MatrxAudioClient = class {
156
156
  ephemeral: false
157
157
  }
158
158
  );
159
- const completion = await chunkNH7VE36B_cjs.completeRecordingJournal(
159
+ const completion = await chunkVK5BH6FK_cjs.completeRecordingJournal(
160
160
  this.#api,
161
161
  {
162
162
  path: { recording_id: input.recordingId },
@@ -196,7 +196,7 @@ var MatrxAudioClient = class {
196
196
  }
197
197
  async listRecoverable() {
198
198
  if (!await this.#getAccessToken()) return [];
199
- const recordings = await chunkNH7VE36B_cjs.getRecordingJournals(
199
+ const recordings = await chunkVK5BH6FK_cjs.getRecordingJournals(
200
200
  this.#api,
201
201
  void 0,
202
202
  await this.#call()
@@ -207,7 +207,7 @@ var MatrxAudioClient = class {
207
207
  }));
208
208
  }
209
209
  async loadRecoverable(recordingId) {
210
- const journal = await chunkNH7VE36B_cjs.getRecordingJournal(
210
+ const journal = await chunkVK5BH6FK_cjs.getRecordingJournal(
211
211
  this.#api,
212
212
  { path: { recording_id: recordingId } },
213
213
  await this.#call()
@@ -225,14 +225,14 @@ var MatrxAudioClient = class {
225
225
  for (const chunk of chunks) {
226
226
  let blob;
227
227
  try {
228
- const response = await chunkVU3BK4NY_cjs.downloadFile(
228
+ const response = await chunkTMEGWPWE_cjs.downloadFile(
229
229
  this.#api,
230
230
  { path: { file_id: chunk.file_id }, query: { inline: true } },
231
231
  await this.#call()
232
232
  );
233
233
  blob = await response.blob();
234
234
  } catch (error) {
235
- if (!(error instanceof chunkILAZVNEL_cjs.MatrxApiError)) throw error;
235
+ if (!(error instanceof chunk27ZEEIXM_cjs.MatrxApiError)) throw error;
236
236
  missingChunkIndices.push(chunk.chunk_index);
237
237
  continue;
238
238
  }
@@ -249,7 +249,7 @@ var MatrxAudioClient = class {
249
249
  };
250
250
  }
251
251
  async discard(recordingId) {
252
- const result = await chunkNH7VE36B_cjs.deleteRecordingJournal(
252
+ const result = await chunkVK5BH6FK_cjs.deleteRecordingJournal(
253
253
  this.#api,
254
254
  { path: { recording_id: recordingId } },
255
255
  await this.#call()
@@ -261,7 +261,7 @@ var MatrxAudioClient = class {
261
261
  /** Best-effort cleanup of an orphaned file; a failed delete never masks the real outcome. */
262
262
  async #deleteFile(fileId) {
263
263
  try {
264
- await chunkVU3BK4NY_cjs.filesDeleteFile(
264
+ await chunkTMEGWPWE_cjs.filesDeleteFile(
265
265
  this.#api,
266
266
  { path: { file_id: fileId } },
267
267
  await this.#call()
package/dist/recording.js CHANGED
@@ -1,7 +1,7 @@
1
- import { whoami } from './chunk-I4AWZ7GN.js';
2
- import { uploadFile, downloadFile, filesDeleteFile } from './chunk-RIIIDGZJ.js';
3
- import { transcribeUpload, transcribeFile, createRecordingJournalChunk, completeRecordingJournal, getRecordingJournals, getRecordingJournal, deleteRecordingJournal } from './chunk-35BH3TJW.js';
4
- import { createApi, MatrxApiError } from './chunk-KZD6TVJ4.js';
1
+ import { whoami } from './chunk-LYHAZQX5.js';
2
+ import { uploadFile, downloadFile, filesDeleteFile } from './chunk-DKJGWA5L.js';
3
+ import { transcribeUpload, transcribeFile, createRecordingJournalChunk, completeRecordingJournal, getRecordingJournals, getRecordingJournal, deleteRecordingJournal } from './chunk-5TRUQNVW.js';
4
+ import { createApi, MatrxApiError } from './chunk-X75SKCDS.js';
5
5
  import './chunk-KIEAFMKB.js';
6
6
 
7
7
  // src/recording.ts
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
3
- * CONTRACT_SHA256 1be6854fef4b55295a81f3b38e5801322cbf96de671625e0d642bc53c0939781
3
+ * CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
4
4
  */
5
- /** Every schema reached from more than one domain (119). Types only — importing this costs nothing at runtime. */
5
+ /** Every schema reached from more than one domain (120). Types only — importing this costs nothing at runtime. */
6
6
  /** ActionNeeded */
7
7
  type ActionNeeded = {
8
8
  /** Stable source-owned dedupe key; never a random notification id */
@@ -583,6 +583,7 @@ type LLMParams = {
583
583
  stop_sequences?: string[] | null;
584
584
  stream?: boolean | null;
585
585
  store?: boolean | null;
586
+ extended_prompt_cache?: boolean | null;
586
587
  previous_interaction_id?: string | null;
587
588
  task?: ("text_to_video" | "image_to_video" | "reference_to_video" | "edit") | null;
588
589
  verbosity?: ("low" | "medium" | "high") | null;
@@ -690,6 +691,47 @@ type LiveResourceRefInput = {
690
691
  mode?: "reference";
691
692
  [key: string]: unknown;
692
693
  };
694
+ /** One entry of the mandate's served input surface. */
695
+ type MandateServedInput = {
696
+ /** This input is THE box (at most one). */
697
+ primary?: boolean;
698
+ /** True: behind the Tools reveal; False: always visible; None: inferred (optional, or required with a default, goes behind Tools). */
699
+ advanced?: boolean | null;
700
+ /** Tools-bar group label, e.g. 'Location'. */
701
+ group?: string;
702
+ /** Sort key within its zone. */
703
+ order?: number | null;
704
+ /** Options as chips or a select; empty = chips up to six. */
705
+ choice_style?: "" | "chips" | "select";
706
+ /** A short choice attached to the primary box as a scope picker. */
707
+ inline?: boolean;
708
+ example?: string;
709
+ /** Friendly words for machine option values. */
710
+ option_labels?: {
711
+ [key: string]: string;
712
+ };
713
+ /** What the primary box accepts; drives smart detection. */
714
+ detect?: ("handle" | "url" | "domain" | "keyword" | "email" | "person_name" | "phone")[];
715
+ name: string;
716
+ kind: string;
717
+ sourcing: "ask" | "require" | "optional";
718
+ variant?: string | null;
719
+ default?: JsonValue | null;
720
+ label?: string;
721
+ help?: string;
722
+ placeholder?: string;
723
+ options?: string[];
724
+ origin?: "field" | "variable" | "provision" | "mandate_input" | "holder" | "binding_prompt";
725
+ node_id?: string | null;
726
+ json_schema?: {
727
+ [key: string]: JsonValue;
728
+ };
729
+ required?: boolean;
730
+ pinned?: boolean;
731
+ read_only?: boolean;
732
+ pinned_value?: JsonValue | null;
733
+ [key: string]: unknown;
734
+ };
693
735
  /** The Holder a test run / preview uses instead of the resolved one. */
694
736
  type MandateTestHolder = {
695
737
  type: "agent" | "workflow";
@@ -1307,4 +1349,4 @@ type WorkbookInputPart = {
1307
1349
  workbook_ids: (string | LiveResourceRefInput)[];
1308
1350
  };
1309
1351
 
1310
- export type { ActionNeeded, ActionNeededAction, ActionNeededChoice, ActionNeededKind, ActionNeededStatus, AgentAppInputPart, AgentInputPart, AgentToolSpec, Asset, AssetVariant, BlockStateRef, CacheBypass, CalendarCreateResult, CalendarEventAttendee, CalendarLocalRefreshResult, ChatMessageInput, ChatToolCallInput, ClientContext, CodeExecPart, CodeResultPart, CompactionSettings, ComputeNextDueResponse, ContextAnchor, ContextInputPart, CustomTool, CustomToolInputSchema, DataInputPart, DataRefSort, DbFieldRef, DbQueryRef, DbRecordRef, DecisionAnswer, DecisionAnswersPart, DecisionQuestion, DecisionQuestionsPart, DecisionUsage_Input, DictionaryConfig, DictionaryEntry, DirectiveItemApplied, DirectiveItemFailed, DocumentInputPart, ExternalSourceMetadata, FullListBookmark, FullTableBookmark, GlossaryEntry, HostTurn, IdeDiagnostic, IdeFileState, IdeGitState, IdeState, IdeWorkspaceState, ImageLora, InlineToolSpec, JsonSchemaObjectDocument, JsonSchemaProperty, JsonValue, LLMParams, ListGroupBookmark, ListInputPart, ListItemBookmark, LiveResourceRefInput, MandateTestHolder, MediaRef, NormalizedCitation, NotesInputPart, OutputSchemaEnvelope, PageContext, PreFetchedUrl, ProjectInputPart, RegisteredToolSpec, RemarkAnswer, RemarkItem, RemarkTarget, RemarkThreadEntry, RemarksInputPart, ResourceContextPolicy, ResourcePromotion, ResourceRefInput, ResponseFormatJsonObject, ResponseFormatJsonSchema, ResponseFormatText, RunNowResponse, SandboxBindingRequest, SnapshotBodyResourceRefInput, SnapshotContentResourceRefInput, SnapshotDescriptionResourceRefInput, SnapshotTextResourceRefInput, SnapshotValueResourceRefInput, SpeechScriptPart, SpeechTurn, StorageImportResult, SurfaceAmendments, TableCellBookmark, TableColumnBookmark, TableInputPart, TableRowBookmark, TableSchemaBookmark, TaskInputPart, TextPart, ThinkingPart, ThreadLink, ToolCallPart, ToolResultPart, TranscriptInputPart, TranscriptSessionInputPart, TtsDialogueTurn, TtsVoiceSpeaker, UserAnalysisPreferencesResponse, UserAudioMediaPart, UserDocumentMediaPart, UserImageMediaPart, UserOverrides, UserVideoMediaPart, UserYouTubeMediaPart, ValidateCronRequest, ValidateCronResponse, WebSearchPart, WebpageInputPart, WorkbookInputPart };
1352
+ export type { ActionNeeded, ActionNeededAction, ActionNeededChoice, ActionNeededKind, ActionNeededStatus, AgentAppInputPart, AgentInputPart, AgentToolSpec, Asset, AssetVariant, BlockStateRef, CacheBypass, CalendarCreateResult, CalendarEventAttendee, CalendarLocalRefreshResult, ChatMessageInput, ChatToolCallInput, ClientContext, CodeExecPart, CodeResultPart, CompactionSettings, ComputeNextDueResponse, ContextAnchor, ContextInputPart, CustomTool, CustomToolInputSchema, DataInputPart, DataRefSort, DbFieldRef, DbQueryRef, DbRecordRef, DecisionAnswer, DecisionAnswersPart, DecisionQuestion, DecisionQuestionsPart, DecisionUsage_Input, DictionaryConfig, DictionaryEntry, DirectiveItemApplied, DirectiveItemFailed, DocumentInputPart, ExternalSourceMetadata, FullListBookmark, FullTableBookmark, GlossaryEntry, HostTurn, IdeDiagnostic, IdeFileState, IdeGitState, IdeState, IdeWorkspaceState, ImageLora, InlineToolSpec, JsonSchemaObjectDocument, JsonSchemaProperty, JsonValue, LLMParams, ListGroupBookmark, ListInputPart, ListItemBookmark, LiveResourceRefInput, MandateServedInput, MandateTestHolder, MediaRef, NormalizedCitation, NotesInputPart, OutputSchemaEnvelope, PageContext, PreFetchedUrl, ProjectInputPart, RegisteredToolSpec, RemarkAnswer, RemarkItem, RemarkTarget, RemarkThreadEntry, RemarksInputPart, ResourceContextPolicy, ResourcePromotion, ResourceRefInput, ResponseFormatJsonObject, ResponseFormatJsonSchema, ResponseFormatText, RunNowResponse, SandboxBindingRequest, SnapshotBodyResourceRefInput, SnapshotContentResourceRefInput, SnapshotDescriptionResourceRefInput, SnapshotTextResourceRefInput, SnapshotValueResourceRefInput, SpeechScriptPart, SpeechTurn, StorageImportResult, SurfaceAmendments, TableCellBookmark, TableColumnBookmark, TableInputPart, TableRowBookmark, TableSchemaBookmark, TaskInputPart, TextPart, ThinkingPart, ThreadLink, ToolCallPart, ToolResultPart, TranscriptInputPart, TranscriptSessionInputPart, TtsDialogueTurn, TtsVoiceSpeaker, UserAnalysisPreferencesResponse, UserAudioMediaPart, UserDocumentMediaPart, UserImageMediaPart, UserOverrides, UserVideoMediaPart, UserYouTubeMediaPart, ValidateCronRequest, ValidateCronResponse, WebSearchPart, WebpageInputPart, WorkbookInputPart };
package/dist/schemas.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
3
- * CONTRACT_SHA256 1be6854fef4b55295a81f3b38e5801322cbf96de671625e0d642bc53c0939781
3
+ * CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
4
4
  */
5
- /** Every schema reached from more than one domain (119). Types only — importing this costs nothing at runtime. */
5
+ /** Every schema reached from more than one domain (120). Types only — importing this costs nothing at runtime. */
6
6
  /** ActionNeeded */
7
7
  type ActionNeeded = {
8
8
  /** Stable source-owned dedupe key; never a random notification id */
@@ -583,6 +583,7 @@ type LLMParams = {
583
583
  stop_sequences?: string[] | null;
584
584
  stream?: boolean | null;
585
585
  store?: boolean | null;
586
+ extended_prompt_cache?: boolean | null;
586
587
  previous_interaction_id?: string | null;
587
588
  task?: ("text_to_video" | "image_to_video" | "reference_to_video" | "edit") | null;
588
589
  verbosity?: ("low" | "medium" | "high") | null;
@@ -690,6 +691,47 @@ type LiveResourceRefInput = {
690
691
  mode?: "reference";
691
692
  [key: string]: unknown;
692
693
  };
694
+ /** One entry of the mandate's served input surface. */
695
+ type MandateServedInput = {
696
+ /** This input is THE box (at most one). */
697
+ primary?: boolean;
698
+ /** True: behind the Tools reveal; False: always visible; None: inferred (optional, or required with a default, goes behind Tools). */
699
+ advanced?: boolean | null;
700
+ /** Tools-bar group label, e.g. 'Location'. */
701
+ group?: string;
702
+ /** Sort key within its zone. */
703
+ order?: number | null;
704
+ /** Options as chips or a select; empty = chips up to six. */
705
+ choice_style?: "" | "chips" | "select";
706
+ /** A short choice attached to the primary box as a scope picker. */
707
+ inline?: boolean;
708
+ example?: string;
709
+ /** Friendly words for machine option values. */
710
+ option_labels?: {
711
+ [key: string]: string;
712
+ };
713
+ /** What the primary box accepts; drives smart detection. */
714
+ detect?: ("handle" | "url" | "domain" | "keyword" | "email" | "person_name" | "phone")[];
715
+ name: string;
716
+ kind: string;
717
+ sourcing: "ask" | "require" | "optional";
718
+ variant?: string | null;
719
+ default?: JsonValue | null;
720
+ label?: string;
721
+ help?: string;
722
+ placeholder?: string;
723
+ options?: string[];
724
+ origin?: "field" | "variable" | "provision" | "mandate_input" | "holder" | "binding_prompt";
725
+ node_id?: string | null;
726
+ json_schema?: {
727
+ [key: string]: JsonValue;
728
+ };
729
+ required?: boolean;
730
+ pinned?: boolean;
731
+ read_only?: boolean;
732
+ pinned_value?: JsonValue | null;
733
+ [key: string]: unknown;
734
+ };
693
735
  /** The Holder a test run / preview uses instead of the resolved one. */
694
736
  type MandateTestHolder = {
695
737
  type: "agent" | "workflow";
@@ -1307,4 +1349,4 @@ type WorkbookInputPart = {
1307
1349
  workbook_ids: (string | LiveResourceRefInput)[];
1308
1350
  };
1309
1351
 
1310
- export type { ActionNeeded, ActionNeededAction, ActionNeededChoice, ActionNeededKind, ActionNeededStatus, AgentAppInputPart, AgentInputPart, AgentToolSpec, Asset, AssetVariant, BlockStateRef, CacheBypass, CalendarCreateResult, CalendarEventAttendee, CalendarLocalRefreshResult, ChatMessageInput, ChatToolCallInput, ClientContext, CodeExecPart, CodeResultPart, CompactionSettings, ComputeNextDueResponse, ContextAnchor, ContextInputPart, CustomTool, CustomToolInputSchema, DataInputPart, DataRefSort, DbFieldRef, DbQueryRef, DbRecordRef, DecisionAnswer, DecisionAnswersPart, DecisionQuestion, DecisionQuestionsPart, DecisionUsage_Input, DictionaryConfig, DictionaryEntry, DirectiveItemApplied, DirectiveItemFailed, DocumentInputPart, ExternalSourceMetadata, FullListBookmark, FullTableBookmark, GlossaryEntry, HostTurn, IdeDiagnostic, IdeFileState, IdeGitState, IdeState, IdeWorkspaceState, ImageLora, InlineToolSpec, JsonSchemaObjectDocument, JsonSchemaProperty, JsonValue, LLMParams, ListGroupBookmark, ListInputPart, ListItemBookmark, LiveResourceRefInput, MandateTestHolder, MediaRef, NormalizedCitation, NotesInputPart, OutputSchemaEnvelope, PageContext, PreFetchedUrl, ProjectInputPart, RegisteredToolSpec, RemarkAnswer, RemarkItem, RemarkTarget, RemarkThreadEntry, RemarksInputPart, ResourceContextPolicy, ResourcePromotion, ResourceRefInput, ResponseFormatJsonObject, ResponseFormatJsonSchema, ResponseFormatText, RunNowResponse, SandboxBindingRequest, SnapshotBodyResourceRefInput, SnapshotContentResourceRefInput, SnapshotDescriptionResourceRefInput, SnapshotTextResourceRefInput, SnapshotValueResourceRefInput, SpeechScriptPart, SpeechTurn, StorageImportResult, SurfaceAmendments, TableCellBookmark, TableColumnBookmark, TableInputPart, TableRowBookmark, TableSchemaBookmark, TaskInputPart, TextPart, ThinkingPart, ThreadLink, ToolCallPart, ToolResultPart, TranscriptInputPart, TranscriptSessionInputPart, TtsDialogueTurn, TtsVoiceSpeaker, UserAnalysisPreferencesResponse, UserAudioMediaPart, UserDocumentMediaPart, UserImageMediaPart, UserOverrides, UserVideoMediaPart, UserYouTubeMediaPart, ValidateCronRequest, ValidateCronResponse, WebSearchPart, WebpageInputPart, WorkbookInputPart };
1352
+ export type { ActionNeeded, ActionNeededAction, ActionNeededChoice, ActionNeededKind, ActionNeededStatus, AgentAppInputPart, AgentInputPart, AgentToolSpec, Asset, AssetVariant, BlockStateRef, CacheBypass, CalendarCreateResult, CalendarEventAttendee, CalendarLocalRefreshResult, ChatMessageInput, ChatToolCallInput, ClientContext, CodeExecPart, CodeResultPart, CompactionSettings, ComputeNextDueResponse, ContextAnchor, ContextInputPart, CustomTool, CustomToolInputSchema, DataInputPart, DataRefSort, DbFieldRef, DbQueryRef, DbRecordRef, DecisionAnswer, DecisionAnswersPart, DecisionQuestion, DecisionQuestionsPart, DecisionUsage_Input, DictionaryConfig, DictionaryEntry, DirectiveItemApplied, DirectiveItemFailed, DocumentInputPart, ExternalSourceMetadata, FullListBookmark, FullTableBookmark, GlossaryEntry, HostTurn, IdeDiagnostic, IdeFileState, IdeGitState, IdeState, IdeWorkspaceState, ImageLora, InlineToolSpec, JsonSchemaObjectDocument, JsonSchemaProperty, JsonValue, LLMParams, ListGroupBookmark, ListInputPart, ListItemBookmark, LiveResourceRefInput, MandateServedInput, MandateTestHolder, MediaRef, NormalizedCitation, NotesInputPart, OutputSchemaEnvelope, PageContext, PreFetchedUrl, ProjectInputPart, RegisteredToolSpec, RemarkAnswer, RemarkItem, RemarkTarget, RemarkThreadEntry, RemarksInputPart, ResourceContextPolicy, ResourcePromotion, ResourceRefInput, ResponseFormatJsonObject, ResponseFormatJsonSchema, ResponseFormatText, RunNowResponse, SandboxBindingRequest, SnapshotBodyResourceRefInput, SnapshotContentResourceRefInput, SnapshotDescriptionResourceRefInput, SnapshotTextResourceRefInput, SnapshotValueResourceRefInput, SpeechScriptPart, SpeechTurn, StorageImportResult, SurfaceAmendments, TableCellBookmark, TableColumnBookmark, TableInputPart, TableRowBookmark, TableSchemaBookmark, TaskInputPart, TextPart, ThinkingPart, ThreadLink, ToolCallPart, ToolResultPart, TranscriptInputPart, TranscriptSessionInputPart, TtsDialogueTurn, TtsVoiceSpeaker, UserAnalysisPreferencesResponse, UserAudioMediaPart, UserDocumentMediaPart, UserImageMediaPart, UserOverrides, UserVideoMediaPart, UserYouTubeMediaPart, ValidateCronRequest, ValidateCronResponse, WebSearchPart, WebpageInputPart, WorkbookInputPart };
package/dist/stream.cjs CHANGED
@@ -1,43 +1,43 @@
1
1
  'use strict';
2
2
 
3
- var chunkILAZVNEL_cjs = require('./chunk-ILAZVNEL.cjs');
3
+ var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "DEFAULT_MATRX_NDJSON_READ_AHEAD", {
9
9
  enumerable: true,
10
- get: function () { return chunkILAZVNEL_cjs.DEFAULT_MATRX_NDJSON_READ_AHEAD; }
10
+ get: function () { return chunk27ZEEIXM_cjs.DEFAULT_MATRX_NDJSON_READ_AHEAD; }
11
11
  });
12
12
  Object.defineProperty(exports, "createMatrxNdjsonFramer", {
13
13
  enumerable: true,
14
- get: function () { return chunkILAZVNEL_cjs.createMatrxNdjsonFramer; }
14
+ get: function () { return chunk27ZEEIXM_cjs.createMatrxNdjsonFramer; }
15
15
  });
16
16
  Object.defineProperty(exports, "createMatrxSseFramer", {
17
17
  enumerable: true,
18
- get: function () { return chunkILAZVNEL_cjs.createMatrxSseFramer; }
18
+ get: function () { return chunk27ZEEIXM_cjs.createMatrxSseFramer; }
19
19
  });
20
20
  Object.defineProperty(exports, "normalizeMatrxStreamEnvelope", {
21
21
  enumerable: true,
22
- get: function () { return chunkILAZVNEL_cjs.normalizeMatrxStreamEnvelope; }
22
+ get: function () { return chunk27ZEEIXM_cjs.normalizeMatrxStreamEnvelope; }
23
23
  });
24
24
  Object.defineProperty(exports, "openJsonOrStream", {
25
25
  enumerable: true,
26
- get: function () { return chunkILAZVNEL_cjs.openJsonOrStream; }
26
+ get: function () { return chunk27ZEEIXM_cjs.openJsonOrStream; }
27
27
  });
28
28
  Object.defineProperty(exports, "openStream", {
29
29
  enumerable: true,
30
- get: function () { return chunkILAZVNEL_cjs.openStream; }
30
+ get: function () { return chunk27ZEEIXM_cjs.openStream; }
31
31
  });
32
32
  Object.defineProperty(exports, "parseMatrxSseFrame", {
33
33
  enumerable: true,
34
- get: function () { return chunkILAZVNEL_cjs.parseMatrxSseFrame; }
34
+ get: function () { return chunk27ZEEIXM_cjs.parseMatrxSseFrame; }
35
35
  });
36
36
  Object.defineProperty(exports, "readMatrxNdjsonStream", {
37
37
  enumerable: true,
38
- get: function () { return chunkILAZVNEL_cjs.readMatrxNdjsonStream; }
38
+ get: function () { return chunk27ZEEIXM_cjs.readMatrxNdjsonStream; }
39
39
  });
40
40
  Object.defineProperty(exports, "readMatrxSseStream", {
41
41
  enumerable: true,
42
- get: function () { return chunkILAZVNEL_cjs.readMatrxSseStream; }
42
+ get: function () { return chunk27ZEEIXM_cjs.readMatrxSseStream; }
43
43
  });
package/dist/stream.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- export { a as ApiStream, r as DEFAULT_MATRX_NDJSON_READ_AHEAD, J as JsonOrStream, s as MatrxNdjsonFramer, t as MatrxNdjsonFramerOptions, b as MatrxNdjsonIssue, d as MatrxSseFrame, u as MatrxSseFramer, M as MatrxStreamEnvelope, c as MatrxStreamEnvelopeObservation, N as NdjsonEvent, R as ReadMatrxNdjsonOptions, v as ReadMatrxSseOptions, S as SseEvent, w as createMatrxNdjsonFramer, x as createMatrxSseFramer, y as normalizeMatrxStreamEnvelope, p as openJsonOrStream, q as openStream, z as parseMatrxSseFrame, B as readMatrxNdjsonStream, F as readMatrxSseStream } from './index-B6p8TJkh.cjs';
1
+ export { a as ApiStream, r as DEFAULT_MATRX_NDJSON_READ_AHEAD, J as JsonOrStream, s as MatrxNdjsonFramer, t as MatrxNdjsonFramerOptions, b as MatrxNdjsonIssue, d as MatrxSseFrame, u as MatrxSseFramer, M as MatrxStreamEnvelope, c as MatrxStreamEnvelopeObservation, N as NdjsonEvent, R as ReadMatrxNdjsonOptions, v as ReadMatrxSseOptions, S as SseEvent, w as createMatrxNdjsonFramer, x as createMatrxSseFramer, y as normalizeMatrxStreamEnvelope, p as openJsonOrStream, q as openStream, z as parseMatrxSseFrame, B as readMatrxNdjsonStream, F as readMatrxSseStream } from './index-A1nOdg4F.cjs';
2
2
  import '@ai-matrx/auth/credentials';
package/dist/stream.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { a as ApiStream, r as DEFAULT_MATRX_NDJSON_READ_AHEAD, J as JsonOrStream, s as MatrxNdjsonFramer, t as MatrxNdjsonFramerOptions, b as MatrxNdjsonIssue, d as MatrxSseFrame, u as MatrxSseFramer, M as MatrxStreamEnvelope, c as MatrxStreamEnvelopeObservation, N as NdjsonEvent, R as ReadMatrxNdjsonOptions, v as ReadMatrxSseOptions, S as SseEvent, w as createMatrxNdjsonFramer, x as createMatrxSseFramer, y as normalizeMatrxStreamEnvelope, p as openJsonOrStream, q as openStream, z as parseMatrxSseFrame, B as readMatrxNdjsonStream, F as readMatrxSseStream } from './index-B6p8TJkh.js';
1
+ export { a as ApiStream, r as DEFAULT_MATRX_NDJSON_READ_AHEAD, J as JsonOrStream, s as MatrxNdjsonFramer, t as MatrxNdjsonFramerOptions, b as MatrxNdjsonIssue, d as MatrxSseFrame, u as MatrxSseFramer, M as MatrxStreamEnvelope, c as MatrxStreamEnvelopeObservation, N as NdjsonEvent, R as ReadMatrxNdjsonOptions, v as ReadMatrxSseOptions, S as SseEvent, w as createMatrxNdjsonFramer, x as createMatrxSseFramer, y as normalizeMatrxStreamEnvelope, p as openJsonOrStream, q as openStream, z as parseMatrxSseFrame, B as readMatrxNdjsonStream, F as readMatrxSseStream } from './index-A1nOdg4F.js';
2
2
  import '@ai-matrx/auth/credentials';
package/dist/stream.js CHANGED
@@ -1,2 +1,2 @@
1
- export { DEFAULT_MATRX_NDJSON_READ_AHEAD, createMatrxNdjsonFramer, createMatrxSseFramer, normalizeMatrxStreamEnvelope, openJsonOrStream, openStream, parseMatrxSseFrame, readMatrxNdjsonStream, readMatrxSseStream } from './chunk-KZD6TVJ4.js';
1
+ export { DEFAULT_MATRX_NDJSON_READ_AHEAD, createMatrxNdjsonFramer, createMatrxSseFramer, normalizeMatrxStreamEnvelope, openJsonOrStream, openStream, parseMatrxSseFrame, readMatrxNdjsonStream, readMatrxSseStream } from './chunk-X75SKCDS.js';
2
2
  import './chunk-KIEAFMKB.js';