@abtnode/schema 1.16.52-beta-20251003-083412-fdfc4e36 → 1.16.52-beta-20251008-091027-c46c73e3
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/index.js +229 -3
- package/lib/schema.graphqls +228 -2
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -306,6 +306,26 @@ input OauthClientInput {
|
|
|
306
306
|
createUser: UserInfoInput
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
input OrgInput {
|
|
310
|
+
id: String
|
|
311
|
+
name: String
|
|
312
|
+
description: String
|
|
313
|
+
ownerDid: String
|
|
314
|
+
createdAt: Uint32
|
|
315
|
+
updatedAt: Uint32
|
|
316
|
+
members: [UserOrgInput!]
|
|
317
|
+
owner: UserInfoInput
|
|
318
|
+
membersCount: Uint32
|
|
319
|
+
passports: [PassportInput!]
|
|
320
|
+
metadata: Any
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
input OrgSettingsInput {
|
|
324
|
+
enabled: Boolean
|
|
325
|
+
maxMemberPerOrg: Uint32
|
|
326
|
+
maxOrgPerUser: Uint32
|
|
327
|
+
}
|
|
328
|
+
|
|
309
329
|
input PagingInput {
|
|
310
330
|
total: Uint32
|
|
311
331
|
pageSize: Uint32
|
|
@@ -439,6 +459,14 @@ input RequestAddNginxHttpsCertInput {
|
|
|
439
459
|
certificate: String
|
|
440
460
|
}
|
|
441
461
|
|
|
462
|
+
input RequestAddOrgResourceInput {
|
|
463
|
+
teamDid: String
|
|
464
|
+
orgId: String
|
|
465
|
+
resourceIds: [String!]
|
|
466
|
+
type: String
|
|
467
|
+
metadata: Any
|
|
468
|
+
}
|
|
469
|
+
|
|
442
470
|
input RequestAddRoutingRuleInput {
|
|
443
471
|
id: String
|
|
444
472
|
rule: RoutingRuleInput
|
|
@@ -520,6 +548,7 @@ input RequestBlockletSettingsInput {
|
|
|
520
548
|
invite: InviteSettingsInput
|
|
521
549
|
gateway: BlockletGatewayInput
|
|
522
550
|
aigne: AigneConfigInput
|
|
551
|
+
org: OrgSettingsInput
|
|
523
552
|
}
|
|
524
553
|
|
|
525
554
|
input RequestCheckDomainsInput {
|
|
@@ -643,6 +672,13 @@ input RequestCreateInvitationInput {
|
|
|
643
672
|
passportExpireTime: String
|
|
644
673
|
}
|
|
645
674
|
|
|
675
|
+
input RequestCreateOrgInput {
|
|
676
|
+
teamDid: String
|
|
677
|
+
name: String
|
|
678
|
+
description: String
|
|
679
|
+
ownerDid: String
|
|
680
|
+
}
|
|
681
|
+
|
|
646
682
|
input RequestCreatePassportIssuanceInput {
|
|
647
683
|
teamDid: String
|
|
648
684
|
ownerDid: String
|
|
@@ -699,6 +735,7 @@ input RequestCreateRoleInput {
|
|
|
699
735
|
childName: String
|
|
700
736
|
permissions: [String!]
|
|
701
737
|
extra: String
|
|
738
|
+
orgId: String
|
|
702
739
|
}
|
|
703
740
|
|
|
704
741
|
input RequestCreateTransferNodeInvitationInput {
|
|
@@ -943,6 +980,43 @@ input RequestGetNotificationsInput {
|
|
|
943
980
|
source: [String!]
|
|
944
981
|
}
|
|
945
982
|
|
|
983
|
+
input RequestGetOrgInput {
|
|
984
|
+
teamDid: String
|
|
985
|
+
id: String
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
input RequestGetOrgDataInput {
|
|
989
|
+
teamDid: String
|
|
990
|
+
orgId: String
|
|
991
|
+
paging: PagingInput
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
input RequestGetOrgMemberInput {
|
|
995
|
+
teamDid: String
|
|
996
|
+
orgId: String
|
|
997
|
+
userDid: String
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
input RequestGetOrgResourceInput {
|
|
1001
|
+
teamDid: String
|
|
1002
|
+
orgId: String
|
|
1003
|
+
resourceId: String
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
input RequestGetOrgsInput {
|
|
1007
|
+
teamDid: String
|
|
1008
|
+
org: OrgInput
|
|
1009
|
+
paging: PagingInput
|
|
1010
|
+
type: OrgQueryType
|
|
1011
|
+
userDid: String
|
|
1012
|
+
options: RequestGetOrgsOptionsInput
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
input RequestGetOrgsOptionsInput {
|
|
1016
|
+
includeMembers: Boolean
|
|
1017
|
+
includePassports: Boolean
|
|
1018
|
+
}
|
|
1019
|
+
|
|
946
1020
|
input RequestGetPassportIssuancesInput {
|
|
947
1021
|
teamDid: String
|
|
948
1022
|
ownerDid: String
|
|
@@ -1036,6 +1110,21 @@ input RequestInstallComponentInput {
|
|
|
1036
1110
|
dist: BlockletDistInput
|
|
1037
1111
|
}
|
|
1038
1112
|
|
|
1113
|
+
input RequestInvitableUsersInput {
|
|
1114
|
+
teamDid: String
|
|
1115
|
+
id: String
|
|
1116
|
+
query: UserQueryInput
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
input RequestInviteMembersToOrgInput {
|
|
1120
|
+
teamDid: String
|
|
1121
|
+
orgId: String
|
|
1122
|
+
userDids: [String!]
|
|
1123
|
+
role: String
|
|
1124
|
+
inviteType: String
|
|
1125
|
+
email: String
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1039
1128
|
input RequestIsDidDomainInput {
|
|
1040
1129
|
domain: String
|
|
1041
1130
|
}
|
|
@@ -1109,6 +1198,13 @@ input RequestMigrateApplicationToStructV2Input {
|
|
|
1109
1198
|
appSk: String
|
|
1110
1199
|
}
|
|
1111
1200
|
|
|
1201
|
+
input RequestMigrateOrgResourceInput {
|
|
1202
|
+
teamDid: String
|
|
1203
|
+
from: String
|
|
1204
|
+
to: String
|
|
1205
|
+
resourceIds: [String!]
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1112
1208
|
input RequestNodeRoutingInput {
|
|
1113
1209
|
provider: String
|
|
1114
1210
|
snapshotHash: String
|
|
@@ -1314,6 +1410,7 @@ input RequestTeamPermissionInput {
|
|
|
1314
1410
|
input RequestTeamRoleInput {
|
|
1315
1411
|
teamDid: String
|
|
1316
1412
|
role: RoleUpdateInput
|
|
1413
|
+
orgId: String
|
|
1317
1414
|
}
|
|
1318
1415
|
|
|
1319
1416
|
input RequestTeamUserInput {
|
|
@@ -1395,6 +1492,11 @@ input RequestUpdateNginxHttpsCertInput {
|
|
|
1395
1492
|
name: String
|
|
1396
1493
|
}
|
|
1397
1494
|
|
|
1495
|
+
input RequestUpdateOrgInput {
|
|
1496
|
+
teamDid: String
|
|
1497
|
+
org: OrgInput
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1398
1500
|
input RequestUpdatePermissionsForRoleInput {
|
|
1399
1501
|
teamDid: String
|
|
1400
1502
|
roleName: String
|
|
@@ -1714,6 +1816,17 @@ input UserMetadataStatusInput {
|
|
|
1714
1816
|
dateRange: [Uint32!]
|
|
1715
1817
|
}
|
|
1716
1818
|
|
|
1819
|
+
input UserOrgInput {
|
|
1820
|
+
id: String
|
|
1821
|
+
orgId: String
|
|
1822
|
+
userDid: String
|
|
1823
|
+
status: OrgUserStatus
|
|
1824
|
+
createdAt: Uint32
|
|
1825
|
+
updatedAt: Uint32
|
|
1826
|
+
user: UserInfoInput
|
|
1827
|
+
metadata: Any
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1717
1830
|
input UserPhoneInfoInput {
|
|
1718
1831
|
country: String
|
|
1719
1832
|
phoneNumber: String
|
|
@@ -2188,6 +2301,7 @@ type BlockletSettings {
|
|
|
2188
2301
|
gateway: Gateway
|
|
2189
2302
|
enableSessionHardening: Boolean
|
|
2190
2303
|
aigne: AigneConfig
|
|
2304
|
+
org: OrgSettings
|
|
2191
2305
|
}
|
|
2192
2306
|
|
|
2193
2307
|
type BlockletState {
|
|
@@ -2330,6 +2444,7 @@ type ComponentState {
|
|
|
2330
2444
|
dependents: [Dependent!]
|
|
2331
2445
|
required: Boolean
|
|
2332
2446
|
appRuntimeInfo: RuntimeInfo
|
|
2447
|
+
greenStatus: BlockletStatus
|
|
2333
2448
|
}
|
|
2334
2449
|
|
|
2335
2450
|
type ConfigEntry {
|
|
@@ -2549,6 +2664,14 @@ type InviteInfo {
|
|
|
2549
2664
|
teamDid: String
|
|
2550
2665
|
interfaceName: String
|
|
2551
2666
|
display: PassportDisplay
|
|
2667
|
+
orgId: String
|
|
2668
|
+
inviteUserDids: [String!]
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
type InviteResult {
|
|
2672
|
+
successDids: [String!]
|
|
2673
|
+
failedDids: [String!]
|
|
2674
|
+
inviteLink: String
|
|
2552
2675
|
}
|
|
2553
2676
|
|
|
2554
2677
|
type InviteSettings {
|
|
@@ -2813,6 +2936,41 @@ type OptionalDependencies {
|
|
|
2813
2936
|
required: Boolean
|
|
2814
2937
|
}
|
|
2815
2938
|
|
|
2939
|
+
type Org {
|
|
2940
|
+
id: String
|
|
2941
|
+
name: String
|
|
2942
|
+
description: String
|
|
2943
|
+
ownerDid: String
|
|
2944
|
+
createdAt: Uint32
|
|
2945
|
+
updatedAt: Uint32
|
|
2946
|
+
members: [UserOrg!]
|
|
2947
|
+
owner: UserInfo
|
|
2948
|
+
membersCount: Uint32
|
|
2949
|
+
passports: [Passport!]
|
|
2950
|
+
metadata: Any
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
type OrgResourceResult {
|
|
2954
|
+
success: [String!]
|
|
2955
|
+
failed: [String!]
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
type OrgResources {
|
|
2959
|
+
id: String
|
|
2960
|
+
orgId: String
|
|
2961
|
+
resourceId: String
|
|
2962
|
+
type: String
|
|
2963
|
+
metadata: Any
|
|
2964
|
+
createdAt: Uint32
|
|
2965
|
+
updatedAt: Uint32
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
type OrgSettings {
|
|
2969
|
+
enabled: Boolean
|
|
2970
|
+
maxMemberPerOrg: Uint32
|
|
2971
|
+
maxOrgPerUser: Uint32
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2816
2974
|
type OwnerNft {
|
|
2817
2975
|
did: String
|
|
2818
2976
|
holder: String
|
|
@@ -3229,6 +3387,22 @@ type ResponseGetNotifications {
|
|
|
3229
3387
|
unreadCount: Int32
|
|
3230
3388
|
}
|
|
3231
3389
|
|
|
3390
|
+
type ResponseGetOrg {
|
|
3391
|
+
code: StatusCode
|
|
3392
|
+
org: Org
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
type ResponseGetOrgResource {
|
|
3396
|
+
code: StatusCode
|
|
3397
|
+
data: [OrgResources!]
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
type ResponseGetOrgs {
|
|
3401
|
+
code: StatusCode
|
|
3402
|
+
orgs: [Org!]
|
|
3403
|
+
paging: Paging
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3232
3406
|
type ResponseGetPassportCountPerRole {
|
|
3233
3407
|
code: StatusCode
|
|
3234
3408
|
counts: [KeyValue!]
|
|
@@ -3325,6 +3499,11 @@ type ResponseGetWebhookEndpoints {
|
|
|
3325
3499
|
paging: Paging
|
|
3326
3500
|
}
|
|
3327
3501
|
|
|
3502
|
+
type ResponseInviteMembersToOrg {
|
|
3503
|
+
code: StatusCode
|
|
3504
|
+
data: InviteResult
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3328
3507
|
type ResponseIsDidDomain {
|
|
3329
3508
|
code: StatusCode
|
|
3330
3509
|
value: Boolean
|
|
@@ -3369,6 +3548,17 @@ type ResponseOAuthClients {
|
|
|
3369
3548
|
list: [OauthClient!]
|
|
3370
3549
|
}
|
|
3371
3550
|
|
|
3551
|
+
type ResponseOrgResourceOperation {
|
|
3552
|
+
code: StatusCode
|
|
3553
|
+
data: OrgResourceResult
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
type ResponseOrgUsers {
|
|
3557
|
+
code: StatusCode
|
|
3558
|
+
users: [UserOrg!]
|
|
3559
|
+
paging: Paging
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3372
3562
|
type ResponsePassport {
|
|
3373
3563
|
code: StatusCode
|
|
3374
3564
|
passports: [Passport!]
|
|
@@ -3548,6 +3738,7 @@ type Role {
|
|
|
3548
3738
|
title: String
|
|
3549
3739
|
isProtected: Boolean
|
|
3550
3740
|
extra: Any
|
|
3741
|
+
orgId: String
|
|
3551
3742
|
}
|
|
3552
3743
|
|
|
3553
3744
|
type RoutingProvider {
|
|
@@ -3816,6 +4007,17 @@ type UserMetadataStatus {
|
|
|
3816
4007
|
dateRange: [Uint32!]
|
|
3817
4008
|
}
|
|
3818
4009
|
|
|
4010
|
+
type UserOrg {
|
|
4011
|
+
id: String
|
|
4012
|
+
orgId: String
|
|
4013
|
+
userDid: String
|
|
4014
|
+
status: OrgUserStatus
|
|
4015
|
+
createdAt: Uint32
|
|
4016
|
+
updatedAt: Uint32
|
|
4017
|
+
user: UserInfo
|
|
4018
|
+
metadata: Any
|
|
4019
|
+
}
|
|
4020
|
+
|
|
3819
4021
|
type UserPhoneInfo {
|
|
3820
4022
|
country: String
|
|
3821
4023
|
phoneNumber: String
|
|
@@ -4047,6 +4249,17 @@ enum NotificationAttachmentType {
|
|
|
4047
4249
|
section
|
|
4048
4250
|
}
|
|
4049
4251
|
|
|
4252
|
+
enum OrgQueryType {
|
|
4253
|
+
owned
|
|
4254
|
+
joined
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
enum OrgUserStatus {
|
|
4258
|
+
active
|
|
4259
|
+
inviting
|
|
4260
|
+
inactive
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4050
4263
|
enum PublishType {
|
|
4051
4264
|
resource
|
|
4052
4265
|
pack
|
|
@@ -4212,6 +4425,14 @@ type Mutation {
|
|
|
4212
4425
|
connectToAigne(input: RequestConnectToAigneInput): ResponseConnectToEndpoint
|
|
4213
4426
|
disconnectToAigne(input: RequestDisconnectToAigneInput): GeneralResponse
|
|
4214
4427
|
verifyAigneConnection(input: RequestVerifyAigneConnectionInput): GeneralResponse
|
|
4428
|
+
createOrg(input: RequestCreateOrgInput): ResponseGetOrg
|
|
4429
|
+
updateOrg(input: RequestUpdateOrgInput): ResponseGetOrg
|
|
4430
|
+
deleteOrg(input: RequestGetOrgInput): GeneralResponse
|
|
4431
|
+
addOrgMember(input: RequestGetOrgMemberInput): ResponseGetOrg
|
|
4432
|
+
removeOrgMember(input: RequestGetOrgMemberInput): GeneralResponse
|
|
4433
|
+
inviteMembersToOrg(input: RequestInviteMembersToOrgInput): ResponseInviteMembersToOrg
|
|
4434
|
+
addOrgResource(input: RequestAddOrgResourceInput): ResponseOrgResourceOperation
|
|
4435
|
+
migrateOrgResource(input: RequestMigrateOrgResourceInput): ResponseOrgResourceOperation
|
|
4215
4436
|
}
|
|
4216
4437
|
|
|
4217
4438
|
type Query {
|
|
@@ -4249,10 +4470,10 @@ type Query {
|
|
|
4249
4470
|
getWebhookSenders: ResponseSenderList
|
|
4250
4471
|
sendTestMessage(input: RequestSendMsgInput): ResponseSendMsg
|
|
4251
4472
|
getSession(input: RequestGetSessionInput): ResponseGetSession
|
|
4252
|
-
getRoles(input:
|
|
4473
|
+
getRoles(input: RequestGetOrgDataInput): ResponseRoles
|
|
4253
4474
|
getRole(input: RequestTeamRoleInput): ResponseRole
|
|
4254
4475
|
getPermissions(input: TeamInput): ResponsePermissions
|
|
4255
|
-
getInvitations(input:
|
|
4476
|
+
getInvitations(input: RequestGetOrgDataInput): ResponseGetInvitations
|
|
4256
4477
|
getUsers(input: RequestUsersInput): ResponseUsers
|
|
4257
4478
|
getUser(input: RequestTeamUserInput): ResponseUser
|
|
4258
4479
|
getUserSessions(input: RequestUserSessionsInput): ResponseUserSessions
|
|
@@ -4302,4 +4523,9 @@ type Query {
|
|
|
4302
4523
|
createOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4303
4524
|
updateOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4304
4525
|
deleteOAuthClient(input: RequestDeleteOAuthClientInput): GeneralResponse
|
|
4305
|
-
|
|
4526
|
+
getOrgs(input: RequestGetOrgsInput): ResponseGetOrgs
|
|
4527
|
+
getOrg(input: RequestGetOrgInput): ResponseGetOrg
|
|
4528
|
+
getOrgMembers(input: RequestGetOrgDataInput): ResponseOrgUsers
|
|
4529
|
+
getOrgInvitableUsers(input: RequestInvitableUsersInput): ResponseUsers
|
|
4530
|
+
getOrgResource(input: RequestGetOrgResourceInput): ResponseGetOrgResource
|
|
4531
|
+
}`;
|
package/lib/schema.graphqls
CHANGED
|
@@ -306,6 +306,26 @@ input OauthClientInput {
|
|
|
306
306
|
createUser: UserInfoInput
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
input OrgInput {
|
|
310
|
+
id: String
|
|
311
|
+
name: String
|
|
312
|
+
description: String
|
|
313
|
+
ownerDid: String
|
|
314
|
+
createdAt: Uint32
|
|
315
|
+
updatedAt: Uint32
|
|
316
|
+
members: [UserOrgInput!]
|
|
317
|
+
owner: UserInfoInput
|
|
318
|
+
membersCount: Uint32
|
|
319
|
+
passports: [PassportInput!]
|
|
320
|
+
metadata: Any
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
input OrgSettingsInput {
|
|
324
|
+
enabled: Boolean
|
|
325
|
+
maxMemberPerOrg: Uint32
|
|
326
|
+
maxOrgPerUser: Uint32
|
|
327
|
+
}
|
|
328
|
+
|
|
309
329
|
input PagingInput {
|
|
310
330
|
total: Uint32
|
|
311
331
|
pageSize: Uint32
|
|
@@ -439,6 +459,14 @@ input RequestAddNginxHttpsCertInput {
|
|
|
439
459
|
certificate: String
|
|
440
460
|
}
|
|
441
461
|
|
|
462
|
+
input RequestAddOrgResourceInput {
|
|
463
|
+
teamDid: String
|
|
464
|
+
orgId: String
|
|
465
|
+
resourceIds: [String!]
|
|
466
|
+
type: String
|
|
467
|
+
metadata: Any
|
|
468
|
+
}
|
|
469
|
+
|
|
442
470
|
input RequestAddRoutingRuleInput {
|
|
443
471
|
id: String
|
|
444
472
|
rule: RoutingRuleInput
|
|
@@ -520,6 +548,7 @@ input RequestBlockletSettingsInput {
|
|
|
520
548
|
invite: InviteSettingsInput
|
|
521
549
|
gateway: BlockletGatewayInput
|
|
522
550
|
aigne: AigneConfigInput
|
|
551
|
+
org: OrgSettingsInput
|
|
523
552
|
}
|
|
524
553
|
|
|
525
554
|
input RequestCheckDomainsInput {
|
|
@@ -643,6 +672,13 @@ input RequestCreateInvitationInput {
|
|
|
643
672
|
passportExpireTime: String
|
|
644
673
|
}
|
|
645
674
|
|
|
675
|
+
input RequestCreateOrgInput {
|
|
676
|
+
teamDid: String
|
|
677
|
+
name: String
|
|
678
|
+
description: String
|
|
679
|
+
ownerDid: String
|
|
680
|
+
}
|
|
681
|
+
|
|
646
682
|
input RequestCreatePassportIssuanceInput {
|
|
647
683
|
teamDid: String
|
|
648
684
|
ownerDid: String
|
|
@@ -699,6 +735,7 @@ input RequestCreateRoleInput {
|
|
|
699
735
|
childName: String
|
|
700
736
|
permissions: [String!]
|
|
701
737
|
extra: String
|
|
738
|
+
orgId: String
|
|
702
739
|
}
|
|
703
740
|
|
|
704
741
|
input RequestCreateTransferNodeInvitationInput {
|
|
@@ -943,6 +980,43 @@ input RequestGetNotificationsInput {
|
|
|
943
980
|
source: [String!]
|
|
944
981
|
}
|
|
945
982
|
|
|
983
|
+
input RequestGetOrgInput {
|
|
984
|
+
teamDid: String
|
|
985
|
+
id: String
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
input RequestGetOrgDataInput {
|
|
989
|
+
teamDid: String
|
|
990
|
+
orgId: String
|
|
991
|
+
paging: PagingInput
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
input RequestGetOrgMemberInput {
|
|
995
|
+
teamDid: String
|
|
996
|
+
orgId: String
|
|
997
|
+
userDid: String
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
input RequestGetOrgResourceInput {
|
|
1001
|
+
teamDid: String
|
|
1002
|
+
orgId: String
|
|
1003
|
+
resourceId: String
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
input RequestGetOrgsInput {
|
|
1007
|
+
teamDid: String
|
|
1008
|
+
org: OrgInput
|
|
1009
|
+
paging: PagingInput
|
|
1010
|
+
type: OrgQueryType
|
|
1011
|
+
userDid: String
|
|
1012
|
+
options: RequestGetOrgsOptionsInput
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
input RequestGetOrgsOptionsInput {
|
|
1016
|
+
includeMembers: Boolean
|
|
1017
|
+
includePassports: Boolean
|
|
1018
|
+
}
|
|
1019
|
+
|
|
946
1020
|
input RequestGetPassportIssuancesInput {
|
|
947
1021
|
teamDid: String
|
|
948
1022
|
ownerDid: String
|
|
@@ -1036,6 +1110,21 @@ input RequestInstallComponentInput {
|
|
|
1036
1110
|
dist: BlockletDistInput
|
|
1037
1111
|
}
|
|
1038
1112
|
|
|
1113
|
+
input RequestInvitableUsersInput {
|
|
1114
|
+
teamDid: String
|
|
1115
|
+
id: String
|
|
1116
|
+
query: UserQueryInput
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
input RequestInviteMembersToOrgInput {
|
|
1120
|
+
teamDid: String
|
|
1121
|
+
orgId: String
|
|
1122
|
+
userDids: [String!]
|
|
1123
|
+
role: String
|
|
1124
|
+
inviteType: String
|
|
1125
|
+
email: String
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1039
1128
|
input RequestIsDidDomainInput {
|
|
1040
1129
|
domain: String
|
|
1041
1130
|
}
|
|
@@ -1109,6 +1198,13 @@ input RequestMigrateApplicationToStructV2Input {
|
|
|
1109
1198
|
appSk: String
|
|
1110
1199
|
}
|
|
1111
1200
|
|
|
1201
|
+
input RequestMigrateOrgResourceInput {
|
|
1202
|
+
teamDid: String
|
|
1203
|
+
from: String
|
|
1204
|
+
to: String
|
|
1205
|
+
resourceIds: [String!]
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1112
1208
|
input RequestNodeRoutingInput {
|
|
1113
1209
|
provider: String
|
|
1114
1210
|
snapshotHash: String
|
|
@@ -1314,6 +1410,7 @@ input RequestTeamPermissionInput {
|
|
|
1314
1410
|
input RequestTeamRoleInput {
|
|
1315
1411
|
teamDid: String
|
|
1316
1412
|
role: RoleUpdateInput
|
|
1413
|
+
orgId: String
|
|
1317
1414
|
}
|
|
1318
1415
|
|
|
1319
1416
|
input RequestTeamUserInput {
|
|
@@ -1395,6 +1492,11 @@ input RequestUpdateNginxHttpsCertInput {
|
|
|
1395
1492
|
name: String
|
|
1396
1493
|
}
|
|
1397
1494
|
|
|
1495
|
+
input RequestUpdateOrgInput {
|
|
1496
|
+
teamDid: String
|
|
1497
|
+
org: OrgInput
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1398
1500
|
input RequestUpdatePermissionsForRoleInput {
|
|
1399
1501
|
teamDid: String
|
|
1400
1502
|
roleName: String
|
|
@@ -1714,6 +1816,17 @@ input UserMetadataStatusInput {
|
|
|
1714
1816
|
dateRange: [Uint32!]
|
|
1715
1817
|
}
|
|
1716
1818
|
|
|
1819
|
+
input UserOrgInput {
|
|
1820
|
+
id: String
|
|
1821
|
+
orgId: String
|
|
1822
|
+
userDid: String
|
|
1823
|
+
status: OrgUserStatus
|
|
1824
|
+
createdAt: Uint32
|
|
1825
|
+
updatedAt: Uint32
|
|
1826
|
+
user: UserInfoInput
|
|
1827
|
+
metadata: Any
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1717
1830
|
input UserPhoneInfoInput {
|
|
1718
1831
|
country: String
|
|
1719
1832
|
phoneNumber: String
|
|
@@ -2188,6 +2301,7 @@ type BlockletSettings {
|
|
|
2188
2301
|
gateway: Gateway
|
|
2189
2302
|
enableSessionHardening: Boolean
|
|
2190
2303
|
aigne: AigneConfig
|
|
2304
|
+
org: OrgSettings
|
|
2191
2305
|
}
|
|
2192
2306
|
|
|
2193
2307
|
type BlockletState {
|
|
@@ -2330,6 +2444,7 @@ type ComponentState {
|
|
|
2330
2444
|
dependents: [Dependent!]
|
|
2331
2445
|
required: Boolean
|
|
2332
2446
|
appRuntimeInfo: RuntimeInfo
|
|
2447
|
+
greenStatus: BlockletStatus
|
|
2333
2448
|
}
|
|
2334
2449
|
|
|
2335
2450
|
type ConfigEntry {
|
|
@@ -2549,6 +2664,14 @@ type InviteInfo {
|
|
|
2549
2664
|
teamDid: String
|
|
2550
2665
|
interfaceName: String
|
|
2551
2666
|
display: PassportDisplay
|
|
2667
|
+
orgId: String
|
|
2668
|
+
inviteUserDids: [String!]
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
type InviteResult {
|
|
2672
|
+
successDids: [String!]
|
|
2673
|
+
failedDids: [String!]
|
|
2674
|
+
inviteLink: String
|
|
2552
2675
|
}
|
|
2553
2676
|
|
|
2554
2677
|
type InviteSettings {
|
|
@@ -2813,6 +2936,41 @@ type OptionalDependencies {
|
|
|
2813
2936
|
required: Boolean
|
|
2814
2937
|
}
|
|
2815
2938
|
|
|
2939
|
+
type Org {
|
|
2940
|
+
id: String
|
|
2941
|
+
name: String
|
|
2942
|
+
description: String
|
|
2943
|
+
ownerDid: String
|
|
2944
|
+
createdAt: Uint32
|
|
2945
|
+
updatedAt: Uint32
|
|
2946
|
+
members: [UserOrg!]
|
|
2947
|
+
owner: UserInfo
|
|
2948
|
+
membersCount: Uint32
|
|
2949
|
+
passports: [Passport!]
|
|
2950
|
+
metadata: Any
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
type OrgResourceResult {
|
|
2954
|
+
success: [String!]
|
|
2955
|
+
failed: [String!]
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
type OrgResources {
|
|
2959
|
+
id: String
|
|
2960
|
+
orgId: String
|
|
2961
|
+
resourceId: String
|
|
2962
|
+
type: String
|
|
2963
|
+
metadata: Any
|
|
2964
|
+
createdAt: Uint32
|
|
2965
|
+
updatedAt: Uint32
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
type OrgSettings {
|
|
2969
|
+
enabled: Boolean
|
|
2970
|
+
maxMemberPerOrg: Uint32
|
|
2971
|
+
maxOrgPerUser: Uint32
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2816
2974
|
type OwnerNft {
|
|
2817
2975
|
did: String
|
|
2818
2976
|
holder: String
|
|
@@ -3229,6 +3387,22 @@ type ResponseGetNotifications {
|
|
|
3229
3387
|
unreadCount: Int32
|
|
3230
3388
|
}
|
|
3231
3389
|
|
|
3390
|
+
type ResponseGetOrg {
|
|
3391
|
+
code: StatusCode
|
|
3392
|
+
org: Org
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
type ResponseGetOrgResource {
|
|
3396
|
+
code: StatusCode
|
|
3397
|
+
data: [OrgResources!]
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
type ResponseGetOrgs {
|
|
3401
|
+
code: StatusCode
|
|
3402
|
+
orgs: [Org!]
|
|
3403
|
+
paging: Paging
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3232
3406
|
type ResponseGetPassportCountPerRole {
|
|
3233
3407
|
code: StatusCode
|
|
3234
3408
|
counts: [KeyValue!]
|
|
@@ -3325,6 +3499,11 @@ type ResponseGetWebhookEndpoints {
|
|
|
3325
3499
|
paging: Paging
|
|
3326
3500
|
}
|
|
3327
3501
|
|
|
3502
|
+
type ResponseInviteMembersToOrg {
|
|
3503
|
+
code: StatusCode
|
|
3504
|
+
data: InviteResult
|
|
3505
|
+
}
|
|
3506
|
+
|
|
3328
3507
|
type ResponseIsDidDomain {
|
|
3329
3508
|
code: StatusCode
|
|
3330
3509
|
value: Boolean
|
|
@@ -3369,6 +3548,17 @@ type ResponseOAuthClients {
|
|
|
3369
3548
|
list: [OauthClient!]
|
|
3370
3549
|
}
|
|
3371
3550
|
|
|
3551
|
+
type ResponseOrgResourceOperation {
|
|
3552
|
+
code: StatusCode
|
|
3553
|
+
data: OrgResourceResult
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3556
|
+
type ResponseOrgUsers {
|
|
3557
|
+
code: StatusCode
|
|
3558
|
+
users: [UserOrg!]
|
|
3559
|
+
paging: Paging
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3372
3562
|
type ResponsePassport {
|
|
3373
3563
|
code: StatusCode
|
|
3374
3564
|
passports: [Passport!]
|
|
@@ -3548,6 +3738,7 @@ type Role {
|
|
|
3548
3738
|
title: String
|
|
3549
3739
|
isProtected: Boolean
|
|
3550
3740
|
extra: Any
|
|
3741
|
+
orgId: String
|
|
3551
3742
|
}
|
|
3552
3743
|
|
|
3553
3744
|
type RoutingProvider {
|
|
@@ -3816,6 +4007,17 @@ type UserMetadataStatus {
|
|
|
3816
4007
|
dateRange: [Uint32!]
|
|
3817
4008
|
}
|
|
3818
4009
|
|
|
4010
|
+
type UserOrg {
|
|
4011
|
+
id: String
|
|
4012
|
+
orgId: String
|
|
4013
|
+
userDid: String
|
|
4014
|
+
status: OrgUserStatus
|
|
4015
|
+
createdAt: Uint32
|
|
4016
|
+
updatedAt: Uint32
|
|
4017
|
+
user: UserInfo
|
|
4018
|
+
metadata: Any
|
|
4019
|
+
}
|
|
4020
|
+
|
|
3819
4021
|
type UserPhoneInfo {
|
|
3820
4022
|
country: String
|
|
3821
4023
|
phoneNumber: String
|
|
@@ -4047,6 +4249,17 @@ enum NotificationAttachmentType {
|
|
|
4047
4249
|
section
|
|
4048
4250
|
}
|
|
4049
4251
|
|
|
4252
|
+
enum OrgQueryType {
|
|
4253
|
+
owned
|
|
4254
|
+
joined
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
enum OrgUserStatus {
|
|
4258
|
+
active
|
|
4259
|
+
inviting
|
|
4260
|
+
inactive
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4050
4263
|
enum PublishType {
|
|
4051
4264
|
resource
|
|
4052
4265
|
pack
|
|
@@ -4218,6 +4431,14 @@ type Mutation {
|
|
|
4218
4431
|
connectToAigne(input: RequestConnectToAigneInput): ResponseConnectToEndpoint
|
|
4219
4432
|
disconnectToAigne(input: RequestDisconnectToAigneInput): GeneralResponse
|
|
4220
4433
|
verifyAigneConnection(input: RequestVerifyAigneConnectionInput): GeneralResponse
|
|
4434
|
+
createOrg(input: RequestCreateOrgInput): ResponseGetOrg
|
|
4435
|
+
updateOrg(input: RequestUpdateOrgInput): ResponseGetOrg
|
|
4436
|
+
deleteOrg(input: RequestGetOrgInput): GeneralResponse
|
|
4437
|
+
addOrgMember(input: RequestGetOrgMemberInput): ResponseGetOrg
|
|
4438
|
+
removeOrgMember(input: RequestGetOrgMemberInput): GeneralResponse
|
|
4439
|
+
inviteMembersToOrg(input: RequestInviteMembersToOrgInput): ResponseInviteMembersToOrg
|
|
4440
|
+
addOrgResource(input: RequestAddOrgResourceInput): ResponseOrgResourceOperation
|
|
4441
|
+
migrateOrgResource(input: RequestMigrateOrgResourceInput): ResponseOrgResourceOperation
|
|
4221
4442
|
}
|
|
4222
4443
|
|
|
4223
4444
|
type Query {
|
|
@@ -4255,10 +4476,10 @@ type Query {
|
|
|
4255
4476
|
getWebhookSenders: ResponseSenderList
|
|
4256
4477
|
sendTestMessage(input: RequestSendMsgInput): ResponseSendMsg
|
|
4257
4478
|
getSession(input: RequestGetSessionInput): ResponseGetSession
|
|
4258
|
-
getRoles(input:
|
|
4479
|
+
getRoles(input: RequestGetOrgDataInput): ResponseRoles
|
|
4259
4480
|
getRole(input: RequestTeamRoleInput): ResponseRole
|
|
4260
4481
|
getPermissions(input: TeamInput): ResponsePermissions
|
|
4261
|
-
getInvitations(input:
|
|
4482
|
+
getInvitations(input: RequestGetOrgDataInput): ResponseGetInvitations
|
|
4262
4483
|
getUsers(input: RequestUsersInput): ResponseUsers
|
|
4263
4484
|
getUser(input: RequestTeamUserInput): ResponseUser
|
|
4264
4485
|
getUserSessions(input: RequestUserSessionsInput): ResponseUserSessions
|
|
@@ -4310,4 +4531,9 @@ type Query {
|
|
|
4310
4531
|
createOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4311
4532
|
updateOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4312
4533
|
deleteOAuthClient(input: RequestDeleteOAuthClientInput): GeneralResponse
|
|
4534
|
+
getOrgs(input: RequestGetOrgsInput): ResponseGetOrgs
|
|
4535
|
+
getOrg(input: RequestGetOrgInput): ResponseGetOrg
|
|
4536
|
+
getOrgMembers(input: RequestGetOrgDataInput): ResponseOrgUsers
|
|
4537
|
+
getOrgInvitableUsers(input: RequestInvitableUsersInput): ResponseUsers
|
|
4538
|
+
getOrgResource(input: RequestGetOrgResourceInput): ResponseGetOrgResource
|
|
4313
4539
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.52-beta-
|
|
6
|
+
"version": "1.16.52-beta-20251008-091027-c46c73e3",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"keywords": [],
|
|
14
14
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "2a8d239f019aece938d909a495ff1c54ad0e87a9",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@wangshijun/ts-protoc-gen": "^0.16.2"
|
|
19
19
|
}
|