@vapi-network/core 0.16.0 → 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.
- package/README.md +1 -1
- package/dist/agent-profile.d.ts +7 -0
- package/dist/agent-profile.d.ts.map +1 -1
- package/dist/api-key.js +4 -0
- package/dist/api-key.js.map +1 -1
- package/dist/backup.js +8 -1
- package/dist/backup.js.map +1 -1
- package/dist/cloud-backup.js +8 -1
- package/dist/cloud-backup.js.map +1 -1
- package/dist/config.d.ts +10 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/index.js +65 -5
- package/dist/index.js.map +2 -2
- package/dist/router-client.js +7 -1
- package/dist/router-client.js.map +1 -1
- package/dist/secret-backend.d.ts +5 -1
- package/dist/secret-backend.d.ts.map +1 -1
- package/dist/secrets.js +6 -1
- package/dist/secrets.js.map +1 -1
- package/dist/support-report.d.ts +1 -1
- package/dist/swarm.d.ts.map +1 -1
- package/dist/tasks/availability.d.ts +21 -0
- package/dist/tasks/availability.d.ts.map +1 -0
- package/dist/tasks/chain.d.ts.map +1 -1
- package/dist/tasks/index.d.ts +2 -0
- package/dist/tasks/index.d.ts.map +1 -1
- package/dist/tasks/operation-support.d.ts +11 -1
- package/dist/tasks/operation-support.d.ts.map +1 -1
- package/dist/tasks/operations.d.ts +12 -12
- package/dist/tasks/operations.d.ts.map +1 -1
- package/dist/tasks/pending-transactions.d.ts +3 -0
- package/dist/tasks/pending-transactions.d.ts.map +1 -1
- package/dist/tasks/post-options.d.ts +10 -0
- package/dist/tasks/post-options.d.ts.map +1 -1
- package/dist/tasks/v2-execution.d.ts +9 -9
- package/dist/tasks/v2-execution.d.ts.map +1 -1
- package/dist/tasks/v2-jury.d.ts +6 -6
- package/dist/tasks/v2-jury.d.ts.map +1 -1
- package/dist/tasks/v2-limits.d.ts +30 -0
- package/dist/tasks/v2-limits.d.ts.map +1 -0
- package/dist/tasks/v2-plan-guard.d.ts +3 -1
- package/dist/tasks/v2-plan-guard.d.ts.map +1 -1
- package/dist/tasks/v2-public.d.ts +2 -2
- package/dist/tasks/v2-public.d.ts.map +1 -1
- package/dist/tasks/v2-write.d.ts +13 -12
- package/dist/tasks/v2-write.d.ts.map +1 -1
- package/dist/tasks/x402-funding.d.ts +4 -4
- package/dist/tasks.js +2078 -1779
- package/dist/tasks.js.map +3 -3
- package/dist/wallet-store.d.ts +14 -1
- package/dist/wallet-store.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/tasks/v2-write.d.ts
CHANGED
|
@@ -279,7 +279,7 @@ export declare const taskV2OperationSchema: z.ZodObject<{
|
|
|
279
279
|
}>;
|
|
280
280
|
expectedActor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
281
281
|
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
282
|
-
plan: z.ZodObject<{
|
|
282
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
283
283
|
version: z.ZodLiteral<"work-transaction-plan-v2">;
|
|
284
284
|
operationId: z.ZodUUID;
|
|
285
285
|
step: z.ZodEnum<{
|
|
@@ -323,7 +323,7 @@ export declare const taskV2OperationSchema: z.ZodObject<{
|
|
|
323
323
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
324
324
|
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
325
325
|
value: z.ZodLiteral<"0">;
|
|
326
|
-
}, z.core.$strip
|
|
326
|
+
}, z.core.$strip>>;
|
|
327
327
|
}, z.core.$strip>;
|
|
328
328
|
export declare const taskV2OperationResponseSchema: z.ZodObject<{
|
|
329
329
|
orderId: z.ZodUUID;
|
|
@@ -373,7 +373,7 @@ export declare const taskV2OperationResponseSchema: z.ZodObject<{
|
|
|
373
373
|
}>;
|
|
374
374
|
expectedActor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
375
375
|
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
376
|
-
plan: z.ZodObject<{
|
|
376
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
377
377
|
version: z.ZodLiteral<"work-transaction-plan-v2">;
|
|
378
378
|
operationId: z.ZodUUID;
|
|
379
379
|
step: z.ZodEnum<{
|
|
@@ -417,7 +417,7 @@ export declare const taskV2OperationResponseSchema: z.ZodObject<{
|
|
|
417
417
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
418
418
|
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
419
419
|
value: z.ZodLiteral<"0">;
|
|
420
|
-
}, z.core.$strip
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
421
|
}, z.core.$strip>;
|
|
422
422
|
}, z.core.$loose>;
|
|
423
423
|
export declare const taskV2RecoverySchema: z.ZodObject<{
|
|
@@ -468,7 +468,7 @@ export declare const taskV2RecoverySchema: z.ZodObject<{
|
|
|
468
468
|
}>;
|
|
469
469
|
expectedActor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
470
470
|
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
471
|
-
plan: z.ZodObject<{
|
|
471
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
472
472
|
version: z.ZodLiteral<"work-transaction-plan-v2">;
|
|
473
473
|
operationId: z.ZodUUID;
|
|
474
474
|
step: z.ZodEnum<{
|
|
@@ -512,7 +512,7 @@ export declare const taskV2RecoverySchema: z.ZodObject<{
|
|
|
512
512
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
513
513
|
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
514
514
|
value: z.ZodLiteral<"0">;
|
|
515
|
-
}, z.core.$strip
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
516
|
}, z.core.$strip>;
|
|
517
517
|
recovered: z.ZodBoolean;
|
|
518
518
|
scanComplete: z.ZodBoolean;
|
|
@@ -570,7 +570,7 @@ export declare const taskV2AbandonSchema: z.ZodObject<{
|
|
|
570
570
|
}>;
|
|
571
571
|
expectedActor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
572
572
|
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
573
|
-
plan: z.ZodObject<{
|
|
573
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
574
574
|
version: z.ZodLiteral<"work-transaction-plan-v2">;
|
|
575
575
|
operationId: z.ZodUUID;
|
|
576
576
|
step: z.ZodEnum<{
|
|
@@ -614,7 +614,7 @@ export declare const taskV2AbandonSchema: z.ZodObject<{
|
|
|
614
614
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
615
615
|
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
616
616
|
value: z.ZodLiteral<"0">;
|
|
617
|
-
}, z.core.$strip
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
618
|
}, z.core.$strip>>;
|
|
619
619
|
}, z.core.$loose>;
|
|
620
620
|
export declare const taskV2TypedDataSchema: z.ZodObject<{
|
|
@@ -726,7 +726,7 @@ export declare const taskV2PreparedSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
726
726
|
}>;
|
|
727
727
|
expectedActor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
728
728
|
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
729
|
-
plan: z.ZodObject<{
|
|
729
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
730
730
|
version: z.ZodLiteral<"work-transaction-plan-v2">;
|
|
731
731
|
operationId: z.ZodUUID;
|
|
732
732
|
step: z.ZodEnum<{
|
|
@@ -770,7 +770,7 @@ export declare const taskV2PreparedSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
770
770
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
771
771
|
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
772
772
|
value: z.ZodLiteral<"0">;
|
|
773
|
-
}, z.core.$strip
|
|
773
|
+
}, z.core.$strip>>;
|
|
774
774
|
}, z.core.$strip>;
|
|
775
775
|
}, z.core.$loose>]>;
|
|
776
776
|
export declare const taskV2SignatureResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -830,7 +830,7 @@ export declare const taskV2SignatureResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
830
830
|
}>;
|
|
831
831
|
expectedActor: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
832
832
|
transactionHash: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
833
|
-
plan: z.ZodObject<{
|
|
833
|
+
plan: z.ZodNullable<z.ZodObject<{
|
|
834
834
|
version: z.ZodLiteral<"work-transaction-plan-v2">;
|
|
835
835
|
operationId: z.ZodUUID;
|
|
836
836
|
step: z.ZodEnum<{
|
|
@@ -874,12 +874,13 @@ export declare const taskV2SignatureResponseSchema: z.ZodUnion<readonly [z.ZodOb
|
|
|
874
874
|
to: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
875
875
|
data: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
|
|
876
876
|
value: z.ZodLiteral<"0">;
|
|
877
|
-
}, z.core.$strip
|
|
877
|
+
}, z.core.$strip>>;
|
|
878
878
|
}, z.core.$strip>;
|
|
879
879
|
}, z.core.$loose>]>;
|
|
880
880
|
export type TaskV2Action = z.infer<typeof taskV2ActionSchema>;
|
|
881
881
|
export type TaskV2Consent = z.infer<typeof taskV2ConsentSchema>;
|
|
882
882
|
export type TaskV2Operation = z.infer<typeof taskV2OperationSchema>;
|
|
883
|
+
export type TaskV2Plan = z.infer<typeof taskV2PlanSchema>;
|
|
883
884
|
export type TaskV2OperationResponse = z.infer<typeof taskV2OperationResponseSchema>;
|
|
884
885
|
export type TaskV2Prepared = z.infer<typeof taskV2PreparedSchema>;
|
|
885
886
|
export type TaskV2ConsentResponse = z.infer<typeof taskV2ConsentResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2-write.d.ts","sourceRoot":"","sources":["../../src/tasks/v2-write.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,iBAAiB,aAAiC,CAAC;AA4ChE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAAyC,CAAC;AAExE,eAAO,MAAM,wBAAwB,qCAGoD,CAAC;AAE1F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA8C7B,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;8BAG9B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkC3B,CAAC;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY4D,CAAC;AAC1F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"v2-write.d.ts","sourceRoot":"","sources":["../../src/tasks/v2-write.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAA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UhC,CAAC;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;iBAK7B,CAAC;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;iBAMtC,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA+D,CAAC;AACjG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGxC,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -23,13 +23,13 @@ export declare function fundTaskWithX402(context: TaskOperationContext, input: {
|
|
|
23
23
|
ok: false;
|
|
24
24
|
declined: true;
|
|
25
25
|
money: import("./money.js").TaskMoney;
|
|
26
|
-
policySource: "defaults" | "agent-profile";
|
|
26
|
+
policySource: "account" | "defaults" | "agent-profile";
|
|
27
27
|
method: "x402";
|
|
28
28
|
} | {
|
|
29
29
|
ok: false;
|
|
30
30
|
approval: true;
|
|
31
31
|
money: import("./money.js").TaskMoney;
|
|
32
|
-
policySource: "defaults" | "agent-profile";
|
|
32
|
+
policySource: "account" | "defaults" | "agent-profile";
|
|
33
33
|
method: "x402";
|
|
34
34
|
} | {
|
|
35
35
|
ok: true;
|
|
@@ -37,13 +37,13 @@ export declare function fundTaskWithX402(context: TaskOperationContext, input: {
|
|
|
37
37
|
settlement: unknown;
|
|
38
38
|
paymentId: string;
|
|
39
39
|
money: import("./money.js").TaskMoney;
|
|
40
|
-
policySource: "defaults" | "agent-profile";
|
|
40
|
+
policySource: "account" | "defaults" | "agent-profile";
|
|
41
41
|
method: "x402";
|
|
42
42
|
} | {
|
|
43
43
|
ok: false;
|
|
44
44
|
reason: "policy.perTask" | "policy.perDay";
|
|
45
45
|
money: import("./money.js").TaskMoney;
|
|
46
|
-
policySource: "defaults" | "agent-profile";
|
|
46
|
+
policySource: "account" | "defaults" | "agent-profile";
|
|
47
47
|
method: "x402";
|
|
48
48
|
} | null>;
|
|
49
49
|
//# sourceMappingURL=x402-funding.d.ts.map
|