@ai-matrx/api 0.1.7 → 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 (122) hide show
  1. package/CHANGELOG.md +12 -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-2FJPWNXG.js → chunk-PIVTHTVR.js} +22 -7
  29. package/dist/{chunk-UO3H55R3.cjs → chunk-PMGKZ4FT.cjs} +22 -7
  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-Xx6L_pWk.d.cts → index-C3ZlP3BI.d.cts} +13 -1
  65. package/dist/{index-Xx6L_pWk.d.ts → index-C3ZlP3BI.d.ts} +13 -1
  66. package/dist/index.cjs +697 -53
  67. package/dist/index.d.cts +792 -12
  68. package/dist/index.d.ts +792 -12
  69. package/dist/index.js +636 -3
  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 +19 -8
  75. package/dist/intelligence.d.cts +3 -648
  76. package/dist/intelligence.d.ts +3 -648
  77. package/dist/intelligence.js +14 -3
  78. package/dist/keys.generated-CK_C5UXG.d.cts +658 -0
  79. package/dist/keys.generated-CK_C5UXG.d.ts +658 -0
  80. package/dist/knowledge.cjs +42 -42
  81. package/dist/knowledge.d.cts +1 -1
  82. package/dist/knowledge.d.ts +1 -1
  83. package/dist/knowledge.js +1 -1
  84. package/dist/legal.cjs +6 -6
  85. package/dist/legal.d.cts +1 -1
  86. package/dist/legal.d.ts +1 -1
  87. package/dist/legal.js +1 -1
  88. package/dist/marketing.cjs +76 -76
  89. package/dist/marketing.d.cts +1 -1
  90. package/dist/marketing.d.ts +1 -1
  91. package/dist/marketing.js +1 -1
  92. package/dist/masterwork.cjs +32 -32
  93. package/dist/masterwork.d.cts +1 -1
  94. package/dist/masterwork.d.ts +1 -1
  95. package/dist/masterwork.js +1 -1
  96. package/dist/media.cjs +11 -11
  97. package/dist/media.d.cts +1 -1
  98. package/dist/media.d.ts +1 -1
  99. package/dist/media.js +1 -1
  100. package/dist/net.d.cts +1 -1
  101. package/dist/net.d.ts +1 -1
  102. package/dist/platform.cjs +3 -3
  103. package/dist/platform.d.cts +1 -1
  104. package/dist/platform.d.ts +1 -1
  105. package/dist/platform.js +1 -1
  106. package/dist/publish.cjs +7 -7
  107. package/dist/publish.d.cts +1 -1
  108. package/dist/publish.d.ts +1 -1
  109. package/dist/publish.js +1 -1
  110. package/dist/stream.cjs +10 -10
  111. package/dist/stream.d.cts +1 -1
  112. package/dist/stream.d.ts +1 -1
  113. package/dist/stream.js +1 -1
  114. package/dist/web.cjs +26 -26
  115. package/dist/web.d.cts +1 -1
  116. package/dist/web.d.ts +1 -1
  117. package/dist/web.js +1 -1
  118. package/dist/workflows.cjs +13 -13
  119. package/dist/workflows.d.cts +1 -1
  120. package/dist/workflows.d.ts +1 -1
  121. package/dist/workflows.js +1 -1
  122. package/package.json +4 -4
@@ -453,6 +453,9 @@ var DEFAULT_MATRX_NDJSON_READ_AHEAD = 64;
453
453
  function isRecord2(value) {
454
454
  return typeof value === "object" && value !== null && !Array.isArray(value);
455
455
  }
456
+ function latencyMark(value) {
457
+ return typeof value.latency_mark === "string" ? { latency_mark: value.latency_mark } : {};
458
+ }
456
459
  function normalizeMatrxStreamEnvelope(value) {
457
460
  if (!isRecord2(value)) return null;
458
461
  if (typeof value.event === "string") {
@@ -462,7 +465,8 @@ function normalizeMatrxStreamEnvelope(value) {
462
465
  event: value.event,
463
466
  data: value.data,
464
467
  ...streamId === void 0 ? {} : { stream_id: streamId },
465
- ...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
468
+ ...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
469
+ ...latencyMark(value)
466
470
  };
467
471
  }
468
472
  if (value.e === "c" && typeof value.t === "string") {
@@ -472,7 +476,8 @@ function normalizeMatrxStreamEnvelope(value) {
472
476
  event: "chunk",
473
477
  data: { text: value.t },
474
478
  ...streamId === void 0 ? {} : { stream_id: streamId },
475
- ...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
479
+ ...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
480
+ ...latencyMark(value)
476
481
  };
477
482
  }
478
483
  if (value.e === "r" && typeof value.t === "string") {
@@ -482,7 +487,8 @@ function normalizeMatrxStreamEnvelope(value) {
482
487
  event: "reasoning_chunk",
483
488
  data: { text: value.t },
484
489
  ...streamId === void 0 ? {} : { stream_id: streamId },
485
- ...streamSeq === void 0 ? {} : { stream_seq: streamSeq }
490
+ ...streamSeq === void 0 ? {} : { stream_seq: streamSeq },
491
+ ...latencyMark(value)
486
492
  };
487
493
  }
488
494
  return null;
@@ -924,12 +930,13 @@ function createApi(options = {}) {
924
930
  headers["Content-Type"] = "application/json";
925
931
  }
926
932
  }
