@compose-market/sdk 0.6.97 → 0.6.98-clean
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/.speakeasy/a2a.arazzo.yaml +1 -1
- package/.speakeasy/memory.arazzo.yaml +1 -1
- package/.speakeasy/tests.arazzo.yaml +1 -1
- package/CHANGELOG.md +1 -1
- package/dist/errors.d.ts +2 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/events.d.ts +42 -3
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +2 -0
- package/dist/events.js.map +1 -1
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +13 -4
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/resources/agent.js +233 -7
- package/dist/resources/agent.js.map +1 -1
- package/dist/resources/inference.d.ts +6 -6
- package/dist/resources/inference.d.ts.map +1 -1
- package/dist/resources/inference.js +14 -10
- package/dist/resources/inference.js.map +1 -1
- package/dist/resources/instrumentation.d.ts +2 -2
- package/dist/resources/instrumentation.d.ts.map +1 -1
- package/dist/resources/receipts.d.ts +23 -0
- package/dist/resources/receipts.d.ts.map +1 -0
- package/dist/resources/receipts.js +48 -0
- package/dist/resources/receipts.js.map +1 -0
- package/dist/resources/session-events.d.ts +11 -6
- package/dist/resources/session-events.d.ts.map +1 -1
- package/dist/resources/session-events.js +275 -70
- package/dist/resources/session-events.js.map +1 -1
- package/dist/resources/workflow.d.ts.map +1 -1
- package/dist/resources/workflow.js +12 -3
- package/dist/resources/workflow.js.map +1 -1
- package/dist/resources/x402.d.ts +2 -2
- package/dist/resources/x402.d.ts.map +1 -1
- package/dist/resources/x402.js.map +1 -1
- package/dist/streaming/receipt.d.ts +6 -6
- package/dist/streaming/receipt.d.ts.map +1 -1
- package/dist/streaming/receipt.js +68 -36
- package/dist/streaming/receipt.js.map +1 -1
- package/dist/types/index.d.ts +149 -26
- package/dist/types/index.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/generated/inference/esm/lib/config.d.ts +3 -3
- package/generated/inference/esm/lib/config.js +3 -3
- package/generated/inference/esm/lib/config.js.map +1 -1
- package/generated/inference/esm/models/audio-transcription-response.d.ts +2 -2
- package/generated/inference/esm/models/audio-transcription-response.d.ts.map +1 -1
- package/generated/inference/esm/models/audio-transcription-response.js +3 -3
- package/generated/inference/esm/models/audio-transcription-response.js.map +1 -1
- package/generated/inference/esm/models/chat-completion.d.ts +2 -2
- package/generated/inference/esm/models/chat-completion.d.ts.map +1 -1
- package/generated/inference/esm/models/chat-completion.js +3 -3
- package/generated/inference/esm/models/chat-completion.js.map +1 -1
- package/generated/inference/esm/models/compose-receipt-body.d.ts +5 -5
- package/generated/inference/esm/models/compose-receipt-body.d.ts.map +1 -1
- package/generated/inference/esm/models/compose-receipt-body.js +5 -5
- package/generated/inference/esm/models/compose-receipt-body.js.map +1 -1
- package/generated/inference/esm/models/compose-receipt-line-item.d.ts +3 -3
- package/generated/inference/esm/models/compose-receipt-line-item.d.ts.map +1 -1
- package/generated/inference/esm/models/compose-receipt-line-item.js +3 -3
- package/generated/inference/esm/models/compose-receipt-line-item.js.map +1 -1
- package/generated/inference/esm/models/embeddings-response.d.ts +2 -2
- package/generated/inference/esm/models/embeddings-response.d.ts.map +1 -1
- package/generated/inference/esm/models/embeddings-response.js +3 -3
- package/generated/inference/esm/models/embeddings-response.js.map +1 -1
- package/generated/inference/esm/models/images-response.d.ts +2 -2
- package/generated/inference/esm/models/images-response.d.ts.map +1 -1
- package/generated/inference/esm/models/images-response.js +3 -3
- package/generated/inference/esm/models/images-response.js.map +1 -1
- package/generated/inference/esm/models/response-object.d.ts +2 -2
- package/generated/inference/esm/models/response-object.d.ts.map +1 -1
- package/generated/inference/esm/models/response-object.js +3 -3
- package/generated/inference/esm/models/response-object.js.map +1 -1
- package/generated/inference/esm/models/video-generate-response.d.ts +2 -2
- package/generated/inference/esm/models/video-generate-response.d.ts.map +1 -1
- package/generated/inference/esm/models/video-generate-response.js +3 -3
- package/generated/inference/esm/models/video-generate-response.js.map +1 -1
- package/generated/inference/package.json +1 -1
- package/generated/inference/src/lib/config.ts +3 -3
- package/generated/inference/src/models/audio-transcription-response.ts +5 -5
- package/generated/inference/src/models/chat-completion.ts +5 -5
- package/generated/inference/src/models/compose-receipt-body.ts +11 -11
- package/generated/inference/src/models/compose-receipt-line-item.ts +7 -7
- package/generated/inference/src/models/embeddings-response.ts +5 -5
- package/generated/inference/src/models/images-response.ts +5 -5
- package/generated/inference/src/models/response-object.ts +5 -5
- package/generated/inference/src/models/video-generate-response.ts +5 -5
- package/generated/manowar/esm/lib/config.d.ts +3 -3
- package/generated/manowar/esm/lib/config.js +3 -3
- package/generated/manowar/esm/lib/config.js.map +1 -1
- package/generated/manowar/package.json +1 -1
- package/generated/manowar/src/lib/config.ts +3 -3
- package/generated/memory/esm/lib/config.d.ts +3 -3
- package/generated/memory/esm/lib/config.js +3 -3
- package/generated/memory/esm/lib/config.js.map +1 -1
- package/generated/memory/package.json +1 -1
- package/generated/memory/src/lib/config.ts +3 -3
- package/generated/x402/esm/lib/config.d.ts +3 -3
- package/generated/x402/esm/lib/config.js +3 -3
- package/generated/x402/esm/lib/config.js.map +1 -1
- package/generated/x402/package.json +1 -1
- package/generated/x402/src/lib/config.ts +3 -3
- package/package.json +3 -2
- package/specs/inference.openapi.yaml +26 -40
- package/specs/manowar.openapi.yaml +1 -1
- package/specs/memory.openapi.yaml +1 -1
- package/specs/x402.openapi.yaml +1 -3
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `X-Compose-Receipt` is a url-safe base64 blob carrying an authoritative
|
|
5
5
|
* settlement breakdown. The same shape is also emitted in streams as an SSE
|
|
6
|
-
* `event: compose.receipt` frame and echoed as `
|
|
6
|
+
* `event: compose.receipt` frame and echoed as `receipt` in JSON
|
|
7
7
|
* response bodies.
|
|
8
8
|
*/
|
|
9
|
-
import type {
|
|
9
|
+
import type { Receipt } from "../types/index.js";
|
|
10
10
|
export declare const RECEIPT_HEADER_NAMES: readonly ["x-compose-receipt", "X-Compose-Receipt"];
|
|
11
|
-
export declare function decodeReceiptHeader(value: string):
|
|
11
|
+
export declare function decodeReceiptHeader(value: string): Receipt;
|
|
12
12
|
/**
|
|
13
13
|
* Extract a receipt from a Fetch `Response`. Preference order:
|
|
14
14
|
* 1. `X-Compose-Receipt` header (binary truth)
|
|
15
|
-
* 2. `
|
|
15
|
+
* 2. `receipt` field on the JSON body (fallback mirror)
|
|
16
16
|
*/
|
|
17
17
|
export declare function extractReceiptFromResponse(response: {
|
|
18
18
|
headers: Headers;
|
|
19
|
-
}, body?: Record<string, unknown> | null):
|
|
19
|
+
}, body?: Record<string, unknown> | null): Receipt | null;
|
|
20
20
|
/**
|
|
21
21
|
* Parse the payload of an SSE `event: compose.receipt` frame. Throws on
|
|
22
22
|
* malformed JSON so callers can abort the stream consumer.
|
|
23
23
|
*/
|
|
24
|
-
export declare function parseReceiptEvent(data: string):
|
|
24
|
+
export declare function parseReceiptEvent(data: string): Receipt;
|
|
25
25
|
//# sourceMappingURL=receipt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../src/streaming/receipt.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../src/streaming/receipt.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,mBAAmB,CAAC;AAE9D,eAAO,MAAM,oBAAoB,qDAAsD,CAAC;AAmBxF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACtC,QAAQ,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,EAC9B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GACtC,OAAO,GAAG,IAAI,CAehB;AAoED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQvD"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* `X-Compose-Receipt` is a url-safe base64 blob carrying an authoritative
|
|
5
5
|
* settlement breakdown. The same shape is also emitted in streams as an SSE
|
|
6
|
-
* `event: compose.receipt` frame and echoed as `
|
|
6
|
+
* `event: compose.receipt` frame and echoed as `receipt` in JSON
|
|
7
7
|
* response bodies.
|
|
8
8
|
*/
|
|
9
9
|
export const RECEIPT_HEADER_NAMES = ["x-compose-receipt", "X-Compose-Receipt"];
|
|
@@ -27,7 +27,7 @@ export function decodeReceiptHeader(value) {
|
|
|
27
27
|
/**
|
|
28
28
|
* Extract a receipt from a Fetch `Response`. Preference order:
|
|
29
29
|
* 1. `X-Compose-Receipt` header (binary truth)
|
|
30
|
-
* 2. `
|
|
30
|
+
* 2. `receipt` field on the JSON body (fallback mirror)
|
|
31
31
|
*/
|
|
32
32
|
export function extractReceiptFromResponse(response, body) {
|
|
33
33
|
const headerValue = response.headers.get("x-compose-receipt") ?? response.headers.get("X-Compose-Receipt");
|
|
@@ -39,29 +39,73 @@ export function extractReceiptFromResponse(response, body) {
|
|
|
39
39
|
// fall through to body inspection
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
if (body && typeof body === "object" && body.
|
|
43
|
-
return normalizeBodyReceipt(body.
|
|
42
|
+
if (body && typeof body === "object" && body.receipt && typeof body.receipt === "object") {
|
|
43
|
+
return normalizeBodyReceipt(body.receipt);
|
|
44
44
|
}
|
|
45
45
|
return null;
|
|
46
46
|
}
|
|
47
|
+
function text(value) {
|
|
48
|
+
return typeof value === "string" && value.length > 0 ? value : undefined;
|
|
49
|
+
}
|
|
50
|
+
function numberMap(value) {
|
|
51
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
52
|
+
return {};
|
|
53
|
+
const out = {};
|
|
54
|
+
for (const [key, raw] of Object.entries(value)) {
|
|
55
|
+
const num = Number(raw);
|
|
56
|
+
if (Number.isFinite(num))
|
|
57
|
+
out[key] = num;
|
|
58
|
+
}
|
|
59
|
+
return out;
|
|
60
|
+
}
|
|
61
|
+
function stringMap(value) {
|
|
62
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
63
|
+
return {};
|
|
64
|
+
const out = {};
|
|
65
|
+
for (const [key, raw] of Object.entries(value)) {
|
|
66
|
+
if (typeof raw === "string")
|
|
67
|
+
out[key] = raw;
|
|
68
|
+
}
|
|
69
|
+
return out;
|
|
70
|
+
}
|
|
71
|
+
function fees(value) {
|
|
72
|
+
const raw = value && typeof value === "object" && !Array.isArray(value)
|
|
73
|
+
? value
|
|
74
|
+
: {};
|
|
75
|
+
const total = raw.total && typeof raw.total === "object" && !Array.isArray(raw.total)
|
|
76
|
+
? raw.total
|
|
77
|
+
: {};
|
|
78
|
+
return {
|
|
79
|
+
total: {
|
|
80
|
+
percent: String(total.percent ?? "0%"),
|
|
81
|
+
amount: String(total.amount ?? "0.000000 USDC"),
|
|
82
|
+
},
|
|
83
|
+
distribution: stringMap(raw.distribution),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function bills(value) {
|
|
87
|
+
return Array.isArray(value)
|
|
88
|
+
? value.map((bill) => ({
|
|
89
|
+
agent: String(bill.agent ?? ""),
|
|
90
|
+
agentWallet: text(bill.agentWallet ?? bill.agent_wallet),
|
|
91
|
+
depth: Number(bill.depth ?? 0),
|
|
92
|
+
model: text(bill.model),
|
|
93
|
+
tokens: numberMap(bill.tokens),
|
|
94
|
+
tools: Array.isArray(bill.tools) ? bill.tools.map(String) : [],
|
|
95
|
+
total: String(bill.total ?? "0.000000 USDC"),
|
|
96
|
+
duration: String(bill.duration ?? "0s"),
|
|
97
|
+
txId: text(bill.txId ?? bill.tx_id),
|
|
98
|
+
fees: fees(bill.fees),
|
|
99
|
+
children: bills(bill.children),
|
|
100
|
+
}))
|
|
101
|
+
: undefined;
|
|
102
|
+
}
|
|
47
103
|
function normalizeBodyReceipt(raw) {
|
|
48
104
|
return {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
unit: String(item.unit ?? ""),
|
|
54
|
-
quantity: Number(item.quantity ?? 0),
|
|
55
|
-
unitPriceUsd: Number(item.unit_price_usd ?? 0),
|
|
56
|
-
amountWei: String(item.amount_wei ?? "0"),
|
|
57
|
-
}))
|
|
58
|
-
: undefined,
|
|
59
|
-
providerAmountWei: raw.provider_amount_wei ? String(raw.provider_amount_wei) : undefined,
|
|
60
|
-
platformFeeWei: raw.platform_fee_wei ? String(raw.platform_fee_wei) : undefined,
|
|
61
|
-
finalAmountWei: String(raw.final_amount_wei ?? "0"),
|
|
62
|
-
txHash: raw.tx_hash ? String(raw.tx_hash) : undefined,
|
|
63
|
-
network: raw.network ?? "eip155:0",
|
|
64
|
-
settledAt: Number(raw.settled_at ?? 0),
|
|
105
|
+
user: text(raw.user ?? raw.userAddress ?? raw.user_address),
|
|
106
|
+
runId: text(raw.runId ?? raw.run_id),
|
|
107
|
+
duration: text(raw.duration),
|
|
108
|
+
bills: bills(raw.bills),
|
|
65
109
|
};
|
|
66
110
|
}
|
|
67
111
|
/**
|
|
@@ -71,22 +115,10 @@ function normalizeBodyReceipt(raw) {
|
|
|
71
115
|
export function parseReceiptEvent(data) {
|
|
72
116
|
const raw = JSON.parse(data);
|
|
73
117
|
return {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
unit: String(item.unit ?? ""),
|
|
79
|
-
quantity: Number(item.quantity ?? 0),
|
|
80
|
-
unitPriceUsd: Number(item.unitPriceUsd ?? 0),
|
|
81
|
-
amountWei: String(item.amountWei ?? "0"),
|
|
82
|
-
}))
|
|
83
|
-
: undefined,
|
|
84
|
-
providerAmountWei: raw.providerAmountWei ? String(raw.providerAmountWei) : undefined,
|
|
85
|
-
platformFeeWei: raw.platformFeeWei ? String(raw.platformFeeWei) : undefined,
|
|
86
|
-
finalAmountWei: String(raw.finalAmountWei ?? "0"),
|
|
87
|
-
txHash: raw.txHash ? String(raw.txHash) : undefined,
|
|
88
|
-
network: raw.network ?? "eip155:0",
|
|
89
|
-
settledAt: Number(raw.settledAt ?? 0),
|
|
118
|
+
user: text(raw.user ?? raw.userAddress ?? raw.user_address),
|
|
119
|
+
runId: text(raw.runId ?? raw.run_id),
|
|
120
|
+
duration: text(raw.duration),
|
|
121
|
+
bills: bills(raw.bills),
|
|
90
122
|
};
|
|
91
123
|
}
|
|
92
124
|
//# sourceMappingURL=receipt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receipt.js","sourceRoot":"","sources":["../../src/streaming/receipt.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAU,CAAC;AAExF,SAAS,eAAe,CAAC,KAAa;IAClC,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC/D,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;IAE3F,IAAI,OAAO,UAAU,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QACxC,MAAM,MAAM,GAAG,UAAU,CAAC,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index.d.ts
CHANGED
|
@@ -169,7 +169,6 @@ export interface PaymentAbortResponse {
|
|
|
169
169
|
}
|
|
170
170
|
export interface ModelMeterInput {
|
|
171
171
|
modelId: string;
|
|
172
|
-
provider?: ModelProvider | string;
|
|
173
172
|
modality: CanonicalModality | string;
|
|
174
173
|
usage?: Record<string, unknown>;
|
|
175
174
|
media?: Record<string, unknown>;
|
|
@@ -340,23 +339,80 @@ export interface SessionExpiredEvent {
|
|
|
340
339
|
expiresAt?: number;
|
|
341
340
|
timestamp?: number;
|
|
342
341
|
}
|
|
343
|
-
export
|
|
344
|
-
|
|
342
|
+
export interface SessionLeaseEvent {
|
|
343
|
+
type: "session-lease";
|
|
344
|
+
userAddress: string;
|
|
345
|
+
chainId: number;
|
|
346
|
+
reason?: "lease-expired" | (string & {
|
|
347
|
+
readonly __brand?: "SessionLeaseReason";
|
|
348
|
+
});
|
|
349
|
+
message?: string;
|
|
350
|
+
leaseMs?: number;
|
|
351
|
+
retryAfterMs?: number;
|
|
352
|
+
timestamp?: number;
|
|
353
|
+
}
|
|
354
|
+
export type SessionEvent = SessionActiveEvent | SessionExpiredEvent | SessionLeaseEvent;
|
|
355
|
+
export interface ComposeAlert {
|
|
356
|
+
type: "compose.alert";
|
|
357
|
+
code: string;
|
|
358
|
+
severity: "info" | "warning" | "error";
|
|
359
|
+
source: string;
|
|
360
|
+
scope: "session" | "agent" | "model" | "workflow" | "api" | (string & {
|
|
361
|
+
readonly __brand?: "ComposeAlertScope";
|
|
362
|
+
});
|
|
363
|
+
title?: string;
|
|
364
|
+
message: string;
|
|
365
|
+
userAddress?: string | null;
|
|
366
|
+
chainId?: number | null;
|
|
367
|
+
timestamp?: number;
|
|
368
|
+
metadata?: Record<string, unknown>;
|
|
369
|
+
leaseMs?: number;
|
|
370
|
+
retryAfterMs?: number;
|
|
371
|
+
}
|
|
372
|
+
export interface ReceiptLineItem {
|
|
345
373
|
key: string;
|
|
346
374
|
unit: string;
|
|
347
375
|
quantity: number;
|
|
348
376
|
unitPriceUsd: number;
|
|
349
377
|
amountWei: string;
|
|
350
378
|
}
|
|
351
|
-
export interface
|
|
352
|
-
|
|
353
|
-
|
|
379
|
+
export interface ReceiptFees {
|
|
380
|
+
total: {
|
|
381
|
+
percent: string;
|
|
382
|
+
amount: string;
|
|
383
|
+
};
|
|
384
|
+
distribution: Record<string, string>;
|
|
385
|
+
}
|
|
386
|
+
export interface ReceiptBill {
|
|
387
|
+
agent: string;
|
|
388
|
+
agentWallet?: string;
|
|
389
|
+
depth: number;
|
|
390
|
+
model?: string;
|
|
391
|
+
tokens: Record<string, number>;
|
|
392
|
+
tools: string[];
|
|
393
|
+
total: string;
|
|
394
|
+
duration: string;
|
|
395
|
+
txId?: string;
|
|
396
|
+
fees: ReceiptFees;
|
|
397
|
+
children?: ReceiptBill[];
|
|
398
|
+
}
|
|
399
|
+
export interface ReceiptCumulative {
|
|
400
|
+
totalAmountWei: string;
|
|
354
401
|
providerAmountWei?: string;
|
|
355
402
|
platformFeeWei?: string;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
403
|
+
receiptCount: number;
|
|
404
|
+
}
|
|
405
|
+
export interface Receipt {
|
|
406
|
+
user?: string;
|
|
407
|
+
runId?: string;
|
|
408
|
+
duration?: string;
|
|
409
|
+
bills?: ReceiptBill[];
|
|
410
|
+
}
|
|
411
|
+
export interface ReceiptListResponse {
|
|
412
|
+
userAddress: string;
|
|
413
|
+
chainId: number;
|
|
414
|
+
cumulative: ReceiptCumulative;
|
|
415
|
+
receipts: Receipt[];
|
|
360
416
|
}
|
|
361
417
|
export type ModelProvider = "gemini" | "openai" | "fireworks" | "asicloud" | "alibaba" | "hugging face" | "azure" | "aiml" | "vertex" | "cloudflare" | "deepgram" | "elevenlabs" | "cartesia" | "roboflow";
|
|
362
418
|
export type CanonicalModality = "text" | "image" | "audio" | "video" | "embedding";
|
|
@@ -638,7 +694,6 @@ export interface ChatCompletionsCreateParams extends OpenAIPassthroughParams {
|
|
|
638
694
|
max_completion_tokens?: number;
|
|
639
695
|
tools?: ChatToolDefinition[];
|
|
640
696
|
tool_choice?: ChatToolChoice;
|
|
641
|
-
provider?: ModelProvider;
|
|
642
697
|
[key: string]: unknown;
|
|
643
698
|
}
|
|
644
699
|
export interface ChatUsage {
|
|
@@ -671,7 +726,7 @@ export interface ChatCompletion {
|
|
|
671
726
|
finish_reason: string;
|
|
672
727
|
}>;
|
|
673
728
|
usage: ChatUsage;
|
|
674
|
-
|
|
729
|
+
receipt?: Record<string, unknown>;
|
|
675
730
|
}
|
|
676
731
|
export interface ChatCompletionChunk {
|
|
677
732
|
id: string;
|
|
@@ -721,7 +776,6 @@ export interface ResponsesCreateParams extends OpenAIPassthroughParams {
|
|
|
721
776
|
duration?: number;
|
|
722
777
|
aspect_ratio?: string;
|
|
723
778
|
resolution?: string;
|
|
724
|
-
provider?: ModelProvider;
|
|
725
779
|
[key: string]: unknown;
|
|
726
780
|
}
|
|
727
781
|
export interface ResponseObject {
|
|
@@ -743,7 +797,7 @@ export interface ResponseObject {
|
|
|
743
797
|
};
|
|
744
798
|
previous_response_id?: string;
|
|
745
799
|
job_id?: string;
|
|
746
|
-
|
|
800
|
+
receipt?: Record<string, unknown>;
|
|
747
801
|
}
|
|
748
802
|
export interface ResponseOutputItem {
|
|
749
803
|
type: string;
|
|
@@ -843,7 +897,6 @@ export interface EmbeddingsCreateParams {
|
|
|
843
897
|
dimensions?: number;
|
|
844
898
|
encoding_format?: "float" | "base64" | string;
|
|
845
899
|
user?: string;
|
|
846
|
-
provider?: ModelProvider;
|
|
847
900
|
[key: string]: unknown;
|
|
848
901
|
}
|
|
849
902
|
export interface EmbeddingsResponse {
|
|
@@ -858,7 +911,7 @@ export interface EmbeddingsResponse {
|
|
|
858
911
|
prompt_tokens: number;
|
|
859
912
|
total_tokens: number;
|
|
860
913
|
};
|
|
861
|
-
|
|
914
|
+
receipt?: Record<string, unknown>;
|
|
862
915
|
}
|
|
863
916
|
export interface ImagesGenerateParams {
|
|
864
917
|
model: string;
|
|
@@ -871,7 +924,6 @@ export interface ImagesGenerateParams {
|
|
|
871
924
|
response_format?: "url" | "b64_json" | string;
|
|
872
925
|
style?: "vivid" | "natural" | string;
|
|
873
926
|
user?: string;
|
|
874
|
-
provider?: ModelProvider;
|
|
875
927
|
[key: string]: unknown;
|
|
876
928
|
}
|
|
877
929
|
export interface ImagesEditParams extends ImagesGenerateParams {
|
|
@@ -885,7 +937,7 @@ export interface ImagesResponse {
|
|
|
885
937
|
b64_json?: string;
|
|
886
938
|
revised_prompt?: string;
|
|
887
939
|
}>;
|
|
888
|
-
|
|
940
|
+
receipt?: Record<string, unknown>;
|
|
889
941
|
}
|
|
890
942
|
export interface AudioSpeechCreateParams {
|
|
891
943
|
model: string;
|
|
@@ -896,7 +948,6 @@ export interface AudioSpeechCreateParams {
|
|
|
896
948
|
response_format?: string;
|
|
897
949
|
speed?: number;
|
|
898
950
|
user?: string;
|
|
899
|
-
provider?: ModelProvider;
|
|
900
951
|
[key: string]: unknown;
|
|
901
952
|
}
|
|
902
953
|
export interface AudioTranscriptionCreateParams {
|
|
@@ -910,7 +961,6 @@ export interface AudioTranscriptionCreateParams {
|
|
|
910
961
|
prompt?: string;
|
|
911
962
|
temperature?: number;
|
|
912
963
|
timestamp_granularities?: Array<"word" | "segment" | string>;
|
|
913
|
-
provider?: ModelProvider;
|
|
914
964
|
[key: string]: unknown;
|
|
915
965
|
}
|
|
916
966
|
export interface AudioTranscriptionResponse {
|
|
@@ -924,7 +974,7 @@ export interface AudioTranscriptionResponse {
|
|
|
924
974
|
end: number;
|
|
925
975
|
}>;
|
|
926
976
|
segments?: Array<Record<string, unknown>>;
|
|
927
|
-
|
|
977
|
+
receipt?: Record<string, unknown>;
|
|
928
978
|
}
|
|
929
979
|
export interface VideoGenerateParams {
|
|
930
980
|
model: string;
|
|
@@ -939,7 +989,6 @@ export interface VideoGenerateParams {
|
|
|
939
989
|
image?: string;
|
|
940
990
|
image_url?: string;
|
|
941
991
|
user?: string;
|
|
942
|
-
provider?: ModelProvider;
|
|
943
992
|
[key: string]: unknown;
|
|
944
993
|
}
|
|
945
994
|
export interface VideoGenerateResponse {
|
|
@@ -956,7 +1005,7 @@ export interface VideoGenerateResponse {
|
|
|
956
1005
|
duration?: number;
|
|
957
1006
|
[key: string]: unknown;
|
|
958
1007
|
}>;
|
|
959
|
-
|
|
1008
|
+
receipt?: Record<string, unknown>;
|
|
960
1009
|
[key: string]: unknown;
|
|
961
1010
|
}
|
|
962
1011
|
export interface VideoJobStatus {
|
|
@@ -986,6 +1035,67 @@ export type VideoStatusStreamEvent = {
|
|
|
986
1035
|
* Events emitted by the Compose agent runtime on /agent/:wallet/stream.
|
|
987
1036
|
* Mirrors the runtime's native SSE vocabulary — no translation, no renaming.
|
|
988
1037
|
*/
|
|
1038
|
+
export type AgentDisplayKind = "tool" | "model" | "connector" | "agent" | "search" | "harness" | "conclave" | "route";
|
|
1039
|
+
export interface AgentEventDisplay {
|
|
1040
|
+
kind: AgentDisplayKind;
|
|
1041
|
+
id?: string;
|
|
1042
|
+
name?: string;
|
|
1043
|
+
target?: string;
|
|
1044
|
+
summary?: string;
|
|
1045
|
+
details?: Record<string, unknown>;
|
|
1046
|
+
}
|
|
1047
|
+
export interface AgentTraceRuntimeEvent {
|
|
1048
|
+
type: "trace";
|
|
1049
|
+
source: "capability" | "model" | "tool" | "agent" | "harness" | "route";
|
|
1050
|
+
stage?: string;
|
|
1051
|
+
action?: string;
|
|
1052
|
+
message?: string;
|
|
1053
|
+
display?: AgentEventDisplay;
|
|
1054
|
+
ts?: number;
|
|
1055
|
+
details?: Record<string, unknown>;
|
|
1056
|
+
}
|
|
1057
|
+
export interface AgentChildRuntimeEvent {
|
|
1058
|
+
type: "child";
|
|
1059
|
+
event: "start" | "delta" | "tool-start" | "tool-end" | "done" | "error";
|
|
1060
|
+
rootComposeRunId?: string;
|
|
1061
|
+
parentRunId?: string;
|
|
1062
|
+
subId?: string;
|
|
1063
|
+
depth?: number;
|
|
1064
|
+
agentWallet?: string;
|
|
1065
|
+
userAddress?: string;
|
|
1066
|
+
runKey?: string;
|
|
1067
|
+
runKeyChain?: string[];
|
|
1068
|
+
delta?: string;
|
|
1069
|
+
toolName?: string;
|
|
1070
|
+
input?: unknown;
|
|
1071
|
+
output?: unknown;
|
|
1072
|
+
failed?: boolean;
|
|
1073
|
+
error?: string;
|
|
1074
|
+
usage?: Record<string, unknown>;
|
|
1075
|
+
toolBatches?: number;
|
|
1076
|
+
stopReason?: string;
|
|
1077
|
+
wallMs?: number;
|
|
1078
|
+
display?: AgentEventDisplay;
|
|
1079
|
+
ts?: number;
|
|
1080
|
+
}
|
|
1081
|
+
export interface AgentConclaveRuntimeEvent {
|
|
1082
|
+
type: "conclave";
|
|
1083
|
+
action: "write" | "read" | "list" | "delete";
|
|
1084
|
+
key?: string;
|
|
1085
|
+
success: boolean;
|
|
1086
|
+
display?: AgentEventDisplay;
|
|
1087
|
+
details?: Record<string, unknown>;
|
|
1088
|
+
}
|
|
1089
|
+
export interface AgentRouteRuntimeEvent {
|
|
1090
|
+
type: "route";
|
|
1091
|
+
mode: string;
|
|
1092
|
+
confidence?: number;
|
|
1093
|
+
ambiguous?: boolean;
|
|
1094
|
+
candidates?: unknown[];
|
|
1095
|
+
hints?: Record<string, unknown>;
|
|
1096
|
+
reason?: string;
|
|
1097
|
+
display?: AgentEventDisplay;
|
|
1098
|
+
}
|
|
989
1099
|
export type AgentRuntimeEvent = {
|
|
990
1100
|
type: "text-delta";
|
|
991
1101
|
delta: string;
|
|
@@ -1005,15 +1115,23 @@ export type AgentRuntimeEvent = {
|
|
|
1005
1115
|
} | {
|
|
1006
1116
|
type: "tool-start";
|
|
1007
1117
|
toolName: string;
|
|
1118
|
+
displayName?: string;
|
|
1008
1119
|
summary?: string;
|
|
1009
1120
|
content?: string;
|
|
1121
|
+
targetKind?: AgentDisplayKind;
|
|
1122
|
+
target?: string;
|
|
1123
|
+
display?: AgentEventDisplay;
|
|
1010
1124
|
} | {
|
|
1011
1125
|
type: "tool-end";
|
|
1012
1126
|
toolName: string;
|
|
1127
|
+
displayName?: string;
|
|
1013
1128
|
summary?: string;
|
|
1014
1129
|
failed: boolean;
|
|
1015
1130
|
error?: string;
|
|
1016
|
-
|
|
1131
|
+
targetKind?: AgentDisplayKind;
|
|
1132
|
+
target?: string;
|
|
1133
|
+
display?: AgentEventDisplay;
|
|
1134
|
+
} | AgentTraceRuntimeEvent | AgentChildRuntimeEvent | AgentConclaveRuntimeEvent | AgentRouteRuntimeEvent | {
|
|
1017
1135
|
type: "stopped";
|
|
1018
1136
|
reason: string;
|
|
1019
1137
|
} | {
|
|
@@ -1038,12 +1156,16 @@ export interface AgentStreamFinalResult {
|
|
|
1038
1156
|
text: string;
|
|
1039
1157
|
toolCalls: Array<{
|
|
1040
1158
|
toolName: string;
|
|
1159
|
+
displayName?: string;
|
|
1041
1160
|
summary?: string;
|
|
1042
1161
|
failed: boolean;
|
|
1043
1162
|
error?: string;
|
|
1163
|
+
targetKind?: AgentDisplayKind;
|
|
1164
|
+
target?: string;
|
|
1165
|
+
display?: AgentEventDisplay;
|
|
1044
1166
|
}>;
|
|
1045
1167
|
requestId: string | null;
|
|
1046
|
-
receipt:
|
|
1168
|
+
receipt: Receipt | null;
|
|
1047
1169
|
budget: SessionBudgetSnapshot | null;
|
|
1048
1170
|
sessionInvalidReason: SessionInvalidReason | null;
|
|
1049
1171
|
}
|
|
@@ -1113,7 +1235,7 @@ export interface WorkflowStreamFinalResult {
|
|
|
1113
1235
|
error?: string;
|
|
1114
1236
|
}>;
|
|
1115
1237
|
requestId: string | null;
|
|
1116
|
-
receipt:
|
|
1238
|
+
receipt: Receipt | null;
|
|
1117
1239
|
budget: SessionBudgetSnapshot | null;
|
|
1118
1240
|
sessionInvalidReason: SessionInvalidReason | null;
|
|
1119
1241
|
}
|
|
@@ -1470,6 +1592,7 @@ export interface DirectoryAgent {
|
|
|
1470
1592
|
model: string;
|
|
1471
1593
|
framework?: "manowar" | string;
|
|
1472
1594
|
licensePrice: string;
|
|
1595
|
+
creatorFee?: number;
|
|
1473
1596
|
licenses: number;
|
|
1474
1597
|
licensesAvailable?: number;
|
|
1475
1598
|
cloneable: boolean;
|