@iotexproject/kit 0.1.78 → 0.1.79

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 (2) hide show
  1. package/dist/index.d.ts +45 -1
  2. package/package.json +2 -1
package/dist/index.d.ts CHANGED
@@ -8997,12 +8997,56 @@ declare class Apis extends BaseDBModule {
8997
8997
  id: string;
8998
8998
  name: string;
8999
8999
  }[]>;
9000
- createApi({ apiId }: {
9000
+ createApi({ apiId, message, signature }: {
9001
9001
  apiId: string;
9002
+ message: string;
9003
+ signature: string;
9002
9004
  }): Promise<{
9003
9005
  keyId: string;
9004
9006
  key: string;
9005
9007
  }>;
9008
+ getApiKeysByExternalId({ apiId, externalId }: {
9009
+ apiId: string;
9010
+ externalId: string;
9011
+ }): Promise<{
9012
+ keys: {
9013
+ "id": string;
9014
+ "start": string;
9015
+ "workspaceId": string;
9016
+ "apiId": string;
9017
+ "name": string;
9018
+ "ownerId": string;
9019
+ "meta": {
9020
+ "roles": string[];
9021
+ "stripeCustomerId": string;
9022
+ };
9023
+ "createdAt": number;
9024
+ "updatedAt": number;
9025
+ "expires": number;
9026
+ "remaining": 1000;
9027
+ "refill": {
9028
+ "interval": string;
9029
+ "amount": number;
9030
+ "refillDay": number;
9031
+ };
9032
+ "ratelimit": {
9033
+ "async": boolean;
9034
+ "limit": number;
9035
+ "duration": number;
9036
+ };
9037
+ "roles": string[];
9038
+ "permissions": string[];
9039
+ "enabled": boolean;
9040
+ "plaintext": string;
9041
+ "identity": {
9042
+ "id": string;
9043
+ "externalId": string;
9044
+ "meta": {};
9045
+ };
9046
+ }[];
9047
+ cursor: string;
9048
+ total: number;
9049
+ }>;
9006
9050
  }
9007
9051
  declare const modules$1: {
9008
9052
  account: Account;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.1.78",
5
+ "version": "0.1.79",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -61,6 +61,7 @@
61
61
  "pg-format": "^1.0.4",
62
62
  "postgres": "^3.4.4",
63
63
  "reflect-metadata": "^0.2.2",
64
+ "siwe": "^3.0.0",
64
65
  "strip-ansi-cjs": "^8.0.0",
65
66
  "underscore": "^1.13.7",
66
67
  "utf8": "^3.0.0",