927
- Object.assign(headers, credentials.credentialToHeaders(await credentials$1.get()));
933
+ const credentialHeaders = credentials.credentialToHeaders(await credentials$1.get());
934
+ Object.assign(headers, credentialHeaders);
928
935
  if (orgId !== null) headers[credentials.MATRX_HEADERS.organization] = orgId;
929
936
  options.onRequest?.({ operation: op.n, method: op.m, url, requestId, deployment: op.d });
930
- const attempt = () => chunk2SXAAKGV_cjs.resilientFetch(
937
+ const attempt = (sendHeaders = headers) => chunk2SXAAKGV_cjs.resilientFetch(
931
938
  url,
932
- { method: op.m, headers, ...body !== void 0 ? { body } : {} },
939
+ { method: op.m, headers: sendHeaders, ...body !== void 0 ? { body } : {} },
933
940
  {
934
941
  ...call?.signal ? { signal: call.signal } : {},
935
942
  connectTimeoutMs: call?.connectTimeoutMs ?? options.connectTimeoutMs ?? DEFAULT_CONNECT_TIMEOUT_MS,
@@ -938,11 +945,19 @@ function createApi(options = {}) {
938
945
  }
939
946
  );
940
947
  const idempotent = op.m === "GET" || op.m === "HEAD";
941
- const { response, controller } = idempotent && retryAttempts > 1 && !op.s ? await chunk2SXAAKGV_cjs.withRetry(attempt, {
948
+ const { response, controller } = idempotent && retryAttempts > 1 && !op.s ? await chunk2SXAAKGV_cjs.withRetry(() => attempt(), {
942
949
  attempts: retryAttempts,
943
950
  retryOn: chunk2SXAAKGV_cjs.isTransportFailure,
944
951
  ...call?.signal ? { signal: call.signal } : {}
945
952
  }) : await attempt();
953
+ if (response.status === 401 && options.refreshCredentials && await options.refreshCredentials()) {
954
+ const retryHeaders = { ...headers };
955
+ for (const name of Object.keys(credentialHeaders)) delete retryHeaders[name];
956
+ Object.assign(retryHeaders, credentials.credentialToHeaders(await credentials$1.get()));
957
+ const retried = await attempt(retryHeaders);
958
+ if (!retried.response.ok) throw await errorFrom(retried.response, interpolate(op.p, args?.path));
959
+ return { response: retried.response, requestId, controller: retried.controller };
960
+ }
946
961
  if (!response.ok) throw await errorFrom(response, interpolate(op.p, args?.path));
947
962
  return { response, requestId, controller };
948
963
  };
package/dist/code.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
3
+ var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/code.ts
@@ -46,7 +46,7 @@ function claudeManagedCapabilities(api, args, options) {
46
46
  }
47
47
  var $claudeManagedStream = { m: "POST", p: "/coding-sessions/claude/stream", d: "aidream", a: "user", o: "required", s: "ndjson", n: "code.claude_managed_stream" };
48
48
  function claudeManagedStream(api, args, options) {
49
- return chunkUO3H55R3_cjs.openStream(api, $claudeManagedStream, args, options);
49
+ return chunkPMGKZ4FT_cjs.openStream(api, $claudeManagedStream, args, options);
50
50
  }
51
51
  var $cancelClaudeManagedRuntime = { m: "POST", p: "/coding-sessions/claude/runtimes/{runtime_id}/cancel", d: "aidream", a: "user", o: "required", n: "code.cancel_claude_managed_runtime" };
52
52
  function cancelClaudeManagedRuntime(api, args, options) {
@@ -58,7 +58,7 @@ function codexManagedCapabilities(api, args, options) {
58
58
  }
59
59
  var $codexManagedStream = { m: "POST", p: "/coding-sessions/codex/stream", d: "aidream", a: "user", o: "required", s: "ndjson", n: "code.codex_managed_stream" };
60
60
  function codexManagedStream(api, args, options) {
61
- return chunkUO3H55R3_cjs.openStream(api, $codexManagedStream, args, options);
61
+ return chunkPMGKZ4FT_cjs.openStream(api, $codexManagedStream, args, options);
62
62
  }
63
63
  var $cancelCodexManagedRuntime = { m: "POST", p: "/coding-sessions/codex/runtimes/{runtime_id}/cancel", d: "aidream", a: "user", o: "required", n: "code.cancel_codex_managed_runtime" };
64
64
  function cancelCodexManagedRuntime(api, args, options) {
@@ -134,7 +134,7 @@ function claudeManagedCapabilitiesOnHostedBox(api, args, options) {
134
134
  }
135
135
  var $claudeManagedStreamOnHostedBox = { m: "POST", p: "/coding-sessions/claude/stream", d: "hosted-box", a: "user", o: "required", s: "ndjson", n: "code.claude_managed_stream" };
136
136
  function claudeManagedStreamOnHostedBox(api, args, options) {
137
- return chunkUO3H55R3_cjs.openStream(api, $claudeManagedStreamOnHostedBox, args, options);
137
+ return chunkPMGKZ4FT_cjs.openStream(api, $claudeManagedStreamOnHostedBox, args, options);
138
138
  }
139
139
  var $cancelClaudeManagedRuntimeOnHostedBox = { m: "POST", p: "/coding-sessions/claude/runtimes/{runtime_id}/cancel", d: "hosted-box", a: "user", o: "required", n: "code.cancel_claude_managed_runtime" };
140
140
  function cancelClaudeManagedRuntimeOnHostedBox(api, args, options) {
@@ -146,7 +146,7 @@ function codexManagedCapabilitiesOnHostedBox(api, args, options) {
146
146
  }
147
147
  var $codexManagedStreamOnHostedBox = { m: "POST", p: "/coding-sessions/codex/stream", d: "hosted-box", a: "user", o: "required", s: "ndjson", n: "code.codex_managed_stream" };
148
148
  function codexManagedStreamOnHostedBox(api, args, options) {
149
- return chunkUO3H55R3_cjs.openStream(api, $codexManagedStreamOnHostedBox, args, options);
149
+ return chunkPMGKZ4FT_cjs.openStream(api, $codexManagedStreamOnHostedBox, args, options);
150
150
  }
151
151
  var $cancelCodexManagedRuntimeOnHostedBox = { m: "POST", p: "/coding-sessions/codex/runtimes/{runtime_id}/cancel", d: "hosted-box", a: "user", o: "required", n: "code.cancel_codex_managed_runtime" };
152
152
  function cancelCodexManagedRuntimeOnHostedBox(api, args, options) {
@@ -370,7 +370,7 @@ function runtimeResumable(api, args, options) {
370
370
  }
371
371
  var $runtimeEvents = { m: "GET", p: "/coding-session/runtime/{runtime_id}/events", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "code.runtime_events" };
372
372
  function runtimeEvents(api, args, options) {
373
- return chunkUO3H55R3_cjs.openStream(api, $runtimeEvents, args, options);
373
+ return chunkPMGKZ4FT_cjs.openStream(api, $runtimeEvents, args, options);
374
374
  }
375
375
  var $getCodexUsageAllowance = { m: "GET", p: "/codex-usage/allowance", d: "matrx-local", a: "loopback_token", o: "exempt", n: "code.get_codex_usage_allowance" };
376
376
  function getCodexUsageAllowance(api, args, options) {
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-Xx6L_pWk.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-Xx6L_pWk.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-2FJPWNXG.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-Xx6L_pWk.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-Xx6L_pWk.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 chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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-Xx6L_pWk.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-Xx6L_pWk.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-2FJPWNXG.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 chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.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 chunkUO3H55R3_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 chunkUO3H55R3_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-Xx6L_pWk.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-Xx6L_pWk.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-2FJPWNXG.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 chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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-Xx6L_pWk.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-Xx6L_pWk.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-2FJPWNXG.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 chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.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 chunkUO3H55R3_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-Xx6L_pWk.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-Xx6L_pWk.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-2FJPWNXG.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-Xx6L_pWk.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-Xx6L_pWk.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 chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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-Xx6L_pWk.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-Xx6L_pWk.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-2FJPWNXG.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 chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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 chunkUO3H55R3_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-Xx6L_pWk.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-Xx6L_pWk.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-2FJPWNXG.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-Xx6L_pWk.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-Xx6L_pWk.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