@human.tech/waap-sdk 1.0.5-staging.0 → 1.1.0

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.
@@ -1,4 +1,4 @@
1
- import { CustomConfig, ProjectConfig, CredentialType } from '@human.tech/waap-interface-core';
1
+ import { CustomConfig, ProjectConfig, CredentialType, RequestPermissionTokenParams } from '@human.tech/waap-interface-core';
2
2
  export type ArrayOneOrMore<T> = {
3
3
  0: T;
4
4
  } & Array<T>;
@@ -6,6 +6,7 @@ export interface RequestArguments {
6
6
  method: string;
7
7
  params?: unknown[] | object;
8
8
  async?: boolean;
9
+ withPT?: boolean;
9
10
  }
10
11
  export interface EthereumProviderInterface {
11
12
  enable(): Promise<unknown>;
@@ -23,6 +24,7 @@ export interface SilkEthereumProviderInterface extends EthereumProviderInterface
23
24
  getLoginMethod(): LoginResponse;
24
25
  requestEmail(): Promise<unknown>;
25
26
  requestSBT(type: CredentialType): Promise<unknown>;
27
+ requestPermissionToken(params: RequestPermissionTokenParams): Promise<unknown>;
26
28
  toggleDarkMode(): Promise<void>;
27
29
  }
28
30
  export interface InitSilkOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@human.tech/waap-sdk",
3
- "version": "1.0.5-staging.0",
3
+ "version": "1.1.0",
4
4
  "description": "SDK for interacting with WaaP",
5
5
  "source": "src/index.ts",
6
6
  "types": "./dist/index.d.ts",
@@ -49,7 +49,8 @@
49
49
  "eslint": "8.38.0",
50
50
  "eslint-plugin-jest": "^27.2.3",
51
51
  "microbundle": "^0.15.1",
52
- "typescript": "^5.0.4"
52
+ "typescript": "^5.0.4",
53
+ "eslint-config-custom": "0.0.0"
53
54
  },
54
55
  "peerDependencies": {
55
56
  "react": ">=16.8.0"
@@ -68,8 +69,8 @@
68
69
  "pino-pretty": "^10.2.0",
69
70
  "zod": "^3.21.4",
70
71
  "zod-validation-error": "^1.3.0",
71
- "@human.tech/waap-constants": "0.0.2",
72
- "@human.tech/waap-interface-core": "0.1.1"
72
+ "@human.tech/waap-constants": "0.0.3",
73
+ "@human.tech/waap-interface-core": "0.1.2"
73
74
  },
74
75
  "scripts": {
75
76
  "build": "microbundle",