@ai-matrx/api 0.1.20 → 0.1.21

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 (130) 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 +12 -12
  5. package/dist/agents.d.cts +1 -1
  6. package/dist/agents.d.ts +1 -1
  7. package/dist/agents.js +2 -2
  8. package/dist/ai.cjs +3 -3
  9. package/dist/ai.d.cts +1 -1
  10. package/dist/ai.d.ts +1 -1
  11. package/dist/ai.js +2 -2
  12. package/dist/apps.cjs +6 -6
  13. package/dist/apps.d.cts +1 -1
  14. package/dist/apps.d.ts +1 -1
  15. package/dist/apps.js +2 -2
  16. package/dist/architecture.cjs +11 -11
  17. package/dist/architecture.d.cts +1 -1
  18. package/dist/architecture.d.ts +1 -1
  19. package/dist/architecture.js +2 -2
  20. package/dist/audio.cjs +5 -5
  21. package/dist/audio.d.cts +1 -1
  22. package/dist/audio.d.ts +1 -1
  23. package/dist/audio.js +2 -2
  24. package/dist/chat.cjs +12 -12
  25. package/dist/chat.d.cts +1 -1
  26. package/dist/chat.d.ts +1 -1
  27. package/dist/chat.js +2 -2
  28. package/dist/{chunk-PKYPPATQ.cjs → chunk-2SXAAKGV.cjs} +45 -100
  29. package/dist/{chunk-JRPLPAIX.js → chunk-ER7WV43R.js} +4 -88
  30. package/dist/chunk-FNIYADWI.cjs +59 -0
  31. package/dist/{chunk-PIPE5OML.js → chunk-KIEAFMKB.js} +46 -100
  32. package/dist/{chunk-EV7AXV2X.cjs → chunk-SME66TWP.cjs} +7 -100
  33. package/dist/chunk-YTEOFGFC.js +57 -0
  34. package/dist/code.cjs +7 -7
  35. package/dist/code.d.cts +1 -1
  36. package/dist/code.d.ts +1 -1
  37. package/dist/code.js +2 -2
  38. package/dist/commerce.d.cts +1 -1
  39. package/dist/commerce.d.ts +1 -1
  40. package/dist/communications.cjs +5 -5
  41. package/dist/communications.d.cts +1 -1
  42. package/dist/communications.d.ts +1 -1
  43. package/dist/communications.js +2 -2
  44. package/dist/computer.cjs +5 -5
  45. package/dist/computer.d.cts +1 -1
  46. package/dist/computer.d.ts +1 -1
  47. package/dist/computer.js +2 -2
  48. package/dist/content.cjs +5 -5
  49. package/dist/content.d.cts +1 -1
  50. package/dist/content.d.ts +1 -1
  51. package/dist/content.js +2 -2
  52. package/dist/crm.cjs +3 -3
  53. package/dist/crm.d.cts +1 -1
  54. package/dist/crm.d.ts +1 -1
  55. package/dist/crm.js +2 -2
  56. package/dist/data.cjs +4 -4
  57. package/dist/data.d.cts +1 -1
  58. package/dist/data.d.ts +1 -1
  59. package/dist/data.js +2 -2
  60. package/dist/education.cjs +5 -5
  61. package/dist/education.d.cts +1 -1
  62. package/dist/education.d.ts +1 -1
  63. package/dist/education.js +2 -2
  64. package/dist/files.cjs +21 -21
  65. package/dist/files.d.cts +1 -1
  66. package/dist/files.d.ts +1 -1
  67. package/dist/files.js +2 -2
  68. package/dist/human-resources.d.cts +1 -1
  69. package/dist/human-resources.d.ts +1 -1
  70. package/dist/{index-YFW4xNti.d.cts → index-BXLIDtlM.d.cts} +1 -1
  71. package/dist/{index-YFW4xNti.d.ts → index-BXLIDtlM.d.ts} +1 -1
  72. package/dist/index.cjs +86 -129
  73. package/dist/index.d.cts +7 -122
  74. package/dist/index.d.ts +7 -122
  75. package/dist/index.js +8 -15
  76. package/dist/integrations.cjs +4 -4
  77. package/dist/integrations.d.cts +1 -1
  78. package/dist/integrations.d.ts +1 -1
  79. package/dist/integrations.js +2 -2
  80. package/dist/intelligence.cjs +8 -8
  81. package/dist/intelligence.d.cts +2 -2
  82. package/dist/intelligence.d.ts +2 -2
  83. package/dist/intelligence.js +3 -3
  84. package/dist/{keys.generated-DPvmbTFD.d.cts → keys.generated-DE-t9kzx.d.cts} +2 -2
  85. package/dist/{keys.generated-DPvmbTFD.d.ts → keys.generated-DE-t9kzx.d.ts} +2 -2
  86. package/dist/knowledge.cjs +43 -43
  87. package/dist/knowledge.d.cts +1 -1
  88. package/dist/knowledge.d.ts +1 -1
  89. package/dist/knowledge.js +2 -2
  90. package/dist/legal.cjs +7 -7
  91. package/dist/legal.d.cts +1 -1
  92. package/dist/legal.d.ts +1 -1
  93. package/dist/legal.js +2 -2
  94. package/dist/marketing.cjs +77 -77
  95. package/dist/marketing.d.cts +1 -1
  96. package/dist/marketing.d.ts +1 -1
  97. package/dist/marketing.js +2 -2
  98. package/dist/masterwork.cjs +33 -33
  99. package/dist/masterwork.d.cts +1 -1
  100. package/dist/masterwork.d.ts +1 -1
  101. package/dist/masterwork.js +2 -2
  102. package/dist/media.cjs +12 -12
  103. package/dist/media.d.cts +1 -1
  104. package/dist/media.d.ts +1 -1
  105. package/dist/media.js +2 -2
  106. package/dist/net.cjs +20 -19
  107. package/dist/net.js +2 -1
  108. package/dist/platform.cjs +4 -4
  109. package/dist/platform.d.cts +1 -1
  110. package/dist/platform.d.ts +1 -1
  111. package/dist/platform.js +2 -2
  112. package/dist/publish.cjs +8 -8
  113. package/dist/publish.d.cts +1 -1
  114. package/dist/publish.d.ts +1 -1
  115. package/dist/publish.js +2 -2
  116. package/dist/stream.cjs +11 -11
  117. package/dist/stream.d.cts +1 -1
  118. package/dist/stream.d.ts +1 -1
  119. package/dist/stream.js +2 -2
  120. package/dist/types.d.cts +2 -2
  121. package/dist/types.d.ts +2 -2
  122. package/dist/web.cjs +27 -27
  123. package/dist/web.d.cts +1 -1
  124. package/dist/web.d.ts +1 -1
  125. package/dist/web.js +2 -2
  126. package/dist/workflows.cjs +14 -14
  127. package/dist/workflows.d.cts +1 -1
  128. package/dist/workflows.d.ts +1 -1
  129. package/dist/workflows.js +2 -2
  130. package/package.json +2 -2
