@ai-matrx/api 0.1.9 → 0.1.11

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 (135) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/account.d.cts +1 -1
  4. package/dist/account.d.ts +1 -1
  5. package/dist/agents.cjs +12 -12
  6. package/dist/agents.d.cts +1 -1
  7. package/dist/agents.d.ts +1 -1
  8. package/dist/agents.js +2 -2
  9. package/dist/ai.cjs +3 -3
  10. package/dist/ai.d.cts +1 -1
  11. package/dist/ai.d.ts +1 -1
  12. package/dist/ai.js +2 -2
  13. package/dist/apps.cjs +6 -6
  14. package/dist/apps.d.cts +1 -1
  15. package/dist/apps.d.ts +1 -1
  16. package/dist/apps.js +2 -2
  17. package/dist/architecture.cjs +11 -11
  18. package/dist/architecture.d.cts +1 -1
  19. package/dist/architecture.d.ts +1 -1
  20. package/dist/architecture.js +2 -2
  21. package/dist/audio.cjs +5 -5
  22. package/dist/audio.d.cts +1 -1
  23. package/dist/audio.d.ts +1 -1
  24. package/dist/audio.js +2 -2
  25. package/dist/chat.cjs +12 -12
  26. package/dist/chat.d.cts +1 -1
  27. package/dist/chat.d.ts +1 -1
  28. package/dist/chat.js +2 -2
  29. package/dist/{chunk-PMGKZ4FT.cjs → chunk-2ZHIYXHV.cjs} +279 -34
  30. package/dist/{chunk-PIVTHTVR.js → chunk-6KHHHBG5.js} +270 -36
  31. package/dist/{chunk-KIEAFMKB.js → chunk-PIPE5OML.js} +100 -46
  32. package/dist/{chunk-2SXAAKGV.cjs → chunk-PKYPPATQ.cjs} +100 -45
  33. package/dist/code.cjs +7 -7
  34. package/dist/code.d.cts +1 -1
  35. package/dist/code.d.ts +1 -1
  36. package/dist/code.js +2 -2
  37. package/dist/commerce.d.cts +1 -1
  38. package/dist/commerce.d.ts +1 -1
  39. package/dist/communications.cjs +5 -5
  40. package/dist/communications.d.cts +1 -1
  41. package/dist/communications.d.ts +1 -1
  42. package/dist/communications.js +2 -2
  43. package/dist/computer.cjs +4 -4
  44. package/dist/computer.d.cts +1 -1
  45. package/dist/computer.d.ts +1 -1
  46. package/dist/computer.js +2 -2
  47. package/dist/content.cjs +5 -5
  48. package/dist/content.d.cts +1 -1
  49. package/dist/content.d.ts +1 -1
  50. package/dist/content.js +2 -2
  51. package/dist/crm.cjs +3 -3
  52. package/dist/crm.d.cts +1 -1
  53. package/dist/crm.d.ts +1 -1
  54. package/dist/crm.js +2 -2
  55. package/dist/data.d.cts +1 -1
  56. package/dist/data.d.ts +1 -1
  57. package/dist/education.cjs +5 -5
  58. package/dist/education.d.cts +1 -1
  59. package/dist/education.d.ts +1 -1
  60. package/dist/education.js +2 -2
  61. package/dist/files.cjs +21 -21
  62. package/dist/files.d.cts +1 -1
  63. package/dist/files.d.ts +1 -1
  64. package/dist/files.js +2 -2
  65. package/dist/human-resources.d.cts +1 -1
  66. package/dist/human-resources.d.ts +1 -1
  67. package/dist/{index-C3ZlP3BI.d.cts → index-Gj30ybjE.d.cts} +42 -3
  68. package/dist/{index-C3ZlP3BI.d.ts → index-Gj30ybjE.d.ts} +42 -3
  69. package/dist/index.cjs +188 -288
  70. package/dist/index.d.cts +129 -180
  71. package/dist/index.d.ts +129 -180
  72. package/dist/index.js +81 -206
  73. package/dist/integrations.cjs +4 -4
  74. package/dist/integrations.d.cts +1 -1
  75. package/dist/integrations.d.ts +1 -1
  76. package/dist/integrations.js +2 -2
  77. package/dist/intelligence.cjs +10 -8
  78. package/dist/intelligence.d.cts +13 -13
  79. package/dist/intelligence.d.ts +13 -13
  80. package/dist/intelligence.js +5 -3
  81. package/dist/{keys.generated-CK_C5UXG.d.cts → keys.generated-DZUiM-uA.d.cts} +5 -3
  82. package/dist/{keys.generated-CK_C5UXG.d.ts → keys.generated-DZUiM-uA.d.ts} +5 -3
  83. package/dist/knowledge.cjs +43 -43
  84. package/dist/knowledge.d.cts +13 -13
  85. package/dist/knowledge.d.ts +13 -13
  86. package/dist/knowledge.js +2 -2
  87. package/dist/legal.cjs +7 -7
  88. package/dist/legal.d.cts +1 -1
  89. package/dist/legal.d.ts +1 -1
  90. package/dist/legal.js +2 -2
  91. package/dist/marketing.cjs +77 -77
  92. package/dist/marketing.d.cts +27 -27
  93. package/dist/marketing.d.ts +27 -27
  94. package/dist/marketing.js +2 -2
  95. package/dist/masterwork.cjs +33 -33
  96. package/dist/masterwork.d.cts +1 -1
  97. package/dist/masterwork.d.ts +1 -1
  98. package/dist/masterwork.js +2 -2
  99. package/dist/media.cjs +12 -12
  100. package/dist/media.d.cts +1 -1
  101. package/dist/media.d.ts +1 -1
  102. package/dist/media.js +2 -2
  103. package/dist/net.cjs +19 -20
  104. package/dist/net.d.cts +41 -41
  105. package/dist/net.d.ts +41 -41
  106. package/dist/net.js +1 -2
  107. package/dist/platform.cjs +4 -4
  108. package/dist/platform.d.cts +1 -1
  109. package/dist/platform.d.ts +1 -1
  110. package/dist/platform.js +2 -2
  111. package/dist/publish.cjs +8 -8
  112. package/dist/publish.d.cts +1 -1
  113. package/dist/publish.d.ts +1 -1
  114. package/dist/publish.js +2 -2
  115. package/dist/schemas.d.cts +78 -15
  116. package/dist/schemas.d.ts +78 -15
  117. package/dist/stream.cjs +11 -11
  118. package/dist/stream.d.cts +1 -1
  119. package/dist/stream.d.ts +1 -1
  120. package/dist/stream.js +2 -2
  121. package/dist/types.cjs +2 -0
  122. package/dist/types.d.cts +72245 -0
  123. package/dist/types.d.ts +72245 -0
  124. package/dist/types.js +1 -0
  125. package/dist/web.cjs +27 -27
  126. package/dist/web.d.cts +17 -17
  127. package/dist/web.d.ts +17 -17
  128. package/dist/web.js +2 -2
  129. package/dist/workflows.cjs +14 -14
  130. package/dist/workflows.d.cts +23 -26
  131. package/dist/workflows.d.ts +23 -26
  132. package/dist/workflows.js +2 -2
  133. package/package.json +14 -4
  134. package/dist/chunk-FNIYADWI.cjs +0 -59
  135. package/dist/chunk-YTEOFGFC.js +0 -57
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-Gj30ybjE.cjs';
2
2
  import { JsonValue, ResourcePromotion } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -262,12 +262,12 @@ type ApplyTagsResponse = {
262
262
  };
