@t2000/sdk 10.35.1 → 10.36.1

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/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter } from 'eventemitter3';
2
2
  import { SuiGrpcClient } from '@mysten/sui/grpc';
3
3
  import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
4
- import { a8 as T2000Error, bm as T2000Options, af as TransactionSigner, S as PayOptions, bn as X402Probe, T as PayResult, bo as SerializedCetusRoute, bp as SwapResult, bq as SwapQuoteResult, a0 as SendResult, B as BalanceResponse, ae as TransactionRecord, j as DepositInfo, br as PaymentRequest, ap as ZkLoginProof, bs as SuiCoreClient, F as OverlayFeeConfig, bt as SponsoredCoinMergeCache, a6 as SupportedAsset, a7 as SwapRouteResult, bu as SendableAsset } from './commerce-9K049Ggc.cjs';
5
- export { A as A2A_ESCROW_FEE_CONFIG_ID, bv as A2A_ESCROW_LATEST_PACKAGE_ID, bw as A2A_ESCROW_OPENING_PACKAGE_ID, a as A2A_ESCROW_PACKAGE_ID, bx as A2A_ESCROW_PACKAGE_V2_ID, by as A2A_ESCROW_PACKAGE_V3_ID, bz as A2A_ESCROW_PACKAGE_V6_ID, bA as A2A_ESCROW_PACKAGE_V7_ID, bB as A2A_ESCROW_PACKAGE_V8_ID, bC as A2A_SCORE_BOARD_ID, b as ActivityReportConfig, c as AgentScore, bD as CETUS_USDC_SUI_POOL, C as CLOCK_ID, d as COIN_REGISTRY, e as ClassifyBalanceChange, f as ClassifyResult, g as CoinMeta, bE as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, h as DEFAULT_COMMERCE_API_BASE, bF as DEFAULT_GRPC_URL, i as DEFAULT_NETWORK, E as ETH_TYPE, k as ExtractedTransfer, bG as GASLESS_MIN_STABLE_AMOUNT, bH as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, l as Job, m as JobState, n as JobTerms, o as JobVerification, K as KNOWN_TARGETS, p as KeypairSigner, L as LABEL_PATTERNS, q as LOFI_TYPE, bI as MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, bJ as MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, bK as MAINNET_A2A_ESCROW_PACKAGE_ID, bL as MAINNET_A2A_SCORE_BOARD_ID, M as MANIFEST_TYPE, r as MAX_DELIVER_HORIZON_MS, s as MAX_JOB_USDC, bM as MAX_OPEN_WINDOW_MS, t as MAX_REVIEW_WINDOW_MS, u as MIN_JOB_USDC, v as MIST_PER_SUI, N as NAVX_TYPE, O as OPENING_CLAIM_POLICIES, w as OPENING_CLAIM_POLICY_ANY_ACTIVE, x as OPENING_CLAIM_POLICY_PROVEN, y as OPENING_CLAIM_POLICY_PROVEN_4STAR, bN as OPERATION_ASSETS, z as OVERLAY_FEE_RATE, bO as Opening, bP as OpeningTerms, bQ as Operation, P as PREFLIGHT_MAX_AMOUNT, H as PREFLIGHT_OK, Q as PROVEN_MIN_AVG_STARS_X10, R as PROVEN_MIN_REVIEWS, U as PreflightResult, V as REVIEW_MAX_STARS, W as REVIEW_MIN_STARS, bR as SENDABLE_ASSETS, X as STABLE_ASSETS, Y as SUI_DECIMALS, Z as SUI_TYPE, _ as SUPPORTED_ASSETS, bS as SelectAndSplitResult, $ as SendAssetClass, bT as SerializedCetusRoutePath, bU as SerializedRouterDataV3, a1 as ServiceListing, a2 as SimulationResult, a3 as StableAsset, a4 as SuiHolding, a5 as SuiRpcTxBlock, a9 as T2000ErrorCode, aa as T2000ErrorData, ab as T2000_OVERLAY_FEE_WALLET, ac as TOKEN_MAP, ad as TransactionLeg, ag as TxDirection, ah as USDC_DECIMALS, ai as USDC_TYPE, aj as USDE_TYPE, ak as USDSUI_TYPE, al as USDT_TYPE, am as WAL_TYPE, an as WBTC_TYPE, ao as X402ActivityPayload, aq as ZkLoginSigner, bV as addSendToTx, bW as addSwapToTx, bX as assertAllowedAsset, bY as assertBuyerRequirements, bZ as buildCancelOpeningTx, b_ as buildClaimOpeningTx, b$ as buildCreateEmptyScoreTx, ar as buildCreateJobTx, c0 as buildCreateOpeningTx, c1 as buildDeclineJobTx, as as buildDeliverJobTx, at as buildRefundJobTx, c2 as buildRefundUnclaimedTx, au as buildRejectJobTx, av as buildReleaseJobTx, aw as buildSendTx, c3 as buildSubmitFirstReviewTx, c4 as buildSubmitReviewTx, ax as buildSwapTx, ay as checkPositiveAmount, az as checkSuiAddress, aA as claimPolicyLabel, aB as claimPolicyRequirement, aC as classifyAction, aD as classifyLabel, aE as classifySendAsset, aF as classifyTransaction, aG as deriveAgentScoreId, c5 as deserializeCetusRoute, aH as executeTx, aI as extractAllUserLegs, aJ as extractTransferDetails, aK as extractTxCommands, aL as extractTxSender, aM as fallbackLabel, c6 as fetchAllCoins, aN as fetchService, aO as findSwapRoute, aP as formatAssetAmount, aQ as formatSui, aR as formatUsd, aS as getAgentScore, c7 as getCoinMeta, aT as getDecimals, aU as getDecimalsForCoinType, aV as getJob, aW as getJobSpec, c8 as getOpening, c9 as getSuiClient, ca as getSuiGrpcClient, aX as invalidSendAssetMessage, cb as isAllowedAsset, cc as isCetusRouteFresh, cd as isInRegistry, aY as jobActionsFor, aZ as listServices, a_ as mapMoveAbortCode, a$ as mapWalletError, b0 as meetsClaimPolicy, b1 as mistToSui, ce as normalizeAsset, cf as normalizeCoinType, b2 as parseSuiRpcTx, b3 as payWithX402, b4 as preflightCreateJob, cg as preflightCreateOpening, b5 as preflightFail, b6 as preflightPay, b7 as preflightSend, b8 as preflightSwap, ch as probeX402, b9 as putJobSpec, ci as queryHistory, cj as queryTransaction, ba as rawToStable, bb as rawToUsdc, bc as refineLendingLabel, bd as reportX402Activity, be as resolveSymbol, bf as resolveTokenType, ck as selectAndSplitCoin, cl as selectSuiCoin, cm as serializeCetusRoute, cn as simulateTransaction, bg as stableToRaw, bh as suiToMist, co as throwIfSimulationFailed, bi as truncateAddress, bj as usdcToRaw, bk as validateAddress, cp as verifyCetusRouteCoinMatch, bl as verifyJobForSeller } from './commerce-9K049Ggc.cjs';
4
+ import { a8 as T2000Error, bm as T2000Options, af as TransactionSigner, S as PayOptions, bn as X402Probe, T as PayResult, bo as SerializedCetusRoute, bp as SwapResult, bq as SwapQuoteResult, a0 as SendResult, B as BalanceResponse, ae as TransactionRecord, j as DepositInfo, br as PaymentRequest, ap as ZkLoginProof, bs as SuiCoreClient, F as OverlayFeeConfig, bt as SponsoredCoinMergeCache, a6 as SupportedAsset, a7 as SwapRouteResult, bu as SendableAsset } from './commerce-C0B4y1uP.cjs';
5
+ export { A as A2A_ESCROW_FEE_CONFIG_ID, bv as A2A_ESCROW_LATEST_PACKAGE_ID, bw as A2A_ESCROW_OPENING_PACKAGE_ID, a as A2A_ESCROW_PACKAGE_ID, bx as A2A_ESCROW_PACKAGE_V2_ID, by as A2A_ESCROW_PACKAGE_V3_ID, bz as A2A_ESCROW_PACKAGE_V6_ID, bA as A2A_ESCROW_PACKAGE_V7_ID, bB as A2A_ESCROW_PACKAGE_V8_ID, bC as A2A_SCORE_BOARD_ID, b as ActivityReportConfig, c as AgentScore, bD as ApiRouteListing, bE as CETUS_USDC_SUI_POOL, C as CLOCK_ID, d as COIN_REGISTRY, e as ClassifyBalanceChange, f as ClassifyResult, g as CoinMeta, bF as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, h as DEFAULT_COMMERCE_API_BASE, bG as DEFAULT_GRPC_URL, i as DEFAULT_NETWORK, E as ETH_TYPE, k as ExtractedTransfer, bH as GASLESS_MIN_STABLE_AMOUNT, bI as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, l as Job, m as JobState, n as JobTerms, o as JobVerification, K as KNOWN_TARGETS, p as KeypairSigner, L as LABEL_PATTERNS, q as LOFI_TYPE, bJ as MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, bK as MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, bL as MAINNET_A2A_ESCROW_PACKAGE_ID, bM as MAINNET_A2A_SCORE_BOARD_ID, M as MANIFEST_TYPE, r as MAX_DELIVER_HORIZON_MS, s as MAX_JOB_USDC, bN as MAX_OPEN_WINDOW_MS, t as MAX_REVIEW_WINDOW_MS, u as MIN_JOB_USDC, v as MIST_PER_SUI, N as NAVX_TYPE, O as OPENING_CLAIM_POLICIES, w as OPENING_CLAIM_POLICY_ANY_ACTIVE, x as OPENING_CLAIM_POLICY_PROVEN, y as OPENING_CLAIM_POLICY_PROVEN_4STAR, bO as OPERATION_ASSETS, z as OVERLAY_FEE_RATE, bP as Opening, bQ as OpeningTerms, bR as Operation, P as PREFLIGHT_MAX_AMOUNT, H as PREFLIGHT_OK, Q as PROVEN_MIN_AVG_STARS_X10, R as PROVEN_MIN_REVIEWS, U as PreflightResult, V as REVIEW_MAX_STARS, W as REVIEW_MIN_STARS, bS as SENDABLE_ASSETS, X as STABLE_ASSETS, Y as SUI_DECIMALS, Z as SUI_TYPE, _ as SUPPORTED_ASSETS, bT as SelectAndSplitResult, $ as SendAssetClass, bU as SerializedCetusRoutePath, bV as SerializedRouterDataV3, a1 as ServiceListing, bW as ServicesRail, bX as ServicesRow, a2 as SimulationResult, a3 as StableAsset, a4 as SuiHolding, a5 as SuiRpcTxBlock, a9 as T2000ErrorCode, aa as T2000ErrorData, ab as T2000_OVERLAY_FEE_WALLET, ac as TOKEN_MAP, ad as TransactionLeg, ag as TxDirection, ah as USDC_DECIMALS, ai as USDC_TYPE, aj as USDE_TYPE, ak as USDSUI_TYPE, al as USDT_TYPE, am as WAL_TYPE, an as WBTC_TYPE, ao as X402ActivityPayload, aq as ZkLoginSigner, bY as addSendToTx, bZ as addSwapToTx, b_ as assertAllowedAsset, b$ as assertBuyerRequirements, c0 as buildCancelOpeningTx, c1 as buildClaimOpeningTx, c2 as buildCreateEmptyScoreTx, ar as buildCreateJobTx, c3 as buildCreateOpeningTx, c4 as buildDeclineJobTx, as as buildDeliverJobTx, at as buildRefundJobTx, c5 as buildRefundUnclaimedTx, au as buildRejectJobTx, av as buildReleaseJobTx, aw as buildSendTx, c6 as buildSubmitFirstReviewTx, c7 as buildSubmitReviewTx, ax as buildSwapTx, ay as checkPositiveAmount, az as checkSuiAddress, aA as claimPolicyLabel, aB as claimPolicyRequirement, aC as classifyAction, aD as classifyLabel, aE as classifySendAsset, aF as classifyTransaction, aG as deriveAgentScoreId, c8 as deserializeCetusRoute, aH as executeTx, aI as extractAllUserLegs, aJ as extractTransferDetails, aK as extractTxCommands, aL as extractTxSender, aM as fallbackLabel, c9 as fetchAllCoins, aN as fetchService, aO as findSwapRoute, aP as formatAssetAmount, aQ as formatSui, aR as formatUsd, aS as getAgentScore, ca as getCoinMeta, aT as getDecimals, aU as getDecimalsForCoinType, aV as getJob, aW as getJobSpec, cb as getOpening, cc as getSuiClient, cd as getSuiGrpcClient, aX as invalidSendAssetMessage, ce as isAllowedAsset, cf as isCetusRouteFresh, cg as isInRegistry, aY as jobActionsFor, aZ as listServices, a_ as mapMoveAbortCode, a$ as mapWalletError, b0 as meetsClaimPolicy, b1 as mistToSui, ch as normalizeAsset, ci as normalizeCoinType, b2 as parseSuiRpcTx, b3 as payWithX402, b4 as preflightCreateJob, cj as preflightCreateOpening, b5 as preflightFail, b6 as preflightPay, b7 as preflightSend, b8 as preflightSwap, ck as probeX402, b9 as putJobSpec, cl as queryHistory, cm as queryTransaction, ba as rawToStable, bb as rawToUsdc, bc as refineLendingLabel, bd as reportX402Activity, be as resolveSymbol, bf as resolveTokenType, cn as selectAndSplitCoin, co as selectSuiCoin, cp as serializeCetusRoute, cq as simulateTransaction, bg as stableToRaw, bh as suiToMist, cr as throwIfSimulationFailed, bi as truncateAddress, bj as usdcToRaw, bk as validateAddress, cs as verifyCetusRouteCoinMatch, bl as verifyJobForSeller } from './commerce-C0B4y1uP.cjs';
6
6
  import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
