@querais/shared 0.2.0
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/LICENSE +21 -0
- package/dist/chain.d.ts +13764 -0
- package/dist/chain.d.ts.map +1 -0
- package/dist/chain.js +31 -0
- package/dist/chain.js.map +1 -0
- package/dist/errors.d.ts +30 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +45 -0
- package/dist/errors.js.map +1 -0
- package/dist/ids.d.ts +14 -0
- package/dist/ids.d.ts.map +1 -0
- package/dist/ids.js +29 -0
- package/dist/ids.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/jobspec.d.ts +129 -0
- package/dist/jobspec.d.ts.map +1 -0
- package/dist/jobspec.js +59 -0
- package/dist/jobspec.js.map +1 -0
- package/dist/messages.d.ts +448 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +73 -0
- package/dist/messages.js.map +1 -0
- package/dist/model-manifest.d.ts +115 -0
- package/dist/model-manifest.d.ts.map +1 -0
- package/dist/model-manifest.js +77 -0
- package/dist/model-manifest.js.map +1 -0
- package/dist/openai.d.ts +140 -0
- package/dist/openai.d.ts.map +1 -0
- package/dist/openai.js +67 -0
- package/dist/openai.js.map +1 -0
- package/dist/pricing.d.ts +27 -0
- package/dist/pricing.d.ts.map +1 -0
- package/dist/pricing.js +38 -0
- package/dist/pricing.js.map +1 -0
- package/dist/spending-cap.d.ts +101 -0
- package/dist/spending-cap.d.ts.map +1 -0
- package/dist/spending-cap.js +117 -0
- package/dist/spending-cap.js.map +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,KAAK,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAZb;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,OAAO,EACL,aAAa,EACb,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/chain.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createPublicClient, createWalletClient, http } from 'viem';
|
|
2
|
+
import { privateKeyToAccount } from 'viem/accounts';
|
|
3
|
+
import { hardhat, arbitrumSepolia } from 'viem/chains';
|
|
4
|
+
/**
|
|
5
|
+
* Thin viem helpers + a single re-export point for the contract ABIs and the
|
|
6
|
+
* deployed-address loader, so gateway / node-daemon / e2e import everything chain
|
|
7
|
+
* related from `@querais/shared`.
|
|
8
|
+
*
|
|
9
|
+
* The viem chain is resolved from the deployment's chainId so the same code runs
|
|
10
|
+
* against the local Hardhat node (31337) and Arbitrum Sepolia (421614). Pass the
|
|
11
|
+
* chainId from `loadAddresses(network).chainId`; it defaults to Hardhat for back-compat.
|
|
12
|
+
*/
|
|
13
|
+
const CHAINS = {
|
|
14
|
+
[hardhat.id]: hardhat, // 31337
|
|
15
|
+
[arbitrumSepolia.id]: arbitrumSepolia, // 421614
|
|
16
|
+
};
|
|
17
|
+
export function resolveChain(chainId) {
|
|
18
|
+
return (chainId !== undefined && CHAINS[chainId]) || hardhat;
|
|
19
|
+
}
|
|
20
|
+
export function makePublicClient(rpcUrl, chainId) {
|
|
21
|
+
return createPublicClient({ chain: resolveChain(chainId), transport: http(rpcUrl) });
|
|
22
|
+
}
|
|
23
|
+
export function makeWalletClient(rpcUrl, privateKey, chainId) {
|
|
24
|
+
return createWalletClient({
|
|
25
|
+
account: privateKeyToAccount(privateKey),
|
|
26
|
+
chain: resolveChain(chainId),
|
|
27
|
+
transport: http(rpcUrl),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export { quaisTokenAbi, nodeRegistryAbi, jobEscrowAbi, creditAccountAbi, disputeResolutionAbi, protocolTreasuryAbi, stakingRewardsAbi, loadAddresses, } from '@querais/contracts';
|
|
31
|
+
//# sourceMappingURL=chain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chain.js","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,IAAI,EAAwB,MAAM,MAAM,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEvD;;;;;;;;GAQG;AAEH,MAAM,MAAM,GAA0B;IACpC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,QAAQ;IAC/B,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,eAAe,EAAE,SAAS;CACjD,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,OAAO,CAAC,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,OAAO,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,MAAc,EAAE,OAAgB;IAC/D,OAAO,kBAAkB,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACvF,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,MAAc,EAAE,UAAe,EAAE,OAAgB;IAChF,OAAO,kBAAkB,CAAC;QACxB,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC;QACxC,KAAK,EAAE,YAAY,CAAC,OAAO,CAAC;QAC5B,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC;KACxB,CAAC,CAAC;AACL,CAAC;AAKD,OAAO,EACL,aAAa,EACb,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,GACd,MAAM,oBAAoB,CAAC"}
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed error hierarchy shared across layers. Each carries a stable `code` and an
|
|
3
|
+
* HTTP `status` so the gateway can translate them into OpenAI-style error responses.
|
|
4
|
+
*/
|
|
5
|
+
export declare class QueraisError extends Error {
|
|
6
|
+
readonly code: string;
|
|
7
|
+
readonly status: number;
|
|
8
|
+
constructor(message: string, code: string, status: number);
|
|
9
|
+
}
|
|
10
|
+
/** Bad/missing API key or signature. */
|
|
11
|
+
export declare class AuthError extends QueraisError {
|
|
12
|
+
constructor(message?: string);
|
|
13
|
+
}
|
|
14
|
+
/** Request failed schema validation. */
|
|
15
|
+
export declare class ValidationError extends QueraisError {
|
|
16
|
+
constructor(message: string);
|
|
17
|
+
}
|
|
18
|
+
/** No node can serve the requested model within the requester's constraints. */
|
|
19
|
+
export declare class NoEligibleNodesError extends QueraisError {
|
|
20
|
+
constructor(message?: string);
|
|
21
|
+
}
|
|
22
|
+
/** A result failed Layer-B verification (empty, malformed, looping, hash mismatch). */
|
|
23
|
+
export declare class VerificationError extends QueraisError {
|
|
24
|
+
constructor(message: string);
|
|
25
|
+
}
|
|
26
|
+
/** The assigned node did not complete the job before its deadline. */
|
|
27
|
+
export declare class JobTimeoutError extends QueraisError {
|
|
28
|
+
constructor(message?: string);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,YAAa,SAAQ,KAAK;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAM1D;AAED,wCAAwC;AACxC,qBAAa,SAAU,SAAQ,YAAY;gBAC7B,OAAO,SAAiB;CAGrC;AAED,wCAAwC;AACxC,qBAAa,eAAgB,SAAQ,YAAY;gBACnC,OAAO,EAAE,MAAM;CAG5B;AAED,gFAAgF;AAChF,qBAAa,oBAAqB,SAAQ,YAAY;gBACxC,OAAO,SAAiD;CAGrE;AAED,uFAAuF;AACvF,qBAAa,iBAAkB,SAAQ,YAAY;gBACrC,OAAO,EAAE,MAAM;CAG5B;AAED,sEAAsE;AACtE,qBAAa,eAAgB,SAAQ,YAAY;gBACnC,OAAO,SAAkB;CAGtC"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed error hierarchy shared across layers. Each carries a stable `code` and an
|
|
3
|
+
* HTTP `status` so the gateway can translate them into OpenAI-style error responses.
|
|
4
|
+
*/
|
|
5
|
+
export class QueraisError extends Error {
|
|
6
|
+
code;
|
|
7
|
+
status;
|
|
8
|
+
constructor(message, code, status) {
|
|
9
|
+
super(message);
|
|
10
|
+
this.name = new.target.name;
|
|
11
|
+
this.code = code;
|
|
12
|
+
this.status = status;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/** Bad/missing API key or signature. */
|
|
16
|
+
export class AuthError extends QueraisError {
|
|
17
|
+
constructor(message = 'Unauthorized') {
|
|
18
|
+
super(message, 'unauthorized', 401);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/** Request failed schema validation. */
|
|
22
|
+
export class ValidationError extends QueraisError {
|
|
23
|
+
constructor(message) {
|
|
24
|
+
super(message, 'invalid_request', 400);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/** No node can serve the requested model within the requester's constraints. */
|
|
28
|
+
export class NoEligibleNodesError extends QueraisError {
|
|
29
|
+
constructor(message = 'No eligible nodes available for this request') {
|
|
30
|
+
super(message, 'no_eligible_nodes', 503);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/** A result failed Layer-B verification (empty, malformed, looping, hash mismatch). */
|
|
34
|
+
export class VerificationError extends QueraisError {
|
|
35
|
+
constructor(message) {
|
|
36
|
+
super(message, 'verification_failed', 502);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/** The assigned node did not complete the job before its deadline. */
|
|
40
|
+
export class JobTimeoutError extends QueraisError {
|
|
41
|
+
constructor(message = 'Job timed out') {
|
|
42
|
+
super(message, 'job_timeout', 504);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IAC5B,IAAI,CAAS;IACb,MAAM,CAAS;IACxB,YAAY,OAAe,EAAE,IAAY,EAAE,MAAc;QACvD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,wCAAwC;AACxC,MAAM,OAAO,SAAU,SAAQ,YAAY;IACzC,YAAY,OAAO,GAAG,cAAc;QAClC,KAAK,CAAC,OAAO,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC;IACtC,CAAC;CACF;AAED,wCAAwC;AACxC,MAAM,OAAO,eAAgB,SAAQ,YAAY;IAC/C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;CACF;AAED,gFAAgF;AAChF,MAAM,OAAO,oBAAqB,SAAQ,YAAY;IACpD,YAAY,OAAO,GAAG,8CAA8C;QAClE,KAAK,CAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC;CACF;AAED,uFAAuF;AACvF,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC;CACF;AAED,sEAAsE;AACtE,MAAM,OAAO,eAAgB,SAAQ,YAAY;IAC/C,YAAY,OAAO,GAAG,eAAe;QACnC,KAAK,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;IACrC,CAAC;CACF"}
|
package/dist/ids.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Hex } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* Deterministic, byte-stable JSON serialization: object keys are sorted
|
|
4
|
+
* recursively, arrays keep their order, and there is no insignificant
|
|
5
|
+
* whitespace. Two structurally-equal values always produce identical bytes
|
|
6
|
+
* regardless of key insertion order or platform — this is what makes jobId
|
|
7
|
+
* derivation reproducible across the gateway, node, and tests.
|
|
8
|
+
*/
|
|
9
|
+
export declare function canonicalStringify(value: unknown): string;
|
|
10
|
+
/** keccak256 of a UTF-8 string, returned as a 0x-prefixed 32-byte hex. */
|
|
11
|
+
export declare function hashText(text: string): Hex;
|
|
12
|
+
/** keccak256 of the canonical serialization of a value. */
|
|
13
|
+
export declare function hashCanonical(value: unknown): Hex;
|
|
14
|
+
//# sourceMappingURL=ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAEpD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAWzD;AAED,0EAA0E;AAC1E,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAE1C;AAED,2DAA2D;AAC3D,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,GAAG,CAEjD"}
|
package/dist/ids.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { keccak256, toBytes } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* Deterministic, byte-stable JSON serialization: object keys are sorted
|
|
4
|
+
* recursively, arrays keep their order, and there is no insignificant
|
|
5
|
+
* whitespace. Two structurally-equal values always produce identical bytes
|
|
6
|
+
* regardless of key insertion order or platform — this is what makes jobId
|
|
7
|
+
* derivation reproducible across the gateway, node, and tests.
|
|
8
|
+
*/
|
|
9
|
+
export function canonicalStringify(value) {
|
|
10
|
+
if (value === undefined)
|
|
11
|
+
return 'null';
|
|
12
|
+
if (value === null || typeof value !== 'object')
|
|
13
|
+
return JSON.stringify(value);
|
|
14
|
+
if (Array.isArray(value)) {
|
|
15
|
+
return '[' + value.map(canonicalStringify).join(',') + ']';
|
|
16
|
+
}
|
|
17
|
+
const obj = value;
|
|
18
|
+
const keys = Object.keys(obj).sort();
|
|
19
|
+
return ('{' + keys.map((k) => JSON.stringify(k) + ':' + canonicalStringify(obj[k])).join(',') + '}');
|
|
20
|
+
}
|
|
21
|
+
/** keccak256 of a UTF-8 string, returned as a 0x-prefixed 32-byte hex. */
|
|
22
|
+
export function hashText(text) {
|
|
23
|
+
return keccak256(toBytes(text));
|
|
24
|
+
}
|
|
25
|
+
/** keccak256 of the canonical serialization of a value. */
|
|
26
|
+
export function hashCanonical(value) {
|
|
27
|
+
return hashText(canonicalStringify(value));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=ids.js.map
|
package/dist/ids.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAY,MAAM,MAAM,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC9E,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAC7D,CAAC;IACD,MAAM,GAAG,GAAG,KAAgC,CAAC;IAC7C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IACrC,OAAO,CACL,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAC5F,CAAC;AACJ,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,OAAO,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,aAAa,CAAC,KAAc;IAC1C,OAAO,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7C,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @querais/shared — the contract between every layer of QueraIS.
|
|
3
|
+
*
|
|
4
|
+
* Pure-ish module: types, zod schemas, deterministic id/hash derivation, pricing
|
|
5
|
+
* math, the OpenAI-compatible surface, the gateway↔node wire protocol, and thin
|
|
6
|
+
* viem chain bindings. Imported by gateway, matching (types only), node-daemon, sdk.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SHARED_VERSION = "0.2.0";
|
|
9
|
+
export * from './errors.js';
|
|
10
|
+
export * from './ids.js';
|
|
11
|
+
export * from './pricing.js';
|
|
12
|
+
export * from './openai.js';
|
|
13
|
+
export * from './jobspec.js';
|
|
14
|
+
export * from './messages.js';
|
|
15
|
+
export * from './chain.js';
|
|
16
|
+
export * from './spending-cap.js';
|
|
17
|
+
export * from './model-manifest.js';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc,UAAU,CAAC;AAEtC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @querais/shared — the contract between every layer of QueraIS.
|
|
3
|
+
*
|
|
4
|
+
* Pure-ish module: types, zod schemas, deterministic id/hash derivation, pricing
|
|
5
|
+
* math, the OpenAI-compatible surface, the gateway↔node wire protocol, and thin
|
|
6
|
+
* viem chain bindings. Imported by gateway, matching (types only), node-daemon, sdk.
|
|
7
|
+
*/
|
|
8
|
+
export const SHARED_VERSION = '0.2.0';
|
|
9
|
+
export * from './errors.js';
|
|
10
|
+
export * from './ids.js';
|
|
11
|
+
export * from './pricing.js';
|
|
12
|
+
export * from './openai.js';
|
|
13
|
+
export * from './jobspec.js';
|
|
14
|
+
export * from './messages.js';
|
|
15
|
+
export * from './chain.js';
|
|
16
|
+
export * from './spending-cap.js';
|
|
17
|
+
export * from './model-manifest.js';
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type Hex } from 'viem';
|
|
3
|
+
export type Address = `0x${string}`;
|
|
4
|
+
/** Lowercased, checksum-agnostic 20-byte address. */
|
|
5
|
+
export declare const addressSchema: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
6
|
+
/** 32-byte hex (job ids, result/commitment hashes). */
|
|
7
|
+
export declare const bytes32Schema: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
8
|
+
/** Non-negative integer encoded as a decimal string (for bigint wei amounts in JSON). */
|
|
9
|
+
export declare const decimalStringSchema: z.ZodString;
|
|
10
|
+
/**
|
|
11
|
+
* The canonical, normalized representation of an inference job. The gateway
|
|
12
|
+
* produces this from an incoming OpenAI request; it is the unit every layer
|
|
13
|
+
* agrees on. bigint wei amounts are decimal strings so the spec is plain JSON.
|
|
14
|
+
*/
|
|
15
|
+
export declare const jobSpecSchema: z.ZodObject<{
|
|
16
|
+
model: z.ZodString;
|
|
17
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
18
|
+
role: z.ZodEnum<["system", "user", "assistant"]>;
|
|
19
|
+
content: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
role: "system" | "user" | "assistant";
|
|
22
|
+
content: string;
|
|
23
|
+
}, {
|
|
24
|
+
role: "system" | "user" | "assistant";
|
|
25
|
+
content: string;
|
|
26
|
+
}>, "many">;
|
|
27
|
+
maxTokens: z.ZodNumber;
|
|
28
|
+
temperature: z.ZodNumber;
|
|
29
|
+
stream: z.ZodBoolean;
|
|
30
|
+
requesterWallet: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
31
|
+
maxPricePerTokenWei: z.ZodString;
|
|
32
|
+
minReputation: z.ZodNumber;
|
|
33
|
+
createdAt: z.ZodNumber;
|
|
34
|
+
deadline: z.ZodNumber;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
model: string;
|
|
37
|
+
messages: {
|
|
38
|
+
role: "system" | "user" | "assistant";
|
|
39
|
+
content: string;
|
|
40
|
+
}[];
|
|
41
|
+
temperature: number;
|
|
42
|
+
stream: boolean;
|
|
43
|
+
maxTokens: number;
|
|
44
|
+
requesterWallet: `0x${string}`;
|
|
45
|
+
maxPricePerTokenWei: string;
|
|
46
|
+
minReputation: number;
|
|
47
|
+
createdAt: number;
|
|
48
|
+
deadline: number;
|
|
49
|
+
}, {
|
|
50
|
+
model: string;
|
|
51
|
+
messages: {
|
|
52
|
+
role: "system" | "user" | "assistant";
|
|
53
|
+
content: string;
|
|
54
|
+
}[];
|
|
55
|
+
temperature: number;
|
|
56
|
+
stream: boolean;
|
|
57
|
+
maxTokens: number;
|
|
58
|
+
requesterWallet: string;
|
|
59
|
+
maxPricePerTokenWei: string;
|
|
60
|
+
minReputation: number;
|
|
61
|
+
createdAt: number;
|
|
62
|
+
deadline: number;
|
|
63
|
+
}>;
|
|
64
|
+
export type JobSpec = z.infer<typeof jobSpecSchema>;
|
|
65
|
+
export interface IdentifiedJobSpec extends JobSpec {
|
|
66
|
+
jobId: Hex;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Derive a job's id from its content. Uses canonical serialization so the id is
|
|
70
|
+
* independent of field order and stable across platforms (CRLF/LF safe — content
|
|
71
|
+
* is JSON-escaped verbatim, never newline-normalized). Identical jobs map to the
|
|
72
|
+
* same id; any meaningful change (prompt, price, deadline) changes it.
|
|
73
|
+
*/
|
|
74
|
+
export declare function computeJobId(spec: JobSpec): Hex;
|
|
75
|
+
export declare function identify(spec: JobSpec): IdentifiedJobSpec;
|
|
76
|
+
export declare const identifiedJobSpecSchema: z.ZodObject<{
|
|
77
|
+
model: z.ZodString;
|
|
78
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
79
|
+
role: z.ZodEnum<["system", "user", "assistant"]>;
|
|
80
|
+
content: z.ZodString;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
role: "system" | "user" | "assistant";
|
|
83
|
+
content: string;
|
|
84
|
+
}, {
|
|
85
|
+
role: "system" | "user" | "assistant";
|
|
86
|
+
content: string;
|
|
87
|
+
}>, "many">;
|
|
88
|
+
maxTokens: z.ZodNumber;
|
|
89
|
+
temperature: z.ZodNumber;
|
|
90
|
+
stream: z.ZodBoolean;
|
|
91
|
+
requesterWallet: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
92
|
+
maxPricePerTokenWei: z.ZodString;
|
|
93
|
+
minReputation: z.ZodNumber;
|
|
94
|
+
createdAt: z.ZodNumber;
|
|
95
|
+
deadline: z.ZodNumber;
|
|
96
|
+
} & {
|
|
97
|
+
jobId: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
model: string;
|
|
100
|
+
messages: {
|
|
101
|
+
role: "system" | "user" | "assistant";
|
|
102
|
+
content: string;
|
|
103
|
+
}[];
|
|
104
|
+
temperature: number;
|
|
105
|
+
stream: boolean;
|
|
106
|
+
maxTokens: number;
|
|
107
|
+
requesterWallet: `0x${string}`;
|
|
108
|
+
maxPricePerTokenWei: string;
|
|
109
|
+
minReputation: number;
|
|
110
|
+
createdAt: number;
|
|
111
|
+
deadline: number;
|
|
112
|
+
jobId: `0x${string}`;
|
|
113
|
+
}, {
|
|
114
|
+
model: string;
|
|
115
|
+
messages: {
|
|
116
|
+
role: "system" | "user" | "assistant";
|
|
117
|
+
content: string;
|
|
118
|
+
}[];
|
|
119
|
+
temperature: number;
|
|
120
|
+
stream: boolean;
|
|
121
|
+
maxTokens: number;
|
|
122
|
+
requesterWallet: string;
|
|
123
|
+
maxPricePerTokenWei: string;
|
|
124
|
+
minReputation: number;
|
|
125
|
+
createdAt: number;
|
|
126
|
+
deadline: number;
|
|
127
|
+
jobId: string;
|
|
128
|
+
}>;
|
|
129
|
+
//# sourceMappingURL=jobspec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobspec.d.ts","sourceRoot":"","sources":["../src/jobspec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAsB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAIpD,MAAM,MAAM,OAAO,GAAG,KAAK,MAAM,EAAE,CAAC;AAEpC,qDAAqD;AACrD,eAAO,MAAM,aAAa,kDAGqB,CAAC;AAEhD,uDAAuD;AACvD,eAAO,MAAM,aAAa,kDAGiB,CAAC;AAE5C,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,aAAiE,CAAC;AAElG;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,OAAO;IAChD,KAAK,EAAE,GAAG,CAAC;CACZ;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,GAAG,CAc/C;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,iBAAiB,CAEzD;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiD,CAAC"}
|
package/dist/jobspec.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { keccak256, toBytes } from 'viem';
|
|
3
|
+
import { chatMessageSchema } from './openai.js';
|
|
4
|
+
import { canonicalStringify } from './ids.js';
|
|
5
|
+
/** Lowercased, checksum-agnostic 20-byte address. */
|
|
6
|
+
export const addressSchema = z
|
|
7
|
+
.string()
|
|
8
|
+
.regex(/^0x[0-9a-fA-F]{40}$/, 'invalid address')
|
|
9
|
+
.transform((s) => s.toLowerCase());
|
|
10
|
+
/** 32-byte hex (job ids, result/commitment hashes). */
|
|
11
|
+
export const bytes32Schema = z
|
|
12
|
+
.string()
|
|
13
|
+
.regex(/^0x[0-9a-fA-F]{64}$/, 'invalid bytes32')
|
|
14
|
+
.transform((s) => s.toLowerCase());
|
|
15
|
+
/** Non-negative integer encoded as a decimal string (for bigint wei amounts in JSON). */
|
|
16
|
+
export const decimalStringSchema = z.string().regex(/^\d+$/, 'expected a decimal integer string');
|
|
17
|
+
/**
|
|
18
|
+
* The canonical, normalized representation of an inference job. The gateway
|
|
19
|
+
* produces this from an incoming OpenAI request; it is the unit every layer
|
|
20
|
+
* agrees on. bigint wei amounts are decimal strings so the spec is plain JSON.
|
|
21
|
+
*/
|
|
22
|
+
export const jobSpecSchema = z.object({
|
|
23
|
+
model: z.string().min(1),
|
|
24
|
+
messages: z.array(chatMessageSchema).min(1),
|
|
25
|
+
maxTokens: z.number().int().positive(),
|
|
26
|
+
temperature: z.number().min(0).max(2),
|
|
27
|
+
stream: z.boolean(),
|
|
28
|
+
requesterWallet: addressSchema,
|
|
29
|
+
maxPricePerTokenWei: decimalStringSchema,
|
|
30
|
+
minReputation: z.number().int().min(0).max(10000),
|
|
31
|
+
createdAt: z.number().int().nonnegative(),
|
|
32
|
+
deadline: z.number().int().nonnegative(),
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Derive a job's id from its content. Uses canonical serialization so the id is
|
|
36
|
+
* independent of field order and stable across platforms (CRLF/LF safe — content
|
|
37
|
+
* is JSON-escaped verbatim, never newline-normalized). Identical jobs map to the
|
|
38
|
+
* same id; any meaningful change (prompt, price, deadline) changes it.
|
|
39
|
+
*/
|
|
40
|
+
export function computeJobId(spec) {
|
|
41
|
+
const canonical = canonicalStringify({
|
|
42
|
+
model: spec.model,
|
|
43
|
+
messages: spec.messages,
|
|
44
|
+
maxTokens: spec.maxTokens,
|
|
45
|
+
temperature: spec.temperature,
|
|
46
|
+
stream: spec.stream,
|
|
47
|
+
requesterWallet: spec.requesterWallet.toLowerCase(),
|
|
48
|
+
maxPricePerTokenWei: spec.maxPricePerTokenWei,
|
|
49
|
+
minReputation: spec.minReputation,
|
|
50
|
+
createdAt: spec.createdAt,
|
|
51
|
+
deadline: spec.deadline,
|
|
52
|
+
});
|
|
53
|
+
return keccak256(toBytes(canonical));
|
|
54
|
+
}
|
|
55
|
+
export function identify(spec) {
|
|
56
|
+
return { ...spec, jobId: computeJobId(spec) };
|
|
57
|
+
}
|
|
58
|
+
export const identifiedJobSpecSchema = jobSpecSchema.extend({ jobId: bytes32Schema });
|
|
59
|
+
//# sourceMappingURL=jobspec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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