@ai-matrx/api 0.0.0-stage → 0.1.1

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 (146) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +21 -0
  3. package/README.md +22 -2
  4. package/dist/account.cjs +670 -0
  5. package/dist/account.d.cts +3246 -0
  6. package/dist/account.d.ts +3246 -0
  7. package/dist/account.js +558 -0
  8. package/dist/agents.cjs +598 -0
  9. package/dist/agents.d.cts +3417 -0
  10. package/dist/agents.d.ts +3417 -0
  11. package/dist/agents.js +497 -0
  12. package/dist/ai.cjs +109 -0
  13. package/dist/ai.d.cts +493 -0
  14. package/dist/ai.d.ts +493 -0
  15. package/dist/ai.js +91 -0
  16. package/dist/apps.cjs +394 -0
  17. package/dist/apps.d.cts +1094 -0
  18. package/dist/apps.d.ts +1094 -0
  19. package/dist/apps.js +328 -0
  20. package/dist/architecture.cjs +1223 -0
  21. package/dist/architecture.d.cts +4701 -0
  22. package/dist/architecture.d.ts +4701 -0
  23. package/dist/architecture.js +1016 -0
  24. package/dist/audio.cjs +226 -0
  25. package/dist/audio.d.cts +723 -0
  26. package/dist/audio.d.ts +723 -0
  27. package/dist/audio.js +188 -0
  28. package/dist/chat.cjs +538 -0
  29. package/dist/chat.d.cts +2251 -0
  30. package/dist/chat.d.ts +2251 -0
  31. package/dist/chat.js +447 -0
  32. package/dist/chunk-2SXAAKGV.cjs +279 -0
  33. package/dist/chunk-5WJLKYH6.cjs +48 -0
  34. package/dist/chunk-FNIYADWI.cjs +59 -0
  35. package/dist/chunk-HER22VVH.cjs +1047 -0
  36. package/dist/chunk-KIEAFMKB.js +264 -0
  37. package/dist/chunk-TSHL7Z53.js +1012 -0
  38. package/dist/chunk-VTZKJMSY.js +43 -0
  39. package/dist/chunk-YTEOFGFC.js +57 -0
  40. package/dist/code.cjs +561 -0
  41. package/dist/code.d.cts +1976 -0
  42. package/dist/code.d.ts +1976 -0
  43. package/dist/code.js +467 -0
  44. package/dist/commerce.cjs +22 -0
  45. package/dist/commerce.d.cts +45 -0
  46. package/dist/commerce.d.ts +45 -0
  47. package/dist/commerce.js +18 -0
  48. package/dist/communications.cjs +215 -0
  49. package/dist/communications.d.cts +948 -0
  50. package/dist/communications.d.ts +948 -0
  51. package/dist/communications.js +179 -0
  52. package/dist/computer.cjs +330 -0
  53. package/dist/computer.d.cts +733 -0
  54. package/dist/computer.d.ts +733 -0
  55. package/dist/computer.js +275 -0
  56. package/dist/content.cjs +425 -0
  57. package/dist/content.d.cts +1796 -0
  58. package/dist/content.d.ts +1796 -0
  59. package/dist/content.js +354 -0
  60. package/dist/credentials.cjs +22 -0
  61. package/dist/credentials.d.cts +82 -0
  62. package/dist/credentials.d.ts +82 -0
  63. package/dist/credentials.js +1 -0
  64. package/dist/crm.cjs +271 -0
  65. package/dist/crm.d.cts +1731 -0
  66. package/dist/crm.d.ts +1731 -0
  67. package/dist/crm.js +226 -0
  68. package/dist/data.cjs +382 -0
  69. package/dist/data.d.cts +1860 -0
  70. package/dist/data.d.ts +1860 -0
  71. package/dist/data.js +318 -0
  72. package/dist/education.cjs +28 -0
  73. package/dist/education.d.cts +73 -0
  74. package/dist/education.d.ts +73 -0
  75. package/dist/education.js +23 -0
  76. package/dist/files.cjs +1330 -0
  77. package/dist/files.d.cts +4956 -0
  78. package/dist/files.d.ts +4956 -0
  79. package/dist/files.js +1104 -0
  80. package/dist/human-resources.cjs +178 -0
  81. package/dist/human-resources.d.cts +1208 -0
  82. package/dist/human-resources.d.ts +1208 -0
  83. package/dist/human-resources.js +148 -0
  84. package/dist/index-C2E-Cp19.d.ts +385 -0
  85. package/dist/index-wC2vtb70.d.cts +385 -0
  86. package/dist/index.cjs +2016 -0
  87. package/dist/index.d.cts +2069 -0
  88. package/dist/index.d.ts +2069 -0
  89. package/dist/index.js +1746 -0
  90. package/dist/integrations.cjs +5116 -0
  91. package/dist/integrations.d.cts +19213 -0
  92. package/dist/integrations.d.ts +19213 -0
  93. package/dist/integrations.js +4263 -0
  94. package/dist/intelligence.cjs +1305 -0
  95. package/dist/intelligence.d.cts +4658 -0
  96. package/dist/intelligence.d.ts +4658 -0
  97. package/dist/intelligence.js +1196 -0
  98. package/dist/knowledge.cjs +1113 -0
  99. package/dist/knowledge.d.cts +5427 -0
  100. package/dist/knowledge.d.ts +5427 -0
  101. package/dist/knowledge.js +921 -0
  102. package/dist/legal.cjs +225 -0
  103. package/dist/legal.d.cts +1038 -0
  104. package/dist/legal.d.ts +1038 -0
  105. package/dist/legal.js +187 -0
  106. package/dist/marketing.cjs +1155 -0
  107. package/dist/marketing.d.cts +7741 -0
  108. package/dist/marketing.d.ts +7741 -0
  109. package/dist/marketing.js +951 -0
  110. package/dist/masterwork.cjs +283 -0
  111. package/dist/masterwork.d.cts +1938 -0
  112. package/dist/masterwork.d.ts +1938 -0
  113. package/dist/masterwork.js +231 -0
  114. package/dist/media.cjs +610 -0
  115. package/dist/media.d.cts +2270 -0
  116. package/dist/media.d.ts +2270 -0
  117. package/dist/media.js +507 -0
  118. package/dist/net.cjs +67 -0
  119. package/dist/net.d.cts +204 -0
  120. package/dist/net.d.ts +204 -0
  121. package/dist/net.js +2 -0
  122. package/dist/platform.cjs +150 -0
  123. package/dist/platform.d.cts +572 -0
  124. package/dist/platform.d.ts +572 -0
  125. package/dist/platform.js +125 -0
  126. package/dist/publish.cjs +248 -0
  127. package/dist/publish.d.cts +1431 -0
  128. package/dist/publish.d.ts +1431 -0
  129. package/dist/publish.js +206 -0
  130. package/dist/schemas.cjs +2 -0
  131. package/dist/schemas.d.cts +1353 -0
  132. package/dist/schemas.d.ts +1353 -0
  133. package/dist/schemas.js +1 -0
  134. package/dist/stream.cjs +44 -0
  135. package/dist/stream.d.cts +2 -0
  136. package/dist/stream.d.ts +2 -0
  137. package/dist/stream.js +3 -0
  138. package/dist/web.cjs +1045 -0
  139. package/dist/web.d.cts +4186 -0
  140. package/dist/web.d.ts +4186 -0
  141. package/dist/web.js +867 -0
  142. package/dist/workflows.cjs +825 -0
  143. package/dist/workflows.d.cts +4699 -0
  144. package/dist/workflows.d.ts +4699 -0
  145. package/dist/workflows.js +686 -0
  146. package/package.json +419 -4
