@vapi-network/core 0.15.2 → 0.16.2

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.
Files changed (86) hide show
  1. package/README.md +6 -2
  2. package/dist/agent-profile.d.ts +7 -0
  3. package/dist/agent-profile.d.ts.map +1 -1
  4. package/dist/api-key.js +4 -0
  5. package/dist/api-key.js.map +1 -1
  6. package/dist/backup.js +8 -1
  7. package/dist/backup.js.map +1 -1
  8. package/dist/cloud-backup.js +8 -1
  9. package/dist/cloud-backup.js.map +1 -1
  10. package/dist/config.d.ts +10 -0
  11. package/dist/config.d.ts.map +1 -1
  12. package/dist/index.js +109 -9
  13. package/dist/index.js.map +2 -2
  14. package/dist/router-client.js +37 -5
  15. package/dist/router-client.js.map +1 -1
  16. package/dist/secret-backend.d.ts +5 -1
  17. package/dist/secret-backend.d.ts.map +1 -1
  18. package/dist/secrets.js +6 -1
  19. package/dist/secrets.js.map +1 -1
  20. package/dist/support-report.d.ts +1 -1
  21. package/dist/swarm.d.ts.map +1 -1
  22. package/dist/tasks/actions.d.ts +1 -0
  23. package/dist/tasks/actions.d.ts.map +1 -1
  24. package/dist/tasks/availability.d.ts +21 -0
  25. package/dist/tasks/availability.d.ts.map +1 -0
  26. package/dist/tasks/ballots.d.ts +43 -0
  27. package/dist/tasks/ballots.d.ts.map +1 -0
  28. package/dist/tasks/chain-port.d.ts +26 -0
  29. package/dist/tasks/chain-port.d.ts.map +1 -1
  30. package/dist/tasks/chain.d.ts +5 -0
  31. package/dist/tasks/chain.d.ts.map +1 -1
  32. package/dist/tasks/client.d.ts +33 -3
  33. package/dist/tasks/client.d.ts.map +1 -1
  34. package/dist/tasks/funding-attempts.d.ts +58 -0
  35. package/dist/tasks/funding-attempts.d.ts.map +1 -0
  36. package/dist/tasks/funding-intent.d.ts +11 -0
  37. package/dist/tasks/funding-intent.d.ts.map +1 -0
  38. package/dist/tasks/index.d.ts +15 -2
  39. package/dist/tasks/index.d.ts.map +1 -1
  40. package/dist/tasks/money.d.ts +2 -0
  41. package/dist/tasks/money.d.ts.map +1 -1
  42. package/dist/tasks/operation-support.d.ts +21 -3
  43. package/dist/tasks/operation-support.d.ts.map +1 -1
  44. package/dist/tasks/operations.d.ts +663 -25
  45. package/dist/tasks/operations.d.ts.map +1 -1
  46. package/dist/tasks/pending-transactions.d.ts +14 -0
  47. package/dist/tasks/pending-transactions.d.ts.map +1 -1
  48. package/dist/tasks/post-options.d.ts +154 -0
  49. package/dist/tasks/post-options.d.ts.map +1 -0
  50. package/dist/tasks/types.d.ts +5505 -74
  51. package/dist/tasks/types.d.ts.map +1 -1
  52. package/dist/tasks/v2-abi.d.ts +12 -0
  53. package/dist/tasks/v2-abi.d.ts.map +1 -0
  54. package/dist/tasks/v2-abi.generated.d.ts +5966 -0
  55. package/dist/tasks/v2-abi.generated.d.ts.map +1 -0
  56. package/dist/tasks/v2-events.d.ts +6460 -0
  57. package/dist/tasks/v2-events.d.ts.map +1 -0
  58. package/dist/tasks/v2-execution.d.ts +1070 -0
  59. package/dist/tasks/v2-execution.d.ts.map +1 -0
  60. package/dist/tasks/v2-jury.d.ts +863 -0
  61. package/dist/tasks/v2-jury.d.ts.map +1 -0
  62. package/dist/tasks/v2-limits.d.ts +30 -0
  63. package/dist/tasks/v2-limits.d.ts.map +1 -0
  64. package/dist/tasks/v2-plan-guard.d.ts +102 -0
  65. package/dist/tasks/v2-plan-guard.d.ts.map +1 -0
  66. package/dist/tasks/v2-public.d.ts +154 -0
  67. package/dist/tasks/v2-public.d.ts.map +1 -0
  68. package/dist/tasks/v2-trust.d.ts +27 -0
  69. package/dist/tasks/v2-trust.d.ts.map +1 -0
  70. package/dist/tasks/v2-write.d.ts +887 -0
  71. package/dist/tasks/v2-write.d.ts.map +1 -0
  72. package/dist/tasks/v2.d.ts +847 -0
  73. package/dist/tasks/v2.d.ts.map +1 -0
  74. package/dist/tasks/verbs.d.ts +1 -1
  75. package/dist/tasks/verbs.d.ts.map +1 -1
  76. package/dist/tasks/x402-funding.d.ts +49 -0
  77. package/dist/tasks/x402-funding.d.ts.map +1 -0
  78. package/dist/tasks.js +18430 -4842
  79. package/dist/tasks.js.map +3 -3
  80. package/dist/wallet-store.d.ts +14 -1
  81. package/dist/wallet-store.d.ts.map +1 -1
  82. package/dist/x402-pay.d.ts +11 -1
  83. package/dist/x402-pay.d.ts.map +1 -1
  84. package/dist/x402.d.ts +6 -0
  85. package/dist/x402.d.ts.map +1 -1
  86. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2-jury.d.ts","sourceRoot":"","sources":["../../src/tasks/v2-jury.ts"],"names":[],"mappings":"AASA,OAAO,EASL,KAAK,OAAO,EACZ,KAAK,GAAG,EACT,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAA+B,KAAK,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAS7F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,qFAAqF;AACrF,eAAO,MAAM,mBAAmB,iGAQtB,CAAC;AAGX,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAiB7D,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,CAE3E;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,MAAM,EAAE,OAAO,CAAC;IAChB,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAA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MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,YAAY,CAAC;IAC1C,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;IAClD,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;;;;;;;;;;;;;;;;;;;;GA0EA"}
