@abtnode/types 1.16.52-beta-20251003-083412-fdfc4e36 → 1.16.52-beta-20251005-235515-42ad5caf
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/enum_pb.d.ts +9 -0
- package/lib/rpc_pb.d.ts +100 -0
- package/lib/type_pb.d.ts +42 -0
- package/package.json +2 -2
package/lib/enum_pb.d.ts
CHANGED
|
@@ -100,3 +100,12 @@ export interface UserRelationTypeMap {
|
|
|
100
100
|
FOLLOWING: 0;
|
|
101
101
|
FOLLOWERS: 1;
|
|
102
102
|
}
|
|
103
|
+
export interface OrgUserStatusMap {
|
|
104
|
+
ACTIVE: 0;
|
|
105
|
+
INVITING: 1;
|
|
106
|
+
INACTIVE: 2;
|
|
107
|
+
}
|
|
108
|
+
export interface OrgQueryTypeMap {
|
|
109
|
+
OWNED: 0;
|
|
110
|
+
JOINED: 1;
|
|
111
|
+
}
|
package/lib/rpc_pb.d.ts
CHANGED
|
@@ -671,6 +671,7 @@ export type TRequestCreateRole = {
|
|
|
671
671
|
childName: string;
|
|
672
672
|
permissions: string[];
|
|
673
673
|
extra: string;
|
|
674
|
+
orgId: string;
|
|
674
675
|
};
|
|
675
676
|
export type TResponseRole = {
|
|
676
677
|
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
@@ -719,6 +720,7 @@ export type TRequestUpdatePermissionsForRole = {
|
|
|
719
720
|
export type TRequestTeamRole = {
|
|
720
721
|
teamDid: string;
|
|
721
722
|
role?: type_pb.TRoleUpdate;
|
|
723
|
+
orgId: string;
|
|
722
724
|
};
|
|
723
725
|
export type TRequestTeamUser = {
|
|
724
726
|
teamDid: string;
|
|
@@ -967,6 +969,7 @@ export type TRequestBlockletSettings = {
|
|
|
967
969
|
invite?: type_pb.TInviteSettings;
|
|
968
970
|
gateway?: type_pb.TBlockletGateway;
|
|
969
971
|
aigne?: type_pb.TAigneConfig;
|
|
972
|
+
org?: type_pb.TOrgSettings;
|
|
970
973
|
};
|
|
971
974
|
export type TRequestGetLauncherSession = {
|
|
972
975
|
launcherSessionId: string;
|
|
@@ -1502,3 +1505,100 @@ export type TRequestOAuthClient = {
|
|
|
1502
1505
|
export type TResponseOAuthClient = {
|
|
1503
1506
|
data?: type_pb.TOauthClient;
|
|
1504
1507
|
};
|
|
1508
|
+
export type TRequestGetOrgs = {
|
|
1509
|
+
teamDid: string;
|
|
1510
|
+
org?: type_pb.TOrg;
|
|
1511
|
+
paging?: type_pb.TPaging;
|
|
1512
|
+
type: enum_pb.OrgQueryTypeMap[keyof enum_pb.OrgQueryTypeMap];
|
|
1513
|
+
userDid: string;
|
|
1514
|
+
};
|
|
1515
|
+
export type TResponseGetOrgs = {
|
|
1516
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1517
|
+
orgs: type_pb.TOrg[];
|
|
1518
|
+
paging?: type_pb.TPaging;
|
|
1519
|
+
};
|
|
1520
|
+
export type TRequestGetOrg = {
|
|
1521
|
+
teamDid: string;
|
|
1522
|
+
id: string;
|
|
1523
|
+
};
|
|
1524
|
+
export type TResponseGetOrg = {
|
|
1525
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1526
|
+
org?: type_pb.TOrg;
|
|
1527
|
+
};
|
|
1528
|
+
export type TRequestGetOrgData = {
|
|
1529
|
+
teamDid: string;
|
|
1530
|
+
orgId: string;
|
|
1531
|
+
paging?: type_pb.TPaging;
|
|
1532
|
+
};
|
|
1533
|
+
export type TRequestCreateOrg = {
|
|
1534
|
+
teamDid: string;
|
|
1535
|
+
name: string;
|
|
1536
|
+
description: string;
|
|
1537
|
+
ownerDid: string;
|
|
1538
|
+
};
|
|
1539
|
+
export type TRequestUpdateOrg = {
|
|
1540
|
+
teamDid: string;
|
|
1541
|
+
org?: type_pb.TOrg;
|
|
1542
|
+
};
|
|
1543
|
+
export type TRequestInvitableUsers = {
|
|
1544
|
+
teamDid: string;
|
|
1545
|
+
id: string;
|
|
1546
|
+
query?: type_pb.TUserQuery;
|
|
1547
|
+
};
|
|
1548
|
+
export type TRequestGetOrgMember = {
|
|
1549
|
+
teamDid: string;
|
|
1550
|
+
orgId: string;
|
|
1551
|
+
userDid: string;
|
|
1552
|
+
};
|
|
1553
|
+
export type TResponseOrgUsers = {
|
|
1554
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1555
|
+
users: type_pb.TUserOrg[];
|
|
1556
|
+
paging?: type_pb.TPaging;
|
|
1557
|
+
};
|
|
1558
|
+
export type TRequestInviteMembersToOrg = {
|
|
1559
|
+
teamDid: string;
|
|
1560
|
+
orgId: string;
|
|
1561
|
+
userDids: string[];
|
|
1562
|
+
role: string;
|
|
1563
|
+
inviteType: string;
|
|
1564
|
+
email: string;
|
|
1565
|
+
};
|
|
1566
|
+
export type TInviteResult = {
|
|
1567
|
+
successDids: string[];
|
|
1568
|
+
failedDids: string[];
|
|
1569
|
+
invitelink: string;
|
|
1570
|
+
};
|
|
1571
|
+
export type TResponseInviteMembersToOrg = {
|
|
1572
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1573
|
+
data?: TInviteResult;
|
|
1574
|
+
};
|
|
1575
|
+
export type TRequestGetOrgResource = {
|
|
1576
|
+
teamDid: string;
|
|
1577
|
+
orgId: string;
|
|
1578
|
+
resourceId: string;
|
|
1579
|
+
};
|
|
1580
|
+
export type TResponseGetOrgResource = {
|
|
1581
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1582
|
+
data: type_pb.TOrgResources[];
|
|
1583
|
+
};
|
|
1584
|
+
export type TRequestAddOrgResource = {
|
|
1585
|
+
teamDid: string;
|
|
1586
|
+
orgId: string;
|
|
1587
|
+
resourceIds: string[];
|
|
1588
|
+
type: string;
|
|
1589
|
+
metadata?: Record<string, any>;
|
|
1590
|
+
};
|
|
1591
|
+
export type TRequestMigrateOrgResource = {
|
|
1592
|
+
teamDid: string;
|
|
1593
|
+
from: string;
|
|
1594
|
+
to: string;
|
|
1595
|
+
resourceIds: string[];
|
|
1596
|
+
};
|
|
1597
|
+
export type TOrgResourceResult = {
|
|
1598
|
+
success: string[];
|
|
1599
|
+
failed: string[];
|
|
1600
|
+
};
|
|
1601
|
+
export type TResponseOrgResourceOperation = {
|
|
1602
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1603
|
+
data?: TOrgResourceResult;
|
|
1604
|
+
};
|
package/lib/type_pb.d.ts
CHANGED
|
@@ -379,6 +379,7 @@ export type TComponentState = {
|
|
|
379
379
|
dependents: TDependent[];
|
|
380
380
|
required: boolean;
|
|
381
381
|
appRuntimeInfo?: TRuntimeInfo;
|
|
382
|
+
greenStatus: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap];
|
|
382
383
|
};
|
|
383
384
|
export type TSimpleBlockletState = {
|
|
384
385
|
meta?: TSimpleBlockletMeta;
|
|
@@ -419,6 +420,7 @@ export type TBlockletSettings = {
|
|
|
419
420
|
gateway?: TGateway;
|
|
420
421
|
enableSessionHardening: boolean;
|
|
421
422
|
aigne?: TAigneConfig;
|
|
423
|
+
org?: TOrgSettings;
|
|
422
424
|
};
|
|
423
425
|
export type TBlockletMetaService = {
|
|
424
426
|
name: string;
|
|
@@ -814,6 +816,8 @@ export type TInviteInfo = {
|
|
|
814
816
|
teamDid: string;
|
|
815
817
|
interfaceName: string;
|
|
816
818
|
display?: TPassportDisplay;
|
|
819
|
+
orgId: string;
|
|
820
|
+
inviteUserDids: string[];
|
|
817
821
|
};
|
|
818
822
|
export type TConnectedAccountInfo = {
|
|
819
823
|
name: string;
|
|
@@ -964,6 +968,7 @@ export type TRole = {
|
|
|
964
968
|
title: string;
|
|
965
969
|
isProtected: boolean;
|
|
966
970
|
extra?: Record<string, any>;
|
|
971
|
+
orgId: string;
|
|
967
972
|
};
|
|
968
973
|
export type TRoleAcquire = {
|
|
969
974
|
pay: string;
|
|
@@ -1182,6 +1187,11 @@ export type TAutoCheckUpdate = {
|
|
|
1182
1187
|
export type TInviteSettings = {
|
|
1183
1188
|
enabled: boolean;
|
|
1184
1189
|
};
|
|
1190
|
+
export type TOrgSettings = {
|
|
1191
|
+
enabled: boolean;
|
|
1192
|
+
maxMemberPerOrg: number;
|
|
1193
|
+
maxOrgPerUser: number;
|
|
1194
|
+
};
|
|
1185
1195
|
export type TLoginEmailSettings = {
|
|
1186
1196
|
enabled: boolean;
|
|
1187
1197
|
requireVerified: boolean;
|
|
@@ -1544,3 +1554,35 @@ export type TOauthClient = {
|
|
|
1544
1554
|
createdBy: string;
|
|
1545
1555
|
createUser?: TUserInfo;
|
|
1546
1556
|
};
|
|
1557
|
+
export type TOrg = {
|
|
1558
|
+
id: string;
|
|
1559
|
+
name: string;
|
|
1560
|
+
description: string;
|
|
1561
|
+
ownerDid: string;
|
|
1562
|
+
createdAt: number;
|
|
1563
|
+
updatedAt: number;
|
|
1564
|
+
members: TUserOrg[];
|
|
1565
|
+
owner?: TUserInfo;
|
|
1566
|
+
membersCount: number;
|
|
1567
|
+
passports: TPassport[];
|
|
1568
|
+
metadata?: Record<string, any>;
|
|
1569
|
+
};
|
|
1570
|
+
export type TUserOrg = {
|
|
1571
|
+
id: string;
|
|
1572
|
+
orgId: string;
|
|
1573
|
+
userDid: string;
|
|
1574
|
+
status: enum_pb.OrgUserStatusMap[keyof enum_pb.OrgUserStatusMap];
|
|
1575
|
+
createdAt: number;
|
|
1576
|
+
updatedAt: number;
|
|
1577
|
+
user?: TUserInfo;
|
|
1578
|
+
metadata?: Record<string, any>;
|
|
1579
|
+
};
|
|
1580
|
+
export type TOrgResources = {
|
|
1581
|
+
id: string;
|
|
1582
|
+
orgId: string;
|
|
1583
|
+
resourceId: string;
|
|
1584
|
+
type: string;
|
|
1585
|
+
metadata?: Record<string, any>;
|
|
1586
|
+
createdAt: number;
|
|
1587
|
+
updatedAt: number;
|
|
1588
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/types",
|
|
3
|
-
"version": "1.16.52-beta-
|
|
3
|
+
"version": "1.16.52-beta-20251005-235515-42ad5caf",
|
|
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": "
|
|
39
|
+
"gitHead": "7b295929a123edac2cb292c43f2edda0d3e3e6b8"
|
|
40
40
|
}
|