@virtuals-protocol/acp-node 0.3.0-beta.12 → 0.3.0-beta.14

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.mts CHANGED
@@ -198,8 +198,10 @@ declare class AcpMemo {
198
198
  signedReason?: string | undefined;
199
199
  expiry?: Date | undefined;
200
200
  payableDetails?: PayableDetails | undefined;
201
+ txHash?: `0x${string}` | undefined;
202
+ signedTxHash?: `0x${string}` | undefined;
201
203
  structuredContent: GenericPayload | undefined;
202
- constructor(contractClient: BaseAcpContractClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, senderAddress: Address, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined);
204
+ constructor(contractClient: BaseAcpContractClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, senderAddress: Address, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined, txHash?: `0x${string}` | undefined, signedTxHash?: `0x${string}` | undefined);
203
205
  get payloadType(): PayloadType | undefined;
204
206
  getStructuredContent<T>(): GenericPayload<T> | undefined;
205
207
  create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
@@ -286,7 +288,7 @@ declare class AcpJob {
286
288
  userOpHash: Address;
287
289
  txnHash: Address;
288
290
  }>;
289
- deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, expiredAt?: Date): Promise<{
291
+ deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
290
292
  userOpHash: Address;
291
293
  txnHash: Address;
292
294
  }>;
@@ -295,7 +297,7 @@ declare class AcpJob {
295
297
  userOpHash: Address;
296
298
  txnHash: Address;
297
299
  }>;
298
- createPayableNotification(content: string, amount: FareAmountBase, expiredAt?: Date): Promise<{
300
+ createPayableNotification(content: string, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
299
301
  userOpHash: Address;
300
302
  txnHash: Address;
301
303
  }>;
@@ -579,6 +581,7 @@ declare abstract class BaseAcpContractClient {
579
581
  jobCreatedSignature: string;
580
582
  publicClient: ReturnType<typeof createPublicClient>;
581
583
  constructor(agentWalletAddress: Address, config?: AcpContractConfig);
584
+ protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
582
585
  abstract handleOperation(operations: OperationPayload[]): Promise<{
583
586
  userOpHash: Address;
584
587
  txnHash: Address;
package/dist/index.d.ts CHANGED
@@ -198,8 +198,10 @@ declare class AcpMemo {
198
198
  signedReason?: string | undefined;
199
199
  expiry?: Date | undefined;
200
200
  payableDetails?: PayableDetails | undefined;
201
+ txHash?: `0x${string}` | undefined;
202
+ signedTxHash?: `0x${string}` | undefined;
201
203
  structuredContent: GenericPayload | undefined;
202
- constructor(contractClient: BaseAcpContractClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, senderAddress: Address, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined);
204
+ constructor(contractClient: BaseAcpContractClient, id: number, type: MemoType, content: string, nextPhase: AcpJobPhases, status: AcpMemoStatus, senderAddress: Address, signedReason?: string | undefined, expiry?: Date | undefined, payableDetails?: PayableDetails | undefined, txHash?: `0x${string}` | undefined, signedTxHash?: `0x${string}` | undefined);
203
205
  get payloadType(): PayloadType | undefined;
204
206
  getStructuredContent<T>(): GenericPayload<T> | undefined;
205
207
  create(jobId: number, isSecured?: boolean): Promise<OperationPayload>;
@@ -286,7 +288,7 @@ declare class AcpJob {
286
288
  userOpHash: Address;
287
289
  txnHash: Address;
288
290
  }>;
289
- deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, expiredAt?: Date): Promise<{
291
+ deliverPayable(deliverable: DeliverablePayload, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
290
292
  userOpHash: Address;
291
293
  txnHash: Address;
292
294
  }>;
@@ -295,7 +297,7 @@ declare class AcpJob {
295
297
  userOpHash: Address;
296
298
  txnHash: Address;
297
299
  }>;
298
- createPayableNotification(content: string, amount: FareAmountBase, expiredAt?: Date): Promise<{
300
+ createPayableNotification(content: string, amount: FareAmountBase, skipFee?: boolean, expiredAt?: Date): Promise<{
299
301
  userOpHash: Address;
300
302
  txnHash: Address;
301
303
  }>;
@@ -579,6 +581,7 @@ declare abstract class BaseAcpContractClient {
579
581
  jobCreatedSignature: string;
580
582
  publicClient: ReturnType<typeof createPublicClient>;
581
583
  constructor(agentWalletAddress: Address, config?: AcpContractConfig);
584
+ protected validateSessionKeyOnChain(sessionSignerAddress: Address, sessionEntityKeyId: number): Promise<void>;
582
585
  abstract handleOperation(operations: OperationPayload[]): Promise<{
583
586
  userOpHash: Address;
584
587
  txnHash: Address;