package/dist/data.d.ts ADDED
@@ -0,0 +1,1860 @@
1
+ import { A as Api, C as CallOptions } from './index-C2E-Cp19.js';
2
+ import { JsonValue } from './schemas.js';
3
+ import './credentials.js';
4
+
5
+ /**
6
+ * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
+ * CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
8
+ */
9
+
10
+ /** AggregateGroup */
11
+ type AggregateGroup = {
12
+ /** The group's value (a row id for a relation column); null when nothing was grouped. */
13
+ group?: JsonValue;
14
+ /** The measured number; null when withheld or when no row has a value. */
15
+ value?: number | null;
16
+ /** True when you may not read the measured column, so no number is given. */
17
+ withheld?: boolean;
18
+ /** How many rows this group holds. */
19
+ rows: number;
20
+ /** For a relation column, the related row's name (what the grid shows), as you may see it. */
21
+ name?: string | null;
22
+ };
23
+ /** One number, or one number per group, worked out inside the store over the WHOLE table. */
24
+ type AggregateRequest = {
25
+ /** count, sum, avg, min or max. A column name here is read as that column's sum. */
26
+ measure?: string;
27
+ /** The column to measure; required for anything but count. */
28
+ column?: string | null;
29
+ /** One number per value of this column. With bucket, the date column cut into periods. */
30
+ group_by?: string | null;
31
+ /** Cut the date column named by group_by into these periods (the organization's calendar). */
32
+ bucket?: ("day" | "week" | "month" | "quarter" | "year") | null;
33
+ /** Only the rows whose columns equal these values: {"Status": "Completed"}. "Relation.Column" reaches across a relation: {"Patient.Referring physician": "Dr. Samuel Okafor"}. */
34
+ where?: {
35
+ [key: string]: JsonValue;
36
+ } | null;
37
+ /** Row ids of ANOTHER table: only the rows of this table that point at them through a relation column. */
38
+ related_to?: string[] | null;
39
+ /** Answer about the table as it stood at this moment (ISO date-time, e.g. "2026-09-25T17:00:00Z"). */
40
+ as_of?: string | null;
41
+ /** count_desc: biggest groups first; measure_desc: highest value first (top N); measure_asc: lowest first. */
42
+ order?: "count_desc" | "measure_desc" | "measure_asc";
43
+ /** How many groups to return at most; groups_total says how many exist. */
44
+ limit?: number;
45
+ };
46
+ /** AggregateResult */
47
+ type AggregateResult = {
48
+ table_id: string;
49
+ measure: string;
50
+ column?: string | null;
51
+ group_by?: string | null;
52
+ groups: AggregateGroup[];
53
+ /** How many groups exist (grouped questions only). */
54
+ groups_total?: number | null;
55
+ /** False when there are at least groups_total groups (the store's page ceiling). */
56
+ groups_total_is_exact?: boolean | null;
57
+ /** True when more groups exist than are listed; say the list is cut. */
58
+ truncated?: boolean;
59
+ /** How the question was read, in sentences. */
60
+ notes?: string[];
61
+ };
62
+ /** ArchiveRequest */
63
+ type ArchiveRequest = {
64
+ /** Organization context for the request; omitted to use the authenticated context. */
65
+ organization_id?: string | null;
66
+ /** Optional associated project selected by the caller. */
67
+ project_id?: string | null;
68
+ /** Optional associated task selected by the caller. */
69
+ task_id?: string | null;
70
+ /** Stable application slug that initiated the request. */
71
+ source_app?: string | null;
72
+ /** Stable feature slug within the source application. */
73
+ source_feature?: string | null;
74
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
75
+ initiation?: ("user" | "auto") | null;
76
+ reason: string;
77
+ };
78
+ /** ArchiveResponse */
79
+ type ArchiveResponse = {
80
+ processed_document_id: string;
81
+ archived: boolean;
82
+ reason: string;
83
+ };
84
+ /** One custom row that points at the record, through one field. */
85
+ type BackLinkItem = {
86
+ /** The custom row (token "record"); read it from table_id with its id. */
87
+ record: BackLinkRecord;
88
+ table_id: string;
89
+ table_label?: string | null;
90
+ field_id?: string | null;
91
+ field_key?: string | null;
92
+ field_label?: string | null;
93
+ organization_id?: string | null;
94
+ linked_at?: string | null;
95
+ };
96
+ /** BackLinkRecord */
97
+ type BackLinkRecord = {
98
+ token: string;
99
+ id: string;
100
+ label?: string | null;
101
+ };
102
+ /** The custom rows that reference one platform record, newest first, paged by cursor. */
103
+ type BackLinks = {
104
+ target: BackLinkRecord;
105
+ items: BackLinkItem[];
106
+ next_cursor?: string | null;
107
+ };
108
+ /** CleanRequest */
109
+ type CleanRequest = {
110
+ /** Organization context for the request; omitted to use the authenticated context. */
111
+ organization_id?: string | null;
112
+ /** Optional associated project selected by the caller. */
113
+ project_id?: string | null;
114
+ /** Optional associated task selected by the caller. */
115
+ task_id?: string | null;
116
+ /** Stable application slug that initiated the request. */
117
+ source_app?: string | null;
118
+ /** Stable feature slug within the source application. */
119
+ source_feature?: string | null;
120
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
121
+ initiation?: ("user" | "auto") | null;
122
+ intent: "clean" | "get_or_clean" | "replace_clean";
123
+ cleaner_name: string;
124
+ cleaner_version?: string;
125
+ params?: {
126
+ [key: string]: unknown;
127
+ };
128
+ clean_content: string;
129
+ metadata?: {
130
+ [key: string]: unknown;
131
+ };
132
+ rag_boost?: number;
133
+ cost_usd?: number | null;
134
+ reason?: string | null;
135
+ };
136
+ /** Column */
137
+ type Column = {
138
+ /** The column's name — use exactly this in values, where, sort and key_column. */
139
+ name: string;
140
+ /** text, number, date, datetime, time, checkbox, choice, choices, relation, file, formula, rating, duration (seconds), status, address ({street, city, region, postal_code, country}), barcode, rich_text ( */
141
+ type: string;
142
+ required?: boolean;
143
+ /** For a choice column, the words it accepts. */
144
+ choices?: string[] | null;
145
+ unit?: string | null;
146
+ /** True for a column worked out by the table (a formula); writing it is refused. */
147
+ read_only?: boolean;
148
+ /** For a relation: the id of the table it points at. */
149
+ to?: string | null;
150
+ /** For a relation: true when a row may point at many rows. */
151
+ many?: boolean | null;
152
+ /** On a standard table: the column's stable name for programs — its column name, or "cf:<field id>" for a custom field. Accepted everywhere a name is. */
153
+ api_name?: string | null;
154
+ /** On a standard table: the organization a custom field belongs to (null for the table's own columns). */
155
+ organization_id?: string | null;
156
+ /** On a standard table: that organization's name. */
157
+ organization?: string | null;
158
+ /** On a standard table: whether this API may change the column. */
159
+ writable?: boolean | null;
160
+ /** On a standard table: whether a filter on this column is fast on a large table. */
161
+ indexed?: boolean | null;
162
+ /** On a standard table: the stable key — the column name of a platform column, the field key of an organization custom field (the key under `_custom` on rows). */
163
+ key?: string | null;
164
+ /** On a standard table: "platform" for the table's own column, "custom" for a field an organization added to it. */
165
+ origin?: ("platform" | "custom") | null;
166
+ /** For a field that links to platform records: the record types (tokens, e.g. party) it may point at. */
167
+ links_to?: string[] | null;
168
+ };
169
+ /** ColumnChange */
170
+ type ColumnChange = {
171
+ done: boolean;
172
+ table_id?: string | null;
173
+ /** The column's name after the change. */
174
+ column?: string | null;
175
+ archived?: boolean | null;
176
+ /** True when the column was already there as asked: nothing was changed (a rerun). */
177
+ unchanged?: boolean | null;
178
+ /** The table's columns after the change. */
179
+ columns?: Column[] | null;
180
+ waiting?: {
181
+ [key: string]: JsonValue;
182
+ } | null;
183
+ /** What was carried differently from what was asked, in sentences (a Notion formula kept as its value, say). */
184
+ notices?: string[];
185
+ /** For a formula column from notion_formula: the formula text the table now holds. */
186
+ formula?: string | null;
187
+ /** For notion_formula: true when it became a live formula; false when the column keeps the VALUE instead. */
188
+ carried?: boolean | null;
189
+ };
190
+ /** ColumnRename */
191
+ type ColumnRename = {
192
+ /** The column's new name. */
193
+ name: string;
194
+ };
195
+ /** One column of a new table, or one column being added. */
196
+ type ColumnSpec = {
197
+ /** The column's name, as a person reads it ("Contact name"). A snake_case name is shown as words. */
198
+ name: string;
199
+ /** text, long_text, rich_text (Markdown), email, phone, url, number, integer, decimal, currency, percent, rating, duration (seconds), checkbox, date, datetime, choice, choices, status, relation, member, */
200
+ type?: string;
201
+ required?: boolean;
202
+ /** No two rows may hold the same value. The column an upsert matches on should be unique. */
203
+ unique?: boolean;
204
+ /** For a choice or choices column: the words it offers. */
205
+ choices?: string[] | null;
206
+ /** For a currency column, its currency ("USD"). */
207
+ unit?: string | null;
208
+ /** For a relation column: the other table's name or id, in the same organization. */
209
+ to?: string | null;
210
+ /** For a relation or file column: a row may hold many (Notion relations and files are many). */
211
+ many?: boolean;
212
+ /** For a lookup or rollup: the name of this table's relation column it reads through. */
213
+ via?: string | null;
214
+ /** For a lookup or rollup: the column on the far table it reads. */
215
+ of?: string | null;
216
+ /** For a rollup: count, sum, avg, min or max. */
217
+ agg?: string | null;
218
+ /** For a formula: its expression, naming columns in braces ("{Price} * {Quantity}"). */
219
+ formula?: string | null;
220
+ /** For a rollup: which of the linked rows it adds up or counts, by column NAME of the table it points at: {"Status": "Done"} (the same words list_rows ``where`` takes for equality). Left out, every linke */
221
+ filter?: {
222
+ [key: string]: JsonValue;
223
+ } | null;
224
+ /** For a formula column moved from Notion: Notion's own formula text (``if(prop("Status") == "Done", 1, 0)``). The server writes it as a live formula; one it cannot carry makes a plain column of fallback */
225
+ notion_formula?: string | null;
226
+ /** With notion_formula: the column type that keeps the formula's VALUE when the formula cannot be carried (text, number, checkbox, date, …). Default text. */
227
+ fallback_type?: string | null;
228
+ };
229
+ /** CommentIn */
230
+ type CommentIn = {
231
+ /** The row, by its value in key_column (a Notion page id, say). */
232
+ key: string;
233
+ /** The comment, as Markdown. */
234
+ body: string;
235
+ /** Who wrote it in the other system. */
236
+ author?: string | null;
237
+ /** When they wrote it (ISO date or date-time). */
238
+ at?: string | null;
239
+ };
240
+ /** CommentsAdded */
241
+ type CommentsAdded = {
242
+ table_id: string;
243
+ added: number;
244
+ unchanged: number;
245
+ notices?: string[];
246
+ };
247
+ /** Comments brought in from another system, onto rows found by a key column. Sent again, a */
248
+ type CommentsImport = {
249
+ /** The column that names each row ("Notion ID"). */
250
+ key_column: string;
251
+ comments: CommentIn[];
252
+ };
253
+ /** ConfidentialAnswer */
254
+ type ConfidentialAnswer = {
255
+ table_id: string;
256
+ level: string;
257
+ already: boolean;
258
+ };
259
+ /** ConfidentialApproval */
260
+ type ConfidentialApproval = {
261
+ words: string;
262
+ approved_on: string;
263
+ covers: string;
264
+ };
265
+ /** ConfidentialReader */
266
+ type ConfidentialReader = {
267
+ field: string;
268
+ level?: string;
269
+ when?: {
270
+ [key: string]: unknown;
271
+ } | null;
272
+ };
273
+ /** ConfidentialRequest */
274
+ type ConfidentialRequest = {
275
+ organization_id: string;
276
+ slug: string;
277
+ kept_for: string;
278
+ readers?: ConfidentialReader[];
279
+ maker_is_reader: boolean;
280
+ approval: ConfidentialApproval;
281
+ };
282
+ /** ConnectTableRequest */
283
+ type ConnectTableRequest = {
284
+ organization_id: string;
285
+ connection_string: string;
286
+ schema_name: string;
287
+ table_name: string;
288
+ };
289
+ /** CreateConversationRequest */
290
+ type CreateConversationRequest = {
291
+ id: string;
292
+ title?: string;
293
+ mode?: string;
294
+ model?: string;
295
+ server_conversation_id?: string | null;
296
+ route_mode?: string;
297
+ agent_id?: string | null;
298
+ };
299
+ /** CreateMessageRequest */
300
+ type CreateMessageRequest = {
301
+ id: string;
302
+ role?: string;
303
+ content?: string;
304
+ model?: string | null;
305
+ tool_calls?: {
306
+ [key: string]: unknown;
307
+ }[] | null;
308
+ tool_results?: {
309
+ [key: string]: unknown;
310
+ }[] | null;
311
+ error?: string | null;
312
+ };
313
+ /** DedupResponse */
314
+ type DedupResponse = {
315
+ outcome: "created" | "reused" | "replaced";
316
+ id: string;
317
+ derivation_kind: string;
318
+ parent_processed_id?: string | null;
319
+ canonical_clean_id?: string | null;
320
+ archived_at?: string | null;
321
+ };
322
+ /** DerivativeRequest */
323
+ type DerivativeRequest = {
324
+ /** Organization context for the request; omitted to use the authenticated context. */
325
+ organization_id?: string | null;
326
+ /** Optional associated project selected by the caller. */
327
+ project_id?: string | null;
328
+ /** Optional associated task selected by the caller. */
329
+ task_id?: string | null;
330
+ /** Stable application slug that initiated the request. */
331
+ source_app?: string | null;
332
+ /** Stable feature slug within the source application. */
333
+ source_feature?: string | null;
334
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
335
+ initiation?: ("user" | "auto") | null;
336
+ intent: "create_derivative" | "get_or_create_derivative";
337
+ derivation_kind: "agent_extract" | "agent_summary" | "agent_structured_json" | "page_image_caption" | "manual_curation";
338
+ agent_id?: string | null;
339
+ agent_version?: number | string | null;
340
+ params?: {
341
+ [key: string]: unknown;
342
+ };
343
+ name?: string | null;
344
+ content?: string | null;
345
+ structured_json?: {
346
+ [key: string]: unknown;
347
+ } | null;
348
+ metadata?: {
349
+ [key: string]: unknown;
350
+ };
351
+ rag_boost?: number;
352
+ };
353
+ /** What the unit ANSWERED — the other half of "what the agent saw". */
354
+ type DescendAnswer = {
355
+ source: "message" | "recorded_call";
356
+ producer: ProducerRef;
357
+ parts?: DescendAnswerPart[];
358
+ text?: string | null;
359
+ structured?: JsonValue | null;
360
+ finish_reason?: string | null;
361
+ chars?: number;
362
+ truncated?: boolean;
363
+ value_ref?: string | null;
364
+ };
365
+ /** One piece of the answer, in the order the model produced it. */
366
+ type DescendAnswerPart = {
367
+ kind: "text" | "thinking" | "tool_call";
368
+ text?: string | null;
369
+ tool_name?: string | null;
370
+ call_id?: string | null;
371
+ arguments?: JsonValue | null;
372
+ outcome?: ("ran" | "failed" | "stopped" | "no_record") | null;
373
+ outcome_detail?: string | null;
374
+ tool_call_row_id?: string | null;
375
+ };
376
+ /** One input the unit received on its turn. */
377
+ type DescendInput = {
378
+ key: string;
379
+ kind: "text" | "markdown" | "json";
380
+ label: string;
381
+ value?: JsonValue | null;
382
+ value_ref?: string | null;
383
+ chars?: number;
384
+ truncated?: boolean;
385
+ producer: ProducerRef;
386
+ };
387
+ /** GET /review/descend response — one layer of the walk. */
388
+ type DescendOut = {
389
+ unit: DescendUnit;
390
+ producer?: DescendProducer | null;
391
+ inputs?: DescendInput[];
392
+ answer?: DescendAnswer | null;
393
+ transcript?: "messages" | "recorded_call" | "none";
394
+ snapshot_refs?: string[];
395
+ capturable?: boolean;
396
+ notes?: string[];
397
+ };
398
+ /** What produced the unit — the layer above the inputs. */
399
+ type DescendProducer = {
400
+ kind?: "cx_request" | "wf_node";
401
+ id?: string | null;
402
+ iteration?: number | null;
403
+ model?: string | null;
404
+ provider?: string | null;
405
+ snapshot_id?: string | null;
406
+ spec_type?: string | null;
407
+ confidence: "linked" | "inferred";
408
+ };
409
+ /** A unit the UI can descend into next — the recursive hop. */
410
+ type DescendRef = {
411
+ unit_kind: "assistant_message" | "agent_request" | "wf_node_outcome";
412
+ unit_id: string;
413
+ };
414
+ /** The unit being inspected. */
415
+ type DescendUnit = {
416
+ kind: "assistant_message" | "agent_request" | "wf_node_outcome";
417
+ id: string;
418
+ conversation_id?: string | null;
419
+ position?: number | null;
420
+ status?: string | null;
421
+ error?: JsonValue | null;
422
+ };
423
+ /** POST /review/findings/from-walk response. */
424
+ type FindingFromWalkOut = {
425
+ finding_id: string;
426
+ review_id: string;
427
+ enrollment_id: string;
428
+ enrollment_created?: boolean;
429
+ assist_id?: string | null;
430
+ lever: "instructions" | "resources" | "tools" | "architecture";
431
+ snapshots_pinned?: number;
432
+ };
433
+ /** POST /review/findings/from-walk body. */
434
+ type FindingFromWalkRequest = {
435
+ /** Organization context for the request; omitted to use the authenticated context. */
436
+ organization_id?: string | null;
437
+ /** Optional associated project selected by the caller. */
438
+ project_id?: string | null;
439
+ /** Optional associated task selected by the caller. */
440
+ task_id?: string | null;
441
+ /** Stable application slug that initiated the request. */
442
+ source_app?: string | null;
443
+ /** Stable feature slug within the source application. */
444
+ source_feature?: string | null;
445
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
446
+ initiation?: ("user" | "auto") | null;
447
+ unit_kind?: "assistant_message" | "agent_request" | "wf_node_outcome";
448
+ unit_id: string;
449
+ hops: WalkHop[];
450
+ fault_unit_kind: string;
451
+ fault_unit_id: string;
452
+ title: string;
453
+ reasoning?: string | null;
454
+ lever?: ("instructions" | "resources" | "tools" | "architecture") | null;
455
+ snapshot_ids?: string[];
456
+ };
457
+ /** Import conversations from the frontend's localStorage format. */
458
+ type ImportConversationsRequest = {
459
+ conversations: {
460
+ [key: string]: unknown;
461
+ }[];
462
+ };
463
+ /** InspectRequest */
464
+ type InspectRequest = {
465
+ organization_id: string;
466
+ connection_string: string;
467
+ };
468
+ /** InspectResponse */
469
+ type InspectResponse = {
470
+ label: string;
471
+ tables: OutsideTableOut[];
472
+ };
473
+ /** A custom table with a field that links to records of this platform type. */
474
+ type LinkingTable = {
475
+ table_id: string;
476
+ table_name?: string | null;
477
+ organization_id?: string | null;
478
+ organization?: string | null;
479
+ field_key: string;
480
+ field_label?: string | null;
481
+ };
482
+ /** OutsideColumn */
483
+ type OutsideColumn = {
484
+ name: string;
485
+ type: string;
486
+ };
487
+ /** OutsideTableOut */
488
+ type OutsideTableOut = {
489
+ schema_name: string;
490
+ name: string;
491
+ columns: OutsideColumn[];
492
+ key: string[];
493
+ row_estimate: number;
494
+ };
495
+ /** PreviewRequest */
496
+ type PreviewRequest = {
497
+ term_list_ids: string[];
498
+ };
499
+ /** Who produced one input. ``descend_ref`` present ⇒ the walk can continue */
500
+ type ProducerRef = {
501
+ kind: "cx_request" | "message" | "request_snapshot" | "tool_call" | "agent" | "pending_injection" | "context_policy" | "user" | "workflow_node" | "wf_node_outcome" | "workflow_run";
502
+ id?: string | null;
503
+ descend_ref?: DescendRef | null;
504
+ confidence: "linked" | "inferred";
505
+ };
506
+ /** RecordsSyncRequest */
507
+ type RecordsSyncRequest = {
508
+ organization_id: string;
509
+ table_ids: string[];
510
+ };
511
+ /** RefreshRequest */
512
+ type RefreshRequest = {
513
+ organization_id: string;
514
+ table_id: string;
515
+ };
516
+ /** Row */
517
+ type Row = {
518
+ id: string;
519
+ /** Every column you can see, by name; a column with no value is null. */
520
+ values: {
521
+ [key: string]: JsonValue;
522
+ };
523
+ /** Send this back as expected_version to refuse the update if someone changed the row since you read it. */
524
+ version?: number | null;
525
+ created_at?: string | null;
526
+ updated_at?: string | null;
527
+ /** Columns this table hides from you on this row; they read null here and cannot be written. */
528
+ hidden?: string[] | null;
529
+ /** On a standard table: the organization this row belongs to. */
530
+ organization_id?: string | null;
531
+ /** On a standard table: the organization custom field values of this row, by field key. Never mixed into `values`. */
532
+ _custom?: {
533
+ [key: string]: JsonValue;
534
+ } | null;
535
+ /** On a standard table: why a row is off the default list, e.g. {"archived": true}. */
536
+ state?: {
537
+ [key: string]: JsonValue;
538
+ } | null;
539
+ };
540
+ /** A new row. With ``template`` the row starts from that row template's values; any value sent wins. */
541
+ type RowCreate = {
542
+ /** Column name -> the value to write. With a template, these win over the template's. */
543
+ values?: {
544
+ [key: string]: JsonValue;
545
+ };
546
+ /** A word that is not yet one of a choice column's choices is refused (409, naming the words) unless this is true; then the words are added to the column in the same change. Your organization's choice se */
547
+ add_choices?: boolean;
548
+ /** A row template of this table, by name ("New Instagram post") or id: the row starts from its values. */
549
+ template?: string | null;
550
+ };
551
+ /** What a list call asks for. Every name is a column name. */
552
+ type RowFilter = {
553
+ /** Column name -> value. A plain value means "equals"; null means "empty"; {"from": ..., "to": ...} is a date window. */
554
+ where?: {
555
+ [key: string]: JsonValue;
556
+ } | null;
557
+ /** Words to find in any column you can see. */
558
+ search?: string | null;
559
+ /** Column names, "-Name" for descending, applied in order. */
560
+ sort?: string[] | null;
561
+ /** Rows per page; the organization's ceiling trims a larger ask. */
562
+ limit?: number | null;
563
+ offset?: number;
564
+ /** Standard tables: all (default: yours, your team's, your organizations' and shared with you), mine, team, orgs, shared, public, or system. */
565
+ scope?: ("all" | "mine" | "team" | "orgs" | "shared" | "public" | "system") | null;
566
+ /** Standard tables: one organization's id; left out, every organization you can read. */
567
+ organization?: string | null;
568
+ /** Standard tables: include the rows the app hides by default (for CRM people: merged and discovered ones). */
569
+ all_rows?: boolean;
570
+ /** Standard tables: archived rows are left out unless asked for. */
571
+ archived?: ("exclude" | "include" | "only") | null;
572
+ /** Standard tables: the next_cursor of the previous page. */
573
+ cursor?: string | null;
574
+ /** Standard tables: "api" keys every value by its api_name (stable across renames and organizations); labels by default. */
575
+ names?: ("labels" | "api") | null;
576
+ };
577
+ /** RowPage */
578
+ type RowPage = {
579
+ table_id: string;
580
+ rows: Row[];
581
+ /** How many rows match, of those you may see. */
582
+ total: number;
583
+ limit: number;
584
+ offset: number;
585
+ /** True when more rows match than are counted exactly; total is then the least there are. */
586
+ estimated?: boolean | null;
587
+ /** On a standard table: send as cursor to read the next page. Null on the last page. */
588
+ next_cursor?: string | null;
589
+ };
590
+ /** RowTemplate */
591
+ type RowTemplate = {
592
+ template_id: string;
593
+ name: string;
594
+ values: {
595
+ [key: string]: JsonValue;
596
+ };
597
+ /** The page body a row made from this template starts with, when it has one. */
598
+ body?: {
599
+ [key: string]: JsonValue;
600
+ } | null;
601
+ };
602
+ /** A row template: a named preset of column values that new rows start from (Notion's database */
603
+ type RowTemplateCreate = {
604
+ /** The template's name ("New Instagram post"). */
605
+ name: string;
606
+ /** Column name -> the value a new row starts with. A page body skeleton goes in its long-text column ("Page content"). */
607
+ values?: {
608
+ [key: string]: JsonValue;
609
+ };
610
+ /** True archives the template of this name (restorable, never deleted). */
611
+ archived?: boolean;
612
+ /** The page body a new row starts with, exactly the snapshot a row's page holds: {"v": 1, "blocks": [...]} (block shapes: how_to topic "notion"). Sent again without a body, the saved one is kept. */
613
+ body?: {
614
+ [key: string]: JsonValue;
615
+ } | null;
616
+ };
617
+ /** RowTemplateList */
618
+ type RowTemplateList = {
619
+ table_id: string;
620
+ templates: RowTemplate[];
621
+ };
622
+ /** RowTemplateMade */
623
+ type RowTemplateMade = {
624
+ done: boolean;
625
+ table_id: string;
626
+ template?: RowTemplate | null;
627
+ archived?: boolean;
628
+ };
629
+ /** RowUpdate */
630
+ type RowUpdate = {
631
+ /** Column name -> the value to write. Only the columns named are changed. */
632
+ values: {
633
+ [key: string]: JsonValue;
634
+ };
635
+ /** A word that is not yet one of a choice column's choices is refused (409, naming the words) unless this is true; then the words are added to the column in the same change. Your organization's choice se */
636
+ add_choices?: boolean;
637
+ /** The version you read. When someone changed the row since, the update is refused (409) with both versions. */
638
+ expected_version?: number | null;
639
+ };
640
+ /** SchemaAllResponse */
641
+ type SchemaAllResponse = {
642
+ [key: string]: JsonValue;
643
+ };
644
+ /** SchemaBundleInfo */
645
+ type SchemaBundleInfo = {
646
+ description: string;
647
+ content_type: string;
648
+ url: string;
649
+ };
650
+ /** SchemaManifestResponse */
651
+ type SchemaManifestResponse = {
652
+ bundles: {
653
+ [key: string]: SchemaBundleInfo;
654
+ };
655
+ };
656
+ /** SetCanonicalCleanRequest */
657
+ type SetCanonicalCleanRequest = {
658
+ /** Organization context for the request; omitted to use the authenticated context. */
659
+ organization_id?: string | null;
660
+ /** Optional associated project selected by the caller. */
661
+ project_id?: string | null;
662
+ /** Optional associated task selected by the caller. */
663
+ task_id?: string | null;
664
+ /** Stable application slug that initiated the request. */
665
+ source_app?: string | null;
666
+ /** Stable feature slug within the source application. */
667
+ source_feature?: string | null;
668
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
669
+ initiation?: ("user" | "auto") | null;
670
+ clean_id: string;
671
+ reason: string;
672
+ };
673
+ /** SetCanonicalExtractRequest */
674
+ type SetCanonicalExtractRequest = {
675
+ /** Organization context for the request; omitted to use the authenticated context. */
676
+ organization_id?: string | null;
677
+ /** Optional associated project selected by the caller. */
678
+ project_id?: string | null;
679
+ /** Optional associated task selected by the caller. */
680
+ task_id?: string | null;
681
+ /** Stable application slug that initiated the request. */
682
+ source_app?: string | null;
683
+ /** Stable feature slug within the source application. */
684
+ source_feature?: string | null;
685
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
686
+ initiation?: ("user" | "auto") | null;
687
+ processed_document_id: string;
688
+ reason: string;
689
+ };
690
+ /** SetCanonicalResponse */
691
+ type SetCanonicalResponse = {
692
+ file_id?: string | null;
693
+ parent_processed_id?: string | null;
694
+ canonical_processed_document_id?: string | null;
695
+ canonical_clean_id?: string | null;
696
+ reason: string;
697
+ };
698
+ /** ONE SQL statement, run on your tables as you. */
699
+ type SqlRequest = {
700
+ /** One statement: CREATE TABLE, ALTER TABLE, DROP TABLE, INSERT, SELECT, UPDATE or DELETE. */
701
+ sql: string;
702
+ /** Add words that are not yet a choice of their column, instead of refusing them. */
703
+ add_choices?: boolean;
704
+ };
705
+ /** What a Postgres client expects back. */
706
+ type SqlResult = {
707
+ /** SELECT, INSERT, UPDATE, DELETE, CREATE TABLE, ALTER TABLE or DROP TABLE. */
708
+ command: string;
709
+ /** The result's column names, in order. */
710
+ columns?: string[];
711
+ rows?: {
712
+ [key: string]: JsonValue;
713
+ }[];
714
+ /** Rows returned by a SELECT; rows written by an INSERT, UPDATE or DELETE. */
715
+ rowCount?: number;
716
+ table_id?: string | null;
717
+ /** For a SELECT of rows: how many rows match in all, of those you may see. */
718
+ total?: number | null;
719
+ /** What was read differently from plain Postgres, in sentences. */
720
+ notices?: string[];
721
+ /** False only when the organization asked a person to approve an AI client's change first. */
722
+ done?: boolean;
723
+ waiting?: {
724
+ [key: string]: JsonValue;
725
+ } | null;
726
+ };
727
+ /** SyncResponse */
728
+ type SyncResponse = {
729
+ table_id: string;
730
+ created: boolean;
731
+ rows_inserted: number;
732
+ rows_updated: number;
733
+ rows_archived: number;
734
+ rows_restored?: number;
735
+ rows_total?: number;
736
+ warnings?: string[];
737
+ synced_at: string;
738
+ };
739
+ /** TableColumns */
740
+ type TableColumns = {
741
+ id: string;
742
+ name?: string | null;
743
+ description?: string | null;
744
+ columns: Column[];
745
+ /** On a standard table: the custom tables you can open that have a field linking to its records (each with the field's key). */
746
+ linked_from?: LinkingTable[] | null;
747
+ notices?: string[] | null;
748
+ };
749
+ /** A new table: its name and its columns. Sent twice, it finds the table it made the first time. */
750
+ type TableCreate = {
751
+ /** The table's name, as a person sees it ("Vendor contacts"). */
752
+ name: string;
753
+ /** Its columns, in order. The first is what a row is called. */
754
+ columns: ColumnSpec[];
755
+ description?: string | null;
756
+ /** The token the table is found by; worked out from the name when left out. */
757
+ slug?: string | null;
758
+ };
759
+ /** TableList */
760
+ type TableList = {
761
+ /** Set only when the list was narrowed to one organization; otherwise every organization you belong to is listed and each table names its own. */
762
+ organization_id?: string | null;
763
+ tables: TableSummary[];
764
+ /** Organizations whose tables could not be listed right now, each with why. Empty when everything was listed. */
765
+ not_listed?: string[];
766
+ };
767
+ /** TableMade */
768
+ type TableMade = {
769
+ /** False only when the organization asks a person before an AI client makes a table. */
770
+ done: boolean;
771
+ /** The table's id — what every other call names it by. */
772
+ id?: string | null;
773
+ name?: string | null;
774
+ /** True when this call made the table; false when it already existed and was found. */
775
+ created?: boolean | null;
776
+ archived?: boolean | null;
777
+ organization_id?: string | null;
778
+ columns?: Column[] | null;
779
+ /** When the table already existed: each column whose stored type, label, required or unique differs from what this call asked for. Reported, never changed. */
780
+ differs?: {
781
+ [key: string]: JsonValue;
782
+ }[];
783
+ waiting?: {
784
+ [key: string]: JsonValue;
785
+ } | null;
786
+ };
787
+ /** TableSummary */
788
+ type TableSummary = {
789
+ /** The table's id — what every other call names it by. */
790
+ id: string;
791
+ /** The table's name, as the person sees it. */
792
+ name?: string | null;
793
+ description?: string | null;
794
+ /** Where the table lives (its Home), by name. */
795
+ home?: string | null;
796
+ /** Your level on this table: viewer, commenter, editor, admin or owner. */
797
+ your_access: string;
798
+ /** True for a table the app keeps for one of its own features (a context scope's table, for example); false for the organization's own data. */
799
+ platform_owned?: boolean | null;
800
+ /** The organization that keeps this table. */
801
+ organization_id?: string | null;
802
+ /** That organization's name. */
803
+ organization?: string | null;
804
+ /** "standard" for one of AI Matrx's own tables (CRM people, for example), named "entity:<name>"; "custom" for a table an organization made. */
805
+ kind?: "custom" | "standard";
806
+ };
807
+ /** One row of a term list. */
808
+ type TermEntry = {
809
+ term: string;
810
+ value?: string | null;
811
+ kind: "translate" | "do_not_translate" | "pronounce" | "spell_as" | "boost";
812
+ language?: string | null;
813
+ case_sensitive?: boolean;
814
+ };
815
+ /** TermListOut */
816
+ type TermListOut = {
817
+ id: string;
818
+ organization_id: string;
819
+ name: string | null;
820
+ description: string | null;
821
+ modalities: string[];
822
+ context: string | null;
823
+ source_language: string | null;
824
+ entries: {
825
+ [key: string]: unknown;
826
+ }[];
827
+ version: number | null;
828
+ updated_at: string | null;
829
+ vendor_cache: {
830
+ [key: string]: {
831
+ [key: string]: unknown;
832
+ };
833
+ };
834
+ };
835
+ /** The exact vendor-ready dictionary projections for the selected lists. */
836
+ type TermListPreviewResponse = {
837
+ chat_prompt_section: string;
838
+ elevenlabs_rules: {
839
+ [key: string]: {
840
+ [key: string]: JsonValue;
841
+ }[];
842
+ };
843
+ tts_substitution: {
844
+ [key: string]: JsonValue;
845
+ }[];
846
+ deepgram: {
847
+ [key: string]: JsonValue;
848
+ };
849
+ whisper_prompt?: string | null;
850
+ vendor_support: {
851
+ [key: string]: JsonValue;
852
+ };
853
+ };
854
+ /** TermListUpdate */
855
+ type TermListUpdate = {
856
+ name?: string | null;
857
+ description?: string | null;
858
+ modalities?: (("translation" | "pronunciation" | "transcription" | "house_terms")[]) | null;
859
+ context?: string | null;
860
+ source_language?: string | null;
861
+ entries?: TermEntry[] | null;
862
+ /** Optimistic lock: the version you read. */
863
+ expected_version?: number | null;
864
+ };
865
+ /** TermListWrite */
866
+ type TermListWrite = {
867
+ name?: string | null;
868
+ description?: string | null;
869
+ modalities?: (("translation" | "pronunciation" | "transcription" | "house_terms")[]) | null;
870
+ context?: string | null;
871
+ source_language?: string | null;
872
+ entries?: TermEntry[] | null;
873
+ };
874
+ /** UpdateConversationRequest */
875
+ type UpdateConversationRequest = {
876
+ title?: string | null;
877
+ mode?: string | null;
878
+ model?: string | null;
879
+ server_conversation_id?: string | null;
880
+ route_mode?: string | null;
881
+ agent_id?: string | null;
882
+ };
883
+ /** UpdateMessageRequest */
884
+ type UpdateMessageRequest = {
885
+ content?: string | null;
886
+ model?: string | null;
887
+ tool_calls?: {
888
+ [key: string]: unknown;
889
+ }[] | null;
890
+ tool_results?: {
891
+ [key: string]: unknown;
892
+ }[] | null;
893
+ error?: string | null;
894
+ };
895
+ /** UpsertRequest */
896
+ type UpsertRequest = {
897
+ /** The column rows are matched on, e.g. "Account". A row whose key matches a record updates it; no match creates one. */
898
+ key_column: string;
899
+ /** The rows, each carrying the key column. */
900
+ rows: {
901
+ [key: string]: JsonValue;
902
+ }[];
903
+ /** As on a single write: add words that are not yet a choice, instead of refusing them. */
904
+ add_choices?: boolean;
905
+ };
906
+ /** UpsertResult */
907
+ type UpsertResult = {
908
+ table_id: string;
909
+ created: number;
910
+ updated: number;
911
+ unchanged?: number;
912
+ rows: UpsertedRow[];
913
+ /** What was written differently from what was sent (a link whose key matched no row, a file that could not be fetched), in sentences. */
914
+ notices?: string[];
915
+ /** True when this is the stored answer to an earlier call with the same Idempotency-Key; nothing was written this time. */
916
+ replayed?: boolean;
917
+ };
918
+ /** UpsertedRow */
919
+ type UpsertedRow = {
920
+ /** Its position in the request, from 1. */
921
+ row: number;
922
+ key: JsonValue;
923
+ id: string;
924
+ created: boolean;
925
+ /** False when every value already matched: nothing was written and the version did not move. */
926
+ changed?: boolean;
927
+ version?: number | null;
928
+ };
929
+ /** A saved view of a table. Sent again with the same name, it changes that view. */
930
+ type ViewCreate = {
931
+ /** The view's name ("By status"). */
932
+ name: string;
933
+ /** grid (or table, list), board (kanban), calendar, gallery or timeline. */
934
+ layout?: string;
935
+ /** A board's columns, a timeline's rows, or a grid's sections: a column name. */
936
+ group_by?: string | null;
937
+ /** Calendar: where a row sits. Timeline: where its bar starts. */
938
+ date_column?: string | null;
939
+ /** Calendar and timeline: where a row ends. */
940
+ end_date_column?: string | null;
941
+ /** Gallery: the file column drawn as the card's cover. */
942
+ cover_column?: string | null;
943
+ /** Column names, "-" first for newest/largest first. */
944
+ sort?: string[] | null;
945
+ /** The view's filter, as list_rows takes it. */
946
+ where?: {
947
+ [key: string]: JsonValue;
948
+ } | null;
949
+ /** Columns this view hides. */
950
+ hidden?: string[] | null;
951
+ /** Open the table on this view. */
952
+ is_default?: boolean;
953
+ };
954
+ /** ViewMade */
955
+ type ViewMade = {
956
+ done: boolean;
957
+ table_id: string;
958
+ name: string;
959
+ layout: string;
960
+ view_id?: string | null;
961
+ };
962
+ /** One human answer in the walk — evidence, verbatim (D-40 typed hop). */
963
+ type WalkHop = {
964
+ hop: number;
965
+ unit_kind: string;
966
+ unit_id: string;
967
+ answer: "input_wrong" | "inputs_fine";
968
+ note?: string | null;
969
+ snapshot_id?: string | null;
970
+ };
971
+ /** A create, update, archive or restore — and, for an AI client, the organization's answer. */
972
+ type WriteResult = {
973
+ /** False only when the organization asked a person to approve it first. */
974
+ done: boolean;
975
+ row?: Row | null;
976
+ archived?: boolean | null;
977
+ restored?: boolean | null;
978
+ /** What was written differently from what was sent, in sentences. */
979
+ notices?: string[];
980
+ /** When done is false: what is waiting, why, and where a person approves it. */
981
+ waiting?: {
982
+ [key: string]: JsonValue;
983
+ } | null;
984
+ /** True when this is the stored answer to an earlier call with the same Idempotency-Key; nothing was written this time. */
985
+ replayed?: boolean;
986
+ };
987
+ /** ExtractRequest */
988
+ type aidream__api__routers__dedup_strict__ExtractRequest = {
989
+ intent: "extract" | "get_or_extract" | "replace_extract";
990
+ /** One of cld_file/note/code_file/external_url/inline/legacy */
991
+ source_kind: string;
992
+ source_id: string;
993
+ file_content_hash: string;
994
+ extractor_name?: string;
995
+ extractor_version?: string;
996
+ name: string;
997
+ mime_type?: string | null;
998
+ total_pages?: number | null;
999
+ source_hash: string;
1000
+ storage_uri?: string | null;
1001
+ content?: string | null;
1002
+ structured_json?: {
1003
+ [key: string]: unknown;
1004
+ } | null;
1005
+ organization_id?: string | null;
1006
+ metadata?: {
1007
+ [key: string]: unknown;
1008
+ };
1009
+ rag_boost?: number;
1010
+ reason?: string | null;
1011
+ };
1012
+ type SchemaManifestArgs = {
1013
+ [key: string]: never;
1014
+ };
1015
+ type SchemaManifestResult = SchemaManifestResponse;
1016
+ /** Schema Manifest */
1017
+ /** `GET /schema/manifest` · aidream · auth public · org exempt */
1018
+ declare function schemaManifest(api: Api, args?: SchemaManifestArgs, options?: CallOptions): Promise<SchemaManifestResult>;
1019
+ type SchemaBundleArgs = {
1020
+ path: {
1021
+ name: string;
1022
+ };
1023
+ };
1024
+ type SchemaBundleResult = unknown;
1025
+ /** Schema Bundle */
1026
+ /** `GET /schema/bundle/{name}` · aidream · auth public · org exempt */
1027
+ declare function schemaBundle(api: Api, args: SchemaBundleArgs, options?: CallOptions): Promise<SchemaBundleResult>;
1028
+ type SchemaOpenapiArgs = {
1029
+ [key: string]: never;
1030
+ };
1031
+ type SchemaOpenapiResult = unknown;
1032
+ /** Schema Openapi */
1033
+ /** `GET /schema/openapi` · aidream · auth public · org exempt */
1034
+ declare function schemaOpenapi(api: Api, args?: SchemaOpenapiArgs, options?: CallOptions): Promise<SchemaOpenapiResult>;
1035
+ type SchemaAllArgs = {
1036
+ [key: string]: never;
1037
+ };
1038
+ type SchemaAllResult = SchemaAllResponse;
1039
+ /** Schema All */
1040
+ /** `GET /schema/all` · aidream · auth public · org exempt */
1041
+ declare function schemaAll(api: Api, args?: SchemaAllArgs, options?: CallOptions): Promise<SchemaAllResult>;
1042
+ type ListTablesArgs = {
1043
+ query?: {
1044
+ search?: string | null;
1045
+ organization?: string | null;
1046
+ };
1047
+ };
1048
+ type ListTablesResult = TableList;
1049
+ /** List your tables */
1050
+ /** `GET /v1/tables` · aidream · auth user · org optional */
1051
+ declare function listTables(api: Api, args?: ListTablesArgs, options?: CallOptions): Promise<ListTablesResult>;
1052
+ type CreateTableArgs = {
1053
+ body: TableCreate;
1054
+ };
1055
+ type CreateTableResult = TableMade;
1056
+ /** Make a table */
1057
+ /** `POST /v1/tables` · aidream · auth user · org required */
1058
+ declare function createTable(api: Api, args: CreateTableArgs, options?: CallOptions): Promise<CreateTableResult>;
1059
+ type ArchiveTableArgs = {
1060
+ path: {
1061
+ table: string;
1062
+ };
1063
+ };
1064
+ type ArchiveTableResult = TableMade;
1065
+ /** Archive a table */
1066
+ /** `DELETE /v1/tables/{table}` · aidream · auth user · org required */
1067
+ declare function archiveTable(api: Api, args: ArchiveTableArgs, options?: CallOptions): Promise<ArchiveTableResult>;
1068
+ type TableColumnsArgs = {
1069
+ path: {
1070
+ table: string;
1071
+ };
1072
+ };
1073
+ type TableColumnsResult = TableColumns;
1074
+ /** A table's columns */
1075
+ /** `GET /v1/tables/{table}/columns` · aidream · auth user · org optional */
1076
+ declare function tableColumns(api: Api, args: TableColumnsArgs, options?: CallOptions): Promise<TableColumnsResult>;
1077
+ type AddColumnArgs = {
1078
+ path: {
1079
+ table: string;
1080
+ };
1081
+ body: ColumnSpec;
1082
+ };
1083
+ type AddColumnResult = ColumnChange;
1084
+ /** Add a column */
1085
+ /** `POST /v1/tables/{table}/columns` · aidream · auth user · org required */
1086
+ declare function addColumn(api: Api, args: AddColumnArgs, options?: CallOptions): Promise<AddColumnResult>;
1087
+ type CreateViewArgs = {
1088
+ path: {
1089
+ table: string;
1090
+ };
1091
+ body: ViewCreate;
1092
+ };
1093
+ type CreateViewResult = ViewMade;
1094
+ /** Save a view */
1095
+ /** `POST /v1/tables/{table}/views` · aidream · auth user · org required */
1096
+ declare function createView(api: Api, args: CreateViewArgs, options?: CallOptions): Promise<CreateViewResult>;
1097
+ type ListRowTemplatesArgs = {
1098
+ path: {
1099
+ table: string;
1100
+ };
1101
+ };
1102
+ type ListRowTemplatesResult = RowTemplateList;
1103
+ /** List row templates */
1104
+ /** `GET /v1/tables/{table}/templates` · aidream · auth user · org required */
1105
+ declare function listRowTemplates(api: Api, args: ListRowTemplatesArgs, options?: CallOptions): Promise<ListRowTemplatesResult>;
1106
+ type DeclareRowTemplateArgs = {
1107
+ path: {
1108
+ table: string;
1109
+ };
1110
+ body: RowTemplateCreate;
1111
+ };
1112
+ type DeclareRowTemplateResult = RowTemplateMade;
1113
+ /** Save a row template */
1114
+ /** `POST /v1/tables/{table}/templates` · aidream · auth user · org required */
1115
+ declare function declareRowTemplate(api: Api, args: DeclareRowTemplateArgs, options?: CallOptions): Promise<DeclareRowTemplateResult>;
1116
+ type ImportCommentsArgs = {
1117
+ path: {
1118
+ table: string;
1119
+ };
1120
+ body: CommentsImport;
1121
+ };
1122
+ type ImportCommentsResult = CommentsAdded;
1123
+ /** Bring in comments */
1124
+ /** `POST /v1/tables/{table}/comments` · aidream · auth user · org required */
1125
+ declare function importComments(api: Api, args: ImportCommentsArgs, options?: CallOptions): Promise<ImportCommentsResult>;
1126
+ type RenameColumnArgs = {
1127
+ path: {
1128
+ table: string;
1129
+ column: string;
1130
+ };
1131
+ body: ColumnRename;
1132
+ };
1133
+ type RenameColumnResult = ColumnChange;
1134
+ /** Rename a column */
1135
+ /** `PATCH /v1/tables/{table}/columns/{column}` · aidream · auth user · org required */
1136
+ declare function renameColumn(api: Api, args: RenameColumnArgs, options?: CallOptions): Promise<RenameColumnResult>;
1137
+ type ArchiveColumnArgs = {
1138
+ path: {
1139
+ table: string;
1140
+ column: string;
1141
+ };
1142
+ };
1143
+ type ArchiveColumnResult = ColumnChange;
1144
+ /** Archive a column */
1145
+ /** `DELETE /v1/tables/{table}/columns/{column}` · aidream · auth user · org required */
1146
+ declare function archiveColumn(api: Api, args: ArchiveColumnArgs, options?: CallOptions): Promise<ArchiveColumnResult>;
1147
+ type BackLinksArgs = {
1148
+ path: {
1149
+ table: string;
1150
+ row_id: string;
1151
+ };
1152
+ query?: {
1153
+ limit?: number;
1154
+ cursor?: string | null;
1155
+ };
1156
+ };
1157
+ type BackLinksResult = BackLinks;
1158
+ /** The custom rows that link to a platform record */
1159
+ /** `GET /v1/tables/{table}/rows/{row_id}/back_links` · aidream · auth user · org optional */
1160
+ declare function backLinks(api: Api, args: BackLinksArgs, options?: CallOptions): Promise<BackLinksResult>;
1161
+ type ListRowsArgs = {
1162
+ path: {
1163
+ table: string;
1164
+ };
1165
+ query?: {
1166
+ where?: string | null;
1167
+ search?: string | null;
1168
+ sort?: string | null;
1169
+ limit?: number | null;
1170
+ offset?: number;
1171
+ scope?: string | null;
1172
+ organization?: string | null;
1173
+ all_rows?: boolean;
1174
+ archived?: string | null;
1175
+ cursor?: string | null;
1176
+ names?: string | null;
1177
+ };
1178
+ };
1179
+ type ListRowsResult = RowPage;
1180
+ /** List rows */
1181
+ /** `GET /v1/tables/{table}/rows` · aidream · auth user · org optional */
1182
+ declare function listRows(api: Api, args: ListRowsArgs, options?: CallOptions): Promise<ListRowsResult>;
1183
+ type CreateRowArgs = {
1184
+ path: {
1185
+ table: string;
1186
+ };
1187
+ body: RowCreate;
1188
+ };
1189
+ type CreateRowResult = WriteResult;
1190
+ /** Create a row */
1191
+ /** `POST /v1/tables/{table}/rows` · aidream · auth user · org required */
1192
+ declare function createRow(api: Api, args: CreateRowArgs, options?: CallOptions): Promise<CreateRowResult>;
1193
+ type QueryRowsArgs = {
1194
+ path: {
1195
+ table: string;
1196
+ };
1197
+ body: RowFilter;
1198
+ };
1199
+ type QueryRowsResult = RowPage;
1200
+ /** List rows (body) */
1201
+ /** `POST /v1/tables/{table}/rows/query` · aidream · auth user · org optional */
1202
+ declare function queryRows(api: Api, args: QueryRowsArgs, options?: CallOptions): Promise<QueryRowsResult>;
1203
+ type AggregateOpArgs = {
1204
+ path: {
1205
+ table: string;
1206
+ };
1207
+ body: AggregateRequest;
1208
+ };
1209
+ type AggregateOpResult = AggregateResult;
1210
+ /** Totals, counts, averages and top N */
1211
+ /** `POST /v1/tables/{table}/aggregate` · aidream · auth user · org optional */
1212
+ declare function aggregate(api: Api, args: AggregateOpArgs, options?: CallOptions): Promise<AggregateOpResult>;
1213
+ type UpsertRowsArgs = {
1214
+ path: {
1215
+ table: string;
1216
+ };
1217
+ body: UpsertRequest;
1218
+ };
1219
+ type UpsertRowsResult = UpsertResult | WriteResult;
1220
+ /** Create or update many rows */
1221
+ /** `POST /v1/tables/{table}/rows/upsert` · aidream · auth user · org required */
1222
+ declare function upsertRows(api: Api, args: UpsertRowsArgs, options?: CallOptions): Promise<UpsertRowsResult>;
1223
+ type GetRowArgs = {
1224
+ path: {
1225
+ table: string;
1226
+ row_id: string;
1227
+ };
1228
+ query?: {
1229
+ names?: string | null;
1230
+ };
1231
+ };
1232
+ type GetRowResult = Row;
1233
+ /** Get a row */
1234
+ /** `GET /v1/tables/{table}/rows/{row_id}` · aidream · auth user · org optional */
1235
+ declare function getRow(api: Api, args: GetRowArgs, options?: CallOptions): Promise<GetRowResult>;
1236
+ type UpdateRowArgs = {
1237
+ path: {
1238
+ table: string;
1239
+ row_id: string;
1240
+ };
1241
+ body: RowUpdate;
1242
+ };
1243
+ type UpdateRowResult = WriteResult;
1244
+ /** Update a row */
1245
+ /** `PATCH /v1/tables/{table}/rows/{row_id}` · aidream · auth user · org required */
1246
+ declare function updateRow(api: Api, args: UpdateRowArgs, options?: CallOptions): Promise<UpdateRowResult>;
1247
+ type ArchiveRowArgs = {
1248
+ path: {
1249
+ table: string;
1250
+ row_id: string;
1251
+ };
1252
+ };
1253
+ type ArchiveRowResult = WriteResult;
1254
+ /** Archive a row */
1255
+ /** `DELETE /v1/tables/{table}/rows/{row_id}` · aidream · auth user · org required */
1256
+ declare function archiveRow(api: Api, args: ArchiveRowArgs, options?: CallOptions): Promise<ArchiveRowResult>;
1257
+ type RestoreRowArgs = {
1258
+ path: {
1259
+ table: string;
1260
+ row_id: string;
1261
+ };
1262
+ };
1263
+ type RestoreRowResult = WriteResult;
1264
+ /** Restore an archived row */
1265
+ /** `POST /v1/tables/{table}/rows/{row_id}/restore` · aidream · auth user · org required */
1266
+ declare function restoreRow(api: Api, args: RestoreRowArgs, options?: CallOptions): Promise<RestoreRowResult>;
1267
+ type RunSqlArgs = {
1268
+ body: SqlRequest;
1269
+ };
1270
+ type RunSqlResult = SqlResult;
1271
+ /** Run one SQL statement on your tables */
1272
+ /** `POST /v1/sql` · aidream · auth user · org required */
1273
+ declare function runSql(api: Api, args: RunSqlArgs, options?: CallOptions): Promise<RunSqlResult>;
1274
+ type ListTermListsArgs = {
1275
+ [key: string]: never;
1276
+ };
1277
+ type ListTermListsResult = TermListOut[];
1278
+ /** List Term Lists */
1279
+ /** `GET /term-lists` · aidream · auth guest · org optional */
1280
+ declare function listTermLists(api: Api, args?: ListTermListsArgs, options?: CallOptions): Promise<ListTermListsResult>;
1281
+ type CreateTermListArgs = {
1282
+ body: TermListWrite;
1283
+ };
1284
+ type CreateTermListResult = TermListOut;
1285
+ /** Create Term List */
1286
+ /** `POST /term-lists` · aidream · auth guest · org required */
1287
+ declare function createTermList(api: Api, args: CreateTermListArgs, options?: CallOptions): Promise<CreateTermListResult>;
1288
+ type GetTermListArgs = {
1289
+ path: {
1290
+ term_list_id: string;
1291
+ };
1292
+ };
1293
+ type GetTermListResult = TermListOut;
1294
+ /** Get Term List */
1295
+ /** `GET /term-lists/{term_list_id}` · aidream · auth guest · org optional */
1296
+ declare function getTermList(api: Api, args: GetTermListArgs, options?: CallOptions): Promise<GetTermListResult>;
1297
+ type UpdateTermListArgs = {
1298
+ path: {
1299
+ term_list_id: string;
1300
+ };
1301
+ body: TermListUpdate;
1302
+ };
1303
+ type UpdateTermListResult = TermListOut;
1304
+ /** Update Term List */
1305
+ /** `PATCH /term-lists/{term_list_id}` · aidream · auth guest · org required */
1306
+ declare function updateTermList(api: Api, args: UpdateTermListArgs, options?: CallOptions): Promise<UpdateTermListResult>;
1307
+ type ArchiveTermListArgs = {
1308
+ path: {
1309
+ term_list_id: string;
1310
+ };
1311
+ };
1312
+ type ArchiveTermListResult = void;
1313
+ /** Archive Term List */
1314
+ /** `DELETE /term-lists/{term_list_id}` · aidream · auth guest · org required */
1315
+ declare function archiveTermList(api: Api, args: ArchiveTermListArgs, options?: CallOptions): Promise<ArchiveTermListResult>;
1316
+ type PreviewTermListsArgs = {
1317
+ body: PreviewRequest;
1318
+ };
1319
+ type PreviewTermListsResult = TermListPreviewResponse;
1320
+ /** Preview Term Lists */
1321
+ /** `POST /term-lists/preview` · aidream · auth guest · org required */
1322
+ declare function previewTermLists(api: Api, args: PreviewTermListsArgs, options?: CallOptions): Promise<PreviewTermListsResult>;
1323
+ type MakeConfidentialArgs = {
1324
+ body: ConfidentialRequest;
1325
+ };
1326
+ type MakeConfidentialResult = ConfidentialAnswer;
1327
+ /** Make Confidential */
1328
+ /** `POST /typed-tables/confidential` · aidream · auth user · org required */
1329
+ declare function makeConfidential(api: Api, args: MakeConfidentialArgs, options?: CallOptions): Promise<MakeConfidentialResult>;
1330
+ type InspectDatabaseArgs = {
1331
+ body: InspectRequest;
1332
+ };
1333
+ type InspectDatabaseResult = InspectResponse;
1334
+ /** Inspect Database */
1335
+ /** `POST /external-databases/inspect` · aidream · auth guest · org required */
1336
+ declare function inspectDatabase(api: Api, args: InspectDatabaseArgs, options?: CallOptions): Promise<InspectDatabaseResult>;
1337
+ type ConnectDatabaseTableArgs = {
1338
+ body: ConnectTableRequest;
1339
+ };
1340
+ type ConnectDatabaseTableResult = SyncResponse;
1341
+ /** Connect Database Table */
1342
+ /** `POST /external-databases/tables` · aidream · auth guest · org required */
1343
+ declare function connectDatabaseTable(api: Api, args: ConnectDatabaseTableArgs, options?: CallOptions): Promise<ConnectDatabaseTableResult>;
1344
+ type RefreshSyncedTableArgs = {
1345
+ body: RefreshRequest;
1346
+ };
1347
+ type RefreshSyncedTableResult = SyncResponse;
1348
+ /** Refresh Synced Table */
1349
+ /** `POST /external-databases/refresh` · aidream · auth guest · org required */
1350
+ declare function refreshSyncedTable(api: Api, args: RefreshSyncedTableArgs, options?: CallOptions): Promise<RefreshSyncedTableResult>;
1351
+ type DescendArgs = {
1352
+ query: {
1353
+ unit_kind?: "assistant_message" | "agent_request" | "wf_node_outcome";
1354
+ unit_id: string;
1355
+ };
1356
+ };
1357
+ type DescendResult = DescendOut;
1358
+ /** Descend */
1359
+ /** `GET /review/descend` · aidream · auth guest · org required */
1360
+ declare function descend(api: Api, args: DescendArgs, options?: CallOptions): Promise<DescendResult>;
1361
+ type FindingFromWalkArgs = {
1362
+ body: FindingFromWalkRequest;
1363
+ };
1364
+ type FindingFromWalkResult = FindingFromWalkOut;
1365
+ /** Finding From Walk */
1366
+ /** `POST /review/findings/from-walk` · aidream · auth guest · org required */
1367
+ declare function findingFromWalk(api: Api, args: FindingFromWalkArgs, options?: CallOptions): Promise<FindingFromWalkResult>;
1368
+ type AdminReviewDescendArgs = {
1369
+ query: {
1370
+ unit_kind?: "assistant_message" | "agent_request" | "wf_node_outcome";
1371
+ unit_id: string;
1372
+ };
1373
+ };
1374
+ type AdminReviewDescendResult = DescendOut;
1375
+ /** Admin Review Descend */
1376
+ /** `GET /admin/review/descend` · aidream · auth admin · org exempt */
1377
+ declare function adminReviewDescend(api: Api, args: AdminReviewDescendArgs, options?: CallOptions): Promise<AdminReviewDescendResult>;
1378
+ type ExtractEndpointArgs = {
1379
+ body: aidream__api__routers__dedup_strict__ExtractRequest;
1380
+ };
1381
+ type ExtractEndpointResult = DedupResponse;
1382
+ /** Create or reuse an initial_extract row (strict intent) */
1383
+ /** `POST /dedup/processed-documents/extract` · aidream · auth guest · org required */
1384
+ declare function extractEndpoint(api: Api, args: ExtractEndpointArgs, options?: CallOptions): Promise<ExtractEndpointResult>;
1385
+ type CleanEndpointArgs = {
1386
+ path: {
1387
+ processed_document_id: string;
1388
+ };
1389
+ body: CleanRequest;
1390
+ };
1391
+ type CleanEndpointResult = DedupResponse;
1392
+ /** Create or reuse a re_clean variant (strict intent) */
1393
+ /** `POST /dedup/processed-documents/{processed_document_id}/clean` · aidream · auth guest · org required */
1394
+ declare function cleanEndpoint(api: Api, args: CleanEndpointArgs, options?: CallOptions): Promise<CleanEndpointResult>;
1395
+ type DerivativeEndpointArgs = {
1396
+ path: {
1397
+ processed_document_id: string;
1398
+ };
1399
+ body: DerivativeRequest;
1400
+ };
1401
+ type DerivativeEndpointResult = DedupResponse;
1402
+ /** Create or reuse a derivative (agent extract, summary, etc.) */
1403
+ /** `POST /dedup/processed-documents/{processed_document_id}/derivative` · aidream · auth guest · org required */
1404
+ declare function derivativeEndpoint(api: Api, args: DerivativeEndpointArgs, options?: CallOptions): Promise<DerivativeEndpointResult>;
1405
+ type SetCanonicalExtractEndpointArgs = {
1406
+ path: {
1407
+ file_id: string;
1408
+ };
1409
+ body: SetCanonicalExtractRequest;
1410
+ };
1411
+ type SetCanonicalExtractEndpointResult = SetCanonicalResponse;
1412
+ /** Promote a processed_document to canonical for its cld_file */
1413
+ /** `POST /dedup/files/{file_id}/set-canonical-extract` · aidream · auth guest · org required */
1414
+ declare function setCanonicalExtractEndpoint(api: Api, args: SetCanonicalExtractEndpointArgs, options?: CallOptions): Promise<SetCanonicalExtractEndpointResult>;
1415
+ type SetCanonicalCleanEndpointArgs = {
1416
+ path: {
1417
+ processed_document_id: string;
1418
+ };
1419
+ body: SetCanonicalCleanRequest;
1420
+ };
1421
+ type SetCanonicalCleanEndpointResult = SetCanonicalResponse;
1422
+ /** Promote a re_clean variant to canonical for its parent */
1423
+ /** `POST /dedup/processed-documents/{processed_document_id}/set-canonical-clean` · aidream · auth guest · org required */
1424
+ declare function setCanonicalCleanEndpoint(api: Api, args: SetCanonicalCleanEndpointArgs, options?: CallOptions): Promise<SetCanonicalCleanEndpointResult>;
1425
+ type ArchiveEndpointArgs = {
1426
+ path: {
1427
+ processed_document_id: string;
1428
+ };
1429
+ body: ArchiveRequest;
1430
+ };
1431
+ type ArchiveEndpointResult = ArchiveResponse;
1432
+ /** Soft-archive a processed_document */
1433
+ /** `POST /dedup/processed-documents/{processed_document_id}/archive` · aidream · auth guest · org required */
1434
+ declare function archiveEndpoint(api: Api, args: ArchiveEndpointArgs, options?: CallOptions): Promise<ArchiveEndpointResult>;
1435
+ type ListModelsArgs = {
1436
+ [key: string]: never;
1437
+ };
1438
+ type ListModelsResult = {
1439
+ [key: string]: unknown;
1440
+ };
1441
+ /** List Models */
1442
+ /** `GET /data/models` · matrx-local · auth loopback_token · org exempt */
1443
+ declare function listModels(api: Api, args?: ListModelsArgs, options?: CallOptions): Promise<ListModelsResult>;
1444
+ type ListToolsArgs = {
1445
+ [key: string]: never;
1446
+ };
1447
+ type ListToolsResult = {
1448
+ [key: string]: unknown;
1449
+ };
1450
+ /** List Tools */
1451
+ /** `GET /data/tools` · matrx-local · auth loopback_token · org exempt */
1452
+ declare function listTools(api: Api, args?: ListToolsArgs, options?: CallOptions): Promise<ListToolsResult>;
1453
+ type ListToolsByCategoryArgs = {
1454
+ [key: string]: never;
1455
+ };
1456
+ type ListToolsByCategoryResult = {
1457
+ [key: string]: unknown;
1458
+ };
1459
+ /** List Tools By Category */
1460
+ /** `GET /data/tools/by-category` · matrx-local · auth loopback_token · org exempt */
1461
+ declare function listToolsByCategory(api: Api, args?: ListToolsByCategoryArgs, options?: CallOptions): Promise<ListToolsByCategoryResult>;
1462
+ type ListConversationsArgs = {
1463
+ query?: {
1464
+ limit?: number;
1465
+ offset?: number;
1466
+ };
1467
+ };
1468
+ type ListConversationsResult = {
1469
+ [key: string]: unknown;
1470
+ };
1471
+ /** List Conversations */
1472
+ /** `GET /data/conversations` · matrx-local · auth loopback_token · org exempt */
1473
+ declare function listConversations(api: Api, args?: ListConversationsArgs, options?: CallOptions): Promise<ListConversationsResult>;
1474
+ type CreateConversationArgs = {
1475
+ body: CreateConversationRequest;
1476
+ };
1477
+ type CreateConversationResult = {
1478
+ [key: string]: unknown;
1479
+ };
1480
+ /** Create Conversation */
1481
+ /** `POST /data/conversations` · matrx-local · auth loopback_token · org exempt */
1482
+ declare function createConversation(api: Api, args: CreateConversationArgs, options?: CallOptions): Promise<CreateConversationResult>;
1483
+ type GetConversationArgs = {
1484
+ path: {
1485
+ conv_id: string;
1486
+ };
1487
+ };
1488
+ type GetConversationResult = {
1489
+ [key: string]: unknown;
1490
+ };
1491
+ /** Get Conversation */
1492
+ /** `GET /data/conversations/{conv_id}` · matrx-local · auth loopback_token · org exempt */
1493
+ declare function getConversation(api: Api, args: GetConversationArgs, options?: CallOptions): Promise<GetConversationResult>;
1494
+ type UpdateConversationArgs = {
1495
+ path: {
1496
+ conv_id: string;
1497
+ };
1498
+ body: UpdateConversationRequest;
1499
+ };
1500
+ type UpdateConversationResult = {
1501
+ [key: string]: unknown;
1502
+ };
1503
+ /** Update Conversation */
1504
+ /** `PUT /data/conversations/{conv_id}` · matrx-local · auth loopback_token · org exempt */
1505
+ declare function updateConversation(api: Api, args: UpdateConversationArgs, options?: CallOptions): Promise<UpdateConversationResult>;
1506
+ type DeleteConversationArgs = {
1507
+ path: {
1508
+ conv_id: string;
1509
+ };
1510
+ };
1511
+ type DeleteConversationResult = {
1512
+ [key: string]: unknown;
1513
+ };
1514
+ /** Delete Conversation */
1515
+ /** `DELETE /data/conversations/{conv_id}` · matrx-local · auth loopback_token · org exempt */
1516
+ declare function deleteConversation(api: Api, args: DeleteConversationArgs, options?: CallOptions): Promise<DeleteConversationResult>;
1517
+ type GetConversationActivityArgs = {
1518
+ path: {
1519
+ conv_id: string;
1520
+ };
1521
+ };
1522
+ type GetConversationActivityResult = {
1523
+ [key: string]: unknown;
1524
+ };
1525
+ /** Get Conversation Activity */
1526
+ /** `GET /data/conversations/{conv_id}/activity` · matrx-local · auth loopback_token · org exempt */
1527
+ declare function getConversationActivity(api: Api, args: GetConversationActivityArgs, options?: CallOptions): Promise<GetConversationActivityResult>;
1528
+ type CreateMessageArgs = {
1529
+ path: {
1530
+ conv_id: string;
1531
+ };
1532
+ body: CreateMessageRequest;
1533
+ };
1534
+ type CreateMessageResult = {
1535
+ [key: string]: unknown;
1536
+ };
1537
+ /** Create Message */
1538
+ /** `POST /data/conversations/{conv_id}/messages` · matrx-local · auth loopback_token · org exempt */
1539
+ declare function createMessage(api: Api, args: CreateMessageArgs, options?: CallOptions): Promise<CreateMessageResult>;
1540
+ type UpdateMessageArgs = {
1541
+ path: {
1542
+ msg_id: string;
1543
+ };
1544
+ body: UpdateMessageRequest;
1545
+ };
1546
+ type UpdateMessageResult = {
1547
+ [key: string]: unknown;
1548
+ };
1549
+ /** Update Message */
1550
+ /** `PUT /data/messages/{msg_id}` · matrx-local · auth loopback_token · org exempt */
1551
+ declare function updateMessage(api: Api, args: UpdateMessageArgs, options?: CallOptions): Promise<UpdateMessageResult>;
1552
+ type ImportConversationsArgs = {
1553
+ body: ImportConversationsRequest;
1554
+ };
1555
+ type ImportConversationsResult = {
1556
+ [key: string]: unknown;
1557
+ };
1558
+ /** Import Conversations */
1559
+ /** `POST /data/conversations/import` · matrx-local · auth loopback_token · org exempt */
1560
+ declare function importConversations(api: Api, args: ImportConversationsArgs, options?: CallOptions): Promise<ImportConversationsResult>;
1561
+ type TriggerSyncArgs = {
1562
+ [key: string]: never;
1563
+ };
1564
+ type TriggerSyncResult = {
1565
+ [key: string]: unknown;
1566
+ };
1567
+ /** Trigger Sync */
1568
+ /** `POST /data/sync` · matrx-local · auth loopback_token · org exempt */
1569
+ declare function triggerSync(api: Api, args?: TriggerSyncArgs, options?: CallOptions): Promise<TriggerSyncResult>;
1570
+ type GetSyncStatusArgs = {
1571
+ [key: string]: never;
1572
+ };
1573
+ type GetSyncStatusResult = {
1574
+ [key: string]: unknown;
1575
+ };
1576
+ /** Get Sync Status */
1577
+ /** `GET /data/sync/status` · matrx-local · auth loopback_token · org exempt */
1578
+ declare function getSyncStatus(api: Api, args?: GetSyncStatusArgs, options?: CallOptions): Promise<GetSyncStatusResult>;
1579
+ type DebugStateRedirectArgs = {
1580
+ [key: string]: never;
1581
+ };
1582
+ type DebugStateRedirectResult = {
1583
+ [key: string]: unknown;
1584
+ };
1585
+ /** Debug State Redirect */
1586
+ /** `GET /data/debug` · matrx-local · auth loopback_token · org exempt */
1587
+ declare function debugStateRedirect(api: Api, args?: DebugStateRedirectArgs, options?: CallOptions): Promise<DebugStateRedirectResult>;
1588
+ type RecordsMirrorStatusArgs = {
1589
+ [key: string]: never;
1590
+ };
1591
+ type RecordsMirrorStatusResult = {
1592
+ [key: string]: unknown;
1593
+ };
1594
+ /** Records Mirror Status */
1595
+ /** `GET /records/mirror/status` · matrx-local · auth loopback_token · org exempt */
1596
+ declare function recordsMirrorStatus(api: Api, args?: RecordsMirrorStatusArgs, options?: CallOptions): Promise<RecordsMirrorStatusResult>;
1597
+ type TriggerRecordsMirrorSyncArgs = {
1598
+ body: RecordsSyncRequest;
1599
+ };
1600
+ type TriggerRecordsMirrorSyncResult = {
1601
+ [key: string]: unknown;
1602
+ };
1603
+ /** Trigger Records Mirror Sync */
1604
+ /** `POST /records/mirror/sync` · matrx-local · auth loopback_token · org exempt */
1605
+ declare function triggerRecordsMirrorSync(api: Api, args: TriggerRecordsMirrorSyncArgs, options?: CallOptions): Promise<TriggerRecordsMirrorSyncResult>;
1606
+ /** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
1607
+ interface Operations {
1608
+ "GET /schema/manifest": {
1609
+ args: SchemaManifestArgs;
1610
+ result: SchemaManifestResult;
1611
+ };
1612
+ "GET /schema/bundle/{name}": {
1613
+ args: SchemaBundleArgs;
1614
+ result: SchemaBundleResult;
1615
+ };
1616
+ "GET /schema/openapi": {
1617
+ args: SchemaOpenapiArgs;
1618
+ result: SchemaOpenapiResult;
1619
+ };
1620
+ "GET /schema/all": {
1621
+ args: SchemaAllArgs;
1622
+ result: SchemaAllResult;
1623
+ };
1624
+ "GET /v1/tables": {
1625
+ args: ListTablesArgs;
1626
+ result: ListTablesResult;
1627
+ };
1628
+ "POST /v1/tables": {
1629
+ args: CreateTableArgs;
1630
+ result: CreateTableResult;
1631
+ };
1632
+ "DELETE /v1/tables/{table}": {
1633
+ args: ArchiveTableArgs;
1634
+ result: ArchiveTableResult;
1635
+ };
1636
+ "GET /v1/tables/{table}/columns": {
1637
+ args: TableColumnsArgs;
1638
+ result: TableColumnsResult;
1639
+ };
1640
+ "POST /v1/tables/{table}/columns": {
1641
+ args: AddColumnArgs;
1642
+ result: AddColumnResult;
1643
+ };
1644
+ "POST /v1/tables/{table}/views": {
1645
+ args: CreateViewArgs;
1646
+ result: CreateViewResult;
1647
+ };
1648
+ "GET /v1/tables/{table}/templates": {
1649
+ args: ListRowTemplatesArgs;
1650
+ result: ListRowTemplatesResult;
1651
+ };
1652
+ "POST /v1/tables/{table}/templates": {
1653
+ args: DeclareRowTemplateArgs;
1654
+ result: DeclareRowTemplateResult;
1655
+ };
1656
+ "POST /v1/tables/{table}/comments": {
1657
+ args: ImportCommentsArgs;
1658
+ result: ImportCommentsResult;
1659
+ };
1660
+ "PATCH /v1/tables/{table}/columns/{column}": {
1661
+ args: RenameColumnArgs;
1662
+ result: RenameColumnResult;
1663
+ };
1664
+ "DELETE /v1/tables/{table}/columns/{column}": {
1665
+ args: ArchiveColumnArgs;
1666
+ result: ArchiveColumnResult;
1667
+ };
1668
+ "GET /v1/tables/{table}/rows/{row_id}/back_links": {
1669
+ args: BackLinksArgs;
1670
+ result: BackLinksResult;
1671
+ };
1672
+ "GET /v1/tables/{table}/rows": {
1673
+ args: ListRowsArgs;
1674
+ result: ListRowsResult;
1675
+ };
1676
+ "POST /v1/tables/{table}/rows": {
1677
+ args: CreateRowArgs;
1678
+ result: CreateRowResult;
1679
+ };
1680
+ "POST /v1/tables/{table}/rows/query": {
1681
+ args: QueryRowsArgs;
1682
+ result: QueryRowsResult;
1683
+ };
1684
+ "POST /v1/tables/{table}/aggregate": {
1685
+ args: AggregateOpArgs;
1686
+ result: AggregateOpResult;
1687
+ };
1688
+ "POST /v1/tables/{table}/rows/upsert": {
1689
+ args: UpsertRowsArgs;
1690
+ result: UpsertRowsResult;
1691
+ };
1692
+ "GET /v1/tables/{table}/rows/{row_id}": {
1693
+ args: GetRowArgs;
1694
+ result: GetRowResult;
1695
+ };
1696
+ "PATCH /v1/tables/{table}/rows/{row_id}": {
1697
+ args: UpdateRowArgs;
1698
+ result: UpdateRowResult;
1699
+ };
1700
+ "DELETE /v1/tables/{table}/rows/{row_id}": {
1701
+ args: ArchiveRowArgs;
1702
+ result: ArchiveRowResult;
1703
+ };
1704
+ "POST /v1/tables/{table}/rows/{row_id}/restore": {
1705
+ args: RestoreRowArgs;
1706
+ result: RestoreRowResult;
1707
+ };
1708
+ "POST /v1/sql": {
1709
+ args: RunSqlArgs;
1710
+ result: RunSqlResult;
1711
+ };
1712
+ "GET /term-lists": {
1713
+ args: ListTermListsArgs;
1714
+ result: ListTermListsResult;
1715
+ };
1716
+ "POST /term-lists": {
1717
+ args: CreateTermListArgs;
1718
+ result: CreateTermListResult;
1719
+ };
1720
+ "GET /term-lists/{term_list_id}": {
1721
+ args: GetTermListArgs;
1722
+ result: GetTermListResult;
1723
+ };
1724
+ "PATCH /term-lists/{term_list_id}": {
1725
+ args: UpdateTermListArgs;
1726
+ result: UpdateTermListResult;
1727
+ };
1728
+ "DELETE /term-lists/{term_list_id}": {
1729
+ args: ArchiveTermListArgs;
1730
+ result: ArchiveTermListResult;
1731
+ };
1732
+ "POST /term-lists/preview": {
1733
+ args: PreviewTermListsArgs;
1734
+ result: PreviewTermListsResult;
1735
+ };
1736
+ "POST /typed-tables/confidential": {
1737
+ args: MakeConfidentialArgs;
1738
+ result: MakeConfidentialResult;
1739
+ };
1740
+ "POST /external-databases/inspect": {
1741
+ args: InspectDatabaseArgs;
1742
+ result: InspectDatabaseResult;
1743
+ };
1744
+ "POST /external-databases/tables": {
1745
+ args: ConnectDatabaseTableArgs;
1746
+ result: ConnectDatabaseTableResult;
1747
+ };
1748
+ "POST /external-databases/refresh": {
1749
+ args: RefreshSyncedTableArgs;
1750
+ result: RefreshSyncedTableResult;
1751
+ };
1752
+ "GET /review/descend": {
1753
+ args: DescendArgs;
1754
+ result: DescendResult;
1755
+ };
1756
+ "POST /review/findings/from-walk": {
1757
+ args: FindingFromWalkArgs;
1758
+ result: FindingFromWalkResult;
1759
+ };
1760
+ "GET /admin/review/descend": {
1761
+ args: AdminReviewDescendArgs;
1762
+ result: AdminReviewDescendResult;
1763
+ };
1764
+ "POST /dedup/processed-documents/extract": {
1765
+ args: ExtractEndpointArgs;
1766
+ result: ExtractEndpointResult;
1767
+ };
1768
+ "POST /dedup/processed-documents/{processed_document_id}/clean": {
1769
+ args: CleanEndpointArgs;
1770
+ result: CleanEndpointResult;
1771
+ };
1772
+ "POST /dedup/processed-documents/{processed_document_id}/derivative": {
1773
+ args: DerivativeEndpointArgs;
1774
+ result: DerivativeEndpointResult;
1775
+ };
1776
+ "POST /dedup/files/{file_id}/set-canonical-extract": {
1777
+ args: SetCanonicalExtractEndpointArgs;
1778
+ result: SetCanonicalExtractEndpointResult;
1779
+ };
1780
+ "POST /dedup/processed-documents/{processed_document_id}/set-canonical-clean": {
1781
+ args: SetCanonicalCleanEndpointArgs;
1782
+ result: SetCanonicalCleanEndpointResult;
1783
+ };
1784
+ "POST /dedup/processed-documents/{processed_document_id}/archive": {
1785
+ args: ArchiveEndpointArgs;
1786
+ result: ArchiveEndpointResult;
1787
+ };
1788
+ "GET /data/models": {
1789
+ args: ListModelsArgs;
1790
+ result: ListModelsResult;
1791
+ };
1792
+ "GET /data/tools": {
1793
+ args: ListToolsArgs;
1794
+ result: ListToolsResult;
1795
+ };
1796
+ "GET /data/tools/by-category": {
1797
+ args: ListToolsByCategoryArgs;
1798
+ result: ListToolsByCategoryResult;
1799
+ };
1800
+ "GET /data/conversations": {
1801
+ args: ListConversationsArgs;
1802
+ result: ListConversationsResult;
1803
+ };
1804
+ "POST /data/conversations": {
1805
+ args: CreateConversationArgs;
1806
+ result: CreateConversationResult;
1807
+ };
1808
+ "GET /data/conversations/{conv_id}": {
1809
+ args: GetConversationArgs;
1810
+ result: GetConversationResult;
1811
+ };
1812
+ "PUT /data/conversations/{conv_id}": {
1813
+ args: UpdateConversationArgs;
1814
+ result: UpdateConversationResult;
1815
+ };
1816
+ "DELETE /data/conversations/{conv_id}": {
1817
+ args: DeleteConversationArgs;
1818
+ result: DeleteConversationResult;
1819
+ };
1820
+ "GET /data/conversations/{conv_id}/activity": {
1821
+ args: GetConversationActivityArgs;
1822
+ result: GetConversationActivityResult;
1823
+ };
1824
+ "POST /data/conversations/{conv_id}/messages": {
1825
+ args: CreateMessageArgs;
1826
+ result: CreateMessageResult;
1827
+ };
1828
+ "PUT /data/messages/{msg_id}": {
1829
+ args: UpdateMessageArgs;
1830
+ result: UpdateMessageResult;
1831
+ };
1832
+ "POST /data/conversations/import": {
1833
+ args: ImportConversationsArgs;
1834
+ result: ImportConversationsResult;
1835
+ };
1836
+ "POST /data/sync": {
1837
+ args: TriggerSyncArgs;
1838
+ result: TriggerSyncResult;
1839
+ };
1840
+ "GET /data/sync/status": {
1841
+ args: GetSyncStatusArgs;
1842
+ result: GetSyncStatusResult;
1843
+ };
1844
+ "GET /data/debug": {
1845
+ args: DebugStateRedirectArgs;
1846
+ result: DebugStateRedirectResult;
1847
+ };
1848
+ "GET /records/mirror/status": {
1849
+ args: RecordsMirrorStatusArgs;
1850
+ result: RecordsMirrorStatusResult;
1851
+ };
1852
+ "POST /records/mirror/sync": {
1853
+ args: TriggerRecordsMirrorSyncArgs;
1854
+ result: TriggerRecordsMirrorSyncResult;
1855
+ };
1856
+ }
1857
+ /** Path-keyed call, scoped to this domain only (never a global path map). */
1858
+ declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
1859
+
1860
+ export { type AddColumnArgs, type AddColumnResult, type AdminReviewDescendArgs, type AdminReviewDescendResult, type AggregateGroup, type AggregateOpArgs, type AggregateOpResult, type AggregateRequest, type AggregateResult, type ArchiveColumnArgs, type ArchiveColumnResult, type ArchiveEndpointArgs, type ArchiveEndpointResult, type ArchiveRequest, type ArchiveResponse, type ArchiveRowArgs, type ArchiveRowResult, type ArchiveTableArgs, type ArchiveTableResult, type ArchiveTermListArgs, type ArchiveTermListResult, type BackLinkItem, type BackLinkRecord, type BackLinks, type BackLinksArgs, type BackLinksResult, type CleanEndpointArgs, type CleanEndpointResult, type CleanRequest, type Column, type ColumnChange, type ColumnRename, type ColumnSpec, type CommentIn, type CommentsAdded, type CommentsImport, type ConfidentialAnswer, type ConfidentialApproval, type ConfidentialReader, type ConfidentialRequest, type ConnectDatabaseTableArgs, type ConnectDatabaseTableResult, type ConnectTableRequest, type CreateConversationArgs, type CreateConversationRequest, type CreateConversationResult, type CreateMessageArgs, type CreateMessageRequest, type CreateMessageResult, type CreateRowArgs, type CreateRowResult, type CreateTableArgs, type CreateTableResult, type CreateTermListArgs, type CreateTermListResult, type CreateViewArgs, type CreateViewResult, type DebugStateRedirectArgs, type DebugStateRedirectResult, type DeclareRowTemplateArgs, type DeclareRowTemplateResult, type DedupResponse, type DeleteConversationArgs, type DeleteConversationResult, type DerivativeEndpointArgs, type DerivativeEndpointResult, type DerivativeRequest, type DescendAnswer, type DescendAnswerPart, type DescendArgs, type DescendInput, type DescendOut, type DescendProducer, type DescendRef, type DescendResult, type DescendUnit, type ExtractEndpointArgs, type ExtractEndpointResult, type FindingFromWalkArgs, type FindingFromWalkOut, type FindingFromWalkRequest, type FindingFromWalkResult, type GetConversationActivityArgs, type GetConversationActivityResult, type GetConversationArgs, type GetConversationResult, type GetRowArgs, type GetRowResult, type GetSyncStatusArgs, type GetSyncStatusResult, type GetTermListArgs, type GetTermListResult, type ImportCommentsArgs, type ImportCommentsResult, type ImportConversationsArgs, type ImportConversationsRequest, type ImportConversationsResult, type InspectDatabaseArgs, type InspectDatabaseResult, type InspectRequest, type InspectResponse, type LinkingTable, type ListConversationsArgs, type ListConversationsResult, type ListModelsArgs, type ListModelsResult, type ListRowTemplatesArgs, type ListRowTemplatesResult, type ListRowsArgs, type ListRowsResult, type ListTablesArgs, type ListTablesResult, type ListTermListsArgs, type ListTermListsResult, type ListToolsArgs, type ListToolsByCategoryArgs, type ListToolsByCategoryResult, type ListToolsResult, type MakeConfidentialArgs, type MakeConfidentialResult, type Operations, type OutsideColumn, type OutsideTableOut, type PreviewRequest, type PreviewTermListsArgs, type PreviewTermListsResult, type ProducerRef, type QueryRowsArgs, type QueryRowsResult, type RecordsMirrorStatusArgs, type RecordsMirrorStatusResult, type RecordsSyncRequest, type RefreshRequest, type RefreshSyncedTableArgs, type RefreshSyncedTableResult, type RenameColumnArgs, type RenameColumnResult, type RestoreRowArgs, type RestoreRowResult, type Row, type RowCreate, type RowFilter, type RowPage, type RowTemplate, type RowTemplateCreate, type RowTemplateList, type RowTemplateMade, type RowUpdate, type RunSqlArgs, type RunSqlResult, type SchemaAllArgs, type SchemaAllResponse, type SchemaAllResult, type SchemaBundleArgs, type SchemaBundleInfo, type SchemaBundleResult, type SchemaManifestArgs, type SchemaManifestResponse, type SchemaManifestResult, type SchemaOpenapiArgs, type SchemaOpenapiResult, type SetCanonicalCleanEndpointArgs, type SetCanonicalCleanEndpointResult, type SetCanonicalCleanRequest, type SetCanonicalExtractEndpointArgs, type SetCanonicalExtractEndpointResult, type SetCanonicalExtractRequest, type SetCanonicalResponse, type SqlRequest, type SqlResult, type SyncResponse, type TableColumns, type TableColumnsArgs, type TableColumnsResult, type TableCreate, type TableList, type TableMade, type TableSummary, type TermEntry, type TermListOut, type TermListPreviewResponse, type TermListUpdate, type TermListWrite, type TriggerRecordsMirrorSyncArgs, type TriggerRecordsMirrorSyncResult, type TriggerSyncArgs, type TriggerSyncResult, type UpdateConversationArgs, type UpdateConversationRequest, type UpdateConversationResult, type UpdateMessageArgs, type UpdateMessageRequest, type UpdateMessageResult, type UpdateRowArgs, type UpdateRowResult, type UpdateTermListArgs, type UpdateTermListResult, type UpsertRequest, type UpsertResult, type UpsertRowsArgs, type UpsertRowsResult, type UpsertedRow, type ViewCreate, type ViewMade, type WalkHop, type WriteResult, addColumn, adminReviewDescend, aggregate, type aidream__api__routers__dedup_strict__ExtractRequest, archiveColumn, archiveEndpoint, archiveRow, archiveTable, archiveTermList, backLinks, call, cleanEndpoint, connectDatabaseTable, createConversation, createMessage, createRow, createTable, createTermList, createView, debugStateRedirect, declareRowTemplate, deleteConversation, derivativeEndpoint, descend, extractEndpoint, findingFromWalk, getConversation, getConversationActivity, getRow, getSyncStatus, getTermList, importComments, importConversations, inspectDatabase, listConversations, listModels, listRowTemplates, listRows, listTables, listTermLists, listTools, listToolsByCategory, makeConfidential, previewTermLists, queryRows, recordsMirrorStatus, refreshSyncedTable, renameColumn, restoreRow, runSql, schemaAll, schemaBundle, schemaManifest, schemaOpenapi, setCanonicalCleanEndpoint, setCanonicalExtractEndpoint, tableColumns, triggerRecordsMirrorSync, triggerSync, updateConversation, updateMessage, updateRow, updateTermList, upsertRows };