@ai-matrx/api 0.1.8 → 0.1.9

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 (120) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/account.d.cts +1 -1
  3. package/dist/account.d.ts +1 -1
  4. package/dist/agents.cjs +11 -11
  5. package/dist/agents.d.cts +1 -1
  6. package/dist/agents.d.ts +1 -1
  7. package/dist/agents.js +1 -1
  8. package/dist/ai.cjs +2 -2
  9. package/dist/ai.d.cts +1 -1
  10. package/dist/ai.d.ts +1 -1
  11. package/dist/ai.js +1 -1
  12. package/dist/apps.cjs +5 -5
  13. package/dist/apps.d.cts +1 -1
  14. package/dist/apps.d.ts +1 -1
  15. package/dist/apps.js +1 -1
  16. package/dist/architecture.cjs +10 -10
  17. package/dist/architecture.d.cts +1 -1
  18. package/dist/architecture.d.ts +1 -1
  19. package/dist/architecture.js +1 -1
  20. package/dist/audio.cjs +4 -4
  21. package/dist/audio.d.cts +1 -1
  22. package/dist/audio.d.ts +1 -1
  23. package/dist/audio.js +1 -1
  24. package/dist/chat.cjs +11 -11
  25. package/dist/chat.d.cts +1 -1
  26. package/dist/chat.d.ts +1 -1
  27. package/dist/chat.js +1 -1
  28. package/dist/{chunk-5BBHAAIG.js → chunk-PIVTHTVR.js} +13 -4
  29. package/dist/{chunk-NMBDYPFZ.cjs → chunk-PMGKZ4FT.cjs} +13 -4
  30. package/dist/code.cjs +6 -6
  31. package/dist/code.d.cts +1 -1
  32. package/dist/code.d.ts +1 -1
  33. package/dist/code.js +1 -1
  34. package/dist/commerce.d.cts +1 -1
  35. package/dist/commerce.d.ts +1 -1
  36. package/dist/communications.cjs +4 -4
  37. package/dist/communications.d.cts +1 -1
  38. package/dist/communications.d.ts +1 -1
  39. package/dist/communications.js +1 -1
  40. package/dist/computer.cjs +3 -3
  41. package/dist/computer.d.cts +1 -1
  42. package/dist/computer.d.ts +1 -1
  43. package/dist/computer.js +1 -1
  44. package/dist/content.cjs +4 -4
  45. package/dist/content.d.cts +1 -1
  46. package/dist/content.d.ts +1 -1
  47. package/dist/content.js +1 -1
  48. package/dist/crm.cjs +2 -2
  49. package/dist/crm.d.cts +1 -1
  50. package/dist/crm.d.ts +1 -1
  51. package/dist/crm.js +1 -1
  52. package/dist/data.d.cts +1 -1
  53. package/dist/data.d.ts +1 -1
  54. package/dist/education.cjs +4 -4
  55. package/dist/education.d.cts +1 -1
  56. package/dist/education.d.ts +1 -1
  57. package/dist/education.js +1 -1
  58. package/dist/files.cjs +20 -20
  59. package/dist/files.d.cts +1 -1
  60. package/dist/files.d.ts +1 -1
  61. package/dist/files.js +1 -1
  62. package/dist/human-resources.d.cts +1 -1
  63. package/dist/human-resources.d.ts +1 -1
  64. package/dist/{index-D_ZjxGwP.d.cts → index-C3ZlP3BI.d.cts} +8 -1
  65. package/dist/{index-D_ZjxGwP.d.ts → index-C3ZlP3BI.d.ts} +8 -1
  66. package/dist/index.cjs +53 -53
  67. package/dist/index.d.cts +12 -12
  68. package/dist/index.d.ts +12 -12
  69. package/dist/index.js +2 -2
  70. package/dist/integrations.cjs +3 -3
  71. package/dist/integrations.d.cts +1 -1
  72. package/dist/integrations.d.ts +1 -1
  73. package/dist/integrations.js +1 -1
  74. package/dist/intelligence.cjs +6 -6
  75. package/dist/intelligence.d.cts +1 -1
  76. package/dist/intelligence.d.ts +1 -1
  77. package/dist/intelligence.js +1 -1
  78. package/dist/knowledge.cjs +42 -42
  79. package/dist/knowledge.d.cts +1 -1
  80. package/dist/knowledge.d.ts +1 -1
  81. package/dist/knowledge.js +1 -1
  82. package/dist/legal.cjs +6 -6
  83. package/dist/legal.d.cts +1 -1
  84. package/dist/legal.d.ts +1 -1
  85. package/dist/legal.js +1 -1
  86. package/dist/marketing.cjs +76 -76
  87. package/dist/marketing.d.cts +1 -1
  88. package/dist/marketing.d.ts +1 -1
  89. package/dist/marketing.js +1 -1
  90. package/dist/masterwork.cjs +32 -32
  91. package/dist/masterwork.d.cts +1 -1
  92. package/dist/masterwork.d.ts +1 -1
  93. package/dist/masterwork.js +1 -1
  94. package/dist/media.cjs +11 -11
  95. package/dist/media.d.cts +1 -1
  96. package/dist/media.d.ts +1 -1
  97. package/dist/media.js +1 -1
  98. package/dist/net.d.cts +1 -1
  99. package/dist/net.d.ts +1 -1
  100. package/dist/platform.cjs +3 -3
  101. package/dist/platform.d.cts +1 -1
  102. package/dist/platform.d.ts +1 -1
  103. package/dist/platform.js +1 -1
  104. package/dist/publish.cjs +7 -7
  105. package/dist/publish.d.cts +1 -1
  106. package/dist/publish.d.ts +1 -1
  107. package/dist/publish.js +1 -1
  108. package/dist/stream.cjs +10 -10
  109. package/dist/stream.d.cts +1 -1
  110. package/dist/stream.d.ts +1 -1
  111. package/dist/stream.js +1 -1
  112. package/dist/web.cjs +26 -26
  113. package/dist/web.d.cts +1 -1
  114. package/dist/web.d.ts +1 -1
  115. package/dist/web.js +1 -1
  116. package/dist/workflows.cjs +13 -13
  117. package/dist/workflows.d.cts +1 -1
  118. package/dist/workflows.d.ts +1 -1
  119. package/dist/workflows.js +1 -1
  120. package/package.json +4 -4
