@abtnode/types 1.16.41-beta-20250325-154552-2bf78c26 → 1.16.41-beta-20250331-010247-966fcfb0

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/lib/rpc_pb.d.ts CHANGED
@@ -235,15 +235,16 @@ export type TRequestGetNotifications = {
235
235
  read: boolean;
236
236
  paging?: type_pb.TPaging;
237
237
  teamDid: string;
238
- severity: string;
239
- componentDid: string;
240
- entityId: string;
241
- source: string;
238
+ severity: string[];
239
+ componentDid: string[];
240
+ entityId: string[];
241
+ source: string[];
242
242
  };
243
243
  export type TResponseGetNotifications = {
244
244
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
245
245
  list: type_pb.TNotification[];
246
246
  paging?: type_pb.TPaging;
247
+ unreadCount: number;
247
248
  };
248
249
  export type TRequestNotificationSendLog = {
249
250
  teamDid: string;
@@ -557,8 +558,9 @@ export type TRequestCreateInvitation = {
557
558
  teamDid: string;
558
559
  role: string;
559
560
  remark: string;
560
- sourceapppid: string;
561
+ sourceAppPid: string;
561
562
  display?: type_pb.TPassportDisplay;
563
+ passportExpireTime: string;
562
564
  };
563
565
  export type TResponseCreateInvitation = {
564
566
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
@@ -594,6 +596,7 @@ export type TRequestCreatePassportIssuance = {
594
596
  ownerDid: string;
595
597
  name: string;
596
598
  display?: type_pb.TPassportDisplay;
599
+ passportExpireTime: string;
597
600
  };
598
601
  export type TResponseCreatePassportIssuance = {
599
602
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
@@ -708,6 +711,10 @@ export type TRequestUpdateUserAddress = {
708
711
  did: string;
709
712
  address?: type_pb.TUserAddress;
710
713
  };
714
+ export type TRequestUpdateUserInfo = {
715
+ teamDid: string;
716
+ user?: type_pb.TUserInfo;
717
+ };
711
718
  export type TRequestTeamUserOptions = {
712
719
  enableConnectedAccount: boolean;
713
720
  includeTags: boolean;
@@ -1233,3 +1240,31 @@ export type TResponseGetBlockletBackupSummary = {
1233
1240
  code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
1234
1241
  summary: TBackupSummaryItem[];
1235
1242
  };
1243
+ export type TResponseGetPassportCountPerRole = {
1244
+ code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
1245
+ counts: type_pb.TKeyValue[];
1246
+ };
1247
+ export type TRequestPassport = {
1248
+ teamDid: string;
1249
+ query?: type_pb.TPassportQuery;
1250
+ paging?: type_pb.TPaging;
1251
+ };
1252
+ export type TResponsePassport = {
1253
+ code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
1254
+ passports: type_pb.TPassport[];
1255
+ paging?: type_pb.TPaging;
1256
+ };
1257
+ export type TRequestPassportLog = {
1258
+ teamDid: string;
1259
+ query?: type_pb.TPassportLogQuery;
1260
+ paging?: type_pb.TPaging;
1261
+ };
1262
+ export type TResponsePassportLog = {
1263
+ passportlogs: type_pb.TPassportLogState[];
1264
+ paging?: type_pb.TPaging;
1265
+ };
1266
+ export type TRequestRelatedPassports = {
1267
+ teamDid: string;
1268
+ passportId: string;
1269
+ paging?: type_pb.TPaging;
1270
+ };
package/lib/type_pb.d.ts CHANGED
@@ -122,6 +122,9 @@ export type TChildConfig = {
122
122
  };
123
123
  export type TBlockletDockerMeta = {
124
124
  image: string;
125
+ shell: string;
126
+ runBaseScript: boolean;
127
+ installNodeModules: boolean;
125
128
  };
126
129
  export type TBlockletMeta = {
127
130
  did: string;
@@ -529,6 +532,20 @@ export type TNotificationStatistics = {
529
532
  email?: TStatistics;
530
533
  webhook?: TWebhookStatistics;
531
534
  };
535
+ export type TNotificationActivity = {
536
+ type: NotificationActivity.ActivityTypeEnumMap[keyof NotificationActivity.ActivityTypeEnumMap];
537
+ actor: string;
538
+ target?: Record<string, any>;
539
+ meta?: Record<string, any>;
540
+ };
541
+ export interface ActivityTypeEnumMap {
542
+ COMMENT: 0;
543
+ LIKE: 1;
544
+ FOLLOW: 2;
545
+ TIPS: 3;
546
+ MENTION: 4;
547
+ ASSIGN: 5;
548
+ }
532
549
  export type TNotification = {
533
550
  sender: string;
534
551
  receiver: string;
@@ -551,6 +568,8 @@ export type TNotification = {
551
568
  data?: Record<string, any>;
552
569
  feedType: string;
553
570
  statistics?: TNotificationStatistics;
571
+ activity?: TNotificationActivity;
572
+ actorInfo?: TUserInfo;
554
573
  };
555
574
  export interface NotificationSourceMap {
556
575
  SYSTEM: 0;
@@ -891,20 +910,6 @@ export type TPassportDisplay = {
891
910
  type: string;
892
911
  content: string;
893
912
  };
894
- export type TPassport = {
895
- id: string;
896
- name: string;
897
- title: string;
898
- issuer?: TIssuer;
899
- type: string[];
900
- issuanceDate: number;
901
- expirationDate: number;
902
- status: string;
903
- role: string;
904
- lastLoginAt: number;
905
- scope: string;
906
- display?: TPassportDisplay;
907
- };
908
913
  export type TIssuer = {
909
914
  id: string;
910
915
  name: string;
@@ -1354,3 +1359,51 @@ export type TWebhookAttemptWithEndpointEventState = {
1354
1359
  endpoint?: TWebhookEndpointState;
1355
1360
  event?: TWebhookEventState;
1356
1361
  };
1362
+ export type TPassportQuery = {
1363
+ role: string;
1364
+ search: string;
1365
+ status: string;
1366
+ };
1367
+ export type TPassportLogQuery = {
1368
+ passportId: string;
1369
+ };
1370
+ export type TPassportLogState = {
1371
+ id: number;
1372
+ passportId: string;
1373
+ action: string;
1374
+ operatorIp: string;
1375
+ operatorUa: string;
1376
+ operatorDid: string;
1377
+ metadata?: Record<string, any>;
1378
+ createdAt: number;
1379
+ };
1380
+ export type TBaseUserInfo = {
1381
+ did: string;
1382
+ pk: string;
1383
+ role: string;
1384
+ avatar: string;
1385
+ fullName: string;
1386
+ email: string;
1387
+ approved: boolean;
1388
+ createdAt: number;
1389
+ updatedAt: number;
1390
+ locale: string;
1391
+ };
1392
+ export type TPassport = {
1393
+ id: string;
1394
+ name: string;
1395
+ title: string;
1396
+ issuer?: TIssuer;
1397
+ type: string[];
1398
+ issuanceDate: number;
1399
+ expirationDate: number;
1400
+ status: string;
1401
+ role: string;
1402
+ lastLoginAt: number;
1403
+ scope: string;
1404
+ display?: TPassportDisplay;
1405
+ source: string;
1406
+ parentDid: string;
1407
+ userDid: string;
1408
+ user?: TBaseUserInfo;
1409
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/types",
3
- "version": "1.16.41-beta-20250325-154552-2bf78c26",
3
+ "version": "1.16.41-beta-20250331-010247-966fcfb0",
4
4
  "description": "Typescript definitions generated from protobuf",
5
5
  "keywords": [
6
6
  "abtnode",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/ArcBlock/abt-node/issues"
38
38
  },
39
- "gitHead": "5342bdb7acbcba223a94817f686331c1beeb49c0"
39
+ "gitHead": "3c7f691205d82118ef5e8d60fbb2dd84fe7b7b7c"
40
40
  }