@burdenoff/sdk-libs 2026.501.6
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/LICENSE +4 -0
- package/README.md +52 -0
- package/dist/chunk-NEREAHJ6.js +1 -0
- package/dist/chunk-YGVAZ3D7.js +2 -0
- package/dist/core/index.cjs +2 -0
- package/dist/core/index.d.cts +52 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/module-JDbvil5h.d.cts +194 -0
- package/dist/module-JDbvil5h.d.ts +194 -0
- package/dist/modules/auth/index.cjs +71 -0
- package/dist/modules/auth/index.d.cts +94 -0
- package/dist/modules/auth/index.d.ts +94 -0
- package/dist/modules/auth/index.js +71 -0
- package/dist/modules/billing/index.cjs +203 -0
- package/dist/modules/billing/index.d.cts +377 -0
- package/dist/modules/billing/index.d.ts +377 -0
- package/dist/modules/billing/index.js +203 -0
- package/dist/modules/channels/index.cjs +108 -0
- package/dist/modules/channels/index.d.cts +146 -0
- package/dist/modules/channels/index.d.ts +146 -0
- package/dist/modules/channels/index.js +108 -0
- package/dist/modules/conversations/index.cjs +61 -0
- package/dist/modules/conversations/index.d.cts +112 -0
- package/dist/modules/conversations/index.d.ts +112 -0
- package/dist/modules/conversations/index.js +61 -0
- package/dist/modules/devportal/index.cjs +216 -0
- package/dist/modules/devportal/index.d.cts +303 -0
- package/dist/modules/devportal/index.d.ts +303 -0
- package/dist/modules/devportal/index.js +216 -0
- package/dist/modules/export/index.cjs +61 -0
- package/dist/modules/export/index.d.cts +169 -0
- package/dist/modules/export/index.d.ts +169 -0
- package/dist/modules/export/index.js +61 -0
- package/dist/modules/files/index.cjs +51 -0
- package/dist/modules/files/index.d.cts +102 -0
- package/dist/modules/files/index.d.ts +102 -0
- package/dist/modules/files/index.js +51 -0
- package/dist/modules/groups/index.cjs +80 -0
- package/dist/modules/groups/index.d.cts +168 -0
- package/dist/modules/groups/index.d.ts +168 -0
- package/dist/modules/groups/index.js +80 -0
- package/dist/modules/health/index.cjs +5 -0
- package/dist/modules/health/index.d.cts +18 -0
- package/dist/modules/health/index.d.ts +18 -0
- package/dist/modules/health/index.js +5 -0
- package/dist/modules/integrations/index.cjs +65 -0
- package/dist/modules/integrations/index.d.cts +120 -0
- package/dist/modules/integrations/index.d.ts +120 -0
- package/dist/modules/integrations/index.js +65 -0
- package/dist/modules/notifications/index.cjs +53 -0
- package/dist/modules/notifications/index.d.cts +140 -0
- package/dist/modules/notifications/index.d.ts +140 -0
- package/dist/modules/notifications/index.js +53 -0
- package/dist/modules/organizations/index.cjs +72 -0
- package/dist/modules/organizations/index.d.cts +88 -0
- package/dist/modules/organizations/index.d.ts +88 -0
- package/dist/modules/organizations/index.js +72 -0
- package/dist/modules/products/index.cjs +149 -0
- package/dist/modules/products/index.d.cts +361 -0
- package/dist/modules/products/index.d.ts +361 -0
- package/dist/modules/products/index.js +149 -0
- package/dist/modules/rbac/index.cjs +55 -0
- package/dist/modules/rbac/index.d.cts +100 -0
- package/dist/modules/rbac/index.d.ts +100 -0
- package/dist/modules/rbac/index.js +55 -0
- package/dist/modules/scheduler/index.cjs +61 -0
- package/dist/modules/scheduler/index.d.cts +121 -0
- package/dist/modules/scheduler/index.d.ts +121 -0
- package/dist/modules/scheduler/index.js +61 -0
- package/dist/modules/security/index.cjs +61 -0
- package/dist/modules/security/index.d.cts +110 -0
- package/dist/modules/security/index.d.ts +110 -0
- package/dist/modules/security/index.js +61 -0
- package/dist/modules/store/index.cjs +82 -0
- package/dist/modules/store/index.d.cts +139 -0
- package/dist/modules/store/index.d.ts +139 -0
- package/dist/modules/store/index.js +82 -0
- package/dist/modules/support/index.cjs +56 -0
- package/dist/modules/support/index.d.cts +147 -0
- package/dist/modules/support/index.d.ts +147 -0
- package/dist/modules/support/index.js +56 -0
- package/dist/modules/tags/index.cjs +55 -0
- package/dist/modules/tags/index.d.cts +131 -0
- package/dist/modules/tags/index.d.ts +131 -0
- package/dist/modules/tags/index.js +55 -0
- package/dist/modules/tours/index.cjs +37 -0
- package/dist/modules/tours/index.d.cts +61 -0
- package/dist/modules/tours/index.d.ts +61 -0
- package/dist/modules/tours/index.js +37 -0
- package/dist/modules/vibecontrols/index.cjs +1081 -0
- package/dist/modules/vibecontrols/index.d.cts +1483 -0
- package/dist/modules/vibecontrols/index.d.ts +1483 -0
- package/dist/modules/vibecontrols/index.js +1081 -0
- package/dist/modules/workspaces/index.cjs +91 -0
- package/dist/modules/workspaces/index.d.cts +128 -0
- package/dist/modules/workspaces/index.d.ts +128 -0
- package/dist/modules/workspaces/index.js +91 -0
- package/package.json +117 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {e}from'../../chunk-NEREAHJ6.js';var r=`
|
|
2
|
+
fragment FileFields on File {
|
|
3
|
+
id name description workspaceId folderId
|
|
4
|
+
mimeType extension size s3Key s3Bucket
|
|
5
|
+
downloadUrl status visibility
|
|
6
|
+
starred downloadCount viewCount sha256Hash
|
|
7
|
+
uploadedById createdAt updatedAt
|
|
8
|
+
tags
|
|
9
|
+
}
|
|
10
|
+
`,l=`
|
|
11
|
+
fragment ShareFields on FileShare {
|
|
12
|
+
id fileId shareType accessLevel
|
|
13
|
+
token invitedEmail invitedUserIds requiresPassword
|
|
14
|
+
expiresAt maxDownloads accessCount downloadCount lastAccessedAt
|
|
15
|
+
revokedAt revokedBy createdById createdAt updatedAt
|
|
16
|
+
}
|
|
17
|
+
`,d=`
|
|
18
|
+
${r}
|
|
19
|
+
query GetFiles($folderId: ID, $pagination: PaginationInput) {
|
|
20
|
+
getFiles(folderId: $folderId, pagination: $pagination) {
|
|
21
|
+
files { ...FileFields }
|
|
22
|
+
total page limit hasMore
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`,p=`
|
|
26
|
+
${r}
|
|
27
|
+
query GetFile($id: ID!) { getFile(id: $id) { ...FileFields } }
|
|
28
|
+
`,F=`
|
|
29
|
+
query GetFileDownloadUrl($id: ID!, $expiresIn: Int) {
|
|
30
|
+
getFileDownloadUrl(id: $id, expiresIn: $expiresIn)
|
|
31
|
+
}
|
|
32
|
+
`,u=`
|
|
33
|
+
${r}
|
|
34
|
+
mutation UploadFile($input: UploadFileInput!) {
|
|
35
|
+
uploadFile(input: $input) {
|
|
36
|
+
file { ...FileFields }
|
|
37
|
+
uploadProgress
|
|
38
|
+
message
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
`,c=`
|
|
42
|
+
${l}
|
|
43
|
+
mutation CreateShare($input: FileCreateShareInput!) {
|
|
44
|
+
createShare(input: $input) { ...ShareFields }
|
|
45
|
+
}
|
|
46
|
+
`,I=`
|
|
47
|
+
${l}
|
|
48
|
+
mutation RevokeShare($id: ID!) {
|
|
49
|
+
revokeShare(id: $id) { ...ShareFields }
|
|
50
|
+
}
|
|
51
|
+
`;function h(a){let{workspace:i}=a.gql;return {async list(e,t){return (await i.request(d,{folderId:e,pagination:t})).getFiles},async get(e){return (await i.request(p,{id:e})).getFile},async upload(e$1){if(!e$1.contentBase64||e$1.contentBase64.length===0)throw new e("files.upload requires non-empty contentBase64");return (await i.request(u,{input:e$1})).uploadFile},async download(e,t){return (await i.request(F,{id:e,expiresIn:t})).getFileDownloadUrl},async share(e){return (await i.request(c,{input:e})).createShare},shareApi:{async revoke(e){return (await i.request(I,{id:e})).revokeShare}}}}var m={id:"files",version:"1.0.0",displayName:"Files",dependsOn:["auth"],attach(a){return h(a)}},$=m;export{$ as default};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict';var p=`
|
|
2
|
+
fragment GroupFields on Group {
|
|
3
|
+
id name slug description icon color
|
|
4
|
+
groupType visibility scope status isSystemGroup
|
|
5
|
+
workspaceId createdBy ownerId
|
|
6
|
+
membershipType memberCount
|
|
7
|
+
metadata tags
|
|
8
|
+
createdAt updatedAt archivedAt deletedAt
|
|
9
|
+
}
|
|
10
|
+
`,a=`
|
|
11
|
+
fragment MembershipFields on GroupMembership {
|
|
12
|
+
id entityType entityId
|
|
13
|
+
membershipType role source
|
|
14
|
+
invitedBy invitationStatus invitedAt joinedAt expiresAt
|
|
15
|
+
metadata createdAt updatedAt
|
|
16
|
+
}
|
|
17
|
+
`,d=`
|
|
18
|
+
${p}
|
|
19
|
+
query Groups($first: Int, $after: String, $filter: GroupFilter) {
|
|
20
|
+
groups(first: $first, after: $after, filter: $filter) {
|
|
21
|
+
edges { node { ...GroupFields } cursor }
|
|
22
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
23
|
+
totalCount
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`,n=`
|
|
27
|
+
${p}
|
|
28
|
+
query Group($id: ID!) { group(id: $id) { ...GroupFields } }
|
|
29
|
+
`,G=`
|
|
30
|
+
${p}
|
|
31
|
+
mutation CreateGroup($input: CreateGroupInput!) {
|
|
32
|
+
createGroup(input: $input) { ...GroupFields }
|
|
33
|
+
}
|
|
34
|
+
`,m=`
|
|
35
|
+
${p}
|
|
36
|
+
mutation UpdateGroup($id: ID!, $input: UpdateGroupInput!) {
|
|
37
|
+
updateGroup(id: $id, input: $input) { ...GroupFields }
|
|
38
|
+
}
|
|
39
|
+
`,c="mutation DeleteGroup($id: ID!) { deleteGroup(id: $id) }",g=`
|
|
40
|
+
${a}
|
|
41
|
+
query GroupMembers($groupId: ID!, $first: Int, $after: String) {
|
|
42
|
+
groupMembers(groupId: $groupId, first: $first, after: $after) {
|
|
43
|
+
edges { node { ...MembershipFields } cursor }
|
|
44
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
45
|
+
totalCount
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`,l=`
|
|
49
|
+
${a}
|
|
50
|
+
mutation AddGroupMembers($groupId: ID!, $members: [AddMemberInput!]!) {
|
|
51
|
+
addGroupMembers(groupId: $groupId, members: $members) {
|
|
52
|
+
added { ...MembershipFields }
|
|
53
|
+
failed { entityId entityType error }
|
|
54
|
+
successCount failedCount
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`,b=`
|
|
58
|
+
mutation RemoveGroupMembers($groupId: ID!, $membershipIds: [ID!]!) {
|
|
59
|
+
removeGroupMembers(groupId: $groupId, membershipIds: $membershipIds) {
|
|
60
|
+
removed failed successCount failedCount
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`,M=`
|
|
64
|
+
${p}
|
|
65
|
+
query GroupHierarchy($id: ID!) {
|
|
66
|
+
group(id: $id) {
|
|
67
|
+
...GroupFields
|
|
68
|
+
parentGroups { ...GroupFields }
|
|
69
|
+
childGroups { ...GroupFields }
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`,I=`
|
|
73
|
+
query GroupAuditLogs($groupId: ID!, $first: Int, $after: String) {
|
|
74
|
+
groupAuditLogs(groupId: $groupId, first: $first, after: $after) {
|
|
75
|
+
id groupId eventType description
|
|
76
|
+
actorType actorId changes metadata
|
|
77
|
+
ipAddress userAgent createdAt
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`;function A(s){let{workspace:t}=s.gql;return {async list(e,r,o){return (await t.request(d,{first:e,after:r,filter:o})).groups},async get(e){return (await t.request(n,{id:e})).group},async create(e){return (await t.request(G,{input:e})).createGroup},async update(e,r){return (await t.request(m,{id:e,input:r})).updateGroup},async delete(e){return (await t.request(c,{id:e})).deleteGroup},members:{async list(e,r,o){return (await t.request(g,{groupId:e,first:r,after:o})).groupMembers},async add(e,r){return (await t.request(l,{groupId:e,members:r})).addGroupMembers},async remove(e,r){return (await t.request(b,{groupId:e,membershipIds:r})).removeGroupMembers}},async hierarchy(e){let r=await t.request(M,{id:e});if(!r.group)return null;let{parentGroups:o,childGroups:u,...R}=r.group;return {group:R,parentGroups:o,childGroups:u}},async activity(e,r,o){return (await t.request(I,{groupId:e,first:r,after:o})).groupAuditLogs}}}var f={id:"groups",version:"1.0.0",displayName:"Groups",dependsOn:["auth"],attach(s){return A(s)}},_=f;module.exports=_;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GroupType = 'TEAM' | 'SECURITY_GROUP' | 'RESOURCE_COLLECTION' | 'AUDIENCE' | 'CHANNEL_GROUP' | 'BETA_PROGRAM' | 'DYNAMIC_AUDIENCE' | 'FEATURE_FLAG_GROUP' | 'PROJECT_GROUP' | 'CUSTOM';
|
|
5
|
+
type GroupVisibility = 'PRIVATE' | 'INTERNAL' | 'PUBLIC_LINK' | 'DIRECTORY_LISTED';
|
|
6
|
+
type GroupScope = 'GLOBAL' | 'TENANT' | 'WORKSPACE' | 'PRIVATE';
|
|
7
|
+
type GroupStatus = 'DRAFT' | 'ACTIVE' | 'FROZEN' | 'ARCHIVED' | 'DELETED' | 'SUSPENDED';
|
|
8
|
+
type GroupCompositionMode = 'HOMOGENEOUS' | 'HETEROGENEOUS';
|
|
9
|
+
type MembershipType = 'STATIC' | 'DYNAMIC' | 'HYBRID';
|
|
10
|
+
type MembershipRole = 'OWNER' | 'ADMIN' | 'MODERATOR' | 'MEMBER' | 'OBSERVER' | 'GUEST' | 'BOT';
|
|
11
|
+
type MembershipSource = 'MANUAL' | 'INVITED' | 'RULE_BASED' | 'INHERITED' | 'MIGRATED';
|
|
12
|
+
type InvitationStatus = 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
|
|
13
|
+
interface PageInfo {
|
|
14
|
+
hasNextPage: boolean;
|
|
15
|
+
hasPreviousPage: boolean;
|
|
16
|
+
startCursor?: string | null;
|
|
17
|
+
endCursor?: string | null;
|
|
18
|
+
}
|
|
19
|
+
interface Group {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
description?: string | null;
|
|
24
|
+
icon?: string | null;
|
|
25
|
+
color?: string | null;
|
|
26
|
+
groupType: GroupType;
|
|
27
|
+
visibility: GroupVisibility;
|
|
28
|
+
scope: GroupScope;
|
|
29
|
+
status: GroupStatus;
|
|
30
|
+
isSystemGroup: boolean;
|
|
31
|
+
workspaceId: string;
|
|
32
|
+
createdBy: string;
|
|
33
|
+
ownerId: string;
|
|
34
|
+
membershipType: MembershipType;
|
|
35
|
+
memberCount: number;
|
|
36
|
+
metadata?: Json;
|
|
37
|
+
tags?: Json;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
archivedAt?: string | null;
|
|
41
|
+
deletedAt?: string | null;
|
|
42
|
+
}
|
|
43
|
+
interface GroupMembership {
|
|
44
|
+
id: string;
|
|
45
|
+
entityType: string;
|
|
46
|
+
entityId: string;
|
|
47
|
+
membershipType: MembershipType;
|
|
48
|
+
role: MembershipRole;
|
|
49
|
+
source: MembershipSource;
|
|
50
|
+
invitedBy?: string | null;
|
|
51
|
+
invitationStatus?: InvitationStatus | null;
|
|
52
|
+
invitedAt?: string | null;
|
|
53
|
+
joinedAt?: string | null;
|
|
54
|
+
expiresAt?: string | null;
|
|
55
|
+
metadata?: Json;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
}
|
|
59
|
+
interface GroupMembershipEdge {
|
|
60
|
+
node: GroupMembership;
|
|
61
|
+
cursor: string;
|
|
62
|
+
}
|
|
63
|
+
interface MembershipConnection {
|
|
64
|
+
edges: GroupMembershipEdge[];
|
|
65
|
+
pageInfo: PageInfo;
|
|
66
|
+
totalCount: number;
|
|
67
|
+
}
|
|
68
|
+
interface GroupEdge {
|
|
69
|
+
node: Group;
|
|
70
|
+
cursor: string;
|
|
71
|
+
}
|
|
72
|
+
interface GroupConnection {
|
|
73
|
+
edges: GroupEdge[];
|
|
74
|
+
pageInfo: PageInfo;
|
|
75
|
+
totalCount: number;
|
|
76
|
+
}
|
|
77
|
+
interface GroupAuditLog {
|
|
78
|
+
id: string;
|
|
79
|
+
groupId: string;
|
|
80
|
+
eventType: string;
|
|
81
|
+
description: string;
|
|
82
|
+
actorType: string;
|
|
83
|
+
actorId: string;
|
|
84
|
+
changes?: Json;
|
|
85
|
+
metadata?: Json;
|
|
86
|
+
ipAddress?: string | null;
|
|
87
|
+
userAgent?: string | null;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
}
|
|
90
|
+
interface GroupFilter {
|
|
91
|
+
groupType?: GroupType;
|
|
92
|
+
visibility?: GroupVisibility;
|
|
93
|
+
status?: GroupStatus;
|
|
94
|
+
scope?: GroupScope;
|
|
95
|
+
searchText?: string;
|
|
96
|
+
memberEntityId?: string;
|
|
97
|
+
}
|
|
98
|
+
interface CreateGroupInput {
|
|
99
|
+
name: string;
|
|
100
|
+
groupType: GroupType;
|
|
101
|
+
slug?: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
icon?: string;
|
|
104
|
+
color?: string;
|
|
105
|
+
visibility?: GroupVisibility;
|
|
106
|
+
scope?: GroupScope;
|
|
107
|
+
membershipType?: MembershipType;
|
|
108
|
+
metadata?: Json;
|
|
109
|
+
tags?: Json;
|
|
110
|
+
}
|
|
111
|
+
interface UpdateGroupInput {
|
|
112
|
+
name?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
icon?: string;
|
|
115
|
+
color?: string;
|
|
116
|
+
visibility?: GroupVisibility;
|
|
117
|
+
status?: GroupStatus;
|
|
118
|
+
membershipType?: MembershipType;
|
|
119
|
+
metadata?: Json;
|
|
120
|
+
tags?: Json;
|
|
121
|
+
}
|
|
122
|
+
interface AddMemberInput {
|
|
123
|
+
email?: string;
|
|
124
|
+
entityId?: string;
|
|
125
|
+
entityType?: string;
|
|
126
|
+
role?: MembershipRole;
|
|
127
|
+
expiresAt?: string;
|
|
128
|
+
}
|
|
129
|
+
interface AddMembersResult {
|
|
130
|
+
added: GroupMembership[];
|
|
131
|
+
failed: Array<{
|
|
132
|
+
entityId: string;
|
|
133
|
+
entityType: string;
|
|
134
|
+
error: string;
|
|
135
|
+
}>;
|
|
136
|
+
successCount: number;
|
|
137
|
+
failedCount: number;
|
|
138
|
+
}
|
|
139
|
+
interface RemoveMembersResult {
|
|
140
|
+
removed: string[];
|
|
141
|
+
failed: string[];
|
|
142
|
+
successCount: number;
|
|
143
|
+
failedCount: number;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface GroupsMembersApi {
|
|
147
|
+
list(groupId: string, first?: number, after?: string): Promise<MembershipConnection>;
|
|
148
|
+
add(groupId: string, members: AddMemberInput[]): Promise<AddMembersResult>;
|
|
149
|
+
remove(groupId: string, membershipIds: string[]): Promise<RemoveMembersResult>;
|
|
150
|
+
}
|
|
151
|
+
interface GroupsApi {
|
|
152
|
+
list(first?: number, after?: string, filter?: GroupFilter): Promise<GroupConnection>;
|
|
153
|
+
get(id: string): Promise<Group | null>;
|
|
154
|
+
create(input: CreateGroupInput): Promise<Group>;
|
|
155
|
+
update(id: string, input: UpdateGroupInput): Promise<Group>;
|
|
156
|
+
delete(id: string): Promise<boolean>;
|
|
157
|
+
members: GroupsMembersApi;
|
|
158
|
+
hierarchy(id: string): Promise<{
|
|
159
|
+
group: Group;
|
|
160
|
+
parentGroups: Group[];
|
|
161
|
+
childGroups: Group[];
|
|
162
|
+
} | null>;
|
|
163
|
+
activity(id: string, first?: number, after?: string): Promise<GroupAuditLog[]>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare const groupsModule: SdkModule<GroupsApi>;
|
|
167
|
+
|
|
168
|
+
export { type AddMemberInput, type AddMembersResult, type CreateGroupInput, type Group, type GroupAuditLog, type GroupCompositionMode, type GroupConnection, type GroupEdge, type GroupFilter, type GroupMembership, type GroupMembershipEdge, type GroupScope, type GroupStatus, type GroupType, type GroupVisibility, type GroupsApi, type GroupsMembersApi, type InvitationStatus, type MembershipConnection, type MembershipRole, type MembershipSource, type MembershipType, type PageInfo, type RemoveMembersResult, type UpdateGroupInput, groupsModule as default };
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type GroupType = 'TEAM' | 'SECURITY_GROUP' | 'RESOURCE_COLLECTION' | 'AUDIENCE' | 'CHANNEL_GROUP' | 'BETA_PROGRAM' | 'DYNAMIC_AUDIENCE' | 'FEATURE_FLAG_GROUP' | 'PROJECT_GROUP' | 'CUSTOM';
|
|
5
|
+
type GroupVisibility = 'PRIVATE' | 'INTERNAL' | 'PUBLIC_LINK' | 'DIRECTORY_LISTED';
|
|
6
|
+
type GroupScope = 'GLOBAL' | 'TENANT' | 'WORKSPACE' | 'PRIVATE';
|
|
7
|
+
type GroupStatus = 'DRAFT' | 'ACTIVE' | 'FROZEN' | 'ARCHIVED' | 'DELETED' | 'SUSPENDED';
|
|
8
|
+
type GroupCompositionMode = 'HOMOGENEOUS' | 'HETEROGENEOUS';
|
|
9
|
+
type MembershipType = 'STATIC' | 'DYNAMIC' | 'HYBRID';
|
|
10
|
+
type MembershipRole = 'OWNER' | 'ADMIN' | 'MODERATOR' | 'MEMBER' | 'OBSERVER' | 'GUEST' | 'BOT';
|
|
11
|
+
type MembershipSource = 'MANUAL' | 'INVITED' | 'RULE_BASED' | 'INHERITED' | 'MIGRATED';
|
|
12
|
+
type InvitationStatus = 'PENDING' | 'ACCEPTED' | 'DECLINED' | 'EXPIRED' | 'CANCELLED';
|
|
13
|
+
interface PageInfo {
|
|
14
|
+
hasNextPage: boolean;
|
|
15
|
+
hasPreviousPage: boolean;
|
|
16
|
+
startCursor?: string | null;
|
|
17
|
+
endCursor?: string | null;
|
|
18
|
+
}
|
|
19
|
+
interface Group {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
slug: string;
|
|
23
|
+
description?: string | null;
|
|
24
|
+
icon?: string | null;
|
|
25
|
+
color?: string | null;
|
|
26
|
+
groupType: GroupType;
|
|
27
|
+
visibility: GroupVisibility;
|
|
28
|
+
scope: GroupScope;
|
|
29
|
+
status: GroupStatus;
|
|
30
|
+
isSystemGroup: boolean;
|
|
31
|
+
workspaceId: string;
|
|
32
|
+
createdBy: string;
|
|
33
|
+
ownerId: string;
|
|
34
|
+
membershipType: MembershipType;
|
|
35
|
+
memberCount: number;
|
|
36
|
+
metadata?: Json;
|
|
37
|
+
tags?: Json;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
archivedAt?: string | null;
|
|
41
|
+
deletedAt?: string | null;
|
|
42
|
+
}
|
|
43
|
+
interface GroupMembership {
|
|
44
|
+
id: string;
|
|
45
|
+
entityType: string;
|
|
46
|
+
entityId: string;
|
|
47
|
+
membershipType: MembershipType;
|
|
48
|
+
role: MembershipRole;
|
|
49
|
+
source: MembershipSource;
|
|
50
|
+
invitedBy?: string | null;
|
|
51
|
+
invitationStatus?: InvitationStatus | null;
|
|
52
|
+
invitedAt?: string | null;
|
|
53
|
+
joinedAt?: string | null;
|
|
54
|
+
expiresAt?: string | null;
|
|
55
|
+
metadata?: Json;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
}
|
|
59
|
+
interface GroupMembershipEdge {
|
|
60
|
+
node: GroupMembership;
|
|
61
|
+
cursor: string;
|
|
62
|
+
}
|
|
63
|
+
interface MembershipConnection {
|
|
64
|
+
edges: GroupMembershipEdge[];
|
|
65
|
+
pageInfo: PageInfo;
|
|
66
|
+
totalCount: number;
|
|
67
|
+
}
|
|
68
|
+
interface GroupEdge {
|
|
69
|
+
node: Group;
|
|
70
|
+
cursor: string;
|
|
71
|
+
}
|
|
72
|
+
interface GroupConnection {
|
|
73
|
+
edges: GroupEdge[];
|
|
74
|
+
pageInfo: PageInfo;
|
|
75
|
+
totalCount: number;
|
|
76
|
+
}
|
|
77
|
+
interface GroupAuditLog {
|
|
78
|
+
id: string;
|
|
79
|
+
groupId: string;
|
|
80
|
+
eventType: string;
|
|
81
|
+
description: string;
|
|
82
|
+
actorType: string;
|
|
83
|
+
actorId: string;
|
|
84
|
+
changes?: Json;
|
|
85
|
+
metadata?: Json;
|
|
86
|
+
ipAddress?: string | null;
|
|
87
|
+
userAgent?: string | null;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
}
|
|
90
|
+
interface GroupFilter {
|
|
91
|
+
groupType?: GroupType;
|
|
92
|
+
visibility?: GroupVisibility;
|
|
93
|
+
status?: GroupStatus;
|
|
94
|
+
scope?: GroupScope;
|
|
95
|
+
searchText?: string;
|
|
96
|
+
memberEntityId?: string;
|
|
97
|
+
}
|
|
98
|
+
interface CreateGroupInput {
|
|
99
|
+
name: string;
|
|
100
|
+
groupType: GroupType;
|
|
101
|
+
slug?: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
icon?: string;
|
|
104
|
+
color?: string;
|
|
105
|
+
visibility?: GroupVisibility;
|
|
106
|
+
scope?: GroupScope;
|
|
107
|
+
membershipType?: MembershipType;
|
|
108
|
+
metadata?: Json;
|
|
109
|
+
tags?: Json;
|
|
110
|
+
}
|
|
111
|
+
interface UpdateGroupInput {
|
|
112
|
+
name?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
icon?: string;
|
|
115
|
+
color?: string;
|
|
116
|
+
visibility?: GroupVisibility;
|
|
117
|
+
status?: GroupStatus;
|
|
118
|
+
membershipType?: MembershipType;
|
|
119
|
+
metadata?: Json;
|
|
120
|
+
tags?: Json;
|
|
121
|
+
}
|
|
122
|
+
interface AddMemberInput {
|
|
123
|
+
email?: string;
|
|
124
|
+
entityId?: string;
|
|
125
|
+
entityType?: string;
|
|
126
|
+
role?: MembershipRole;
|
|
127
|
+
expiresAt?: string;
|
|
128
|
+
}
|
|
129
|
+
interface AddMembersResult {
|
|
130
|
+
added: GroupMembership[];
|
|
131
|
+
failed: Array<{
|
|
132
|
+
entityId: string;
|
|
133
|
+
entityType: string;
|
|
134
|
+
error: string;
|
|
135
|
+
}>;
|
|
136
|
+
successCount: number;
|
|
137
|
+
failedCount: number;
|
|
138
|
+
}
|
|
139
|
+
interface RemoveMembersResult {
|
|
140
|
+
removed: string[];
|
|
141
|
+
failed: string[];
|
|
142
|
+
successCount: number;
|
|
143
|
+
failedCount: number;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface GroupsMembersApi {
|
|
147
|
+
list(groupId: string, first?: number, after?: string): Promise<MembershipConnection>;
|
|
148
|
+
add(groupId: string, members: AddMemberInput[]): Promise<AddMembersResult>;
|
|
149
|
+
remove(groupId: string, membershipIds: string[]): Promise<RemoveMembersResult>;
|
|
150
|
+
}
|
|
151
|
+
interface GroupsApi {
|
|
152
|
+
list(first?: number, after?: string, filter?: GroupFilter): Promise<GroupConnection>;
|
|
153
|
+
get(id: string): Promise<Group | null>;
|
|
154
|
+
create(input: CreateGroupInput): Promise<Group>;
|
|
155
|
+
update(id: string, input: UpdateGroupInput): Promise<Group>;
|
|
156
|
+
delete(id: string): Promise<boolean>;
|
|
157
|
+
members: GroupsMembersApi;
|
|
158
|
+
hierarchy(id: string): Promise<{
|
|
159
|
+
group: Group;
|
|
160
|
+
parentGroups: Group[];
|
|
161
|
+
childGroups: Group[];
|
|
162
|
+
} | null>;
|
|
163
|
+
activity(id: string, first?: number, after?: string): Promise<GroupAuditLog[]>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare const groupsModule: SdkModule<GroupsApi>;
|
|
167
|
+
|
|
168
|
+
export { type AddMemberInput, type AddMembersResult, type CreateGroupInput, type Group, type GroupAuditLog, type GroupCompositionMode, type GroupConnection, type GroupEdge, type GroupFilter, type GroupMembership, type GroupMembershipEdge, type GroupScope, type GroupStatus, type GroupType, type GroupVisibility, type GroupsApi, type GroupsMembersApi, type InvitationStatus, type MembershipConnection, type MembershipRole, type MembershipSource, type MembershipType, type PageInfo, type RemoveMembersResult, type UpdateGroupInput, groupsModule as default };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var p=`
|
|
2
|
+
fragment GroupFields on Group {
|
|
3
|
+
id name slug description icon color
|
|
4
|
+
groupType visibility scope status isSystemGroup
|
|
5
|
+
workspaceId createdBy ownerId
|
|
6
|
+
membershipType memberCount
|
|
7
|
+
metadata tags
|
|
8
|
+
createdAt updatedAt archivedAt deletedAt
|
|
9
|
+
}
|
|
10
|
+
`,d=`
|
|
11
|
+
fragment MembershipFields on GroupMembership {
|
|
12
|
+
id entityType entityId
|
|
13
|
+
membershipType role source
|
|
14
|
+
invitedBy invitationStatus invitedAt joinedAt expiresAt
|
|
15
|
+
metadata createdAt updatedAt
|
|
16
|
+
}
|
|
17
|
+
`,n=`
|
|
18
|
+
${p}
|
|
19
|
+
query Groups($first: Int, $after: String, $filter: GroupFilter) {
|
|
20
|
+
groups(first: $first, after: $after, filter: $filter) {
|
|
21
|
+
edges { node { ...GroupFields } cursor }
|
|
22
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
23
|
+
totalCount
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`,G=`
|
|
27
|
+
${p}
|
|
28
|
+
query Group($id: ID!) { group(id: $id) { ...GroupFields } }
|
|
29
|
+
`,m=`
|
|
30
|
+
${p}
|
|
31
|
+
mutation CreateGroup($input: CreateGroupInput!) {
|
|
32
|
+
createGroup(input: $input) { ...GroupFields }
|
|
33
|
+
}
|
|
34
|
+
`,c=`
|
|
35
|
+
${p}
|
|
36
|
+
mutation UpdateGroup($id: ID!, $input: UpdateGroupInput!) {
|
|
37
|
+
updateGroup(id: $id, input: $input) { ...GroupFields }
|
|
38
|
+
}
|
|
39
|
+
`,g="mutation DeleteGroup($id: ID!) { deleteGroup(id: $id) }",l=`
|
|
40
|
+
${d}
|
|
41
|
+
query GroupMembers($groupId: ID!, $first: Int, $after: String) {
|
|
42
|
+
groupMembers(groupId: $groupId, first: $first, after: $after) {
|
|
43
|
+
edges { node { ...MembershipFields } cursor }
|
|
44
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
45
|
+
totalCount
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`,b=`
|
|
49
|
+
${d}
|
|
50
|
+
mutation AddGroupMembers($groupId: ID!, $members: [AddMemberInput!]!) {
|
|
51
|
+
addGroupMembers(groupId: $groupId, members: $members) {
|
|
52
|
+
added { ...MembershipFields }
|
|
53
|
+
failed { entityId entityType error }
|
|
54
|
+
successCount failedCount
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`,M=`
|
|
58
|
+
mutation RemoveGroupMembers($groupId: ID!, $membershipIds: [ID!]!) {
|
|
59
|
+
removeGroupMembers(groupId: $groupId, membershipIds: $membershipIds) {
|
|
60
|
+
removed failed successCount failedCount
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`,I=`
|
|
64
|
+
${p}
|
|
65
|
+
query GroupHierarchy($id: ID!) {
|
|
66
|
+
group(id: $id) {
|
|
67
|
+
...GroupFields
|
|
68
|
+
parentGroups { ...GroupFields }
|
|
69
|
+
childGroups { ...GroupFields }
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`,A=`
|
|
73
|
+
query GroupAuditLogs($groupId: ID!, $first: Int, $after: String) {
|
|
74
|
+
groupAuditLogs(groupId: $groupId, first: $first, after: $after) {
|
|
75
|
+
id groupId eventType description
|
|
76
|
+
actorType actorId changes metadata
|
|
77
|
+
ipAddress userAgent createdAt
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
`;function R(s){let{workspace:t}=s.gql;return {async list(e,r,o){return (await t.request(n,{first:e,after:r,filter:o})).groups},async get(e){return (await t.request(G,{id:e})).group},async create(e){return (await t.request(m,{input:e})).createGroup},async update(e,r){return (await t.request(c,{id:e,input:r})).updateGroup},async delete(e){return (await t.request(g,{id:e})).deleteGroup},members:{async list(e,r,o){return (await t.request(l,{groupId:e,first:r,after:o})).groupMembers},async add(e,r){return (await t.request(b,{groupId:e,members:r})).addGroupMembers},async remove(e,r){return (await t.request(M,{groupId:e,membershipIds:r})).removeGroupMembers}},async hierarchy(e){let r=await t.request(I,{id:e});if(!r.group)return null;let{parentGroups:o,childGroups:u,...f}=r.group;return {group:f,parentGroups:o,childGroups:u}},async activity(e,r,o){return (await t.request(A,{groupId:e,first:r,after:o})).groupAuditLogs}}}var y={id:"groups",version:"1.0.0",displayName:"Groups",dependsOn:["auth"],attach(s){return R(s)}},S=y;export{S as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use strict';var t=`
|
|
2
|
+
query SdkHealthPing {
|
|
3
|
+
__typename
|
|
4
|
+
}
|
|
5
|
+
`;function a(e){return {async ping(){return e.logger.debug("health.ping"),"pong"},async globalPing(){return await e.gql.global.request(t),{ok:true,gateway:"global"}},async workspacePing(){return await e.gql.workspace.request(t),{ok:true,gateway:"workspace"}}}}var r={id:"health",version:"1.0.0",displayName:"Health",attach(e){return a(e)}},s=r;module.exports=s;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
interface HealthApi {
|
|
5
|
+
ping(): Promise<string>;
|
|
6
|
+
globalPing(): Promise<{
|
|
7
|
+
ok: true;
|
|
8
|
+
gateway: 'global';
|
|
9
|
+
}>;
|
|
10
|
+
workspacePing(): Promise<{
|
|
11
|
+
ok: true;
|
|
12
|
+
gateway: 'workspace';
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const healthModule: SdkModule<HealthApi>;
|
|
17
|
+
|
|
18
|
+
export { type HealthApi, healthModule as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
interface HealthApi {
|
|
5
|
+
ping(): Promise<string>;
|
|
6
|
+
globalPing(): Promise<{
|
|
7
|
+
ok: true;
|
|
8
|
+
gateway: 'global';
|
|
9
|
+
}>;
|
|
10
|
+
workspacePing(): Promise<{
|
|
11
|
+
ok: true;
|
|
12
|
+
gateway: 'workspace';
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare const healthModule: SdkModule<HealthApi>;
|
|
17
|
+
|
|
18
|
+
export { type HealthApi, healthModule as default };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var t=`
|
|
2
|
+
query SdkHealthPing {
|
|
3
|
+
__typename
|
|
4
|
+
}
|
|
5
|
+
`;function r(e){return {async ping(){return e.logger.debug("health.ping"),"pong"},async globalPing(){return await e.gql.global.request(t),{ok:true,gateway:"global"}},async workspacePing(){return await e.gql.workspace.request(t),{ok:true,gateway:"workspace"}}}}var n={id:"health",version:"1.0.0",displayName:"Health",attach(e){return r(e)}},c=n;export{c as default};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';var s=`
|
|
2
|
+
fragment IntegrationProviderFields on IntegrationProvider {
|
|
3
|
+
id key name category authType description icon color baseUrl
|
|
4
|
+
isEnabled isBuiltIn defaultScopes supportedFeatures connectionCount
|
|
5
|
+
createdAt updatedAt
|
|
6
|
+
}
|
|
7
|
+
`,a=`
|
|
8
|
+
fragment IntegrationConnectionFields on IntegrationConnection {
|
|
9
|
+
id name description providerId status config errorMessage
|
|
10
|
+
externalAccountEmail externalAccountId externalAccountName
|
|
11
|
+
grantedScopes channelId organizationId workspaceId
|
|
12
|
+
createdBy createdAt updatedAt lastUsedAt
|
|
13
|
+
}
|
|
14
|
+
`,m=`
|
|
15
|
+
fragment IntegrationLogFields on IntegrationLog {
|
|
16
|
+
id action level message connectionId actorId
|
|
17
|
+
metadata errorDetails createdAt
|
|
18
|
+
}
|
|
19
|
+
`,c=`
|
|
20
|
+
${s}
|
|
21
|
+
query GetProviders($filter: ProviderFilterInput, $pagination: IntegrationsPaginationInput) {
|
|
22
|
+
getProviders(filter: $filter, pagination: $pagination) {
|
|
23
|
+
items { ...IntegrationProviderFields }
|
|
24
|
+
total
|
|
25
|
+
hasMore
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
`,d=`
|
|
29
|
+
${s}
|
|
30
|
+
query GetProvider($id: ID!) {
|
|
31
|
+
getProvider(id: $id) { ...IntegrationProviderFields }
|
|
32
|
+
}
|
|
33
|
+
`,p=`
|
|
34
|
+
${a}
|
|
35
|
+
query GetConnections($filter: ConnectionFilterInput, $pagination: IntegrationsPaginationInput) {
|
|
36
|
+
getConnections(filter: $filter, pagination: $pagination) {
|
|
37
|
+
items { ...IntegrationConnectionFields }
|
|
38
|
+
total
|
|
39
|
+
hasMore
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
`,g=`
|
|
43
|
+
${a}
|
|
44
|
+
query GetConnection($id: ID!) {
|
|
45
|
+
getConnection(id: $id) { ...IntegrationConnectionFields }
|
|
46
|
+
}
|
|
47
|
+
`,I=`
|
|
48
|
+
${a}
|
|
49
|
+
mutation CreateConnection($input: CreateConnectionInput!) {
|
|
50
|
+
createConnection(input: $input) { ...IntegrationConnectionFields }
|
|
51
|
+
}
|
|
52
|
+
`,l=`
|
|
53
|
+
mutation DeleteConnection($id: ID!, $deleteVaultSecret: Boolean) {
|
|
54
|
+
deleteConnection(id: $id, deleteVaultSecret: $deleteVaultSecret)
|
|
55
|
+
}
|
|
56
|
+
`,C=`
|
|
57
|
+
${m}
|
|
58
|
+
query GetConnectionLogs($connectionId: ID!, $pagination: IntegrationsPaginationInput) {
|
|
59
|
+
getConnectionLogs(connectionId: $connectionId, pagination: $pagination) {
|
|
60
|
+
items { ...IntegrationLogFields }
|
|
61
|
+
total
|
|
62
|
+
hasMore
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;function u(o){let{workspace:e}=o.gql;return {async list(t,n){return (await e.request(p,{filter:t,pagination:n})).getConnections},async get(t){return (await e.request(g,{id:t})).getConnection},async add(t){return (await e.request(I,{input:t})).createConnection},async delete(t,n){return (await e.request(l,{id:t,deleteVaultSecret:n??null})).deleteConnection}}}function P(o){let{workspace:e}=o.gql;return {async list(t,n){return (await e.request(c,{filter:t,pagination:n})).getProviders},async get(t){return (await e.request(d,{id:t})).getProvider}}}var v={id:"integrations",version:"1.0.0",displayName:"Integrations",dependsOn:["auth"],attach(o){let{workspace:e}=o.gql;return {providers:P(o),connections:u(o),async logs(t,n){return (await e.request(C,{connectionId:t,pagination:n})).getConnectionLogs}}}},F=v;module.exports=F;
|