package/dist/code.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-C3ZlP3BI.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/code.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-C3ZlP3BI.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/code.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
1
+ import { openStream } from './chunk-PIVTHTVR.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/code.ts
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions } from './index-C3ZlP3BI.cjs';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions } from './index-C3ZlP3BI.js';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
3
+ var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/communications.ts
@@ -102,7 +102,7 @@ function agentStop(api, args, options) {
102
102
  }
103
103
  var $intelligenceAsk = { m: "POST", p: "/v1/meet/intelligence/ask", d: "aidream", a: "scoped", o: "required", s: "ndjson", n: "communications.intelligence_ask" };
104
104
  function intelligenceAsk(api, args, options) {
105
- return chunkNMBDYPFZ_cjs.openStream(api, $intelligenceAsk, args, options);
105
+ return chunkPMGKZ4FT_cjs.openStream(api, $intelligenceAsk, args, options);
106
106
  }
107
107
  var $meetingRecord = { m: "GET", p: "/v1/meet/record", d: "aidream", a: "scoped", o: "required", n: "communications.meeting_record" };
108
108
  function meetingRecord(api, args, options) {
@@ -142,11 +142,11 @@ function meetingGoogleCalendar(api, args, options) {
142
142
  }
143
143
  var $meetingBrief = { m: "POST", p: "/v1/meet/meetings/{meeting_id}/brief", d: "aidream", a: "user", o: "required", s: "ndjson", n: "communications.meeting_brief" };
144
144
  function meetingBrief(api, args, options) {
145
- return chunkNMBDYPFZ_cjs.openStream(api, $meetingBrief, args, options);
145
+ return chunkPMGKZ4FT_cjs.openStream(api, $meetingBrief, args, options);
146
146
  }
147
147
  var $agendaDraft = { m: "POST", p: "/v1/meet/agenda-draft", d: "aidream", a: "user", o: "required", s: "ndjson", n: "communications.agenda_draft" };
148
148
  function agendaDraft(api, args, options) {
149
- return chunkNMBDYPFZ_cjs.openStream(api, $agendaDraft, args, options);
149
+ return chunkPMGKZ4FT_cjs.openStream(api, $agendaDraft, args, options);
150
150
  }
151
151
  var $meetingModerate = { m: "POST", p: "/v1/meet/moderate", d: "aidream", a: "scoped", o: "required", n: "communications.meeting_moderate" };
152
152
  function meetingModerate(api, args, options) {
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.cjs';
2
2
  import { JsonValue, CalendarCreateResult } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.js';
2
2
  import { JsonValue, CalendarCreateResult } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
1
+ import { openStream } from './chunk-PIVTHTVR.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/communications.ts
package/dist/computer.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
3
+ var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/computer.ts
@@ -50,11 +50,11 @@ function getAccessLogs(api, args, options) {
50
50
  }
51
51
  var $streamSystemLog = { m: "GET", p: "/logs/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "computer.stream_system_log" };
52
52
  function streamSystemLog(api, args, options) {
53
- return chunkNMBDYPFZ_cjs.openStream(api, $streamSystemLog, args, options);
53
+ return chunkPMGKZ4FT_cjs.openStream(api, $streamSystemLog, args, options);
54
54
  }
55
55
  var $streamAccessLog = { m: "GET", p: "/logs/access/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "computer.stream_access_log" };
56
56
  function streamAccessLog(api, args, options) {
57
- return chunkNMBDYPFZ_cjs.openStream(api, $streamAccessLog, args, options);
57
+ return chunkPMGKZ4FT_cjs.openStream(api, $streamAccessLog, args, options);
58
58
  }
59
59
  var $pushNotification = { m: "POST", p: "/notify", d: "matrx-local", a: "loopback_token", o: "exempt", n: "computer.push_notification" };
60
60
  function pushNotification(api, args, options) {
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-C3ZlP3BI.cjs';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-C3ZlP3BI.js';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**
package/dist/computer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
1
+ import { openStream } from './chunk-PIVTHTVR.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/computer.ts
package/dist/content.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
3
+ var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/content.ts
@@ -122,15 +122,15 @@ function processBlocks(api, args, options) {
122
122
  }
123
123
  var $processBlocksStream = { m: "POST", p: "/utilities/block-processing/process/stream", d: "aidream", a: "guest", o: "exempt", s: "ndjson", n: "content.process_blocks_stream" };
124
124
  function processBlocksStream(api, args, options) {
125
- return chunkNMBDYPFZ_cjs.openStream(api, $processBlocksStream, args, options);
125
+ return chunkPMGKZ4FT_cjs.openStream(api, $processBlocksStream, args, options);
126
126
  }
127
127
  var $simulateProviderRetryStream = { m: "POST", p: "/utilities/block-processing/simulate/provider-retry", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "content.simulate_provider_retry_stream" };
128
128
  function simulateProviderRetryStream(api, args, options) {
129
- return chunkNMBDYPFZ_cjs.openStream(api, $simulateProviderRetryStream, args, options);
129
+ return chunkPMGKZ4FT_cjs.openStream(api, $simulateProviderRetryStream, args, options);
130
130
  }
131
131
  var $processFile = { m: "POST", p: "/content-processing/{cld_file_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "content.process_file" };
132
132
  function processFile(api, args, options) {
133
- return chunkNMBDYPFZ_cjs.openStream(api, $processFile, args, options);
133
+ return chunkPMGKZ4FT_cjs.openStream(api, $processFile, args, options);
134
134
  }
135
135
  var $generateOffice = { m: "POST", p: "/office/generate", d: "aidream", a: "guest", o: "required", n: "content.generate_office" };
136
136
  function generateOffice(api, args, options) {
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/content.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/content.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
1
+ import { openStream } from './chunk-PIVTHTVR.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/content.ts
package/dist/crm.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
3
+ var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/crm.ts
@@ -130,7 +130,7 @@ function mediaResearchPreviewDoor(api, args, options) {
130
130
  }
131
131
  var $mediaResearchRunDoor = { m: "POST", p: "/crm/outreach-lists/{list_id}/media-research/run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "crm.media_research_run_door" };
132
132
  function mediaResearchRunDoor(api, args, options) {
133
- return chunkNMBDYPFZ_cjs.openStream(api, $mediaResearchRunDoor, args, options);
133
+ return chunkPMGKZ4FT_cjs.openStream(api, $mediaResearchRunDoor, args, options);
134
134
  }
135
135
  var $previewBulkEnrichment = { m: "POST", p: "/crm/enrichment/bulk/preview", d: "aidream", a: "guest", o: "required", n: "crm.preview_bulk_enrichment" };
136
136
  function previewBulkEnrichment(api, args, options) {
package/dist/crm.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/crm.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/crm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
1
+ import { openStream } from './chunk-PIVTHTVR.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/crm.ts
package/dist/data.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions } from './index-C3ZlP3BI.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/data.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions } from './index-C3ZlP3BI.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
3
+ var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/education.ts
7
7
  var $sourceCard = { m: "POST", p: "/education/images/source-card", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "education.source_card" };
8
8
  function sourceCard(api, args, options) {
9
- return chunkNMBDYPFZ_cjs.openStream(api, $sourceCard, args, options);
9
+ return chunkPMGKZ4FT_cjs.openStream(api, $sourceCard, args, options);
10
10
  }
11
11
  var $generateCard = { m: "POST", p: "/education/images/generate-card", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "education.generate_card" };
12
12
  function generateCard(api, args, options) {
13
- return chunkNMBDYPFZ_cjs.openStream(api, $generateCard, args, options);
13
+ return chunkPMGKZ4FT_cjs.openStream(api, $generateCard, args, options);
14
14
  }
15
15
  var $sourceSet = { m: "POST", p: "/education/images/source-set", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "education.source_set" };
16
16
  function sourceSet(api, args, options) {
17
- return chunkNMBDYPFZ_cjs.openStream(api, $sourceSet, args, options);
17
+ return chunkPMGKZ4FT_cjs.openStream(api, $sourceSet, args, options);
18
18
  }
19
19
  var TABLE = {};
20
20
  function call(api, key, args, options) {
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.cjs';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-C3ZlP3BI.js';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**
package/dist/education.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
1
+ import { openStream } from './chunk-PIVTHTVR.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/education.ts
package/dist/files.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
3
+ var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/files.ts
@@ -10,7 +10,7 @@ function compressPdf(api, args, options) {
10
10
  }
11
11
  var $extractTextFromPdf = { m: "POST", p: "/utilities/pdf/extract-text", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.extract_text_from_pdf" };
12
12
  function extractTextFromPdf(api, args, options) {
13
- return chunkNMBDYPFZ_cjs.openStream(api, $extractTextFromPdf, args, options);
13
+ return chunkPMGKZ4FT_cjs.openStream(api, $extractTextFromPdf, args, options);
14
14
  }
15
15
  var $extractPages = { m: "POST", p: "/utilities/pdf/extract-pages", d: "aidream", a: "guest", o: "required", n: "files.extract_pages" };
16
16
  function extractPages(api, args, options) {
@@ -34,7 +34,7 @@ function mergePdfs(api, args, options) {
34
34
  }
35
35
  var $splitPdf = { m: "POST", p: "/utilities/pdf/split", d: "aidream", a: "guest", o: "required", s: "bytes_or_json", n: "files.split_pdf" };
36
36
  function splitPdf(api, args, options) {
37
- return chunkNMBDYPFZ_cjs.openJsonOrStream(api, $splitPdf, args, options);
37
+ return chunkPMGKZ4FT_cjs.openJsonOrStream(api, $splitPdf, args, options);
38
38
  }
39
39
  var $reorderPages = { m: "POST", p: "/utilities/pdf/reorder-pages", d: "aidream", a: "guest", o: "required", n: "files.reorder_pages" };
40
40
  function reorderPages(api, args, options) {
@@ -70,19 +70,19 @@ function studioRender(api, args, options) {
70
70
  }
71
71
  var $detectRepeatedRegionsEndpoint = { m: "POST", p: "/utilities/pdf/detect-repeated-regions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.detect_repeated_regions_endpoint" };
72
72
  function detectRepeatedRegionsEndpoint(api, args, options) {
73
- return chunkNMBDYPFZ_cjs.openStream(api, $detectRepeatedRegionsEndpoint, args, options);
73
+ return chunkPMGKZ4FT_cjs.openStream(api, $detectRepeatedRegionsEndpoint, args, options);
74
74
  }
75
75
  var $stripRepeatedRegionsEndpoint = { m: "POST", p: "/utilities/pdf/strip-repeated-regions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.strip_repeated_regions_endpoint" };
76
76
  function stripRepeatedRegionsEndpoint(api, args, options) {
77
- return chunkNMBDYPFZ_cjs.openStream(api, $stripRepeatedRegionsEndpoint, args, options);
77
+ return chunkPMGKZ4FT_cjs.openStream(api, $stripRepeatedRegionsEndpoint, args, options);
78
78
  }
79
79
  var $classifyPagesEndpoint = { m: "POST", p: "/utilities/pdf/classify-pages", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.classify_pages_endpoint" };
80
80
  function classifyPagesEndpoint(api, args, options) {
81
- return chunkNMBDYPFZ_cjs.openStream(api, $classifyPagesEndpoint, args, options);
81
+ return chunkPMGKZ4FT_cjs.openStream(api, $classifyPagesEndpoint, args, options);
82
82
  }
83
83
  var $extractReadingOrderEndpoint = { m: "POST", p: "/utilities/pdf/extract-reading-order", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.extract_reading_order_endpoint" };
84
84
  function extractReadingOrderEndpoint(api, args, options) {
85
- return chunkNMBDYPFZ_cjs.openStream(api, $extractReadingOrderEndpoint, args, options);
85
+ return chunkPMGKZ4FT_cjs.openStream(api, $extractReadingOrderEndpoint, args, options);
86
86
  }
87
87
  var $redactPatternsCatalog = { m: "GET", p: "/utilities/pdf/redact/patterns", d: "aidream", a: "guest", o: "optional", n: "files.redact_patterns_catalog" };
88
88
  function redactPatternsCatalog(api, args, options) {
@@ -114,31 +114,31 @@ function flattenAnnotationsEndpoint(api, args, options) {
114
114
  }
115
115
  var $extractTextRemote = { m: "POST", p: "/utilities/pdf/extract-text-remote", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.extract_text_remote" };
116
116
  function extractTextRemote(api, args, options) {
117
- return chunkNMBDYPFZ_cjs.openStream(api, $extractTextRemote, args, options);
117
+ return chunkPMGKZ4FT_cjs.openStream(api, $extractTextRemote, args, options);
118
118
  }
119
119
  var $extractTables = { m: "POST", p: "/utilities/pdf/extract-tables", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.extract_tables" };
120
120
  function extractTables(api, args, options) {
121
- return chunkNMBDYPFZ_cjs.openStream(api, $extractTables, args, options);
121
+ return chunkPMGKZ4FT_cjs.openStream(api, $extractTables, args, options);
122
122
  }
123
123
  var $processWithAi = { m: "POST", p: "/utilities/pdf/process-with-ai", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.process_with_ai" };
124
124
  function processWithAi(api, args, options) {
125
- return chunkNMBDYPFZ_cjs.openStream(api, $processWithAi, args, options);
125
+ return chunkPMGKZ4FT_cjs.openStream(api, $processWithAi, args, options);
126
126
  }
127
127
  var $fullPipeline = { m: "POST", p: "/utilities/pdf/full-pipeline", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.full_pipeline" };
128
128
  function fullPipeline(api, args, options) {
129
- return chunkNMBDYPFZ_cjs.openStream(api, $fullPipeline, args, options);
129
+ return chunkPMGKZ4FT_cjs.openStream(api, $fullPipeline, args, options);
130
130
  }
131
131
  var $batchExtract = { m: "POST", p: "/utilities/pdf/batch-extract", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.batch_extract" };
132
132
  function batchExtract(api, args, options) {
133
- return chunkNMBDYPFZ_cjs.openStream(api, $batchExtract, args, options);
133
+ return chunkPMGKZ4FT_cjs.openStream(api, $batchExtract, args, options);
134
134
  }
135
135
  var $pdfFromImages = { m: "POST", p: "/utilities/pdf/from-images", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.pdf_from_images" };
136
136
  function pdfFromImages(api, args, options) {
137
- return chunkNMBDYPFZ_cjs.openStream(api, $pdfFromImages, args, options);
137
+ return chunkPMGKZ4FT_cjs.openStream(api, $pdfFromImages, args, options);
138
138
  }
139
139
  var $cleanDocumentContent = { m: "POST", p: "/utilities/pdf/clean-content/{doc_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.clean_document_content" };
140
140
  function cleanDocumentContent(api, args, options) {
141
- return chunkNMBDYPFZ_cjs.openStream(api, $cleanDocumentContent, args, options);
141
+ return chunkPMGKZ4FT_cjs.openStream(api, $cleanDocumentContent, args, options);
142
142
  }
143
143
  var $listDocuments = { m: "GET", p: "/utilities/pdf/documents", d: "aidream", a: "guest", o: "optional", n: "files.list_documents" };
144
144
  function listDocuments(api, args, options) {
@@ -406,15 +406,15 @@ function getFileLineageSummary(api, args, options) {
406
406
  }
407
407
  var $ingestFileForRag = { m: "POST", p: "/files/{file_id}/ingest", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.ingest_file_for_rag" };
408
408
  function ingestFileForRag(api, args, options) {
409
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestFileForRag, args, options);
409
+ return chunkPMGKZ4FT_cjs.openStream(api, $ingestFileForRag, args, options);
410
410
  }
411
411
  var $ingestFileForRagStream = { m: "POST", p: "/files/{file_id}/ingest/stream", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.ingest_file_for_rag_stream" };
412
412
  function ingestFileForRagStream(api, args, options) {
413
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestFileForRagStream, args, options);
413
+ return chunkPMGKZ4FT_cjs.openStream(api, $ingestFileForRagStream, args, options);
414
414
  }
415
415
  var $refreshFileRag = { m: "POST", p: "/files/{file_id}/refresh", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.refresh_file_rag" };
416
416
  function refreshFileRag(api, args, options) {
417
- return chunkNMBDYPFZ_cjs.openStream(api, $refreshFileRag, args, options);
417
+ return chunkPMGKZ4FT_cjs.openStream(api, $refreshFileRag, args, options);
418
418
  }
419
419
  var $versionsListVersions = { m: "GET", p: "/files/{file_id}/versions", d: "aidream", a: "guest", o: "required", n: "files.versions_list_versions" };
420
420
  function versionsListVersions(api, args, options) {
@@ -546,7 +546,7 @@ function fetchAnalysis(api, args, options) {
546
546
  }
547
547
  var $refreshAnalysis = { m: "POST", p: "/files/{file_id}/analysis/refresh", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.refresh_analysis" };
548
548
  function refreshAnalysis(api, args, options) {
549
- return chunkNMBDYPFZ_cjs.openStream(api, $refreshAnalysis, args, options);
549
+ return chunkPMGKZ4FT_cjs.openStream(api, $refreshAnalysis, args, options);
550
550
  }
551
551
  var $redactMask = { m: "POST", p: "/files/{file_id}/redact/mask", d: "aidream", a: "guest", o: "required", n: "files.redact_mask" };
552
552
  function redactMask(api, args, options) {
@@ -654,7 +654,7 @@ function listOverridesEndpoint(api, args, options) {
654
654
  }
655
655
  var $searchEndpoint = { m: "POST", p: "/files/{file_id}/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "files.search_endpoint" };
656
656
  function searchEndpoint(api, args, options) {
657
- return chunkNMBDYPFZ_cjs.openStream(api, $searchEndpoint, args, options);
657
+ return chunkPMGKZ4FT_cjs.openStream(api, $searchEndpoint, args, options);
658
658
  }
659
659
  var $extractRegionEndpoint = { m: "POST", p: "/files/{file_id}/regions/extract", d: "aidream", a: "guest", o: "required", n: "files.extract_region_endpoint" };
660
660
  function extractRegionEndpoint(api, args, options) {
@@ -882,7 +882,7 @@ function searchSemantic(api, args, options) {
882
882
  }
883
883
  var $downloadStream = { m: "GET", p: "/downloads/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "files.download_stream" };
884
884
  function downloadStream(api, args, options) {
885
- return chunkNMBDYPFZ_cjs.openStream(api, $downloadStream, args, options);
885
+ return chunkPMGKZ4FT_cjs.openStream(api, $downloadStream, args, options);
886
886
  }
887
887
  var $listDownloads = { m: "GET", p: "/downloads", d: "matrx-local", a: "loopback_token", o: "exempt", n: "files.list_downloads" };
888
888
  function listDownloads(api, args, options) {
package/dist/files.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent, J as JsonOrStream } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent, J as JsonOrStream } from './index-C3ZlP3BI.cjs';
2
2
  import { JsonValue, Asset, MediaRef, UserAnalysisPreferencesResponse, StorageImportResult } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/files.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent, J as JsonOrStream } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent, J as JsonOrStream } from './index-C3ZlP3BI.js';
2
2
  import { JsonValue, Asset, MediaRef, UserAnalysisPreferencesResponse, StorageImportResult } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/files.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream, openJsonOrStream } from './chunk-5BBHAAIG.js';
1
+ import { openStream, openJsonOrStream } from './chunk-PIVTHTVR.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/files.ts
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions } from './index-C3ZlP3BI.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions } from './index-C3ZlP3BI.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -83,7 +83,7 @@ declare function createMatrxNdjsonFramer(options?: MatrxNdjsonFramerOptions): Ma
83
83
  declare function readMatrxNdjsonStream(body: ReadableStream<Uint8Array>, options?: ReadMatrxNdjsonOptions): AsyncGenerator<MatrxStreamEnvelope, void, undefined>;
84
84
 
85
85
  /**
86
- * `@ai-matrx/agents/stream/sse` — the Matrx SSE frame kernel.
86
+ * `@ai-matrx/api/stream` — the Matrx SSE frame kernel.
87
87
  *
88
88
  * Two Matrx clients hand-rolled the identical `text/event-stream` framing —
89
89
  * the same separator regex, the same field parsing, the same CRLF incident —
@@ -331,6 +331,13 @@ interface CreateApiOptions {
331
331
  retryAttempts?: number;
332
332
  /** Mints the `X-Request-Id`. Default `crypto.randomUUID()`. */
333
333
  requestId?: () => string;
334
+ /**
335
+ * Called once when the server answers 401: refresh the credential (e.g. the
336
+ * host's session refresh) and resolve `true` to retry the call ONCE with the
337
+ * fresh credential, `false` to surface the 401. A second 401 is never
338
+ * retried. Omit to surface every 401 as-is.
339
+ */
340
+ refreshCredentials?: () => Promise<boolean>;
334
341
  /** Extra headers on every call (never overrides credentials or org). */
335
342
  headers?: Record<string, string>;
336
343
  /** Observability sink; the client works fully without it. */
@@ -83,7 +83,7 @@ declare function createMatrxNdjsonFramer(options?: MatrxNdjsonFramerOptions): Ma
83
83
  declare function readMatrxNdjsonStream(body: ReadableStream<Uint8Array>, options?: ReadMatrxNdjsonOptions): AsyncGenerator<MatrxStreamEnvelope, void, undefined>;
84
84
 
85
85
  /**
86
- * `@ai-matrx/agents/stream/sse` — the Matrx SSE frame kernel.
86
+ * `@ai-matrx/api/stream` — the Matrx SSE frame kernel.
87
87
  *
88
88
  * Two Matrx clients hand-rolled the identical `text/event-stream` framing —
89
89
  * the same separator regex, the same field parsing, the same CRLF incident —
@@ -331,6 +331,13 @@ interface CreateApiOptions {
331
331
  retryAttempts?: number;
332
332
  /** Mints the `X-Request-Id`. Default `crypto.randomUUID()`. */
333
333
  requestId?: () => string;
334
+ /**
335
+ * Called once when the server answers 401: refresh the credential (e.g. the
336
+ * host's session refresh) and resolve `true` to retry the call ONCE with the
337
+ * fresh credential, `false` to surface the 401. A second 401 is never
338
+ * retried. Omit to surface every 401 as-is.
339
+ */
340
+ refreshCredentials?: () => Promise<boolean>;
334
341
  /** Extra headers on every call (never overrides credentials or org). */
335
342
  headers?: Record<string, string>;
336
343
  /** Observability sink; the client works fully without it. */