@blocklet/sdk 1.16.52 → 1.16.53-beta-20251009-113612-7a16b6a0

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.
@@ -3,7 +3,8 @@ import { LOGIN_PROVIDER } from '@blocklet/constant';
3
3
  type PartialDeep<T> = {
4
4
  [K in keyof T]?: T[K] extends object ? PartialDeep<T[K]> : T[K];
5
5
  };
6
- type OmitTeamDid<T> = PartialDeep<Omit<T, 'teamDid' | 'did'>>;
6
+ type OmitTeamDid<T> = PartialDeep<Omit<T, 'teamDid'>>;
7
+ type OmitDid<T> = PartialDeep<Omit<T, 'did'>>;
7
8
  type RequestHeaders = {
8
9
  headers: {
9
10
  cookie: string;
@@ -90,7 +91,7 @@ interface BlockletService {
90
91
  getOrgResource(params: OmitTeamDid<Client.RequestGetOrgResourceInput>): Promise<Client.ResponseGetOrgResource>;
91
92
  addOrgResource(params: OmitTeamDid<Client.RequestAddOrgResourceInput>): Promise<Client.ResponseOrgResourceOperation>;
92
93
  migrateOrgResource(params: OmitTeamDid<Client.RequestMigrateOrgResourceInput>): Promise<Client.ResponseOrgResourceOperation>;
93
- configBlocklet(params: OmitTeamDid<Client.RequestConfigBlockletInput>): Promise<Client.ResponseBlocklet>;
94
- configNavigations(params: OmitTeamDid<Client.RequestConfigNavigationsInput>): Promise<Client.ResponseBlocklet>;
94
+ configBlocklet(params: OmitDid<Client.RequestConfigBlockletInput>): Promise<Client.ResponseBlocklet>;
95
+ configNavigations(params: OmitDid<Client.RequestConfigNavigationsInput>): Promise<Client.ResponseBlocklet>;
95
96
  }
96
97
  export = BlockletService;
@@ -78,6 +78,7 @@ class BlockletClient extends server_js_1.default {
78
78
  const headers = super._getAuthHeaders();
79
79
  // BLOCKLET_DID is always same as BLOCKLET_APP_PID in structV2 application
80
80
  headers['x-access-blocklet'] = process.env.BLOCKLET_DID;
81
+ headers['x-access-component'] = process.env.BLOCKLET_COMPONENT_DID;
81
82
  return headers;
82
83
  }
83
84
  }
@@ -207,7 +208,7 @@ class BlockletService {
207
208
  updatePermission: (fn) => (name, { description }) => fn({ input: { permission: (0, pickBy_1.default)({ name, description }, isNotNullOrUndefined), teamDid } }),
208
209
  deletePermission: (fn) => (name) => fn({ input: { name, teamDid } }),
209
210
  hasPermission: (fn) => (role, permission) => fn({ input: { teamDid, role, permission } }),
210
- getBlocklet: (fn) => (attachRuntimeInfo = false, useCache = true) => fn({ input: { did: teamDid, attachRuntimeInfo, useCache } }, { ignoreFields: ['blocklet.settings.navigations'] }),
211
+ getBlocklet: (fn) => (attachRuntimeInfo = false, useCache = true) => fn({ input: { did: teamDid, attachRuntimeInfo, useCache } }),
211
212
  createAccessKey: (fn) => (params) => fn({
212
213
  input: {
213
214
  authType: 'simple',
package/lib/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare const version = "1.16.52";
1
+ declare const version = "1.16.53";
2
2
  export { version };
3
3
  declare const _default: {
4
4
  version: string;
package/lib/version.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- const version = '1.16.52';
4
+ const version = '1.16.53';
5
5
  exports.version = version;
6
6
  exports.default = { version };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.52",
6
+ "version": "1.16.53-beta-20251009-113612-7a16b6a0",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -27,18 +27,18 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/constant": "1.16.52",
31
- "@abtnode/db-cache": "1.16.52",
32
- "@abtnode/util": "1.16.52",
30
+ "@abtnode/constant": "1.16.53-beta-20251009-113612-7a16b6a0",
31
+ "@abtnode/db-cache": "1.16.53-beta-20251009-113612-7a16b6a0",
32
+ "@abtnode/util": "1.16.53-beta-20251009-113612-7a16b6a0",
33
33
  "@arcblock/did": "1.25.6",
34
34
  "@arcblock/did-connect-js": "1.25.6",
35
35
  "@arcblock/jwt": "1.25.6",
36
36
  "@arcblock/ws": "1.25.6",
37
- "@blocklet/constant": "1.16.52",
38
- "@blocklet/env": "1.16.52",
37
+ "@blocklet/constant": "1.16.53-beta-20251009-113612-7a16b6a0",
38
+ "@blocklet/env": "1.16.53-beta-20251009-113612-7a16b6a0",
39
39
  "@blocklet/error": "^0.2.5",
40
- "@blocklet/meta": "1.16.52",
41
- "@blocklet/server-js": "1.16.52",
40
+ "@blocklet/meta": "1.16.53-beta-20251009-113612-7a16b6a0",
41
+ "@blocklet/server-js": "1.16.53-beta-20251009-113612-7a16b6a0",
42
42
  "@blocklet/theme": "^3.1.45",
43
43
  "@did-connect/authenticator": "^2.2.8",
44
44
  "@did-connect/handler": "^2.2.8",
@@ -85,5 +85,5 @@
85
85
  "ts-node": "^10.9.1",
86
86
  "typescript": "^5.6.3"
87
87
  },
88
- "gitHead": "80c999e25b5395854cc7f8860f54b34c6b5cf1f4"
88
+ "gitHead": "cb28aceba798cdfe4073bb6df9514c09aa3587ba"
89
89
  }