@arcblock/did-connect-js 1.29.5 → 1.29.7

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.
@@ -196,12 +196,12 @@ declare class WalletAuthenticator extends BaseAuthenticator {
196
196
  */
197
197
  verify(data: any, locale?: string, enforceTimestamp?: boolean): Promise<{
198
198
  token: any;
199
- userDid: any;
199
+ userDid: string;
200
200
  userPk: any;
201
- claims: Jwt.JwtBody;
202
- action: Jwt.JwtBody;
203
- challenge: Jwt.JwtBody;
204
- timestamp: Jwt.JwtBody;
201
+ claims: any;
202
+ action: any;
203
+ challenge: any;
204
+ timestamp: string;
205
205
  }>;
206
206
  genRequestedClaims({
207
207
  claims,
@@ -232,7 +232,7 @@ declare class WalletAuthenticator extends BaseAuthenticator {
232
232
  }): Promise<{
233
233
  type: string;
234
234
  description: any;
235
- origin: any;
235
+ origin: string;
236
236
  typeUrl: any;
237
237
  display: string;
238
238
  method: any;
@@ -254,7 +254,7 @@ declare class WalletAuthenticator extends BaseAuthenticator {
254
254
  }): Promise<{
255
255
  type: string;
256
256
  description: any;
257
- partialTx: any;
257
+ partialTx: string;
258
258
  display: string;
259
259
  requirement: any;
260
260
  chainInfo: any;
package/esm/package.mjs CHANGED
@@ -105,7 +105,8 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
105
105
  "test": "bun test",
106
106
  "coverage": "npm run test -- --coverage",
107
107
  "build": "tsdown",
108
- "build:watch": "tsdown -w"
108
+ "build:watch": "tsdown -w",
109
+ "clean": "rm -rf lib esm"
109
110
  },
110
111
  "resolutions": { "tweetnacl": "1.0.3" },
111
112
  "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e"
@@ -1,8 +1,9 @@
1
1
  import { ClaimsSchema } from "./claims.mjs";
2
+ import * as joi0 from "joi";
2
3
 
3
4
  //#region src/schema/index.d.ts
4
- declare const chainInfo: any;
5
- declare const appInfo: any;
5
+ declare const chainInfo: joi0.ObjectSchema<any>;
6
+ declare const appInfo: joi0.ObjectSchema<any>;
6
7
  declare const claims: ClaimsSchema;
7
8
  //#endregion
8
9
  export { appInfo, chainInfo, claims };
@@ -196,12 +196,12 @@ declare class WalletAuthenticator extends BaseAuthenticator {
196
196
  */
197
197
  verify(data: any, locale?: string, enforceTimestamp?: boolean): Promise<{
198
198
  token: any;
199
- userDid: any;
199
+ userDid: string;
200
200
  userPk: any;
201
- claims: Jwt.JwtBody;
202
- action: Jwt.JwtBody;
203
- challenge: Jwt.JwtBody;
204
- timestamp: Jwt.JwtBody;
201
+ claims: any;
202
+ action: any;
203
+ challenge: any;
204
+ timestamp: string;
205
205
  }>;
206
206
  genRequestedClaims({
207
207
  claims,
@@ -232,7 +232,7 @@ declare class WalletAuthenticator extends BaseAuthenticator {
232
232
  }): Promise<{
233
233
  type: string;
234
234
  description: any;
235
- origin: any;
235
+ origin: string;
236
236
  typeUrl: any;
237
237
  display: string;
238
238
  method: any;
@@ -254,7 +254,7 @@ declare class WalletAuthenticator extends BaseAuthenticator {
254
254
  }): Promise<{
255
255
  type: string;
256
256
  description: any;
257
- partialTx: any;
257
+ partialTx: string;
258
258
  display: string;
259
259
  requirement: any;
260
260
  chainInfo: any;
package/lib/package.cjs CHANGED
@@ -105,7 +105,8 @@ var require_package = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((e
105
105
  "test": "bun test",
106
106
  "coverage": "npm run test -- --coverage",
107
107
  "build": "tsdown",
108
- "build:watch": "tsdown -w"
108
+ "build:watch": "tsdown -w",
109
+ "clean": "rm -rf lib esm"
109
110
  },
110
111
  "resolutions": { "tweetnacl": "1.0.3" },
111
112
  "gitHead": "87990c8b5e215107fc587c1ced0d6b3e2cd2483e"
@@ -1,8 +1,9 @@
1
1
  import { ClaimsSchema } from "./claims.cjs";
2
+ import * as joi0 from "joi";
2
3
 
3
4
  //#region src/schema/index.d.ts
4
- declare const chainInfo: any;
5
- declare const appInfo: any;
5
+ declare const chainInfo: joi0.ObjectSchema<any>;
6
+ declare const appInfo: joi0.ObjectSchema<any>;
6
7
  declare const claims: ClaimsSchema;
7
8
  //#endregion
8
9
  export { appInfo, chainInfo, claims };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@arcblock/did-connect-js",
3
3
  "description": "Helper function to setup DID Connect support on a node.js web server",
4
4
  "type": "module",
5
- "version": "1.29.5",
5
+ "version": "1.29.7",
6
6
  "author": {
7
7
  "name": "wangshijun",
8
8
  "email": "shijun@arcblock.io",
@@ -19,13 +19,13 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@arcblock/did": "1.29.5",
23
- "@arcblock/jwt": "1.29.5",
24
- "@arcblock/validator": "1.29.5",
25
- "@ocap/client": "1.29.5",
26
- "@ocap/mcrypto": "1.29.5",
27
- "@ocap/util": "1.29.5",
28
- "@ocap/wallet": "1.29.5",
22
+ "@arcblock/did": "1.29.7",
23
+ "@arcblock/jwt": "1.29.7",
24
+ "@arcblock/validator": "1.29.7",
25
+ "@ocap/client": "1.29.7",
26
+ "@ocap/mcrypto": "1.29.7",
27
+ "@ocap/util": "1.29.7",
28
+ "@ocap/wallet": "1.29.7",
29
29
  "cors": "^2.8.5",
30
30
  "debug": "^4.4.3",
31
31
  "json-stable-stringify": "^1.0.1",
@@ -36,7 +36,7 @@
36
36
  "devDependencies": {
37
37
  "@arcblock/did-agent-storage-memory": "^1.8.0",
38
38
  "@arcblock/did-connect-storage-memory": "^1.8.0",
39
- "@ocap/e2e-test": "1.29.5",
39
+ "@ocap/e2e-test": "1.29.7",
40
40
  "@types/cors": "^2.8.17",
41
41
  "@types/debug": "^4.1.12",
42
42
  "@types/json-stable-stringify": "^1.0.36",
@@ -117,7 +117,8 @@
117
117
  "test": "bun test",
118
118
  "coverage": "npm run test -- --coverage",
119
119
  "build": "tsdown",
120
- "build:watch": "tsdown -w"
120
+ "build:watch": "tsdown -w",
121
+ "clean": "rm -rf lib esm"
121
122
  },
122
123
  "resolutions": {
123
124
  "tweetnacl": "1.0.3"