-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.graphql
More file actions
3453 lines (2852 loc) · 94.3 KB
/
Copy pathschema.graphql
File metadata and controls
3453 lines (2852 loc) · 94.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Auto-generated by scripts/fetch-schema.mjs via introspection
# Source: https://tst-notifications.dev.openframe.build/api/graphql
# Generated: 2026-09-14T16:34:07.687Z
#
# Do not edit manually. Re-run: npm run fetch-schema
directive @extends on OBJECT | INTERFACE
directive @external on FIELD_DEFINITION
directive @key(fields: _FieldSet!) on OBJECT | INTERFACE
directive @provides(fields: _FieldSet!) on FIELD_DEFINITION
directive @requires(fields: _FieldSet!) on FIELD_DEFINITION
"""AI provider that powers a given model in the rate table."""
enum AIProvider {
OPENAI
ANTHROPIC
GOOGLE_GEMINI
}
type APIKey {
key: String!
type: APIKeyType!
keyName: String
}
enum APIKeyType {
HEADER
BEARER_TOKEN
}
type Address {
street1: String
street2: String
city: String
state: String
postalCode: String
country: String
}
"""
Rate for converting provider tokens of a single model into OpenFrame tokens.
"""
type AiModelRate {
modelName: String!
"""Human-readable model name for display, e.g. "Claude Sonnet 4.6"."""
displayName: String!
providerType: AIProvider!
"""OpenFrame tokens charged per 1 input token of this model."""
inputTokenRate: Float!
"""OpenFrame tokens charged per 1 output token of this model."""
outputTokenRate: Float!
}
interface AssignableTarget {
id: ID!
}
type AssignedItemCount {
targetType: AssignmentTargetType!
count: Int!
}
enum AssignmentItemType {
TICKET
KNOWLEDGE_ARTICLE
}
enum AssignmentTargetType {
ORGANIZATION
DEVICE
TICKET
KNOWLEDGE_ARTICLE
}
"""
Relay connection for the schedule's "Available Devices" picker. Same shape as DeviceConnection,
but each edge additionally reports whether the device is already assigned to the schedule.
"""
type AvailableDeviceConnection {
edges: [AvailableDeviceEdge!]!
pageInfo: PageInfo!
filteredCount: Int!
}
type AvailableDeviceEdge {
node: Machine!
cursor: String!
"""
True if this device is already assigned to the schedule (pre-checked in the picker).
"""
assigned: Boolean!
}
" One command fanned out to several machines under a single executionId.\n Unlike runCommand, the batch is persisted (status PENDING) before dispatch."
input BatchRunCommandInput {
machineIds: [String!]!
shell: ScriptShell!
command: String!
privilegeLevel: PrivilegeLevel!
timeoutSeconds: Int
}
""" One saved script fanned out to several machines under a single executionId.
"""
input BatchRunScriptInput {
machineIds: [String!]!
scriptId: ID!
privilegeLevel: PrivilegeLevel!
"""Optional override of the script's defaultArgs."""
args: [String!]
"""Optional override of the script's defaultTimeoutSeconds."""
timeoutSeconds: Int
"""
Run-time env vars merged over the script's stored env vars (same name overrides; new names are added). Null/empty keeps the script's stored env vars.
"""
envVars: [ScriptEnvVarInput!]
}
"""
AI_TOKENS adds tokens to the day's sum; MANAGED_DEVICES sets the day's device-count peak.
"""
enum BillingMetricType {
AI_TOKENS
MANAGED_DEVICES
}
enum BillingPeriod {
MONTHLY
YEARLY
}
""" --- Billing Plan (detailed) ---"""
type BillingPlanDetails {
id: ID!
name: String!
description: String
version: String
status: BillingPlanStatus
trialDurationDays: Int
effectiveDate: Date
endDate: Date
products: [Product!]!
"""
Free AI tokens granted per billing period, by subscription state. Additive with a purchased AI token package.
"""
freeTokens: FreeTokenGrants
}
enum BillingPlanStatus {
DRAFT
ACTIVE
ARCHIVED
}
"""Stripe Billing Portal session the client should be sent to."""
type BillingPortalResult {
portalUrl: String!
}
enum BillingProvisioningPendingReason {
"""
No subscription document yet — waiting for registration or the gap-fill scheduler.
"""
NO_SUBSCRIPTION
"""Subscription exists but the tenant has no Stripe customer yet."""
NO_STRIPE_CUSTOMER
"""
Stripe customer exists but the paused Stripe subscription has not been created yet.
"""
NO_STRIPE_SUBSCRIPTION
"""
Everything exists in Stripe, but pending actions have not been pushed yet.
"""
STRIPE_SYNC_PENDING
}
enum BillingProvisioningState {
"""
Subscription, Stripe customer and Stripe subscription all exist and are in sync.
"""
READY
"""Provisioning is still in progress; see reason."""
PENDING
}
type BillingProvisioningStatus {
state: BillingProvisioningState!
"""Why provisioning is still pending. Null when state is READY."""
reason: BillingProvisioningPendingReason
"""Human-readable explanation, safe to show as-is."""
message: String!
}
"""
BREW only — the same name can exist as both a formula and a cask; other managers ignore it.
"""
enum BrewPackageType {
FORMULA
CASK
}
input CancelExecutionInput {
machineId: String!
executionId: ID!
}
"""Optional metadata for tenant-initiated cancellations."""
input CancelSubscriptionInput {
"""
Short category code (e.g. "TOO_EXPENSIVE", "MISSING_FEATURE", "OTHER").
"""
reason: String
"""Free-form details from the user."""
description: String
}
input CheckoutInput {
products: [ProductCheckoutInput!]!
discountCode: String
}
""" --- Subscription / Checkout ---"""
type CheckoutResult {
checkoutUrl: String!
subscription: SubscriptionDetail
}
enum ConnectionStatus {
CONNECTED
DISCONNECTED
ERROR
}
type ContactInformation {
contacts: [ContactPerson!]!
physicalAddress: Address
mailingAddress: Address
mailingAddressSameAsPhysical: Boolean
}
type ContactPerson {
contactName: String
title: String
phone: String
email: String
}
input CreateArticleInput {
name: String!
parentId: ID
content: String
summary: String
status: KnowledgeBaseArticleStatus
tagIds: [ID!]
assignedOrganizationIds: [ID!]
assignedDeviceIds: [ID!]
assignedTicketIds: [ID!]
assignedKnowledgeArticleIds: [ID!]
}
input CreateKnowledgeBaseAttachmentInput {
articleId: ID!
fileName: String!
contentType: String
fileSize: Long
}
input CreateKnowledgeBaseTempAttachmentInput {
fileName: String!
contentType: String
fileSize: Long
}
input CreateScriptInput {
name: String!
description: String
shell: ScriptShell!
privilegeLevel: PrivilegeLevel!
scriptBody: String!
supportedPlatforms: [OsType!]
defaultTimeoutSeconds: Int
defaultArgs: [String!]
envVars: [ScriptEnvVarInput!]
"""Ids of existing Tag entities to assign to the script."""
tagIds: [ID!]
}
input CreateScriptScheduleInput {
name: String!
description: String
supportedPlatforms: [OsType!]
"""Ids of existing Scripts to run, in run order."""
scriptIds: [ID!]
"""
Optional per-script custom args / env overrides. Sparse; each scriptId must be in scriptIds.
"""
scriptCustomParams: [ScheduledScriptCustomParamsInput!]
trigger: ScriptScheduleTrigger!
"""
How a DATE_TIME schedule reads its startAt: SERVER (an absolute instant) or DEVICE_LOCAL (a wall-clock re-based per device). Null defaults to SERVER.
"""
timeReference: ScheduleTimeReference
"""
What to do when a target device is offline at the scheduled time. Null defaults to SKIP (current behaviour).
"""
offlineBehavior: ScheduleOfflineBehavior
"""
Max seconds to wait for an offline device to reconnect. Set only when offlineBehavior is RETRY_ON_RECONNECT; null/ignored for SKIP.
"""
reconnectWindowSeconds: Long
"""
The scheduled run time. For SERVER: an absolute UTC instant. For DEVICE_LOCAL: the picked Date + Time with NO zone offset applied (local 09:00 → 2026-09-10T09:00:00Z), re-based into each device's own timezone. Required when trigger is DATE_TIME; must be null for DEVICE_ONLINE. Must fall on a 30-minute boundary (xx:00 or xx:30).
"""
startAt: Instant
"""
Recurrence interval in seconds. Must be a whole number of 30-minute slots (1800, 3600, 5400, …); the runner ticks on that grid. Null means run once at startAt. For DEVICE_LOCAL it advances the local wall-clock by this many seconds each occurrence (e.g. 86400 = daily at the same local time).
"""
repeat: Long
}
input CreateSoftwareScheduleInput {
name: String!
description: String
action: SoftwareAction!
"""Packages to install/update. At least one."""
packages: [SoftwareSchedulePackageInput!]!
"""
How the schedule reads its startAt: SERVER (an absolute instant) or DEVICE_LOCAL (a wall-clock re-based per device). Null defaults to SERVER.
"""
timeReference: ScheduleTimeReference
"""
What to do when a target device is offline at the scheduled time. Null defaults to SKIP.
"""
offlineBehavior: ScheduleOfflineBehavior
"""
Max seconds to wait for an offline device to reconnect. Set only when offlineBehavior is RETRY_ON_RECONNECT.
"""
reconnectWindowSeconds: Long
"""
The scheduled run time. For SERVER: an absolute UTC instant. For DEVICE_LOCAL: the picked Date + Time with NO zone offset applied, re-based per device. Required; must fall on a 30-minute boundary (xx:00 or xx:30).
"""
startAt: Instant!
"""
Recurrence interval in seconds — a whole number of 30-minute slots (1800, 3600, …). Null = run once.
"""
repeat: Long
"""SPECIFIC target device ids (Machine global ids)."""
machineIds: [ID!]
}
input CreateTimeEntryInput {
userId: ID!
ticketId: ID
organizationId: ID
notes: String
startedAt: Instant!
durationSeconds: Long!
}
input CursorPaginationInput {
"""Opaque cursor from a previous page's `pageInfo.endCursor`."""
cursor: String
"""Defaults to 20; values above 100 are clamped, not rejected."""
limit: Int
}
""""""
scalar Date
""" Half-open date range filter. Period covers [startDate, endDate) — endDate day itself is NOT included.
"""
input DateRangeInput {
startDate: Date!
endDate: Date!
}
input DeleteFolderInput {
id: ID!
childrenAction: FolderChildrenAction
moveTargetFolderId: ID
}
type DeviceConnection {
edges: [DeviceEdge!]!
pageInfo: PageInfo!
filteredCount: Int!
}
type DeviceEdge {
node: Machine!
cursor: String!
}
input DeviceFilterInput {
statuses: [DeviceStatus!]
deviceTypes: [DeviceType!]
osTypes: [String!]
organizationIds: [String!]
tagKeys: [String!]
tagValues: [String!]
}
type DeviceFilterOption {
value: String!
label: String!
count: Int!
}
type DeviceFilters {
statuses: [DeviceFilterOption!]!
deviceTypes: [DeviceFilterOption!]!
osTypes: [DeviceFilterOption!]!
organizationIds: [DeviceFilterOption!]!
tagKeys: [TagFilterOption!]!
filteredCount: Int!
}
enum DeviceStatus {
PENDING
ACTIVE
INACTIVE
MAINTENANCE
DECOMMISSIONED
ONLINE
OFFLINE
PENDING_DELETION
DELETED
ARCHIVED
}
enum DeviceType {
DESKTOP
LAPTOP
SERVER
MOBILE_DEVICE
TABLET
NETWORK_DEVICE
IOT_DEVICE
VIRTUAL_MACHINE
CONTAINER_HOST
OTHER
}
enum DiscountType {
FIXED
PERCENT
}
""" --- Discount ---"""
type DiscountValidation {
discountId: ID
code: String!
name: String
type: DiscountType
applicableProducts: [OpenframeProduct!]!
value: Float
durationInMonths: Int
valid: Boolean!
reason: String
}
type DispatchResponse {
executionId: ID!
}
type EmployeeTimeStats {
todayTotalSeconds: Long!
todayEntryCount: Long!
periodTotalSeconds: Long!
periodEntryCount: Long!
averagePerDaySeconds: Long!
}
enum ErrorDetail {
"""
Unknown error.
This error should only be returned when no other error detail applies.
If a client sees an unknown errorDetail, it will be interpreted as UNKNOWN.
HTTP Mapping: 500 Internal Server Error
"""
UNKNOWN
"""
The requested field is not found in the schema.
This differs from `NOT_FOUND` in that `NOT_FOUND` should be used when a
query is valid, but is unable to return a result (if, for example, a
specific video id doesn't exist). `FIELD_NOT_FOUND` is intended to be
returned by the server to signify that the requested field is not known to exist.
This may be returned in lieu of failing the entire query.
See also `PERMISSION_DENIED` for cases where the
requested field is invalid only for the given user or class of users.
HTTP Mapping: 404 Not Found
Error Type: BAD_REQUEST
"""
FIELD_NOT_FOUND
"""
The provided cursor is not valid.
The most common usage for this error is when a client is paginating
through a list that uses stateful cursors. In that case, the provided
cursor may be expired.
HTTP Mapping: 404 Not Found
Error Type: NOT_FOUND
"""
INVALID_CURSOR
"""
The operation is not implemented or is not currently supported/enabled.
HTTP Mapping: 501 Not Implemented
Error Type: BAD_REQUEST
"""
UNIMPLEMENTED
"""
The client specified an invalid argument.
Note that this differs from `FAILED_PRECONDITION`.
`INVALID_ARGUMENT` indicates arguments that are problematic
regardless of the state of the system (e.g., a malformed file name).
HTTP Mapping: 400 Bad Request
Error Type: BAD_REQUEST
"""
INVALID_ARGUMENT
"""
The deadline expired before the operation could complete.
For operations that change the state of the system, this error
may be returned even if the operation has completed successfully.
For example, a successful response from a server could have been
delayed long enough for the deadline to expire.
HTTP Mapping: 504 Gateway Timeout
Error Type: UNAVAILABLE
"""
DEADLINE_EXCEEDED
"""
Service Error.
There is a problem with an upstream service.
This may be returned if a gateway receives an unknown error from a service
or if a service is unreachable.
If a request times out which waiting on a response from a service,
`DEADLINE_EXCEEDED` may be returned instead.
If a service returns a more specific error Type, the specific error Type may
be returned instead.
HTTP Mapping: 502 Bad Gateway
Error Type: UNAVAILABLE
"""
SERVICE_ERROR
"""
Request throttled based on server CPU limits
HTTP Mapping: 503 Unavailable.
Error Type: UNAVAILABLE
"""
THROTTLED_CPU
"""
Request throttled based on server concurrency limits.
HTTP Mapping: 503 Unavailable
Error Type: UNAVAILABLE
"""
THROTTLED_CONCURRENCY
"""
The server detected that the client is exhibiting a behavior that
might be generating excessive load.
HTTP Mapping: 429 Too Many Requests or 420 Enhance Your Calm
Error Type: UNAVAILABLE
"""
ENHANCE_YOUR_CALM
"""
Request failed due to network errors.
HTTP Mapping: 503 Unavailable
Error Type: UNAVAILABLE
"""
TCP_FAILURE
"""
Unable to perform operation because a required resource is missing.
Example: Client is attempting to refresh a list, but the specified
list is expired. This requires an action by the client to get a new list.
If the user is simply trying GET a resource that is not found,
use the NOT_FOUND error type. FAILED_PRECONDITION.MISSING_RESOURCE
is to be used particularly when the user is performing an operation
that requires a particular resource to exist.
HTTP Mapping: 400 Bad Request or 500 Internal Server Error
Error Type: FAILED_PRECONDITION
"""
MISSING_RESOURCE
}
enum ErrorType {
"""
Unknown error.
For example, this error may be returned when
an error code received from another address space belongs to
an error space that is not known in this address space. Also
errors raised by APIs that do not return enough error information
may be converted to this error.
If a client sees an unknown errorType, it will be interpreted as UNKNOWN.
Unknown errors MUST NOT trigger any special behavior. These MAY be treated
by an implementation as being equivalent to INTERNAL.
When possible, a more specific error should be provided.
HTTP Mapping: 520 Unknown Error
"""
UNKNOWN
"""
Internal error.
An unexpected internal error was encountered. This means that some
invariants expected by the underlying system have been broken.
This error code is reserved for serious errors.
HTTP Mapping: 500 Internal Server Error
"""
INTERNAL
"""
The requested entity was not found.
This could apply to a resource that has never existed (e.g. bad resource id),
or a resource that no longer exists (e.g. cache expired.)
Note to server developers: if a request is denied for an entire class
of users, such as gradual feature rollout or undocumented allowlist,
`NOT_FOUND` may be used. If a request is denied for some users within
a class of users, such as user-based access control, `PERMISSION_DENIED`
must be used.
HTTP Mapping: 404 Not Found
"""
NOT_FOUND
"""
The request does not have valid authentication credentials.
This is intended to be returned only for routes that require
authentication.
HTTP Mapping: 401 Unauthorized
"""
UNAUTHENTICATED
"""
The caller does not have permission to execute the specified
operation.
`PERMISSION_DENIED` must not be used for rejections
caused by exhausting some resource or quota.
`PERMISSION_DENIED` must not be used if the caller
cannot be identified (use `UNAUTHENTICATED`
instead for those errors).
This error Type does not imply the
request is valid or the requested entity exists or satisfies
other pre-conditions.
HTTP Mapping: 403 Forbidden
"""
PERMISSION_DENIED
"""
Bad Request.
There is a problem with the request.
Retrying the same request is not likely to succeed.
An example would be a query or argument that cannot be deserialized.
HTTP Mapping: 400 Bad Request
"""
BAD_REQUEST
"""
Currently Unavailable.
The service is currently unavailable. This is most likely a
transient condition, which can be corrected by retrying with
a backoff.
HTTP Mapping: 503 Unavailable
"""
UNAVAILABLE
"""
The operation was rejected because the system is not in a state
required for the operation's execution. For example, the directory
to be deleted is non-empty, an rmdir operation is applied to
a non-directory, etc.
Service implementers can use the following guidelines to decide
between `FAILED_PRECONDITION` and `UNAVAILABLE`:
- Use `UNAVAILABLE` if the client can retry just the failing call.
- Use `FAILED_PRECONDITION` if the client should not retry until
the system state has been explicitly fixed. E.g., if an "rmdir"
fails because the directory is non-empty, `FAILED_PRECONDITION`
should be returned since the client should not retry unless
the files are deleted from the directory.
HTTP Mapping: 400 Bad Request or 500 Internal Server Error
"""
FAILED_PRECONDITION
}
"""
Where the execution was triggered from. Stamped server-side at dispatch — the client can't
forge it via the API. Powers the "via Mingo" label in History for AI-initiated runs.
"""
enum ExecutionSource {
"""Technician clicked Run in the dashboard."""
MANUAL
"""
A schedule fire — time-driven, DEVICE_ONLINE trigger, or dashboard Run Now on a schedule.
"""
SCHEDULED
"""The Mingo AI runner invoked the dispatch on the technician's behalf."""
AI_ASSISTANT
}
type FeFeatureFlag {
name: String!
enabled: Boolean!
}
enum FolderChildrenAction {
MOVE
ARCHIVE
}
type FreeTokenGrants {
"""Free AI tokens for the whole trial."""
trial: Long
"""Free AI tokens per paid period without a device package."""
payg: Long
"""Free AI tokens per paid period with an active device package."""
devicePackage: Long
}
"""
Image projection (metadata, not bytes) shared by image-bearing GraphQL types
(e.g. TenantInfo.image, the AI assistant avatar, User.image).
Maps to com.openframe.data.document.image.Image; resolved via ImageService.
Image bytes/upload are served over REST (ImageController), not GraphQL.
"""
type Image {
imageUrl: String!
presignedImageUrl: String
sourceType: String!
hash: String
}
type Insight {
"""Detector fingerprint — stable across repeats of the same finding."""
id: ID!
organizationId: String!
"""Resolved through the shared organizationDataLoader — batched, no N+1."""
organization: Organization
"""One line, already rendered for display."""
title: String!
"""What was detected."""
kind: InsightKind!
"""
The category `kind` belongs to. Derived from the kind, never stored separately.
"""
type: InsightType!
severity: InsightSeverity!
status: InsightStatus!
deviceIds: [String!]!
"""When the detector decided, not when the underlying event happened."""
detectedAt: Instant!
}
type InsightConnection {
edges: [InsightEdge!]!
pageInfo: PageInfo!
"""Total number of insights matching the filter, ignoring pagination."""
filteredCount: Int!
}
type InsightEdge {
node: Insight!
cursor: String!
}
input InsightFilter {
organizationId: String
type: InsightType
severity: InsightSeverity
status: InsightStatus
}
enum InsightKind {
UNSIGNED_BINARY
}
enum InsightSeverity {
CRITICAL
HIGH
MEDIUM
LOW
INFO
}
enum InsightStatus {
NEW
ACKNOWLEDGED
IN_PROGRESS
RESOLVED
}
enum InsightType {
SECURITY
RESOURCE
COMPLIANCE
AVAILABILITY
}
type InstalledAgent implements Node {
id: ID!
machineId: String!
agentType: String!
version: String!
createdAt: String
updatedAt: String
}
""""""
scalar Instant
type IntegratedTool implements Node {
id: ID!
name: String!
description: String
icon: String
toolUrls: [ToolUrl!]!
type: String
toolType: String
category: String
platformCategory: String
enabled: Boolean!
credentials: ToolCredentials
""" Layer information"""
layer: String
layerOrder: Int
layerColor: String
""" Monitoring configuration"""
metricsPath: String
healthCheckEndpoint: String
healthCheckInterval: Int
connectionTimeout: Int
readTimeout: Int
allowedEndpoints: [String]
}
"""Lifecycle status of an invoice, mirrored from Stripe."""
enum InvoiceStatus {
"""Not yet finalized in Stripe."""
DRAFT
"""
Finalized and awaiting payment — this is the invoice the tenant still has to pay.
"""
OPEN
"""Fully paid."""
PAID
"""
Voided (e.g. superseded by a re-planned subscription update); no longer payable.
"""
VOID
"""Written off as uncollectible."""
UNCOLLECTIBLE
}
"""Forecast of the next Stripe invoice for the current subscription."""
type InvoiceSummary {
"""
Subtotal in the smallest currency unit (cents). Includes recurring fees, excludes overage.
"""
monthlyTotal: Long!
"""
Estimated overage charges from metered usage in the current period (cents).
"""
estimatedOverage: Long!
"""ISO 4217 currency code, lowercase as Stripe returns it."""
currency: String!
"""End of the period the upcoming invoice will cover."""
periodEnd: Date!
}
type ItemAssignment implements Node {
id: ID!
itemType: AssignmentItemType!
targetType: AssignmentTargetType!
displayName: String!
createdAt: Instant
target: AssignableTarget
}
type ItemAssignmentConnection {
edges: [ItemAssignmentEdge!]!
pageInfo: PageInfo!
filteredCount: Int!
}
type ItemAssignmentEdge {
node: ItemAssignment!
cursor: String!
}
""""""
scalar JSON
enum KnowledgeBaseArticleStatus {
DRAFT
PUBLISHED
ARCHIVED
}
type KnowledgeBaseAttachmentUpload {
attachment: KnowledgeBaseItemAttachment!
uploadUrl: String!
}