@blocklet/js-sdk 1.16.33-beta-20241029-115916-f749f0cc → 1.16.33-beta-20241030-102817-90ad7cd5
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 +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +3 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -25,6 +25,12 @@ type NotificationConfig = {
|
|
|
25
25
|
type PrivacyConfig = {
|
|
26
26
|
[key: string]: boolean;
|
|
27
27
|
};
|
|
28
|
+
interface SpaceGateway {
|
|
29
|
+
did: string;
|
|
30
|
+
name: string;
|
|
31
|
+
url: string;
|
|
32
|
+
endpoint: string;
|
|
33
|
+
}
|
|
28
34
|
declare class AuthService {
|
|
29
35
|
private api;
|
|
30
36
|
constructor({ api }: {
|
|
@@ -52,6 +58,9 @@ declare class AuthService {
|
|
|
52
58
|
locale?: string;
|
|
53
59
|
inviter?: string;
|
|
54
60
|
}): Promise<any>;
|
|
61
|
+
updateDidSpace({ spaceGateway }: {
|
|
62
|
+
spaceGateway: SpaceGateway;
|
|
63
|
+
}): Promise<void>;
|
|
55
64
|
/**
|
|
56
65
|
*
|
|
57
66
|
* 指定要退出登录的设备 id
|
|
@@ -220,4 +229,4 @@ declare function createAxios(config?: AxiosRequestConfig, requestParams?: Reques
|
|
|
220
229
|
declare function createFetch(options?: RequestInit, requestParams?: RequestParams): (input: string | Request | URL, options?: RequestInit) => Promise<Response>;
|
|
221
230
|
declare const getBlockletSDK: () => BlockletSDK;
|
|
222
231
|
|
|
223
|
-
export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch, getBlockletSDK, getCSRFToken };
|
|
232
|
+
export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, type SpaceGateway, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch, getBlockletSDK, getCSRFToken };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ type NotificationConfig = {
|
|
|
25
25
|
type PrivacyConfig = {
|
|
26
26
|
[key: string]: boolean;
|
|
27
27
|
};
|
|
28
|
+
interface SpaceGateway {
|
|
29
|
+
did: string;
|
|
30
|
+
name: string;
|
|
31
|
+
url: string;
|
|
32
|
+
endpoint: string;
|
|
33
|
+
}
|
|
28
34
|
declare class AuthService {
|
|
29
35
|
private api;
|
|
30
36
|
constructor({ api }: {
|
|
@@ -52,6 +58,9 @@ declare class AuthService {
|
|
|
52
58
|
locale?: string;
|
|
53
59
|
inviter?: string;
|
|
54
60
|
}): Promise<any>;
|
|
61
|
+
updateDidSpace({ spaceGateway }: {
|
|
62
|
+
spaceGateway: SpaceGateway;
|
|
63
|
+
}): Promise<void>;
|
|
55
64
|
/**
|
|
56
65
|
*
|
|
57
66
|
* 指定要退出登录的设备 id
|
|
@@ -220,4 +229,4 @@ declare function createAxios(config?: AxiosRequestConfig, requestParams?: Reques
|
|
|
220
229
|
declare function createFetch(options?: RequestInit, requestParams?: RequestParams): (input: string | Request | URL, options?: RequestInit) => Promise<Response>;
|
|
221
230
|
declare const getBlockletSDK: () => BlockletSDK;
|
|
222
231
|
|
|
223
|
-
export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch, getBlockletSDK, getCSRFToken };
|
|
232
|
+
export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, type SpaceGateway, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch, getBlockletSDK, getCSRFToken };
|
package/dist/index.mjs
CHANGED
|
@@ -62,6 +62,9 @@ class AuthService {
|
|
|
62
62
|
const { data } = await this.api.put("/api/user/profile", { locale, inviter });
|
|
63
63
|
return data;
|
|
64
64
|
}
|
|
65
|
+
async updateDidSpace({ spaceGateway }) {
|
|
66
|
+
await this.api.put(`/api/user/updateDidSpace`, { spaceGateway });
|
|
67
|
+
}
|
|
65
68
|
/**
|
|
66
69
|
*
|
|
67
70
|
* 指定要退出登录的设备 id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/js-sdk",
|
|
3
|
-
"version": "1.16.33-beta-
|
|
3
|
+
"version": "1.16.33-beta-20241030-102817-90ad7cd5",
|
|
4
4
|
"main": "dist/index.mjs",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"watch": "nodemon -w src -e ts -x 'npm run build'"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@abtnode/constant": "1.16.33-beta-
|
|
36
|
-
"@blocklet/meta": "1.16.33-beta-
|
|
35
|
+
"@abtnode/constant": "1.16.33-beta-20241030-102817-90ad7cd5",
|
|
36
|
+
"@blocklet/meta": "1.16.33-beta-20241030-102817-90ad7cd5",
|
|
37
37
|
"axios": "^1.7.5",
|
|
38
38
|
"is-url": "^1.2.4",
|
|
39
39
|
"js-cookie": "^3.0.5",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"unbuild": "^2.0.0",
|
|
46
46
|
"vitest": "^2.0.5"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "13346a64f33be7432253dc7735f3d6f52878e9ac"
|
|
49
49
|
}
|