@@ -0,0 +1,30 @@
1
+ import type { PublicClient } from "viem";
2
+ import { type TasksV2DeploymentOverrides } from "./v2-trust.js";
3
+ export type TaskV2Shape = "task" | "bounty" | "pool";
4
+ export type TaskV2Limits = {
5
+ chainId: number;
6
+ shape: TaskV2Shape;
7
+ /** The fee a new escrow or pool freezes at creation, in basis points. */
8
+ feeBp: number;
9
+ /** The largest total one task, bounty or pool may hold, in USDC base units. */
10
+ maxBaseUnits: bigint;
11
+ };
12
+ export type TaskV2LimitsReader = (chainId: number, shape: TaskV2Shape) => Promise<TaskV2Limits | undefined>;
13
+ /**
14
+ * Reads `feeBp()` and `maxEscrowAmount()` (tasks and bounties) or `maxPoolBudget()` (pools)
15
+ * from the pinned factory. Returns undefined when the chain has no local pin, the RPC answers
16
+ * for another chain, a read fails or the time runs out: the caller then falls back to the
17
+ * hosted fee, and the API and the contract still enforce the limit.
18
+ */
19
+ export declare function readTaskV2Limits(input: {
20
+ chainId: number;
21
+ shape: TaskV2Shape;
22
+ rpcFor: (chainId: number) => PublicClient;
23
+ trustedV2Deployments?: TasksV2DeploymentOverrides;
24
+ env?: NodeJS.ProcessEnv;
25
+ onV2UntrustedOverride?: (message: string) => void;
26
+ timeoutMs?: number;
27
+ }): Promise<TaskV2Limits | undefined>;
28
+ /** Refuses a total above the live limit, in the words a poster can act on. */
29
+ export declare function assertWithinTaskV2Limit(totalBaseUnits: bigint, limits: TaskV2Limits, untouched?: string): void;
30
+ //# sourceMappingURL=v2-limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2-limits.d.ts","sourceRoot":"","sources":["../../src/tasks/v2-limits.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAOzC,OAAO,EAA+B,KAAK,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE7F,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,WAAW,CAAC;IACnB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,KACf,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;AAQvC;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,YAAY,CAAC;IAC1C,oBAAoB,CAAC,EAAE,0BAA0B,CAAC;IAClD,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAyCpC;AAED,8EAA8E;AAC9E,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,YAAY,EACpB,SAAS,SAA2C,GACnD,IAAI,CAKN"}
@@ -0,0 +1,102 @@
1
+ import { type Abi, type Address, type Hex, type PublicClient } from "viem";
2
+ import { z } from "zod";
3
+ import { type TasksV2Deployment } from "./v2-trust.js";
4
+ import { taskV2IntentSchema, type TaskV2Action, type TaskV2Consent, type TaskV2Operation, type TaskV2Prepared } from "./v2-write.js";
5
+ import type { TasksChainOptions } from "./chain.js";
6
+ import type { GetOrderResponse } from "./types.js";
7
+ /** IEscrowV2.Terms as EscrowV2Base.terms() returns it and the factory takes it. */
8
+ declare const escrowTermsSchema: z.ZodObject<{
9
+ shape: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>, z.ZodNumber>;
10
+ poster: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
11
+ worker: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
12
+ termsHash: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
13
+ offerTtl: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
14
+ reviewWindow: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
15
+ choiceWindow: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
16
+ bountyDeadline: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
17
+ objectionWindow: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
18
+ workerBondBp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>, z.ZodNumber>;
19
+ feeBp: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>, z.ZodNumber>;
20
+ winners: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt]>, z.ZodTransform<number, number | bigint>>, z.ZodNumber>;
21
+ rewardPerWinner: z.ZodPipe<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodTransform<bigint, string | number | bigint>>;
22
+ }, z.core.$strip>;
23
+ export type V2EscrowTerms = z.output<typeof escrowTermsSchema>;
24
+ export declare const v2GuardFailure: (message: string) => never;
25
+ export declare function v2Read(rpc: PublicClient, contract: Address, abi: Abi, functionName: string, args?: readonly unknown[]): Promise<unknown>;
26
+ export type VerifiedV2Target = {
27
+ chainId: number;
28
+ pin: TasksV2Deployment;
29
+ rpc: PublicClient;
30
+ escrow: Address;
31
+ factory: Address;
32
+ pool: boolean;
33
+ /** A BountyEscrowV2 clone (task shape 1). */
34
+ bounty: boolean;
35
+ /** The clone ABI every participant step on this target decodes against. */
36
+ abi: Abi;
37
+ poster: Address;
38
+ worker?: Address;
39
+ total: bigint;
40
+ feeBp: number;
41
+ termsHash: Hex;
42
+ /** Verified escrow terms: the registered clone's terms(), or accepted creation terms. */
43
+ terms?: V2EscrowTerms;
44
+ milestones: Array<{
45
+ amount: bigint;
46
+ deadline: bigint;
47
+ status: number;
48
+ }>;
49
+ /** Exact factory prediction inputs (predictEscrow / predictBountyEscrow / predictPool). */
50
+ creationArgs?: readonly unknown[];
51
+ };
52
+ export declare function acceptedV2TermsHash(view: GetOrderResponse, pin: TasksV2Deployment, reviewWindow: bigint): `0x${string}`;
53
+ /** The API supplies candidates; only local pins and trusted RPC reads establish trust. */
54
+ export declare function verifyV2Target(options: TasksChainOptions,
55
+ /** A hosted response, or only the hosted chain ID before any plan exists (ballot sealing). */
56
+ current: TaskV2Prepared | {
57
+ chainId: number;
58
+ }, view: GetOrderResponse, action: TaskV2Action | TaskV2Consent, knownTarget?: Address,
59
+ /** The funding is already mined, so no deadline can make it unsafe to sign: nothing is signed. */
60
+ fundingMined?: boolean): Promise<VerifiedV2Target>;
61
+ export declare function verifyV2TypedData(target: VerifiedV2Target, intent: z.infer<typeof taskV2IntentSchema>, action: TaskV2Action | TaskV2Consent, signer: Address, pays: bigint): Promise<undefined>;
62
+ export declare const V2_RESOLVER_ACTIONS: readonly ["open-jury", "draw-jury", "rearm-draw", "resolve", "commit-vote", "reveal-vote"];
63
+ export type TaskV2ResolverAction = Extract<TaskV2Action, {
64
+ action: (typeof V2_RESOLVER_ACTIONS)[number];
65
+ }>;
66
+ export declare function isV2ResolverAction(action: TaskV2Action | TaskV2Consent): action is TaskV2ResolverAction;
67
+ /**
68
+ * The resolver trust chain: DISPUTE_RESOLVER() is an immutable on the clone that
69
+ * verifyV2Target proved against the pinned factory. A local resolver pin must agree.
70
+ */
71
+ export declare function verifiedV2Resolver(target: VerifiedV2Target): Promise<`0x${string}`>;
72
+ /**
73
+ * The agreed worker bond, exactly as EscrowV2.award collects it: the verified clone's
74
+ * totalPrincipal() × its terms().workerBondBp / 10,000. The on-chain rate must equal the
75
+ * accepted order terms; a hosted rate is never used.
76
+ */
77
+ export declare function acceptedV2WorkerBond(target: VerifiedV2Target, view: GetOrderResponse): bigint;
78
+ /** Decode every step, bind selector/arguments/destination to the requested action. */
79
+ export declare function verifyV2Plan(target: VerifiedV2Target, op: TaskV2Operation, action: TaskV2Action | TaskV2Consent, pays: bigint, fundingAuthorization?: {
80
+ message: Record<string, unknown>;
81
+ signature: Hex;
82
+ }): Promise<void>;
83
+ /** The current round of a milestone's dispute, read from the verified escrow's own resolver. */
84
+ export declare function verifiedV2Case(target: VerifiedV2Target, i: number): Promise<{
85
+ resolver: `0x${string}`;
86
+ data: {
87
+ [x: string]: unknown;
88
+ state: number;
89
+ raisedBy: `0x${string}`;
90
+ evidenceDeadline: bigint;
91
+ commitDeadline: bigint;
92
+ revealDeadline: bigint;
93
+ drawBlock: bigint;
94
+ rearms: number;
95
+ };
96
+ }>;
97
+ export declare function verifyUnmatchedSettlement(target: VerifiedV2Target, i: number, dispute: unknown): Promise<{
98
+ gross: bigint;
99
+ toWorker: boolean;
100
+ }>;
101
+ export {};
102
+ //# sourceMappingURL=v2-plan-guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2-plan-guard.d.ts","sourceRoot":"","sources":["../../src/tasks/v2-plan-guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,YAAY,EAGlB,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EACL,kBAAkB,EAElB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAgBnD,mFAAmF;AACnF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;iBAcrB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AA4C/D,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG,KAEhD,CAAC;AAqBF,wBAAsB,MAAM,CAC1B,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,OAAO,EACjB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE,SAAS,OAAO,EAAO,oBAG9B;AACD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,iBAAiB,CAAC;IACvB,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IAC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E,MAAM,EAAE,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;CAAE,CACjD,CAAC;AACF,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,GAAG,aAAa,GACnC,MAAM,IAAI,oBAAoB,CAEhC;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,0BAYhE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,UAQpF;AAED,sFAAsF;AACtF,wBAAsB,YAAY,CAChC,MAAM,EAAE,gBAAgB,EACxB,EAAE,EAAE,eAAe,EACnB,MAAM,EAAE,YAAY,GAAG,aAAa,EACpC,IAAI,EAAE,MAAM,EACZ,oBAAoB,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,SAAS,EAAE,GAAG,CAAA;CAAE,iBAmQ5E;AAWD,gGAAgG;AAChG,wBAAsB,cAAc,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,EAAE,MAAM;;;;;;;;;;;;GAQvE;AAED,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,gBAAgB,EACxB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,OAAO;;;GAqBjB"}
@@ -0,0 +1,154 @@
1
+ import { TaskOperationError } from "./operation-support.js";
2
+ import type { TaskLifecycle, TaskNextAction } from "./v2.js";
3
+ import type { TaskV2Action, TaskV2Consent, TaskV2Operation } from "./v2-write.js";
4
+ /** Reveal calldata carries the vote and its salt; it is signed and broadcast, never echoed. */
5
+ export declare const TASK_V2_REDACTED_CALLDATA = "[redacted: reveal calldata]";
6
+ /** Steps whose hosted request or calldata is tied to a sealed ballot. */
7
+ export declare const TASK_V2_SECRET_STEPS: readonly string[];
8
+ export declare function isTaskV2SecretAction(action: Pick<TaskV2Action | TaskV2Consent, "action">): boolean;
9
+ /**
10
+ * The operation fields a caller may see. Reveal calldata is redacted by its step or by its
11
+ * selector, so a hosted operation that names another step still never shows a ballot.
12
+ */
13
+ export declare function publicTaskV2Operation(op: TaskV2Operation, secret?: boolean): TaskV2Operation;
14
+ /** The public projection of an operation-shaped value, or undefined when it is not one. */
15
+ export declare function publicTaskV2OperationOf(value: unknown, secret?: boolean): {
16
+ id: string;
17
+ kind: "tasks-v2-write";
18
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
19
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
20
+ expectedActor: `0x${string}`;
21
+ transactionHash: `0x${string}` | null;
22
+ plan: {
23
+ version: "work-transaction-plan-v2";
24
+ operationId: string;
25
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
26
+ chainId: number;
27
+ network: string;
28
+ from: `0x${string}`;
29
+ to: `0x${string}`;
30
+ data: `0x${string}`;
31
+ value: "0";
32
+ } | null;
33
+ } | undefined;
34
+ /** Hosted recovery and abandon responses, reduced to their documented fields. */
35
+ export declare function publicTaskV2Recovery(response: {
36
+ orderId: string;
37
+ operation?: TaskV2Operation | null;
38
+ recovered?: boolean;
39
+ scanComplete?: boolean;
40
+ outcome?: "abandoned" | "recovered" | "scanning";
41
+ }, step: string): {
42
+ outcome?: "recovered" | "abandoned" | "scanning" | undefined;
43
+ scanComplete?: boolean | undefined;
44
+ recovered?: boolean | undefined;
45
+ operation?: {
46
+ id: string;
47
+ kind: "tasks-v2-write";
48
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
49
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
50
+ expectedActor: `0x${string}`;
51
+ transactionHash: `0x${string}` | null;
52
+ plan: {
53
+ version: "work-transaction-plan-v2";
54
+ operationId: string;
55
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
56
+ chainId: number;
57
+ network: string;
58
+ from: `0x${string}`;
59
+ to: `0x${string}`;
60
+ data: `0x${string}`;
61
+ value: "0";
62
+ } | null;
63
+ } | null | undefined;
64
+ orderId: string;
65
+ };
66
+ /**
67
+ * The documented lifecycle fields (shape, state, substate, amount, due date and each
68
+ * milestone's id, status, amount and due date). Hosted lifecycle and next-action objects are
69
+ * loose on the wire, so a nested unknown field (for example an echoed `debug` with the
70
+ * ballot) would otherwise reach SDK results, CLI JSON and MCP results.
71
+ */
72
+ export declare function publicTaskLifecycle(value: unknown): TaskLifecycle | null;
73
+ /** The documented next-action fields (action, amount, due date); nothing else is copied. */
74
+ export declare function publicTaskNextAction(value: unknown): TaskNextAction | null;
75
+ /** The public lifecycle and next action of a hosted order view. */
76
+ export declare function publicTaskV2Progress(view: {
77
+ lifecycle?: unknown;
78
+ nextAction?: unknown;
79
+ workOrder?: {
80
+ lifecycle?: unknown;
81
+ nextAction?: unknown;
82
+ };
83
+ }): {
84
+ lifecycle: {
85
+ [x: string]: unknown;
86
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
87
+ milestones: {
88
+ [x: string]: unknown;
89
+ id: string;
90
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
91
+ amountBaseUnits: string;
92
+ dueAt?: string | undefined;
93
+ cause?: number | undefined;
94
+ disputed?: boolean | undefined;
95
+ disputeWinner?: number | undefined;
96
+ summary?: string | undefined;
97
+ }[];
98
+ shape: "task";
99
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
100
+ cause?: number | undefined;
101
+ disputed?: boolean | undefined;
102
+ disputeWinner?: number | undefined;
103
+ summary?: string | undefined;
104
+ } | {
105
+ [x: string]: unknown;
106
+ shape: "bounty";
107
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
108
+ amountBaseUnits?: string | undefined;
109
+ dueAt?: string | undefined;
110
+ } | {
111
+ [x: string]: unknown;
112
+ shape: "pool";
113
+ state: "Draft" | "Open" | "Paused" | "Closed";
114
+ } | null;
115
+ nextAction: {
116
+ [x: string]: unknown;
117
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
118
+ amountBaseUnits?: string | undefined;
119
+ dueAt?: string | undefined;
120
+ } | null;
121
+ };
122
+ /**
123
+ * Every failure of a hosted call during recovery or abandon. The caller-supplied step does
124
+ * not decide sensitivity: the operation behind it may be a reveal whatever step is named, and
125
+ * a hosted error (or a transport error quoting the response) may echo the prepared request.
126
+ * Only the HTTP status survives; the code is fixed per path.
127
+ */
128
+ export declare function taskV2RecoveryHostedError(error: unknown, step: string): TaskOperationError;
129
+ /**
130
+ * A hosted error on a vote step may echo the request, so neither its code nor its message is
131
+ * copied: the caller gets one fixed code and message, plus the HTTP status when there is one.
132
+ */
133
+ export declare function taskV2VoteHostedError(error: unknown): TaskOperationError;
134
+ export declare const TASK_V2_REDACTED = "[redacted]";
135
+ /**
136
+ * A hosted read (plain `show` and `status`) with every unrevealed ballot removed, at any depth:
137
+ * - every `salt` key;
138
+ * - inside a commit or reveal vote step, operation or request, its calldata (`data`) and its
139
+ * ballot fields (outcome, toWorker, salt, vote, ballot), and any reveal calldata string;
140
+ * - outside the chain's `v2State`, any string that quotes a ballot key (it becomes
141
+ * `[redacted]`), and the outcome and toWorker of a ballot-shaped object.
142
+ * Revealed votes in `v2State` are public chain data and are kept; so is everything else,
143
+ * including ordinary 32-byte values such as transaction hashes.
144
+ */
145
+ export declare function redactTaskV2Ballots<T>(value: T): T;
146
+ /**
147
+ * One hosted call of a plain `show` or `status` read. A hosted error, or a transport error
148
+ * quoting the response, may echo a prepared vote: a message with a 32-byte hex run or a ballot
149
+ * word (outcome, toWorker, ballot, salt, vote) is replaced by a fixed message with only the
150
+ * HTTP status, and a server code that is not short snake case is dropped (the caller then uses
151
+ * the fixed `http_<status>` code), before the usual error mapping runs on status and code.
152
+ */
153
+ export declare function taskReadWithoutBallots<T>(verb: string, call: () => Promise<T>): Promise<T>;
154
+ //# sourceMappingURL=v2-public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2-public.d.ts","sourceRoot":"","sources":["../../src/tasks/v2-public.ts"],"names":[],"mappings":"AAUA,OAAO,EAAkB,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAElF,+FAA+F;AAC/F,eAAO,MAAM,yBAAyB,gCAAgC,CAAC;AACvE,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAyC,CAAC;AAK5F,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,GAAG,aAAa,EAAE,QAAQ,CAAC,WAExF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,eAAe,EAAE,MAAM,UAAQ,GAAG,eAAe,CA2B1F;AAwBD,2FAA2F;AAC3F,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,UAAQ;;;;;;;;;;;;;;;;;;cAKrE;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE;IACR,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,UAAU,CAAC;CAClD,EACD,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;EAcb;AAyDD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,IAAI,CA4BxE;AAED,4FAA4F;AAC5F,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,IAAI,CAQ1E;AAED,mEAAmE;AACnE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKA;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAQrE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,sBAOnD;AAsCD,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAE7C;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAuBlD;AAUD;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAuChG"}
@@ -0,0 +1,27 @@
1
+ import { type Address } from "viem";
2
+ export type TasksV2Deployment = {
3
+ escrowFactoryV2: Address;
4
+ /** DisputeResolverV3 pin; jury plans must also match the verified clone's DISPUTE_RESOLVER(). */
5
+ disputeResolverV3: Address;
6
+ bountyPoolFactoryV1: Address;
7
+ usdc: Address;
8
+ usdcName: string;
9
+ usdcVersion: string;
10
+ offerTtlSeconds?: number;
11
+ reviewWindowSeconds?: number;
12
+ evidenceWindowSeconds?: number;
13
+ choiceWindowSeconds?: number;
14
+ };
15
+ export type TasksV2DeploymentOverrides = Partial<Record<number, TasksV2Deployment>>;
16
+ /** Verified Tasks V2 deployment on Base mainnet (chain 8453), audited at tasks-v2-audit-3.
17
+ * All SDK, CLI and MCP trust checks use this complete tuple. Other chains require
18
+ * an explicit local override. See docs/tasks.md for the deployed contracts.
19
+ */
20
+ export declare const TRUSTED_TASKS_V2_DEPLOYMENTS: Readonly<TasksV2DeploymentOverrides>;
21
+ /** All overrides are local operator decisions, never hosted readiness fields. */
22
+ export declare function getTrustedTasksV2Deployment(chainId: number, options?: {
23
+ overrides?: TasksV2DeploymentOverrides;
24
+ env?: NodeJS.ProcessEnv;
25
+ notice?: (message: string) => void;
26
+ }): TasksV2Deployment;
27
+ //# sourceMappingURL=v2-trust.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2-trust.d.ts","sourceRoot":"","sources":["../../src/tasks/v2-trust.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAG7D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,iGAAiG;IACjG,iBAAiB,EAAE,OAAO,CAAC;IAC3B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,0BAA0B,CAa7E,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;IACP,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B,GACL,iBAAiB,CA2FnB"}