@rabby-wallet/rabby-api 0.7.15 → 0.7.16

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.ts CHANGED
@@ -362,6 +362,7 @@ export declare class OpenApiService {
362
362
  tx: Tx;
363
363
  push_type: TxPushType;
364
364
  is_gasless: boolean;
365
+ log_id: string;
365
366
  low_gas_deadline?: number;
366
367
  origin?: string;
367
368
  }) => Promise<{
@@ -559,5 +560,13 @@ export declare class OpenApiService {
559
560
  getNodeStatusDetail: (params: {
560
561
  chain_id: string;
561
562
  }) => Promise<NodeStatusDetail>;
563
+ postActionLog: (body: {
564
+ id: string;
565
+ type: 'tx' | 'typed_data' | 'text';
566
+ rules: {
567
+ id: string;
568
+ level: string | null;
569
+ }[];
570
+ }) => Promise<any>;
562
571
  }
563
572
  export {};
package/dist/index.js CHANGED
@@ -970,6 +970,10 @@ export class OpenApiService {
970
970
  const { data } = yield this.request.get('/v1/node', { params });
971
971
  return data;
972
972
  });
973
+ this.postActionLog = (body) => __awaiter(this, void 0, void 0, function* () {
974
+ const { data } = yield this.request.post('/v1/engine/action/log', body);
975
+ return data;
976
+ });
973
977
  if (store instanceof Promise) {
974
978
  store.then((resolvedStore) => {
975
979
  this.store = resolvedStore;
package/dist/types.d.ts CHANGED
@@ -903,6 +903,7 @@ export interface ParseTxResponse {
903
903
  };
904
904
  };
905
905
  };
906
+ log_id: string;
906
907
  }
907
908
  export interface CollectionWithFloorPrice {
908
909
  id: string;
@@ -999,6 +1000,7 @@ export interface ParseTypedDataResponse {
999
1000
  expire_at?: number;
1000
1001
  data: SellNFTOrderAction | BuyNFTOrderAction | SwapTokenOrderAction | PermitAction | Permit2Action | SignMultiSigActions | CreateKeyAction | VerifyAddressAction | BatchSellNFTOrderAction | BatchPermit2Action | CreateCoboSafeAction | SubmitSafeRoleModificationAction | SubmitDelegatedAddressModificationAction | SubmitTokenApprovalModificationAction | SendAction | SwapOrderAction | RevokeTokenApproveAction | ApproveNFTAction;
1001
1002
  } | null;
1003
+ log_id: string;
1002
1004
  }
1003
1005
  export declare type TextActionName = 'create_key' | 'verify_address';
1004
1006
  export interface CreateKeyAction {
@@ -1024,6 +1026,7 @@ export interface ParseTextResponse {
1024
1026
  type: TextActionName;
1025
1027
  data: CreateKeyAction | VerifyAddressAction;
1026
1028
  } | null;
1029
+ log_id: string;
1027
1030
  }
1028
1031
  export declare type TxPushType = 'default' | 'low_gas' | 'mev';
1029
1032
  export interface TxRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.7.15",
3
+ "version": "0.7.16",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [