@ai-matrx/api 0.1.4 → 0.1.6
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 +13 -0
- package/dist/account.d.cts +2 -2
- package/dist/account.d.ts +2 -2
- package/dist/agents.cjs +11 -12
- package/dist/agents.d.cts +2 -2
- package/dist/agents.d.ts +2 -2
- package/dist/agents.js +1 -2
- package/dist/ai.cjs +2 -3
- package/dist/ai.d.cts +2 -2
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +1 -2
- package/dist/apps.cjs +5 -6
- package/dist/apps.d.cts +2 -2
- package/dist/apps.d.ts +2 -2
- package/dist/apps.js +1 -2
- package/dist/architecture.cjs +10 -11
- package/dist/architecture.d.cts +2 -2
- package/dist/architecture.d.ts +2 -2
- package/dist/architecture.js +1 -2
- package/dist/audio.cjs +4 -5
- package/dist/audio.d.cts +2 -2
- package/dist/audio.d.ts +2 -2
- package/dist/audio.js +1 -2
- package/dist/chat.cjs +11 -12
- package/dist/chat.d.cts +2 -2
- package/dist/chat.d.ts +2 -2
- package/dist/chat.js +1 -2
- package/dist/{chunk-6UOESA3L.js → chunk-2FJPWNXG.js} +1 -3
- package/dist/chunk-K27FH34N.js +1 -0
- package/dist/chunk-PJXXT3GB.cjs +12 -0
- package/dist/{chunk-DMJ3ZRN7.cjs → chunk-UO3H55R3.cjs} +5 -7
- package/dist/code.cjs +6 -7
- package/dist/code.d.cts +2 -2
- package/dist/code.d.ts +2 -2
- package/dist/code.js +1 -2
- package/dist/commerce.d.cts +2 -2
- package/dist/commerce.d.ts +2 -2
- package/dist/communications.cjs +4 -5
- package/dist/communications.d.cts +2 -2
- package/dist/communications.d.ts +2 -2
- package/dist/communications.js +1 -2
- package/dist/computer.cjs +3 -4
- package/dist/computer.d.cts +2 -2
- package/dist/computer.d.ts +2 -2
- package/dist/computer.js +1 -2
- package/dist/content.cjs +4 -5
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +1 -2
- package/dist/credentials.cjs +1 -19
- package/dist/credentials.d.cts +1 -82
- package/dist/credentials.d.ts +1 -82
- package/dist/credentials.js +1 -1
- package/dist/crm.cjs +2 -3
- package/dist/crm.d.cts +2 -2
- package/dist/crm.d.ts +2 -2
- package/dist/crm.js +1 -2
- package/dist/data.d.cts +2 -2
- package/dist/data.d.ts +2 -2
- package/dist/education.cjs +4 -5
- package/dist/education.d.cts +2 -2
- package/dist/education.d.ts +2 -2
- package/dist/education.js +1 -2
- package/dist/files.cjs +20 -21
- package/dist/files.d.cts +2 -2
- package/dist/files.d.ts +2 -2
- package/dist/files.js +1 -2
- package/dist/human-resources.d.cts +2 -2
- package/dist/human-resources.d.ts +2 -2
- package/dist/{index-BUb7OxrB.d.ts → index-Xx6L_pWk.d.cts} +1 -1
- package/dist/{index-DCyEAVSW.d.cts → index-Xx6L_pWk.d.ts} +1 -1
- package/dist/index.cjs +57 -74
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -6
- package/dist/integrations.cjs +3 -4
- package/dist/integrations.d.cts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.js +1 -2
- package/dist/intelligence.cjs +6 -7
- package/dist/intelligence.d.cts +2 -2
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +1 -2
- package/dist/knowledge.cjs +42 -43
- package/dist/knowledge.d.cts +2 -2
- package/dist/knowledge.d.ts +2 -2
- package/dist/knowledge.js +1 -2
- package/dist/legal.cjs +6 -7
- package/dist/legal.d.cts +2 -2
- package/dist/legal.d.ts +2 -2
- package/dist/legal.js +1 -2
- package/dist/marketing.cjs +76 -77
- package/dist/marketing.d.cts +2 -2
- package/dist/marketing.d.ts +2 -2
- package/dist/marketing.js +1 -2
- package/dist/masterwork.cjs +32 -33
- package/dist/masterwork.d.cts +2 -2
- package/dist/masterwork.d.ts +2 -2
- package/dist/masterwork.js +1 -2
- package/dist/media.cjs +11 -12
- package/dist/media.d.cts +2 -2
- package/dist/media.d.ts +2 -2
- package/dist/media.js +1 -2
- package/dist/platform.cjs +3 -4
- package/dist/platform.d.cts +2 -2
- package/dist/platform.d.ts +2 -2
- package/dist/platform.js +1 -2
- package/dist/publish.cjs +7 -8
- package/dist/publish.d.cts +2 -2
- package/dist/publish.d.ts +2 -2
- package/dist/publish.js +1 -2
- package/dist/stream.cjs +10 -11
- package/dist/stream.d.cts +2 -2
- package/dist/stream.d.ts +2 -2
- package/dist/stream.js +1 -2
- package/dist/web.cjs +26 -27
- package/dist/web.d.cts +2 -2
- package/dist/web.d.ts +2 -2
- package/dist/web.js +1 -2
- package/dist/workflows.cjs +13 -14
- package/dist/workflows.d.cts +2 -2
- package/dist/workflows.d.ts +2 -2
- package/dist/workflows.js +1 -2
- package/package.json +6 -6
- package/dist/chunk-5WJLKYH6.cjs +0 -48
- package/dist/chunk-VTZKJMSY.js +0 -43
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk2SXAAKGV_cjs = require('./chunk-2SXAAKGV.cjs');
|
|
4
|
-
var chunk5WJLKYH6_cjs = require('./chunk-5WJLKYH6.cjs');
|
|
5
4
|
var uuid = require('@ai-matrx/kit/uuid');
|
|
5
|
+
var credentials = require('@ai-matrx/auth/credentials');
|
|
6
6
|
|
|
7
7
|
// src/core/backend-errors.ts
|
|
8
8
|
var BackendApiError = class extends Error {
|
|
@@ -818,8 +818,6 @@ var DEPLOYMENTS = {
|
|
|
818
818
|
}
|
|
819
819
|
};
|
|
820
820
|
var DOMAINS = ["account", "agents", "ai", "apps", "architecture", "audio", "chat", "code", "commerce", "communications", "computer", "content", "crm", "data", "education", "files", "human-resources", "integrations", "intelligence", "knowledge", "legal", "marketing", "masterwork", "media", "platform", "publish", "web", "workflows"];
|
|
821
|
-
|
|
822
|
-
// src/api.ts
|
|
823
821
|
var DEFAULT_CONNECT_TIMEOUT_MS = 15e3;
|
|
824
822
|
function defaultRequestId() {
|
|
825
823
|
const c = globalThis.crypto;
|
|
@@ -881,7 +879,7 @@ async function errorFrom(response, path) {
|
|
|
881
879
|
return new MatrxApiError({ status: response.status, path, serverDetail });
|
|
882
880
|
}
|
|
883
881
|
function createApi(options = {}) {
|
|
884
|
-
const credentials =
|
|
882
|
+
const credentials$1 = credentials.toCredentialsPort(options.credentials);
|
|
885
883
|
const environment = options.environment ?? "production";
|
|
886
884
|
const mintRequestId = options.requestId ?? defaultRequestId;
|
|
887
885
|
const retryAttempts = Math.max(1, options.retryAttempts ?? 3);
|
|
@@ -915,7 +913,7 @@ function createApi(options = {}) {
|
|
|
915
913
|
...options.headers,
|
|
916
914
|
...call?.headers,
|
|
917
915
|
Accept: acceptFor(op.s),
|
|
918
|
-
[
|
|
916
|
+
[credentials.MATRX_HEADERS.requestId]: requestId
|
|
919
917
|
};
|
|
920
918
|
let body;
|
|
921
919
|
if (args?.body !== void 0 && op.m !== "GET" && op.m !== "HEAD") {
|
|
@@ -926,8 +924,8 @@ function createApi(options = {}) {
|
|
|
926
924
|
headers["Content-Type"] = "application/json";
|
|
927
925
|
}
|
|
928
926
|
}
|
|
929
|
-
Object.assign(headers,
|
|
930
|
-
if (orgId !== null) headers[
|
|
927
|
+
Object.assign(headers, credentials.credentialToHeaders(await credentials$1.get()));
|
|
928
|
+
if (orgId !== null) headers[credentials.MATRX_HEADERS.organization] = orgId;
|
|
931
929
|
options.onRequest?.({ operation: op.n, method: op.m, url, requestId, deployment: op.d });
|
|
932
930
|
const attempt = () => chunk2SXAAKGV_cjs.resilientFetch(
|
|
933
931
|
url,
|
package/dist/code.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/code.ts
|
|
8
7
|
var $codingSessionBridge = { m: "POST", p: "/coding-sessions/bridge", d: "aidream", a: "user", o: "exempt", n: "code.coding_session_bridge" };
|
|
@@ -47,7 +46,7 @@ function claudeManagedCapabilities(api, args, options) {
|
|
|
47
46
|
}
|
|
48
47
|
var $claudeManagedStream = { m: "POST", p: "/coding-sessions/claude/stream", d: "aidream", a: "user", o: "required", s: "ndjson", n: "code.claude_managed_stream" };
|
|
49
48
|
function claudeManagedStream(api, args, options) {
|
|
50
|
-
return
|
|
49
|
+
return chunkUO3H55R3_cjs.openStream(api, $claudeManagedStream, args, options);
|
|
51
50
|
}
|
|
52
51
|
var $cancelClaudeManagedRuntime = { m: "POST", p: "/coding-sessions/claude/runtimes/{runtime_id}/cancel", d: "aidream", a: "user", o: "required", n: "code.cancel_claude_managed_runtime" };
|
|
53
52
|
function cancelClaudeManagedRuntime(api, args, options) {
|
|
@@ -59,7 +58,7 @@ function codexManagedCapabilities(api, args, options) {
|
|
|
59
58
|
}
|
|
60
59
|
var $codexManagedStream = { m: "POST", p: "/coding-sessions/codex/stream", d: "aidream", a: "user", o: "required", s: "ndjson", n: "code.codex_managed_stream" };
|
|
61
60
|
function codexManagedStream(api, args, options) {
|
|
62
|
-
return
|
|
61
|
+
return chunkUO3H55R3_cjs.openStream(api, $codexManagedStream, args, options);
|
|
63
62
|
}
|
|
64
63
|
var $cancelCodexManagedRuntime = { m: "POST", p: "/coding-sessions/codex/runtimes/{runtime_id}/cancel", d: "aidream", a: "user", o: "required", n: "code.cancel_codex_managed_runtime" };
|
|
65
64
|
function cancelCodexManagedRuntime(api, args, options) {
|
|
@@ -135,7 +134,7 @@ function claudeManagedCapabilitiesOnHostedBox(api, args, options) {
|
|
|
135
134
|
}
|
|
136
135
|
var $claudeManagedStreamOnHostedBox = { m: "POST", p: "/coding-sessions/claude/stream", d: "hosted-box", a: "user", o: "required", s: "ndjson", n: "code.claude_managed_stream" };
|
|
137
136
|
function claudeManagedStreamOnHostedBox(api, args, options) {
|
|
138
|
-
return
|
|
137
|
+
return chunkUO3H55R3_cjs.openStream(api, $claudeManagedStreamOnHostedBox, args, options);
|
|
139
138
|
}
|
|
140
139
|
var $cancelClaudeManagedRuntimeOnHostedBox = { m: "POST", p: "/coding-sessions/claude/runtimes/{runtime_id}/cancel", d: "hosted-box", a: "user", o: "required", n: "code.cancel_claude_managed_runtime" };
|
|
141
140
|
function cancelClaudeManagedRuntimeOnHostedBox(api, args, options) {
|
|
@@ -147,7 +146,7 @@ function codexManagedCapabilitiesOnHostedBox(api, args, options) {
|
|
|
147
146
|
}
|
|
148
147
|
var $codexManagedStreamOnHostedBox = { m: "POST", p: "/coding-sessions/codex/stream", d: "hosted-box", a: "user", o: "required", s: "ndjson", n: "code.codex_managed_stream" };
|
|
149
148
|
function codexManagedStreamOnHostedBox(api, args, options) {
|
|
150
|
-
return
|
|
149
|
+
return chunkUO3H55R3_cjs.openStream(api, $codexManagedStreamOnHostedBox, args, options);
|
|
151
150
|
}
|
|
152
151
|
var $cancelCodexManagedRuntimeOnHostedBox = { m: "POST", p: "/coding-sessions/codex/runtimes/{runtime_id}/cancel", d: "hosted-box", a: "user", o: "required", n: "code.cancel_codex_managed_runtime" };
|
|
153
152
|
function cancelCodexManagedRuntimeOnHostedBox(api, args, options) {
|
|
@@ -371,7 +370,7 @@ function runtimeResumable(api, args, options) {
|
|
|
371
370
|
}
|
|
372
371
|
var $runtimeEvents = { m: "GET", p: "/coding-session/runtime/{runtime_id}/events", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "code.runtime_events" };
|
|
373
372
|
function runtimeEvents(api, args, options) {
|
|
374
|
-
return
|
|
373
|
+
return chunkUO3H55R3_cjs.openStream(api, $runtimeEvents, args, options);
|
|
375
374
|
}
|
|
376
375
|
var $getCodexUsageAllowance = { m: "GET", p: "/codex-usage/allowance", d: "matrx-local", a: "loopback_token", o: "exempt", n: "code.get_codex_usage_allowance" };
|
|
377
376
|
function getCodexUsageAllowance(api, args, options) {
|
package/dist/code.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-Xx6L_pWk.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
|
-
import '
|
|
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.
|
package/dist/code.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-Xx6L_pWk.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
|
-
import '
|
|
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.
|
package/dist/code.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
1
|
+
import { openStream } from './chunk-2FJPWNXG.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
|
-
import './chunk-VTZKJMSY.js';
|
|
4
3
|
|
|
5
4
|
// src/generated/code.ts
|
|
6
5
|
var $codingSessionBridge = { m: "POST", p: "/coding-sessions/bridge", d: "aidream", a: "user", o: "exempt", n: "code.coding_session_bridge" };
|
package/dist/commerce.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions } from './index-
|
|
2
|
-
import '
|
|
1
|
+
import { A as Api, C as CallOptions } from './index-Xx6L_pWk.cjs';
|
|
2
|
+
import '@ai-matrx/auth/credentials';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/commerce.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions } from './index-
|
|
2
|
-
import '
|
|
1
|
+
import { A as Api, C as CallOptions } from './index-Xx6L_pWk.js';
|
|
2
|
+
import '@ai-matrx/auth/credentials';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/communications.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/communications.ts
|
|
8
7
|
var $conversationRelayPreparation = { m: "POST", p: "/communications/voice/conversation-relay/session-reference", d: "aidream", a: "scoped", o: "required", n: "communications.conversation_relay_preparation" };
|
|
@@ -103,7 +102,7 @@ function agentStop(api, args, options) {
|
|
|
103
102
|
}
|
|
104
103
|
var $intelligenceAsk = { m: "POST", p: "/v1/meet/intelligence/ask", d: "aidream", a: "scoped", o: "required", s: "ndjson", n: "communications.intelligence_ask" };
|
|
105
104
|
function intelligenceAsk(api, args, options) {
|
|
106
|
-
return
|
|
105
|
+
return chunkUO3H55R3_cjs.openStream(api, $intelligenceAsk, args, options);
|
|
107
106
|
}
|
|
108
107
|
var $meetingRecord = { m: "GET", p: "/v1/meet/record", d: "aidream", a: "scoped", o: "required", n: "communications.meeting_record" };
|
|
109
108
|
function meetingRecord(api, args, options) {
|
|
@@ -143,11 +142,11 @@ function meetingGoogleCalendar(api, args, options) {
|
|
|
143
142
|
}
|
|
144
143
|
var $meetingBrief = { m: "POST", p: "/v1/meet/meetings/{meeting_id}/brief", d: "aidream", a: "user", o: "required", s: "ndjson", n: "communications.meeting_brief" };
|
|
145
144
|
function meetingBrief(api, args, options) {
|
|
146
|
-
return
|
|
145
|
+
return chunkUO3H55R3_cjs.openStream(api, $meetingBrief, args, options);
|
|
147
146
|
}
|
|
148
147
|
var $agendaDraft = { m: "POST", p: "/v1/meet/agenda-draft", d: "aidream", a: "user", o: "required", s: "ndjson", n: "communications.agenda_draft" };
|
|
149
148
|
function agendaDraft(api, args, options) {
|
|
150
|
-
return
|
|
149
|
+
return chunkUO3H55R3_cjs.openStream(api, $agendaDraft, args, options);
|
|
151
150
|
}
|
|
152
151
|
var $meetingModerate = { m: "POST", p: "/v1/meet/moderate", d: "aidream", a: "scoped", o: "required", n: "communications.meeting_moderate" };
|
|
153
152
|
function meetingModerate(api, args, options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.cjs';
|
|
2
2
|
import { JsonValue, CalendarCreateResult } from './schemas.cjs';
|
|
3
|
-
import '
|
|
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.
|
package/dist/communications.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.js';
|
|
2
2
|
import { JsonValue, CalendarCreateResult } from './schemas.js';
|
|
3
|
-
import '
|
|
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.
|
package/dist/communications.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
1
|
+
import { openStream } from './chunk-2FJPWNXG.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
|
-
import './chunk-VTZKJMSY.js';
|
|
4
3
|
|
|
5
4
|
// src/generated/communications.ts
|
|
6
5
|
var $conversationRelayPreparation = { m: "POST", p: "/communications/voice/conversation-relay/session-reference", d: "aidream", a: "scoped", o: "required", n: "communications.conversation_relay_preparation" };
|
package/dist/computer.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/computer.ts
|
|
8
7
|
var $localProxyProxyToLocalPc = { m: "GET", p: "/local-proxy/{app_instance_id}/{path}", d: "aidream", a: "guest", o: "required", n: "computer.local_proxy_proxy_to_local_pc" };
|
|
@@ -51,11 +50,11 @@ function getAccessLogs(api, args, options) {
|
|
|
51
50
|
}
|
|
52
51
|
var $streamSystemLog = { m: "GET", p: "/logs/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "computer.stream_system_log" };
|
|
53
52
|
function streamSystemLog(api, args, options) {
|
|
54
|
-
return
|
|
53
|
+
return chunkUO3H55R3_cjs.openStream(api, $streamSystemLog, args, options);
|
|
55
54
|
}
|
|
56
55
|
var $streamAccessLog = { m: "GET", p: "/logs/access/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "computer.stream_access_log" };
|
|
57
56
|
function streamAccessLog(api, args, options) {
|
|
58
|
-
return
|
|
57
|
+
return chunkUO3H55R3_cjs.openStream(api, $streamAccessLog, args, options);
|
|
59
58
|
}
|
|
60
59
|
var $pushNotification = { m: "POST", p: "/notify", d: "matrx-local", a: "loopback_token", o: "exempt", n: "computer.push_notification" };
|
|
61
60
|
function pushNotification(api, args, options) {
|
package/dist/computer.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-
|
|
2
|
-
import '
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-Xx6L_pWk.cjs';
|
|
2
|
+
import '@ai-matrx/auth/credentials';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/computer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-
|
|
2
|
-
import '
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-Xx6L_pWk.js';
|
|
2
|
+
import '@ai-matrx/auth/credentials';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
package/dist/computer.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
1
|
+
import { openStream } from './chunk-2FJPWNXG.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
|
-
import './chunk-VTZKJMSY.js';
|
|
4
3
|
|
|
5
4
|
// src/generated/computer.ts
|
|
6
5
|
var $localProxyProxyToLocalPc = { m: "GET", p: "/local-proxy/{app_instance_id}/{path}", d: "aidream", a: "guest", o: "required", n: "computer.local_proxy_proxy_to_local_pc" };
|
package/dist/content.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/content.ts
|
|
8
7
|
var $esignOutsiderOpen = { m: "POST", p: "/esign/signing/outsider/open", d: "aidream", a: "scoped", o: "exempt", n: "content.esign_outsider_open" };
|
|
@@ -123,15 +122,15 @@ function processBlocks(api, args, options) {
|
|
|
123
122
|
}
|
|
124
123
|
var $processBlocksStream = { m: "POST", p: "/utilities/block-processing/process/stream", d: "aidream", a: "guest", o: "exempt", s: "ndjson", n: "content.process_blocks_stream" };
|
|
125
124
|
function processBlocksStream(api, args, options) {
|
|
126
|
-
return
|
|
125
|
+
return chunkUO3H55R3_cjs.openStream(api, $processBlocksStream, args, options);
|
|
127
126
|
}
|
|
128
127
|
var $simulateProviderRetryStream = { m: "POST", p: "/utilities/block-processing/simulate/provider-retry", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "content.simulate_provider_retry_stream" };
|
|
129
128
|
function simulateProviderRetryStream(api, args, options) {
|
|
130
|
-
return
|
|
129
|
+
return chunkUO3H55R3_cjs.openStream(api, $simulateProviderRetryStream, args, options);
|
|
131
130
|
}
|
|
132
131
|
var $processFile = { m: "POST", p: "/content-processing/{cld_file_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "content.process_file" };
|
|
133
132
|
function processFile(api, args, options) {
|
|
134
|
-
return
|
|
133
|
+
return chunkUO3H55R3_cjs.openStream(api, $processFile, args, options);
|
|
135
134
|
}
|
|
136
135
|
var $generateOffice = { m: "POST", p: "/office/generate", d: "aidream", a: "guest", o: "required", n: "content.generate_office" };
|
|
137
136
|
function generateOffice(api, args, options) {
|
package/dist/content.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
|
-
import '
|
|
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.
|
package/dist/content.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
|
-
import '
|
|
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.
|
package/dist/content.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
1
|
+
import { openStream } from './chunk-2FJPWNXG.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
|
-
import './chunk-VTZKJMSY.js';
|
|
4
3
|
|
|
5
4
|
// src/generated/content.ts
|
|
6
5
|
var $esignOutsiderOpen = { m: "POST", p: "/esign/signing/outsider/open", d: "aidream", a: "scoped", o: "exempt", n: "content.esign_outsider_open" };
|
package/dist/credentials.cjs
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
require('./chunk-PJXXT3GB.cjs');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "API_KEY_PREFIX", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunk5WJLKYH6_cjs.API_KEY_PREFIX; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "MATRX_HEADERS", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunk5WJLKYH6_cjs.MATRX_HEADERS; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "credentialToHeaders", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunk5WJLKYH6_cjs.credentialToHeaders; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "toCredentialsPort", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunk5WJLKYH6_cjs.toCredentialsPort; }
|
|
22
|
-
});
|
package/dist/credentials.d.cts
CHANGED
|
@@ -1,82 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* The credentials port — the ONE credential→header mapping for every client
|
|
3
|
-
* of every AI Matrx server (package lines v3 §3.4; API-key lane C16).
|
|
4
|
-
*
|
|
5
|
-
* Five credential kinds, one mapping, in exactly one place. The kind names are
|
|
6
|
-
* the contract's own `x-matrx-auth` tier names, so a generated operation's
|
|
7
|
-
* tier and the credential that satisfies it read the same in every language
|
|
8
|
-
* (TypeScript here; the Python `matrx-api` and future Swift/Kotlin clients
|
|
9
|
-
* share these header names and shapes — see {@link MATRX_HEADERS}):
|
|
10
|
-
*
|
|
11
|
-
* - `user` — a signed-in person: `Authorization: Bearer <Supabase JWT>`.
|
|
12
|
-
* - `guest` — a fingerprint: `X-Fingerprint-ID: <id>`.
|
|
13
|
-
* - `api_key` — an AI Matrx API key: `Authorization: Bearer mx_live_...`.
|
|
14
|
-
* The server's ONE AuthMiddleware disambiguates by shape (`mx_` prefix vs
|
|
15
|
-
* three-dot JWT), so `user` and `api_key` ride the same header.
|
|
16
|
-
* - `service` — one of our servers calling another: the server secret as
|
|
17
|
-
* `Authorization: Bearer <secret>` (or in `secretHeader`), plus the acting
|
|
18
|
-
* person in `X-Matrx-User-Id` when there is one
|
|
19
|
-
* (`matrx_connect.service_auth`).
|
|
20
|
-
* - `scoped` — a short-lived capability token (sandbox, desktop app, broker
|
|
21
|
-
* client): `Authorization: Bearer <token>` (`matrx_connect.scoped_tokens`).
|
|
22
|
-
* Short-lived means the PORT re-reads it per call: hand a `CredentialsPort`
|
|
23
|
-
* whose `get()` returns the current token.
|
|
24
|
-
*
|
|
25
|
-
* No polling, no readiness loop: readiness is the port's promise.
|
|
26
|
-
*/
|
|
27
|
-
/** Header names every AI Matrx client and server shares (TS, Python, native). */
|
|
28
|
-
declare const MATRX_HEADERS: {
|
|
29
|
-
readonly authorization: "Authorization";
|
|
30
|
-
readonly fingerprint: "X-Fingerprint-ID";
|
|
31
|
-
readonly organization: "X-Organization-Id";
|
|
32
|
-
readonly actingUser: "X-Matrx-User-Id";
|
|
33
|
-
readonly requestId: "X-Request-Id";
|
|
34
|
-
};
|
|
35
|
-
/** The credential kinds — identical to the contract's `x-matrx-auth` tiers that carry a credential. */
|
|
36
|
-
type MatrxCredentialKind = MatrxCredential["kind"];
|
|
37
|
-
/** A credential a Matrx client can present. */
|
|
38
|
-
type MatrxCredential = {
|
|
39
|
-
kind: "user";
|
|
40
|
-
accessToken: string;
|
|
41
|
-
} | {
|
|
42
|
-
kind: "guest";
|
|
43
|
-
fingerprintId: string;
|
|
44
|
-
} | {
|
|
45
|
-
kind: "api_key";
|
|
46
|
-
apiKey: string;
|
|
47
|
-
} | {
|
|
48
|
-
kind: "service";
|
|
49
|
-
/** The server secret (an existing env value, e.g. MATRX_AIDREAM_SERVICE_TOKEN). */
|
|
50
|
-
secret: string;
|
|
51
|
-
/** The person the call acts for, when there is one (`X-Matrx-User-Id`). */
|
|
52
|
-
actingUserId?: string;
|
|
53
|
-
/** Where the secret rides. Default `Authorization` (as a Bearer value). */
|
|
54
|
-
secretHeader?: string;
|
|
55
|
-
} | {
|
|
56
|
-
kind: "scoped";
|
|
57
|
-
token: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* The async source of the current credential. `get()` resolves when the host
|
|
61
|
-
* knows its auth state (null = anonymous); `onChange` lets transports refresh
|
|
62
|
-
* cached headers when the credential rotates.
|
|
63
|
-
*/
|
|
64
|
-
interface CredentialsPort {
|
|
65
|
-
get(): Promise<MatrxCredential | null>;
|
|
66
|
-
onChange?(cb: () => void): () => void;
|
|
67
|
-
}
|
|
68
|
-
/** Prefix that marks a bearer token as an AI Matrx API key, never a JWT. */
|
|
69
|
-
declare const API_KEY_PREFIX = "mx_";
|
|
70
|
-
/**
|
|
71
|
-
* Map a credential to the exact request headers the AI Matrx platform expects.
|
|
72
|
-
* This is the single place that knowledge lives — transports spread the result
|
|
73
|
-
* into their request headers and add `X-Organization-Id` from the org context
|
|
74
|
-
* binding separately.
|
|
75
|
-
*/
|
|
76
|
-
declare function credentialToHeaders(credential: MatrxCredential | null): Record<string, string>;
|
|
77
|
-
/** What `createApi({ credentials })` accepts: a fixed credential, a getter, or a port. */
|
|
78
|
-
type CredentialsSetting = MatrxCredential | null | (() => MatrxCredential | null | Promise<MatrxCredential | null>) | CredentialsPort;
|
|
79
|
-
/** Normalize the ONE credentials setting into a `CredentialsPort`. */
|
|
80
|
-
declare function toCredentialsPort(setting: CredentialsSetting | undefined): CredentialsPort;
|
|
81
|
-
|
|
82
|
-
export { API_KEY_PREFIX, type CredentialsPort, type CredentialsSetting, MATRX_HEADERS, type MatrxCredential, type MatrxCredentialKind, credentialToHeaders, toCredentialsPort };
|
|
1
|
+
export * from '@ai-matrx/auth/credentials';
|
package/dist/credentials.d.ts
CHANGED
|
@@ -1,82 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* The credentials port — the ONE credential→header mapping for every client
|
|
3
|
-
* of every AI Matrx server (package lines v3 §3.4; API-key lane C16).
|
|
4
|
-
*
|
|
5
|
-
* Five credential kinds, one mapping, in exactly one place. The kind names are
|
|
6
|
-
* the contract's own `x-matrx-auth` tier names, so a generated operation's
|
|
7
|
-
* tier and the credential that satisfies it read the same in every language
|
|
8
|
-
* (TypeScript here; the Python `matrx-api` and future Swift/Kotlin clients
|
|
9
|
-
* share these header names and shapes — see {@link MATRX_HEADERS}):
|
|
10
|
-
*
|
|
11
|
-
* - `user` — a signed-in person: `Authorization: Bearer <Supabase JWT>`.
|
|
12
|
-
* - `guest` — a fingerprint: `X-Fingerprint-ID: <id>`.
|
|
13
|
-
* - `api_key` — an AI Matrx API key: `Authorization: Bearer mx_live_...`.
|
|
14
|
-
* The server's ONE AuthMiddleware disambiguates by shape (`mx_` prefix vs
|
|
15
|
-
* three-dot JWT), so `user` and `api_key` ride the same header.
|
|
16
|
-
* - `service` — one of our servers calling another: the server secret as
|
|
17
|
-
* `Authorization: Bearer <secret>` (or in `secretHeader`), plus the acting
|
|
18
|
-
* person in `X-Matrx-User-Id` when there is one
|
|
19
|
-
* (`matrx_connect.service_auth`).
|
|
20
|
-
* - `scoped` — a short-lived capability token (sandbox, desktop app, broker
|
|
21
|
-
* client): `Authorization: Bearer <token>` (`matrx_connect.scoped_tokens`).
|
|
22
|
-
* Short-lived means the PORT re-reads it per call: hand a `CredentialsPort`
|
|
23
|
-
* whose `get()` returns the current token.
|
|
24
|
-
*
|
|
25
|
-
* No polling, no readiness loop: readiness is the port's promise.
|
|
26
|
-
*/
|
|
27
|
-
/** Header names every AI Matrx client and server shares (TS, Python, native). */
|
|
28
|
-
declare const MATRX_HEADERS: {
|
|
29
|
-
readonly authorization: "Authorization";
|
|
30
|
-
readonly fingerprint: "X-Fingerprint-ID";
|
|
31
|
-
readonly organization: "X-Organization-Id";
|
|
32
|
-
readonly actingUser: "X-Matrx-User-Id";
|
|
33
|
-
readonly requestId: "X-Request-Id";
|
|
34
|
-
};
|
|
35
|
-
/** The credential kinds — identical to the contract's `x-matrx-auth` tiers that carry a credential. */
|
|
36
|
-
type MatrxCredentialKind = MatrxCredential["kind"];
|
|
37
|
-
/** A credential a Matrx client can present. */
|
|
38
|
-
type MatrxCredential = {
|
|
39
|
-
kind: "user";
|
|
40
|
-
accessToken: string;
|
|
41
|
-
} | {
|
|
42
|
-
kind: "guest";
|
|
43
|
-
fingerprintId: string;
|
|
44
|
-
} | {
|
|
45
|
-
kind: "api_key";
|
|
46
|
-
apiKey: string;
|
|
47
|
-
} | {
|
|
48
|
-
kind: "service";
|
|
49
|
-
/** The server secret (an existing env value, e.g. MATRX_AIDREAM_SERVICE_TOKEN). */
|
|
50
|
-
secret: string;
|
|
51
|
-
/** The person the call acts for, when there is one (`X-Matrx-User-Id`). */
|
|
52
|
-
actingUserId?: string;
|
|
53
|
-
/** Where the secret rides. Default `Authorization` (as a Bearer value). */
|
|
54
|
-
secretHeader?: string;
|
|
55
|
-
} | {
|
|
56
|
-
kind: "scoped";
|
|
57
|
-
token: string;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* The async source of the current credential. `get()` resolves when the host
|
|
61
|
-
* knows its auth state (null = anonymous); `onChange` lets transports refresh
|
|
62
|
-
* cached headers when the credential rotates.
|
|
63
|
-
*/
|
|
64
|
-
interface CredentialsPort {
|
|
65
|
-
get(): Promise<MatrxCredential | null>;
|
|
66
|
-
onChange?(cb: () => void): () => void;
|
|
67
|
-
}
|
|
68
|
-
/** Prefix that marks a bearer token as an AI Matrx API key, never a JWT. */
|
|
69
|
-
declare const API_KEY_PREFIX = "mx_";
|
|
70
|
-
/**
|
|
71
|
-
* Map a credential to the exact request headers the AI Matrx platform expects.
|
|
72
|
-
* This is the single place that knowledge lives — transports spread the result
|
|
73
|
-
* into their request headers and add `X-Organization-Id` from the org context
|
|
74
|
-
* binding separately.
|
|
75
|
-
*/
|
|
76
|
-
declare function credentialToHeaders(credential: MatrxCredential | null): Record<string, string>;
|
|
77
|
-
/** What `createApi({ credentials })` accepts: a fixed credential, a getter, or a port. */
|
|
78
|
-
type CredentialsSetting = MatrxCredential | null | (() => MatrxCredential | null | Promise<MatrxCredential | null>) | CredentialsPort;
|
|
79
|
-
/** Normalize the ONE credentials setting into a `CredentialsPort`. */
|
|
80
|
-
declare function toCredentialsPort(setting: CredentialsSetting | undefined): CredentialsPort;
|
|
81
|
-
|
|
82
|
-
export { API_KEY_PREFIX, type CredentialsPort, type CredentialsSetting, MATRX_HEADERS, type MatrxCredential, type MatrxCredentialKind, credentialToHeaders, toCredentialsPort };
|
|
1
|
+
export * from '@ai-matrx/auth/credentials';
|
package/dist/credentials.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './chunk-K27FH34N.js';
|
package/dist/crm.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/crm.ts
|
|
8
7
|
var $listSendingIdentities = { m: "GET", p: "/sending-identities", d: "aidream", a: "user", o: "optional", n: "crm.list_sending_identities" };
|
|
@@ -131,7 +130,7 @@ function mediaResearchPreviewDoor(api, args, options) {
|
|
|
131
130
|
}
|
|
132
131
|
var $mediaResearchRunDoor = { m: "POST", p: "/crm/outreach-lists/{list_id}/media-research/run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "crm.media_research_run_door" };
|
|
133
132
|
function mediaResearchRunDoor(api, args, options) {
|
|
134
|
-
return
|
|
133
|
+
return chunkUO3H55R3_cjs.openStream(api, $mediaResearchRunDoor, args, options);
|
|
135
134
|
}
|
|
136
135
|
var $previewBulkEnrichment = { m: "POST", p: "/crm/enrichment/bulk/preview", d: "aidream", a: "guest", o: "required", n: "crm.preview_bulk_enrichment" };
|
|
137
136
|
function previewBulkEnrichment(api, args, options) {
|
package/dist/crm.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
|
-
import '
|
|
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.
|
package/dist/crm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Xx6L_pWk.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
|
-
import '
|
|
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.
|
package/dist/crm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
1
|
+
import { openStream } from './chunk-2FJPWNXG.js';
|
|
2
2
|
import './chunk-KIEAFMKB.js';
|
|
3
|
-
import './chunk-VTZKJMSY.js';
|
|
4
3
|
|
|
5
4
|
// src/generated/crm.ts
|
|
6
5
|
var $listSendingIdentities = { m: "GET", p: "/sending-identities", d: "aidream", a: "user", o: "optional", n: "crm.list_sending_identities" };
|
package/dist/data.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions } from './index-Xx6L_pWk.cjs';
|
|
2
2
|
import { JsonValue } from './schemas.cjs';
|
|
3
|
-
import '
|
|
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.
|
package/dist/data.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions } from './index-
|
|
1
|
+
import { A as Api, C as CallOptions } from './index-Xx6L_pWk.js';
|
|
2
2
|
import { JsonValue } from './schemas.js';
|
|
3
|
-
import '
|
|
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.
|
package/dist/education.cjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUO3H55R3_cjs = require('./chunk-UO3H55R3.cjs');
|
|
4
4
|
require('./chunk-2SXAAKGV.cjs');
|
|
5
|
-
require('./chunk-5WJLKYH6.cjs');
|
|
6
5
|
|
|
7
6
|
// src/generated/education.ts
|
|
8
7
|
var $sourceCard = { m: "POST", p: "/education/images/source-card", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "education.source_card" };
|
|
9
8
|
function sourceCard(api, args, options) {
|
|
10
|
-
return
|
|
9
|
+
return chunkUO3H55R3_cjs.openStream(api, $sourceCard, args, options);
|
|
11
10
|
}
|
|
12
11
|
var $generateCard = { m: "POST", p: "/education/images/generate-card", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "education.generate_card" };
|
|
13
12
|
function generateCard(api, args, options) {
|
|
14
|
-
return
|
|
13
|
+
return chunkUO3H55R3_cjs.openStream(api, $generateCard, args, options);
|
|
15
14
|
}
|
|
16
15
|
var $sourceSet = { m: "POST", p: "/education/images/source-set", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "education.source_set" };
|
|
17
16
|
function sourceSet(api, args, options) {
|
|
18
|
-
return
|
|
17
|
+
return chunkUO3H55R3_cjs.openStream(api, $sourceSet, args, options);
|
|
19
18
|
}
|
|
20
19
|
var TABLE = {};
|
|
21
20
|
function call(api, key, args, options) {
|
package/dist/education.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-
|
|
2
|
-
import '
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-Xx6L_pWk.cjs';
|
|
2
|
+
import '@ai-matrx/auth/credentials';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|