@ai-matrx/api 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/account.d.cts +1 -1
- package/dist/account.d.ts +1 -1
- package/dist/agents.cjs +11 -11
- package/dist/agents.d.cts +1 -1
- package/dist/agents.d.ts +1 -1
- package/dist/agents.js +1 -1
- package/dist/ai.cjs +2 -2
- package/dist/ai.d.cts +1 -1
- package/dist/ai.d.ts +1 -1
- package/dist/ai.js +1 -1
- package/dist/apps.cjs +5 -5
- package/dist/apps.d.cts +1 -1
- package/dist/apps.d.ts +1 -1
- package/dist/apps.js +1 -1
- package/dist/architecture.cjs +10 -10
- package/dist/architecture.d.cts +1 -1
- package/dist/architecture.d.ts +1 -1
- package/dist/architecture.js +1 -1
- package/dist/audio.cjs +4 -4
- package/dist/audio.d.cts +1 -1
- package/dist/audio.d.ts +1 -1
- package/dist/audio.js +1 -1
- package/dist/chat.cjs +11 -11
- package/dist/chat.d.cts +1 -1
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -1
- package/dist/{chunk-5BBHAAIG.js → chunk-PIVTHTVR.js} +13 -4
- package/dist/{chunk-NMBDYPFZ.cjs → chunk-PMGKZ4FT.cjs} +13 -4
- package/dist/code.cjs +6 -6
- package/dist/code.d.cts +1 -1
- package/dist/code.d.ts +1 -1
- package/dist/code.js +1 -1
- package/dist/commerce.d.cts +1 -1
- package/dist/commerce.d.ts +1 -1
- package/dist/communications.cjs +4 -4
- package/dist/communications.d.cts +1 -1
- package/dist/communications.d.ts +1 -1
- package/dist/communications.js +1 -1
- package/dist/computer.cjs +3 -3
- package/dist/computer.d.cts +1 -1
- package/dist/computer.d.ts +1 -1
- package/dist/computer.js +1 -1
- package/dist/content.cjs +4 -4
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +1 -1
- package/dist/crm.cjs +2 -2
- package/dist/crm.d.cts +1 -1
- package/dist/crm.d.ts +1 -1
- package/dist/crm.js +1 -1
- package/dist/data.d.cts +1 -1
- package/dist/data.d.ts +1 -1
- package/dist/education.cjs +4 -4
- package/dist/education.d.cts +1 -1
- package/dist/education.d.ts +1 -1
- package/dist/education.js +1 -1
- package/dist/files.cjs +20 -20
- package/dist/files.d.cts +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.js +1 -1
- package/dist/human-resources.d.cts +1 -1
- package/dist/human-resources.d.ts +1 -1
- package/dist/{index-D_ZjxGwP.d.cts → index-C3ZlP3BI.d.cts} +8 -1
- package/dist/{index-D_ZjxGwP.d.ts → index-C3ZlP3BI.d.ts} +8 -1
- package/dist/index.cjs +53 -53
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +2 -2
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.cts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.js +1 -1
- package/dist/intelligence.cjs +6 -6
- package/dist/intelligence.d.cts +1 -1
- package/dist/intelligence.d.ts +1 -1
- package/dist/intelligence.js +1 -1
- package/dist/knowledge.cjs +42 -42
- package/dist/knowledge.d.cts +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/legal.cjs +6 -6
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +1 -1
- package/dist/marketing.cjs +76 -76
- package/dist/marketing.d.cts +1 -1
- package/dist/marketing.d.ts +1 -1
- package/dist/marketing.js +1 -1
- package/dist/masterwork.cjs +32 -32
- package/dist/masterwork.d.cts +1 -1
- package/dist/masterwork.d.ts +1 -1
- package/dist/masterwork.js +1 -1
- package/dist/media.cjs +11 -11
- package/dist/media.d.cts +1 -1
- package/dist/media.d.ts +1 -1
- package/dist/media.js +1 -1
- package/dist/net.d.cts +1 -1
- package/dist/net.d.ts +1 -1
- package/dist/platform.cjs +3 -3
- package/dist/platform.d.cts +1 -1
- package/dist/platform.d.ts +1 -1
- package/dist/platform.js +1 -1
- package/dist/publish.cjs +7 -7
- package/dist/publish.d.cts +1 -1
- package/dist/publish.d.ts +1 -1
- package/dist/publish.js +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/web.cjs +26 -26
- package/dist/web.d.cts +1 -1
- package/dist/web.d.ts +1 -1
- package/dist/web.js +1 -1
- package/dist/workflows.cjs +13 -13
- package/dist/workflows.d.cts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.js +1 -1
- package/package.json +4 -4
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 chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
|
|
6
6
|
var chunk2SXAAKGV_cjs = require('./chunk-2SXAAKGV.cjs');
|
|
7
7
|
var credentials = require('@ai-matrx/auth/credentials');
|
|
8
8
|
var format = require('@ai-matrx/kit/format');
|
|
@@ -128,7 +128,7 @@ function buildMatrxRequestBody(body, scope) {
|
|
|
128
128
|
}
|
|
129
129
|
const bodyOrganizationId = base.organization_id;
|
|
130
130
|
if (scope.organization_id !== void 0 && bodyOrganizationId !== void 0 && (typeof bodyOrganizationId !== "string" || bodyOrganizationId.trim() !== scope.organization_id)) {
|
|
131
|
-
throw new
|
|
131
|
+
throw new chunkPMGKZ4FT_cjs.OrganizationContextError(
|
|
132
132
|
"organization_context_mismatch",
|
|
133
133
|
"Request body organization_id must match the request context organization."
|
|
134
134
|
);
|
|
@@ -200,14 +200,14 @@ function parseMatrxNdjsonResponse(response, signal, hooks = {}) {
|
|
|
200
200
|
};
|
|
201
201
|
async function* events() {
|
|
202
202
|
if (!response.body) {
|
|
203
|
-
throw new
|
|
203
|
+
throw new chunkPMGKZ4FT_cjs.BackendApiError({
|
|
204
204
|
code: "internal_error",
|
|
205
205
|
detail: "Response has no body",
|
|
206
206
|
userMessage: "No response received from server"
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
try {
|
|
210
|
-
for await (const envelope of
|
|
210
|
+
for await (const envelope of chunkPMGKZ4FT_cjs.readMatrxNdjsonStream(response.body, {
|
|
211
211
|
...signal ? { signal } : {},
|
|
212
212
|
...hooks.onMalformedLine ? { onMalformedLine: hooks.onMalformedLine } : {},
|
|
213
213
|
...hooks.onUnknownEnvelope ? { onUnknownEnvelope: hooks.onUnknownEnvelope } : {}
|
|
@@ -219,7 +219,7 @@ function parseMatrxNdjsonResponse(response, signal, hooks = {}) {
|
|
|
219
219
|
if (signal?.aborted || error instanceof Error && error.name === "AbortError") {
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const transportError = error instanceof
|
|
222
|
+
const transportError = error instanceof chunkPMGKZ4FT_cjs.BackendApiError ? error : new chunkPMGKZ4FT_cjs.StreamTransportError({
|
|
223
223
|
detail: error instanceof Error ? error.message : "The response stream ended unexpectedly.",
|
|
224
224
|
details: error,
|
|
225
225
|
...ids.requestId ? { requestId: ids.requestId } : {}
|
|
@@ -236,7 +236,7 @@ async function httpErrorFrom(response) {
|
|
|
236
236
|
const serverDetail = await response.json().catch(() => void 0);
|
|
237
237
|
return {
|
|
238
238
|
type: response.status >= 400 && response.status < 500 ? "validation_error" : "http_error",
|
|
239
|
-
message:
|
|
239
|
+
message: chunkPMGKZ4FT_cjs.extractMatrxErrorMessage(serverDetail) ?? bareStatusSentence(response.status),
|
|
240
240
|
status: response.status,
|
|
241
241
|
serverDetail
|
|
242
242
|
};
|
|
@@ -312,7 +312,7 @@ async function sendMatrxRequest(url, init = {}, options = {}) {
|
|
|
312
312
|
return await fetch(url, { ...init, signal: controller.signal });
|
|
313
313
|
} catch (error) {
|
|
314
314
|
if (timedOut) {
|
|
315
|
-
throw new
|
|
315
|
+
throw new chunkPMGKZ4FT_cjs.BackendApiError({
|
|
316
316
|
code: "request_timeout",
|
|
317
317
|
detail: `${init.method ?? "GET"} ${url} exceeded ${options.timeoutMs}ms`,
|
|
318
318
|
userMessage: "The request timed out \u2014 please retry.",
|
|
@@ -326,7 +326,7 @@ async function sendMatrxRequest(url, init = {}, options = {}) {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
async function readMatrxJsonResponse(response) {
|
|
329
|
-
if (!response.ok) throw await
|
|
329
|
+
if (!response.ok) throw await chunkPMGKZ4FT_cjs.parseHttpError(response);
|
|
330
330
|
if (response.status === 204) return null;
|
|
331
331
|
return await response.json();
|
|
332
332
|
}
|
|
@@ -334,7 +334,7 @@ function classifyStatus(status) {
|
|
|
334
334
|
return status >= 400 && status < 500 ? "validation_error" : "http_error";
|
|
335
335
|
}
|
|
336
336
|
function normalizeMatrxError(err) {
|
|
337
|
-
if (err instanceof
|
|
337
|
+
if (err instanceof chunkPMGKZ4FT_cjs.OrganizationContextError) {
|
|
338
338
|
return {
|
|
339
339
|
type: "validation_error",
|
|
340
340
|
message: err.message,
|
|
@@ -346,7 +346,7 @@ function normalizeMatrxError(err) {
|
|
|
346
346
|
if (err instanceof DOMException && err.name === "AbortError") {
|
|
347
347
|
return { type: "abort_error", message: "Request was cancelled." };
|
|
348
348
|
}
|
|
349
|
-
if (err instanceof
|
|
349
|
+
if (err instanceof chunkPMGKZ4FT_cjs.MatrxApiError) {
|
|
350
350
|
return {
|
|
351
351
|
type: classifyStatus(err.status),
|
|
352
352
|
message: honestTransportMessage(err.message, err.status),
|
|
@@ -356,7 +356,7 @@ function normalizeMatrxError(err) {
|
|
|
356
356
|
name: err.name
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
if (err instanceof
|
|
359
|
+
if (err instanceof chunkPMGKZ4FT_cjs.BackendApiError) {
|
|
360
360
|
return {
|
|
361
361
|
type: "network_error",
|
|
362
362
|
message: honestTransportMessage(
|
|
@@ -454,9 +454,9 @@ function createMatrxTransport(options) {
|
|
|
454
454
|
};
|
|
455
455
|
const resolveOrganizationId = (callOrganizationId) => {
|
|
456
456
|
if (organizationId === void 0) return null;
|
|
457
|
-
if (callOrganizationId !== null) return
|
|
457
|
+
if (callOrganizationId !== null) return chunkPMGKZ4FT_cjs.requireOrganizationContext(callOrganizationId);
|
|
458
458
|
const candidate = typeof organizationId === "function" ? organizationId() : organizationId;
|
|
459
|
-
return
|
|
459
|
+
return chunkPMGKZ4FT_cjs.requireOrganizationContext(candidate);
|
|
460
460
|
};
|
|
461
461
|
return {
|
|
462
462
|
async fetch(path, init) {
|
|
@@ -473,7 +473,7 @@ function createMatrxTransport(options) {
|
|
|
473
473
|
};
|
|
474
474
|
const orgId = resolveOrganizationId(callOrganizationId);
|
|
475
475
|
if (orgId !== null) {
|
|
476
|
-
headers =
|
|
476
|
+
headers = chunkPMGKZ4FT_cjs.applyOrganizationContextHeader(headers, orgId);
|
|
477
477
|
}
|
|
478
478
|
const info = {
|
|
479
479
|
url,
|
|
@@ -506,11 +506,11 @@ function createMatrxTransport(options) {
|
|
|
506
506
|
}
|
|
507
507
|
if (!response.ok && !expectedErrorStatuses?.includes(response.status)) {
|
|
508
508
|
const serverDetail = await response.clone().json().catch(() => void 0);
|
|
509
|
-
const code =
|
|
509
|
+
const code = chunkPMGKZ4FT_cjs.extractMatrxErrorCode(serverDetail);
|
|
510
510
|
diagnostics?.onError?.(
|
|
511
511
|
{
|
|
512
512
|
type: classifyStatus(response.status),
|
|
513
|
-
message:
|
|
513
|
+
message: chunkPMGKZ4FT_cjs.extractMatrxErrorMessage(serverDetail) ?? `HTTP ${response.status}`,
|
|
514
514
|
status: response.status,
|
|
515
515
|
serverDetail,
|
|
516
516
|
...code ? { code } : {}
|
|
@@ -840,7 +840,7 @@ async function readServerDetail(response) {
|
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
async function throwApiError(path, response) {
|
|
843
|
-
throw new
|
|
843
|
+
throw new chunkPMGKZ4FT_cjs.MatrxApiError({
|
|
844
844
|
status: response.status,
|
|
845
845
|
path,
|
|
846
846
|
serverDetail: await readServerDetail(response)
|
|
@@ -861,7 +861,7 @@ function toRunHandle(response, options) {
|
|
|
861
861
|
return {
|
|
862
862
|
requestId: response.headers.get("X-Request-ID"),
|
|
863
863
|
conversationId: response.headers.get("X-Conversation-ID"),
|
|
864
|
-
events:
|
|
864
|
+
events: chunkPMGKZ4FT_cjs.readMatrxNdjsonStream(response.body, {
|
|
865
865
|
...options.signal ? { signal: options.signal } : {},
|
|
866
866
|
...options.maxReadAhead !== void 0 ? { maxReadAhead: options.maxReadAhead } : {},
|
|
867
867
|
...options.onMalformedLine ? { onMalformedLine: options.onMalformedLine } : {},
|
|
@@ -884,7 +884,7 @@ async function requestStream(transport, path, options) {
|
|
|
884
884
|
});
|
|
885
885
|
if (!response.ok) return throwApiError(path, response);
|
|
886
886
|
if (!response.body) {
|
|
887
|
-
throw new
|
|
887
|
+
throw new chunkPMGKZ4FT_cjs.MatrxApiError({
|
|
888
888
|
status: response.status,
|
|
889
889
|
path,
|
|
890
890
|
serverDetail: { code: "missing_response_body" },
|
|
@@ -944,7 +944,7 @@ async function getRuntimeOperationStatus(transport, requestId, options = {}) {
|
|
|
944
944
|
{ method: "GET", ...options.signal ? { signal: options.signal } : {} }
|
|
945
945
|
);
|
|
946
946
|
} catch (error) {
|
|
947
|
-
if (error instanceof
|
|
947
|
+
if (error instanceof chunkPMGKZ4FT_cjs.MatrxApiError && error.status === 404) return null;
|
|
948
948
|
throw error;
|
|
949
949
|
}
|
|
950
950
|
}
|
|
@@ -959,7 +959,7 @@ async function getRuntimeOperationsByLink(transport, linkKind, linkId, options =
|
|
|
959
959
|
{ method: "GET", ...options.signal ? { signal: options.signal } : {} }
|
|
960
960
|
);
|
|
961
961
|
} catch (error) {
|
|
962
|
-
if (error instanceof
|
|
962
|
+
if (error instanceof chunkPMGKZ4FT_cjs.MatrxApiError && error.status === 404) return null;
|
|
963
963
|
throw error;
|
|
964
964
|
}
|
|
965
965
|
}
|
|
@@ -1000,7 +1000,7 @@ async function* followRuntimeOperationEvents(transport, executionId, options = {
|
|
|
1000
1000
|
...options.signal ? { signal: options.signal } : {}
|
|
1001
1001
|
}
|
|
1002
1002
|
);
|
|
1003
|
-
const frames =
|
|
1003
|
+
const frames = chunkPMGKZ4FT_cjs.readMatrxSseStream(
|
|
1004
1004
|
response.body,
|
|
1005
1005
|
options.onIncomplete ? { onIncomplete: options.onIncomplete } : {}
|
|
1006
1006
|
);
|
|
@@ -1203,7 +1203,7 @@ async function openMatrxStream(transport, path, options = {}) {
|
|
|
1203
1203
|
return toRunHandle(response, options);
|
|
1204
1204
|
}
|
|
1205
1205
|
function withRunOrganization(transport, organizationId) {
|
|
1206
|
-
const orgId =
|
|
1206
|
+
const orgId = chunkPMGKZ4FT_cjs.requireOrganizationContext(organizationId);
|
|
1207
1207
|
return {
|
|
1208
1208
|
fetch: (path, init) => transport.fetch(path, {
|
|
1209
1209
|
...init,
|
|
@@ -1230,7 +1230,7 @@ async function followWorkflowRunEvents(transport, runId, options) {
|
|
|
1230
1230
|
throw error;
|
|
1231
1231
|
}
|
|
1232
1232
|
try {
|
|
1233
|
-
for await (const frame of
|
|
1233
|
+
for await (const frame of chunkPMGKZ4FT_cjs.readMatrxSseStream(
|
|
1234
1234
|
response.body
|
|
1235
1235
|
)) {
|
|
1236
1236
|
if (frame.event === "end") return { ended: true };
|
|
@@ -1276,7 +1276,7 @@ async function resumeOrRejoin(transport, resumeCall, options) {
|
|
|
1276
1276
|
} catch (error) {
|
|
1277
1277
|
const target = readLiveRunRejoin(error);
|
|
1278
1278
|
if (!target) {
|
|
1279
|
-
if (error instanceof
|
|
1279
|
+
if (error instanceof chunkPMGKZ4FT_cjs.MatrxApiError && isResumeConflict(error)) {
|
|
1280
1280
|
return { kind: "resume_conflict", error };
|
|
1281
1281
|
}
|
|
1282
1282
|
throw error;
|
|
@@ -1692,7 +1692,7 @@ async function reportProviderSessionUsage(transport, usage, options = {}) {
|
|
|
1692
1692
|
});
|
|
1693
1693
|
return "ok";
|
|
1694
1694
|
} catch (error) {
|
|
1695
|
-
if (error instanceof
|
|
1695
|
+
if (error instanceof chunkPMGKZ4FT_cjs.MatrxApiError) {
|
|
1696
1696
|
const status = error.status;
|
|
1697
1697
|
if (status >= 400 && status < 500 && status !== 401 && status !== 408 && status !== 425 && status !== 429) {
|
|
1698
1698
|
console.warn(`[provider-usage] server refused ${usage.provider} usage ${usage.usage_id} (${status})`);
|
|
@@ -2396,111 +2396,111 @@ Object.defineProperty(exports, "toCredentialsPort", {
|
|
|
2396
2396
|
});
|
|
2397
2397
|
Object.defineProperty(exports, "BackendApiError", {
|
|
2398
2398
|
enumerable: true,
|
|
2399
|
-
get: function () { return
|
|
2399
|
+
get: function () { return chunkPMGKZ4FT_cjs.BackendApiError; }
|
|
2400
2400
|
});
|
|
2401
2401
|
Object.defineProperty(exports, "CONTRACT_SHA256", {
|
|
2402
2402
|
enumerable: true,
|
|
2403
|
-
get: function () { return
|
|
2403
|
+
get: function () { return chunkPMGKZ4FT_cjs.CONTRACT_SHA256; }
|
|
2404
2404
|
});
|
|
2405
2405
|
Object.defineProperty(exports, "DEPLOYMENTS", {
|
|
2406
2406
|
enumerable: true,
|
|
2407
|
-
get: function () { return
|
|
2407
|
+
get: function () { return chunkPMGKZ4FT_cjs.DEPLOYMENTS; }
|
|
2408
2408
|
});
|
|
2409
2409
|
Object.defineProperty(exports, "DOMAINS", {
|
|
2410
2410
|
enumerable: true,
|
|
2411
|
-
get: function () { return
|
|
2411
|
+
get: function () { return chunkPMGKZ4FT_cjs.DOMAINS; }
|
|
2412
2412
|
});
|
|
2413
2413
|
Object.defineProperty(exports, "MatrxApiError", {
|
|
2414
2414
|
enumerable: true,
|
|
2415
|
-
get: function () { return
|
|
2415
|
+
get: function () { return chunkPMGKZ4FT_cjs.MatrxApiError; }
|
|
2416
2416
|
});
|
|
2417
2417
|
Object.defineProperty(exports, "OrganizationContextError", {
|
|
2418
2418
|
enumerable: true,
|
|
2419
|
-
get: function () { return
|
|
2419
|
+
get: function () { return chunkPMGKZ4FT_cjs.OrganizationContextError; }
|
|
2420
2420
|
});
|
|
2421
2421
|
Object.defineProperty(exports, "StreamTransportError", {
|
|
2422
2422
|
enumerable: true,
|
|
2423
|
-
get: function () { return
|
|
2423
|
+
get: function () { return chunkPMGKZ4FT_cjs.StreamTransportError; }
|
|
2424
2424
|
});
|
|
2425
2425
|
Object.defineProperty(exports, "applyOrganizationContextHeader", {
|
|
2426
2426
|
enumerable: true,
|
|
2427
|
-
get: function () { return
|
|
2427
|
+
get: function () { return chunkPMGKZ4FT_cjs.applyOrganizationContextHeader; }
|
|
2428
2428
|
});
|
|
2429
2429
|
Object.defineProperty(exports, "assertOrganizationMatchesOperation", {
|
|
2430
2430
|
enumerable: true,
|
|
2431
|
-
get: function () { return
|
|
2431
|
+
get: function () { return chunkPMGKZ4FT_cjs.assertOrganizationMatchesOperation; }
|
|
2432
2432
|
});
|
|
2433
2433
|
Object.defineProperty(exports, "assertQueryOrganizationMatchesContext", {
|
|
2434
2434
|
enumerable: true,
|
|
2435
|
-
get: function () { return
|
|
2435
|
+
get: function () { return chunkPMGKZ4FT_cjs.assertQueryOrganizationMatchesContext; }
|
|
2436
2436
|
});
|
|
2437
2437
|
Object.defineProperty(exports, "createApi", {
|
|
2438
2438
|
enumerable: true,
|
|
2439
|
-
get: function () { return
|
|
2439
|
+
get: function () { return chunkPMGKZ4FT_cjs.createApi; }
|
|
2440
2440
|
});
|
|
2441
2441
|
Object.defineProperty(exports, "createOrganizationOperation", {
|
|
2442
2442
|
enumerable: true,
|
|
2443
|
-
get: function () { return
|
|
2443
|
+
get: function () { return chunkPMGKZ4FT_cjs.createOrganizationOperation; }
|
|
2444
2444
|
});
|
|
2445
2445
|
Object.defineProperty(exports, "describeBackendFailure", {
|
|
2446
2446
|
enumerable: true,
|
|
2447
|
-
get: function () { return
|
|
2447
|
+
get: function () { return chunkPMGKZ4FT_cjs.describeBackendFailure; }
|
|
2448
2448
|
});
|
|
2449
2449
|
Object.defineProperty(exports, "extractMatrxErrorCode", {
|
|
2450
2450
|
enumerable: true,
|
|
2451
|
-
get: function () { return
|
|
2451
|
+
get: function () { return chunkPMGKZ4FT_cjs.extractMatrxErrorCode; }
|
|
2452
2452
|
});
|
|
2453
2453
|
Object.defineProperty(exports, "extractMatrxErrorMessage", {
|
|
2454
2454
|
enumerable: true,
|
|
2455
|
-
get: function () { return
|
|
2455
|
+
get: function () { return chunkPMGKZ4FT_cjs.extractMatrxErrorMessage; }
|
|
2456
2456
|
});
|
|
2457
2457
|
Object.defineProperty(exports, "getUserMessage", {
|
|
2458
2458
|
enumerable: true,
|
|
2459
|
-
get: function () { return
|
|
2459
|
+
get: function () { return chunkPMGKZ4FT_cjs.getUserMessage; }
|
|
2460
2460
|
});
|
|
2461
2461
|
Object.defineProperty(exports, "isGenericUserMessage", {
|
|
2462
2462
|
enumerable: true,
|
|
2463
|
-
get: function () { return
|
|
2463
|
+
get: function () { return chunkPMGKZ4FT_cjs.isGenericUserMessage; }
|
|
2464
2464
|
});
|
|
2465
2465
|
Object.defineProperty(exports, "isStreamTransportLost", {
|
|
2466
2466
|
enumerable: true,
|
|
2467
|
-
get: function () { return
|
|
2467
|
+
get: function () { return chunkPMGKZ4FT_cjs.isStreamTransportLost; }
|
|
2468
2468
|
});
|
|
2469
2469
|
Object.defineProperty(exports, "openJsonOrStream", {
|
|
2470
2470
|
enumerable: true,
|
|
2471
|
-
get: function () { return
|
|
2471
|
+
get: function () { return chunkPMGKZ4FT_cjs.openJsonOrStream; }
|
|
2472
2472
|
});
|
|
2473
2473
|
Object.defineProperty(exports, "openStream", {
|
|
2474
2474
|
enumerable: true,
|
|
2475
|
-
get: function () { return
|
|
2475
|
+
get: function () { return chunkPMGKZ4FT_cjs.openStream; }
|
|
2476
2476
|
});
|
|
2477
2477
|
Object.defineProperty(exports, "parseCallApiError", {
|
|
2478
2478
|
enumerable: true,
|
|
2479
|
-
get: function () { return
|
|
2479
|
+
get: function () { return chunkPMGKZ4FT_cjs.parseCallApiError; }
|
|
2480
2480
|
});
|
|
2481
2481
|
Object.defineProperty(exports, "parseHttpError", {
|
|
2482
2482
|
enumerable: true,
|
|
2483
|
-
get: function () { return
|
|
2483
|
+
get: function () { return chunkPMGKZ4FT_cjs.parseHttpError; }
|
|
2484
2484
|
});
|
|
2485
2485
|
Object.defineProperty(exports, "parseHttpErrorBody", {
|
|
2486
2486
|
enumerable: true,
|
|
2487
|
-
get: function () { return
|
|
2487
|
+
get: function () { return chunkPMGKZ4FT_cjs.parseHttpErrorBody; }
|
|
2488
2488
|
});
|
|
2489
2489
|
Object.defineProperty(exports, "parsePersistedBackendError", {
|
|
2490
2490
|
enumerable: true,
|
|
2491
|
-
get: function () { return
|
|
2491
|
+
get: function () { return chunkPMGKZ4FT_cjs.parsePersistedBackendError; }
|
|
2492
2492
|
});
|
|
2493
2493
|
Object.defineProperty(exports, "parseStreamError", {
|
|
2494
2494
|
enumerable: true,
|
|
2495
|
-
get: function () { return
|
|
2495
|
+
get: function () { return chunkPMGKZ4FT_cjs.parseStreamError; }
|
|
2496
2496
|
});
|
|
2497
2497
|
Object.defineProperty(exports, "requireOrganizationContext", {
|
|
2498
2498
|
enumerable: true,
|
|
2499
|
-
get: function () { return
|
|
2499
|
+
get: function () { return chunkPMGKZ4FT_cjs.requireOrganizationContext; }
|
|
2500
2500
|
});
|
|
2501
2501
|
Object.defineProperty(exports, "unwrapUpstreamError", {
|
|
2502
2502
|
enumerable: true,
|
|
2503
|
-
get: function () { return
|
|
2503
|
+
get: function () { return chunkPMGKZ4FT_cjs.unwrapUpstreamError; }
|
|
2504
2504
|
});
|
|
2505
2505
|
Object.defineProperty(exports, "AbortedError", {
|
|
2506
2506
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, 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 openJsonOrStream, p as openStream } from './index-
|
|
1
|
+
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-C3ZlP3BI.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 openJsonOrStream, p as openStream } from './index-C3ZlP3BI.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 } from './net.cjs';
|
|
@@ -7,7 +7,7 @@ export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, Ne
|
|
|
7
7
|
import { g as MandateKey, b as DynamicMandateKey } from './keys.generated-CK_C5UXG.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* `@ai-matrx/
|
|
10
|
+
* `@ai-matrx/api` — the Matrx transport port.
|
|
11
11
|
*
|
|
12
12
|
* The ONE seam between this package's wire semantics and a host's connection
|
|
13
13
|
* policy. This package owns WHAT is said to the AI Matrx server — paths,
|
|
@@ -100,7 +100,7 @@ declare function extractMatrxErrorMessage(serverDetail: unknown): string | undef
|
|
|
100
100
|
declare function extractMatrxErrorCode(serverDetail: unknown): string | null;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* `@ai-matrx/
|
|
103
|
+
* `@ai-matrx/api` — the AI Matrx server's error model, as every
|
|
104
104
|
* client reads it: `BackendApiError` (the server's `APIError` body),
|
|
105
105
|
* `StreamTransportError` (the socket died mid-run; the run may still finish
|
|
106
106
|
* and is reattachable), parsing of HTTP / stream / persisted errors, and the
|
|
@@ -429,7 +429,7 @@ declare function aiVersionPathOverrides(version: MatrxAiApiVersion): Record<stri
|
|
|
429
429
|
* - **timeouts** — connect 15s (for a non-streaming FastAPI handler this is
|
|
430
430
|
* effectively time-to-response), total UNCAPPED (the port cannot tell a JSON
|
|
431
431
|
* call from a long-lived NDJSON/SSE stream; the connect timeout is the JSON
|
|
432
|
-
* guard), via `@ai-matrx/
|
|
432
|
+
* guard), via `@ai-matrx/api/net`'s `resilientFetch`;
|
|
433
433
|
* - **protocol** — the AI API version transform (`applyAiApiVersion`, default
|
|
434
434
|
* v2) + the loud v2 → v1 transport fallback (`./protocol`);
|
|
435
435
|
* - **credentials** — read fresh from the injected `CredentialsPort` on EVERY
|
|
@@ -584,7 +584,7 @@ interface CreateMatrxTransportOptions {
|
|
|
584
584
|
declare function createMatrxTransport(options: CreateMatrxTransportOptions): MatrxTransport;
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
|
-
* `@ai-matrx/
|
|
587
|
+
* `@ai-matrx/api` — THE request pipeline every typed Matrx server call
|
|
588
588
|
* rides (chat package independence P9b). One implementation for every client:
|
|
589
589
|
* matrx-frontend's `lib/api` `callApi` and the chat package's bare-host default
|
|
590
590
|
* both build on it, and supply only their host facts — where the server is,
|
|
@@ -815,7 +815,7 @@ declare function applyOrganizationContextHeader(headers: Record<string, string>,
|
|
|
815
815
|
*/
|
|
816
816
|
declare function assertQueryOrganizationMatchesContext(queryParams: Record<string, string | number | boolean> | undefined, organizationId: string): void;
|
|
817
817
|
|
|
818
|
-
/** `@ai-matrx/
|
|
818
|
+
/** `@ai-matrx/api` — moved from matrx-frontend `lib/api/log-api-target.ts` (chat-package independence P9). */
|
|
819
819
|
/**
|
|
820
820
|
* lib/api/log-api-target.ts
|
|
821
821
|
*
|
|
@@ -860,7 +860,7 @@ interface ApiTargetLogContext {
|
|
|
860
860
|
declare function logApiTarget(url: string, context: ApiTargetLogContext): void;
|
|
861
861
|
|
|
862
862
|
/**
|
|
863
|
-
* `@ai-matrx/
|
|
863
|
+
* `@ai-matrx/api` — the single primitive that transforms a server
|
|
864
864
|
* endpoint PATH (never the base URL) before it is sent: an exact per-path
|
|
865
865
|
* override, else a global version prefix. Moved from matrx-frontend
|
|
866
866
|
* `lib/api/resolve-endpoint-path.ts` (chat-package independence P9).
|
|
@@ -906,7 +906,7 @@ declare function resolveEndpointPath(canonicalPath: string, config?: EndpointOve
|
|
|
906
906
|
declare function applyDesktopTargetToRequestBody(body: unknown, targetInstanceId: string | null | undefined): void;
|
|
907
907
|
|
|
908
908
|
/**
|
|
909
|
-
* `@ai-matrx/
|
|
909
|
+
* `@ai-matrx/api` — moved from matrx-frontend `lib/api/run-wait.ts` (chat-package
|
|
910
910
|
* independence P9). The knob read is injected (`resolveRunWaitWith`); the host wraps it.
|
|
911
911
|
*/
|
|
912
912
|
/**
|
|
@@ -991,7 +991,7 @@ declare function runJobLabel(kind: RunOutputKind, modelLabel: string | null): st
|
|
|
991
991
|
declare function runWaitTimeoutMessage(kind: RunOutputKind, modelLabel: string | null, seconds: number | null): string;
|
|
992
992
|
|
|
993
993
|
/**
|
|
994
|
-
* `@ai-matrx/
|
|
994
|
+
* `@ai-matrx/api` — the client warm-up primitive.
|
|
995
995
|
*
|
|
996
996
|
* Contract: common-docs `systems/architecture/warm-cache/CONTRACT.md`.
|
|
997
997
|
*
|
|
@@ -1063,7 +1063,7 @@ declare function preconnectServer(baseUrl: string | null | undefined): void;
|
|
|
1063
1063
|
declare function resetPreconnectedForTests(): void;
|
|
1064
1064
|
|
|
1065
1065
|
/**
|
|
1066
|
-
* Internal request plumbing for `@ai-matrx/
|
|
1066
|
+
* Internal request plumbing for `@ai-matrx/api`. Not part of the
|
|
1067
1067
|
* public surface — `matrx/index.ts` deliberately does not re-export this
|
|
1068
1068
|
* module. Everything here is pure: no globals, no work at import time.
|
|
1069
1069
|
*/
|
|
@@ -2369,7 +2369,7 @@ declare function listUserPendingToolCalls(transport: MatrxTransport, options?: {
|
|
|
2369
2369
|
}): Promise<MatrxPendingCallSummary[]>;
|
|
2370
2370
|
|
|
2371
2371
|
/**
|
|
2372
|
-
* `@ai-matrx/
|
|
2372
|
+
* `@ai-matrx/api` — every AI Matrx server endpoint path, by feature
|
|
2373
2373
|
* area (matching the server's router structure). Paths only, rooted at the
|
|
2374
2374
|
* host (`/ai/...`, `/health`); the HOST owns the base URL.
|
|
2375
2375
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, 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 openJsonOrStream, p as openStream } from './index-
|
|
1
|
+
import { M as MatrxStreamEnvelope, b as MatrxNdjsonIssue, c as MatrxStreamEnvelopeObservation, d as MatrxSseFrame } from './index-C3ZlP3BI.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 openJsonOrStream, p as openStream } from './index-C3ZlP3BI.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 } from './net.js';
|
|
@@ -7,7 +7,7 @@ export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, Ne
|
|
|
7
7
|
import { g as MandateKey, b as DynamicMandateKey } from './keys.generated-CK_C5UXG.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* `@ai-matrx/
|
|
10
|
+
* `@ai-matrx/api` — the Matrx transport port.
|
|
11
11
|
*
|
|
12
12
|
* The ONE seam between this package's wire semantics and a host's connection
|
|
13
13
|
* policy. This package owns WHAT is said to the AI Matrx server — paths,
|
|
@@ -100,7 +100,7 @@ declare function extractMatrxErrorMessage(serverDetail: unknown): string | undef
|
|
|
100
100
|
declare function extractMatrxErrorCode(serverDetail: unknown): string | null;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* `@ai-matrx/
|
|
103
|
+
* `@ai-matrx/api` — the AI Matrx server's error model, as every
|
|
104
104
|
* client reads it: `BackendApiError` (the server's `APIError` body),
|
|
105
105
|
* `StreamTransportError` (the socket died mid-run; the run may still finish
|
|
106
106
|
* and is reattachable), parsing of HTTP / stream / persisted errors, and the
|
|
@@ -429,7 +429,7 @@ declare function aiVersionPathOverrides(version: MatrxAiApiVersion): Record<stri
|
|
|
429
429
|
* - **timeouts** — connect 15s (for a non-streaming FastAPI handler this is
|
|
430
430
|
* effectively time-to-response), total UNCAPPED (the port cannot tell a JSON
|
|
431
431
|
* call from a long-lived NDJSON/SSE stream; the connect timeout is the JSON
|
|
432
|
-
* guard), via `@ai-matrx/
|
|
432
|
+
* guard), via `@ai-matrx/api/net`'s `resilientFetch`;
|
|
433
433
|
* - **protocol** — the AI API version transform (`applyAiApiVersion`, default
|
|
434
434
|
* v2) + the loud v2 → v1 transport fallback (`./protocol`);
|
|
435
435
|
* - **credentials** — read fresh from the injected `CredentialsPort` on EVERY
|
|
@@ -584,7 +584,7 @@ interface CreateMatrxTransportOptions {
|
|
|
584
584
|
declare function createMatrxTransport(options: CreateMatrxTransportOptions): MatrxTransport;
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
|
-
* `@ai-matrx/
|
|
587
|
+
* `@ai-matrx/api` — THE request pipeline every typed Matrx server call
|
|
588
588
|
* rides (chat package independence P9b). One implementation for every client:
|
|
589
589
|
* matrx-frontend's `lib/api` `callApi` and the chat package's bare-host default
|
|
590
590
|
* both build on it, and supply only their host facts — where the server is,
|
|
@@ -815,7 +815,7 @@ declare function applyOrganizationContextHeader(headers: Record<string, string>,
|
|
|
815
815
|
*/
|
|
816
816
|
declare function assertQueryOrganizationMatchesContext(queryParams: Record<string, string | number | boolean> | undefined, organizationId: string): void;
|
|
817
817
|
|
|
818
|
-
/** `@ai-matrx/
|
|
818
|
+
/** `@ai-matrx/api` — moved from matrx-frontend `lib/api/log-api-target.ts` (chat-package independence P9). */
|
|
819
819
|
/**
|
|
820
820
|
* lib/api/log-api-target.ts
|
|
821
821
|
*
|
|
@@ -860,7 +860,7 @@ interface ApiTargetLogContext {
|
|
|
860
860
|
declare function logApiTarget(url: string, context: ApiTargetLogContext): void;
|
|
861
861
|
|
|
862
862
|
/**
|
|
863
|
-
* `@ai-matrx/
|
|
863
|
+
* `@ai-matrx/api` — the single primitive that transforms a server
|
|
864
864
|
* endpoint PATH (never the base URL) before it is sent: an exact per-path
|
|
865
865
|
* override, else a global version prefix. Moved from matrx-frontend
|
|
866
866
|
* `lib/api/resolve-endpoint-path.ts` (chat-package independence P9).
|
|
@@ -906,7 +906,7 @@ declare function resolveEndpointPath(canonicalPath: string, config?: EndpointOve
|
|
|
906
906
|
declare function applyDesktopTargetToRequestBody(body: unknown, targetInstanceId: string | null | undefined): void;
|
|
907
907
|
|
|
908
908
|
/**
|
|
909
|
-
* `@ai-matrx/
|
|
909
|
+
* `@ai-matrx/api` — moved from matrx-frontend `lib/api/run-wait.ts` (chat-package
|
|
910
910
|
* independence P9). The knob read is injected (`resolveRunWaitWith`); the host wraps it.
|
|
911
911
|
*/
|
|
912
912
|
/**
|
|
@@ -991,7 +991,7 @@ declare function runJobLabel(kind: RunOutputKind, modelLabel: string | null): st
|
|
|
991
991
|
declare function runWaitTimeoutMessage(kind: RunOutputKind, modelLabel: string | null, seconds: number | null): string;
|
|
992
992
|
|
|
993
993
|
/**
|
|
994
|
-
* `@ai-matrx/
|
|
994
|
+
* `@ai-matrx/api` — the client warm-up primitive.
|
|
995
995
|
*
|
|
996
996
|
* Contract: common-docs `systems/architecture/warm-cache/CONTRACT.md`.
|
|
997
997
|
*
|
|
@@ -1063,7 +1063,7 @@ declare function preconnectServer(baseUrl: string | null | undefined): void;
|
|
|
1063
1063
|
declare function resetPreconnectedForTests(): void;
|
|
1064
1064
|
|
|
1065
1065
|
/**
|
|
1066
|
-
* Internal request plumbing for `@ai-matrx/
|
|
1066
|
+
* Internal request plumbing for `@ai-matrx/api`. Not part of the
|
|
1067
1067
|
* public surface — `matrx/index.ts` deliberately does not re-export this
|
|
1068
1068
|
* module. Everything here is pure: no globals, no work at import time.
|
|
1069
1069
|
*/
|
|
@@ -2369,7 +2369,7 @@ declare function listUserPendingToolCalls(transport: MatrxTransport, options?: {
|
|
|
2369
2369
|
}): Promise<MatrxPendingCallSummary[]>;
|
|
2370
2370
|
|
|
2371
2371
|
/**
|
|
2372
|
-
* `@ai-matrx/
|
|
2372
|
+
* `@ai-matrx/api` — every AI Matrx server endpoint path, by feature
|
|
2373
2373
|
* area (matching the server's router structure). Paths only, rooted at the
|
|
2374
2374
|
* host (`/ai/...`, `/health`); the HOST owns the base URL.
|
|
2375
2375
|
*
|
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, 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, isGenericUserMessage, isStreamTransportLost, openJsonOrStream, openStream, parseCallApiError, parseHttpError, parseHttpErrorBody, parsePersistedBackendError, parseStreamError, requireOrganizationContext, unwrapUpstreamError } from './chunk-
|
|
3
|
+
import { OrganizationContextError, BackendApiError, parseHttpError, MatrxApiError, applyOrganizationContextHeader, extractMatrxErrorCode, extractMatrxErrorMessage, readMatrxNdjsonStream, readMatrxSseStream, requireOrganizationContext, StreamTransportError } from './chunk-PIVTHTVR.js';
|
|
4
|
+
export { BackendApiError, CONTRACT_SHA256, DEPLOYMENTS, DOMAINS, MatrxApiError, OrganizationContextError, StreamTransportError, applyOrganizationContextHeader, assertOrganizationMatchesOperation, assertQueryOrganizationMatchesContext, createApi, createOrganizationOperation, describeBackendFailure, extractMatrxErrorCode, extractMatrxErrorMessage, getUserMessage, isGenericUserMessage, isStreamTransportLost, openJsonOrStream, openStream, parseCallApiError, parseHttpError, parseHttpErrorBody, parsePersistedBackendError, parseStreamError, requireOrganizationContext, unwrapUpstreamError } from './chunk-PIVTHTVR.js';
|
|
5
5
|
import { resilientFetch, 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 { credentialToHeaders } from '@ai-matrx/auth/credentials';
|
package/dist/integrations.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPMGKZ4FT_cjs = require('./chunk-PMGKZ4FT.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/integrations.ts
|
|
@@ -3562,11 +3562,11 @@ function bingIntegrationsDisconnect(api, args, options) {
|
|
|
3562
3562
|
}
|
|
3563
3563
|
var $importNotionZip = { m: "POST", p: "/notion-import/zip", d: "aidream", a: "user", o: "required", s: "ndjson", n: "integrations.import_notion_zip" };
|
|
3564
3564
|
function importNotionZip(api, args, options) {
|
|
3565
|
-
return
|
|
3565
|
+
return chunkPMGKZ4FT_cjs.openStream(api, $importNotionZip, args, options);
|
|
3566
3566
|
}
|
|
3567
3567
|
var $importNotionConnected = { m: "POST", p: "/notion-import/connected", d: "aidream", a: "user", o: "required", s: "ndjson", n: "integrations.import_notion_connected" };
|
|
3568
3568
|
function importNotionConnected(api, args, options) {
|
|
3569
|
-
return
|
|
3569
|
+
return chunkPMGKZ4FT_cjs.openStream(api, $importNotionConnected, args, options);
|
|
3570
3570
|
}
|
|
3571
3571
|
var TABLE = {
|
|
3572
3572
|
"GET /ebay/account-deletion": $ebayAccountDeletionChallenge,
|
package/dist/integrations.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-C3ZlP3BI.cjs';
|
|
2
2
|
import { JsonValue, CalendarLocalRefreshResult, CalendarCreateResult, CalendarEventAttendee, StorageImportResult } from './schemas.cjs';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/integrations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-C3ZlP3BI.js';
|
|
2
2
|
import { JsonValue, CalendarLocalRefreshResult, CalendarCreateResult, CalendarEventAttendee, StorageImportResult } from './schemas.js';
|
|
3
3
|
import '@ai-matrx/auth/credentials';
|
|
4
4
|
|
package/dist/integrations.js
CHANGED