@ai-matrx/api 0.1.12 → 0.1.13
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.
- package/CHANGELOG.md +2 -2
- package/dist/account.d.cts +2 -2
- package/dist/account.d.ts +2 -2
- package/dist/agents.cjs +11 -11
- package/dist/agents.d.cts +2 -2
- package/dist/agents.d.ts +2 -2
- package/dist/agents.js +1 -1
- package/dist/ai.cjs +2 -2
- package/dist/ai.d.cts +2 -2
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +1 -1
- package/dist/apps.cjs +5 -5
- package/dist/apps.d.cts +23 -4
- package/dist/apps.d.ts +23 -4
- package/dist/apps.js +1 -1
- package/dist/architecture.cjs +17 -17
- package/dist/architecture.d.cts +9 -9
- package/dist/architecture.d.ts +9 -9
- package/dist/architecture.js +8 -8
- package/dist/audio.cjs +4 -4
- package/dist/audio.d.cts +2 -2
- package/dist/audio.d.ts +2 -2
- package/dist/audio.js +1 -1
- package/dist/chat.cjs +11 -11
- package/dist/chat.d.cts +2 -2
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +1 -1
- package/dist/{chunk-U63KIQSS.cjs → chunk-3DHXXNJP.cjs} +1 -1
- package/dist/{chunk-ILLQUHLF.js → chunk-YLAE6EOH.js} +1 -1
- package/dist/code.cjs +6 -6
- package/dist/code.d.cts +2 -2
- package/dist/code.d.ts +2 -2
- package/dist/code.js +1 -1
- package/dist/commerce.d.cts +2 -2
- package/dist/commerce.d.ts +2 -2
- package/dist/communications.cjs +4 -4
- package/dist/communications.d.cts +2 -2
- package/dist/communications.d.ts +2 -2
- package/dist/communications.js +1 -1
- package/dist/computer.cjs +104 -3
- package/dist/computer.d.cts +368 -5
- package/dist/computer.d.ts +368 -5
- package/dist/computer.js +86 -2
- package/dist/content.cjs +4 -4
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +1 -1
- package/dist/crm.cjs +2 -2
- package/dist/crm.d.cts +2 -2
- package/dist/crm.d.ts +2 -2
- package/dist/crm.js +1 -1
- package/dist/data.cjs +3 -3
- package/dist/data.d.cts +2 -2
- package/dist/data.d.ts +2 -2
- package/dist/data.js +1 -1
- package/dist/education.cjs +4 -4
- package/dist/education.d.cts +2 -2
- package/dist/education.d.ts +2 -2
- package/dist/education.js +1 -1
- package/dist/files.cjs +20 -20
- package/dist/files.d.cts +2 -2
- package/dist/files.d.ts +2 -2
- package/dist/files.js +1 -1
- package/dist/human-resources.d.cts +2 -2
- package/dist/human-resources.d.ts +2 -2
- package/dist/{index-BSrN3TFD.d.cts → index-YFW4xNti.d.cts} +2 -2
- package/dist/{index-BSrN3TFD.d.ts → index-YFW4xNti.d.ts} +2 -2
- package/dist/index.cjs +69 -69
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.cts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.js +1 -1
- package/dist/intelligence.cjs +6 -6
- package/dist/intelligence.d.cts +2 -2
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +1 -1
- package/dist/knowledge.cjs +42 -42
- package/dist/knowledge.d.cts +2 -2
- package/dist/knowledge.d.ts +2 -2
- package/dist/knowledge.js +1 -1
- package/dist/legal.cjs +6 -6
- package/dist/legal.d.cts +2 -2
- package/dist/legal.d.ts +2 -2
- package/dist/legal.js +1 -1
- package/dist/marketing.cjs +76 -76
- package/dist/marketing.d.cts +2 -2
- package/dist/marketing.d.ts +2 -2
- package/dist/marketing.js +1 -1
- package/dist/masterwork.cjs +32 -32
- package/dist/masterwork.d.cts +2 -2
- package/dist/masterwork.d.ts +2 -2
- package/dist/masterwork.js +1 -1
- package/dist/media.cjs +11 -11
- package/dist/media.d.cts +2 -2
- package/dist/media.d.ts +2 -2
- package/dist/media.js +1 -1
- package/dist/platform.cjs +3 -3
- package/dist/platform.d.cts +2 -2
- package/dist/platform.d.ts +2 -2
- package/dist/platform.js +1 -1
- package/dist/publish.cjs +7 -7
- package/dist/publish.d.cts +2 -2
- package/dist/publish.d.ts +2 -2
- package/dist/publish.js +1 -1
- package/dist/schemas.d.cts +1 -1
- package/dist/schemas.d.ts +1 -1
- package/dist/stream.cjs +10 -10
- package/dist/stream.d.cts +1 -1
- package/dist/stream.d.ts +1 -1
- package/dist/stream.js +1 -1
- package/dist/types.d.cts +412 -17
- package/dist/types.d.ts +412 -17
- package/dist/web.cjs +26 -26
- package/dist/web.d.cts +41 -12
- package/dist/web.d.ts +41 -12
- package/dist/web.js +1 -1
- package/dist/workflows.cjs +13 -13
- package/dist/workflows.d.cts +2 -2
- package/dist/workflows.d.ts +2 -2
- package/dist/workflows.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkMVXD6WI6_cjs = require('./chunk-MVXD6WI6.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk3DHXXNJP_cjs = require('./chunk-3DHXXNJP.cjs');
|
|
5
5
|
var chunkPKYPPATQ_cjs = require('./chunk-PKYPPATQ.cjs');
|
|
6
6
|
var format = require('@ai-matrx/kit/format');
|
|
7
7
|
|
|
@@ -43,7 +43,7 @@ function buildMatrxRequestBody(body, scope) {
|
|
|
43
43
|
}
|
|
44
44
|
const bodyOrganizationId = base.organization_id;
|
|
45
45
|
if (scope.organization_id !== void 0 && bodyOrganizationId !== void 0 && (typeof bodyOrganizationId !== "string" || bodyOrganizationId.trim() !== scope.organization_id)) {
|
|
46
|
-
throw new
|
|
46
|
+
throw new chunk3DHXXNJP_cjs.OrganizationContextError(
|
|
47
47
|
"organization_context_mismatch",
|
|
48
48
|
"Request body organization_id must match the request context organization."
|
|
49
49
|
);
|
|
@@ -115,14 +115,14 @@ function parseMatrxNdjsonResponse(response, signal, hooks = {}) {
|
|
|
115
115
|
};
|
|
116
116
|
async function* events() {
|
|
117
117
|
if (!response.body) {
|
|
118
|
-
throw new
|
|
118
|
+
throw new chunk3DHXXNJP_cjs.BackendApiError({
|
|
119
119
|
code: "internal_error",
|
|
120
120
|
detail: "Response has no body",
|
|
121
121
|
userMessage: "No response received from server"
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
try {
|
|
125
|
-
for await (const envelope of
|
|
125
|
+
for await (const envelope of chunk3DHXXNJP_cjs.readMatrxNdjsonStream(response.body, {
|
|
126
126
|
...signal ? { signal } : {},
|
|
127
127
|
...hooks.onMalformedLine ? { onMalformedLine: hooks.onMalformedLine } : {},
|
|
128
128
|
...hooks.onUnknownEnvelope ? { onUnknownEnvelope: hooks.onUnknownEnvelope } : {}
|
|
@@ -134,7 +134,7 @@ function parseMatrxNdjsonResponse(response, signal, hooks = {}) {
|
|
|
134
134
|
if (signal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
|
-
const transportError = error instanceof
|
|
137
|
+
const transportError = error instanceof chunk3DHXXNJP_cjs.BackendApiError ? error : new chunk3DHXXNJP_cjs.StreamTransportError({
|
|
138
138
|
detail: error instanceof Error ? error.message : "The response stream ended unexpectedly.",
|
|
139
139
|
details: error,
|
|
140
140
|
...ids.requestId ? { requestId: ids.requestId } : {}
|
|
@@ -151,7 +151,7 @@ async function httpErrorFrom(response) {
|
|
|
151
151
|
const serverDetail = await response.json().catch(() => void 0);
|
|
152
152
|
return {
|
|
153
153
|
type: response.status >= 400 && response.status < 500 ? "validation_error" : "http_error",
|
|
154
|
-
message:
|
|
154
|
+
message: chunk3DHXXNJP_cjs.extractMatrxErrorMessage(serverDetail) ?? bareStatusSentence(response.status),
|
|
155
155
|
status: response.status,
|
|
156
156
|
serverDetail
|
|
157
157
|
};
|
|
@@ -159,7 +159,7 @@ async function httpErrorFrom(response) {
|
|
|
159
159
|
async function executeMatrxCall(request, hooks = {}) {
|
|
160
160
|
const upper = request.method.toUpperCase();
|
|
161
161
|
const sendsBody = request.stream || upper !== "GET" && upper !== "HEAD";
|
|
162
|
-
const { response } = await
|
|
162
|
+
const { response } = await chunk3DHXXNJP_cjs.sendOnWire({
|
|
163
163
|
url: request.url,
|
|
164
164
|
method: request.method,
|
|
165
165
|
headers: request.headers,
|
|
@@ -210,11 +210,11 @@ async function sendMatrxRequest(url, init = {}, options = {}) {
|
|
|
210
210
|
headers[name] = value;
|
|
211
211
|
});
|
|
212
212
|
const fetchOptions = {};
|
|
213
|
-
for (const key of
|
|
213
|
+
for (const key of chunk3DHXXNJP_cjs.WIRE_FETCH_OPTION_KEYS) {
|
|
214
214
|
if (init[key] !== void 0) fetchOptions[key] = init[key];
|
|
215
215
|
}
|
|
216
216
|
try {
|
|
217
|
-
const { response } = await
|
|
217
|
+
const { response } = await chunk3DHXXNJP_cjs.sendOnWire({
|
|
218
218
|
url,
|
|
219
219
|
method: init.method ?? "GET",
|
|
220
220
|
fetchOptions,
|
|
@@ -233,7 +233,7 @@ async function sendMatrxRequest(url, init = {}, options = {}) {
|
|
|
233
233
|
throw callerSignal?.reason instanceof Error ? callerSignal.reason : new DOMException("The request was cancelled.", "AbortError");
|
|
234
234
|
}
|
|
235
235
|
if (options.timeoutMs !== void 0 && chunkPKYPPATQ_cjs.isNetError(error) && (error.code === "connect-timeout" || error.code === "total-timeout")) {
|
|
236
|
-
throw new
|
|
236
|
+
throw new chunk3DHXXNJP_cjs.BackendApiError({
|
|
237
237
|
code: "request_timeout",
|
|
238
238
|
detail: `${init.method ?? "GET"} ${url} exceeded ${options.timeoutMs}ms`,
|
|
239
239
|
userMessage: "The request timed out \u2014 please retry.",
|
|
@@ -247,7 +247,7 @@ async function sendMatrxRequest(url, init = {}, options = {}) {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
async function readMatrxJsonResponse(response) {
|
|
250
|
-
if (!response.ok) throw await
|
|
250
|
+
if (!response.ok) throw await chunk3DHXXNJP_cjs.parseHttpError(response);
|
|
251
251
|
if (response.status === 204) return null;
|
|
252
252
|
return await response.json();
|
|
253
253
|
}
|
|
@@ -257,7 +257,7 @@ function classifyStatus(status) {
|
|
|
257
257
|
return status >= 400 && status < 500 ? "validation_error" : "http_error";
|
|
258
258
|
}
|
|
259
259
|
function normalizeMatrxError(err) {
|
|
260
|
-
if (err instanceof
|
|
260
|
+
if (err instanceof chunk3DHXXNJP_cjs.OrganizationContextError) {
|
|
261
261
|
return {
|
|
262
262
|
type: "validation_error",
|
|
263
263
|
message: err.message,
|
|
@@ -269,7 +269,7 @@ function normalizeMatrxError(err) {
|
|
|
269
269
|
if (err instanceof DOMException && err.name === "AbortError") {
|
|
270
270
|
return { type: "abort_error", message: "Request was cancelled." };
|
|
271
271
|
}
|
|
272
|
-
if (err instanceof
|
|
272
|
+
if (err instanceof chunk3DHXXNJP_cjs.MatrxApiError) {
|
|
273
273
|
return {
|
|
274
274
|
type: classifyStatus(err.status),
|
|
275
275
|
message: honestTransportMessage(err.message, err.status),
|
|
@@ -279,7 +279,7 @@ function normalizeMatrxError(err) {
|
|
|
279
279
|
name: err.name
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
|
-
if (err instanceof
|
|
282
|
+
if (err instanceof chunk3DHXXNJP_cjs.BackendApiError) {
|
|
283
283
|
return {
|
|
284
284
|
type: "network_error",
|
|
285
285
|
message: honestTransportMessage(
|
|
@@ -375,26 +375,26 @@ function createMatrxTransport(options) {
|
|
|
375
375
|
}
|
|
376
376
|
const resolve = resolveTarget ?? (() => ({ baseUrl }));
|
|
377
377
|
const resolveVersion = () => {
|
|
378
|
-
if (aiApiVersion === void 0) return
|
|
378
|
+
if (aiApiVersion === void 0) return chunk3DHXXNJP_cjs.MATRX_AI_API_VERSION_DEFAULT;
|
|
379
379
|
return typeof aiApiVersion === "function" ? aiApiVersion() : aiApiVersion;
|
|
380
380
|
};
|
|
381
381
|
const resolveOrganizationId = (callOrganizationId) => {
|
|
382
382
|
if (organizationId === void 0) return null;
|
|
383
|
-
if (callOrganizationId !== null) return
|
|
383
|
+
if (callOrganizationId !== null) return chunk3DHXXNJP_cjs.requireOrganizationContext(callOrganizationId);
|
|
384
384
|
const candidate = typeof organizationId === "function" ? organizationId() : organizationId;
|
|
385
|
-
return
|
|
385
|
+
return chunk3DHXXNJP_cjs.requireOrganizationContext(candidate);
|
|
386
386
|
};
|
|
387
387
|
return {
|
|
388
388
|
async fetch(path, init) {
|
|
389
389
|
const target = await resolve(init);
|
|
390
390
|
const callOrganizationId = readOrganizationHeader(init.headers);
|
|
391
|
-
const versionedPath =
|
|
391
|
+
const versionedPath = chunk3DHXXNJP_cjs.applyAiApiVersion(path, resolveVersion());
|
|
392
392
|
const url = `${target.baseUrl}${versionedPath}`;
|
|
393
393
|
const policyHeaders = stripContentType(target.policyHeaders ?? {});
|
|
394
394
|
let overHeaders = callOrganizationId === null ? policyHeaders : stripOrganizationHeader(policyHeaders);
|
|
395
395
|
const orgId = resolveOrganizationId(callOrganizationId);
|
|
396
396
|
if (orgId !== null) {
|
|
397
|
-
overHeaders =
|
|
397
|
+
overHeaders = chunk3DHXXNJP_cjs.applyOrganizationContextHeader(overHeaders, orgId);
|
|
398
398
|
}
|
|
399
399
|
const wireHeaders = callOrganizationId === null ? { ...init.headers } : stripOrganizationHeader({ ...init.headers });
|
|
400
400
|
const info = {
|
|
@@ -407,7 +407,7 @@ function createMatrxTransport(options) {
|
|
|
407
407
|
diagnostics?.onRequest?.(info);
|
|
408
408
|
let response;
|
|
409
409
|
try {
|
|
410
|
-
({ response } = await
|
|
410
|
+
({ response } = await chunk3DHXXNJP_cjs.sendOnWire(
|
|
411
411
|
{
|
|
412
412
|
url,
|
|
413
413
|
method: init.method,
|
|
@@ -432,11 +432,11 @@ function createMatrxTransport(options) {
|
|
|
432
432
|
}
|
|
433
433
|
if (!response.ok && !expectedErrorStatuses?.includes(response.status)) {
|
|
434
434
|
const serverDetail = await response.clone().json().catch(() => void 0);
|
|
435
|
-
const code =
|
|
435
|
+
const code = chunk3DHXXNJP_cjs.extractMatrxErrorCode(serverDetail);
|
|
436
436
|
diagnostics?.onError?.(
|
|
437
437
|
{
|
|
438
438
|
type: classifyStatus(response.status),
|
|
439
|
-
message:
|
|
439
|
+
message: chunk3DHXXNJP_cjs.extractMatrxErrorMessage(serverDetail) ?? `HTTP ${response.status}`,
|
|
440
440
|
status: response.status,
|
|
441
441
|
serverDetail,
|
|
442
442
|
...code ? { code } : {}
|
|
@@ -715,7 +715,7 @@ async function readServerDetail(response) {
|
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
async function throwApiError(path, response) {
|
|
718
|
-
throw new
|
|
718
|
+
throw new chunk3DHXXNJP_cjs.MatrxApiError({
|
|
719
719
|
status: response.status,
|
|
720
720
|
path,
|
|
721
721
|
serverDetail: await readServerDetail(response)
|
|
@@ -736,7 +736,7 @@ function toRunHandle(response, options) {
|
|
|
736
736
|
return {
|
|
737
737
|
requestId: response.headers.get("X-Request-ID"),
|
|
738
738
|
conversationId: response.headers.get("X-Conversation-ID"),
|
|
739
|
-
events:
|
|
739
|
+
events: chunk3DHXXNJP_cjs.readMatrxNdjsonStream(response.body, {
|
|
740
740
|
...options.signal ? { signal: options.signal } : {},
|
|
741
741
|
...options.maxReadAhead !== void 0 ? { maxReadAhead: options.maxReadAhead } : {},
|
|
742
742
|
...options.onMalformedLine ? { onMalformedLine: options.onMalformedLine } : {},
|
|
@@ -759,7 +759,7 @@ async function requestStream(transport, path, options) {
|
|
|
759
759
|
});
|
|
760
760
|
if (!response.ok) return throwApiError(path, response);
|
|
761
761
|
if (!response.body) {
|
|
762
|
-
throw new
|
|
762
|
+
throw new chunk3DHXXNJP_cjs.MatrxApiError({
|
|
763
763
|
status: response.status,
|
|
764
764
|
path,
|
|
765
765
|
serverDetail: { code: "missing_response_body" },
|
|
@@ -819,7 +819,7 @@ async function getRuntimeOperationStatus(transport, requestId, options = {}) {
|
|
|
819
819
|
{ method: "GET", ...options.signal ? { signal: options.signal } : {} }
|
|
820
820
|
);
|
|
821
821
|
} catch (error) {
|
|
822
|
-
if (error instanceof
|
|
822
|
+
if (error instanceof chunk3DHXXNJP_cjs.MatrxApiError && error.status === 404) return null;
|
|
823
823
|
throw error;
|
|
824
824
|
}
|
|
825
825
|
}
|
|
@@ -834,7 +834,7 @@ async function getRuntimeOperationsByLink(transport, linkKind, linkId, options =
|
|
|
834
834
|
{ method: "GET", ...options.signal ? { signal: options.signal } : {} }
|
|
835
835
|
);
|
|
836
836
|
} catch (error) {
|
|
837
|
-
if (error instanceof
|
|
837
|
+
if (error instanceof chunk3DHXXNJP_cjs.MatrxApiError && error.status === 404) return null;
|
|
838
838
|
throw error;
|
|
839
839
|
}
|
|
840
840
|
}
|
|
@@ -875,7 +875,7 @@ async function* followRuntimeOperationEvents(transport, executionId, options = {
|
|
|
875
875
|
...options.signal ? { signal: options.signal } : {}
|
|
876
876
|
}
|
|
877
877
|
);
|
|
878
|
-
const frames =
|
|
878
|
+
const frames = chunk3DHXXNJP_cjs.readMatrxSseStream(
|
|
879
879
|
response.body,
|
|
880
880
|
options.onIncomplete ? { onIncomplete: options.onIncomplete } : {}
|
|
881
881
|
);
|
|
@@ -1078,7 +1078,7 @@ async function openMatrxStream(transport, path, options = {}) {
|
|
|
1078
1078
|
return toRunHandle(response, options);
|
|
1079
1079
|
}
|
|
1080
1080
|
function withRunOrganization(transport, organizationId) {
|
|
1081
|
-
const orgId =
|
|
1081
|
+
const orgId = chunk3DHXXNJP_cjs.requireOrganizationContext(organizationId);
|
|
1082
1082
|
return {
|
|
1083
1083
|
fetch: (path, init) => transport.fetch(path, {
|
|
1084
1084
|
...init,
|
|
@@ -1105,7 +1105,7 @@ async function followWorkflowRunEvents(transport, runId, options) {
|
|
|
1105
1105
|
throw error;
|
|
1106
1106
|
}
|
|
1107
1107
|
try {
|
|
1108
|
-
for await (const frame of
|
|
1108
|
+
for await (const frame of chunk3DHXXNJP_cjs.readMatrxSseStream(
|
|
1109
1109
|
response.body
|
|
1110
1110
|
)) {
|
|
1111
1111
|
if (frame.event === "end") return { ended: true };
|
|
@@ -1151,7 +1151,7 @@ async function resumeOrRejoin(transport, resumeCall, options) {
|
|
|
1151
1151
|
} catch (error) {
|
|
1152
1152
|
const target = readLiveRunRejoin(error);
|
|
1153
1153
|
if (!target) {
|
|
1154
|
-
if (error instanceof
|
|
1154
|
+
if (error instanceof chunk3DHXXNJP_cjs.MatrxApiError && isResumeConflict(error)) {
|
|
1155
1155
|
return { kind: "resume_conflict", error };
|
|
1156
1156
|
}
|
|
1157
1157
|
throw error;
|
|
@@ -1567,7 +1567,7 @@ async function reportProviderSessionUsage(transport, usage, options = {}) {
|
|
|
1567
1567
|
});
|
|
1568
1568
|
return "ok";
|
|
1569
1569
|
} catch (error) {
|
|
1570
|
-
if (error instanceof
|
|
1570
|
+
if (error instanceof chunk3DHXXNJP_cjs.MatrxApiError) {
|
|
1571
1571
|
const status = error.status;
|
|
1572
1572
|
if (status >= 400 && status < 500 && status !== 401 && status !== 408 && status !== 425 && status !== 429) {
|
|
1573
1573
|
console.warn(`[provider-usage] server refused ${usage.provider} usage ${usage.usage_id} (${status})`);
|
|
@@ -2267,151 +2267,151 @@ Object.defineProperty(exports, "toCredentialsPort", {
|
|
|
2267
2267
|
});
|
|
2268
2268
|
Object.defineProperty(exports, "BackendApiError", {
|
|
2269
2269
|
enumerable: true,
|
|
2270
|
-
get: function () { return
|
|
2270
|
+
get: function () { return chunk3DHXXNJP_cjs.BackendApiError; }
|
|
2271
2271
|
});
|
|
2272
2272
|
Object.defineProperty(exports, "CONTRACT_SHA256", {
|
|
2273
2273
|
enumerable: true,
|
|
2274
|
-
get: function () { return
|
|
2274
|
+
get: function () { return chunk3DHXXNJP_cjs.CONTRACT_SHA256; }
|
|
2275
2275
|
});
|
|
2276
2276
|
Object.defineProperty(exports, "DEPLOYMENTS", {
|
|
2277
2277
|
enumerable: true,
|
|
2278
|
-
get: function () { return
|
|
2278
|
+
get: function () { return chunk3DHXXNJP_cjs.DEPLOYMENTS; }
|
|
2279
2279
|
});
|
|
2280
2280
|
Object.defineProperty(exports, "DOMAINS", {
|
|
2281
2281
|
enumerable: true,
|
|
2282
|
-
get: function () { return
|
|
2282
|
+
get: function () { return chunk3DHXXNJP_cjs.DOMAINS; }
|
|
2283
2283
|
});
|
|
2284
2284
|
Object.defineProperty(exports, "MATRX_AI_API_VERSION_DEFAULT", {
|
|
2285
2285
|
enumerable: true,
|
|
2286
|
-
get: function () { return
|
|
2286
|
+
get: function () { return chunk3DHXXNJP_cjs.MATRX_AI_API_VERSION_DEFAULT; }
|
|
2287
2287
|
});
|
|
2288
2288
|
Object.defineProperty(exports, "MatrxApiError", {
|
|
2289
2289
|
enumerable: true,
|
|
2290
|
-
get: function () { return
|
|
2290
|
+
get: function () { return chunk3DHXXNJP_cjs.MatrxApiError; }
|
|
2291
2291
|
});
|
|
2292
2292
|
Object.defineProperty(exports, "OrganizationContextError", {
|
|
2293
2293
|
enumerable: true,
|
|
2294
|
-
get: function () { return
|
|
2294
|
+
get: function () { return chunk3DHXXNJP_cjs.OrganizationContextError; }
|
|
2295
2295
|
});
|
|
2296
2296
|
Object.defineProperty(exports, "StreamTransportError", {
|
|
2297
2297
|
enumerable: true,
|
|
2298
|
-
get: function () { return
|
|
2298
|
+
get: function () { return chunk3DHXXNJP_cjs.StreamTransportError; }
|
|
2299
2299
|
});
|
|
2300
2300
|
Object.defineProperty(exports, "V2_COVERED_AI_PATH_TEMPLATES", {
|
|
2301
2301
|
enumerable: true,
|
|
2302
|
-
get: function () { return
|
|
2302
|
+
get: function () { return chunk3DHXXNJP_cjs.V2_COVERED_AI_PATH_TEMPLATES; }
|
|
2303
2303
|
});
|
|
2304
2304
|
Object.defineProperty(exports, "aiVersionPathOverrides", {
|
|
2305
2305
|
enumerable: true,
|
|
2306
|
-
get: function () { return
|
|
2306
|
+
get: function () { return chunk3DHXXNJP_cjs.aiVersionPathOverrides; }
|
|
2307
2307
|
});
|
|
2308
2308
|
Object.defineProperty(exports, "applyAiApiVersion", {
|
|
2309
2309
|
enumerable: true,
|
|
2310
|
-
get: function () { return
|
|
2310
|
+
get: function () { return chunk3DHXXNJP_cjs.applyAiApiVersion; }
|
|
2311
2311
|
});
|
|
2312
2312
|
Object.defineProperty(exports, "applyOrganizationContextHeader", {
|
|
2313
2313
|
enumerable: true,
|
|
2314
|
-
get: function () { return
|
|
2314
|
+
get: function () { return chunk3DHXXNJP_cjs.applyOrganizationContextHeader; }
|
|
2315
2315
|
});
|
|
2316
2316
|
Object.defineProperty(exports, "assertOrganizationMatchesOperation", {
|
|
2317
2317
|
enumerable: true,
|
|
2318
|
-
get: function () { return
|
|
2318
|
+
get: function () { return chunk3DHXXNJP_cjs.assertOrganizationMatchesOperation; }
|
|
2319
2319
|
});
|
|
2320
2320
|
Object.defineProperty(exports, "assertQueryOrganizationMatchesContext", {
|
|
2321
2321
|
enumerable: true,
|
|
2322
|
-
get: function () { return
|
|
2322
|
+
get: function () { return chunk3DHXXNJP_cjs.assertQueryOrganizationMatchesContext; }
|
|
2323
2323
|
});
|
|
2324
2324
|
Object.defineProperty(exports, "createApi", {
|
|
2325
2325
|
enumerable: true,
|
|
2326
|
-
get: function () { return
|
|
2326
|
+
get: function () { return chunk3DHXXNJP_cjs.createApi; }
|
|
2327
2327
|
});
|
|
2328
2328
|
Object.defineProperty(exports, "createOrganizationOperation", {
|
|
2329
2329
|
enumerable: true,
|
|
2330
|
-
get: function () { return
|
|
2330
|
+
get: function () { return chunk3DHXXNJP_cjs.createOrganizationOperation; }
|
|
2331
2331
|
});
|
|
2332
2332
|
Object.defineProperty(exports, "describeBackendFailure", {
|
|
2333
2333
|
enumerable: true,
|
|
2334
|
-
get: function () { return
|
|
2334
|
+
get: function () { return chunk3DHXXNJP_cjs.describeBackendFailure; }
|
|
2335
2335
|
});
|
|
2336
2336
|
Object.defineProperty(exports, "extractMatrxErrorCode", {
|
|
2337
2337
|
enumerable: true,
|
|
2338
|
-
get: function () { return
|
|
2338
|
+
get: function () { return chunk3DHXXNJP_cjs.extractMatrxErrorCode; }
|
|
2339
2339
|
});
|
|
2340
2340
|
Object.defineProperty(exports, "extractMatrxErrorMessage", {
|
|
2341
2341
|
enumerable: true,
|
|
2342
|
-
get: function () { return
|
|
2342
|
+
get: function () { return chunk3DHXXNJP_cjs.extractMatrxErrorMessage; }
|
|
2343
2343
|
});
|
|
2344
2344
|
Object.defineProperty(exports, "fetchWithMatrxProtocolFallback", {
|
|
2345
2345
|
enumerable: true,
|
|
2346
|
-
get: function () { return
|
|
2346
|
+
get: function () { return chunk3DHXXNJP_cjs.fetchWithMatrxProtocolFallback; }
|
|
2347
2347
|
});
|
|
2348
2348
|
Object.defineProperty(exports, "getUserMessage", {
|
|
2349
2349
|
enumerable: true,
|
|
2350
|
-
get: function () { return
|
|
2350
|
+
get: function () { return chunk3DHXXNJP_cjs.getUserMessage; }
|
|
2351
2351
|
});
|
|
2352
2352
|
Object.defineProperty(exports, "isBinaryType", {
|
|
2353
2353
|
enumerable: true,
|
|
2354
|
-
get: function () { return
|
|
2354
|
+
get: function () { return chunk3DHXXNJP_cjs.isBinaryType; }
|
|
2355
2355
|
});
|
|
2356
2356
|
Object.defineProperty(exports, "isCoveredAiPath", {
|
|
2357
2357
|
enumerable: true,
|
|
2358
|
-
get: function () { return
|
|
2358
|
+
get: function () { return chunk3DHXXNJP_cjs.isCoveredAiPath; }
|
|
2359
2359
|
});
|
|
2360
2360
|
Object.defineProperty(exports, "isGenericUserMessage", {
|
|
2361
2361
|
enumerable: true,
|
|
2362
|
-
get: function () { return
|
|
2362
|
+
get: function () { return chunk3DHXXNJP_cjs.isGenericUserMessage; }
|
|
2363
2363
|
});
|
|
2364
2364
|
Object.defineProperty(exports, "isStreamTransportLost", {
|
|
2365
2365
|
enumerable: true,
|
|
2366
|
-
get: function () { return
|
|
2366
|
+
get: function () { return chunk3DHXXNJP_cjs.isStreamTransportLost; }
|
|
2367
2367
|
});
|
|
2368
2368
|
Object.defineProperty(exports, "isV2Path", {
|
|
2369
2369
|
enumerable: true,
|
|
2370
|
-
get: function () { return
|
|
2370
|
+
get: function () { return chunk3DHXXNJP_cjs.isV2Path; }
|
|
2371
2371
|
});
|
|
2372
2372
|
Object.defineProperty(exports, "openJsonOrStream", {
|
|
2373
2373
|
enumerable: true,
|
|
2374
|
-
get: function () { return
|
|
2374
|
+
get: function () { return chunk3DHXXNJP_cjs.openJsonOrStream; }
|
|
2375
2375
|
});
|
|
2376
2376
|
Object.defineProperty(exports, "openStream", {
|
|
2377
2377
|
enumerable: true,
|
|
2378
|
-
get: function () { return
|
|
2378
|
+
get: function () { return chunk3DHXXNJP_cjs.openStream; }
|
|
2379
2379
|
});
|
|
2380
2380
|
Object.defineProperty(exports, "parseCallApiError", {
|
|
2381
2381
|
enumerable: true,
|
|
2382
|
-
get: function () { return
|
|
2382
|
+
get: function () { return chunk3DHXXNJP_cjs.parseCallApiError; }
|
|
2383
2383
|
});
|
|
2384
2384
|
Object.defineProperty(exports, "parseHttpError", {
|
|
2385
2385
|
enumerable: true,
|
|
2386
|
-
get: function () { return
|
|
2386
|
+
get: function () { return chunk3DHXXNJP_cjs.parseHttpError; }
|
|
2387
2387
|
});
|
|
2388
2388
|
Object.defineProperty(exports, "parseHttpErrorBody", {
|
|
2389
2389
|
enumerable: true,
|
|
2390
|
-
get: function () { return
|
|
2390
|
+
get: function () { return chunk3DHXXNJP_cjs.parseHttpErrorBody; }
|
|
2391
2391
|
});
|
|
2392
2392
|
Object.defineProperty(exports, "parsePersistedBackendError", {
|
|
2393
2393
|
enumerable: true,
|
|
2394
|
-
get: function () { return
|
|
2394
|
+
get: function () { return chunk3DHXXNJP_cjs.parsePersistedBackendError; }
|
|
2395
2395
|
});
|
|
2396
2396
|
Object.defineProperty(exports, "parseStreamError", {
|
|
2397
2397
|
enumerable: true,
|
|
2398
|
-
get: function () { return
|
|
2398
|
+
get: function () { return chunk3DHXXNJP_cjs.parseStreamError; }
|
|
2399
2399
|
});
|
|
2400
2400
|
Object.defineProperty(exports, "requireOrganizationContext", {
|
|
2401
2401
|
enumerable: true,
|
|
2402
|
-
get: function () { return
|
|
2402
|
+
get: function () { return chunk3DHXXNJP_cjs.requireOrganizationContext; }
|
|
2403
2403
|
});
|
|
2404
2404
|
Object.defineProperty(exports, "toV1FallbackUrl", {
|
|
2405
2405
|
enumerable: true,
|
|
2406
|
-
get: function () { return
|
|
2406
|
+
get: function () { return chunk3DHXXNJP_cjs.toV1FallbackUrl; }
|
|
2407
2407
|
});
|
|
2408
2408
|
Object.defineProperty(exports, "toV2Path", {
|
|
2409
2409
|
enumerable: true,
|
|
2410
|
-
get: function () { return
|
|
2410
|
+
get: function () { return chunk3DHXXNJP_cjs.toV2Path; }
|
|
2411
2411
|
});
|
|
2412
2412
|
Object.defineProperty(exports, "unwrapUpstreamError", {
|
|
2413
2413
|
enumerable: true,
|
|
2414
|
-
get: function () { return
|
|
2414
|
+
get: function () { return chunk3DHXXNJP_cjs.unwrapUpstreamError; }
|
|
2415
2415
|
});
|
|
2416
2416
|
Object.defineProperty(exports, "AbortedError", {
|
|
2417
2417
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, U as UploadProgress, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-
|
|
2
|
-
export { A as Api, e as ApiRequestInfo, a as ApiStream, f as AuthTier, g as CONTRACT_SHA256, C as CallOptions, h as CreateApiOptions, D as DEPLOYMENTS, i as DOMAINS, j as DeploymentName, E as Environment, H as HttpMethod, J as JsonOrStream, N as NdjsonEvent, O as OperationArgs, k as OperationDescriptor, l as OrgRule, S as SseEvent, m as StreamKind, n as createApi, o as isBinaryType, p as openJsonOrStream, q as openStream } from './index-
|
|
1
|
+
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, U as UploadProgress, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-YFW4xNti.cjs';
|
|
2
|
+
export { A as Api, e as ApiRequestInfo, a as ApiStream, f as AuthTier, g as CONTRACT_SHA256, C as CallOptions, h as CreateApiOptions, D as DEPLOYMENTS, i as DOMAINS, j as DeploymentName, E as Environment, H as HttpMethod, J as JsonOrStream, N as NdjsonEvent, O as OperationArgs, k as OperationDescriptor, l as OrgRule, S as SseEvent, m as StreamKind, n as createApi, o as isBinaryType, p as openJsonOrStream, q as openStream } from './index-YFW4xNti.cjs';
|
|
3
3
|
import { CredentialsPort } from '@ai-matrx/auth/credentials';
|
|
4
4
|
export { API_KEY_PREFIX, CredentialsPort, CredentialsSetting, MATRX_HEADERS, MatrxCredential, MatrxCredentialKind, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
|
|
5
5
|
import { ResilientFetchOptions, ResilientFetchResult } from './net.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, U as UploadProgress, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-
|
|
2
|
-
export { A as Api, e as ApiRequestInfo, a as ApiStream, f as AuthTier, g as CONTRACT_SHA256, C as CallOptions, h as CreateApiOptions, D as DEPLOYMENTS, i as DOMAINS, j as DeploymentName, E as Environment, H as HttpMethod, J as JsonOrStream, N as NdjsonEvent, O as OperationArgs, k as OperationDescriptor, l as OrgRule, S as SseEvent, m as StreamKind, n as createApi, o as isBinaryType, p as openJsonOrStream, q as openStream } from './index-
|
|
1
|
+
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, U as UploadProgress, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-YFW4xNti.js';
|
|
2
|
+
export { A as Api, e as ApiRequestInfo, a as ApiStream, f as AuthTier, g as CONTRACT_SHA256, C as CallOptions, h as CreateApiOptions, D as DEPLOYMENTS, i as DOMAINS, j as DeploymentName, E as Environment, H as HttpMethod, J as JsonOrStream, N as NdjsonEvent, O as OperationArgs, k as OperationDescriptor, l as OrgRule, S as SseEvent, m as StreamKind, n as createApi, o as isBinaryType, p as openJsonOrStream, q as openStream } from './index-YFW4xNti.js';
|
|
3
3
|
import { CredentialsPort } from '@ai-matrx/auth/credentials';
|
|
4
4
|
export { API_KEY_PREFIX, CredentialsPort, CredentialsSetting, MATRX_HEADERS, MatrxCredential, MatrxCredentialKind, credentialToHeaders, toCredentialsPort } from '@ai-matrx/auth/credentials';
|
|
5
5
|
import { ResilientFetchOptions, ResilientFetchResult } from './net.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { API_KEY_PREFIX, MATRX_HEADERS, credentialToHeaders, toCredentialsPort } from './chunk-7MZPBCFV.js';
|
|
2
|
-
import { OrganizationContextError, sendOnWire, WIRE_FETCH_OPTION_KEYS, BackendApiError, parseHttpError, MatrxApiError, applyAiApiVersion, applyOrganizationContextHeader, extractMatrxErrorCode, extractMatrxErrorMessage, readMatrxNdjsonStream, readMatrxSseStream, requireOrganizationContext, MATRX_AI_API_VERSION_DEFAULT, StreamTransportError } from './chunk-
|
|
3
|
-
export { BackendApiError, CONTRACT_SHA256, DEPLOYMENTS, DOMAINS, MATRX_AI_API_VERSION_DEFAULT, MatrxApiError, OrganizationContextError, StreamTransportError, V2_COVERED_AI_PATH_TEMPLATES, aiVersionPathOverrides, applyAiApiVersion, applyOrganizationContextHeader, assertOrganizationMatchesOperation, assertQueryOrganizationMatchesContext, createApi, createOrganizationOperation, describeBackendFailure, extractMatrxErrorCode, extractMatrxErrorMessage, fetchWithMatrxProtocolFallback, getUserMessage, isBinaryType, isCoveredAiPath, isGenericUserMessage, isStreamTransportLost, isV2Path, openJsonOrStream, openStream, parseCallApiError, parseHttpError, parseHttpErrorBody, parsePersistedBackendError, parseStreamError, requireOrganizationContext, toV1FallbackUrl, toV2Path, unwrapUpstreamError } from './chunk-
|
|
2
|
+
import { OrganizationContextError, sendOnWire, WIRE_FETCH_OPTION_KEYS, BackendApiError, parseHttpError, MatrxApiError, applyAiApiVersion, applyOrganizationContextHeader, extractMatrxErrorCode, extractMatrxErrorMessage, readMatrxNdjsonStream, readMatrxSseStream, requireOrganizationContext, MATRX_AI_API_VERSION_DEFAULT, StreamTransportError } from './chunk-YLAE6EOH.js';
|
|
3
|
+
export { BackendApiError, CONTRACT_SHA256, DEPLOYMENTS, DOMAINS, MATRX_AI_API_VERSION_DEFAULT, MatrxApiError, OrganizationContextError, StreamTransportError, V2_COVERED_AI_PATH_TEMPLATES, aiVersionPathOverrides, applyAiApiVersion, applyOrganizationContextHeader, assertOrganizationMatchesOperation, assertQueryOrganizationMatchesContext, createApi, createOrganizationOperation, describeBackendFailure, extractMatrxErrorCode, extractMatrxErrorMessage, fetchWithMatrxProtocolFallback, getUserMessage, isBinaryType, isCoveredAiPath, isGenericUserMessage, isStreamTransportLost, isV2Path, openJsonOrStream, openStream, parseCallApiError, parseHttpError, parseHttpErrorBody, parsePersistedBackendError, parseStreamError, requireOrganizationContext, toV1FallbackUrl, toV2Path, unwrapUpstreamError } from './chunk-YLAE6EOH.js';
|
|
4
4
|
import { isNetError, extractErrorMessage } from './chunk-PIPE5OML.js';
|
|
5
5
|
export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetworkError, OfflineError, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, monitorStream, resilientFetch, toNetError, withRetry } from './chunk-PIPE5OML.js';
|
|
6
6
|
import { formatDurationSeconds } from '@ai-matrx/kit/format';
|
package/dist/integrations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3DHXXNJP_cjs = require('./chunk-3DHXXNJP.cjs');
|
|
4
4
|
require('./chunk-PKYPPATQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/integrations.ts
|
|
@@ -3634,11 +3634,11 @@ function bingIntegrationsDisconnect(api, args, options) {
|
|
|
3634
3634
|
}
|
|
3635
3635
|
var $importNotionZip = { m: "POST", p: "/notion-import/zip", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "integrations.import_notion_zip" };
|
|
3636
3636
|
function importNotionZip(api, args, options) {
|
|
3637
|
-
return
|
|
3637
|
+
return chunk3DHXXNJP_cjs.openStream(api, $importNotionZip, args, options);
|
|
3638
3638
|
}
|
|
3639
3639
|
var $importNotionConnected = { m: "POST", p: "/notion-import/connected", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "integrations.import_notion_connected" };
|
|
3640
3640
|
function importNotionConnected(api, args, options) {
|
|
3641
|
-
return
|
|
3641
|
+
return chunk3DHXXNJP_cjs.openStream(api, $importNotionConnected, args, options);
|
|
3642
3642
|
}
|
|
3643
3643
|
var TABLE = {
|
|
3644
3644
|
"GET /ebay/account-deletion": $ebayAccountDeletionChallenge,
|
package/dist/integrations.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-YFW4xNti.cjs';
|
|
2
2
|
import { JsonValue, CalendarLocalRefreshResult, CalendarCreateResult, CalendarEventAttendee, StorageImportResult } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
-
* CONTRACT_SHA256
|
|
7
|
+
* CONTRACT_SHA256 d1dd65662e3a41431aaf8b122d973c58c27ce4310caeb89ba3abd72b229a7383
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** Safe aggregate status projection for AWeber's fixed status page. */
|
package/dist/integrations.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-YFW4xNti.js';
|
|
2
2
|
import { JsonValue, CalendarLocalRefreshResult, CalendarCreateResult, CalendarEventAttendee, StorageImportResult } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
-
* CONTRACT_SHA256
|
|
7
|
+
* CONTRACT_SHA256 d1dd65662e3a41431aaf8b122d973c58c27ce4310caeb89ba3abd72b229a7383
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/** Safe aggregate status projection for AWeber's fixed status page. */
|
package/dist/integrations.js
CHANGED
package/dist/intelligence.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3DHXXNJP_cjs = require('./chunk-3DHXXNJP.cjs');
|
|
4
4
|
require('./chunk-PKYPPATQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/intelligence/keys.generated.ts
|
|
@@ -717,7 +717,7 @@ function getAgentCalibration(api, args, options) {
|
|
|
717
717
|
}
|
|
718
718
|
var $createDecision = { m: "POST", p: "/ai/decisions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.create_decision" };
|
|
719
719
|
function createDecision(api, args, options) {
|
|
720
|
-
return
|
|
720
|
+
return chunk3DHXXNJP_cjs.openStream(api, $createDecision, args, options);
|
|
721
721
|
}
|
|
722
722
|
var $readDecision = { m: "GET", p: "/ai/decisions/{execution_id}", d: "aidream", a: "guest", o: "required", n: "intelligence.read_decision" };
|
|
723
723
|
function readDecision(api, args, options) {
|
|
@@ -865,11 +865,11 @@ function captureProvisionDoor(api, args, options) {
|
|
|
865
865
|
}
|
|
866
866
|
var $runInitial = { m: "POST", p: "/agent-iteration/run-initial", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.run_initial" };
|
|
867
867
|
function runInitial(api, args, options) {
|
|
868
|
-
return
|
|
868
|
+
return chunk3DHXXNJP_cjs.openStream(api, $runInitial, args, options);
|
|
869
869
|
}
|
|
870
870
|
var $runFeedback = { m: "POST", p: "/agent-iteration/feedback", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.run_feedback" };
|
|
871
871
|
function runFeedback(api, args, options) {
|
|
872
|
-
return
|
|
872
|
+
return chunk3DHXXNJP_cjs.openStream(api, $runFeedback, args, options);
|
|
873
873
|
}
|
|
874
874
|
var $commitChoice = { m: "POST", p: "/agent-iteration/commit-choice", d: "aidream", a: "guest", o: "required", n: "intelligence.commit_choice" };
|
|
875
875
|
function commitChoice(api, args, options) {
|
|
@@ -1025,7 +1025,7 @@ function getMandateRun(api, args, options) {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
var $replayMandateRun = { m: "POST", p: "/mandates/runs/{conversation_id}/replay", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.replay_mandate_run" };
|
|
1027
1027
|
function replayMandateRun(api, args, options) {
|
|
1028
|
-
return
|
|
1028
|
+
return chunk3DHXXNJP_cjs.openStream(api, $replayMandateRun, args, options);
|
|
1029
1029
|
}
|
|
1030
1030
|
var $getMandateRunResult = { m: "GET", p: "/mandates/runs/{request_id}/result", d: "aidream", a: "guest", o: "optional", n: "intelligence.get_mandate_run_result" };
|
|
1031
1031
|
function getMandateRunResult(api, args, options) {
|
|
@@ -1033,7 +1033,7 @@ function getMandateRunResult(api, args, options) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
var $answerMandateRun = { m: "POST", p: "/mandates/runs/{request_id}/answer", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.answer_mandate_run" };
|
|
1035
1035
|
function answerMandateRun(api, args, options) {
|
|
1036
|
-
return
|
|
1036
|
+
return chunk3DHXXNJP_cjs.openStream(api, $answerMandateRun, args, options);
|
|
1037
1037
|
}
|
|
1038
1038
|
var $getMandateRuns = { m: "GET", p: "/mandates/{mandate_key}/runs", d: "aidream", a: "guest", o: "optional", n: "intelligence.get_mandate_runs" };
|
|
1039
1039
|
function getMandateRuns(api, args, options) {
|
package/dist/intelligence.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-YFW4xNti.cjs';
|
|
2
2
|
import { JsonValue, MandateTestHolder } from './schemas.cjs';
|
|
3
3
|
export { A as ALL_MANDATE_KEYS, D as DYNAMIC_MANDATE_FAMILIES, a as DynamicMandateFamilyPrefix, b as DynamicMandateKey, M as MANDATE_FAMILIES, c as MANDATE_KEYS, d as MANDATE_KEYS_META, e as MandateFamilyMember, f as MandateFamilyPrefix, g as MandateKey, R as RETIRING_MANDATE_KEYS, m as mandateKeyOfApp, h as mandateKeyOfShortcut } from './keys.generated-DZUiM-uA.cjs';
|
|
4
4
|
import '@ai-matrx/auth/credentials';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
8
|
-
* CONTRACT_SHA256
|
|
8
|
+
* CONTRACT_SHA256 d1dd65662e3a41431aaf8b122d973c58c27ce4310caeb89ba3abd72b229a7383
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/** The floor math, in full, with its inputs. */
|
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-YFW4xNti.js';
|
|
2
2
|
import { JsonValue, MandateTestHolder } from './schemas.js';
|
|
3
3
|
export { A as ALL_MANDATE_KEYS, D as DYNAMIC_MANDATE_FAMILIES, a as DynamicMandateFamilyPrefix, b as DynamicMandateKey, M as MANDATE_FAMILIES, c as MANDATE_KEYS, d as MANDATE_KEYS_META, e as MandateFamilyMember, f as MandateFamilyPrefix, g as MandateKey, R as RETIRING_MANDATE_KEYS, m as mandateKeyOfApp, h as mandateKeyOfShortcut } from './keys.generated-DZUiM-uA.js';
|
|
4
4
|
import '@ai-matrx/auth/credentials';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
8
|
-
* CONTRACT_SHA256
|
|
8
|
+
* CONTRACT_SHA256 d1dd65662e3a41431aaf8b122d973c58c27ce4310caeb89ba3abd72b229a7383
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/** The floor math, in full, with its inputs. */
|
package/dist/intelligence.js
CHANGED