@task-shepherd/agent 1.0.7 → 1.0.11
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/cli/index.js +1054 -86
- package/dist/index.js +1 -1
- package/dist/meta.json +358 -67
- package/package.json +2 -2
- package/shared/dist/index.d.ts +0 -15
- package/shared/dist/index.js +0 -12
- package/shared/dist/mcp-client/client.d.ts +0 -18
- package/shared/dist/mcp-client/client.js +0 -49
- package/shared/dist/mcp-client/index.d.ts +0 -7
- package/shared/dist/mcp-client/index.js +0 -7
- package/shared/dist/mcp-client/types.d.ts +0 -822
- package/shared/dist/mcp-client/types.js +0 -193
- package/shared/dist/schema/index.d.ts +0 -189
- package/shared/dist/schema/index.js +0 -142
- package/shared/dist/schema/mcp-mappings.d.ts +0 -50
- package/shared/dist/schema/mcp-mappings.js +0 -563
- package/shared/dist/schema/validation.d.ts +0 -91
- package/shared/dist/schema/validation.js +0 -282
- package/shared/dist/work-queue/index.d.ts +0 -7
- package/shared/dist/work-queue/index.js +0 -7
- package/shared/dist/work-queue/types.d.ts +0 -147
- package/shared/dist/work-queue/types.js +0 -4
- package/shared/dist/work-queue/validation.d.ts +0 -24
- package/shared/dist/work-queue/validation.js +0 -160
- package/shared/dist/workspace/constants.d.ts +0 -148
- package/shared/dist/workspace/constants.js +0 -432
- package/shared/dist/workspace/index.d.ts +0 -10
- package/shared/dist/workspace/index.js +0 -10
- package/shared/dist/workspace/types.d.ts +0 -477
- package/shared/dist/workspace/types.js +0 -9
- package/shared/dist/workspace/utils.d.ts +0 -79
- package/shared/dist/workspace/utils.js +0 -334
- package/shared/dist/workspace/validation.d.ts +0 -1312
- package/shared/dist/workspace/validation.js +0 -467
- package/shared/graphql/generated-internal.ts +0 -3629
- package/shared/graphql/generated-public.ts +0 -773
- package/shared/graphql/generated.d.ts +0 -7456
- package/shared/graphql/generated.js +0 -11799
- package/shared/graphql/generated.ts +0 -27569
- package/shared/graphql/generated.ts.backup +0 -16531
- package/shared/graphql/generated.ts.working +0 -4828
- package/shared/graphql/introspection-internal.json +0 -15845
- package/shared/graphql/introspection-public.json +0 -9658
- package/shared/graphql/introspection.json +0 -44263
- package/shared/graphql/operations/ai-service.graphql +0 -131
- package/shared/graphql/operations/ai-work-queue.graphql +0 -31
- package/shared/graphql/operations/analytics.graphql +0 -283
- package/shared/graphql/operations/analytics.ts +0 -3
- package/shared/graphql/operations/api-keys.graphql +0 -126
- package/shared/graphql/operations/attachments.graphql +0 -53
- package/shared/graphql/operations/attachments.ts +0 -39
- package/shared/graphql/operations/audit.graphql +0 -46
- package/shared/graphql/operations/auth.graphql +0 -83
- package/shared/graphql/operations/claude-usage.graphql +0 -178
- package/shared/graphql/operations/comments.graphql +0 -4
- package/shared/graphql/operations/dashboard.graphql +0 -29
- package/shared/graphql/operations/development-plans.graphql +0 -408
- package/shared/graphql/operations/early-access.graphql.disabled +0 -21
- package/shared/graphql/operations/errors.graphql.disabled +0 -83
- package/shared/graphql/operations/internal-api.graphql +0 -931
- package/shared/graphql/operations/notifications.graphql +0 -4
- package/shared/graphql/operations/organization-invites.graphql.disabled +0 -32
- package/shared/graphql/operations/performance.graphql +0 -4
- package/shared/graphql/operations/project-reviews.graphql +0 -610
- package/shared/graphql/operations/projects.graphql +0 -98
- package/shared/graphql/operations/settings.graphql +0 -4
- package/shared/graphql/operations/stories.graphql +0 -113
- package/shared/graphql/operations/subscriptions.graphql +0 -235
- package/shared/graphql/operations/subscriptions.graphql.disabled +0 -96
- package/shared/graphql/operations/tasks.graphql +0 -257
- package/shared/graphql/operations/team.graphql +0 -111
- package/shared/graphql/operations/team.ts +0 -226
- package/shared/graphql/operations/time-tracking.graphql.disabled +0 -96
- package/shared/graphql/operations/work-queue.graphql +0 -210
- package/shared/graphql/operations/work-queue.graphql.disabled +0 -474
- package/shared/graphql/operations/workspace.graphql +0 -146
- package/shared/graphql/schema-internal.graphql +0 -1085
- package/shared/graphql/schema-public.graphql +0 -709
- package/shared/graphql/schema.graphql +0 -3473
- package/shared/package.json +0 -23
|
@@ -1,931 +0,0 @@
|
|
|
1
|
-
# Internal API Operations for Platform Administration
|
|
2
|
-
|
|
3
|
-
# ================================
|
|
4
|
-
# PLATFORM AUTHENTICATION
|
|
5
|
-
# ================================
|
|
6
|
-
|
|
7
|
-
mutation PlatformLogin($input: LoginInput!) {
|
|
8
|
-
platformLogin(input: $input) {
|
|
9
|
-
token
|
|
10
|
-
refreshToken
|
|
11
|
-
expiresIn
|
|
12
|
-
tokenType
|
|
13
|
-
user {
|
|
14
|
-
id
|
|
15
|
-
email
|
|
16
|
-
firstName
|
|
17
|
-
lastName
|
|
18
|
-
fullName
|
|
19
|
-
displayName
|
|
20
|
-
platformRoles {
|
|
21
|
-
id
|
|
22
|
-
role
|
|
23
|
-
grantedAt
|
|
24
|
-
expiresAt
|
|
25
|
-
reason
|
|
26
|
-
grantedBy {
|
|
27
|
-
id
|
|
28
|
-
fullName
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
canAccessInternal
|
|
32
|
-
canSupportOrganizations
|
|
33
|
-
canManageBilling
|
|
34
|
-
canAccessAudits
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
query PlatformMe {
|
|
40
|
-
platformMe {
|
|
41
|
-
id
|
|
42
|
-
email
|
|
43
|
-
firstName
|
|
44
|
-
lastName
|
|
45
|
-
fullName
|
|
46
|
-
displayName
|
|
47
|
-
permissions
|
|
48
|
-
platformRoles {
|
|
49
|
-
id
|
|
50
|
-
role
|
|
51
|
-
assignedAt
|
|
52
|
-
isActive
|
|
53
|
-
}
|
|
54
|
-
canAccessInternal
|
|
55
|
-
canSupportOrganizations
|
|
56
|
-
canManageBilling
|
|
57
|
-
canAccessAudits
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
# ================================
|
|
62
|
-
# PLATFORM STATISTICS
|
|
63
|
-
# ================================
|
|
64
|
-
|
|
65
|
-
query PlatformStats {
|
|
66
|
-
platformStats {
|
|
67
|
-
totalUsers
|
|
68
|
-
activeUsers
|
|
69
|
-
totalOrganizations
|
|
70
|
-
activeOrganizations
|
|
71
|
-
totalProjects
|
|
72
|
-
totalStories
|
|
73
|
-
totalTasks
|
|
74
|
-
completedTasks
|
|
75
|
-
avgUsersPerOrganization
|
|
76
|
-
avgProjectsPerOrganization
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
query SystemHealth {
|
|
81
|
-
systemHealth {
|
|
82
|
-
dbConnectionPoolUsage
|
|
83
|
-
avgResponseTime
|
|
84
|
-
errorRate
|
|
85
|
-
requestsPerMinute
|
|
86
|
-
memoryUsageMB
|
|
87
|
-
cpuUsage
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
query SystemInfo {
|
|
92
|
-
systemInfo {
|
|
93
|
-
version
|
|
94
|
-
buildNumber
|
|
95
|
-
environment
|
|
96
|
-
nodeVersion
|
|
97
|
-
databaseVersion
|
|
98
|
-
redisVersion
|
|
99
|
-
uptime
|
|
100
|
-
lastDeployment
|
|
101
|
-
redisKeyCount
|
|
102
|
-
redisMemoryUsage
|
|
103
|
-
databaseSize
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
# ================================
|
|
108
|
-
# USER MANAGEMENT
|
|
109
|
-
# ================================
|
|
110
|
-
|
|
111
|
-
query SearchUsers($search: UserSearchInput, $limit: Int, $offset: Int) {
|
|
112
|
-
searchUsers(search: $search, limit: $limit, offset: $offset) {
|
|
113
|
-
id
|
|
114
|
-
email
|
|
115
|
-
firstName
|
|
116
|
-
lastName
|
|
117
|
-
fullName
|
|
118
|
-
displayName
|
|
119
|
-
role
|
|
120
|
-
status
|
|
121
|
-
lastLoginAt
|
|
122
|
-
createdAt
|
|
123
|
-
updatedAt
|
|
124
|
-
projectCount
|
|
125
|
-
storyCount
|
|
126
|
-
taskCount
|
|
127
|
-
organizationMemberships {
|
|
128
|
-
id
|
|
129
|
-
role
|
|
130
|
-
status
|
|
131
|
-
joinedAt
|
|
132
|
-
lastAccessedAt
|
|
133
|
-
organization {
|
|
134
|
-
id
|
|
135
|
-
name
|
|
136
|
-
subdomain
|
|
137
|
-
status
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
platformRoles {
|
|
141
|
-
id
|
|
142
|
-
role
|
|
143
|
-
grantedAt
|
|
144
|
-
expiresAt
|
|
145
|
-
grantedBy {
|
|
146
|
-
id
|
|
147
|
-
fullName
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
canAccessInternal
|
|
151
|
-
canSupportOrganizations
|
|
152
|
-
canManageBilling
|
|
153
|
-
canAccessAudits
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
query UserDetails($id: String!) {
|
|
158
|
-
userDetails(id: $id) {
|
|
159
|
-
id
|
|
160
|
-
email
|
|
161
|
-
firstName
|
|
162
|
-
lastName
|
|
163
|
-
fullName
|
|
164
|
-
displayName
|
|
165
|
-
role
|
|
166
|
-
status
|
|
167
|
-
lastLoginAt
|
|
168
|
-
createdAt
|
|
169
|
-
updatedAt
|
|
170
|
-
projectCount
|
|
171
|
-
storyCount
|
|
172
|
-
taskCount
|
|
173
|
-
organizationMemberships {
|
|
174
|
-
id
|
|
175
|
-
role
|
|
176
|
-
status
|
|
177
|
-
joinedAt
|
|
178
|
-
lastAccessedAt
|
|
179
|
-
invitedAt
|
|
180
|
-
invitedBy
|
|
181
|
-
invitationToken
|
|
182
|
-
organization {
|
|
183
|
-
id
|
|
184
|
-
name
|
|
185
|
-
subdomain
|
|
186
|
-
fullDomain
|
|
187
|
-
status
|
|
188
|
-
description
|
|
189
|
-
isActive
|
|
190
|
-
createdAt
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
platformRoles {
|
|
194
|
-
id
|
|
195
|
-
role
|
|
196
|
-
grantedAt
|
|
197
|
-
expiresAt
|
|
198
|
-
reason
|
|
199
|
-
grantedBy {
|
|
200
|
-
id
|
|
201
|
-
fullName
|
|
202
|
-
email
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
canAccessInternal
|
|
206
|
-
canSupportOrganizations
|
|
207
|
-
canManageBilling
|
|
208
|
-
canAccessAudits
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
mutation UpdateUser($id: String!, $input: UpdateUserInput!) {
|
|
213
|
-
updateUser(id: $id, input: $input) {
|
|
214
|
-
id
|
|
215
|
-
email
|
|
216
|
-
firstName
|
|
217
|
-
lastName
|
|
218
|
-
fullName
|
|
219
|
-
displayName
|
|
220
|
-
role
|
|
221
|
-
status
|
|
222
|
-
updatedAt
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
mutation DisableUser($id: String!, $reason: String) {
|
|
227
|
-
disableUser(id: $id, reason: $reason)
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
# ================================
|
|
231
|
-
# ORGANIZATION MANAGEMENT
|
|
232
|
-
# ================================
|
|
233
|
-
|
|
234
|
-
# Note: Organizations are called "Tenants" in the UI for legacy compatibility
|
|
235
|
-
# but the backend uses "Organizations" as the canonical name
|
|
236
|
-
|
|
237
|
-
query AllOrganizations($limit: Int, $offset: Int, $search: String, $status: OrganizationStatus) {
|
|
238
|
-
allOrganizations(limit: $limit, offset: $offset, search: $search, status: $status) {
|
|
239
|
-
id
|
|
240
|
-
name
|
|
241
|
-
subdomain
|
|
242
|
-
fullDomain
|
|
243
|
-
description
|
|
244
|
-
status
|
|
245
|
-
isActive
|
|
246
|
-
createdAt
|
|
247
|
-
updatedAt
|
|
248
|
-
settings
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
query OrganizationById($id: String!) {
|
|
253
|
-
organization(id: $id) {
|
|
254
|
-
id
|
|
255
|
-
name
|
|
256
|
-
subdomain
|
|
257
|
-
fullDomain
|
|
258
|
-
description
|
|
259
|
-
status
|
|
260
|
-
isActive
|
|
261
|
-
createdAt
|
|
262
|
-
updatedAt
|
|
263
|
-
users {
|
|
264
|
-
id
|
|
265
|
-
firstName
|
|
266
|
-
lastName
|
|
267
|
-
fullName
|
|
268
|
-
displayName
|
|
269
|
-
email
|
|
270
|
-
role
|
|
271
|
-
status
|
|
272
|
-
lastLoginAt
|
|
273
|
-
}
|
|
274
|
-
recentProjects {
|
|
275
|
-
id
|
|
276
|
-
name
|
|
277
|
-
description
|
|
278
|
-
isActive
|
|
279
|
-
isArchived
|
|
280
|
-
createdAt
|
|
281
|
-
}
|
|
282
|
-
stats {
|
|
283
|
-
userCount
|
|
284
|
-
projectCount
|
|
285
|
-
storageUsageGB
|
|
286
|
-
monthlyApiCalls
|
|
287
|
-
taskCount
|
|
288
|
-
storyCount
|
|
289
|
-
}
|
|
290
|
-
settings
|
|
291
|
-
owner {
|
|
292
|
-
id
|
|
293
|
-
fullName
|
|
294
|
-
email
|
|
295
|
-
}
|
|
296
|
-
subscription {
|
|
297
|
-
id
|
|
298
|
-
planId
|
|
299
|
-
status
|
|
300
|
-
monthlyAmount
|
|
301
|
-
currency
|
|
302
|
-
currentPeriodStart
|
|
303
|
-
currentPeriodEnd
|
|
304
|
-
trialEnd
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
mutation CreateOrganization($input: CreateOrganizationInput!) {
|
|
310
|
-
createOrganization(input: $input) {
|
|
311
|
-
id
|
|
312
|
-
name
|
|
313
|
-
subdomain
|
|
314
|
-
fullDomain
|
|
315
|
-
description
|
|
316
|
-
status
|
|
317
|
-
createdAt
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
mutation UpdateOrganization($id: String!, $input: UpdateOrganizationInput!) {
|
|
322
|
-
updateOrganization(id: $id, input: $input) {
|
|
323
|
-
id
|
|
324
|
-
name
|
|
325
|
-
subdomain
|
|
326
|
-
fullDomain
|
|
327
|
-
description
|
|
328
|
-
status
|
|
329
|
-
updatedAt
|
|
330
|
-
settings
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
mutation SuspendOrganization($id: String!, $reason: String) {
|
|
335
|
-
suspendOrganization(id: $id, reason: $reason)
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
mutation ActivateOrganization($id: String!) {
|
|
339
|
-
activateOrganization(id: $id)
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
mutation DeleteOrganization($id: String!, $confirmPhrase: String!) {
|
|
343
|
-
deleteOrganization(id: $id, confirmPhrase: $confirmPhrase)
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
mutation AddUserToOrganization($input: UserOrganizationMembershipInput!) {
|
|
347
|
-
addUserToOrganization(input: $input) {
|
|
348
|
-
id
|
|
349
|
-
role
|
|
350
|
-
status
|
|
351
|
-
joinedAt
|
|
352
|
-
user {
|
|
353
|
-
id
|
|
354
|
-
fullName
|
|
355
|
-
email
|
|
356
|
-
}
|
|
357
|
-
organization {
|
|
358
|
-
id
|
|
359
|
-
name
|
|
360
|
-
subdomain
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
mutation RemoveUserFromOrganization($userId: String!, $organizationId: String!) {
|
|
366
|
-
removeUserFromOrganization(userId: $userId, organizationId: $organizationId)
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
mutation UpdateUserOrganizationRole($userId: String!, $organizationId: String!, $role: OrganizationRole!) {
|
|
370
|
-
updateUserOrganizationRole(userId: $userId, organizationId: $organizationId, role: $role) {
|
|
371
|
-
id
|
|
372
|
-
role
|
|
373
|
-
status
|
|
374
|
-
updatedAt
|
|
375
|
-
user {
|
|
376
|
-
id
|
|
377
|
-
fullName
|
|
378
|
-
}
|
|
379
|
-
organization {
|
|
380
|
-
id
|
|
381
|
-
name
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
# ================================
|
|
387
|
-
# ANALYTICS AND GROWTH
|
|
388
|
-
# ================================
|
|
389
|
-
|
|
390
|
-
query OrganizationGrowthData($days: Int) {
|
|
391
|
-
organizationGrowthData(days: $days) {
|
|
392
|
-
date
|
|
393
|
-
newOrganizations
|
|
394
|
-
activeOrganizations
|
|
395
|
-
suspendedOrganizations
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
query UserActivityData($days: Int) {
|
|
400
|
-
userActivityData(days: $days) {
|
|
401
|
-
date
|
|
402
|
-
newUsers
|
|
403
|
-
dailyActiveUsers
|
|
404
|
-
loginCount
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
query ProjectActivityData($days: Int) {
|
|
409
|
-
projectActivityData(days: $days) {
|
|
410
|
-
date
|
|
411
|
-
projectsCreated
|
|
412
|
-
storiesCreated
|
|
413
|
-
tasksCreated
|
|
414
|
-
tasksCompleted
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
query TopOrganizationsByActivity($limit: Int) {
|
|
419
|
-
topOrganizationsByActivity(limit: $limit) {
|
|
420
|
-
organization {
|
|
421
|
-
id
|
|
422
|
-
name
|
|
423
|
-
subdomain
|
|
424
|
-
status
|
|
425
|
-
createdAt
|
|
426
|
-
}
|
|
427
|
-
userCount
|
|
428
|
-
projectCount
|
|
429
|
-
activityScore
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
# ================================
|
|
434
|
-
# AUDIT LOGS
|
|
435
|
-
# ================================
|
|
436
|
-
|
|
437
|
-
query AuditLogs($filter: AuditLogFilter, $limit: Int, $offset: Int) {
|
|
438
|
-
auditLogs(filter: $filter, limit: $limit, offset: $offset) {
|
|
439
|
-
id
|
|
440
|
-
timestamp
|
|
441
|
-
action
|
|
442
|
-
resource
|
|
443
|
-
resourceId
|
|
444
|
-
userId
|
|
445
|
-
userEmail
|
|
446
|
-
organizationId
|
|
447
|
-
organizationName
|
|
448
|
-
ipAddress
|
|
449
|
-
userAgent
|
|
450
|
-
riskScore
|
|
451
|
-
changes {
|
|
452
|
-
name {
|
|
453
|
-
from
|
|
454
|
-
to
|
|
455
|
-
}
|
|
456
|
-
description {
|
|
457
|
-
from
|
|
458
|
-
to
|
|
459
|
-
}
|
|
460
|
-
status {
|
|
461
|
-
from
|
|
462
|
-
to
|
|
463
|
-
}
|
|
464
|
-
affectedProjects
|
|
465
|
-
deletedCount
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
query UserActivityAudit($userId: String!, $days: Int, $limit: Int) {
|
|
471
|
-
userActivityAudit(userId: $userId, days: $days, limit: $limit) {
|
|
472
|
-
id
|
|
473
|
-
timestamp
|
|
474
|
-
action
|
|
475
|
-
resource
|
|
476
|
-
resourceId
|
|
477
|
-
organizationId
|
|
478
|
-
organizationName
|
|
479
|
-
ipAddress
|
|
480
|
-
riskScore
|
|
481
|
-
changes {
|
|
482
|
-
name {
|
|
483
|
-
from
|
|
484
|
-
to
|
|
485
|
-
}
|
|
486
|
-
description {
|
|
487
|
-
from
|
|
488
|
-
to
|
|
489
|
-
}
|
|
490
|
-
status {
|
|
491
|
-
from
|
|
492
|
-
to
|
|
493
|
-
}
|
|
494
|
-
affectedProjects
|
|
495
|
-
deletedCount
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
query OrganizationActivityAudit($organizationId: String!, $days: Int, $limit: Int) {
|
|
501
|
-
organizationActivityAudit(organizationId: $organizationId, days: $days, limit: $limit) {
|
|
502
|
-
id
|
|
503
|
-
timestamp
|
|
504
|
-
action
|
|
505
|
-
resource
|
|
506
|
-
resourceId
|
|
507
|
-
userId
|
|
508
|
-
userEmail
|
|
509
|
-
ipAddress
|
|
510
|
-
riskScore
|
|
511
|
-
changes {
|
|
512
|
-
name {
|
|
513
|
-
from
|
|
514
|
-
to
|
|
515
|
-
}
|
|
516
|
-
description {
|
|
517
|
-
from
|
|
518
|
-
to
|
|
519
|
-
}
|
|
520
|
-
status {
|
|
521
|
-
from
|
|
522
|
-
to
|
|
523
|
-
}
|
|
524
|
-
affectedProjects
|
|
525
|
-
deletedCount
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
query HighRiskActivities($days: Int, $limit: Int, $minRiskScore: Int) {
|
|
531
|
-
highRiskActivities(days: $days, limit: $limit, minRiskScore: $minRiskScore) {
|
|
532
|
-
id
|
|
533
|
-
timestamp
|
|
534
|
-
action
|
|
535
|
-
resource
|
|
536
|
-
resourceId
|
|
537
|
-
userId
|
|
538
|
-
userEmail
|
|
539
|
-
organizationId
|
|
540
|
-
organizationName
|
|
541
|
-
ipAddress
|
|
542
|
-
userAgent
|
|
543
|
-
riskScore
|
|
544
|
-
changes {
|
|
545
|
-
name {
|
|
546
|
-
from
|
|
547
|
-
to
|
|
548
|
-
}
|
|
549
|
-
description {
|
|
550
|
-
from
|
|
551
|
-
to
|
|
552
|
-
}
|
|
553
|
-
status {
|
|
554
|
-
from
|
|
555
|
-
to
|
|
556
|
-
}
|
|
557
|
-
affectedProjects
|
|
558
|
-
deletedCount
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
# ================================
|
|
564
|
-
# SECURITY MONITORING
|
|
565
|
-
# ================================
|
|
566
|
-
|
|
567
|
-
query SecurityEvents($limit: Int, $resolved: Boolean, $severity: String) {
|
|
568
|
-
securityEvents(limit: $limit, resolved: $resolved, severity: $severity) {
|
|
569
|
-
id
|
|
570
|
-
type
|
|
571
|
-
severity
|
|
572
|
-
description
|
|
573
|
-
timestamp
|
|
574
|
-
userId
|
|
575
|
-
organizationId
|
|
576
|
-
ipAddress
|
|
577
|
-
metadata {
|
|
578
|
-
attemptCount
|
|
579
|
-
timeWindow
|
|
580
|
-
userAgent
|
|
581
|
-
newLocation
|
|
582
|
-
previousLocation
|
|
583
|
-
accountAge
|
|
584
|
-
}
|
|
585
|
-
resolved
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
# ================================
|
|
590
|
-
# EARLY ACCESS MANAGEMENT
|
|
591
|
-
# ================================
|
|
592
|
-
|
|
593
|
-
query EarlyAccessRegistrations($status: String) {
|
|
594
|
-
earlyAccessRegistrations(status: $status) {
|
|
595
|
-
id
|
|
596
|
-
email
|
|
597
|
-
contactName
|
|
598
|
-
companyName
|
|
599
|
-
role
|
|
600
|
-
teamSize
|
|
601
|
-
serviceCount
|
|
602
|
-
repoStructure
|
|
603
|
-
primaryLanguages
|
|
604
|
-
currentTools
|
|
605
|
-
aiTools
|
|
606
|
-
projectTypes
|
|
607
|
-
painPoints
|
|
608
|
-
comments
|
|
609
|
-
status
|
|
610
|
-
createdAt
|
|
611
|
-
inviteSentAt
|
|
612
|
-
inviteToken
|
|
613
|
-
organizationInviteId
|
|
614
|
-
notes
|
|
615
|
-
acceptedTerms
|
|
616
|
-
ageVerified
|
|
617
|
-
subscribeToNewsletter
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
query EarlyAccessRegistration($id: String!) {
|
|
622
|
-
earlyAccessRegistration(id: $id) {
|
|
623
|
-
id
|
|
624
|
-
email
|
|
625
|
-
contactName
|
|
626
|
-
companyName
|
|
627
|
-
role
|
|
628
|
-
teamSize
|
|
629
|
-
serviceCount
|
|
630
|
-
repoStructure
|
|
631
|
-
primaryLanguages
|
|
632
|
-
currentTools
|
|
633
|
-
aiTools
|
|
634
|
-
projectTypes
|
|
635
|
-
painPoints
|
|
636
|
-
comments
|
|
637
|
-
status
|
|
638
|
-
createdAt
|
|
639
|
-
updatedAt
|
|
640
|
-
inviteSentAt
|
|
641
|
-
inviteToken
|
|
642
|
-
organizationInviteId
|
|
643
|
-
notes
|
|
644
|
-
acceptedTerms
|
|
645
|
-
ageVerified
|
|
646
|
-
subscribeToNewsletter
|
|
647
|
-
createdBy
|
|
648
|
-
updatedBy
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
query EarlyAccessRegistrationCount($status: String) {
|
|
653
|
-
earlyAccessRegistrationCount(status: $status)
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
mutation CreateEarlyAccessRegistration($input: EarlyAccessRegistrationInput!) {
|
|
657
|
-
createEarlyAccessRegistration(input: $input) {
|
|
658
|
-
id
|
|
659
|
-
email
|
|
660
|
-
contactName
|
|
661
|
-
companyName
|
|
662
|
-
status
|
|
663
|
-
createdAt
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
mutation UpdateEarlyAccessRegistration($id: String!, $input: UpdateEarlyAccessRegistrationInput!) {
|
|
668
|
-
updateEarlyAccessRegistration(id: $id, input: $input) {
|
|
669
|
-
id
|
|
670
|
-
email
|
|
671
|
-
contactName
|
|
672
|
-
companyName
|
|
673
|
-
status
|
|
674
|
-
notes
|
|
675
|
-
updatedAt
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
mutation GenerateInviteToken($earlyAccessId: String!) {
|
|
680
|
-
generateInviteToken(earlyAccessId: $earlyAccessId) {
|
|
681
|
-
success
|
|
682
|
-
inviteToken
|
|
683
|
-
inviteUrl
|
|
684
|
-
error
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
mutation CreateInviteFromEarlyAccess($input: CreateInviteFromEarlyAccessInput!) {
|
|
689
|
-
createInviteFromEarlyAccess(input: $input) {
|
|
690
|
-
success
|
|
691
|
-
inviteToken
|
|
692
|
-
inviteUrl
|
|
693
|
-
error
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
# ================================
|
|
698
|
-
# BILLING AND SUBSCRIPTIONS
|
|
699
|
-
# ================================
|
|
700
|
-
|
|
701
|
-
query BillingPlans {
|
|
702
|
-
billingPlans {
|
|
703
|
-
id
|
|
704
|
-
name
|
|
705
|
-
description
|
|
706
|
-
monthlyPrice
|
|
707
|
-
maxUsers
|
|
708
|
-
maxProjects
|
|
709
|
-
maxStorageGB
|
|
710
|
-
features
|
|
711
|
-
isActive
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
mutation CreateBillingPlan($input: CreateBillingPlanInput!) {
|
|
716
|
-
createBillingPlan(input: $input) {
|
|
717
|
-
id
|
|
718
|
-
name
|
|
719
|
-
description
|
|
720
|
-
monthlyPrice
|
|
721
|
-
maxUsers
|
|
722
|
-
maxProjects
|
|
723
|
-
maxStorageGB
|
|
724
|
-
features
|
|
725
|
-
isActive
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
query AllSubscriptions($limit: Int, $offset: Int, $status: String) {
|
|
730
|
-
allSubscriptions(limit: $limit, offset: $offset, status: $status) {
|
|
731
|
-
id
|
|
732
|
-
organizationId
|
|
733
|
-
planId
|
|
734
|
-
status
|
|
735
|
-
monthlyAmount
|
|
736
|
-
currency
|
|
737
|
-
currentPeriodStart
|
|
738
|
-
currentPeriodEnd
|
|
739
|
-
trialEnd
|
|
740
|
-
cancelAtPeriodEnd
|
|
741
|
-
createdAt
|
|
742
|
-
updatedAt
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
query OrganizationSubscription($organizationId: String!) {
|
|
747
|
-
organizationSubscription(organizationId: $organizationId) {
|
|
748
|
-
id
|
|
749
|
-
organizationId
|
|
750
|
-
planId
|
|
751
|
-
status
|
|
752
|
-
monthlyAmount
|
|
753
|
-
currency
|
|
754
|
-
currentPeriodStart
|
|
755
|
-
currentPeriodEnd
|
|
756
|
-
trialEnd
|
|
757
|
-
cancelAtPeriodEnd
|
|
758
|
-
createdAt
|
|
759
|
-
updatedAt
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
query OrganizationUsage($organizationId: String!, $billingPeriod: String) {
|
|
764
|
-
organizationUsage(organizationId: $organizationId, billingPeriod: $billingPeriod) {
|
|
765
|
-
organizationId
|
|
766
|
-
billingPeriod
|
|
767
|
-
userCount
|
|
768
|
-
projectCount
|
|
769
|
-
storageUsageGB
|
|
770
|
-
apiRequestCount
|
|
771
|
-
aiAnalysisCount
|
|
772
|
-
overage
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
query OrganizationInvoices($organizationId: String!, $limit: Int) {
|
|
777
|
-
organizationInvoices(organizationId: $organizationId, limit: $limit) {
|
|
778
|
-
id
|
|
779
|
-
organizationId
|
|
780
|
-
subscriptionId
|
|
781
|
-
invoiceNumber
|
|
782
|
-
amount
|
|
783
|
-
currency
|
|
784
|
-
status
|
|
785
|
-
createdAt
|
|
786
|
-
dueDate
|
|
787
|
-
paidAt
|
|
788
|
-
lineItems {
|
|
789
|
-
description
|
|
790
|
-
quantity
|
|
791
|
-
unitPrice
|
|
792
|
-
amount
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
mutation UpdateSubscription($organizationId: String!, $input: UpdateSubscriptionInput!) {
|
|
798
|
-
updateSubscription(organizationId: $organizationId, input: $input) {
|
|
799
|
-
id
|
|
800
|
-
organizationId
|
|
801
|
-
planId
|
|
802
|
-
status
|
|
803
|
-
monthlyAmount
|
|
804
|
-
currentPeriodStart
|
|
805
|
-
currentPeriodEnd
|
|
806
|
-
trialEnd
|
|
807
|
-
cancelAtPeriodEnd
|
|
808
|
-
updatedAt
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
mutation CancelSubscription($organizationId: String!, $cancelAtPeriodEnd: Boolean) {
|
|
813
|
-
cancelSubscription(organizationId: $organizationId, cancelAtPeriodEnd: $cancelAtPeriodEnd)
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
# ================================
|
|
817
|
-
# FEATURE FLAGS
|
|
818
|
-
# ================================
|
|
819
|
-
|
|
820
|
-
query FeatureFlags {
|
|
821
|
-
featureFlags {
|
|
822
|
-
name
|
|
823
|
-
description
|
|
824
|
-
enabled
|
|
825
|
-
rolloutPercentage
|
|
826
|
-
enabledOrganizations
|
|
827
|
-
createdAt
|
|
828
|
-
updatedAt
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
mutation UpdateFeatureFlag($name: String!, $enabled: Boolean, $rolloutPercentage: Int, $enabledOrganizations: [String!]) {
|
|
833
|
-
updateFeatureFlag(name: $name, enabled: $enabled, rolloutPercentage: $rolloutPercentage, enabledOrganizations: $enabledOrganizations) {
|
|
834
|
-
name
|
|
835
|
-
description
|
|
836
|
-
enabled
|
|
837
|
-
rolloutPercentage
|
|
838
|
-
enabledOrganizations
|
|
839
|
-
updatedAt
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
# ================================
|
|
844
|
-
# MAINTENANCE AND OPERATIONS
|
|
845
|
-
# ================================
|
|
846
|
-
|
|
847
|
-
query MaintenanceWindows($upcoming: Boolean) {
|
|
848
|
-
maintenanceWindows(upcoming: $upcoming) {
|
|
849
|
-
id
|
|
850
|
-
title
|
|
851
|
-
description
|
|
852
|
-
scheduledStart
|
|
853
|
-
scheduledEnd
|
|
854
|
-
status
|
|
855
|
-
affectedServices
|
|
856
|
-
notifyUsers
|
|
857
|
-
createdBy
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
mutation ScheduleMaintenanceWindow(
|
|
862
|
-
$title: String!,
|
|
863
|
-
$description: String!,
|
|
864
|
-
$scheduledStart: DateTimeISO!,
|
|
865
|
-
$scheduledEnd: DateTimeISO!,
|
|
866
|
-
$affectedServices: String!,
|
|
867
|
-
$notifyUsers: Boolean
|
|
868
|
-
) {
|
|
869
|
-
scheduleMaintenanceWindow(
|
|
870
|
-
title: $title,
|
|
871
|
-
description: $description,
|
|
872
|
-
scheduledStart: $scheduledStart,
|
|
873
|
-
scheduledEnd: $scheduledEnd,
|
|
874
|
-
affectedServices: $affectedServices,
|
|
875
|
-
notifyUsers: $notifyUsers
|
|
876
|
-
) {
|
|
877
|
-
id
|
|
878
|
-
title
|
|
879
|
-
description
|
|
880
|
-
scheduledStart
|
|
881
|
-
scheduledEnd
|
|
882
|
-
status
|
|
883
|
-
affectedServices
|
|
884
|
-
notifyUsers
|
|
885
|
-
createdBy
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
# ================================
|
|
890
|
-
# SYSTEM OPERATIONS
|
|
891
|
-
# ================================
|
|
892
|
-
|
|
893
|
-
query ApplicationLogs($level: String, $limit: Int, $since: DateTimeISO) {
|
|
894
|
-
applicationLogs(level: $level, limit: $limit, since: $since)
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
mutation ClearAllCaches {
|
|
898
|
-
clearAllCaches
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
mutation ForceGarbageCollection {
|
|
902
|
-
forceGarbageCollection
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
mutation ExecuteDatabaseMaintenance($operation: String!) {
|
|
906
|
-
executeDatabaseMaintenance(operation: $operation)
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
# ================================
|
|
910
|
-
# ANALYTICS EXPORTS
|
|
911
|
-
# ================================
|
|
912
|
-
|
|
913
|
-
query ComplianceReport($organizationId: String, $startDate: DateTimeISO!, $endDate: DateTimeISO!) {
|
|
914
|
-
complianceReport(organizationId: $organizationId, startDate: $startDate, endDate: $endDate)
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
query FeatureUsageStats {
|
|
918
|
-
featureUsageStats
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
query RevenueMetrics($months: Int) {
|
|
922
|
-
revenueMetrics(months: $months)
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
query RevenueAnalytics($months: Int) {
|
|
926
|
-
revenueAnalytics(months: $months)
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
query GetUserActivity($userId: String!, $days: Int) {
|
|
930
|
-
getUserActivity(userId: $userId, days: $days)
|
|
931
|
-
}
|