263
263
  /** AskAnswerDelta */
264
264
  type AskAnswerDelta = {
265
- type?: "answer_delta";
265
+ type: "answer_delta";
266
266
  text: string;
267
267
  };
268
268
  /** The model run restarted after a partial answer: discard what was shown. */
269
269
  type AskAnswerReset = {
270
- type?: "answer_reset";
270
+ type: "answer_reset";
271
271
  };
272
272
  /** AskCitation */
273
273
  type AskCitation = {
@@ -283,14 +283,14 @@ type AskCitation = {
283
283
  };
284
284
  /** AskCitations */
285
285
  type AskCitations = {
286
- type?: "citations";
286
+ type: "citations";
287
287
  citations?: AskCitation[];
288
288
  /** Sentences of the answer that carry no citation. */
289
289
  uncited_sentences?: string[];
290
290
  };
291
291
  /** AskDone */
292
292
  type AskDone = {
293
- type?: "ask_done";
293
+ type: "ask_done";
294
294
  answer: string;
295
295
  found: boolean;
296
296
  model?: string | null;
@@ -301,7 +301,7 @@ type AskDone = {
301
301
  };
302
302
  /** AskRefused */
303
303
  type AskRefused = {
304
- type?: "ask_refused";
304
+ type: "ask_refused";
305
305
  reason: "cap_reached" | "no_organization";
306
306
  message: string;
307
307
  };
@@ -317,13 +317,13 @@ type AskSourceUsed = {
317
317
  };
318
318
  /** AskSourcesUsed */
319
319
  type AskSourcesUsed = {
320
- type?: "sources_used";
320
+ type: "sources_used";
321
321
  items?: AskSourceUsed[];
322
322
  note?: string | null;
323
323
  };
324
324
  /** AskStarted */
325
325
  type AskStarted = {
326
- type?: "ask_started";
326
+ type: "ask_started";
327
327
  query: KnowledgeQuery;
328
328
  chips?: QueryChip[];
329
329
  notes?: string[];
@@ -1312,14 +1312,14 @@ type KnowledgeQuery = {
1312
1312
  };
1313
1313
  /** KnowledgeSearchDone */
1314
1314
  type KnowledgeSearchDone = {
1315
- type?: "done";
1315
+ type: "done";
1316
1316
  took_ms: number;
1317
1317
  sections_ok: ("top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records")[];
1318
1318
  sections_failed: ("top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records")[];
1319
1319
  };
1320
1320
  /** KnowledgeSearchStarted */
1321
1321
  type KnowledgeSearchStarted = {
1322
- type?: "search_started";
1322
+ type: "search_started";
1323
1323
  query: KnowledgeQuery;
1324
1324
  chips?: QueryChip[];
1325
1325
  sections: ("top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records")[];
@@ -1329,7 +1329,7 @@ type KnowledgeSearchStarted = {
1329
1329
  type KnowledgeSearchStreamEvent = KnowledgeSearchStarted | KnowledgeSection | KnowledgeSectionUpdate | KnowledgeSectionError | KnowledgeSearchDone;
1330
1330
  /** One typed section — the unit the stream emits and the agent receives. */
1331
1331
  type KnowledgeSection = {
1332
- type?: "section";
1332
+ type: "section";
1333
1333
  section: "top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records";
1334
1334
  count?: number;
1335
1335
  items?: KnowledgeHit[];
@@ -1348,14 +1348,14 @@ type KnowledgeSection = {
1348
1348
  };
1349
1349
  /** KnowledgeSectionError */
1350
1350
  type KnowledgeSectionError = {
1351
- type?: "section_error";
1351
+ type: "section_error";
1352
1352
  section: "top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records";
1353
1353
  message: string;
1354
1354
  retryable?: boolean;
1355
1355
  };
1356
1356
  /** A section that was already sent, replaced whole — today the Segments section, whose */
1357
1357
  type KnowledgeSectionUpdate = {
1358
- type?: "section_update";
1358
+ type: "section_update";
1359
1359
  section: "top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records";
1360
1360
  count?: number;
1361
1361
  items?: KnowledgeHit[];
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-Gj30ybjE.js';
2
2
  import { JsonValue, ResourcePromotion } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -262,12 +262,12 @@ type ApplyTagsResponse = {
262
262
  };
263
263
  /** AskAnswerDelta */
264
264
  type AskAnswerDelta = {
265
- type?: "answer_delta";
265
+ type: "answer_delta";
266
266
  text: string;
267
267
  };
268
268
  /** The model run restarted after a partial answer: discard what was shown. */
269
269
  type AskAnswerReset = {
270
- type?: "answer_reset";
270
+ type: "answer_reset";
271
271
  };
272
272
  /** AskCitation */
273
273
  type AskCitation = {
@@ -283,14 +283,14 @@ type AskCitation = {
283
283
  };
284
284
  /** AskCitations */
285
285
  type AskCitations = {
286
- type?: "citations";
286
+ type: "citations";
287
287
  citations?: AskCitation[];
288
288
  /** Sentences of the answer that carry no citation. */
289
289
  uncited_sentences?: string[];
290
290
  };
291
291
  /** AskDone */
292
292
  type AskDone = {
293
- type?: "ask_done";
293
+ type: "ask_done";
294
294
  answer: string;
295
295
  found: boolean;
296
296
  model?: string | null;
@@ -301,7 +301,7 @@ type AskDone = {
301
301
  };
302
302
  /** AskRefused */
303
303
  type AskRefused = {
304
- type?: "ask_refused";
304
+ type: "ask_refused";
305
305
  reason: "cap_reached" | "no_organization";
306
306
  message: string;
307
307
  };
@@ -317,13 +317,13 @@ type AskSourceUsed = {
317
317
  };
318
318
  /** AskSourcesUsed */
319
319
  type AskSourcesUsed = {
320
- type?: "sources_used";
320
+ type: "sources_used";
321
321
  items?: AskSourceUsed[];
322
322
  note?: string | null;
323
323
  };
324
324
  /** AskStarted */
325
325
  type AskStarted = {
326
- type?: "ask_started";
326
+ type: "ask_started";
327
327
  query: KnowledgeQuery;
328
328
  chips?: QueryChip[];
329
329
  notes?: string[];
@@ -1312,14 +1312,14 @@ type KnowledgeQuery = {
1312
1312
  };
1313
1313
  /** KnowledgeSearchDone */
1314
1314
  type KnowledgeSearchDone = {
1315
- type?: "done";
1315
+ type: "done";
1316
1316
  took_ms: number;
1317
1317
  sections_ok: ("top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records")[];
1318
1318
  sections_failed: ("top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records")[];
1319
1319
  };
1320
1320
  /** KnowledgeSearchStarted */
1321
1321
  type KnowledgeSearchStarted = {
1322
- type?: "search_started";
1322
+ type: "search_started";
1323
1323
  query: KnowledgeQuery;
1324
1324
  chips?: QueryChip[];
1325
1325
  sections: ("top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records")[];
@@ -1329,7 +1329,7 @@ type KnowledgeSearchStarted = {
1329
1329
  type KnowledgeSearchStreamEvent = KnowledgeSearchStarted | KnowledgeSection | KnowledgeSectionUpdate | KnowledgeSectionError | KnowledgeSearchDone;
1330
1330
  /** One typed section — the unit the stream emits and the agent receives. */
1331
1331
  type KnowledgeSection = {
1332
- type?: "section";
1332
+ type: "section";
1333
1333
  section: "top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records";
1334
1334
  count?: number;
1335
1335
  items?: KnowledgeHit[];
@@ -1348,14 +1348,14 @@ type KnowledgeSection = {
1348
1348
  };
1349
1349
  /** KnowledgeSectionError */
1350
1350
  type KnowledgeSectionError = {
1351
- type?: "section_error";
1351
+ type: "section_error";
1352
1352
  section: "top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records";
1353
1353
  message: string;
1354
1354
  retryable?: boolean;
1355
1355
  };
1356
1356
  /** A section that was already sent, replaced whole — today the Segments section, whose */
1357
1357
  type KnowledgeSectionUpdate = {
1358
- type?: "section_update";
1358
+ type: "section_update";
1359
1359
  section: "top_hit" | "sources" | "segments" | "chats" | "messages" | "projects_tasks" | "notes" | "files" | "agents_workflows" | "records";
1360
1360
  count?: number;
1361
1361
  items?: KnowledgeHit[];
package/dist/knowledge.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-PIVTHTVR.js';
2
- import './chunk-KIEAFMKB.js';
1
+ import { openStream } from './chunk-6KHHHBG5.js';
2
+ import './chunk-PIPE5OML.js';
3
3
 
4
4
  // src/generated/knowledge.ts
5
5
  var $getSetupFacts = { m: "GET", p: "/news/setup/facts", d: "aidream", a: "guest", o: "optional", n: "knowledge.get_setup_facts" };
package/dist/legal.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
- require('./chunk-2SXAAKGV.cjs');
3
+ var chunk2ZHIYXHV_cjs = require('./chunk-2ZHIYXHV.cjs');
4
+ require('./chunk-PKYPPATQ.cjs');
5
5
 
6
6
  // src/generated/legal.ts
7
7
  var $courtlistenerWebhook = { m: "POST", p: "/legal/webhooks/courtlistener", d: "aidream", a: "guest", o: "required", n: "legal.courtlistener_webhook" };
@@ -10,7 +10,7 @@ function courtlistenerWebhook(api, args, options) {
10
10
  }
11
11
  var $legalSearch = { m: "POST", p: "/legal/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "legal.legal_search" };
12
12
  function legalSearch(api, args, options) {
13
- return chunkPMGKZ4FT_cjs.openStream(api, $legalSearch, args, options);
13
+ return chunk2ZHIYXHV_cjs.openStream(api, $legalSearch, args, options);
14
14
  }
15
15
  var $getOpinionEndpoint = { m: "GET", p: "/legal/opinions/{opinion_id}", d: "aidream", a: "user", o: "required", n: "legal.get_opinion_endpoint" };
16
16
  function getOpinionEndpoint(api, args, options) {
@@ -54,15 +54,15 @@ function ingestRuns(api, args, options) {
54
54
  }
55
55
  var $syncCourts = { m: "POST", p: "/legal/admin/sync/courts", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "legal.sync_courts" };
56
56
  function syncCourts(api, args, options) {
57
- return chunkPMGKZ4FT_cjs.openStream(api, $syncCourts, args, options);
57
+ return chunk2ZHIYXHV_cjs.openStream(api, $syncCourts, args, options);
58
58
  }
59
59
  var $syncClusters = { m: "POST", p: "/legal/admin/sync/clusters", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "legal.sync_clusters" };
60
60
  function syncClusters(api, args, options) {
61
- return chunkPMGKZ4FT_cjs.openStream(api, $syncClusters, args, options);
61
+ return chunk2ZHIYXHV_cjs.openStream(api, $syncClusters, args, options);
62
62
  }
63
63
  var $syncOpinions = { m: "POST", p: "/legal/admin/sync/opinions", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "legal.sync_opinions" };
64
64
  function syncOpinions(api, args, options) {
65
- return chunkPMGKZ4FT_cjs.openStream(api, $syncOpinions, args, options);
65
+ return chunk2ZHIYXHV_cjs.openStream(api, $syncOpinions, args, options);
66
66
  }
67
67
  var $bulkManifest = { m: "GET", p: "/legal/admin/bulk/manifest", d: "aidream", a: "admin", o: "exempt", n: "legal.bulk_manifest" };
68
68
  function bulkManifest(api, args, options) {
@@ -70,7 +70,7 @@ function bulkManifest(api, args, options) {
70
70
  }
71
71
  var $bulkLoad = { m: "POST", p: "/legal/admin/bulk/load", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "legal.bulk_load" };
72
72
  function bulkLoad(api, args, options) {
73
- return chunkPMGKZ4FT_cjs.openStream(api, $bulkLoad, args, options);
73
+ return chunk2ZHIYXHV_cjs.openStream(api, $bulkLoad, args, options);
74
74
  }
75
75
  var $searchLocal = { m: "GET", p: "/legal/admin/clusters/local", d: "aidream", a: "admin", o: "exempt", n: "legal.search_local" };
76
76
  function searchLocal(api, args, options) {
package/dist/legal.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-Gj30ybjE.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/legal.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-Gj30ybjE.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/legal.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-PIVTHTVR.js';
2
- import './chunk-KIEAFMKB.js';
1
+ import { openStream } from './chunk-6KHHHBG5.js';
2
+ import './chunk-PIPE5OML.js';
3
3
 
4
4
  // src/generated/legal.ts
5
5
  var $courtlistenerWebhook = { m: "POST", p: "/legal/webhooks/courtlistener", d: "aidream", a: "guest", o: "required", n: "legal.courtlistener_webhook" };