7
7
  import { SuinsClient } from '@mysten/suins';
8
8
  import '@mysten/sui/client';
@@ -33,9 +33,6 @@ interface ChatResult {
33
33
  content: string;
34
34
  model: string;
35
35
  usage?: ChatUsage;
36
- /** Confidential calls (`phala/*`) return a TEE attestation receipt id —
37
- * fetch + verify it at `/v1/aci/receipts/{id}`. Absent for ZDR models. */
38
- receiptId?: string;
39
36
  /** The verbatim OpenAI-shaped response body. */
40
37
  raw: unknown;
41
38
  }
@@ -55,9 +52,7 @@ interface ApiModel {
55
52
  declare function chatCompletion(params: ChatParams): Promise<ChatResult>;
56
53
  /** Streaming chat completion — yields assistant text deltas as they arrive
57
54
  * (parses the OpenAI SSE `data:` frames). */
58
- declare function chatCompletionStream(params: ChatParams): AsyncGenerator<string, {
59
- receiptId?: string;
60
- }, unknown>;
55
+ declare function chatCompletionStream(params: ChatParams): AsyncGenerator<string, void, unknown>;
61
56
  /** List Private Inference model catalog (`GET /v1/models`). The key is sent when
62
57
  * available but not required (the catalog may be public). */
63
58
  declare function listModels(opts?: {
@@ -65,66 +60,6 @@ declare function listModels(opts?: {
65
60
  apiBase?: string;
66
61
  }): Promise<ApiModel[]>;
67
62
 
68
- type CheckStatus = 'pass' | 'fail' | 'skip';
69
- type TrustMode = 'trustless' | 'receipt-asserted' | 'roadmap';
70
- interface VerifyCheck {
71
- name: string;
72
- status: CheckStatus;
73
- detail: string;
74
- trust: TrustMode;
75
- }
76
- interface VerifyAnchor {
77
- txDigest: string;
78
- anchoredAtMs?: string;
79
- anchoredBy?: string;
80
- explorer: string;
81
- }
82
- /** A typed TCB claim from the attested upstream (dstack ACI §tcb-and-claims). */
83
- interface UpstreamClaim {
84
- name: string;
85
- status: string;
86
- source?: string;
87
- }
88
- interface VerifyUpstream {
89
- provider?: string;
90
- modelId?: string;
91
- result?: string;
92
- tcbStatus?: string;
93
- /** The attested-session id (`as_…`) — resolve at GET /v1/aci/sessions/{id}. */
94
- sessionId?: string;
95
- /** Typed TCB claims (tee_attested, tcb_up_to_date, gpu_attested, …). */
96
- claims?: UpstreamClaim[];
97
- }
98
- interface VerifyResult {
99
- receiptId: string;
100
- /** True iff the receipt resolved AND its on-chain Sui anchor matches. */
101
- verified: boolean;
102
- /** The trustless core: an on-chain ReceiptAnchored event matches the receipt. */
103
- anchorVerified: boolean;
104
- checks: VerifyCheck[];
105
- wireHash?: string;
106
- workloadId?: string;
107
- upstream?: VerifyUpstream;
108
- anchor?: VerifyAnchor;
109
- }
110
- interface VerifyOptions {
111
- /** Override the API base (default `api.audric.ai/v1`). */
112
- apiBase?: string;
113
- /** Sui network for the trustless anchor read (default `mainnet`). */
114
- network?: 'mainnet' | 'testnet';
115
- /** Confidential model id for fetching the attested receipt-signing key
116
- * (default `phala/glm-5.2`; the gateway key is workload-wide). */
117
- model?: string;
118
- /** Skip the local DCAP quote verification (the slower, network-bound check). */
119
- skipQuote?: boolean;
120
- }
121
- /**
122
- * Verify a confidential response by its receipt id. Reads the signed receipt
123
- * (public), its on-chain Sui anchor (trustless), and reports a per-check result
124
- * that FAILS CLOSED on any forgery or mismatch.
125
- */
126
- declare function verifyReceipt(receiptId: string, opts?: VerifyOptions): Promise<VerifyResult>;
127
-
128
63
  interface LimitsConfig {
129
64
  /** Caps any single outbound write (send | swap | pay) by USD value. */
130
65
  perTxUsd?: number;
@@ -285,19 +220,13 @@ declare class T2000 extends EventEmitter<T2000Events> {
285
220
  pay(options: PayOptions): Promise<PayResult>;
286
221
  /** Non-streaming chat completion against Private Inference. */
287
222
  chat(params: ChatParams): Promise<ChatResult>;
288
- /** Streaming chat completion — async-iterate the assistant text deltas;
289
- * the generator returns `{ receiptId }` (confidential attestation) at the end. */
290
- chatStream(params: ChatParams): AsyncGenerator<string, {
291
- receiptId?: string;
292
- }, unknown>;
223
+ /** Streaming chat completion — async-iterate the assistant text deltas. */
224
+ chatStream(params: ChatParams): AsyncGenerator<string, void, unknown>;
293
225
  /** The Private Inference model catalog (`GET /v1/models`). */
294
226
  models(opts?: {
295
227
  apiKey?: string;
296
228
  apiBase?: string;
297
229
  }): Promise<ApiModel[]>;
298
- /** Verify a confidential response by receipt id — checks the signed receipt
299
- * + its trustless on-chain Sui anchor. Fails closed on any mismatch. */
300
- verify(receiptId: string, opts?: VerifyOptions): Promise<VerifyResult>;
301
230
  swap(params: {
302
231
  from: string;
303
232
  to: string;
@@ -589,7 +518,7 @@ declare function isCustomHireEnvelope(text: string): boolean;
589
518
 
590
519
  /** The public row shape /v1/open-jobs returns — the indexer read-model of
591
520
  * on-chain Openings. `id` is the Opening OBJECT id (0x…). Buyer addresses
592
- * never appear (registered-agent buyers surface by id); the claiming ASP
521
+ * never appear (registered-agent buyers surface by id); the claiming seller
593
522
  * is public. Title + brief are public by design. */
594
523
  /** A host-installed veto on sponsored open-board transactions (S.930).
595
524
  *
@@ -611,7 +540,12 @@ declare function setSponsoredTxGuard(guard: SponsoredTxGuard | null): void;
611
540
  interface OpenJobRow {
612
541
  id: string;
613
542
  title: string | null;
614
- brief: string | null;
543
+ /** The full task — DETAIL-ROUTE ONLY (S.1156): present on `getOpenJob`,
544
+ * absent on `listOpenJobs` rows (the board stays bounded). */
545
+ brief?: string | null;
546
+ /** One bounded line of the brief (≤140 chars) on BOARD rows — a gist for
547
+ * picking which opening to read, never the task itself. */
548
+ briefPreview?: string | null;
615
549
  maxUsdc: number;
616
550
  slaMinutes: number;
617
551
  status: 'open' | 'claimed' | 'cancelled' | 'refunded' | 'expired';
@@ -639,14 +573,29 @@ interface OpenJobFilter {
639
573
  query?: string;
640
574
  buyer?: string;
641
575
  limit?: number;
576
+ /** Page start (0-based) — feed a page's `nextOffset` back in. */
577
+ offset?: number;
578
+ }
579
+ /** One page of the board (S.1156) — HONEST about the rest: `total` counts
580
+ * every matching opening, `returned` the rows in this page, `truncated` +
581
+ * `nextOffset` say how to page. One page is never the whole board. */
582
+ interface OpenJobsPage {
583
+ total: number;
584
+ returned: number;
585
+ truncated: boolean;
586
+ nextOffset?: number;
587
+ openJobs: OpenJobRow[];
642
588
  }
643
- /** Browse the Open board (GET /v1/open-jobs — public, no key needed). */
644
- declare function listOpenJobs(base: string, filter?: OpenJobFilter): Promise<OpenJobRow[]>;
589
+ /** Browse the Open board (GET /v1/open-jobs — public, no key needed).
590
+ * Returns the page envelope, not a bare list — read `truncated` before
591
+ * treating the rows as the whole board. A degraded body (no counts)
592
+ * normalizes to `total = returned`, never an invented total. */
593
+ declare function listOpenJobs(base: string, filter?: OpenJobFilter): Promise<OpenJobsPage>;
645
594
  /** Fetch one opening by id (0x… object id; legacy UUIDs still resolve
646
595
  * during the Phase 2 drain window). */
647
596
  declare function getOpenJob(base: string, id: string): Promise<OpenJobRow>;
648
597
  /** Post an open job — THE BUDGET ESCROWS ON-CHAIN NOW. `title` + `brief`
649
- * are PUBLIC (every ASP on the board reads them; they become the funded
598
+ * are PUBLIC (every seller on the board reads them; they become the funded
650
599
  * job's spec verbatim). Returns the tx digest; the Opening object id
651
600
  * resolves from the digest (see the CLI/MCP helpers) or the board. */
652
601
  declare function postOpenJob(base: string, signer: TransactionSigner, input: {
@@ -674,7 +623,7 @@ declare function submitJobReview(base: string, signer: TransactionSigner, input:
674
623
  /** Integer 1-5. Re-submitting edits your stars in place. */
675
624
  stars: number;
676
625
  }): Promise<string>;
677
- /** Claim an open job (ASP side) — first claim wins ON-CHAIN and mints the
626
+ /** Claim an open job (seller side) — first claim wins ON-CHAIN and mints the
678
627
  * funded Job immediately; work starts now. Requires an active registered
679
628
  * Agent ID. Returns the claim tx digest. */
680
629
  declare function claimOpenJob(base: string, signer: TransactionSigner, openingId: string): Promise<string>;
@@ -1223,4 +1172,4 @@ declare function fullHandle(label: string, parentName?: string): string;
1223
1172
  */
1224
1173
  declare function displayHandle(label: string, parentName?: string): string;
1225
1174
 
1226
- export { AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, ESCROW_JOB_TYPE_MARKER, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, type NormalizedAddress, OPENING_TYPE_MARKER, type OpenJobFilter, type OpenJobRow, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, SerializedCetusRoute, type SponsoredTxGuard, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, X402Probe, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, claimOpenJob, clearLimits, composeTx, customHireEnvelope, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getOpenJob, getSponsoredSwapProviders, getSwapQuote, hasLimits, isCustomHireEnvelope, keypairFromPrivateKey, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, postOpenJob, queryBalance, readLimitsFile, recordDailySpend, refundOpenJob, resolveAddressToSuinsViaRpc, resolveCreatedObjectId, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, setSponsoredTxGuard, submitJobReview, validateLabel, verifyReceipt, walletExists, writeLimitsFile };
1175
+ export { AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, ESCROW_JOB_TYPE_MARKER, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, type NormalizedAddress, OPENING_TYPE_MARKER, type OpenJobFilter, type OpenJobRow, type OpenJobsPage, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, SerializedCetusRoute, type SponsoredTxGuard, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, X402Probe, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, claimOpenJob, clearLimits, composeTx, customHireEnvelope, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getOpenJob, getSponsoredSwapProviders, getSwapQuote, hasLimits, isCustomHireEnvelope, keypairFromPrivateKey, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, postOpenJob, queryBalance, readLimitsFile, recordDailySpend, refundOpenJob, resolveAddressToSuinsViaRpc, resolveCreatedObjectId, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, setSponsoredTxGuard, submitJobReview, validateLabel, walletExists, writeLimitsFile };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter } from 'eventemitter3';
2
2
  import { SuiGrpcClient } from '@mysten/sui/grpc';
3
3
  import { Ed25519Keypair } from '@mysten/sui/keypairs/ed25519';
4
- import { a8 as T2000Error, bm as T2000Options, af as TransactionSigner, S as PayOptions, bn as X402Probe, T as PayResult, bo as SerializedCetusRoute, bp as SwapResult, bq as SwapQuoteResult, a0 as SendResult, B as BalanceResponse, ae as TransactionRecord, j as DepositInfo, br as PaymentRequest, ap as ZkLoginProof, bs as SuiCoreClient, F as OverlayFeeConfig, bt as SponsoredCoinMergeCache, a6 as SupportedAsset, a7 as SwapRouteResult, bu as SendableAsset } from './commerce-9K049Ggc.js';
5
- export { A as A2A_ESCROW_FEE_CONFIG_ID, bv as A2A_ESCROW_LATEST_PACKAGE_ID, bw as A2A_ESCROW_OPENING_PACKAGE_ID, a as A2A_ESCROW_PACKAGE_ID, bx as A2A_ESCROW_PACKAGE_V2_ID, by as A2A_ESCROW_PACKAGE_V3_ID, bz as A2A_ESCROW_PACKAGE_V6_ID, bA as A2A_ESCROW_PACKAGE_V7_ID, bB as A2A_ESCROW_PACKAGE_V8_ID, bC as A2A_SCORE_BOARD_ID, b as ActivityReportConfig, c as AgentScore, bD as CETUS_USDC_SUI_POOL, C as CLOCK_ID, d as COIN_REGISTRY, e as ClassifyBalanceChange, f as ClassifyResult, g as CoinMeta, bE as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, h as DEFAULT_COMMERCE_API_BASE, bF as DEFAULT_GRPC_URL, i as DEFAULT_NETWORK, E as ETH_TYPE, k as ExtractedTransfer, bG as GASLESS_MIN_STABLE_AMOUNT, bH as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, l as Job, m as JobState, n as JobTerms, o as JobVerification, K as KNOWN_TARGETS, p as KeypairSigner, L as LABEL_PATTERNS, q as LOFI_TYPE, bI as MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, bJ as MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, bK as MAINNET_A2A_ESCROW_PACKAGE_ID, bL as MAINNET_A2A_SCORE_BOARD_ID, M as MANIFEST_TYPE, r as MAX_DELIVER_HORIZON_MS, s as MAX_JOB_USDC, bM as MAX_OPEN_WINDOW_MS, t as MAX_REVIEW_WINDOW_MS, u as MIN_JOB_USDC, v as MIST_PER_SUI, N as NAVX_TYPE, O as OPENING_CLAIM_POLICIES, w as OPENING_CLAIM_POLICY_ANY_ACTIVE, x as OPENING_CLAIM_POLICY_PROVEN, y as OPENING_CLAIM_POLICY_PROVEN_4STAR, bN as OPERATION_ASSETS, z as OVERLAY_FEE_RATE, bO as Opening, bP as OpeningTerms, bQ as Operation, P as PREFLIGHT_MAX_AMOUNT, H as PREFLIGHT_OK, Q as PROVEN_MIN_AVG_STARS_X10, R as PROVEN_MIN_REVIEWS, U as PreflightResult, V as REVIEW_MAX_STARS, W as REVIEW_MIN_STARS, bR as SENDABLE_ASSETS, X as STABLE_ASSETS, Y as SUI_DECIMALS, Z as SUI_TYPE, _ as SUPPORTED_ASSETS, bS as SelectAndSplitResult, $ as SendAssetClass, bT as SerializedCetusRoutePath, bU as SerializedRouterDataV3, a1 as ServiceListing, a2 as SimulationResult, a3 as StableAsset, a4 as SuiHolding, a5 as SuiRpcTxBlock, a9 as T2000ErrorCode, aa as T2000ErrorData, ab as T2000_OVERLAY_FEE_WALLET, ac as TOKEN_MAP, ad as TransactionLeg, ag as TxDirection, ah as USDC_DECIMALS, ai as USDC_TYPE, aj as USDE_TYPE, ak as USDSUI_TYPE, al as USDT_TYPE, am as WAL_TYPE, an as WBTC_TYPE, ao as X402ActivityPayload, aq as ZkLoginSigner, bV as addSendToTx, bW as addSwapToTx, bX as assertAllowedAsset, bY as assertBuyerRequirements, bZ as buildCancelOpeningTx, b_ as buildClaimOpeningTx, b$ as buildCreateEmptyScoreTx, ar as buildCreateJobTx, c0 as buildCreateOpeningTx, c1 as buildDeclineJobTx, as as buildDeliverJobTx, at as buildRefundJobTx, c2 as buildRefundUnclaimedTx, au as buildRejectJobTx, av as buildReleaseJobTx, aw as buildSendTx, c3 as buildSubmitFirstReviewTx, c4 as buildSubmitReviewTx, ax as buildSwapTx, ay as checkPositiveAmount, az as checkSuiAddress, aA as claimPolicyLabel, aB as claimPolicyRequirement, aC as classifyAction, aD as classifyLabel, aE as classifySendAsset, aF as classifyTransaction, aG as deriveAgentScoreId, c5 as deserializeCetusRoute, aH as executeTx, aI as extractAllUserLegs, aJ as extractTransferDetails, aK as extractTxCommands, aL as extractTxSender, aM as fallbackLabel, c6 as fetchAllCoins, aN as fetchService, aO as findSwapRoute, aP as formatAssetAmount, aQ as formatSui, aR as formatUsd, aS as getAgentScore, c7 as getCoinMeta, aT as getDecimals, aU as getDecimalsForCoinType, aV as getJob, aW as getJobSpec, c8 as getOpening, c9 as getSuiClient, ca as getSuiGrpcClient, aX as invalidSendAssetMessage, cb as isAllowedAsset, cc as isCetusRouteFresh, cd as isInRegistry, aY as jobActionsFor, aZ as listServices, a_ as mapMoveAbortCode, a$ as mapWalletError, b0 as meetsClaimPolicy, b1 as mistToSui, ce as normalizeAsset, cf as normalizeCoinType, b2 as parseSuiRpcTx, b3 as payWithX402, b4 as preflightCreateJob, cg as preflightCreateOpening, b5 as preflightFail, b6 as preflightPay, b7 as preflightSend, b8 as preflightSwap, ch as probeX402, b9 as putJobSpec, ci as queryHistory, cj as queryTransaction, ba as rawToStable, bb as rawToUsdc, bc as refineLendingLabel, bd as reportX402Activity, be as resolveSymbol, bf as resolveTokenType, ck as selectAndSplitCoin, cl as selectSuiCoin, cm as serializeCetusRoute, cn as simulateTransaction, bg as stableToRaw, bh as suiToMist, co as throwIfSimulationFailed, bi as truncateAddress, bj as usdcToRaw, bk as validateAddress, cp as verifyCetusRouteCoinMatch, bl as verifyJobForSeller } from './commerce-9K049Ggc.js';
4
+ import { a8 as T2000Error, bm as T2000Options, af as TransactionSigner, S as PayOptions, bn as X402Probe, T as PayResult, bo as SerializedCetusRoute, bp as SwapResult, bq as SwapQuoteResult, a0 as SendResult, B as BalanceResponse, ae as TransactionRecord, j as DepositInfo, br as PaymentRequest, ap as ZkLoginProof, bs as SuiCoreClient, F as OverlayFeeConfig, bt as SponsoredCoinMergeCache, a6 as SupportedAsset, a7 as SwapRouteResult, bu as SendableAsset } from './commerce-C0B4y1uP.js';
5
+ export { A as A2A_ESCROW_FEE_CONFIG_ID, bv as A2A_ESCROW_LATEST_PACKAGE_ID, bw as A2A_ESCROW_OPENING_PACKAGE_ID, a as A2A_ESCROW_PACKAGE_ID, bx as A2A_ESCROW_PACKAGE_V2_ID, by as A2A_ESCROW_PACKAGE_V3_ID, bz as A2A_ESCROW_PACKAGE_V6_ID, bA as A2A_ESCROW_PACKAGE_V7_ID, bB as A2A_ESCROW_PACKAGE_V8_ID, bC as A2A_SCORE_BOARD_ID, b as ActivityReportConfig, c as AgentScore, bD as ApiRouteListing, bE as CETUS_USDC_SUI_POOL, C as CLOCK_ID, d as COIN_REGISTRY, e as ClassifyBalanceChange, f as ClassifyResult, g as CoinMeta, bF as CoinPage, D as DEFAULT_ACTIVITY_REPORT_URL, h as DEFAULT_COMMERCE_API_BASE, bG as DEFAULT_GRPC_URL, i as DEFAULT_NETWORK, E as ETH_TYPE, k as ExtractedTransfer, bH as GASLESS_MIN_STABLE_AMOUNT, bI as GASLESS_STABLE_TYPES, G as GAS_RESERVE_MIN, I as IKA_TYPE, J as JOB_STATES, l as Job, m as JobState, n as JobTerms, o as JobVerification, K as KNOWN_TARGETS, p as KeypairSigner, L as LABEL_PATTERNS, q as LOFI_TYPE, bJ as MAINNET_A2A_ESCROW_LATEST_PACKAGE_ID, bK as MAINNET_A2A_ESCROW_OPENING_PACKAGE_ID, bL as MAINNET_A2A_ESCROW_PACKAGE_ID, bM as MAINNET_A2A_SCORE_BOARD_ID, M as MANIFEST_TYPE, r as MAX_DELIVER_HORIZON_MS, s as MAX_JOB_USDC, bN as MAX_OPEN_WINDOW_MS, t as MAX_REVIEW_WINDOW_MS, u as MIN_JOB_USDC, v as MIST_PER_SUI, N as NAVX_TYPE, O as OPENING_CLAIM_POLICIES, w as OPENING_CLAIM_POLICY_ANY_ACTIVE, x as OPENING_CLAIM_POLICY_PROVEN, y as OPENING_CLAIM_POLICY_PROVEN_4STAR, bO as OPERATION_ASSETS, z as OVERLAY_FEE_RATE, bP as Opening, bQ as OpeningTerms, bR as Operation, P as PREFLIGHT_MAX_AMOUNT, H as PREFLIGHT_OK, Q as PROVEN_MIN_AVG_STARS_X10, R as PROVEN_MIN_REVIEWS, U as PreflightResult, V as REVIEW_MAX_STARS, W as REVIEW_MIN_STARS, bS as SENDABLE_ASSETS, X as STABLE_ASSETS, Y as SUI_DECIMALS, Z as SUI_TYPE, _ as SUPPORTED_ASSETS, bT as SelectAndSplitResult, $ as SendAssetClass, bU as SerializedCetusRoutePath, bV as SerializedRouterDataV3, a1 as ServiceListing, bW as ServicesRail, bX as ServicesRow, a2 as SimulationResult, a3 as StableAsset, a4 as SuiHolding, a5 as SuiRpcTxBlock, a9 as T2000ErrorCode, aa as T2000ErrorData, ab as T2000_OVERLAY_FEE_WALLET, ac as TOKEN_MAP, ad as TransactionLeg, ag as TxDirection, ah as USDC_DECIMALS, ai as USDC_TYPE, aj as USDE_TYPE, ak as USDSUI_TYPE, al as USDT_TYPE, am as WAL_TYPE, an as WBTC_TYPE, ao as X402ActivityPayload, aq as ZkLoginSigner, bY as addSendToTx, bZ as addSwapToTx, b_ as assertAllowedAsset, b$ as assertBuyerRequirements, c0 as buildCancelOpeningTx, c1 as buildClaimOpeningTx, c2 as buildCreateEmptyScoreTx, ar as buildCreateJobTx, c3 as buildCreateOpeningTx, c4 as buildDeclineJobTx, as as buildDeliverJobTx, at as buildRefundJobTx, c5 as buildRefundUnclaimedTx, au as buildRejectJobTx, av as buildReleaseJobTx, aw as buildSendTx, c6 as buildSubmitFirstReviewTx, c7 as buildSubmitReviewTx, ax as buildSwapTx, ay as checkPositiveAmount, az as checkSuiAddress, aA as claimPolicyLabel, aB as claimPolicyRequirement, aC as classifyAction, aD as classifyLabel, aE as classifySendAsset, aF as classifyTransaction, aG as deriveAgentScoreId, c8 as deserializeCetusRoute, aH as executeTx, aI as extractAllUserLegs, aJ as extractTransferDetails, aK as extractTxCommands, aL as extractTxSender, aM as fallbackLabel, c9 as fetchAllCoins, aN as fetchService, aO as findSwapRoute, aP as formatAssetAmount, aQ as formatSui, aR as formatUsd, aS as getAgentScore, ca as getCoinMeta, aT as getDecimals, aU as getDecimalsForCoinType, aV as getJob, aW as getJobSpec, cb as getOpening, cc as getSuiClient, cd as getSuiGrpcClient, aX as invalidSendAssetMessage, ce as isAllowedAsset, cf as isCetusRouteFresh, cg as isInRegistry, aY as jobActionsFor, aZ as listServices, a_ as mapMoveAbortCode, a$ as mapWalletError, b0 as meetsClaimPolicy, b1 as mistToSui, ch as normalizeAsset, ci as normalizeCoinType, b2 as parseSuiRpcTx, b3 as payWithX402, b4 as preflightCreateJob, cj as preflightCreateOpening, b5 as preflightFail, b6 as preflightPay, b7 as preflightSend, b8 as preflightSwap, ck as probeX402, b9 as putJobSpec, cl as queryHistory, cm as queryTransaction, ba as rawToStable, bb as rawToUsdc, bc as refineLendingLabel, bd as reportX402Activity, be as resolveSymbol, bf as resolveTokenType, cn as selectAndSplitCoin, co as selectSuiCoin, cp as serializeCetusRoute, cq as simulateTransaction, bg as stableToRaw, bh as suiToMist, cr as throwIfSimulationFailed, bi as truncateAddress, bj as usdcToRaw, bk as validateAddress, cs as verifyCetusRouteCoinMatch, bl as verifyJobForSeller } from './commerce-C0B4y1uP.js';
6
6
  import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
7
7
  import { SuinsClient } from '@mysten/suins';
8
8
  import '@mysten/sui/client';
@@ -33,9 +33,6 @@ interface ChatResult {
33
33
  content: string;
34
34
  model: string;
35
35
  usage?: ChatUsage;
36
- /** Confidential calls (`phala/*`) return a TEE attestation receipt id —
37
- * fetch + verify it at `/v1/aci/receipts/{id}`. Absent for ZDR models. */
38
- receiptId?: string;
39
36
  /** The verbatim OpenAI-shaped response body. */
40
37
  raw: unknown;
41
38
  }
@@ -55,9 +52,7 @@ interface ApiModel {
55
52
  declare function chatCompletion(params: ChatParams): Promise<ChatResult>;
56
53
  /** Streaming chat completion — yields assistant text deltas as they arrive
57
54
  * (parses the OpenAI SSE `data:` frames). */
58
- declare function chatCompletionStream(params: ChatParams): AsyncGenerator<string, {
59
- receiptId?: string;
60
- }, unknown>;
55
+ declare function chatCompletionStream(params: ChatParams): AsyncGenerator<string, void, unknown>;
61
56
  /** List Private Inference model catalog (`GET /v1/models`). The key is sent when
62
57
  * available but not required (the catalog may be public). */
63
58
  declare function listModels(opts?: {
@@ -65,66 +60,6 @@ declare function listModels(opts?: {
65
60
  apiBase?: string;
66
61
  }): Promise<ApiModel[]>;
67
62
 
68
- type CheckStatus = 'pass' | 'fail' | 'skip';
69
- type TrustMode = 'trustless' | 'receipt-asserted' | 'roadmap';
70
- interface VerifyCheck {
71
- name: string;
72
- status: CheckStatus;
73
- detail: string;
74
- trust: TrustMode;
75
- }
76
- interface VerifyAnchor {
77
- txDigest: string;
78
- anchoredAtMs?: string;
79
- anchoredBy?: string;
80
- explorer: string;
81
- }
82
- /** A typed TCB claim from the attested upstream (dstack ACI §tcb-and-claims). */
83
- interface UpstreamClaim {
84
- name: string;
85
- status: string;
86
- source?: string;
87
- }
88
- interface VerifyUpstream {
89
- provider?: string;
90
- modelId?: string;
91
- result?: string;
92
- tcbStatus?: string;
93
- /** The attested-session id (`as_…`) — resolve at GET /v1/aci/sessions/{id}. */
94
- sessionId?: string;
95
- /** Typed TCB claims (tee_attested, tcb_up_to_date, gpu_attested, …). */
96
- claims?: UpstreamClaim[];
97
- }
98
- interface VerifyResult {
99
- receiptId: string;
100
- /** True iff the receipt resolved AND its on-chain Sui anchor matches. */
101
- verified: boolean;
102
- /** The trustless core: an on-chain ReceiptAnchored event matches the receipt. */
103
- anchorVerified: boolean;
104
- checks: VerifyCheck[];
105
- wireHash?: string;
106
- workloadId?: string;
107
- upstream?: VerifyUpstream;
108
- anchor?: VerifyAnchor;
109
- }
110
- interface VerifyOptions {
111
- /** Override the API base (default `api.audric.ai/v1`). */
112
- apiBase?: string;
113
- /** Sui network for the trustless anchor read (default `mainnet`). */
114
- network?: 'mainnet' | 'testnet';
115
- /** Confidential model id for fetching the attested receipt-signing key
116
- * (default `phala/glm-5.2`; the gateway key is workload-wide). */
117
- model?: string;
118
- /** Skip the local DCAP quote verification (the slower, network-bound check). */
119
- skipQuote?: boolean;
120
- }
121
- /**
122
- * Verify a confidential response by its receipt id. Reads the signed receipt
123
- * (public), its on-chain Sui anchor (trustless), and reports a per-check result
124
- * that FAILS CLOSED on any forgery or mismatch.
125
- */
126
- declare function verifyReceipt(receiptId: string, opts?: VerifyOptions): Promise<VerifyResult>;
127
-
128
63
  interface LimitsConfig {
129
64
  /** Caps any single outbound write (send | swap | pay) by USD value. */
130
65
  perTxUsd?: number;
@@ -285,19 +220,13 @@ declare class T2000 extends EventEmitter<T2000Events> {
285
220
  pay(options: PayOptions): Promise<PayResult>;
286
221
  /** Non-streaming chat completion against Private Inference. */
287
222
  chat(params: ChatParams): Promise<ChatResult>;
288
- /** Streaming chat completion — async-iterate the assistant text deltas;
289
- * the generator returns `{ receiptId }` (confidential attestation) at the end. */
290
- chatStream(params: ChatParams): AsyncGenerator<string, {
291
- receiptId?: string;
292
- }, unknown>;
223
+ /** Streaming chat completion — async-iterate the assistant text deltas. */
224
+ chatStream(params: ChatParams): AsyncGenerator<string, void, unknown>;
293
225
  /** The Private Inference model catalog (`GET /v1/models`). */
294
226
  models(opts?: {
295
227
  apiKey?: string;
296
228
  apiBase?: string;
297
229
  }): Promise<ApiModel[]>;
298
- /** Verify a confidential response by receipt id — checks the signed receipt
299
- * + its trustless on-chain Sui anchor. Fails closed on any mismatch. */
300
- verify(receiptId: string, opts?: VerifyOptions): Promise<VerifyResult>;
301
230
  swap(params: {
302
231
  from: string;
303
232
  to: string;
@@ -589,7 +518,7 @@ declare function isCustomHireEnvelope(text: string): boolean;
589
518
 
590
519
  /** The public row shape /v1/open-jobs returns — the indexer read-model of
591
520
  * on-chain Openings. `id` is the Opening OBJECT id (0x…). Buyer addresses
592
- * never appear (registered-agent buyers surface by id); the claiming ASP
521
+ * never appear (registered-agent buyers surface by id); the claiming seller
593
522
  * is public. Title + brief are public by design. */
594
523
  /** A host-installed veto on sponsored open-board transactions (S.930).
595
524
  *
@@ -611,7 +540,12 @@ declare function setSponsoredTxGuard(guard: SponsoredTxGuard | null): void;
611
540
  interface OpenJobRow {
612
541
  id: string;
613
542
  title: string | null;
614
- brief: string | null;
543
+ /** The full task — DETAIL-ROUTE ONLY (S.1156): present on `getOpenJob`,
544
+ * absent on `listOpenJobs` rows (the board stays bounded). */
545
+ brief?: string | null;
546
+ /** One bounded line of the brief (≤140 chars) on BOARD rows — a gist for
547
+ * picking which opening to read, never the task itself. */
548
+ briefPreview?: string | null;
615
549
  maxUsdc: number;
616
550
  slaMinutes: number;
617
551
  status: 'open' | 'claimed' | 'cancelled' | 'refunded' | 'expired';
@@ -639,14 +573,29 @@ interface OpenJobFilter {
639
573
  query?: string;
640
574
  buyer?: string;
641
575
  limit?: number;
576
+ /** Page start (0-based) — feed a page's `nextOffset` back in. */
577
+ offset?: number;
578
+ }
579
+ /** One page of the board (S.1156) — HONEST about the rest: `total` counts
580
+ * every matching opening, `returned` the rows in this page, `truncated` +
581
+ * `nextOffset` say how to page. One page is never the whole board. */
582
+ interface OpenJobsPage {
583
+ total: number;
584
+ returned: number;
585
+ truncated: boolean;
586
+ nextOffset?: number;
587
+ openJobs: OpenJobRow[];
642
588
  }
643
- /** Browse the Open board (GET /v1/open-jobs — public, no key needed). */
644
- declare function listOpenJobs(base: string, filter?: OpenJobFilter): Promise<OpenJobRow[]>;
589
+ /** Browse the Open board (GET /v1/open-jobs — public, no key needed).
590
+ * Returns the page envelope, not a bare list — read `truncated` before
591
+ * treating the rows as the whole board. A degraded body (no counts)
592
+ * normalizes to `total = returned`, never an invented total. */
593
+ declare function listOpenJobs(base: string, filter?: OpenJobFilter): Promise<OpenJobsPage>;
645
594
  /** Fetch one opening by id (0x… object id; legacy UUIDs still resolve
646
595
  * during the Phase 2 drain window). */
647
596
  declare function getOpenJob(base: string, id: string): Promise<OpenJobRow>;
648
597
  /** Post an open job — THE BUDGET ESCROWS ON-CHAIN NOW. `title` + `brief`
649
- * are PUBLIC (every ASP on the board reads them; they become the funded
598
+ * are PUBLIC (every seller on the board reads them; they become the funded
650
599
  * job's spec verbatim). Returns the tx digest; the Opening object id
651
600
  * resolves from the digest (see the CLI/MCP helpers) or the board. */
652
601
  declare function postOpenJob(base: string, signer: TransactionSigner, input: {
@@ -674,7 +623,7 @@ declare function submitJobReview(base: string, signer: TransactionSigner, input:
674
623
  /** Integer 1-5. Re-submitting edits your stars in place. */
675
624
  stars: number;
676
625
  }): Promise<string>;
677
- /** Claim an open job (ASP side) — first claim wins ON-CHAIN and mints the
626
+ /** Claim an open job (seller side) — first claim wins ON-CHAIN and mints the
678
627
  * funded Job immediately; work starts now. Requires an active registered
679
628
  * Agent ID. Returns the claim tx digest. */
680
629
  declare function claimOpenJob(base: string, signer: TransactionSigner, openingId: string): Promise<string>;
@@ -1223,4 +1172,4 @@ declare function fullHandle(label: string, parentName?: string): string;
1223
1172
  */
1224
1173
  declare function displayHandle(label: string, parentName?: string): string;
1225
1174
 
1226
- export { AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type CheckStatus, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, ESCROW_JOB_TYPE_MARKER, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, type NormalizedAddress, OPENING_TYPE_MARKER, type OpenJobFilter, type OpenJobRow, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, SerializedCetusRoute, type SponsoredTxGuard, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, type TrustMode, type UpstreamClaim, type VerifyAnchor, type VerifyCheck, type VerifyOptions, type VerifyResult, type VerifyUpstream, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, X402Probe, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, claimOpenJob, clearLimits, composeTx, customHireEnvelope, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getOpenJob, getSponsoredSwapProviders, getSwapQuote, hasLimits, isCustomHireEnvelope, keypairFromPrivateKey, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, postOpenJob, queryBalance, readLimitsFile, recordDailySpend, refundOpenJob, resolveAddressToSuinsViaRpc, resolveCreatedObjectId, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, setSponsoredTxGuard, submitJobReview, validateLabel, verifyReceipt, walletExists, writeLimitsFile };
1175
+ export { AUDRIC_PARENT, AUDRIC_PARENT_NAME, AUDRIC_PARENT_NFT_ID, type ApiModel, type AppenderContext, BalanceResponse, type BuildAddLeafParams, type BuildRevokeLeafParams, type ChatMessage, type ChatParams, type ChatResult, type ChatUsage, type ComposeTxOptions, type ComposeTxResult, DEFAULT_API_BASE, type DailySpend, DepositInfo, ESCROW_JOB_TYPE_MARKER, InvalidAddressError, type LabelValidationResult, type LimitAssertInput, LimitEnforcer, LimitExceededError, type LimitKind, type LimitOperation, type LimitsConfig, type LimitsFile, type NormalizedAddress, OPENING_TYPE_MARKER, type OpenJobFilter, type OpenJobRow, type OpenJobsPage, OverlayFeeConfig, PayOptions, PayResult, PaymentRequest, SPONSORED_PYTH_DEPENDENT_PROVIDERS, SUINS_NAME_REGEX, SUI_ADDRESS_REGEX, SUI_ADDRESS_STRICT_REGEX, SendResult, type SendTransferInput, SendableAsset, SerializedCetusRoute, type SponsoredTxGuard, type StepPreview, SuinsNotRegisteredError, type SuinsParent, SuinsRpcError, SupportedAsset, type SwapExecuteInput, SwapQuoteResult, SwapResult, SwapRouteResult, T2000, T2000Error, T2000Options, TransactionRecord, TransactionSigner, WRITE_APPENDER_REGISTRY, type WriteStep, type WriteToolName, X402Probe, ZkLoginProof, approxUsdValue, assertLimitConfig, buildAddLeafTx, buildRevokeLeafTx, cancelOpenJob, canonicalizeRecipientInput, chatCompletion, chatCompletionStream, claimOpenJob, clearLimits, composeTx, customHireEnvelope, dailySpentToday, deriveAllowedAddressesFromPtb, displayHandle, exportPrivateKey, fullHandle, generateKeypair, getAddress, getLimits, getOpenJob, getSponsoredSwapProviders, getSwapQuote, hasLimits, isCustomHireEnvelope, keypairFromPrivateKey, listModels, listOpenJobs, loadKey, looksLikeSuiNs, normalizeAddressInput, postOpenJob, queryBalance, readLimitsFile, recordDailySpend, refundOpenJob, resolveAddressToSuinsViaRpc, resolveCreatedObjectId, resolveSuinsViaRpc, saveBech32, saveKey, setLimits, setSponsoredTxGuard, submitJobReview, validateLabel, walletExists, writeLimitsFile };