@blocklet/sdk 1.16.41-beta-20250318-123609-b48bb2d7 → 1.16.41-beta-20250319-131732-1224cca5

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.
@@ -62,5 +62,6 @@ interface AuthService {
62
62
  getComponent(did: string): Promise<Client.ComponentState>;
63
63
  getTrustedDomains(): Promise<string[]>;
64
64
  getVault(): Promise<string>;
65
+ updateUserAddress(args: OmitTeamDid<Client.RequestUpdateUserAddressInput>): Promise<Client.ResponseUser>;
65
66
  }
66
67
  export = AuthService;
@@ -69,6 +69,8 @@ class AuthService {
69
69
  'updateUserApproval',
70
70
  'updateUserTags',
71
71
  'updateUserExtra',
72
+ // updateUserInfo
73
+ 'updateUserAddress',
72
74
  // tagging
73
75
  'getTags',
74
76
  'createTag',
@@ -19,6 +19,7 @@ declare const sendToUser: (receiver: string | string[], notification: TNotificat
19
19
  keepForOfflineUser?: boolean;
20
20
  locale?: string;
21
21
  channels?: ("app" | "email" | "push" | "webhook")[];
22
+ raw?: boolean;
22
23
  }, pathname?: string, port?: string) => Promise<any>;
23
24
  declare const sendToAppChannel: (channel: string, event: string, notification: TNotificationInput, { appDid, appSk }: TNotificationSender, options?: TSendOptions, port?: string) => Promise<any>;
24
25
  declare const sendToRelay: (topic: string, event: string, data: any, { appDid, appSk }: TNotificationSender, port?: string) => Promise<any>;
@@ -29,6 +30,7 @@ declare const _default: {
29
30
  keepForOfflineUser?: boolean;
30
31
  locale?: string;
31
32
  channels?: ("app" | "email" | "push" | "webhook")[];
33
+ raw?: boolean;
32
34
  }, pathname?: string, port?: string) => Promise<any>;
33
35
  sendToAppChannel: (channel: string, event: string, notification: TNotificationInput, { appDid, appSk }: TNotificationSender, options?: TSendOptions, port?: string) => Promise<any>;
34
36
  sendToRelay: (topic: string, event: string, data: any, { appDid, appSk }: TNotificationSender, port?: string) => Promise<any>;
@@ -71,7 +71,7 @@ const sendToUser = async (receiver, notification, { appDid, appSk, type }, optio
71
71
  if (pathname === 'send-to-mail') {
72
72
  await (0, index_1.validateEmail)(receiver);
73
73
  }
74
- const opt = (0, pick_1.default)(options, ['keepForOfflineUser', 'locale', 'channels']);
74
+ const opt = (0, pick_1.default)(options, ['keepForOfflineUser', 'locale', 'channels', 'raw']);
75
75
  await (0, index_1.validateOption)(opt);
76
76
  if (SERVER_MODE !== NODE_MODES.DEBUG) {
77
77
  await (0, index_1.validateNotification)(notification);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.41-beta-20250318-123609-b48bb2d7",
6
+ "version": "1.16.41-beta-20250319-131732-1224cca5",
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,16 +27,16 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/client": "1.16.41-beta-20250318-123609-b48bb2d7",
31
- "@abtnode/constant": "1.16.41-beta-20250318-123609-b48bb2d7",
32
- "@abtnode/util": "1.16.41-beta-20250318-123609-b48bb2d7",
30
+ "@abtnode/client": "1.16.41-beta-20250319-131732-1224cca5",
31
+ "@abtnode/constant": "1.16.41-beta-20250319-131732-1224cca5",
32
+ "@abtnode/util": "1.16.41-beta-20250319-131732-1224cca5",
33
33
  "@arcblock/did": "1.19.15",
34
34
  "@arcblock/did-auth": "1.19.15",
35
35
  "@arcblock/jwt": "1.19.15",
36
36
  "@arcblock/ws": "1.19.15",
37
- "@blocklet/constant": "1.16.41-beta-20250318-123609-b48bb2d7",
38
- "@blocklet/env": "1.16.41-beta-20250318-123609-b48bb2d7",
39
- "@blocklet/meta": "1.16.41-beta-20250318-123609-b48bb2d7",
37
+ "@blocklet/constant": "1.16.41-beta-20250319-131732-1224cca5",
38
+ "@blocklet/env": "1.16.41-beta-20250319-131732-1224cca5",
39
+ "@blocklet/meta": "1.16.41-beta-20250319-131732-1224cca5",
40
40
  "@did-connect/authenticator": "^2.2.7",
41
41
  "@did-connect/handler": "^2.2.7",
42
42
  "@nedb/core": "^2.1.5",
@@ -82,5 +82,5 @@
82
82
  "ts-node": "^10.9.1",
83
83
  "typescript": "^5.6.3"
84
84
  },
85
- "gitHead": "bb26547e22d71d208582b6254c355598a42f363b"
85
+ "gitHead": "a05391c26247f000ae87f30a36789313857f313e"
86
86
  }
@@ -1,8 +0,0 @@
1
- export interface TEmailConfig {
2
- from: string;
3
- host: string;
4
- password: string;
5
- port: number;
6
- secure?: boolean;
7
- user: string;
8
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/indent */
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import Joi from 'joi';
2
- declare const emailConfigSchema: Joi.ObjectSchema<any>;
3
- export { emailConfigSchema };
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.emailConfigSchema = void 0;
7
- /* eslint-disable import/prefer-default-export */
8
- const joi_1 = __importDefault(require("joi"));
9
- const emailConfigSchema = joi_1.default.object({
10
- from: joi_1.default.string().email().required(),
11
- host: joi_1.default.string().hostname().required(),
12
- port: joi_1.default.number().port().required(),
13
- user: joi_1.default.string().required(),
14
- password: joi_1.default.string().required(),
15
- secure: joi_1.default.boolean().optional().default(false),
16
- })
17
- .empty(null)
18
- .meta({ className: 'TEmailConfig' });
19
- exports.emailConfigSchema = emailConfigSchema;