@abtnode/schema 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/index.js +223 -3
- package/lib/schema.graphqls +222 -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,37 @@ 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
|
+
}
|
|
1013
|
+
|
|
946
1014
|
input RequestGetPassportIssuancesInput {
|
|
947
1015
|
teamDid: String
|
|
948
1016
|
ownerDid: String
|
|
@@ -1036,6 +1104,21 @@ input RequestInstallComponentInput {
|
|
|
1036
1104
|
dist: BlockletDistInput
|
|
1037
1105
|
}
|
|
1038
1106
|
|
|
1107
|
+
input RequestInvitableUsersInput {
|
|
1108
|
+
teamDid: String
|
|
1109
|
+
id: String
|
|
1110
|
+
query: UserQueryInput
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
input RequestInviteMembersToOrgInput {
|
|
1114
|
+
teamDid: String
|
|
1115
|
+
orgId: String
|
|
1116
|
+
userDids: [String!]
|
|
1117
|
+
role: String
|
|
1118
|
+
inviteType: String
|
|
1119
|
+
email: String
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1039
1122
|
input RequestIsDidDomainInput {
|
|
1040
1123
|
domain: String
|
|
1041
1124
|
}
|
|
@@ -1109,6 +1192,13 @@ input RequestMigrateApplicationToStructV2Input {
|
|
|
1109
1192
|
appSk: String
|
|
1110
1193
|
}
|
|
1111
1194
|
|
|
1195
|
+
input RequestMigrateOrgResourceInput {
|
|
1196
|
+
teamDid: String
|
|
1197
|
+
from: String
|
|
1198
|
+
to: String
|
|
1199
|
+
resourceIds: [String!]
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1112
1202
|
input RequestNodeRoutingInput {
|
|
1113
1203
|
provider: String
|
|
1114
1204
|
snapshotHash: String
|
|
@@ -1314,6 +1404,7 @@ input RequestTeamPermissionInput {
|
|
|
1314
1404
|
input RequestTeamRoleInput {
|
|
1315
1405
|
teamDid: String
|
|
1316
1406
|
role: RoleUpdateInput
|
|
1407
|
+
orgId: String
|
|
1317
1408
|
}
|
|
1318
1409
|
|
|
1319
1410
|
input RequestTeamUserInput {
|
|
@@ -1395,6 +1486,11 @@ input RequestUpdateNginxHttpsCertInput {
|
|
|
1395
1486
|
name: String
|
|
1396
1487
|
}
|
|
1397
1488
|
|
|
1489
|
+
input RequestUpdateOrgInput {
|
|
1490
|
+
teamDid: String
|
|
1491
|
+
org: OrgInput
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1398
1494
|
input RequestUpdatePermissionsForRoleInput {
|
|
1399
1495
|
teamDid: String
|
|
1400
1496
|
roleName: String
|
|
@@ -1714,6 +1810,17 @@ input UserMetadataStatusInput {
|
|
|
1714
1810
|
dateRange: [Uint32!]
|
|
1715
1811
|
}
|
|
1716
1812
|
|
|
1813
|
+
input UserOrgInput {
|
|
1814
|
+
id: String
|
|
1815
|
+
orgId: String
|
|
1816
|
+
userDid: String
|
|
1817
|
+
status: OrgUserStatus
|
|
1818
|
+
createdAt: Uint32
|
|
1819
|
+
updatedAt: Uint32
|
|
1820
|
+
user: UserInfoInput
|
|
1821
|
+
metadata: Any
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1717
1824
|
input UserPhoneInfoInput {
|
|
1718
1825
|
country: String
|
|
1719
1826
|
phoneNumber: String
|
|
@@ -2188,6 +2295,7 @@ type BlockletSettings {
|
|
|
2188
2295
|
gateway: Gateway
|
|
2189
2296
|
enableSessionHardening: Boolean
|
|
2190
2297
|
aigne: AigneConfig
|
|
2298
|
+
org: OrgSettings
|
|
2191
2299
|
}
|
|
2192
2300
|
|
|
2193
2301
|
type BlockletState {
|
|
@@ -2330,6 +2438,7 @@ type ComponentState {
|
|
|
2330
2438
|
dependents: [Dependent!]
|
|
2331
2439
|
required: Boolean
|
|
2332
2440
|
appRuntimeInfo: RuntimeInfo
|
|
2441
|
+
greenStatus: BlockletStatus
|
|
2333
2442
|
}
|
|
2334
2443
|
|
|
2335
2444
|
type ConfigEntry {
|
|
@@ -2549,6 +2658,14 @@ type InviteInfo {
|
|
|
2549
2658
|
teamDid: String
|
|
2550
2659
|
interfaceName: String
|
|
2551
2660
|
display: PassportDisplay
|
|
2661
|
+
orgId: String
|
|
2662
|
+
inviteUserDids: [String!]
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
type InviteResult {
|
|
2666
|
+
successDids: [String!]
|
|
2667
|
+
failedDids: [String!]
|
|
2668
|
+
inviteLink: String
|
|
2552
2669
|
}
|
|
2553
2670
|
|
|
2554
2671
|
type InviteSettings {
|
|
@@ -2813,6 +2930,41 @@ type OptionalDependencies {
|
|
|
2813
2930
|
required: Boolean
|
|
2814
2931
|
}
|
|
2815
2932
|
|
|
2933
|
+
type Org {
|
|
2934
|
+
id: String
|
|
2935
|
+
name: String
|
|
2936
|
+
description: String
|
|
2937
|
+
ownerDid: String
|
|
2938
|
+
createdAt: Uint32
|
|
2939
|
+
updatedAt: Uint32
|
|
2940
|
+
members: [UserOrg!]
|
|
2941
|
+
owner: UserInfo
|
|
2942
|
+
membersCount: Uint32
|
|
2943
|
+
passports: [Passport!]
|
|
2944
|
+
metadata: Any
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
type OrgResourceResult {
|
|
2948
|
+
success: [String!]
|
|
2949
|
+
failed: [String!]
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
type OrgResources {
|
|
2953
|
+
id: String
|
|
2954
|
+
orgId: String
|
|
2955
|
+
resourceId: String
|
|
2956
|
+
type: String
|
|
2957
|
+
metadata: Any
|
|
2958
|
+
createdAt: Uint32
|
|
2959
|
+
updatedAt: Uint32
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
type OrgSettings {
|
|
2963
|
+
enabled: Boolean
|
|
2964
|
+
maxMemberPerOrg: Uint32
|
|
2965
|
+
maxOrgPerUser: Uint32
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2816
2968
|
type OwnerNft {
|
|
2817
2969
|
did: String
|
|
2818
2970
|
holder: String
|
|
@@ -3229,6 +3381,22 @@ type ResponseGetNotifications {
|
|
|
3229
3381
|
unreadCount: Int32
|
|
3230
3382
|
}
|
|
3231
3383
|
|
|
3384
|
+
type ResponseGetOrg {
|
|
3385
|
+
code: StatusCode
|
|
3386
|
+
org: Org
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
type ResponseGetOrgResource {
|
|
3390
|
+
code: StatusCode
|
|
3391
|
+
data: [OrgResources!]
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
type ResponseGetOrgs {
|
|
3395
|
+
code: StatusCode
|
|
3396
|
+
orgs: [Org!]
|
|
3397
|
+
paging: Paging
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3232
3400
|
type ResponseGetPassportCountPerRole {
|
|
3233
3401
|
code: StatusCode
|
|
3234
3402
|
counts: [KeyValue!]
|
|
@@ -3325,6 +3493,11 @@ type ResponseGetWebhookEndpoints {
|
|
|
3325
3493
|
paging: Paging
|
|
3326
3494
|
}
|
|
3327
3495
|
|
|
3496
|
+
type ResponseInviteMembersToOrg {
|
|
3497
|
+
code: StatusCode
|
|
3498
|
+
data: InviteResult
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3328
3501
|
type ResponseIsDidDomain {
|
|
3329
3502
|
code: StatusCode
|
|
3330
3503
|
value: Boolean
|
|
@@ -3369,6 +3542,17 @@ type ResponseOAuthClients {
|
|
|
3369
3542
|
list: [OauthClient!]
|
|
3370
3543
|
}
|
|
3371
3544
|
|
|
3545
|
+
type ResponseOrgResourceOperation {
|
|
3546
|
+
code: StatusCode
|
|
3547
|
+
data: OrgResourceResult
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
type ResponseOrgUsers {
|
|
3551
|
+
code: StatusCode
|
|
3552
|
+
users: [UserOrg!]
|
|
3553
|
+
paging: Paging
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3372
3556
|
type ResponsePassport {
|
|
3373
3557
|
code: StatusCode
|
|
3374
3558
|
passports: [Passport!]
|
|
@@ -3548,6 +3732,7 @@ type Role {
|
|
|
3548
3732
|
title: String
|
|
3549
3733
|
isProtected: Boolean
|
|
3550
3734
|
extra: Any
|
|
3735
|
+
orgId: String
|
|
3551
3736
|
}
|
|
3552
3737
|
|
|
3553
3738
|
type RoutingProvider {
|
|
@@ -3816,6 +4001,17 @@ type UserMetadataStatus {
|
|
|
3816
4001
|
dateRange: [Uint32!]
|
|
3817
4002
|
}
|
|
3818
4003
|
|
|
4004
|
+
type UserOrg {
|
|
4005
|
+
id: String
|
|
4006
|
+
orgId: String
|
|
4007
|
+
userDid: String
|
|
4008
|
+
status: OrgUserStatus
|
|
4009
|
+
createdAt: Uint32
|
|
4010
|
+
updatedAt: Uint32
|
|
4011
|
+
user: UserInfo
|
|
4012
|
+
metadata: Any
|
|
4013
|
+
}
|
|
4014
|
+
|
|
3819
4015
|
type UserPhoneInfo {
|
|
3820
4016
|
country: String
|
|
3821
4017
|
phoneNumber: String
|
|
@@ -4047,6 +4243,17 @@ enum NotificationAttachmentType {
|
|
|
4047
4243
|
section
|
|
4048
4244
|
}
|
|
4049
4245
|
|
|
4246
|
+
enum OrgQueryType {
|
|
4247
|
+
owned
|
|
4248
|
+
joined
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4251
|
+
enum OrgUserStatus {
|
|
4252
|
+
active
|
|
4253
|
+
inviting
|
|
4254
|
+
inactive
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4050
4257
|
enum PublishType {
|
|
4051
4258
|
resource
|
|
4052
4259
|
pack
|
|
@@ -4212,6 +4419,14 @@ type Mutation {
|
|
|
4212
4419
|
connectToAigne(input: RequestConnectToAigneInput): ResponseConnectToEndpoint
|
|
4213
4420
|
disconnectToAigne(input: RequestDisconnectToAigneInput): GeneralResponse
|
|
4214
4421
|
verifyAigneConnection(input: RequestVerifyAigneConnectionInput): GeneralResponse
|
|
4422
|
+
createOrg(input: RequestCreateOrgInput): ResponseGetOrg
|
|
4423
|
+
updateOrg(input: RequestUpdateOrgInput): ResponseGetOrg
|
|
4424
|
+
deleteOrg(input: RequestGetOrgInput): GeneralResponse
|
|
4425
|
+
addOrgMember(input: RequestGetOrgMemberInput): ResponseGetOrg
|
|
4426
|
+
removeOrgMember(input: RequestGetOrgMemberInput): GeneralResponse
|
|
4427
|
+
inviteMembersToOrg(input: RequestInviteMembersToOrgInput): ResponseInviteMembersToOrg
|
|
4428
|
+
addOrgResource(input: RequestAddOrgResourceInput): ResponseOrgResourceOperation
|
|
4429
|
+
migrateOrgResource(input: RequestMigrateOrgResourceInput): ResponseOrgResourceOperation
|
|
4215
4430
|
}
|
|
4216
4431
|
|
|
4217
4432
|
type Query {
|
|
@@ -4249,10 +4464,10 @@ type Query {
|
|
|
4249
4464
|
getWebhookSenders: ResponseSenderList
|
|
4250
4465
|
sendTestMessage(input: RequestSendMsgInput): ResponseSendMsg
|
|
4251
4466
|
getSession(input: RequestGetSessionInput): ResponseGetSession
|
|
4252
|
-
getRoles(input:
|
|
4467
|
+
getRoles(input: RequestGetOrgDataInput): ResponseRoles
|
|
4253
4468
|
getRole(input: RequestTeamRoleInput): ResponseRole
|
|
4254
4469
|
getPermissions(input: TeamInput): ResponsePermissions
|
|
4255
|
-
getInvitations(input:
|
|
4470
|
+
getInvitations(input: RequestGetOrgDataInput): ResponseGetInvitations
|
|
4256
4471
|
getUsers(input: RequestUsersInput): ResponseUsers
|
|
4257
4472
|
getUser(input: RequestTeamUserInput): ResponseUser
|
|
4258
4473
|
getUserSessions(input: RequestUserSessionsInput): ResponseUserSessions
|
|
@@ -4302,4 +4517,9 @@ type Query {
|
|
|
4302
4517
|
createOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4303
4518
|
updateOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4304
4519
|
deleteOAuthClient(input: RequestDeleteOAuthClientInput): GeneralResponse
|
|
4305
|
-
|
|
4520
|
+
getOrgs(input: RequestGetOrgsInput): ResponseGetOrgs
|
|
4521
|
+
getOrg(input: RequestGetOrgInput): ResponseGetOrg
|
|
4522
|
+
getOrgMembers(input: RequestGetOrgDataInput): ResponseOrgUsers
|
|
4523
|
+
getOrgInvitableUsers(input: RequestInvitableUsersInput): ResponseUsers
|
|
4524
|
+
getOrgResource(input: RequestGetOrgResourceInput): ResponseGetOrgResource
|
|
4525
|
+
}`;
|
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,37 @@ 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
|
+
}
|
|
1013
|
+
|
|
946
1014
|
input RequestGetPassportIssuancesInput {
|
|
947
1015
|
teamDid: String
|
|
948
1016
|
ownerDid: String
|
|
@@ -1036,6 +1104,21 @@ input RequestInstallComponentInput {
|
|
|
1036
1104
|
dist: BlockletDistInput
|
|
1037
1105
|
}
|
|
1038
1106
|
|
|
1107
|
+
input RequestInvitableUsersInput {
|
|
1108
|
+
teamDid: String
|
|
1109
|
+
id: String
|
|
1110
|
+
query: UserQueryInput
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
input RequestInviteMembersToOrgInput {
|
|
1114
|
+
teamDid: String
|
|
1115
|
+
orgId: String
|
|
1116
|
+
userDids: [String!]
|
|
1117
|
+
role: String
|
|
1118
|
+
inviteType: String
|
|
1119
|
+
email: String
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1039
1122
|
input RequestIsDidDomainInput {
|
|
1040
1123
|
domain: String
|
|
1041
1124
|
}
|
|
@@ -1109,6 +1192,13 @@ input RequestMigrateApplicationToStructV2Input {
|
|
|
1109
1192
|
appSk: String
|
|
1110
1193
|
}
|
|
1111
1194
|
|
|
1195
|
+
input RequestMigrateOrgResourceInput {
|
|
1196
|
+
teamDid: String
|
|
1197
|
+
from: String
|
|
1198
|
+
to: String
|
|
1199
|
+
resourceIds: [String!]
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1112
1202
|
input RequestNodeRoutingInput {
|
|
1113
1203
|
provider: String
|
|
1114
1204
|
snapshotHash: String
|
|
@@ -1314,6 +1404,7 @@ input RequestTeamPermissionInput {
|
|
|
1314
1404
|
input RequestTeamRoleInput {
|
|
1315
1405
|
teamDid: String
|
|
1316
1406
|
role: RoleUpdateInput
|
|
1407
|
+
orgId: String
|
|
1317
1408
|
}
|
|
1318
1409
|
|
|
1319
1410
|
input RequestTeamUserInput {
|
|
@@ -1395,6 +1486,11 @@ input RequestUpdateNginxHttpsCertInput {
|
|
|
1395
1486
|
name: String
|
|
1396
1487
|
}
|
|
1397
1488
|
|
|
1489
|
+
input RequestUpdateOrgInput {
|
|
1490
|
+
teamDid: String
|
|
1491
|
+
org: OrgInput
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1398
1494
|
input RequestUpdatePermissionsForRoleInput {
|
|
1399
1495
|
teamDid: String
|
|
1400
1496
|
roleName: String
|
|
@@ -1714,6 +1810,17 @@ input UserMetadataStatusInput {
|
|
|
1714
1810
|
dateRange: [Uint32!]
|
|
1715
1811
|
}
|
|
1716
1812
|
|
|
1813
|
+
input UserOrgInput {
|
|
1814
|
+
id: String
|
|
1815
|
+
orgId: String
|
|
1816
|
+
userDid: String
|
|
1817
|
+
status: OrgUserStatus
|
|
1818
|
+
createdAt: Uint32
|
|
1819
|
+
updatedAt: Uint32
|
|
1820
|
+
user: UserInfoInput
|
|
1821
|
+
metadata: Any
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1717
1824
|
input UserPhoneInfoInput {
|
|
1718
1825
|
country: String
|
|
1719
1826
|
phoneNumber: String
|
|
@@ -2188,6 +2295,7 @@ type BlockletSettings {
|
|
|
2188
2295
|
gateway: Gateway
|
|
2189
2296
|
enableSessionHardening: Boolean
|
|
2190
2297
|
aigne: AigneConfig
|
|
2298
|
+
org: OrgSettings
|
|
2191
2299
|
}
|
|
2192
2300
|
|
|
2193
2301
|
type BlockletState {
|
|
@@ -2330,6 +2438,7 @@ type ComponentState {
|
|
|
2330
2438
|
dependents: [Dependent!]
|
|
2331
2439
|
required: Boolean
|
|
2332
2440
|
appRuntimeInfo: RuntimeInfo
|
|
2441
|
+
greenStatus: BlockletStatus
|
|
2333
2442
|
}
|
|
2334
2443
|
|
|
2335
2444
|
type ConfigEntry {
|
|
@@ -2549,6 +2658,14 @@ type InviteInfo {
|
|
|
2549
2658
|
teamDid: String
|
|
2550
2659
|
interfaceName: String
|
|
2551
2660
|
display: PassportDisplay
|
|
2661
|
+
orgId: String
|
|
2662
|
+
inviteUserDids: [String!]
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
type InviteResult {
|
|
2666
|
+
successDids: [String!]
|
|
2667
|
+
failedDids: [String!]
|
|
2668
|
+
inviteLink: String
|
|
2552
2669
|
}
|
|
2553
2670
|
|
|
2554
2671
|
type InviteSettings {
|
|
@@ -2813,6 +2930,41 @@ type OptionalDependencies {
|
|
|
2813
2930
|
required: Boolean
|
|
2814
2931
|
}
|
|
2815
2932
|
|
|
2933
|
+
type Org {
|
|
2934
|
+
id: String
|
|
2935
|
+
name: String
|
|
2936
|
+
description: String
|
|
2937
|
+
ownerDid: String
|
|
2938
|
+
createdAt: Uint32
|
|
2939
|
+
updatedAt: Uint32
|
|
2940
|
+
members: [UserOrg!]
|
|
2941
|
+
owner: UserInfo
|
|
2942
|
+
membersCount: Uint32
|
|
2943
|
+
passports: [Passport!]
|
|
2944
|
+
metadata: Any
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
type OrgResourceResult {
|
|
2948
|
+
success: [String!]
|
|
2949
|
+
failed: [String!]
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
type OrgResources {
|
|
2953
|
+
id: String
|
|
2954
|
+
orgId: String
|
|
2955
|
+
resourceId: String
|
|
2956
|
+
type: String
|
|
2957
|
+
metadata: Any
|
|
2958
|
+
createdAt: Uint32
|
|
2959
|
+
updatedAt: Uint32
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
type OrgSettings {
|
|
2963
|
+
enabled: Boolean
|
|
2964
|
+
maxMemberPerOrg: Uint32
|
|
2965
|
+
maxOrgPerUser: Uint32
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2816
2968
|
type OwnerNft {
|
|
2817
2969
|
did: String
|
|
2818
2970
|
holder: String
|
|
@@ -3229,6 +3381,22 @@ type ResponseGetNotifications {
|
|
|
3229
3381
|
unreadCount: Int32
|
|
3230
3382
|
}
|
|
3231
3383
|
|
|
3384
|
+
type ResponseGetOrg {
|
|
3385
|
+
code: StatusCode
|
|
3386
|
+
org: Org
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3389
|
+
type ResponseGetOrgResource {
|
|
3390
|
+
code: StatusCode
|
|
3391
|
+
data: [OrgResources!]
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
type ResponseGetOrgs {
|
|
3395
|
+
code: StatusCode
|
|
3396
|
+
orgs: [Org!]
|
|
3397
|
+
paging: Paging
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3232
3400
|
type ResponseGetPassportCountPerRole {
|
|
3233
3401
|
code: StatusCode
|
|
3234
3402
|
counts: [KeyValue!]
|
|
@@ -3325,6 +3493,11 @@ type ResponseGetWebhookEndpoints {
|
|
|
3325
3493
|
paging: Paging
|
|
3326
3494
|
}
|
|
3327
3495
|
|
|
3496
|
+
type ResponseInviteMembersToOrg {
|
|
3497
|
+
code: StatusCode
|
|
3498
|
+
data: InviteResult
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3328
3501
|
type ResponseIsDidDomain {
|
|
3329
3502
|
code: StatusCode
|
|
3330
3503
|
value: Boolean
|
|
@@ -3369,6 +3542,17 @@ type ResponseOAuthClients {
|
|
|
3369
3542
|
list: [OauthClient!]
|
|
3370
3543
|
}
|
|
3371
3544
|
|
|
3545
|
+
type ResponseOrgResourceOperation {
|
|
3546
|
+
code: StatusCode
|
|
3547
|
+
data: OrgResourceResult
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3550
|
+
type ResponseOrgUsers {
|
|
3551
|
+
code: StatusCode
|
|
3552
|
+
users: [UserOrg!]
|
|
3553
|
+
paging: Paging
|
|
3554
|
+
}
|
|
3555
|
+
|
|
3372
3556
|
type ResponsePassport {
|
|
3373
3557
|
code: StatusCode
|
|
3374
3558
|
passports: [Passport!]
|
|
@@ -3548,6 +3732,7 @@ type Role {
|
|
|
3548
3732
|
title: String
|
|
3549
3733
|
isProtected: Boolean
|
|
3550
3734
|
extra: Any
|
|
3735
|
+
orgId: String
|
|
3551
3736
|
}
|
|
3552
3737
|
|
|
3553
3738
|
type RoutingProvider {
|
|
@@ -3816,6 +4001,17 @@ type UserMetadataStatus {
|
|
|
3816
4001
|
dateRange: [Uint32!]
|
|
3817
4002
|
}
|
|
3818
4003
|
|
|
4004
|
+
type UserOrg {
|
|
4005
|
+
id: String
|
|
4006
|
+
orgId: String
|
|
4007
|
+
userDid: String
|
|
4008
|
+
status: OrgUserStatus
|
|
4009
|
+
createdAt: Uint32
|
|
4010
|
+
updatedAt: Uint32
|
|
4011
|
+
user: UserInfo
|
|
4012
|
+
metadata: Any
|
|
4013
|
+
}
|
|
4014
|
+
|
|
3819
4015
|
type UserPhoneInfo {
|
|
3820
4016
|
country: String
|
|
3821
4017
|
phoneNumber: String
|
|
@@ -4047,6 +4243,17 @@ enum NotificationAttachmentType {
|
|
|
4047
4243
|
section
|
|
4048
4244
|
}
|
|
4049
4245
|
|
|
4246
|
+
enum OrgQueryType {
|
|
4247
|
+
owned
|
|
4248
|
+
joined
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4251
|
+
enum OrgUserStatus {
|
|
4252
|
+
active
|
|
4253
|
+
inviting
|
|
4254
|
+
inactive
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4050
4257
|
enum PublishType {
|
|
4051
4258
|
resource
|
|
4052
4259
|
pack
|
|
@@ -4218,6 +4425,14 @@ type Mutation {
|
|
|
4218
4425
|
connectToAigne(input: RequestConnectToAigneInput): ResponseConnectToEndpoint
|
|
4219
4426
|
disconnectToAigne(input: RequestDisconnectToAigneInput): GeneralResponse
|
|
4220
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
|
|
4221
4436
|
}
|
|
4222
4437
|
|
|
4223
4438
|
type Query {
|
|
@@ -4255,10 +4470,10 @@ type Query {
|
|
|
4255
4470
|
getWebhookSenders: ResponseSenderList
|
|
4256
4471
|
sendTestMessage(input: RequestSendMsgInput): ResponseSendMsg
|
|
4257
4472
|
getSession(input: RequestGetSessionInput): ResponseGetSession
|
|
4258
|
-
getRoles(input:
|
|
4473
|
+
getRoles(input: RequestGetOrgDataInput): ResponseRoles
|
|
4259
4474
|
getRole(input: RequestTeamRoleInput): ResponseRole
|
|
4260
4475
|
getPermissions(input: TeamInput): ResponsePermissions
|
|
4261
|
-
getInvitations(input:
|
|
4476
|
+
getInvitations(input: RequestGetOrgDataInput): ResponseGetInvitations
|
|
4262
4477
|
getUsers(input: RequestUsersInput): ResponseUsers
|
|
4263
4478
|
getUser(input: RequestTeamUserInput): ResponseUser
|
|
4264
4479
|
getUserSessions(input: RequestUserSessionsInput): ResponseUserSessions
|
|
@@ -4310,4 +4525,9 @@ type Query {
|
|
|
4310
4525
|
createOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4311
4526
|
updateOAuthClient(input: RequestOAuthClientInput): ResponseOAuthClient
|
|
4312
4527
|
deleteOAuthClient(input: RequestDeleteOAuthClientInput): GeneralResponse
|
|
4528
|
+
getOrgs(input: RequestGetOrgsInput): ResponseGetOrgs
|
|
4529
|
+
getOrg(input: RequestGetOrgInput): ResponseGetOrg
|
|
4530
|
+
getOrgMembers(input: RequestGetOrgDataInput): ResponseOrgUsers
|
|
4531
|
+
getOrgInvitableUsers(input: RequestInvitableUsersInput): ResponseUsers
|
|
4532
|
+
getOrgResource(input: RequestGetOrgResourceInput): ResponseGetOrgResource
|
|
4313
4533
|
}
|
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-20251005-235515-42ad5caf",
|
|
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": "7b295929a123edac2cb292c43f2edda0d3e3e6b8",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@wangshijun/ts-protoc-gen": "^0.16.2"
|
|
19
19
|
}
|