@@ -1,92 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkPKYPPATQ_cjs = require('./chunk-PKYPPATQ.cjs');
3
+ var chunk2SXAAKGV_cjs = require('./chunk-2SXAAKGV.cjs');
4
4
  var uuid = require('@ai-matrx/kit/uuid');
5
5
  var credentials = require('@ai-matrx/auth/credentials');
6
6
 
7
- // src/core/protocol.ts
8
- var MATRX_AI_API_VERSION_DEFAULT = "v2";
9
- var V2_COVERED_AI_PATH_TEMPLATES = [
10
- "/ai/manual",
11
- "/ai/chat",
12
- "/ai/agents/{agent_id}",
13
- "/ai/agent/{agent_id}",
14
- // singular alias — behaves identically
15
- "/ai/conversations/{conversation_id}",
16
- "/ai/conversation/{conversation_id}",
17
- // singular alias
18
- "/ai/prompts/{prompt_id}",
19
- // saved-prompt execution
20
- "/ai/mandates/{mandate_key}"
21
- // THE MANDATE DOOR — `/v2` sibling exists (routers/v2.py)
22
- ];
23
- function toV2Path(path) {
24
- const withLead = path.startsWith("/") ? path : `/${path}`;
25
- if (withLead.startsWith("/api/")) {
26
- const rest = withLead.slice("/api".length);
27
- return rest.startsWith("/v2/") ? withLead : `/api/v2${rest}`;
28
- }
29
- return withLead.startsWith("/v2/") ? withLead : `/v2${withLead}`;
30
- }
31
- var COVERED_INTERPOLATED_PATH = [
32
- /^(?:\/api)?\/ai\/manual$/,
33
- /^(?:\/api)?\/ai\/chat$/,
34
- /^(?:\/api)?\/ai\/agents\/[^/]+$/,
35
- /^(?:\/api)?\/ai\/agent\/[^/]+$/,
36
- /^(?:\/api)?\/ai\/conversations\/[^/]+$/,
37
- /^(?:\/api)?\/ai\/conversation\/[^/]+$/,
38
- /^(?:\/api)?\/ai\/prompts\/[^/]+$/,
39
- // `/warm` etc. deliberately don't match
40
- /^(?:\/api)?\/ai\/mandates\/[^/]+$/
41
- // the mandate door
42
- ];
43
- function isCoveredAiPath(path) {
44
- return COVERED_INTERPOLATED_PATH.some((re) => re.test(path));
45
- }
46
- function isV2Path(pathOrUrl) {
47
- return /\/v2\/ai\//.test(pathOrUrl);
48
- }
49
- function toV1FallbackUrl(url) {
50
- return url.replace(/\/v2\/ai\//, "/ai/");
51
- }
52
- function applyAiApiVersion(path, version) {
53
- if (version !== "v2") return path;
54
- return isCoveredAiPath(path) ? toV2Path(path) : path;
55
- }
56
- async function fetchWithMatrxProtocolFallback(url, init, opts = {}) {
57
- const { onDowngrade, ...fetchOpts } = opts;
58
- const logDowngrade = (reason, status2) => {
59
- console.warn(
60
- `[matrx] ai_v2_downgrade \u2192 retrying on v1. v2=${url} reason=${reason}`
61
- );
62
- onDowngrade?.({ url, reason, ...status2 !== void 0 ? { status: status2 } : {} });
63
- };
64
- if (!isV2Path(url)) return chunkPKYPPATQ_cjs.resilientFetch(url, init, fetchOpts);
65
- let result;
66
- try {
67
- result = await chunkPKYPPATQ_cjs.resilientFetch(url, init, fetchOpts);
68
- } catch (err) {
69
- const isAbort = chunkPKYPPATQ_cjs.isNetError(err) && err.code === "aborted" || err instanceof Error && err.name === "AbortError";
70
- if (isAbort) throw err;
71
- logDowngrade(String(err));
72
- return chunkPKYPPATQ_cjs.resilientFetch(toV1FallbackUrl(url), init, fetchOpts);
73
- }
74
- const status = result.response.status;
75
- if (status === 404 || status === 405 || status >= 500) {
76
- logDowngrade(`HTTP ${status}`, status);
77
- return chunkPKYPPATQ_cjs.resilientFetch(toV1FallbackUrl(url), init, fetchOpts);
78
- }
79
- return result;
80
- }
81
- function aiVersionPathOverrides(version) {
82
- if (version !== "v2") return {};
83
- const map = {};
84
- for (const template of V2_COVERED_AI_PATH_TEMPLATES) {
85
- map[template] = toV2Path(template);
86
- }
87
- return map;
88
- }
89
-
90
7
  // src/core/backend-errors.ts
91
8
  var BackendApiError = class extends Error {
92
9
  /** Machine-readable error code */
@@ -1017,7 +934,7 @@ function sendWithXhr(url, init, signal, totalTimeoutMs, onUploadProgress) {
1017
934
  };
1018
935
  xhr.ontimeout = () => {
1019
936
  cleanup();
1020
- reject(new chunkPKYPPATQ_cjs.TotalTimeoutError(totalTimeoutMs ?? 0));
937
+ reject(new chunk2SXAAKGV_cjs.TotalTimeoutError(totalTimeoutMs ?? 0));
1021
938
  };
1022
939
  xhr.onabort = () => {
1023
940
  cleanup();
@@ -1037,7 +954,7 @@ async function sendOnWire(request, auth = {}) {
1037
954
  await waitForSessionReady(auth.credentials, auth.readyTimeoutMs);
1038
955
  const credentialHeaders = auth.credentials ? credentials.credentialToHeaders(await auth.credentials.get()) : {};
1039
956
  const attempt = (sendHeaders) => {
1040
- if (request.signal?.aborted) return Promise.reject(new chunkPKYPPATQ_cjs.AbortedError(request.signal.reason));
957
+ if (request.signal?.aborted) return Promise.reject(new chunk2SXAAKGV_cjs.AbortedError(request.signal.reason));
1041
958
  const merged = { ...sendHeaders };
1042
959
  if (request.onUploadProgress && body !== void 0) {
1043
960
  if (typeof XMLHttpRequest !== "undefined" && !(typeof ReadableStream !== "undefined" && body instanceof ReadableStream)) {
@@ -1051,15 +968,14 @@ async function sendOnWire(request, auth = {}) {
1051
968
  );
1052
969
  }
1053
970
  }
1054
- return fetchWithMatrxProtocolFallback(
971
+ return chunk2SXAAKGV_cjs.resilientFetch(
1055
972
  request.url,
1056
973
  { ...request.fetchOptions, method, headers: merged, ...body !== void 0 ? { body } : {} },
1057
974
  {
1058
975
  ...request.signal ? { signal: request.signal } : {},
1059
976
  connectTimeoutMs: request.connectTimeoutMs ?? DEFAULT_CONNECT_TIMEOUT_MS,
1060
977
  totalTimeoutMs: request.totalTimeoutMs !== void 0 ? request.totalTimeoutMs : null,
1061
- throwOnHttpError: false,
1062
- ...request.onProtocolDowngrade ? { onDowngrade: request.onProtocolDowngrade } : {}
978
+ throwOnHttpError: false
1063
979
  }
1064
980
  ).then((result) => {
1065
981
  if (request.onUploadProgress && body !== void 0) {
@@ -1075,9 +991,9 @@ async function sendOnWire(request, auth = {}) {
1075
991
  const firstHeaders = mergeHeaders(headers, credentialHeaders, over);
1076
992
  const idempotent = method === "GET" || method === "HEAD";
1077
993
  const attempts = Math.max(1, request.retryAttempts ?? 1);
1078
- const first = idempotent && attempts > 1 && !request.stream ? await chunkPKYPPATQ_cjs.withRetry(() => attempt(firstHeaders), {
994
+ const first = idempotent && attempts > 1 && !request.stream ? await chunk2SXAAKGV_cjs.withRetry(() => attempt(firstHeaders), {
1079
995
  attempts,
1080
- retryOn: chunkPKYPPATQ_cjs.isTransportFailure,
996
+ retryOn: chunk2SXAAKGV_cjs.isTransportFailure,
1081
997
  ...request.signal ? { signal: request.signal } : {}
1082
998
  }) : await attempt(firstHeaders);
1083
999
  if (first.response.status !== 401 || !auth.refreshCredentials) return first;
@@ -1285,14 +1201,10 @@ exports.CONTRACT_SHA256 = CONTRACT_SHA256;
1285
1201
  exports.DEFAULT_MATRX_NDJSON_READ_AHEAD = DEFAULT_MATRX_NDJSON_READ_AHEAD;
1286
1202
  exports.DEPLOYMENTS = DEPLOYMENTS;
1287
1203
  exports.DOMAINS = DOMAINS;
1288
- exports.MATRX_AI_API_VERSION_DEFAULT = MATRX_AI_API_VERSION_DEFAULT;
1289
1204
  exports.MatrxApiError = MatrxApiError;
1290
1205
  exports.OrganizationContextError = OrganizationContextError;
1291
1206
  exports.StreamTransportError = StreamTransportError;
1292
- exports.V2_COVERED_AI_PATH_TEMPLATES = V2_COVERED_AI_PATH_TEMPLATES;
1293
1207
  exports.WIRE_FETCH_OPTION_KEYS = WIRE_FETCH_OPTION_KEYS;
1294
- exports.aiVersionPathOverrides = aiVersionPathOverrides;
1295
- exports.applyAiApiVersion = applyAiApiVersion;
1296
1208
  exports.applyOrganizationContextHeader = applyOrganizationContextHeader;
1297
1209
  exports.assertOrganizationMatchesOperation = assertOrganizationMatchesOperation;
1298
1210
  exports.assertQueryOrganizationMatchesContext = assertQueryOrganizationMatchesContext;
@@ -1303,13 +1215,10 @@ exports.createOrganizationOperation = createOrganizationOperation;
1303
1215
  exports.describeBackendFailure = describeBackendFailure;
1304
1216
  exports.extractMatrxErrorCode = extractMatrxErrorCode;
1305
1217
  exports.extractMatrxErrorMessage = extractMatrxErrorMessage;
1306
- exports.fetchWithMatrxProtocolFallback = fetchWithMatrxProtocolFallback;
1307
1218
  exports.getUserMessage = getUserMessage;
1308
1219
  exports.isBinaryType = isBinaryType;
1309
- exports.isCoveredAiPath = isCoveredAiPath;
1310
1220
  exports.isGenericUserMessage = isGenericUserMessage;
1311
1221
  exports.isStreamTransportLost = isStreamTransportLost;
1312
- exports.isV2Path = isV2Path;
1313
1222
  exports.normalizeMatrxStreamEnvelope = normalizeMatrxStreamEnvelope;
1314
1223
  exports.openJsonOrStream = openJsonOrStream;
1315
1224
  exports.openStream = openStream;
@@ -1323,6 +1232,4 @@ exports.readMatrxNdjsonStream = readMatrxNdjsonStream;
1323
1232
  exports.readMatrxSseStream = readMatrxSseStream;
1324
1233
  exports.requireOrganizationContext = requireOrganizationContext;
1325
1234
  exports.sendOnWire = sendOnWire;
1326
- exports.toV1FallbackUrl = toV1FallbackUrl;
1327
- exports.toV2Path = toV2Path;
1328
1235
  exports.unwrapUpstreamError = unwrapUpstreamError;
@@ -0,0 +1,57 @@
1
+ import { TotalTimeoutError, HeartbeatTimeoutError } from './chunk-KIEAFMKB.js';
2
+
3
+ // src/net/stream-monitor.ts
4
+ var DEFAULTS = {
5
+ heartbeatTimeoutMs: 3e4,
6
+ maxLifetimeMs: 6e5
7
+ };
8
+ async function* monitorStream(source, opts = {}) {
9
+ const heartbeatTimeoutMs = opts.heartbeatTimeoutMs ?? DEFAULTS.heartbeatTimeoutMs;
10
+ const maxLifetimeMs = opts.maxLifetimeMs ?? DEFAULTS.maxLifetimeMs;
11
+ const abort = opts.abortController;
12
+ const startedAt = Date.now();
13
+ const iter = source[Symbol.asyncIterator]();
14
+ while (true) {
15
+ const elapsed = Date.now() - startedAt;
16
+ const remainingLifetime = maxLifetimeMs - elapsed;
17
+ if (remainingLifetime <= 0) {
18
+ abort?.abort("total-timeout");
19
+ throw new TotalTimeoutError(maxLifetimeMs);
20
+ }
21
+ const deadline = Math.min(heartbeatTimeoutMs, remainingLifetime);
22
+ let timer = null;
23
+ let timedOutKind = null;
24
+ const timeoutPromise = new Promise((_, reject) => {
25
+ timer = setTimeout(() => {
26
+ timedOutKind = deadline === remainingLifetime ? "total" : "heartbeat";
27
+ abort?.abort(
28
+ timedOutKind === "total" ? "total-timeout" : "heartbeat-timeout"
29
+ );
30
+ reject(
31
+ timedOutKind === "total" ? new TotalTimeoutError(maxLifetimeMs) : new HeartbeatTimeoutError(heartbeatTimeoutMs)
32
+ );
33
+ }, deadline);
34
+ });
35
+ let result;
36
+ try {
37
+ result = await Promise.race([iter.next(), timeoutPromise]);
38
+ } catch (err) {
39
+ if (timer !== null) clearTimeout(timer);
40
+ try {
41
+ const cleanup = iter.return?.(void 0);
42
+ if (cleanup) {
43
+ void Promise.resolve(cleanup).catch(() => {
44
+ });
45
+ }
46
+ } catch {
47
+ }
48
+ throw err;
49
+ }
50
+ if (timer !== null) clearTimeout(timer);
51
+ if (result.done) return;
52
+ opts.onHeartbeat?.(Date.now());
53
+ yield result.value;
54
+ }
55
+ }
56
+
57
+ export { monitorStream };
package/dist/code.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEV7AXV2X_cjs = require('./chunk-EV7AXV2X.cjs');
4
- require('./chunk-PKYPPATQ.cjs');
3
+ var chunkSME66TWP_cjs = require('./chunk-SME66TWP.cjs');
4
+ require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/code.ts
7
7
  var $codingSessionBridge = { m: "POST", p: "/coding-sessions/bridge", d: "aidream", a: "user", o: "exempt", n: "code.coding_session_bridge" };
@@ -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 chunkEV7AXV2X_cjs.openStream(api, $claudeManagedStream, args, options);
49
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $codexManagedStream, args, options);
61
+ return chunkSME66TWP_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) {
@@ -138,7 +138,7 @@ function claudeManagedCapabilitiesOnHostedBox(api, args, options) {
138
138
  }
139
139
  var $claudeManagedStreamOnHostedBox = { m: "POST", p: "/coding-sessions/claude/stream", d: "hosted-box", a: "user", o: "required", s: "ndjson", n: "code.claude_managed_stream" };
140
140
  function claudeManagedStreamOnHostedBox(api, args, options) {
141
- return chunkEV7AXV2X_cjs.openStream(api, $claudeManagedStreamOnHostedBox, args, options);
141
+ return chunkSME66TWP_cjs.openStream(api, $claudeManagedStreamOnHostedBox, args, options);
142
142
  }
143
143
  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" };
144
144
  function cancelClaudeManagedRuntimeOnHostedBox(api, args, options) {
@@ -150,7 +150,7 @@ function codexManagedCapabilitiesOnHostedBox(api, args, options) {
150
150
  }
151
151
  var $codexManagedStreamOnHostedBox = { m: "POST", p: "/coding-sessions/codex/stream", d: "hosted-box", a: "user", o: "required", s: "ndjson", n: "code.codex_managed_stream" };
152
152
  function codexManagedStreamOnHostedBox(api, args, options) {
153
- return chunkEV7AXV2X_cjs.openStream(api, $codexManagedStreamOnHostedBox, args, options);
153
+ return chunkSME66TWP_cjs.openStream(api, $codexManagedStreamOnHostedBox, args, options);
154
154
  }
155
155
  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" };
156
156
  function cancelCodexManagedRuntimeOnHostedBox(api, args, options) {
@@ -378,7 +378,7 @@ function runtimeResumable(api, args, options) {
378
378
  }
379
379
  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" };
380
380
  function runtimeEvents(api, args, options) {
381
- return chunkEV7AXV2X_cjs.openStream(api, $runtimeEvents, args, options);
381
+ return chunkSME66TWP_cjs.openStream(api, $runtimeEvents, args, options);
382
382
  }
383
383
  var $getCodexUsageAllowance = { m: "GET", p: "/codex-usage/allowance", d: "matrx-local", a: "loopback_token", o: "exempt", n: "code.get_codex_usage_allowance" };
384
384
  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-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-BXLIDtlM.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-YFW4xNti.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-BXLIDtlM.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/code.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-JRPLPAIX.js';
2
- import './chunk-PIPE5OML.js';
1
+ import { openStream } from './chunk-ER7WV43R.js';
2
+ import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/code.ts
5
5
  var $codingSessionBridge = { m: "POST", p: "/coding-sessions/bridge", d: "aidream", a: "user", o: "exempt", n: "code.coding_session_bridge" };
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions } from './index-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions } from './index-BXLIDtlM.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-YFW4xNti.js';
1
+ import { A as Api, C as CallOptions } from './index-BXLIDtlM.js';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEV7AXV2X_cjs = require('./chunk-EV7AXV2X.cjs');
4
- require('./chunk-PKYPPATQ.cjs');
3
+ var chunkSME66TWP_cjs = require('./chunk-SME66TWP.cjs');
4
+ require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/communications.ts
7
7
  var $conversationRelayPreparation = { m: "POST", p: "/communications/voice/conversation-relay/session-reference", d: "aidream", a: "scoped", o: "required", n: "communications.conversation_relay_preparation" };
@@ -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 chunkEV7AXV2X_cjs.openStream(api, $intelligenceAsk, args, options);
105
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $meetingBrief, args, options);
145
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $agendaDraft, args, options);
149
+ return chunkSME66TWP_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-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.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-YFW4xNti.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.js';
2
2
  import { JsonValue, CalendarCreateResult } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-JRPLPAIX.js';
2
- import './chunk-PIPE5OML.js';
1
+ import { openStream } from './chunk-ER7WV43R.js';
2
+ import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/communications.ts
5
5
  var $conversationRelayPreparation = { m: "POST", p: "/communications/voice/conversation-relay/session-reference", d: "aidream", a: "scoped", o: "required", n: "communications.conversation_relay_preparation" };
package/dist/computer.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEV7AXV2X_cjs = require('./chunk-EV7AXV2X.cjs');
4
- require('./chunk-PKYPPATQ.cjs');
3
+ var chunkSME66TWP_cjs = require('./chunk-SME66TWP.cjs');
4
+ require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/computer.ts
7
7
  var $localProxyProxyToLocalPc = { m: "GET", p: "/local-proxy/{app_instance_id}/{path}", d: "aidream", a: "guest", o: "required", n: "computer.local_proxy_proxy_to_local_pc" };
@@ -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 chunkEV7AXV2X_cjs.openStream(api, $streamSystemLog, args, options);
53
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $streamAccessLog, args, options);
57
+ return chunkSME66TWP_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) {
@@ -90,7 +90,7 @@ function messages(api, args, options) {
90
90
  }
91
91
  var $events = { m: "GET", p: "/personal-messaging/beeper/events", d: "matrx-local", a: "loopback_token", o: "exempt", s: "ndjson", n: "computer.events" };
92
92
  function events(api, args, options) {
93
- return chunkEV7AXV2X_cjs.openStream(api, $events, args, options);
93
+ return chunkSME66TWP_cjs.openStream(api, $events, args, options);
94
94
  }
95
95
  var $message = { m: "GET", p: "/personal-messaging/beeper/message", d: "matrx-local", a: "loopback_token", o: "exempt", n: "computer.message" };
96
96
  function message(api, args, options) {
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-BXLIDtlM.cjs';
2
2
  import { TextPart } 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, S as SseEvent } from './index-YFW4xNti.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-BXLIDtlM.js';
2
2
  import { TextPart } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/computer.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-JRPLPAIX.js';
2
- import './chunk-PIPE5OML.js';
1
+ import { openStream } from './chunk-ER7WV43R.js';
2
+ import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/computer.ts
5
5
  var $localProxyProxyToLocalPc = { m: "GET", p: "/local-proxy/{app_instance_id}/{path}", d: "aidream", a: "guest", o: "required", n: "computer.local_proxy_proxy_to_local_pc" };
package/dist/content.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEV7AXV2X_cjs = require('./chunk-EV7AXV2X.cjs');
4
- require('./chunk-PKYPPATQ.cjs');
3
+ var chunkSME66TWP_cjs = require('./chunk-SME66TWP.cjs');
4
+ require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/content.ts
7
7
  var $esignOutsiderOpen = { m: "POST", p: "/esign/signing/outsider/open", d: "aidream", a: "scoped", o: "exempt", n: "content.esign_outsider_open" };
@@ -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 chunkEV7AXV2X_cjs.openStream(api, $processBlocksStream, args, options);
125
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $simulateProviderRetryStream, args, options);
129
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $processFile, args, options);
133
+ return chunkSME66TWP_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-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.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-YFW4xNti.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/content.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-JRPLPAIX.js';
2
- import './chunk-PIPE5OML.js';
1
+ import { openStream } from './chunk-ER7WV43R.js';
2
+ import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/content.ts
5
5
  var $esignOutsiderOpen = { m: "POST", p: "/esign/signing/outsider/open", d: "aidream", a: "scoped", o: "exempt", n: "content.esign_outsider_open" };
package/dist/crm.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEV7AXV2X_cjs = require('./chunk-EV7AXV2X.cjs');
4
- require('./chunk-PKYPPATQ.cjs');
3
+ var chunkSME66TWP_cjs = require('./chunk-SME66TWP.cjs');
4
+ require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/crm.ts
7
7
  var $listSendingIdentities = { m: "GET", p: "/sending-identities", d: "aidream", a: "user", o: "optional", n: "crm.list_sending_identities" };
@@ -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 chunkEV7AXV2X_cjs.openStream(api, $mediaResearchRunDoor, args, options);
133
+ return chunkSME66TWP_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-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.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-YFW4xNti.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/crm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-JRPLPAIX.js';
2
- import './chunk-PIPE5OML.js';
1
+ import { openStream } from './chunk-ER7WV43R.js';
2
+ import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/crm.ts
5
5
  var $listSendingIdentities = { m: "GET", p: "/sending-identities", d: "aidream", a: "user", o: "optional", n: "crm.list_sending_identities" };
package/dist/data.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkEV7AXV2X_cjs = require('./chunk-EV7AXV2X.cjs');
4
- require('./chunk-PKYPPATQ.cjs');
3
+ var chunkSME66TWP_cjs = require('./chunk-SME66TWP.cjs');
4
+ require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/data.ts
7
7
  var $schemaManifest = { m: "GET", p: "/schema/manifest", d: "aidream", a: "public", o: "exempt", n: "data.schema_manifest" };
@@ -186,7 +186,7 @@ function listSources(api, args, options) {
186
186
  }
187
187
  var $fetch = { m: "POST", p: "/data-sources/fetch", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "data.fetch" };
188
188
  function fetch(api, args, options) {
189
- return chunkEV7AXV2X_cjs.openStream(api, $fetch, args, options);
189
+ return chunkSME66TWP_cjs.openStream(api, $fetch, args, options);
190
190
  }
191
191
  var $getJob = { m: "GET", p: "/data-sources/jobs/{job_id}", d: "aidream", a: "guest", o: "required", n: "data.get_job" };
192
192
  function getJob(api, args, options) {
@@ -198,7 +198,7 @@ function getJobChanges(api, args, options) {
198
198
  }
199
199
  var $refresh = { m: "POST", p: "/data-sources/tables/{table_id}/refresh", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "data.refresh" };
200
200
  function refresh(api, args, options) {
201
- return chunkEV7AXV2X_cjs.openStream(api, $refresh, args, options);
201
+ return chunkSME66TWP_cjs.openStream(api, $refresh, args, options);
202
202
  }
203
203
  var $unlockPage = { m: "POST", p: "/data-sources/unlock", d: "aidream", a: "user", o: "required", n: "data.unlock_page" };
204
204
  function unlockPage(api, args, options) {
package/dist/data.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.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, a as ApiStream, N as NdjsonEvent } from './index-YFW4xNti.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/data.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-JRPLPAIX.js';
2
- import './chunk-PIPE5OML.js';
1
+ import { openStream } from './chunk-ER7WV43R.js';
2
+ import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/data.ts
5
5
  var $schemaManifest = { m: "GET", p: "/schema/manifest", d: "aidream", a: "public", o: "exempt", n: "data.schema_manifest" };
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkEV7AXV2X_cjs = require('./chunk-EV7AXV2X.cjs');
4
- require('./chunk-PKYPPATQ.cjs');
3
+ var chunkSME66TWP_cjs = require('./chunk-SME66TWP.cjs');
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 chunkEV7AXV2X_cjs.openStream(api, $sourceCard, args, options);
9
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $generateCard, args, options);
13
+ return chunkSME66TWP_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 chunkEV7AXV2X_cjs.openStream(api, $sourceSet, args, options);
17
+ return chunkSME66TWP_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-YFW4xNti.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BXLIDtlM.cjs';
2
2
  import '@ai-matrx/auth/credentials';
3
3
 
4
4
  /**