@burdenoff/sdk-libs 2026.522.1 → 2026.525.1
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/dist/modules/billing/index.cjs +46 -32
- package/dist/modules/billing/index.d.cts +19 -14
- package/dist/modules/billing/index.d.ts +19 -14
- package/dist/modules/billing/index.js +46 -32
- package/dist/modules/conversations/index.cjs +318 -39
- package/dist/modules/conversations/index.d.cts +255 -12
- package/dist/modules/conversations/index.d.ts +255 -12
- package/dist/modules/conversations/index.js +315 -36
- package/dist/modules/devportal/index.cjs +63 -48
- package/dist/modules/devportal/index.d.cts +84 -15
- package/dist/modules/devportal/index.d.ts +84 -15
- package/dist/modules/devportal/index.js +63 -48
- package/dist/modules/export/index.cjs +69 -15
- package/dist/modules/export/index.d.cts +59 -1
- package/dist/modules/export/index.d.ts +59 -1
- package/dist/modules/export/index.js +69 -15
- package/dist/modules/integrations/index.cjs +132 -16
- package/dist/modules/integrations/index.d.cts +109 -1
- package/dist/modules/integrations/index.d.ts +109 -1
- package/dist/modules/integrations/index.js +132 -16
- package/dist/modules/scheduler/index.cjs +194 -18
- package/dist/modules/scheduler/index.d.cts +193 -1
- package/dist/modules/scheduler/index.d.ts +193 -1
- package/dist/modules/scheduler/index.js +194 -18
- package/dist/modules/store/index.cjs +76 -54
- package/dist/modules/store/index.d.cts +101 -54
- package/dist/modules/store/index.d.ts +101 -54
- package/dist/modules/store/index.js +70 -48
- package/dist/modules/vibecontrols/index.cjs +1247 -289
- package/dist/modules/vibecontrols/index.d.cts +1603 -5
- package/dist/modules/vibecontrols/index.d.ts +1603 -5
- package/dist/modules/vibecontrols/index.js +1253 -295
- package/dist/modules/workspaces/index.cjs +19 -15
- package/dist/modules/workspaces/index.d.cts +54 -28
- package/dist/modules/workspaces/index.d.ts +54 -28
- package/dist/modules/workspaces/index.js +19 -15
- package/package.json +3 -3
|
@@ -1,61 +1,340 @@
|
|
|
1
|
-
var
|
|
1
|
+
import {b as b$1}from'../../chunk-NEREAHJ6.js';var r=`
|
|
2
2
|
fragment ConversationFields on Conversation {
|
|
3
|
-
id title type description
|
|
3
|
+
id title type description avatar settings
|
|
4
|
+
state visibility isGroup memberCount unreadCount mentionCount
|
|
5
|
+
workspaceId createdBy createdAt updatedAt deletedAt
|
|
4
6
|
}
|
|
5
|
-
`,
|
|
7
|
+
`,a=`
|
|
6
8
|
fragment MessageFields on Message {
|
|
7
|
-
id conversationId
|
|
9
|
+
id conversationId authorId authorType content type
|
|
10
|
+
metadata status isEdited isPinned isHidden isAnonymous
|
|
11
|
+
readCount replyCount threadLevel threadRootId parentMessageId
|
|
12
|
+
createdAt updatedAt editedAt pinnedAt
|
|
8
13
|
}
|
|
9
|
-
`,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
`,C=`
|
|
14
|
-
${s}
|
|
15
|
-
query Conversations($filter: ConversationFilterInput, $first: Int, $after: String) {
|
|
16
|
-
conversations(filter: $filter, first: $first, after: $after) {
|
|
14
|
+
`,I=`
|
|
15
|
+
${r}
|
|
16
|
+
query Conversations($filter: ConversationFilter, $first: Int, $after: String, $sort: ConversationSort) {
|
|
17
|
+
conversations(filter: $filter, first: $first, after: $after, sort: $sort) {
|
|
17
18
|
edges { cursor node { ...ConversationFields } }
|
|
18
|
-
pageInfo { hasNextPage endCursor }
|
|
19
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
20
|
+
totalCount
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
`,p=`
|
|
22
|
-
${
|
|
24
|
+
${r}
|
|
23
25
|
query Conversation($id: ID!) {
|
|
24
26
|
conversation(id: $id) { ...ConversationFields }
|
|
25
27
|
}
|
|
26
28
|
`,v=`
|
|
27
|
-
${
|
|
29
|
+
${r}
|
|
28
30
|
mutation CreateConversation($input: CreateConversationInput!) {
|
|
29
|
-
createConversation(input: $input) {
|
|
31
|
+
createConversation(input: $input) {
|
|
32
|
+
success
|
|
33
|
+
conversation { ...ConversationFields }
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
|
-
`,
|
|
32
|
-
${
|
|
36
|
+
`,g=`
|
|
37
|
+
${r}
|
|
33
38
|
mutation UpdateConversation($input: UpdateConversationInput!) {
|
|
34
|
-
updateConversation(input: $input) {
|
|
39
|
+
updateConversation(input: $input) {
|
|
40
|
+
success
|
|
41
|
+
conversation { ...ConversationFields }
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`,C=`
|
|
45
|
+
mutation DeleteConversation($id: ID!) {
|
|
46
|
+
deleteConversation(id: $id) {
|
|
47
|
+
success
|
|
48
|
+
conversationId
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`,m=`
|
|
52
|
+
${a}
|
|
53
|
+
query Messages($conversationId: ID!, $first: Int, $after: String, $before: String, $filter: MessageFilter) {
|
|
54
|
+
messages(conversationId: $conversationId, first: $first, after: $after, before: $before, filter: $filter) {
|
|
55
|
+
edges { cursor node { ...MessageFields } }
|
|
56
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
57
|
+
totalCount
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
`,l=`
|
|
61
|
+
${a}
|
|
62
|
+
mutation SendMessage($input: SendMessageInput!) {
|
|
63
|
+
sendMessage(input: $input) {
|
|
64
|
+
success
|
|
65
|
+
message { ...MessageFields }
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
`,E=`
|
|
69
|
+
query ConversationSettings($conversationId: ID!) {
|
|
70
|
+
conversation(id: $conversationId) {
|
|
71
|
+
id
|
|
72
|
+
settings
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`,A=`
|
|
76
|
+
mutation UpdateConversationSettings($input: UpdateConversationInput!) {
|
|
77
|
+
updateConversation(input: $input) {
|
|
78
|
+
success
|
|
79
|
+
conversation {
|
|
80
|
+
id
|
|
81
|
+
settings
|
|
82
|
+
}
|
|
83
|
+
}
|
|
35
84
|
}
|
|
36
|
-
`,c=`
|
|
37
|
-
mutation DeleteConversation($id: ID!) { deleteConversation(id: $id) }
|
|
38
85
|
`,S=`
|
|
86
|
+
${a}
|
|
87
|
+
query Message($id: ID!) {
|
|
88
|
+
message(id: $id) { ...MessageFields }
|
|
89
|
+
}
|
|
90
|
+
`,f=`
|
|
91
|
+
${a}
|
|
92
|
+
mutation EditMessage($input: EditMessageInput!) {
|
|
93
|
+
editMessage(input: $input) { ...MessageFields }
|
|
94
|
+
}
|
|
95
|
+
`,M=`
|
|
96
|
+
mutation DeleteMessage($id: ID!, $hard: Boolean) {
|
|
97
|
+
deleteMessage(id: $id, hard: $hard) { success messageId }
|
|
98
|
+
}
|
|
99
|
+
`,T=`
|
|
100
|
+
${a}
|
|
101
|
+
mutation ForwardMessage($messageId: ID!, $targetConversationId: ID!) {
|
|
102
|
+
forwardMessage(messageId: $messageId, targetConversationId: $targetConversationId) {
|
|
103
|
+
success
|
|
104
|
+
message { ...MessageFields }
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,$=`
|
|
108
|
+
${a}
|
|
109
|
+
mutation PinMessage($messageId: ID!) {
|
|
110
|
+
pinMessage(messageId: $messageId) { ...MessageFields }
|
|
111
|
+
}
|
|
112
|
+
`,N=`
|
|
113
|
+
${a}
|
|
114
|
+
mutation UnpinMessage($messageId: ID!) {
|
|
115
|
+
unpinMessage(messageId: $messageId) { ...MessageFields }
|
|
116
|
+
}
|
|
117
|
+
`,P=`
|
|
118
|
+
${a}
|
|
119
|
+
mutation HideMessage($messageId: ID!, $reason: String!) {
|
|
120
|
+
hideMessage(messageId: $messageId, reason: $reason) { ...MessageFields }
|
|
121
|
+
}
|
|
122
|
+
`,R=`
|
|
123
|
+
${a}
|
|
124
|
+
mutation UnhideMessage($messageId: ID!) {
|
|
125
|
+
unhideMessage(messageId: $messageId) { ...MessageFields }
|
|
126
|
+
}
|
|
127
|
+
`,_=`
|
|
128
|
+
${a}
|
|
129
|
+
query SearchMessages($query: String!, $conversationId: ID, $filter: MessageFilter, $first: Int, $after: String) {
|
|
130
|
+
searchMessages(query: $query, conversationId: $conversationId, filter: $filter, first: $first, after: $after) {
|
|
131
|
+
edges { cursor node { ...MessageFields } }
|
|
132
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
133
|
+
totalCount
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
`,D=`
|
|
137
|
+
${a}
|
|
138
|
+
query UnreadMessages($first: Int, $after: String) {
|
|
139
|
+
unreadMessages(first: $first, after: $after) {
|
|
140
|
+
edges { cursor node { ...MessageFields } }
|
|
141
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
142
|
+
totalCount
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
`,y=`
|
|
146
|
+
mutation ReportMessage($messageId: ID!, $reason: String!) {
|
|
147
|
+
reportMessage(messageId: $messageId, reason: $reason) {
|
|
148
|
+
success
|
|
149
|
+
messageId
|
|
150
|
+
reportId
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`,O=`
|
|
154
|
+
fragment DraftFields on DraftMessage {
|
|
155
|
+
id conversationId userId content parentMessageId createdAt updatedAt
|
|
156
|
+
}
|
|
157
|
+
`,h=`
|
|
158
|
+
${O}
|
|
159
|
+
query Draft($conversationId: ID!) {
|
|
160
|
+
draft(conversationId: $conversationId) { ...DraftFields }
|
|
161
|
+
}
|
|
162
|
+
`,x=`
|
|
163
|
+
${O}
|
|
164
|
+
mutation SaveDraft($input: SaveDraftInput!) {
|
|
165
|
+
saveDraft(input: $input) { ...DraftFields }
|
|
166
|
+
}
|
|
167
|
+
`,b=`
|
|
168
|
+
mutation DeleteDraft($conversationId: ID!) {
|
|
169
|
+
deleteDraft(conversationId: $conversationId) { success conversationId }
|
|
170
|
+
}
|
|
171
|
+
`,w=`
|
|
172
|
+
mutation AddReaction($messageId: ID!, $emoji: String!) {
|
|
173
|
+
addReaction(messageId: $messageId, emoji: $emoji) {
|
|
174
|
+
id messageId userId emoji createdAt
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
`,F=`
|
|
178
|
+
mutation RemoveReaction($messageId: ID!, $emoji: String!) {
|
|
179
|
+
removeReaction(messageId: $messageId, emoji: $emoji) {
|
|
180
|
+
success messageId emoji
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
`,q=`
|
|
184
|
+
${a}
|
|
185
|
+
query Thread($messageId: ID!, $first: Int, $after: String) {
|
|
186
|
+
thread(messageId: $messageId, first: $first, after: $after) {
|
|
187
|
+
edges { cursor node { ...MessageFields } }
|
|
188
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
189
|
+
totalCount
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
`,V=`
|
|
39
193
|
${r}
|
|
40
|
-
|
|
41
|
-
|
|
194
|
+
mutation GetOrCreateDirectConversation($userId: ID!) {
|
|
195
|
+
getOrCreateDirectConversation(userId: $userId) { ...ConversationFields }
|
|
196
|
+
}
|
|
197
|
+
`,G=`
|
|
198
|
+
${a}
|
|
199
|
+
query Mentions($first: Int, $after: String, $unreadOnly: Boolean) {
|
|
200
|
+
mentions(first: $first, after: $after, unreadOnly: $unreadOnly) {
|
|
42
201
|
edges { cursor node { ...MessageFields } }
|
|
43
|
-
pageInfo { hasNextPage endCursor }
|
|
202
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
203
|
+
totalCount
|
|
44
204
|
}
|
|
45
205
|
}
|
|
46
|
-
`,
|
|
206
|
+
`,L=`
|
|
47
207
|
${r}
|
|
48
|
-
|
|
49
|
-
|
|
208
|
+
query SearchConversations($query: String!, $filter: ConversationFilter, $first: Int, $after: String) {
|
|
209
|
+
searchConversations(query: $query, filter: $filter, first: $first, after: $after) {
|
|
210
|
+
edges { cursor node { ...ConversationFields } }
|
|
211
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
212
|
+
totalCount
|
|
213
|
+
}
|
|
50
214
|
}
|
|
51
|
-
`,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
conversationSettings(conversationId: $conversationId) { ...ConversationSettingsFields }
|
|
215
|
+
`,U=`
|
|
216
|
+
fragment PresenceFields on Presence {
|
|
217
|
+
userId status customStatus lastSeenAt
|
|
55
218
|
}
|
|
56
|
-
`,
|
|
57
|
-
${
|
|
58
|
-
|
|
59
|
-
|
|
219
|
+
`,k=`
|
|
220
|
+
${U}
|
|
221
|
+
query Presence($userIds: [ID!]!) {
|
|
222
|
+
presence(userIds: $userIds) { ...PresenceFields }
|
|
223
|
+
}
|
|
224
|
+
`,j=`
|
|
225
|
+
${U}
|
|
226
|
+
mutation UpdatePresence($status: PresenceStatus!, $customStatus: String) {
|
|
227
|
+
updatePresence(status: $status, customStatus: $customStatus) { ...PresenceFields }
|
|
228
|
+
}
|
|
229
|
+
`,H=`
|
|
230
|
+
query TypingIndicators($conversationId: ID!) {
|
|
231
|
+
typingIndicators(conversationId: $conversationId) {
|
|
232
|
+
conversationId userId startedAt
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
`,K=`
|
|
236
|
+
mutation StartTyping($conversationId: ID!) {
|
|
237
|
+
startTyping(conversationId: $conversationId)
|
|
238
|
+
}
|
|
239
|
+
`,B=`
|
|
240
|
+
mutation StopTyping($conversationId: ID!) {
|
|
241
|
+
stopTyping(conversationId: $conversationId)
|
|
242
|
+
}
|
|
243
|
+
`,o=`
|
|
244
|
+
fragment MembershipFields on ConversationMembership {
|
|
245
|
+
id conversationId userId customTitle customAvatar invitedBy
|
|
246
|
+
canAddMembers canRemoveMembers canSendMessages createdAt
|
|
247
|
+
}
|
|
248
|
+
`,Y=`
|
|
249
|
+
${o}
|
|
250
|
+
mutation AddParticipant($input: AddParticipantInput!) {
|
|
251
|
+
addParticipant(input: $input) { ...MembershipFields }
|
|
252
|
+
}
|
|
253
|
+
`,J=`
|
|
254
|
+
mutation RemoveParticipant($input: RemoveParticipantInput!) {
|
|
255
|
+
removeParticipant(input: $input) {
|
|
256
|
+
success conversationId userId
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
`,W=`
|
|
260
|
+
${o}
|
|
261
|
+
mutation UpdateParticipantRole($input: UpdateParticipantRoleInput!) {
|
|
262
|
+
updateParticipantRole(input: $input) { ...MembershipFields }
|
|
263
|
+
}
|
|
264
|
+
`,z=`
|
|
265
|
+
mutation LeaveConversation($conversationId: ID!) {
|
|
266
|
+
leaveConversation(conversationId: $conversationId) {
|
|
267
|
+
success conversationId
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
`,Q=`
|
|
271
|
+
${r}
|
|
272
|
+
mutation ArchiveConversation($id: ID!) {
|
|
273
|
+
archiveConversation(id: $id) { ...ConversationFields }
|
|
274
|
+
}
|
|
275
|
+
`,X=`
|
|
276
|
+
${r}
|
|
277
|
+
mutation UnarchiveConversation($id: ID!) {
|
|
278
|
+
unarchiveConversation(id: $id) { ...ConversationFields }
|
|
279
|
+
}
|
|
280
|
+
`,Z=`
|
|
281
|
+
${o}
|
|
282
|
+
mutation MuteConversation($conversationId: ID!, $until: DateTime) {
|
|
283
|
+
muteConversation(conversationId: $conversationId, until: $until) { ...MembershipFields }
|
|
284
|
+
}
|
|
285
|
+
`,ee=`
|
|
286
|
+
${o}
|
|
287
|
+
mutation UnmuteConversation($conversationId: ID!) {
|
|
288
|
+
unmuteConversation(conversationId: $conversationId) { ...MembershipFields }
|
|
289
|
+
}
|
|
290
|
+
`,te=`
|
|
291
|
+
${o}
|
|
292
|
+
mutation PinConversation($conversationId: ID!) {
|
|
293
|
+
pinConversation(conversationId: $conversationId) { ...MembershipFields }
|
|
294
|
+
}
|
|
295
|
+
`,ne=`
|
|
296
|
+
${o}
|
|
297
|
+
mutation UnpinConversation($conversationId: ID!) {
|
|
298
|
+
unpinConversation(conversationId: $conversationId) { ...MembershipFields }
|
|
299
|
+
}
|
|
300
|
+
`,se=`
|
|
301
|
+
${o}
|
|
302
|
+
mutation MarkConversationAsRead($conversationId: ID!, $messageId: ID) {
|
|
303
|
+
markConversationAsRead(conversationId: $conversationId, messageId: $messageId) { ...MembershipFields }
|
|
304
|
+
}
|
|
305
|
+
`,Ie=`
|
|
306
|
+
fragment InviteFields on InviteLink {
|
|
307
|
+
code url createdBy currentUses maxUses expiresAt createdAt
|
|
308
|
+
}
|
|
309
|
+
`,ae=`
|
|
310
|
+
${Ie}
|
|
311
|
+
mutation CreateInviteLink($input: CreateInviteLinkInput!) {
|
|
312
|
+
createInviteLink(input: $input) { ...InviteFields }
|
|
313
|
+
}
|
|
314
|
+
`,oe=`
|
|
315
|
+
${o}
|
|
316
|
+
mutation JoinViaInviteLink($code: String!) {
|
|
317
|
+
joinViaInviteLink(code: $code) { ...MembershipFields }
|
|
318
|
+
}
|
|
319
|
+
`,re=`
|
|
320
|
+
query ValidateInviteLink($code: String!) {
|
|
321
|
+
validateInviteLink(code: $code) {
|
|
322
|
+
valid
|
|
323
|
+
usesRemaining
|
|
324
|
+
expiresAt
|
|
325
|
+
conversation { id title type }
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
`,ie=`
|
|
329
|
+
mutation VotePoll($pollId: ID!, $optionIds: [ID!]!) {
|
|
330
|
+
votePoll(pollId: $pollId, optionIds: $optionIds) {
|
|
331
|
+
id question totalVotes isClosed
|
|
332
|
+
options { id }
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
`,de=`
|
|
336
|
+
${o}
|
|
337
|
+
mutation UpdateNotificationSettings($input: UpdateNotificationSettingsInput!) {
|
|
338
|
+
updateNotificationSettings(input: $input) { ...MembershipFields }
|
|
60
339
|
}
|
|
61
|
-
`;function
|
|
340
|
+
`;function ce(d,n){if(n==null)return null;let e=n??{};return {conversationId:d,notificationsEnabled:typeof e.notificationsEnabled=="boolean"?e.notificationsEnabled:null,muted:typeof e.muted=="boolean"?e.muted:null,pinned:typeof e.pinned=="boolean"?e.pinned:null,metadata:e.metadata??null}}function ue(d){let{workspace:n}=d.gql;return {async list(e){return (await n.request(I,{filter:e?.filter,first:e?.first,after:e?.after,sort:e?.sort})).conversations},async get(e){return (await n.request(p,{id:e})).conversation},async create(e){let t=await n.request(v,{input:e});if(!t.createConversation.success||!t.createConversation.conversation)throw new b$1("conversations.create: server returned empty conversation","CREATE_CONVERSATION_FAILED");return t.createConversation.conversation},async update(e){let t=await n.request(g,{input:e});if(!t.updateConversation.success||!t.updateConversation.conversation)throw new b$1("conversations.update: server returned empty conversation","UPDATE_CONVERSATION_FAILED");return t.updateConversation.conversation},async delete(e){return (await n.request(C,{id:e})).deleteConversation.success},messages:{async list(e,t){return (await n.request(m,{conversationId:e,first:t?.first,after:t?.after,before:t?.before,filter:t?.filter})).messages},async send(e){let t=await n.request(l,{input:e});if(!t.sendMessage.success||!t.sendMessage.message)throw new b$1("conversations.messages.send: server returned empty message","SEND_MESSAGE_FAILED");return t.sendMessage.message},async get(e){return (await n.request(S,{id:e})).message},async edit(e){return (await n.request(f,{input:e})).editMessage},async delete(e,t){return (await n.request(M,{id:e,hard:t})).deleteMessage.success},async forward(e,t){let s=await n.request(T,{messageId:e,targetConversationId:t});if(!s.forwardMessage.success||!s.forwardMessage.message)throw new b$1("conversations.messages.forward: server returned empty message","FORWARD_MESSAGE_FAILED");return s.forwardMessage.message},async pin(e){return (await n.request($,{messageId:e})).pinMessage},async unpin(e){return (await n.request(N,{messageId:e})).unpinMessage},async hide(e,t){return (await n.request(P,{messageId:e,reason:t})).hideMessage},async unhide(e){return (await n.request(R,{messageId:e})).unhideMessage},async search(e,t){return (await n.request(_,{query:e,conversationId:t?.conversationId,filter:t?.filter,first:t?.first,after:t?.after})).searchMessages},async unread(e){return (await n.request(D,{first:e?.first,after:e?.after})).unreadMessages},async report(e,t){let s=await n.request(y,{messageId:e,reason:t});return {success:s.reportMessage.success,reportId:s.reportMessage.reportId}}},drafts:{async get(e){return (await n.request(h,{conversationId:e})).draft},async save(e){return (await n.request(x,{input:e})).saveDraft},async delete(e){return (await n.request(b,{conversationId:e})).deleteDraft.success}},reactions:{async add(e,t){return (await n.request(w,{messageId:e,emoji:t})).addReaction},async remove(e,t){return (await n.request(F,{messageId:e,emoji:t})).removeReaction.success}},threads:{async get(e,t){return (await n.request(q,{messageId:e,first:t?.first,after:t?.after})).thread}},mentions:{async list(e){return (await n.request(G,{first:e?.first,after:e?.after,unreadOnly:e?.unreadOnly})).mentions}},presence:{async get(e){return (await n.request(k,{userIds:e})).presence},async update(e,t){return (await n.request(j,{status:e,customStatus:t})).updatePresence}},typing:{async list(e){return (await n.request(H,{conversationId:e})).typingIndicators},async start(e){return (await n.request(K,{conversationId:e})).startTyping},async stop(e){return (await n.request(B,{conversationId:e})).stopTyping}},participants:{async add(e){return (await n.request(Y,{input:e})).addParticipant},async remove(e){return (await n.request(J,{input:e})).removeParticipant.success},async updateRole(e){return (await n.request(W,{input:e})).updateParticipantRole}},invites:{async create(e){return (await n.request(ae,{input:e})).createInviteLink},async join(e){return (await n.request(oe,{code:e})).joinViaInviteLink},async validate(e){return (await n.request(re,{code:e})).validateInviteLink}},polls:{async vote(e,t){return (await n.request(ie,{pollId:e,optionIds:t})).votePoll}},notifications:{async update(e){return (await n.request(de,{input:e})).updateNotificationSettings}},async getOrCreateDirect(e){return (await n.request(V,{userId:e})).getOrCreateDirectConversation},async search(e,t){return (await n.request(L,{query:e,filter:t?.filter,first:t?.first,after:t?.after})).searchConversations},async archive(e){return (await n.request(Q,{id:e})).archiveConversation},async unarchive(e){return (await n.request(X,{id:e})).unarchiveConversation},async mute(e,t){return (await n.request(Z,{conversationId:e,until:t})).muteConversation},async unmute(e){return (await n.request(ee,{conversationId:e})).unmuteConversation},async pin(e){return (await n.request(te,{conversationId:e})).pinConversation},async unpin(e){return (await n.request(ne,{conversationId:e})).unpinConversation},async markAsRead(e,t){return (await n.request(se,{conversationId:e,messageId:t})).markConversationAsRead},async leave(e){return (await n.request(z,{conversationId:e})).leaveConversation.success},settings:{async get(e){let t=await n.request(E,{conversationId:e});return t.conversation?ce(e,t.conversation.settings):null},async set(e){let t={id:e.conversationId,settings:{notificationsEnabled:e.notificationsEnabled,muted:e.muted,pinned:e.pinned,metadata:e.metadata}},s=await n.request(A,{input:t});if(!s.updateConversation.success||!s.updateConversation.conversation)throw new b$1("conversations.settings.set: server returned empty conversation","UPDATE_CONVERSATION_SETTINGS_FAILED");return ce(e.conversationId,s.updateConversation.conversation.settings)??{conversationId:e.conversationId,notificationsEnabled:e.notificationsEnabled??null,muted:e.muted??null,pinned:e.pinned??null,metadata:e.metadata??null}}}}}var pe={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth"],attach(d){return ue(d)}},Se=pe;export{Se as default};
|
|
@@ -1,37 +1,44 @@
|
|
|
1
1
|
'use strict';var c=`
|
|
2
2
|
query DevportalOrganizations($limit: Int, $offset: Int) {
|
|
3
|
-
|
|
4
|
-
edges { node {
|
|
3
|
+
developerOrganizations(limit: $limit, offset: $offset) {
|
|
4
|
+
edges { node {
|
|
5
|
+
id name slug description createdAt updatedAt
|
|
6
|
+
isVerified isCertified tier
|
|
7
|
+
totalApps publishedApps totalRevenue
|
|
8
|
+
} cursor }
|
|
5
9
|
totalCount
|
|
6
|
-
pageInfo { hasNextPage }
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
`,l=`
|
|
10
|
-
query DevportalOrganization($id: ID!) {
|
|
11
|
-
organization(id: $id) {
|
|
12
|
-
id name slug description status createdAt updatedAt
|
|
10
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
13
11
|
}
|
|
14
12
|
}
|
|
15
13
|
`,A=`
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
id name slug description
|
|
14
|
+
query DevportalOrganization($id: ID!) {
|
|
15
|
+
developerOrganization(id: $id) {
|
|
16
|
+
id name slug description createdAt updatedAt
|
|
17
|
+
isVerified isCertified tier
|
|
18
|
+
totalApps publishedApps totalRevenue
|
|
19
|
+
contactEmail supportEmail websiteUrl
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
`,d=`
|
|
22
|
-
mutation
|
|
23
|
-
|
|
24
|
-
id name description
|
|
23
|
+
mutation CreateDevportalOrganization($input: CreateDeveloperOrganizationInput!) {
|
|
24
|
+
createDeveloperOrganization(input: $input) {
|
|
25
|
+
id name slug description tier
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
`,u=`
|
|
28
|
-
mutation
|
|
29
|
-
|
|
29
|
+
mutation UpdateDevportalOrganization($id: ID!, $input: UpdateDeveloperOrganizationInput!) {
|
|
30
|
+
updateDeveloperOrganization(id: $id, input: $input) {
|
|
31
|
+
id name description updatedAt
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
`,I=`
|
|
35
|
+
mutation DeleteDevportalOrganization($id: ID!) {
|
|
36
|
+
deleteDeveloperOrganization(id: $id)
|
|
37
|
+
}
|
|
38
|
+
`,m=`
|
|
32
39
|
query DevportalApplications(
|
|
33
40
|
$organizationId: ID
|
|
34
|
-
$status:
|
|
41
|
+
$status: AppStatus
|
|
35
42
|
$limit: Int
|
|
36
43
|
$offset: Int
|
|
37
44
|
) {
|
|
@@ -44,18 +51,19 @@
|
|
|
44
51
|
edges { node {
|
|
45
52
|
id appId name description status reviewStatus publishedAt
|
|
46
53
|
installCount averageRating createdAt updatedAt
|
|
47
|
-
} }
|
|
54
|
+
} cursor }
|
|
48
55
|
totalCount
|
|
56
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
|
-
`,
|
|
59
|
+
`,g=`
|
|
52
60
|
query DevportalApplication($id: ID!) {
|
|
53
61
|
application(id: $id) {
|
|
54
62
|
id appId name description status reviewStatus publishedAt
|
|
55
63
|
installCount averageRating createdAt updatedAt
|
|
56
64
|
}
|
|
57
65
|
}
|
|
58
|
-
`,
|
|
66
|
+
`,v=`
|
|
59
67
|
mutation CreateDevportalApplication($input: CreateApplicationInput!) {
|
|
60
68
|
createApplication(input: $input) {
|
|
61
69
|
id appId name description status
|
|
@@ -73,23 +81,28 @@
|
|
|
73
81
|
id status reviewStatus submittedAt
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
|
-
`,
|
|
84
|
+
`,C=`
|
|
77
85
|
mutation PublishDevportalApplication($id: ID!) {
|
|
78
86
|
publishApplication(id: $id) {
|
|
79
87
|
id status publishedAt
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
|
-
`,
|
|
90
|
+
`,y=`
|
|
83
91
|
mutation DeleteDevportalApplication($id: ID!) {
|
|
84
|
-
deleteApplication(id: $id)
|
|
92
|
+
deleteApplication(id: $id)
|
|
85
93
|
}
|
|
86
|
-
`,
|
|
94
|
+
`,E=`
|
|
87
95
|
query DevportalApplicationVersions($applicationId: ID!) {
|
|
88
|
-
|
|
89
|
-
|
|
96
|
+
application(id: $applicationId) {
|
|
97
|
+
versions {
|
|
98
|
+
edges { node {
|
|
99
|
+
id applicationId version status isLatest isStable releaseNotes publishedAt
|
|
100
|
+
} }
|
|
101
|
+
totalCount
|
|
102
|
+
}
|
|
90
103
|
}
|
|
91
104
|
}
|
|
92
|
-
`,
|
|
105
|
+
`,T=`
|
|
93
106
|
mutation CreateDevportalApplicationVersion(
|
|
94
107
|
$applicationId: ID!
|
|
95
108
|
$input: CreateApplicationVersionInput!
|
|
@@ -98,7 +111,7 @@
|
|
|
98
111
|
id applicationId version status publishedAt
|
|
99
112
|
}
|
|
100
113
|
}
|
|
101
|
-
`,
|
|
114
|
+
`,P=`
|
|
102
115
|
query DevportalApplicationLogs(
|
|
103
116
|
$applicationId: ID!
|
|
104
117
|
$limit: Int
|
|
@@ -130,33 +143,33 @@
|
|
|
130
143
|
id applicationId clientId name redirectUris grantTypes isActive createdAt
|
|
131
144
|
}
|
|
132
145
|
}
|
|
133
|
-
`,
|
|
146
|
+
`,b=`
|
|
134
147
|
mutation CreateDevportalOAuthClient($input: CreateOAuthClientInput!) {
|
|
135
148
|
createOAuthClient(input: $input) {
|
|
136
149
|
id applicationId clientId clientSecret name redirectUris grantTypes isActive createdAt
|
|
137
150
|
}
|
|
138
151
|
}
|
|
139
|
-
|
|
152
|
+
`,$=`
|
|
140
153
|
mutation DeleteDevportalOAuthClient($id: ID!) {
|
|
141
154
|
deleteOAuthClient(id: $id) { success }
|
|
142
155
|
}
|
|
143
|
-
|
|
156
|
+
`,k=`
|
|
144
157
|
query DevportalApiKeys($applicationId: ID!) {
|
|
145
158
|
apiKeys(applicationId: $applicationId) {
|
|
146
159
|
id applicationId name prefix scopes lastUsedAt isActive createdAt
|
|
147
160
|
}
|
|
148
161
|
}
|
|
149
|
-
`,
|
|
162
|
+
`,S=`
|
|
150
163
|
mutation CreateDevportalApiKey($input: CreateApiKeyInput!) {
|
|
151
164
|
createApiKey(input: $input) {
|
|
152
165
|
id applicationId name prefix token scopes isActive createdAt
|
|
153
166
|
}
|
|
154
167
|
}
|
|
155
|
-
`,
|
|
168
|
+
`,x=`
|
|
156
169
|
mutation RevokeDevportalApiKey($id: ID!) {
|
|
157
170
|
revokeApiKey(id: $id) { success }
|
|
158
171
|
}
|
|
159
|
-
`,
|
|
172
|
+
`,R=`
|
|
160
173
|
query DevportalDelegations($applicationId: ID, $workspaceId: ID) {
|
|
161
174
|
delegations(applicationId: $applicationId, workspaceId: $workspaceId) {
|
|
162
175
|
id applicationId workspaceId scopes status expiresAt createdAt
|
|
@@ -172,45 +185,47 @@
|
|
|
172
185
|
mutation RevokeDevportalDelegation($id: ID!) {
|
|
173
186
|
revokeDelegation(id: $id) { success }
|
|
174
187
|
}
|
|
175
|
-
`,
|
|
188
|
+
`,r=`
|
|
176
189
|
query DevportalWebhooks($applicationId: ID!) {
|
|
177
190
|
webhooks(applicationId: $applicationId) {
|
|
178
191
|
id name url events isActive status failureCount
|
|
179
192
|
}
|
|
180
193
|
}
|
|
181
|
-
`,
|
|
182
|
-
mutation CreateDevportalWebhook($input: CreateWebhookInput!) {
|
|
183
|
-
createWebhook(input: $input) {
|
|
194
|
+
`,s=`
|
|
195
|
+
mutation CreateDevportalWebhook($applicationId: ID!, $input: CreateWebhookInput!) {
|
|
196
|
+
createWebhook(applicationId: $applicationId, input: $input) {
|
|
184
197
|
id name url status isActive
|
|
185
198
|
}
|
|
186
199
|
}
|
|
187
|
-
`,
|
|
200
|
+
`,l=`
|
|
188
201
|
mutation DeleteDevportalWebhook($id: ID!) {
|
|
189
|
-
deleteWebhook(id: $id)
|
|
202
|
+
deleteWebhook(id: $id)
|
|
190
203
|
}
|
|
191
|
-
`,
|
|
204
|
+
`,w=`
|
|
192
205
|
query DevportalOrganizationRevenue($organizationId: ID!, $period: String!) {
|
|
193
|
-
|
|
194
|
-
|
|
206
|
+
developerOrgRevenueSummary(organizationId: $organizationId, period: $period) {
|
|
207
|
+
period
|
|
208
|
+
totalGrossRevenue totalNetRevenue
|
|
209
|
+
pendingBalance nextPayoutAmount nextPayoutDate
|
|
195
210
|
}
|
|
196
211
|
}
|
|
197
|
-
`,
|
|
212
|
+
`,N=`
|
|
198
213
|
query DevportalAdminReviews($status: String) {
|
|
199
214
|
adminReviews(status: $status) {
|
|
200
215
|
edges { node { id applicationId reviewStatus reviewNotes } }
|
|
201
216
|
totalCount
|
|
202
217
|
}
|
|
203
218
|
}
|
|
204
|
-
`,
|
|
219
|
+
`,W=`
|
|
205
220
|
mutation DevportalApproveApplication($id: ID!, $notes: String) {
|
|
206
221
|
approveApplication(id: $id, notes: $notes) {
|
|
207
222
|
id status reviewStatus publishedAt
|
|
208
223
|
}
|
|
209
224
|
}
|
|
210
|
-
`,
|
|
225
|
+
`,q=`
|
|
211
226
|
mutation DevportalRejectApplication($id: ID!, $notes: String!) {
|
|
212
227
|
rejectApplication(id: $id, notes: $notes) {
|
|
213
228
|
id status reviewStatus reviewNotes
|
|
214
229
|
}
|
|
215
230
|
}
|
|
216
|
-
`;function
|
|
231
|
+
`;function z(a){let{global:i}=a.gql;return {reviews:{async list(t){return (await i.request(N,{status:t?.status})).adminReviews},async approve(t,e){return (await i.request(W,{id:t,notes:e})).approveApplication},async reject(t,e){return (await i.request(q,{id:t,notes:e})).rejectApplication}}}}function K(a){let{global:i}=a.gql;return {async list(t){return (await i.request(k,{applicationId:t})).apiKeys},async create(t){return (await i.request(S,{input:t})).createApiKey},async revoke(t){return (await i.request(x,{id:t})).revokeApiKey}}}function V(a){let{global:i}=a.gql;return {async list(t){return (await i.request(m,{organizationId:t?.organizationId,status:t?.status,limit:t?.limit,offset:t?.offset})).applications},async get(t){return (await i.request(g,{id:t})).application},async create(t){return (await i.request(v,{input:t})).createApplication},async update(t,e){return (await i.request(D,{id:t,input:e})).updateApplication},async delete(t){return {success:(await i.request(y,{id:t})).deleteApplication}},versions:{async list(t){return (await i.request(E,{applicationId:t})).application?.versions.edges.map(o=>o.node)??[]},async create(t,e){return (await i.request(T,{applicationId:t,input:e})).createApplicationVersion}},listing:{async submit(t,e){return (await i.request(O,{id:t,notes:e})).submitApplicationForReview},async publish(t){return (await i.request(C,{id:t})).publishApplication}},logs:{async list(t,e){return (await i.request(P,{applicationId:t,limit:e?.limit,offset:e?.offset})).applicationLogs}},analytics:{async get(t,e,o){return (await i.request(f,{applicationId:t,period:e,startDate:o?.startDate,endDate:o?.endDate})).applicationAnalytics}},webhooks:{async list(t){return (await i.request(r,{applicationId:t})).webhooks},async create(t){let{applicationId:e,...o}=t;return (await i.request(s,{applicationId:e,input:o})).createWebhook},async delete(t){return {success:(await i.request(l,{id:t})).deleteWebhook}}}}}function j(a){let{global:i}=a.gql;return {async list(t){return (await i.request(R,{applicationId:t?.applicationId,workspaceId:t?.workspaceId})).delegations},async create(t){return (await i.request(L,{input:t})).createDelegation},async revoke(t){return (await i.request(_,{id:t})).revokeDelegation}}}function U(a){let{global:i}=a.gql;return {async list(t){return (await i.request(h,{applicationId:t})).oauthClients},async create(t){return (await i.request(b,{input:t})).createOAuthClient},async delete(t){return (await i.request($,{id:t})).deleteOAuthClient}}}function G(a){let{global:i}=a.gql;return {async list(t){return (await i.request(c,{limit:t?.limit,offset:t?.offset})).developerOrganizations},async get(t){return (await i.request(A,{id:t})).developerOrganization},async create(t){return (await i.request(d,{input:t})).createDeveloperOrganization},async update(t,e){return (await i.request(u,{id:t,input:e})).updateDeveloperOrganization},async delete(t){return {success:(await i.request(I,{id:t})).deleteDeveloperOrganization}}}}function H(a){let{global:i}=a.gql;return {async organization(t,e){let p=(await i.request(w,{organizationId:t,period:e})).developerOrgRevenueSummary;return {totalEarnings:p.totalGrossRevenue,netEarnings:p.totalNetRevenue,currency:null}}}}function B(a){let{global:i}=a.gql;return {async list(t){return (await i.request(r,{applicationId:t})).webhooks},async create(t){let{applicationId:e,...o}=t;return (await i.request(s,{applicationId:e,input:o})).createWebhook},async delete(t){return {success:(await i.request(l,{id:t})).deleteWebhook}}}}var Z={id:"devportal",version:"1.0.0",displayName:"Devportal",dependsOn:["auth"],attach(a){return {orgs:G(a),apps:V(a),oauth:U(a),apiKeys:K(a),delegations:j(a),webhooks:B(a),revenue:H(a),admin:z(a)}}},$t=Z;module.exports=$t;
|