@ai-matrx/api 0.1.25 → 0.1.27
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 +43 -1
- 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 +2 -2
- package/dist/apps.d.ts +2 -2
- package/dist/apps.js +1 -1
- package/dist/architecture.cjs +19 -19
- package/dist/architecture.d.cts +13 -9
- package/dist/architecture.d.ts +13 -9
- package/dist/architecture.js +8 -8
- package/dist/audio.cjs +39 -39
- package/dist/audio.d.cts +2 -2
- package/dist/audio.d.ts +2 -2
- package/dist/audio.js +2 -2
- 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-3HS6725N.js → chunk-6GYZDL2H.js} +1 -1
- package/dist/{chunk-HPR4EWCK.cjs → chunk-76S6F7O3.cjs} +4 -4
- package/dist/{chunk-HM5A33QV.cjs → chunk-BHSHMV22.cjs} +1 -1
- package/dist/{chunk-PFEPI7C3.js → chunk-G6FXF44G.js} +1 -1
- package/dist/{chunk-OYD4PTWW.js → chunk-MFZXWYK6.js} +1 -1
- package/dist/{chunk-SZMLSYJK.cjs → chunk-MKN4EXSQ.cjs} +54 -71
- package/dist/{chunk-UOIMSC67.cjs → chunk-OVQM6CSX.cjs} +3 -3
- package/dist/{chunk-OAPV5ZK5.js → chunk-OWI6FDHV.js} +35 -52
- 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 +4 -4
- package/dist/computer.d.cts +2 -2
- package/dist/computer.d.ts +2 -2
- package/dist/computer.js +1 -1
- 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 +4 -4
- 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 +228 -228
- package/dist/files.d.cts +36 -104
- package/dist/files.d.ts +36 -104
- package/dist/files.js +2 -2
- package/dist/human-resources.d.cts +2 -2
- package/dist/human-resources.d.ts +2 -2
- package/dist/{index-BluxzzHL.d.cts → index-DseWSnYe.d.cts} +2 -2
- package/dist/{index-BluxzzHL.d.ts → index-DseWSnYe.d.ts} +2 -2
- package/dist/index.cjs +58 -58
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/integrations.cjs +5 -5
- 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 +78 -78
- 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 +27 -27
- package/dist/platform.d.cts +2 -2
- package/dist/platform.d.ts +2 -2
- package/dist/platform.js +2 -2
- 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/recording.cjs +17 -17
- package/dist/recording.js +4 -4
- 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 +7 -7
- package/dist/types.d.ts +7 -7
- package/dist/web.cjs +26 -26
- package/dist/web.d.cts +2 -2
- package/dist/web.d.ts +2 -2
- 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/knob-declaration.json +12 -0
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkFNIYADWI_cjs = require('./chunk-FNIYADWI.cjs');
|
|
4
4
|
var chunkMVXD6WI6_cjs = require('./chunk-MVXD6WI6.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkBHSHMV22_cjs = require('./chunk-BHSHMV22.cjs');
|
|
6
6
|
var chunk2SXAAKGV_cjs = require('./chunk-2SXAAKGV.cjs');
|
|
7
7
|
var format = require('@ai-matrx/kit/format');
|
|
8
8
|
|
|
@@ -44,7 +44,7 @@ function buildMatrxRequestBody(body, scope) {
|
|
|
44
44
|
}
|
|
45
45
|
const bodyOrganizationId = base.organization_id;
|
|
46
46
|
if (scope.organization_id !== void 0 && bodyOrganizationId !== void 0 && (typeof bodyOrganizationId !== "string" || bodyOrganizationId.trim() !== scope.organization_id)) {
|
|
47
|
-
throw new
|
|
47
|
+
throw new chunkBHSHMV22_cjs.OrganizationContextError(
|
|
48
48
|
"organization_context_mismatch",
|
|
49
49
|
"Request body organization_id must match the request context organization."
|
|
50
50
|
);
|
|
@@ -116,14 +116,14 @@ function parseMatrxNdjsonResponse(response, signal, hooks = {}) {
|
|
|
116
116
|
};
|
|
117
117
|
async function* events() {
|
|
118
118
|
if (!response.body) {
|
|
119
|
-
throw new
|
|
119
|
+
throw new chunkBHSHMV22_cjs.BackendApiError({
|
|
120
120
|
code: "internal_error",
|
|
121
121
|
detail: "Response has no body",
|
|
122
122
|
userMessage: "No response received from server"
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
try {
|
|
126
|
-
for await (const envelope of
|
|
126
|
+
for await (const envelope of chunkBHSHMV22_cjs.readMatrxNdjsonStream(response.body, {
|
|
127
127
|
...signal ? { signal } : {},
|
|
128
128
|
...hooks.onMalformedLine ? { onMalformedLine: hooks.onMalformedLine } : {},
|
|
129
129
|
...hooks.onUnknownEnvelope ? { onUnknownEnvelope: hooks.onUnknownEnvelope } : {}
|
|
@@ -135,7 +135,7 @@ function parseMatrxNdjsonResponse(response, signal, hooks = {}) {
|
|
|
135
135
|
if (signal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
|
-
const transportError = error instanceof
|
|
138
|
+
const transportError = error instanceof chunkBHSHMV22_cjs.BackendApiError ? error : new chunkBHSHMV22_cjs.StreamTransportError({
|
|
139
139
|
detail: error instanceof Error ? error.message : "The response stream ended unexpectedly.",
|
|
140
140
|
details: error,
|
|
141
141
|
...ids.requestId ? { requestId: ids.requestId } : {}
|
|
@@ -152,7 +152,7 @@ async function httpErrorFrom(response) {
|
|
|
152
152
|
const serverDetail = await response.json().catch(() => void 0);
|
|
153
153
|
return {
|
|
154
154
|
type: response.status >= 400 && response.status < 500 ? "validation_error" : "http_error",
|
|
155
|
-
message:
|
|
155
|
+
message: chunkBHSHMV22_cjs.extractMatrxErrorMessage(serverDetail) ?? bareStatusSentence(response.status),
|
|
156
156
|
status: response.status,
|
|
157
157
|
serverDetail
|
|
158
158
|
};
|
|
@@ -160,7 +160,7 @@ async function httpErrorFrom(response) {
|
|
|
160
160
|
async function executeMatrxCall(request, hooks = {}) {
|
|
161
161
|
const upper = request.method.toUpperCase();
|
|
162
162
|
const sendsBody = request.stream || upper !== "GET" && upper !== "HEAD";
|
|
163
|
-
const { response } = await
|
|
163
|
+
const { response } = await chunkBHSHMV22_cjs.sendOnWire({
|
|
164
164
|
url: request.url,
|
|
165
165
|
method: request.method,
|
|
166
166
|
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 chunkBHSHMV22_cjs.WIRE_FETCH_OPTION_KEYS) {
|
|
214
214
|
if (init[key] !== void 0) fetchOptions[key] = init[key];
|
|
215
215
|
}
|
|
216
216
|
try {
|
|
217
|
-
const { response, controller } = await
|
|
217
|
+
const { response, controller } = await chunkBHSHMV22_cjs.sendOnWire({
|
|
218
218
|
url,
|
|
219
219
|
method: init.method ?? "GET",
|
|
220
220
|
fetchOptions,
|
|
@@ -237,7 +237,7 @@ async function sendMatrxRequest(url, init = {}, options = {}) {
|
|
|
237
237
|
throw callerSignal?.reason instanceof Error ? callerSignal.reason : new DOMException("The request was cancelled.", "AbortError");
|
|
238
238
|
}
|
|
239
239
|
if (options.timeoutMs !== void 0 && chunk2SXAAKGV_cjs.isNetError(error) && (error.code === "connect-timeout" || error.code === "total-timeout")) {
|
|
240
|
-
throw new
|
|
240
|
+
throw new chunkBHSHMV22_cjs.BackendApiError({
|
|
241
241
|
code: "request_timeout",
|
|
242
242
|
detail: `${init.method ?? "GET"} ${url} exceeded ${options.timeoutMs}ms`,
|
|
243
243
|
userMessage: "The request timed out \u2014 please retry.",
|
|
@@ -251,7 +251,7 @@ async function sendMatrxRequest(url, init = {}, options = {}) {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
async function readMatrxJsonResponse(response) {
|
|
254
|
-
if (!response.ok) throw await
|
|
254
|
+
if (!response.ok) throw await chunkBHSHMV22_cjs.parseHttpError(response);
|
|
255
255
|
if (response.status === 204) return null;
|
|
256
256
|
return await response.json();
|
|
257
257
|
}
|
|
@@ -261,7 +261,7 @@ function classifyStatus(status) {
|
|
|
261
261
|
return status >= 400 && status < 500 ? "validation_error" : "http_error";
|
|
262
262
|
}
|
|
263
263
|
function normalizeMatrxError(err) {
|
|
264
|
-
if (err instanceof
|
|
264
|
+
if (err instanceof chunkBHSHMV22_cjs.OrganizationContextError) {
|
|
265
265
|
return {
|
|
266
266
|
type: "validation_error",
|
|
267
267
|
message: err.message,
|
|
@@ -273,7 +273,7 @@ function normalizeMatrxError(err) {
|
|
|
273
273
|
if (err instanceof DOMException && err.name === "AbortError") {
|
|
274
274
|
return { type: "abort_error", message: "Request was cancelled." };
|
|
275
275
|
}
|
|
276
|
-
if (err instanceof
|
|
276
|
+
if (err instanceof chunkBHSHMV22_cjs.MatrxApiError) {
|
|
277
277
|
return {
|
|
278
278
|
type: classifyStatus(err.status),
|
|
279
279
|
message: honestTransportMessage(err.message, err.status),
|
|
@@ -283,7 +283,7 @@ function normalizeMatrxError(err) {
|
|
|
283
283
|
name: err.name
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
if (err instanceof
|
|
286
|
+
if (err instanceof chunkBHSHMV22_cjs.BackendApiError) {
|
|
287
287
|
return {
|
|
288
288
|
type: "network_error",
|
|
289
289
|
message: honestTransportMessage(
|
|
@@ -379,9 +379,9 @@ function createMatrxTransport(options) {
|
|
|
379
379
|
const resolve = resolveTarget ?? (() => ({ baseUrl }));
|
|
380
380
|
const resolveOrganizationId = (callOrganizationId) => {
|
|
381
381
|
if (organizationId === void 0) return null;
|
|
382
|
-
if (callOrganizationId !== null) return
|
|
382
|
+
if (callOrganizationId !== null) return chunkBHSHMV22_cjs.requireOrganizationContext(callOrganizationId);
|
|
383
383
|
const candidate = typeof organizationId === "function" ? organizationId() : organizationId;
|
|
384
|
-
return
|
|
384
|
+
return chunkBHSHMV22_cjs.requireOrganizationContext(candidate);
|
|
385
385
|
};
|
|
386
386
|
return {
|
|
387
387
|
async fetch(path, init) {
|
|
@@ -392,7 +392,7 @@ function createMatrxTransport(options) {
|
|
|
392
392
|
let overHeaders = callOrganizationId === null ? policyHeaders : stripOrganizationHeader(policyHeaders);
|
|
393
393
|
const orgId = resolveOrganizationId(callOrganizationId);
|
|
394
394
|
if (orgId !== null) {
|
|
395
|
-
overHeaders =
|
|
395
|
+
overHeaders = chunkBHSHMV22_cjs.applyOrganizationContextHeader(overHeaders, orgId);
|
|
396
396
|
}
|
|
397
397
|
const wireHeaders = callOrganizationId === null ? { ...init.headers } : stripOrganizationHeader({ ...init.headers });
|
|
398
398
|
const info = {
|
|
@@ -405,7 +405,7 @@ function createMatrxTransport(options) {
|
|
|
405
405
|
diagnostics?.onRequest?.(info);
|
|
406
406
|
let response;
|
|
407
407
|
try {
|
|
408
|
-
({ response } = await
|
|
408
|
+
({ response } = await chunkBHSHMV22_cjs.sendOnWire(
|
|
409
409
|
{
|
|
410
410
|
url,
|
|
411
411
|
method: init.method,
|
|
@@ -429,11 +429,11 @@ function createMatrxTransport(options) {
|
|
|
429
429
|
}
|
|
430
430
|
if (!response.ok && !expectedErrorStatuses?.includes(response.status)) {
|
|
431
431
|
const serverDetail = await response.clone().json().catch(() => void 0);
|
|
432
|
-
const code =
|
|
432
|
+
const code = chunkBHSHMV22_cjs.extractMatrxErrorCode(serverDetail);
|
|
433
433
|
diagnostics?.onError?.(
|
|
434
434
|
{
|
|
435
435
|
type: classifyStatus(response.status),
|
|
436
|
-
message:
|
|
436
|
+
message: chunkBHSHMV22_cjs.extractMatrxErrorMessage(serverDetail) ?? `HTTP ${response.status}`,
|
|
437
437
|
status: response.status,
|
|
438
438
|
serverDetail,
|
|
439
439
|
...code ? { code } : {}
|
|
@@ -712,7 +712,7 @@ async function readServerDetail(response) {
|
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
async function throwApiError(path, response) {
|
|
715
|
-
throw new
|
|
715
|
+
throw new chunkBHSHMV22_cjs.MatrxApiError({
|
|
716
716
|
status: response.status,
|
|
717
717
|
path,
|
|
718
718
|
serverDetail: await readServerDetail(response)
|
|
@@ -733,7 +733,7 @@ function toRunHandle(response, options) {
|
|
|
733
733
|
return {
|
|
734
734
|
requestId: response.headers.get("X-Request-ID"),
|
|
735
735
|
conversationId: response.headers.get("X-Conversation-ID"),
|
|
736
|
-
events:
|
|
736
|
+
events: chunkBHSHMV22_cjs.readMatrxNdjsonStream(response.body, {
|
|
737
737
|
...options.signal ? { signal: options.signal } : {},
|
|
738
738
|
...options.maxReadAhead !== void 0 ? { maxReadAhead: options.maxReadAhead } : {},
|
|
739
739
|
...options.onMalformedLine ? { onMalformedLine: options.onMalformedLine } : {},
|
|
@@ -756,7 +756,7 @@ async function requestStream(transport, path, options) {
|
|
|
756
756
|
});
|
|
757
757
|
if (!response.ok) return throwApiError(path, response);
|
|
758
758
|
if (!response.body) {
|
|
759
|
-
throw new
|
|
759
|
+
throw new chunkBHSHMV22_cjs.MatrxApiError({
|
|
760
760
|
status: response.status,
|
|
761
761
|
path,
|
|
762
762
|
serverDetail: { code: "missing_response_body" },
|
|
@@ -816,7 +816,7 @@ async function getRuntimeOperationStatus(transport, requestId, options = {}) {
|
|
|
816
816
|
{ method: "GET", ...options.signal ? { signal: options.signal } : {} }
|
|
817
817
|
);
|
|
818
818
|
} catch (error) {
|
|
819
|
-
if (error instanceof
|
|
819
|
+
if (error instanceof chunkBHSHMV22_cjs.MatrxApiError && error.status === 404) return null;
|
|
820
820
|
throw error;
|
|
821
821
|
}
|
|
822
822
|
}
|
|
@@ -831,7 +831,7 @@ async function getRuntimeOperationsByLink(transport, linkKind, linkId, options =
|
|
|
831
831
|
{ method: "GET", ...options.signal ? { signal: options.signal } : {} }
|
|
832
832
|
);
|
|
833
833
|
} catch (error) {
|
|
834
|
-
if (error instanceof
|
|
834
|
+
if (error instanceof chunkBHSHMV22_cjs.MatrxApiError && error.status === 404) return null;
|
|
835
835
|
throw error;
|
|
836
836
|
}
|
|
837
837
|
}
|
|
@@ -872,7 +872,7 @@ async function* followRuntimeOperationEvents(transport, executionId, options = {
|
|
|
872
872
|
...options.signal ? { signal: options.signal } : {}
|
|
873
873
|
}
|
|
874
874
|
);
|
|
875
|
-
const frames =
|
|
875
|
+
const frames = chunkBHSHMV22_cjs.readMatrxSseStream(
|
|
876
876
|
response.body,
|
|
877
877
|
options.onIncomplete ? { onIncomplete: options.onIncomplete } : {}
|
|
878
878
|
);
|
|
@@ -1075,7 +1075,7 @@ async function openMatrxStream(transport, path, options = {}) {
|
|
|
1075
1075
|
return toRunHandle(response, options);
|
|
1076
1076
|
}
|
|
1077
1077
|
function withRunOrganization(transport, organizationId) {
|
|
1078
|
-
const orgId =
|
|
1078
|
+
const orgId = chunkBHSHMV22_cjs.requireOrganizationContext(organizationId);
|
|
1079
1079
|
return {
|
|
1080
1080
|
fetch: (path, init) => transport.fetch(path, {
|
|
1081
1081
|
...init,
|
|
@@ -1102,7 +1102,7 @@ async function followWorkflowRunEvents(transport, runId, options) {
|
|
|
1102
1102
|
throw error;
|
|
1103
1103
|
}
|
|
1104
1104
|
try {
|
|
1105
|
-
for await (const frame of
|
|
1105
|
+
for await (const frame of chunkBHSHMV22_cjs.readMatrxSseStream(
|
|
1106
1106
|
response.body
|
|
1107
1107
|
)) {
|
|
1108
1108
|
if (frame.event === "end") return { ended: true };
|
|
@@ -1148,7 +1148,7 @@ async function resumeOrRejoin(transport, resumeCall, options) {
|
|
|
1148
1148
|
} catch (error) {
|
|
1149
1149
|
const target = readLiveRunRejoin(error);
|
|
1150
1150
|
if (!target) {
|
|
1151
|
-
if (error instanceof
|
|
1151
|
+
if (error instanceof chunkBHSHMV22_cjs.MatrxApiError && isResumeConflict(error)) {
|
|
1152
1152
|
return { kind: "resume_conflict", error };
|
|
1153
1153
|
}
|
|
1154
1154
|
throw error;
|
|
@@ -1564,7 +1564,7 @@ async function reportProviderSessionUsage(transport, usage, options = {}) {
|
|
|
1564
1564
|
});
|
|
1565
1565
|
return "ok";
|
|
1566
1566
|
} catch (error) {
|
|
1567
|
-
if (error instanceof
|
|
1567
|
+
if (error instanceof chunkBHSHMV22_cjs.MatrxApiError) {
|
|
1568
1568
|
const status = error.status;
|
|
1569
1569
|
if (status >= 400 && status < 500 && status !== 401 && status !== 408 && status !== 425 && status !== 429) {
|
|
1570
1570
|
console.warn(`[provider-usage] server refused ${usage.provider} usage ${usage.usage_id} (${status})`);
|
|
@@ -2260,115 +2260,115 @@ Object.defineProperty(exports, "toCredentialsPort", {
|
|
|
2260
2260
|
});
|
|
2261
2261
|
Object.defineProperty(exports, "BackendApiError", {
|
|
2262
2262
|
enumerable: true,
|
|
2263
|
-
get: function () { return
|
|
2263
|
+
get: function () { return chunkBHSHMV22_cjs.BackendApiError; }
|
|
2264
2264
|
});
|
|
2265
2265
|
Object.defineProperty(exports, "CONTRACT_SHA256", {
|
|
2266
2266
|
enumerable: true,
|
|
2267
|
-
get: function () { return
|
|
2267
|
+
get: function () { return chunkBHSHMV22_cjs.CONTRACT_SHA256; }
|
|
2268
2268
|
});
|
|
2269
2269
|
Object.defineProperty(exports, "DEPLOYMENTS", {
|
|
2270
2270
|
enumerable: true,
|
|
2271
|
-
get: function () { return
|
|
2271
|
+
get: function () { return chunkBHSHMV22_cjs.DEPLOYMENTS; }
|
|
2272
2272
|
});
|
|
2273
2273
|
Object.defineProperty(exports, "DOMAINS", {
|
|
2274
2274
|
enumerable: true,
|
|
2275
|
-
get: function () { return
|
|
2275
|
+
get: function () { return chunkBHSHMV22_cjs.DOMAINS; }
|
|
2276
2276
|
});
|
|
2277
2277
|
Object.defineProperty(exports, "MatrxApiError", {
|
|
2278
2278
|
enumerable: true,
|
|
2279
|
-
get: function () { return
|
|
2279
|
+
get: function () { return chunkBHSHMV22_cjs.MatrxApiError; }
|
|
2280
2280
|
});
|
|
2281
2281
|
Object.defineProperty(exports, "OrganizationContextError", {
|
|
2282
2282
|
enumerable: true,
|
|
2283
|
-
get: function () { return
|
|
2283
|
+
get: function () { return chunkBHSHMV22_cjs.OrganizationContextError; }
|
|
2284
2284
|
});
|
|
2285
2285
|
Object.defineProperty(exports, "StreamTransportError", {
|
|
2286
2286
|
enumerable: true,
|
|
2287
|
-
get: function () { return
|
|
2287
|
+
get: function () { return chunkBHSHMV22_cjs.StreamTransportError; }
|
|
2288
2288
|
});
|
|
2289
2289
|
Object.defineProperty(exports, "applyOrganizationContextHeader", {
|
|
2290
2290
|
enumerable: true,
|
|
2291
|
-
get: function () { return
|
|
2291
|
+
get: function () { return chunkBHSHMV22_cjs.applyOrganizationContextHeader; }
|
|
2292
2292
|
});
|
|
2293
2293
|
Object.defineProperty(exports, "assertOrganizationMatchesOperation", {
|
|
2294
2294
|
enumerable: true,
|
|
2295
|
-
get: function () { return
|
|
2295
|
+
get: function () { return chunkBHSHMV22_cjs.assertOrganizationMatchesOperation; }
|
|
2296
2296
|
});
|
|
2297
2297
|
Object.defineProperty(exports, "assertQueryOrganizationMatchesContext", {
|
|
2298
2298
|
enumerable: true,
|
|
2299
|
-
get: function () { return
|
|
2299
|
+
get: function () { return chunkBHSHMV22_cjs.assertQueryOrganizationMatchesContext; }
|
|
2300
2300
|
});
|
|
2301
2301
|
Object.defineProperty(exports, "createApi", {
|
|
2302
2302
|
enumerable: true,
|
|
2303
|
-
get: function () { return
|
|
2303
|
+
get: function () { return chunkBHSHMV22_cjs.createApi; }
|
|
2304
2304
|
});
|
|
2305
2305
|
Object.defineProperty(exports, "createOrganizationOperation", {
|
|
2306
2306
|
enumerable: true,
|
|
2307
|
-
get: function () { return
|
|
2307
|
+
get: function () { return chunkBHSHMV22_cjs.createOrganizationOperation; }
|
|
2308
2308
|
});
|
|
2309
2309
|
Object.defineProperty(exports, "describeBackendFailure", {
|
|
2310
2310
|
enumerable: true,
|
|
2311
|
-
get: function () { return
|
|
2311
|
+
get: function () { return chunkBHSHMV22_cjs.describeBackendFailure; }
|
|
2312
2312
|
});
|
|
2313
2313
|
Object.defineProperty(exports, "extractMatrxErrorCode", {
|
|
2314
2314
|
enumerable: true,
|
|
2315
|
-
get: function () { return
|
|
2315
|
+
get: function () { return chunkBHSHMV22_cjs.extractMatrxErrorCode; }
|
|
2316
2316
|
});
|
|
2317
2317
|
Object.defineProperty(exports, "extractMatrxErrorMessage", {
|
|
2318
2318
|
enumerable: true,
|
|
2319
|
-
get: function () { return
|
|
2319
|
+
get: function () { return chunkBHSHMV22_cjs.extractMatrxErrorMessage; }
|
|
2320
2320
|
});
|
|
2321
2321
|
Object.defineProperty(exports, "getUserMessage", {
|
|
2322
2322
|
enumerable: true,
|
|
2323
|
-
get: function () { return
|
|
2323
|
+
get: function () { return chunkBHSHMV22_cjs.getUserMessage; }
|
|
2324
2324
|
});
|
|
2325
2325
|
Object.defineProperty(exports, "isBinaryType", {
|
|
2326
2326
|
enumerable: true,
|
|
2327
|
-
get: function () { return
|
|
2327
|
+
get: function () { return chunkBHSHMV22_cjs.isBinaryType; }
|
|
2328
2328
|
});
|
|
2329
2329
|
Object.defineProperty(exports, "isGenericUserMessage", {
|
|
2330
2330
|
enumerable: true,
|
|
2331
|
-
get: function () { return
|
|
2331
|
+
get: function () { return chunkBHSHMV22_cjs.isGenericUserMessage; }
|
|
2332
2332
|
});
|
|
2333
2333
|
Object.defineProperty(exports, "isStreamTransportLost", {
|
|
2334
2334
|
enumerable: true,
|
|
2335
|
-
get: function () { return
|
|
2335
|
+
get: function () { return chunkBHSHMV22_cjs.isStreamTransportLost; }
|
|
2336
2336
|
});
|
|
2337
2337
|
Object.defineProperty(exports, "openJsonOrStream", {
|
|
2338
2338
|
enumerable: true,
|
|
2339
|
-
get: function () { return
|
|
2339
|
+
get: function () { return chunkBHSHMV22_cjs.openJsonOrStream; }
|
|
2340
2340
|
});
|
|
2341
2341
|
Object.defineProperty(exports, "openStream", {
|
|
2342
2342
|
enumerable: true,
|
|
2343
|
-
get: function () { return
|
|
2343
|
+
get: function () { return chunkBHSHMV22_cjs.openStream; }
|
|
2344
2344
|
});
|
|
2345
2345
|
Object.defineProperty(exports, "parseCallApiError", {
|
|
2346
2346
|
enumerable: true,
|
|
2347
|
-
get: function () { return
|
|
2347
|
+
get: function () { return chunkBHSHMV22_cjs.parseCallApiError; }
|
|
2348
2348
|
});
|
|
2349
2349
|
Object.defineProperty(exports, "parseHttpError", {
|
|
2350
2350
|
enumerable: true,
|
|
2351
|
-
get: function () { return
|
|
2351
|
+
get: function () { return chunkBHSHMV22_cjs.parseHttpError; }
|
|
2352
2352
|
});
|
|
2353
2353
|
Object.defineProperty(exports, "parseHttpErrorBody", {
|
|
2354
2354
|
enumerable: true,
|
|
2355
|
-
get: function () { return
|
|
2355
|
+
get: function () { return chunkBHSHMV22_cjs.parseHttpErrorBody; }
|
|
2356
2356
|
});
|
|
2357
2357
|
Object.defineProperty(exports, "parsePersistedBackendError", {
|
|
2358
2358
|
enumerable: true,
|
|
2359
|
-
get: function () { return
|
|
2359
|
+
get: function () { return chunkBHSHMV22_cjs.parsePersistedBackendError; }
|
|
2360
2360
|
});
|
|
2361
2361
|
Object.defineProperty(exports, "parseStreamError", {
|
|
2362
2362
|
enumerable: true,
|
|
2363
|
-
get: function () { return
|
|
2363
|
+
get: function () { return chunkBHSHMV22_cjs.parseStreamError; }
|
|
2364
2364
|
});
|
|
2365
2365
|
Object.defineProperty(exports, "requireOrganizationContext", {
|
|
2366
2366
|
enumerable: true,
|
|
2367
|
-
get: function () { return
|
|
2367
|
+
get: function () { return chunkBHSHMV22_cjs.requireOrganizationContext; }
|
|
2368
2368
|
});
|
|
2369
2369
|
Object.defineProperty(exports, "unwrapUpstreamError", {
|
|
2370
2370
|
enumerable: true,
|
|
2371
|
-
get: function () { return
|
|
2371
|
+
get: function () { return chunkBHSHMV22_cjs.unwrapUpstreamError; }
|
|
2372
2372
|
});
|
|
2373
2373
|
Object.defineProperty(exports, "AbortedError", {
|
|
2374
2374
|
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-DseWSnYe.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-DseWSnYe.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
|
export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetErrorCode, NetworkError, OfflineError, ResilientFetchOptions, ResilientFetchResult, RetryOptions, StreamMonitorOptions, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, monitorStream, resilientFetch, toNetError, withRetry } 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-DseWSnYe.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-DseWSnYe.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
|
export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetErrorCode, NetworkError, OfflineError, ResilientFetchOptions, ResilientFetchResult, RetryOptions, StreamMonitorOptions, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, monitorStream, resilientFetch, toNetError, withRetry } from './net.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { monitorStream } from './chunk-YTEOFGFC.js';
|
|
2
2
|
export { API_KEY_PREFIX, MATRX_HEADERS, credentialToHeaders, toCredentialsPort } from './chunk-7MZPBCFV.js';
|
|
3
|
-
import { OrganizationContextError, sendOnWire, WIRE_FETCH_OPTION_KEYS, BackendApiError, parseHttpError, MatrxApiError, applyOrganizationContextHeader, extractMatrxErrorCode, extractMatrxErrorMessage, readMatrxNdjsonStream, readMatrxSseStream, requireOrganizationContext, StreamTransportError } from './chunk-
|
|
4
|
-
export { BackendApiError, CONTRACT_SHA256, DEPLOYMENTS, DOMAINS, MatrxApiError, OrganizationContextError, StreamTransportError, applyOrganizationContextHeader, assertOrganizationMatchesOperation, assertQueryOrganizationMatchesContext, createApi, createOrganizationOperation, describeBackendFailure, extractMatrxErrorCode, extractMatrxErrorMessage, getUserMessage, isBinaryType, isGenericUserMessage, isStreamTransportLost, openJsonOrStream, openStream, parseCallApiError, parseHttpError, parseHttpErrorBody, parsePersistedBackendError, parseStreamError, requireOrganizationContext, unwrapUpstreamError } from './chunk-
|
|
3
|
+
import { OrganizationContextError, sendOnWire, WIRE_FETCH_OPTION_KEYS, BackendApiError, parseHttpError, MatrxApiError, applyOrganizationContextHeader, extractMatrxErrorCode, extractMatrxErrorMessage, readMatrxNdjsonStream, readMatrxSseStream, requireOrganizationContext, StreamTransportError } from './chunk-MFZXWYK6.js';
|
|
4
|
+
export { BackendApiError, CONTRACT_SHA256, DEPLOYMENTS, DOMAINS, MatrxApiError, OrganizationContextError, StreamTransportError, applyOrganizationContextHeader, assertOrganizationMatchesOperation, assertQueryOrganizationMatchesContext, createApi, createOrganizationOperation, describeBackendFailure, extractMatrxErrorCode, extractMatrxErrorMessage, getUserMessage, isBinaryType, isGenericUserMessage, isStreamTransportLost, openJsonOrStream, openStream, parseCallApiError, parseHttpError, parseHttpErrorBody, parsePersistedBackendError, parseStreamError, requireOrganizationContext, unwrapUpstreamError } from './chunk-MFZXWYK6.js';
|
|
5
5
|
import { isNetError, extractErrorMessage } from './chunk-KIEAFMKB.js';
|
|
6
6
|
export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetworkError, OfflineError, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, resilientFetch, toNetError, withRetry } from './chunk-KIEAFMKB.js';
|
|
7
7
|
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 chunkBHSHMV22_cjs = require('./chunk-BHSHMV22.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/integrations.ts
|
|
@@ -3654,15 +3654,15 @@ function bingIntegrationsDisconnect(api, args, options) {
|
|
|
3654
3654
|
}
|
|
3655
3655
|
var $importNotionZip = { m: "POST", p: "/notion-import/zip", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "integrations.import_notion_zip" };
|
|
3656
3656
|
function importNotionZip(api, args, options) {
|
|
3657
|
-
return
|
|
3657
|
+
return chunkBHSHMV22_cjs.openStream(api, $importNotionZip, args, options);
|
|
3658
3658
|
}
|
|
3659
3659
|
var $importNotionConnected = { m: "POST", p: "/notion-import/connected", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "integrations.import_notion_connected" };
|
|
3660
3660
|
function importNotionConnected(api, args, options) {
|
|
3661
|
-
return
|
|
3661
|
+
return chunkBHSHMV22_cjs.openStream(api, $importNotionConnected, args, options);
|
|
3662
3662
|
}
|
|
3663
3663
|
var $importNotionConnection = { m: "POST", p: "/notion-import/connection", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "integrations.import_notion_connection" };
|
|
3664
3664
|
function importNotionConnection(api, args, options) {
|
|
3665
|
-
return
|
|
3665
|
+
return chunkBHSHMV22_cjs.openStream(api, $importNotionConnection, args, options);
|
|
3666
3666
|
}
|
|
3667
3667
|
var $syncState = { m: "GET", p: "/notion-import/sync", d: "aidream", a: "guest", o: "required", n: "integrations.sync_state" };
|
|
3668
3668
|
function syncState(api, args, options) {
|
|
@@ -3678,7 +3678,7 @@ function listBases(api, args, options) {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
var $importBases = { m: "POST", p: "/airtable-import/import", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "integrations.import_bases" };
|
|
3680
3680
|
function importBases(api, args, options) {
|
|
3681
|
-
return
|
|
3681
|
+
return chunkBHSHMV22_cjs.openStream(api, $importBases, args, options);
|
|
3682
3682
|
}
|
|
3683
3683
|
var $airtableImportSyncNow = { m: "POST", p: "/airtable-import/sync", d: "aidream", a: "guest", o: "required", n: "integrations.airtable_import_sync_now" };
|
|
3684
3684
|
function airtableImportSyncNow(api, args, options) {
|
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-DseWSnYe.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 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
|
|
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-DseWSnYe.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 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
|
|
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 chunkBHSHMV22_cjs = require('./chunk-BHSHMV22.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/intelligence/keys.generated.ts
|
|
@@ -729,7 +729,7 @@ function getAgentCalibration(api, args, options) {
|
|
|
729
729
|
}
|
|
730
730
|
var $createDecision = { m: "POST", p: "/ai/decisions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.create_decision" };
|
|
731
731
|
function createDecision(api, args, options) {
|
|
732
|
-
return
|
|
732
|
+
return chunkBHSHMV22_cjs.openStream(api, $createDecision, args, options);
|
|
733
733
|
}
|
|
734
734
|
var $readDecision = { m: "GET", p: "/ai/decisions/{execution_id}", d: "aidream", a: "guest", o: "required", n: "intelligence.read_decision" };
|
|
735
735
|
function readDecision(api, args, options) {
|
|
@@ -877,11 +877,11 @@ function captureProvisionDoor(api, args, options) {
|
|
|
877
877
|
}
|
|
878
878
|
var $runInitial = { m: "POST", p: "/agent-iteration/run-initial", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.run_initial" };
|
|
879
879
|
function runInitial(api, args, options) {
|
|
880
|
-
return
|
|
880
|
+
return chunkBHSHMV22_cjs.openStream(api, $runInitial, args, options);
|
|
881
881
|
}
|
|
882
882
|
var $runFeedback = { m: "POST", p: "/agent-iteration/feedback", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.run_feedback" };
|
|
883
883
|
function runFeedback(api, args, options) {
|
|
884
|
-
return
|
|
884
|
+
return chunkBHSHMV22_cjs.openStream(api, $runFeedback, args, options);
|
|
885
885
|
}
|
|
886
886
|
var $commitChoice = { m: "POST", p: "/agent-iteration/commit-choice", d: "aidream", a: "guest", o: "required", n: "intelligence.commit_choice" };
|
|
887
887
|
function commitChoice(api, args, options) {
|
|
@@ -1037,7 +1037,7 @@ function getMandateRun(api, args, options) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
var $replayMandateRun = { m: "POST", p: "/mandates/runs/{conversation_id}/replay", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.replay_mandate_run" };
|
|
1039
1039
|
function replayMandateRun(api, args, options) {
|
|
1040
|
-
return
|
|
1040
|
+
return chunkBHSHMV22_cjs.openStream(api, $replayMandateRun, args, options);
|
|
1041
1041
|
}
|
|
1042
1042
|
var $getMandateRunResult = { m: "GET", p: "/mandates/runs/{request_id}/result", d: "aidream", a: "guest", o: "optional", n: "intelligence.get_mandate_run_result" };
|
|
1043
1043
|
function getMandateRunResult(api, args, options) {
|
|
@@ -1045,7 +1045,7 @@ function getMandateRunResult(api, args, options) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
var $answerMandateRun = { m: "POST", p: "/mandates/runs/{request_id}/answer", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "intelligence.answer_mandate_run" };
|
|
1047
1047
|
function answerMandateRun(api, args, options) {
|
|
1048
|
-
return
|
|
1048
|
+
return chunkBHSHMV22_cjs.openStream(api, $answerMandateRun, args, options);
|
|
1049
1049
|
}
|
|
1050
1050
|
var $getMandateRuns = { m: "GET", p: "/mandates/{mandate_key}/runs", d: "aidream", a: "guest", o: "optional", n: "intelligence.get_mandate_runs" };
|
|
1051
1051
|
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-DseWSnYe.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-DE-t9kzx.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 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
|
|
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-DseWSnYe.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-DE-t9kzx.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 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/** The floor math, in full, with its inputs. */
|
package/dist/intelligence.js
CHANGED