@straion/cli 0.0.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.
Files changed (128) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.txt +93 -0
  3. package/README.md +83 -0
  4. package/dist/auth/config.d.ts +4 -0
  5. package/dist/auth/config.d.ts.map +1 -0
  6. package/dist/auth/config.js +4 -0
  7. package/dist/auth/config.js.map +1 -0
  8. package/dist/auth/cookie-jar.d.ts +24 -0
  9. package/dist/auth/cookie-jar.d.ts.map +1 -0
  10. package/dist/auth/cookie-jar.js +45 -0
  11. package/dist/auth/cookie-jar.js.map +1 -0
  12. package/dist/auth/credentials.d.ts +56 -0
  13. package/dist/auth/credentials.d.ts.map +1 -0
  14. package/dist/auth/credentials.js +147 -0
  15. package/dist/auth/credentials.js.map +1 -0
  16. package/dist/auth/graphql-client.d.ts +3 -0
  17. package/dist/auth/graphql-client.d.ts.map +1 -0
  18. package/dist/auth/graphql-client.js +18 -0
  19. package/dist/auth/graphql-client.js.map +1 -0
  20. package/dist/cli.d.ts +4 -0
  21. package/dist/cli.d.ts.map +1 -0
  22. package/dist/cli.js +24 -0
  23. package/dist/cli.js.map +1 -0
  24. package/dist/commands/default.d.ts +2 -0
  25. package/dist/commands/default.d.ts.map +1 -0
  26. package/dist/commands/default.js +42 -0
  27. package/dist/commands/default.js.map +1 -0
  28. package/dist/commands/find-requirements.d.ts +3 -0
  29. package/dist/commands/find-requirements.d.ts.map +1 -0
  30. package/dist/commands/find-requirements.js +35 -0
  31. package/dist/commands/find-requirements.js.map +1 -0
  32. package/dist/commands/index.d.ts +3 -0
  33. package/dist/commands/index.d.ts.map +1 -0
  34. package/dist/commands/index.js +11 -0
  35. package/dist/commands/index.js.map +1 -0
  36. package/dist/commands/login.d.ts +3 -0
  37. package/dist/commands/login.d.ts.map +1 -0
  38. package/dist/commands/login.js +36 -0
  39. package/dist/commands/login.js.map +1 -0
  40. package/dist/commands/logout.d.ts +3 -0
  41. package/dist/commands/logout.d.ts.map +1 -0
  42. package/dist/commands/logout.js +32 -0
  43. package/dist/commands/logout.js.map +1 -0
  44. package/dist/commands/session-start.d.ts +3 -0
  45. package/dist/commands/session-start.d.ts.map +1 -0
  46. package/dist/commands/session-start.js +13 -0
  47. package/dist/commands/session-start.js.map +1 -0
  48. package/dist/components/button.d.ts +7 -0
  49. package/dist/components/button.d.ts.map +1 -0
  50. package/dist/components/button.js +18 -0
  51. package/dist/components/button.js.map +1 -0
  52. package/dist/components/hero.d.ts +10 -0
  53. package/dist/components/hero.d.ts.map +1 -0
  54. package/dist/components/hero.js +39 -0
  55. package/dist/components/hero.js.map +1 -0
  56. package/dist/components/link.d.ts +43 -0
  57. package/dist/components/link.d.ts.map +1 -0
  58. package/dist/components/link.js +6 -0
  59. package/dist/components/link.js.map +1 -0
  60. package/dist/components/login/login-flow.d.ts +9 -0
  61. package/dist/components/login/login-flow.d.ts.map +1 -0
  62. package/dist/components/login/login-flow.js +98 -0
  63. package/dist/components/login/login-flow.js.map +1 -0
  64. package/dist/components/login/login-flow.test.d.ts +2 -0
  65. package/dist/components/login/login-flow.test.d.ts.map +1 -0
  66. package/dist/components/login/login-flow.test.js +139 -0
  67. package/dist/components/login/login-flow.test.js.map +1 -0
  68. package/dist/components/login/login.provider.d.ts +2 -0
  69. package/dist/components/login/login.provider.d.ts.map +1 -0
  70. package/dist/components/login/login.provider.js +2 -0
  71. package/dist/components/login/login.provider.js.map +1 -0
  72. package/dist/components/login/login.store.d.ts +2 -0
  73. package/dist/components/login/login.store.d.ts.map +1 -0
  74. package/dist/components/login/login.store.js +2 -0
  75. package/dist/components/login/login.store.js.map +1 -0
  76. package/dist/components/org-selector.d.ts +9 -0
  77. package/dist/components/org-selector.d.ts.map +1 -0
  78. package/dist/components/org-selector.js +33 -0
  79. package/dist/components/org-selector.js.map +1 -0
  80. package/dist/components/pat-input.d.ts +6 -0
  81. package/dist/components/pat-input.d.ts.map +1 -0
  82. package/dist/components/pat-input.js +42 -0
  83. package/dist/components/pat-input.js.map +1 -0
  84. package/dist/components/pat-input.test.d.ts +2 -0
  85. package/dist/components/pat-input.test.d.ts.map +1 -0
  86. package/dist/components/pat-input.test.js +82 -0
  87. package/dist/components/pat-input.test.js.map +1 -0
  88. package/dist/components/spinner.d.ts +2 -0
  89. package/dist/components/spinner.d.ts.map +1 -0
  90. package/dist/components/spinner.js +20 -0
  91. package/dist/components/spinner.js.map +1 -0
  92. package/dist/components/tabs.d.ts +35 -0
  93. package/dist/components/tabs.d.ts.map +1 -0
  94. package/dist/components/tabs.js +142 -0
  95. package/dist/components/tabs.js.map +1 -0
  96. package/dist/lib/graphql.d.ts +2081 -0
  97. package/dist/lib/graphql.d.ts.map +1 -0
  98. package/dist/lib/graphql.js +192 -0
  99. package/dist/lib/graphql.js.map +1 -0
  100. package/dist/lib/ink-render.d.ts +22 -0
  101. package/dist/lib/ink-render.d.ts.map +1 -0
  102. package/dist/lib/ink-render.js +33 -0
  103. package/dist/lib/ink-render.js.map +1 -0
  104. package/dist/lib/logger.d.ts +46 -0
  105. package/dist/lib/logger.d.ts.map +1 -0
  106. package/dist/lib/logger.js +88 -0
  107. package/dist/lib/logger.js.map +1 -0
  108. package/dist/lib/login.d.ts +28 -0
  109. package/dist/lib/login.d.ts.map +1 -0
  110. package/dist/lib/login.js +8 -0
  111. package/dist/lib/login.js.map +1 -0
  112. package/dist/lib/middleware.d.ts +35 -0
  113. package/dist/lib/middleware.d.ts.map +1 -0
  114. package/dist/lib/middleware.js +68 -0
  115. package/dist/lib/middleware.js.map +1 -0
  116. package/dist/state/directory-config.d.ts +21 -0
  117. package/dist/state/directory-config.d.ts.map +1 -0
  118. package/dist/state/directory-config.js +59 -0
  119. package/dist/state/directory-config.js.map +1 -0
  120. package/dist/state/global-config.d.ts +15 -0
  121. package/dist/state/global-config.d.ts.map +1 -0
  122. package/dist/state/global-config.js +59 -0
  123. package/dist/state/global-config.js.map +1 -0
  124. package/dist/state/session-manager.d.ts +33 -0
  125. package/dist/state/session-manager.d.ts.map +1 -0
  126. package/dist/state/session-manager.js +140 -0
  127. package/dist/state/session-manager.js.map +1 -0
  128. package/package.json +44 -0
@@ -0,0 +1,2081 @@
1
+ import type { GraphQLClient, RequestOptions } from 'graphql-request';
2
+ import { GraphQLError } from 'graphql';
3
+ export type Maybe<T> = T | null;
4
+ export type InputMaybe<T> = Maybe<T>;
5
+ export type Exact<T extends {
6
+ [key: string]: unknown;
7
+ }> = {
8
+ [K in keyof T]: T[K];
9
+ };
10
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
11
+ [SubKey in K]?: Maybe<T[SubKey]>;
12
+ };
13
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
14
+ [SubKey in K]: Maybe<T[SubKey]>;
15
+ };
16
+ export type MakeEmpty<T extends {
17
+ [key: string]: unknown;
18
+ }, K extends keyof T> = {
19
+ [_ in K]?: never;
20
+ };
21
+ export type Incremental<T> = T | {
22
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
23
+ };
24
+ type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
25
+ /** All built-in and custom scalars, mapped to their actual values */
26
+ export type Scalars = {
27
+ ID: {
28
+ input: string;
29
+ output: string;
30
+ };
31
+ String: {
32
+ input: string;
33
+ output: string;
34
+ };
35
+ Boolean: {
36
+ input: boolean;
37
+ output: boolean;
38
+ };
39
+ Int: {
40
+ input: number;
41
+ output: number;
42
+ };
43
+ Float: {
44
+ input: number;
45
+ output: number;
46
+ };
47
+ /** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
48
+ DateTime: {
49
+ input: Date | string;
50
+ output: Date | string;
51
+ };
52
+ File: {
53
+ input: any;
54
+ output: any;
55
+ };
56
+ /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
57
+ JSON: {
58
+ input: any;
59
+ output: any;
60
+ };
61
+ };
62
+ export type AccessToken = {
63
+ __typename?: 'AccessToken';
64
+ createdAt: Scalars['DateTime']['output'];
65
+ id: Scalars['String']['output'];
66
+ /** The date the token was last used */
67
+ lastUsedAt?: Maybe<Scalars['DateTime']['output']>;
68
+ /** The display name for the token */
69
+ name: Scalars['String']['output'];
70
+ /** The organization id the token is valid for */
71
+ organizationId: Scalars['String']['output'];
72
+ /** The scopes that define what operations this token can perform */
73
+ scopes: Array<Scalars['String']['output']>;
74
+ updatedAt: Scalars['DateTime']['output'];
75
+ /** The date the token is valid until */
76
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
77
+ };
78
+ export type AccessTokenWithToken = {
79
+ __typename?: 'AccessTokenWithToken';
80
+ createdAt: Scalars['DateTime']['output'];
81
+ id: Scalars['String']['output'];
82
+ /** The date the token was last used */
83
+ lastUsedAt?: Maybe<Scalars['DateTime']['output']>;
84
+ /** The display name for the token */
85
+ name: Scalars['String']['output'];
86
+ /** The organization id the token is valid for */
87
+ organizationId: Scalars['String']['output'];
88
+ /** The scopes that define what operations this token can perform */
89
+ scopes: Array<Scalars['String']['output']>;
90
+ token: Scalars['String']['output'];
91
+ updatedAt: Scalars['DateTime']['output'];
92
+ /** The date the token is valid until */
93
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
94
+ };
95
+ export type AddCollaborationMessageReactionInput = {
96
+ content: Scalars['String']['input'];
97
+ /** The id generated on the client side for optimistic updates */
98
+ id: Scalars['String']['input'];
99
+ messageId: Scalars['String']['input'];
100
+ };
101
+ export type AddReactionInput = {
102
+ content: Scalars['String']['input'];
103
+ /** The unique id of the discussion where the reaction should be added */
104
+ discussionId?: InputMaybe<Scalars['String']['input']>;
105
+ id: Scalars['String']['input'];
106
+ /** The unique id of the reply where the reaction should be added */
107
+ replyId?: InputMaybe<Scalars['String']['input']>;
108
+ };
109
+ export type Asset = {
110
+ __typename?: 'Asset';
111
+ createdAt: Scalars['DateTime']['output'];
112
+ document?: Maybe<Document>;
113
+ /** The date when the asset will expired and therefore marked as being able to be deleted */
114
+ expiresAt?: Maybe<Scalars['DateTime']['output']>;
115
+ id: Scalars['String']['output'];
116
+ mimeType: Scalars['String']['output'];
117
+ organization: Organization;
118
+ tags: Array<Scalars['String']['output']>;
119
+ updatedAt: Scalars['DateTime']['output'];
120
+ url: Scalars['String']['output'];
121
+ user: User;
122
+ visibility: AssetVisibility;
123
+ };
124
+ export type AssetOwnerEdge = {
125
+ __typename?: 'AssetOwnerEdge';
126
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
127
+ cursor: Scalars['String']['output'];
128
+ /** The actual data node */
129
+ node: Asset;
130
+ };
131
+ /** Defines the visibility of an asset */
132
+ export declare enum AssetVisibility {
133
+ /** Everyone in the organization is able to view the assets */
134
+ Organization = "Organization",
135
+ /** Only the user that uploaded the asset can access it */
136
+ Private = "Private",
137
+ /** Everyone can access the asset */
138
+ Public = "Public"
139
+ }
140
+ export type Auth = {
141
+ __typename?: 'Auth';
142
+ /** The JWT access token */
143
+ accessToken: Scalars['String']['output'];
144
+ /** The organization id the token is valid for */
145
+ organizationId: Scalars['String']['output'];
146
+ /** The JWT refresh token */
147
+ refreshToken: Scalars['String']['output'];
148
+ user: PrivateUser;
149
+ };
150
+ export type Build = {
151
+ __typename?: 'Build';
152
+ branch?: Maybe<Scalars['String']['output']>;
153
+ buildId: Scalars['String']['output'];
154
+ createdAt: Scalars['DateTime']['output'];
155
+ document: Document;
156
+ error?: Maybe<Scalars['String']['output']>;
157
+ executionPlan?: Maybe<BuildExecutionPlan>;
158
+ finishedAt?: Maybe<Scalars['DateTime']['output']>;
159
+ organization: Organization;
160
+ pullRequestUrl?: Maybe<Scalars['String']['output']>;
161
+ repositoryUrl: Scalars['String']['output'];
162
+ status: BuildStatus;
163
+ updatedAt: Scalars['DateTime']['output'];
164
+ };
165
+ export type BuildExecutionPlan = {
166
+ __typename?: 'BuildExecutionPlan';
167
+ description: Scalars['String']['output'];
168
+ tasks: Array<BuildExecutionPlanTask>;
169
+ };
170
+ export type BuildExecutionPlanTask = {
171
+ __typename?: 'BuildExecutionPlanTask';
172
+ description?: Maybe<Scalars['String']['output']>;
173
+ done: Scalars['Boolean']['output'];
174
+ id: Scalars['String']['output'];
175
+ title: Scalars['String']['output'];
176
+ };
177
+ export declare enum BuildStatus {
178
+ Canceled = "canceled",
179
+ Failed = "failed",
180
+ Pending = "pending",
181
+ Running = "running",
182
+ Starting = "starting",
183
+ Success = "success",
184
+ Unspecified = "unspecified"
185
+ }
186
+ export type BuildTraceAttributes = {
187
+ __typename?: 'BuildTraceAttributes';
188
+ cacheHit?: Maybe<Scalars['Boolean']['output']>;
189
+ contentType?: Maybe<Scalars['String']['output']>;
190
+ internal?: Maybe<Scalars['Boolean']['output']>;
191
+ uiActor?: Maybe<Scalars['String']['output']>;
192
+ uiDescription?: Maybe<Scalars['String']['output']>;
193
+ uiHide?: Maybe<Scalars['Boolean']['output']>;
194
+ uiHideChildren?: Maybe<Scalars['Boolean']['output']>;
195
+ uiMessage?: Maybe<Scalars['String']['output']>;
196
+ uiPassthrough?: Maybe<Scalars['Boolean']['output']>;
197
+ uiReveal?: Maybe<Scalars['Boolean']['output']>;
198
+ uiTitle?: Maybe<Scalars['String']['output']>;
199
+ };
200
+ export type BuildTraceLog = {
201
+ __typename?: 'BuildTraceLog';
202
+ attributes: BuildTraceAttributes;
203
+ buildId: Scalars['String']['output'];
204
+ isEof?: Maybe<Scalars['Boolean']['output']>;
205
+ logMessage?: Maybe<Scalars['String']['output']>;
206
+ spanId: Scalars['String']['output'];
207
+ stdio: Scalars['Float']['output'];
208
+ /** Timestamp in nanoseconds since epoch */
209
+ timestamp: Scalars['String']['output'];
210
+ };
211
+ export type BuildTraceSpan = {
212
+ __typename?: 'BuildTraceSpan';
213
+ attributes: BuildTraceAttributes;
214
+ buildId: Scalars['String']['output'];
215
+ /** End time in nanoseconds since epoch. If the end time is before the start time, the trace is still running. */
216
+ endTime: Scalars['String']['output'];
217
+ name: Scalars['String']['output'];
218
+ parentSpanId?: Maybe<Scalars['String']['output']>;
219
+ spanId: Scalars['String']['output'];
220
+ spanKind: Scalars['String']['output'];
221
+ /** Start time in nanoseconds since epoch */
222
+ startTime: Scalars['String']['output'];
223
+ status?: Maybe<Scalars['String']['output']>;
224
+ };
225
+ export type CodeValidationReference = {
226
+ __typename?: 'CodeValidationReference';
227
+ /** Optional ending line number in the file */
228
+ end?: Maybe<Scalars['Int']['output']>;
229
+ /** File path relative to repository root */
230
+ file: Scalars['String']['output'];
231
+ /** Starting line number in the file */
232
+ start: Scalars['Int']['output'];
233
+ };
234
+ export type CodeValidationResult = {
235
+ __typename?: 'CodeValidationResult';
236
+ /** Suggested action to take */
237
+ action?: Maybe<Scalars['String']['output']>;
238
+ /** The base commit SHA of the pull request */
239
+ baseSha: Scalars['String']['output'];
240
+ createdAt: Scalars['DateTime']['output'];
241
+ documentId?: Maybe<Scalars['String']['output']>;
242
+ /** The head commit SHA of the pull request */
243
+ headSha: Scalars['String']['output'];
244
+ isMandatoryRequirement?: Maybe<Scalars['Boolean']['output']>;
245
+ organization: Organization;
246
+ /** The pull request number */
247
+ pullRequestNumber: Scalars['Float']['output'];
248
+ /** The reason for the validation result */
249
+ reason: Scalars['String']['output'];
250
+ /** Code references where this requirement was validated */
251
+ references: Array<CodeValidationReference>;
252
+ /** The repository URL or identifier */
253
+ repo: Scalars['String']['output'];
254
+ requirementCollection?: Maybe<RequirementCollection>;
255
+ /** Hash of the requirement content for deduplication */
256
+ requirementContentHash: Scalars['String']['output'];
257
+ /** The content of the requirement as markdown at the point of validation */
258
+ requirementContentSnapshot?: Maybe<Scalars['String']['output']>;
259
+ requirementId?: Maybe<Scalars['String']['output']>;
260
+ /** Unique identifier for this validation run/session */
261
+ sessionId: Scalars['String']['output'];
262
+ severity: Scalars['String']['output'];
263
+ status: CodeValidationStatus;
264
+ updatedAt: Scalars['DateTime']['output'];
265
+ };
266
+ export type CodeValidationResultEdge = {
267
+ __typename?: 'CodeValidationResultEdge';
268
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
269
+ cursor: Scalars['String']['output'];
270
+ /** The actual data node */
271
+ node: CodeValidationResult;
272
+ };
273
+ export type CodeValidationSession = {
274
+ __typename?: 'CodeValidationSession';
275
+ /** The base commit SHA of the pull request */
276
+ baseSha: Scalars['String']['output'];
277
+ createdAt: Scalars['DateTime']['output'];
278
+ documentId?: Maybe<Scalars['String']['output']>;
279
+ /** The head commit SHA of the pull request */
280
+ headSha: Scalars['String']['output'];
281
+ /** Number of requirements that met criteria */
282
+ metCount: Scalars['Int']['output'];
283
+ /** Number of requirements that did not meet criteria */
284
+ notMetCount: Scalars['Int']['output'];
285
+ /** Number of requirements pending validation */
286
+ pendingCount: Scalars['Int']['output'];
287
+ /** The pull request number */
288
+ pullRequestNumber: Scalars['Float']['output'];
289
+ /** The repository URL or identifier */
290
+ repo: Scalars['String']['output'];
291
+ requirementCollection?: Maybe<RequirementCollection>;
292
+ requirementCollectionId?: Maybe<Scalars['String']['output']>;
293
+ /** Overall score (0-100) */
294
+ score: Scalars['Int']['output'];
295
+ /** Unique identifier for this validation run/session */
296
+ sessionId: Scalars['String']['output'];
297
+ /** Total number of requirements validated */
298
+ totalRequirements: Scalars['Int']['output'];
299
+ updatedAt: Scalars['DateTime']['output'];
300
+ };
301
+ export type CodeValidationSessionEdge = {
302
+ __typename?: 'CodeValidationSessionEdge';
303
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
304
+ cursor: Scalars['String']['output'];
305
+ /** The actual data node */
306
+ node: CodeValidationSession;
307
+ };
308
+ export declare enum CodeValidationStatus {
309
+ ForConsideration = "for_consideration",
310
+ Irrelevant = "irrelevant",
311
+ Met = "met",
312
+ NotMet = "not_met",
313
+ Pending = "pending"
314
+ }
315
+ export type CollaborationMessage = {
316
+ __typename?: 'CollaborationMessage';
317
+ content: Scalars['String']['output'];
318
+ contextId: Scalars['String']['output'];
319
+ createdAt: Scalars['DateTime']['output'];
320
+ createdBy: User;
321
+ id: Scalars['String']['output'];
322
+ isDraft: Scalars['Boolean']['output'];
323
+ latestReplyAt?: Maybe<Scalars['DateTime']['output']>;
324
+ organization: Organization;
325
+ parentId?: Maybe<Scalars['String']['output']>;
326
+ publishedAt?: Maybe<Scalars['DateTime']['output']>;
327
+ reactions?: Maybe<Array<CollaborationMessageReaction>>;
328
+ replies?: Maybe<Array<CollaborationMessage>>;
329
+ replyCount: Scalars['Float']['output'];
330
+ resolvedAt?: Maybe<Scalars['DateTime']['output']>;
331
+ state: CollaborationMessageState;
332
+ updatedAt: Scalars['DateTime']['output'];
333
+ };
334
+ export declare enum CollaborationMessageContextType {
335
+ Document = "document",
336
+ RequirementCollection = "requirementCollection"
337
+ }
338
+ export type CollaborationMessageOperation = {
339
+ __typename?: 'CollaborationMessageOperation';
340
+ message?: Maybe<CollaborationMessage>;
341
+ messageId: Scalars['String']['output'];
342
+ operationType: OperationType;
343
+ };
344
+ export type CollaborationMessageReaction = {
345
+ __typename?: 'CollaborationMessageReaction';
346
+ content: Scalars['String']['output'];
347
+ createdAt: Scalars['DateTime']['output'];
348
+ id: Scalars['String']['output'];
349
+ messageId: Scalars['String']['output'];
350
+ organization: Organization;
351
+ updatedAt: Scalars['DateTime']['output'];
352
+ user: User;
353
+ };
354
+ export declare enum CollaborationMessageState {
355
+ Draft = "draft",
356
+ Resolved = "resolved",
357
+ Unresolved = "unresolved"
358
+ }
359
+ export type CreateCollaborationMessageInput = {
360
+ content: Scalars['String']['input'];
361
+ contextId: Scalars['String']['input'];
362
+ contextType: CollaborationMessageContextType;
363
+ /** The unique id of the user that should create the discussion, defaults to the current user */
364
+ createdById?: InputMaybe<Scalars['String']['input']>;
365
+ id?: InputMaybe<Scalars['String']['input']>;
366
+ parentId?: InputMaybe<Scalars['String']['input']>;
367
+ state?: InputMaybe<CollaborationMessageState>;
368
+ };
369
+ export type CreateDiscussionInput = {
370
+ /** The unique id of the user that should create the discussion, defaults to the current user */
371
+ createdById?: InputMaybe<Scalars['String']['input']>;
372
+ /** The unique id of the document */
373
+ documentId: Scalars['String']['input'];
374
+ html: Scalars['String']['input'];
375
+ id?: InputMaybe<Scalars['String']['input']>;
376
+ state?: InputMaybe<DocumentDiscussionState>;
377
+ };
378
+ export type CreateDocumentInput = {
379
+ /** The unique id of the user that should create the document, defaults to the current user */
380
+ createdById?: InputMaybe<Scalars['String']['input']>;
381
+ /** The external id of the document */
382
+ externalId?: InputMaybe<Scalars['String']['input']>;
383
+ /** The source of the external document, something like "confluence" */
384
+ externalSource?: InputMaybe<Scalars['String']['input']>;
385
+ /** A link to the external document */
386
+ externalUrl?: InputMaybe<Scalars['String']['input']>;
387
+ /** Marks a document as external which means the content is managed somewhere else */
388
+ isExternal?: InputMaybe<Scalars['Boolean']['input']>;
389
+ title?: InputMaybe<Scalars['String']['input']>;
390
+ };
391
+ export type CreateReplyInput = {
392
+ /** The unique id of the user that should create the reply, defaults to the current user */
393
+ createdById?: InputMaybe<Scalars['String']['input']>;
394
+ /** The unique id of the discussion */
395
+ discussionId: Scalars['String']['input'];
396
+ html: Scalars['String']['input'];
397
+ id: Scalars['String']['input'];
398
+ };
399
+ export type CreateRequirementCollectionInput = {
400
+ /** The unique id of the user that created the collection, defaults to the current user */
401
+ createdById?: InputMaybe<Scalars['String']['input']>;
402
+ description?: InputMaybe<Scalars['String']['input']>;
403
+ name?: InputMaybe<Scalars['String']['input']>;
404
+ /** List of requirements to create with the collection */
405
+ requirements?: InputMaybe<Array<CreateRequirementInput>>;
406
+ };
407
+ export type CreateRequirementInput = {
408
+ /** The content of the requirement as markdown */
409
+ content: Scalars['String']['input'];
410
+ /** Whether the requirement is mandatory */
411
+ mandatory?: InputMaybe<Scalars['Boolean']['input']>;
412
+ };
413
+ /** Creates a new SAML connection */
414
+ export type CreateSamlConnectionInput = {
415
+ /** The xml metadata from the identity provider */
416
+ metadata: Scalars['String']['input'];
417
+ /** The url to load the metadata from the identity provider */
418
+ metadataUrl?: InputMaybe<Scalars['String']['input']>;
419
+ /** The tenant identifier for the connection, the organization subdomain */
420
+ subdomain: Scalars['String']['input'];
421
+ };
422
+ /** Creates a new SCIM directory sync connection */
423
+ export type CreateScimConnectionInput = {
424
+ /** The display name of the connection */
425
+ name: Scalars['String']['input'];
426
+ /** The tenant identifier for the connection, the organization subdomain */
427
+ subdomain: Scalars['String']['input'];
428
+ /** The tenant of the connection */
429
+ type: Scalars['String']['input'];
430
+ };
431
+ export type CreateUserFilterInput = {
432
+ filterData: Scalars['String']['input'];
433
+ id: Scalars['String']['input'];
434
+ name: Scalars['String']['input'];
435
+ type: Scalars['String']['input'];
436
+ };
437
+ export type DeletePullRequestValidationResultsInput = {
438
+ /** The pull request number */
439
+ pullRequestNumber: Scalars['Float']['input'];
440
+ /** The repository URL */
441
+ repo: Scalars['String']['input'];
442
+ };
443
+ export type DiscussionOperation = {
444
+ __typename?: 'DiscussionOperation';
445
+ discussion?: Maybe<DocumentDiscussion>;
446
+ discussionId: Scalars['String']['output'];
447
+ operationType: OperationType;
448
+ };
449
+ export type Document = {
450
+ __typename?: 'Document';
451
+ assets: PaginatedAsset;
452
+ contributors: Array<User>;
453
+ /** An automatic assigned and incremented number for each document */
454
+ count: Scalars['Int']['output'];
455
+ createdAt: Scalars['DateTime']['output'];
456
+ createdBy: User;
457
+ discussions: Array<DocumentDiscussion>;
458
+ driver: User;
459
+ dueDate?: Maybe<Scalars['DateTime']['output']>;
460
+ /** The external id of the document */
461
+ externalId?: Maybe<Scalars['String']['output']>;
462
+ /** The source of the external document, something like "confluence" */
463
+ externalSource?: Maybe<Scalars['String']['output']>;
464
+ /** A link to the external document */
465
+ externalUrl?: Maybe<Scalars['String']['output']>;
466
+ html: Scalars['String']['output'];
467
+ id: Scalars['String']['output'];
468
+ informed: Array<User>;
469
+ isExternal: Scalars['Boolean']['output'];
470
+ /** The last time the document was synced from external sources */
471
+ lastSyncedAt?: Maybe<Scalars['DateTime']['output']>;
472
+ markdown: Scalars['String']['output'];
473
+ organization: Organization;
474
+ reviewers: Array<Reviewer>;
475
+ /** The current state of the document */
476
+ state: DocumentState;
477
+ title?: Maybe<Scalars['String']['output']>;
478
+ updatedAt: Scalars['DateTime']['output'];
479
+ };
480
+ export type DocumentAssetsArgs = {
481
+ after?: InputMaybe<Scalars['String']['input']>;
482
+ before?: InputMaybe<Scalars['String']['input']>;
483
+ first?: InputMaybe<Scalars['Int']['input']>;
484
+ last?: InputMaybe<Scalars['Int']['input']>;
485
+ sort?: InputMaybe<SortDirection>;
486
+ sortBy?: InputMaybe<Scalars['String']['input']>;
487
+ };
488
+ export type DocumentDiscussion = {
489
+ __typename?: 'DocumentDiscussion';
490
+ /** The HTML representation of the content */
491
+ content: Scalars['String']['output'];
492
+ createdAt: Scalars['DateTime']['output'];
493
+ createdBy: User;
494
+ document: Document;
495
+ id: Scalars['String']['output'];
496
+ isDraft: Scalars['Boolean']['output'];
497
+ latestReplyAt?: Maybe<Scalars['DateTime']['output']>;
498
+ organization: Organization;
499
+ /** The date when the comment was switched from draft to published */
500
+ publishedAt?: Maybe<Scalars['DateTime']['output']>;
501
+ reactions: Array<Reaction>;
502
+ replies: Array<DocumentReply>;
503
+ /** The date when the discussion was resolved */
504
+ resolvedAt?: Maybe<Scalars['DateTime']['output']>;
505
+ state: DocumentDiscussionState;
506
+ updatedAt: Scalars['DateTime']['output'];
507
+ };
508
+ export declare enum DocumentDiscussionState {
509
+ Draft = "draft",
510
+ Resolved = "resolved",
511
+ Unresolved = "unresolved"
512
+ }
513
+ export type DocumentEdge = {
514
+ __typename?: 'DocumentEdge';
515
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
516
+ cursor: Scalars['String']['output'];
517
+ /** The actual data node */
518
+ node: Document;
519
+ };
520
+ export type DocumentReply = {
521
+ __typename?: 'DocumentReply';
522
+ /** The HTML representation of the content */
523
+ content: Scalars['String']['output'];
524
+ createdAt: Scalars['DateTime']['output'];
525
+ createdBy: User;
526
+ discussion: DocumentDiscussion;
527
+ document: Document;
528
+ id: Scalars['String']['output'];
529
+ isDraft: Scalars['Boolean']['output'];
530
+ organization: Organization;
531
+ /** The date when the comment was switched from draft to published */
532
+ publishedAt?: Maybe<Scalars['DateTime']['output']>;
533
+ reactions: Array<Reaction>;
534
+ state: DocumentReplyState;
535
+ updatedAt: Scalars['DateTime']['output'];
536
+ };
537
+ export declare enum DocumentReplyState {
538
+ Draft = "draft",
539
+ Published = "published"
540
+ }
541
+ export type DocumentSearchFacets = {
542
+ /** A list of uuids to filter for specific approvers */
543
+ approvers?: InputMaybe<Array<Scalars['String']['input']>>;
544
+ /** A list of uuids to filter for specific contributors */
545
+ contributors?: InputMaybe<Array<Scalars['String']['input']>>;
546
+ /** A list of uuids to filter for specific drivers */
547
+ drivers?: InputMaybe<Array<Scalars['String']['input']>>;
548
+ /** The Document State to search for */
549
+ states?: InputMaybe<Array<DocumentState>>;
550
+ };
551
+ export declare enum DocumentState {
552
+ Done = "Done",
553
+ Draft = "Draft",
554
+ RequestingComments = "RequestingComments",
555
+ WontDo = "WontDo"
556
+ }
557
+ export type DocumentUpdate = {
558
+ __typename?: 'DocumentUpdate';
559
+ createdAt: Scalars['DateTime']['output'];
560
+ discussion?: Maybe<DocumentDiscussion>;
561
+ document: Document;
562
+ id: Scalars['String']['output'];
563
+ organization: Organization;
564
+ updatedAt: Scalars['DateTime']['output'];
565
+ };
566
+ export type DocumentUpdateEdge = {
567
+ __typename?: 'DocumentUpdateEdge';
568
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
569
+ cursor: Scalars['String']['output'];
570
+ /** The actual data node */
571
+ node: DocumentUpdate;
572
+ };
573
+ export type DocumentValidationResult = {
574
+ __typename?: 'DocumentValidationResult';
575
+ action?: Maybe<Scalars['String']['output']>;
576
+ createdAt: Scalars['DateTime']['output'];
577
+ documentId: Scalars['String']['output'];
578
+ isMandatoryRequirement: Scalars['Boolean']['output'];
579
+ isUserOverridden: Scalars['Boolean']['output'];
580
+ organization: Organization;
581
+ reason: Scalars['String']['output'];
582
+ requirementCollection?: Maybe<RequirementCollection>;
583
+ /** The content of the requirement as markdown at the point of validation */
584
+ requirementContentSnapshot: Scalars['String']['output'];
585
+ requirementId: Scalars['String']['output'];
586
+ severity: DocumentValidationResultSeverity;
587
+ status: DocumentValidationResultStatus;
588
+ updatedAt: Scalars['DateTime']['output'];
589
+ };
590
+ export declare enum DocumentValidationResultSeverity {
591
+ Critical = "critical",
592
+ Info = "info",
593
+ Neutral = "neutral",
594
+ Success = "success",
595
+ Warning = "warning"
596
+ }
597
+ export declare enum DocumentValidationResultStatus {
598
+ ForConsideration = "for_consideration",
599
+ Irrelevant = "irrelevant",
600
+ Met = "met",
601
+ NotMet = "not_met",
602
+ Pending = "pending"
603
+ }
604
+ export type GetPullRequestValidationResultsInput = {
605
+ /** Optional: Filter by specific commit SHA */
606
+ headSha?: InputMaybe<Scalars['String']['input']>;
607
+ /** The pull request number */
608
+ pullRequestNumber: Scalars['Float']['input'];
609
+ /** The repository URL */
610
+ repo: Scalars['String']['input'];
611
+ };
612
+ export type GithubBranch = {
613
+ __typename?: 'GithubBranch';
614
+ isDefault: Scalars['Boolean']['output'];
615
+ name: Scalars['String']['output'];
616
+ };
617
+ export type GithubInstallation = {
618
+ __typename?: 'GithubInstallation';
619
+ createdAt: Scalars['DateTime']['output'];
620
+ githubAccountLogin: Scalars['String']['output'];
621
+ id: Scalars['String']['output'];
622
+ installationId: Scalars['Float']['output'];
623
+ organization: Organization;
624
+ updatedAt: Scalars['DateTime']['output'];
625
+ };
626
+ export type GithubRepo = {
627
+ __typename?: 'GithubRepo';
628
+ cloneUrl: Scalars['String']['output'];
629
+ defaultBranch: Scalars['String']['output'];
630
+ description?: Maybe<Scalars['String']['output']>;
631
+ fullName: Scalars['String']['output'];
632
+ isPrivate: Scalars['Boolean']['output'];
633
+ language?: Maybe<Scalars['String']['output']>;
634
+ name: Scalars['String']['output'];
635
+ ownerAvatarUrl: Scalars['String']['output'];
636
+ ownerName: Scalars['String']['output'];
637
+ };
638
+ export type GithubToken = {
639
+ __typename?: 'GithubToken';
640
+ createdAt: Scalars['DateTime']['output'];
641
+ expiresAt: Scalars['DateTime']['output'];
642
+ installation: GithubInstallation;
643
+ token: Scalars['String']['output'];
644
+ };
645
+ export type Invoice = {
646
+ __typename?: 'Invoice';
647
+ amount: Scalars['Int']['output'];
648
+ currency: Scalars['String']['output'];
649
+ id: Scalars['String']['output'];
650
+ method?: Maybe<Scalars['String']['output']>;
651
+ number?: Maybe<Scalars['String']['output']>;
652
+ pdf?: Maybe<Scalars['String']['output']>;
653
+ status?: Maybe<Scalars['String']['output']>;
654
+ };
655
+ /** Login with email and password */
656
+ export type LoginInput = {
657
+ email: Scalars['String']['input'];
658
+ password: Scalars['String']['input'];
659
+ };
660
+ export type Mutation = {
661
+ __typename?: 'Mutation';
662
+ _createDemoOrganization: Scalars['Boolean']['output'];
663
+ _deleteOrganization: Scalars['Boolean']['output'];
664
+ acknowledgeNotification: Scalars['Boolean']['output'];
665
+ addContributor: User;
666
+ addInformed: User;
667
+ addReaction: Reaction;
668
+ addReactionOnMessage: CollaborationMessageReaction;
669
+ addReviewer: Reviewer;
670
+ cancelBuild: Build;
671
+ cancelSubscription: Scalars['Boolean']['output'];
672
+ changePassword: Scalars['Boolean']['output'];
673
+ changePlan: PlanSubscription;
674
+ clearValidationResults: Scalars['Boolean']['output'];
675
+ confirmEmail: Auth;
676
+ createDiscussion: DocumentDiscussion;
677
+ createDocument: Document;
678
+ createMessage: CollaborationMessage;
679
+ createOrganizationAccessToken: AccessTokenWithToken;
680
+ createReply: DocumentReply;
681
+ createRequirementCollection: RequirementCollection;
682
+ createSamlConnection: SamlConnection;
683
+ createScimDirectoryConnection: ScimConnection;
684
+ createSubscription: PlanSubscription;
685
+ createUserAccessToken: UserAccessTokenWithToken;
686
+ createUserFilter: UserFilter;
687
+ deleteAsset: Scalars['Boolean']['output'];
688
+ deleteBuild: Build;
689
+ deleteCreditCard: Array<PaymentCard>;
690
+ deleteDiscussion: DocumentDiscussion;
691
+ deleteDocument: Scalars['Boolean']['output'];
692
+ deleteInvite: Scalars['Boolean']['output'];
693
+ deleteMessage: CollaborationMessage;
694
+ deleteOrganizationAccessToken: Scalars['Boolean']['output'];
695
+ /** Delete all validation results for a pull request */
696
+ deletePullRequestValidationResults: Scalars['Boolean']['output'];
697
+ deleteRequirementCollection: Scalars['Boolean']['output'];
698
+ deleteSamlConnection: Scalars['Boolean']['output'];
699
+ deleteScimDirectoryConnection: Scalars['Boolean']['output'];
700
+ deleteUser: Scalars['Boolean']['output'];
701
+ deleteUserAccessToken: Scalars['Boolean']['output'];
702
+ deleteUserFilter: Scalars['Boolean']['output'];
703
+ dismissAnnouncement: Scalars['Boolean']['output'];
704
+ endCollaborationSession: Scalars['Boolean']['output'];
705
+ extractRequirements: RequirementCollection;
706
+ forgotPassword: Scalars['Boolean']['output'];
707
+ getGithubToken: GithubToken;
708
+ inviteUserToOrganization: OrganizationInvite;
709
+ login: Auth;
710
+ loginGoogle: Auth;
711
+ loginOauth: Auth;
712
+ logout: Scalars['Boolean']['output'];
713
+ markNotificationAsRead: Scalars['Boolean']['output'];
714
+ reactivateOrganizationMember: User;
715
+ /** Creates a new pair of accessToken and refreshToken, based on the provided refreshToken */
716
+ refreshToken: Token;
717
+ removeContributor: Scalars['Boolean']['output'];
718
+ removeInformed: Scalars['Boolean']['output'];
719
+ removeOrganizationMember: Scalars['Boolean']['output'];
720
+ removeReaction: Scalars['Boolean']['output'];
721
+ removeReactionOnMessage: Scalars['Boolean']['output'];
722
+ removeReviewer: Scalars['Boolean']['output'];
723
+ renameUserFilter: UserFilter;
724
+ resendConfirmationLink: Scalars['Boolean']['output'];
725
+ resendInvite: OrganizationInvite;
726
+ /** Resets the password of a user with a token that got sent by mail */
727
+ resetPassword: Auth;
728
+ rotateOrganizationAccessToken: AccessTokenWithToken;
729
+ rotateUserAccessToken: UserAccessTokenWithToken;
730
+ saveCreditCard: PaymentCard;
731
+ setDefaultPaymentMethod: PaymentCard;
732
+ signUpWithInvite: Auth;
733
+ signUpWithInviteGoogle: Auth;
734
+ signUpWithOrganization: Auth;
735
+ signUpWithOrganizationGoogle: Auth;
736
+ /** Start a new build for a repository and returns the build id */
737
+ startBuild: Build;
738
+ startCollaborationSession: Scalars['Boolean']['output'];
739
+ storeGithubInstallation: GithubInstallation;
740
+ /** Switches the organization of the user and creates a new pair of accessToken and refreshToken */
741
+ switchOrganization: Token;
742
+ updateDiscussion: DocumentDiscussion;
743
+ updateDocument: Document;
744
+ updateMessage: CollaborationMessage;
745
+ updateOrganizationMember: User;
746
+ updateReply: DocumentReply;
747
+ updateReviewState: Reviewer;
748
+ updateSamlConnection: SamlConnection;
749
+ updateUser: PrivateUser;
750
+ updateValidationResultStatus: DocumentValidationResult;
751
+ uploadAsset: Scalars['String']['output'];
752
+ /** Validate a list of collections, this can be either used to validate all collections or a subset of collections as well as revalidate existing results. */
753
+ validateCollections: Array<DocumentValidationResult>;
754
+ validateExternalDocumentWithNonFunctionalRequirements: Array<DocumentValidationResult>;
755
+ /** Re-validate a single requirement. This is used to re-trigger the validation for a single requirement. */
756
+ validateRequirement: DocumentValidationResult;
757
+ verifyOrganizationInvite: Auth;
758
+ };
759
+ export type Mutation_CreateDemoOrganizationArgs = {
760
+ bootstrap: Array<Scalars['String']['input']>;
761
+ invites: Array<Scalars['String']['input']>;
762
+ name: Scalars['String']['input'];
763
+ subdomain: Scalars['String']['input'];
764
+ };
765
+ export type Mutation_DeleteOrganizationArgs = {
766
+ organizationId: Scalars['String']['input'];
767
+ };
768
+ export type MutationAcknowledgeNotificationArgs = {
769
+ id: Scalars['String']['input'];
770
+ };
771
+ export type MutationAddContributorArgs = {
772
+ documentId: Scalars['String']['input'];
773
+ userId: Scalars['String']['input'];
774
+ };
775
+ export type MutationAddInformedArgs = {
776
+ documentId: Scalars['String']['input'];
777
+ userId: Scalars['String']['input'];
778
+ };
779
+ export type MutationAddReactionArgs = {
780
+ input: AddReactionInput;
781
+ };
782
+ export type MutationAddReactionOnMessageArgs = {
783
+ input: AddCollaborationMessageReactionInput;
784
+ };
785
+ export type MutationAddReviewerArgs = {
786
+ documentId: Scalars['String']['input'];
787
+ userId: Scalars['String']['input'];
788
+ };
789
+ export type MutationCancelBuildArgs = {
790
+ buildId: Scalars['String']['input'];
791
+ };
792
+ export type MutationChangePasswordArgs = {
793
+ oldPassword: Scalars['String']['input'];
794
+ password: Scalars['String']['input'];
795
+ };
796
+ export type MutationClearValidationResultsArgs = {
797
+ collectionIds: Array<Scalars['String']['input']>;
798
+ documentId: Scalars['String']['input'];
799
+ };
800
+ export type MutationConfirmEmailArgs = {
801
+ token: Scalars['String']['input'];
802
+ };
803
+ export type MutationCreateDiscussionArgs = {
804
+ input: CreateDiscussionInput;
805
+ };
806
+ export type MutationCreateDocumentArgs = {
807
+ input?: InputMaybe<CreateDocumentInput>;
808
+ };
809
+ export type MutationCreateMessageArgs = {
810
+ input: CreateCollaborationMessageInput;
811
+ };
812
+ export type MutationCreateOrganizationAccessTokenArgs = {
813
+ name: Scalars['String']['input'];
814
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
815
+ };
816
+ export type MutationCreateReplyArgs = {
817
+ input: CreateReplyInput;
818
+ };
819
+ export type MutationCreateRequirementCollectionArgs = {
820
+ input: CreateRequirementCollectionInput;
821
+ };
822
+ export type MutationCreateSamlConnectionArgs = {
823
+ input: CreateSamlConnectionInput;
824
+ };
825
+ export type MutationCreateScimDirectoryConnectionArgs = {
826
+ input: CreateScimConnectionInput;
827
+ };
828
+ export type MutationCreateSubscriptionArgs = {
829
+ planId: Scalars['String']['input'];
830
+ };
831
+ export type MutationCreateUserAccessTokenArgs = {
832
+ name: Scalars['String']['input'];
833
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
834
+ };
835
+ export type MutationCreateUserFilterArgs = {
836
+ input: CreateUserFilterInput;
837
+ };
838
+ export type MutationDeleteAssetArgs = {
839
+ url: Scalars['String']['input'];
840
+ };
841
+ export type MutationDeleteBuildArgs = {
842
+ buildId: Scalars['String']['input'];
843
+ };
844
+ export type MutationDeleteCreditCardArgs = {
845
+ paymentMethodId: Scalars['String']['input'];
846
+ };
847
+ export type MutationDeleteDiscussionArgs = {
848
+ discussionId: Scalars['String']['input'];
849
+ };
850
+ export type MutationDeleteDocumentArgs = {
851
+ documentId: Scalars['String']['input'];
852
+ };
853
+ export type MutationDeleteInviteArgs = {
854
+ id: Scalars['String']['input'];
855
+ };
856
+ export type MutationDeleteMessageArgs = {
857
+ id: Scalars['String']['input'];
858
+ };
859
+ export type MutationDeleteOrganizationAccessTokenArgs = {
860
+ id: Scalars['String']['input'];
861
+ };
862
+ export type MutationDeletePullRequestValidationResultsArgs = {
863
+ input: DeletePullRequestValidationResultsInput;
864
+ };
865
+ export type MutationDeleteRequirementCollectionArgs = {
866
+ id: Scalars['String']['input'];
867
+ };
868
+ export type MutationDeleteSamlConnectionArgs = {
869
+ subdomain: Scalars['String']['input'];
870
+ };
871
+ export type MutationDeleteScimDirectoryConnectionArgs = {
872
+ id: Scalars['String']['input'];
873
+ };
874
+ export type MutationDeleteUserArgs = {
875
+ id: Scalars['String']['input'];
876
+ };
877
+ export type MutationDeleteUserAccessTokenArgs = {
878
+ id: Scalars['String']['input'];
879
+ };
880
+ export type MutationDeleteUserFilterArgs = {
881
+ id: Scalars['String']['input'];
882
+ };
883
+ export type MutationDismissAnnouncementArgs = {
884
+ announcementKey: Scalars['String']['input'];
885
+ };
886
+ export type MutationEndCollaborationSessionArgs = {
887
+ documentId: Scalars['String']['input'];
888
+ };
889
+ export type MutationExtractRequirementsArgs = {
890
+ body: Scalars['String']['input'];
891
+ };
892
+ export type MutationForgotPasswordArgs = {
893
+ email: Scalars['String']['input'];
894
+ };
895
+ export type MutationInviteUserToOrganizationArgs = {
896
+ bootstrap?: InputMaybe<Array<Scalars['String']['input']>>;
897
+ email: Scalars['String']['input'];
898
+ roles?: InputMaybe<Array<Role>>;
899
+ };
900
+ export type MutationLoginArgs = {
901
+ input: LoginInput;
902
+ };
903
+ export type MutationLoginGoogleArgs = {
904
+ token: Scalars['String']['input'];
905
+ };
906
+ export type MutationLoginOauthArgs = {
907
+ organizationId: Scalars['String']['input'];
908
+ token: Scalars['String']['input'];
909
+ };
910
+ export type MutationMarkNotificationAsReadArgs = {
911
+ id: Scalars['String']['input'];
912
+ };
913
+ export type MutationReactivateOrganizationMemberArgs = {
914
+ id: Scalars['String']['input'];
915
+ };
916
+ export type MutationRemoveContributorArgs = {
917
+ documentId: Scalars['String']['input'];
918
+ userId: Scalars['String']['input'];
919
+ };
920
+ export type MutationRemoveInformedArgs = {
921
+ documentId: Scalars['String']['input'];
922
+ userId: Scalars['String']['input'];
923
+ };
924
+ export type MutationRemoveOrganizationMemberArgs = {
925
+ id: Scalars['String']['input'];
926
+ };
927
+ export type MutationRemoveReactionArgs = {
928
+ input: RemoveReactionInput;
929
+ };
930
+ export type MutationRemoveReactionOnMessageArgs = {
931
+ input: RemoveCollaborationMessageReactionInput;
932
+ };
933
+ export type MutationRemoveReviewerArgs = {
934
+ documentId: Scalars['String']['input'];
935
+ userId: Scalars['String']['input'];
936
+ };
937
+ export type MutationRenameUserFilterArgs = {
938
+ input: UpdateUserFilterInput;
939
+ };
940
+ export type MutationResendInviteArgs = {
941
+ bootstrap?: InputMaybe<Array<Scalars['String']['input']>>;
942
+ email: Scalars['String']['input'];
943
+ roles?: InputMaybe<Array<Role>>;
944
+ };
945
+ export type MutationResetPasswordArgs = {
946
+ password: Scalars['String']['input'];
947
+ token: Scalars['String']['input'];
948
+ };
949
+ export type MutationRotateOrganizationAccessTokenArgs = {
950
+ id: Scalars['String']['input'];
951
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
952
+ };
953
+ export type MutationRotateUserAccessTokenArgs = {
954
+ id: Scalars['String']['input'];
955
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
956
+ };
957
+ export type MutationSaveCreditCardArgs = {
958
+ defaultCard?: InputMaybe<Scalars['Boolean']['input']>;
959
+ paymentMethodId: Scalars['String']['input'];
960
+ };
961
+ export type MutationSetDefaultPaymentMethodArgs = {
962
+ paymentMethodId: Scalars['String']['input'];
963
+ };
964
+ export type MutationSignUpWithInviteArgs = {
965
+ input: SignUpWithInviteInput;
966
+ };
967
+ export type MutationSignUpWithInviteGoogleArgs = {
968
+ input: SignUpWithInviteGoogleInput;
969
+ };
970
+ export type MutationSignUpWithOrganizationArgs = {
971
+ input: SignUpWithOrganizationInput;
972
+ };
973
+ export type MutationSignUpWithOrganizationGoogleArgs = {
974
+ input: SignUpWithOrganizationGoogleInput;
975
+ };
976
+ export type MutationStartBuildArgs = {
977
+ baseBranch?: InputMaybe<Scalars['String']['input']>;
978
+ documentId: Scalars['String']['input'];
979
+ repositoryUrl: Scalars['String']['input'];
980
+ requirementsCollectionIds?: InputMaybe<Array<Scalars['String']['input']>>;
981
+ };
982
+ export type MutationStartCollaborationSessionArgs = {
983
+ discussionId?: InputMaybe<Scalars['String']['input']>;
984
+ documentId: Scalars['String']['input'];
985
+ };
986
+ export type MutationStoreGithubInstallationArgs = {
987
+ installationId: Scalars['Float']['input'];
988
+ };
989
+ export type MutationSwitchOrganizationArgs = {
990
+ organizationId: Scalars['String']['input'];
991
+ };
992
+ export type MutationUpdateDiscussionArgs = {
993
+ discussionId: Scalars['String']['input'];
994
+ input: UpdateDiscussionInput;
995
+ };
996
+ export type MutationUpdateDocumentArgs = {
997
+ count?: InputMaybe<Scalars['Int']['input']>;
998
+ deleted?: InputMaybe<Scalars['Boolean']['input']>;
999
+ externalId?: InputMaybe<Scalars['String']['input']>;
1000
+ id?: InputMaybe<Scalars['String']['input']>;
1001
+ input: UpdateDocumentInput;
1002
+ };
1003
+ export type MutationUpdateMessageArgs = {
1004
+ id: Scalars['String']['input'];
1005
+ input: UpdateCollaborationMessageInput;
1006
+ };
1007
+ export type MutationUpdateOrganizationMemberArgs = {
1008
+ input: UpdateOrganizationMemberInput;
1009
+ userId: Scalars['String']['input'];
1010
+ };
1011
+ export type MutationUpdateReplyArgs = {
1012
+ input: UpdateReplyInput;
1013
+ };
1014
+ export type MutationUpdateReviewStateArgs = {
1015
+ documentId: Scalars['String']['input'];
1016
+ state: ReviewState;
1017
+ userId: Scalars['String']['input'];
1018
+ };
1019
+ export type MutationUpdateSamlConnectionArgs = {
1020
+ input: UpdateSamlConnectionInput;
1021
+ };
1022
+ export type MutationUpdateUserArgs = {
1023
+ email?: InputMaybe<Scalars['String']['input']>;
1024
+ firstName?: InputMaybe<Scalars['String']['input']>;
1025
+ id: Scalars['String']['input'];
1026
+ lastName?: InputMaybe<Scalars['String']['input']>;
1027
+ profilePicture?: InputMaybe<Scalars['String']['input']>;
1028
+ };
1029
+ export type MutationUpdateValidationResultStatusArgs = {
1030
+ input: UpdateDocumentValidationResultStatusInput;
1031
+ };
1032
+ export type MutationUploadAssetArgs = {
1033
+ asset: Scalars['File']['input'];
1034
+ documentId?: InputMaybe<Scalars['String']['input']>;
1035
+ folder?: InputMaybe<Scalars['String']['input']>;
1036
+ tags?: InputMaybe<Array<Scalars['String']['input']>>;
1037
+ visibility?: InputMaybe<AssetVisibility>;
1038
+ };
1039
+ export type MutationValidateCollectionsArgs = {
1040
+ input: ValidateCollectionsInput;
1041
+ };
1042
+ export type MutationValidateExternalDocumentWithNonFunctionalRequirementsArgs = {
1043
+ content: Scalars['String']['input'];
1044
+ nonFunctionalRequirementsDocId: Scalars['String']['input'];
1045
+ };
1046
+ export type MutationValidateRequirementArgs = {
1047
+ input: ValidateRequirementInput;
1048
+ };
1049
+ export type MutationVerifyOrganizationInviteArgs = {
1050
+ token: Scalars['String']['input'];
1051
+ };
1052
+ export type Notification = {
1053
+ __typename?: 'Notification';
1054
+ channels: Array<NotificationChannel>;
1055
+ createdAt: Scalars['DateTime']['output'];
1056
+ data: Scalars['JSON']['output'];
1057
+ event: NotificationEvent;
1058
+ id: Scalars['String']['output'];
1059
+ organization: Organization;
1060
+ /** The status of the notification */
1061
+ status: NotificationStatus;
1062
+ updatedAt: Scalars['DateTime']['output'];
1063
+ userId: Scalars['String']['output'];
1064
+ };
1065
+ export declare enum NotificationChannel {
1066
+ Email = "Email",
1067
+ InApp = "InApp",
1068
+ Slack = "Slack"
1069
+ }
1070
+ export declare enum NotificationEvent {
1071
+ BatchSummary = "BatchSummary",
1072
+ CollaborationMention = "CollaborationMention",
1073
+ CollaborationMessage = "CollaborationMessage",
1074
+ CollaborationMessageReply = "CollaborationMessageReply",
1075
+ DocumentAddedAsReviewer = "DocumentAddedAsReviewer"
1076
+ }
1077
+ export type NotificationPreference = {
1078
+ __typename?: 'NotificationPreference';
1079
+ channel: NotificationChannel;
1080
+ emailAddress?: Maybe<Scalars['String']['output']>;
1081
+ enabled: Scalars['Boolean']['output'];
1082
+ event: NotificationEvent;
1083
+ };
1084
+ export declare enum NotificationStatus {
1085
+ Acknowledged = "Acknowledged",
1086
+ Archived = "Archived",
1087
+ Delivered = "Delivered",
1088
+ Failed = "Failed",
1089
+ Pending = "Pending",
1090
+ Read = "Read",
1091
+ Sent = "Sent"
1092
+ }
1093
+ export declare enum OperationType {
1094
+ Create = "create",
1095
+ Delete = "delete",
1096
+ Update = "update"
1097
+ }
1098
+ export type Organization = {
1099
+ __typename?: 'Organization';
1100
+ createdAt: Scalars['DateTime']['output'];
1101
+ documents: PaginatedDocument;
1102
+ id: Scalars['String']['output'];
1103
+ logo?: Maybe<Scalars['String']['output']>;
1104
+ name: Scalars['String']['output'];
1105
+ requirementsCollections: PaginatedRequirementCollection;
1106
+ subdomain: Scalars['String']['output'];
1107
+ updatedAt: Scalars['DateTime']['output'];
1108
+ users: PaginatedUser;
1109
+ website?: Maybe<Scalars['String']['output']>;
1110
+ };
1111
+ export type OrganizationDocumentsArgs = {
1112
+ after?: InputMaybe<Scalars['String']['input']>;
1113
+ before?: InputMaybe<Scalars['String']['input']>;
1114
+ first?: InputMaybe<Scalars['Int']['input']>;
1115
+ last?: InputMaybe<Scalars['Int']['input']>;
1116
+ sort?: InputMaybe<SortDirection>;
1117
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1118
+ };
1119
+ export type OrganizationRequirementsCollectionsArgs = {
1120
+ after?: InputMaybe<Scalars['String']['input']>;
1121
+ before?: InputMaybe<Scalars['String']['input']>;
1122
+ first?: InputMaybe<Scalars['Int']['input']>;
1123
+ last?: InputMaybe<Scalars['Int']['input']>;
1124
+ sort?: InputMaybe<SortDirection>;
1125
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1126
+ };
1127
+ export type OrganizationUsersArgs = {
1128
+ after?: InputMaybe<Scalars['String']['input']>;
1129
+ before?: InputMaybe<Scalars['String']['input']>;
1130
+ deactivated?: InputMaybe<Scalars['Boolean']['input']>;
1131
+ first?: InputMaybe<Scalars['Int']['input']>;
1132
+ last?: InputMaybe<Scalars['Int']['input']>;
1133
+ search?: InputMaybe<Scalars['String']['input']>;
1134
+ sort?: InputMaybe<SortDirection>;
1135
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1136
+ };
1137
+ export type OrganizationEdge = {
1138
+ __typename?: 'OrganizationEdge';
1139
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
1140
+ cursor: Scalars['String']['output'];
1141
+ /** The actual data node */
1142
+ node: Organization;
1143
+ };
1144
+ export type OrganizationInvite = {
1145
+ __typename?: 'OrganizationInvite';
1146
+ createdAt: Scalars['DateTime']['output'];
1147
+ /** The users email address. */
1148
+ email: Scalars['String']['output'];
1149
+ firstName?: Maybe<Scalars['String']['output']>;
1150
+ id: Scalars['String']['output'];
1151
+ invitedBy?: Maybe<User>;
1152
+ lastName?: Maybe<Scalars['String']['output']>;
1153
+ name: Scalars['String']['output'];
1154
+ organizationId: Scalars['String']['output'];
1155
+ profilePicture?: Maybe<Scalars['String']['output']>;
1156
+ roles: Array<Role>;
1157
+ status: Scalars['String']['output'];
1158
+ token: Scalars['String']['output'];
1159
+ updatedAt: Scalars['DateTime']['output'];
1160
+ userId?: Maybe<Scalars['String']['output']>;
1161
+ validUntil: Scalars['DateTime']['output'];
1162
+ };
1163
+ export type PageInfo = {
1164
+ __typename?: 'PageInfo';
1165
+ /** Cursor for the end of the page. */
1166
+ endCursor?: Maybe<Scalars['String']['output']>;
1167
+ /** Indicates if there are pages available after the current page. */
1168
+ hasNextPage: Scalars['Boolean']['output'];
1169
+ /** Indicates if there are pages available before the current page. */
1170
+ hasPreviousPage: Scalars['Boolean']['output'];
1171
+ /** Cursor for the start of the page. */
1172
+ startCursor?: Maybe<Scalars['String']['output']>;
1173
+ };
1174
+ export type PaginatedAsset = {
1175
+ __typename?: 'PaginatedAsset';
1176
+ /** Edges of the current page, containing nodes and their cursors. */
1177
+ edges?: Maybe<Array<AssetOwnerEdge>>;
1178
+ /** The actual data node */
1179
+ nodes: Array<Asset>;
1180
+ /** Information about the current page state and available navigation. */
1181
+ pageInfo?: Maybe<PageInfo>;
1182
+ /** The total number of items across all pages. */
1183
+ totalCount: Scalars['Float']['output'];
1184
+ };
1185
+ export type PaginatedCodeValidationResult = {
1186
+ __typename?: 'PaginatedCodeValidationResult';
1187
+ /** Edges of the current page, containing nodes and their cursors. */
1188
+ edges?: Maybe<Array<CodeValidationResultEdge>>;
1189
+ /** The actual data node */
1190
+ nodes: Array<CodeValidationResult>;
1191
+ /** Information about the current page state and available navigation. */
1192
+ pageInfo?: Maybe<PageInfo>;
1193
+ /** The total number of items across all pages. */
1194
+ totalCount: Scalars['Float']['output'];
1195
+ };
1196
+ export type PaginatedCodeValidationSession = {
1197
+ __typename?: 'PaginatedCodeValidationSession';
1198
+ /** Edges of the current page, containing nodes and their cursors. */
1199
+ edges?: Maybe<Array<CodeValidationSessionEdge>>;
1200
+ /** The actual data node */
1201
+ nodes: Array<CodeValidationSession>;
1202
+ /** Information about the current page state and available navigation. */
1203
+ pageInfo?: Maybe<PageInfo>;
1204
+ /** The total number of items across all pages. */
1205
+ totalCount: Scalars['Float']['output'];
1206
+ };
1207
+ export type PaginatedDocument = {
1208
+ __typename?: 'PaginatedDocument';
1209
+ /** Edges of the current page, containing nodes and their cursors. */
1210
+ edges?: Maybe<Array<DocumentEdge>>;
1211
+ /** The actual data node */
1212
+ nodes: Array<Document>;
1213
+ /** Information about the current page state and available navigation. */
1214
+ pageInfo?: Maybe<PageInfo>;
1215
+ /** The total number of items across all pages. */
1216
+ totalCount: Scalars['Float']['output'];
1217
+ };
1218
+ export type PaginatedDocumentUpdate = {
1219
+ __typename?: 'PaginatedDocumentUpdate';
1220
+ /** Edges of the current page, containing nodes and their cursors. */
1221
+ edges?: Maybe<Array<DocumentUpdateEdge>>;
1222
+ /** The actual data node */
1223
+ nodes: Array<DocumentUpdate>;
1224
+ /** Information about the current page state and available navigation. */
1225
+ pageInfo?: Maybe<PageInfo>;
1226
+ /** The total number of items across all pages. */
1227
+ totalCount: Scalars['Float']['output'];
1228
+ };
1229
+ export type PaginatedOrganization = {
1230
+ __typename?: 'PaginatedOrganization';
1231
+ /** Edges of the current page, containing nodes and their cursors. */
1232
+ edges?: Maybe<Array<OrganizationEdge>>;
1233
+ /** The actual data node */
1234
+ nodes: Array<Organization>;
1235
+ /** Information about the current page state and available navigation. */
1236
+ pageInfo?: Maybe<PageInfo>;
1237
+ /** The total number of items across all pages. */
1238
+ totalCount: Scalars['Float']['output'];
1239
+ };
1240
+ export type PaginatedRequirementCollection = {
1241
+ __typename?: 'PaginatedRequirementCollection';
1242
+ /** Edges of the current page, containing nodes and their cursors. */
1243
+ edges?: Maybe<Array<RequirementCollectionEdge>>;
1244
+ /** The actual data node */
1245
+ nodes: Array<RequirementCollection>;
1246
+ /** Information about the current page state and available navigation. */
1247
+ pageInfo?: Maybe<PageInfo>;
1248
+ /** The total number of items across all pages. */
1249
+ totalCount: Scalars['Float']['output'];
1250
+ };
1251
+ export type PaginatedUser = {
1252
+ __typename?: 'PaginatedUser';
1253
+ /** Edges of the current page, containing nodes and their cursors. */
1254
+ edges?: Maybe<Array<UserEdge>>;
1255
+ /** The actual data node */
1256
+ nodes: Array<User>;
1257
+ /** Information about the current page state and available navigation. */
1258
+ pageInfo?: Maybe<PageInfo>;
1259
+ /** The total number of items across all pages. */
1260
+ totalCount: Scalars['Float']['output'];
1261
+ };
1262
+ export type PaymentCard = {
1263
+ __typename?: 'PaymentCard';
1264
+ brand: Scalars['String']['output'];
1265
+ defaultCard: Scalars['Boolean']['output'];
1266
+ expireMonth: Scalars['Int']['output'];
1267
+ expireYear: Scalars['Int']['output'];
1268
+ id: Scalars['String']['output'];
1269
+ lastDigits: Scalars['String']['output'];
1270
+ };
1271
+ export type Plan = {
1272
+ __typename?: 'Plan';
1273
+ /** The base price of the plan in cents */
1274
+ basePrice: Scalars['Int']['output'];
1275
+ currency: Scalars['String']['output'];
1276
+ description?: Maybe<Scalars['String']['output']>;
1277
+ id: Scalars['String']['output'];
1278
+ interval: RecurringInterval;
1279
+ name: Scalars['String']['output'];
1280
+ /** The price per unit in cents */
1281
+ pricePerUnit?: Maybe<Scalars['Int']['output']>;
1282
+ unit?: Maybe<Scalars['String']['output']>;
1283
+ /** The maximum number of units allowed for this plan */
1284
+ upTo?: Maybe<Scalars['Int']['output']>;
1285
+ /** Whether this plan can be upgraded to a higher one or not */
1286
+ upgradeable: Scalars['Boolean']['output'];
1287
+ };
1288
+ export type PlanSubscription = {
1289
+ __typename?: 'PlanSubscription';
1290
+ createdAt: Scalars['DateTime']['output'];
1291
+ organization: Organization;
1292
+ plan: Plan;
1293
+ updatedAt: Scalars['DateTime']['output'];
1294
+ };
1295
+ export type PrivateUser = {
1296
+ __typename?: 'PrivateUser';
1297
+ assets: PaginatedAsset;
1298
+ createdAt: Scalars['DateTime']['output'];
1299
+ defaultOrganization: Organization;
1300
+ /** List of dismissed announcements (onboarding, feature announcements, tips, etc.) */
1301
+ dismissedAnnouncements: Array<Scalars['String']['output']>;
1302
+ /** The users email address. */
1303
+ email: Scalars['String']['output'];
1304
+ /** Indicates if the email address got already confirmed */
1305
+ emailConfirmed: Scalars['Boolean']['output'];
1306
+ firstName?: Maybe<Scalars['String']['output']>;
1307
+ id: Scalars['String']['output'];
1308
+ /** The date when the user logged in the last time. */
1309
+ lastLogin?: Maybe<Scalars['DateTime']['output']>;
1310
+ lastName?: Maybe<Scalars['String']['output']>;
1311
+ name: Scalars['String']['output'];
1312
+ organizations: PaginatedOrganization;
1313
+ profilePicture?: Maybe<Scalars['String']['output']>;
1314
+ provisionedByScim: Scalars['Boolean']['output'];
1315
+ roles: Array<Role>;
1316
+ updatedAt: Scalars['DateTime']['output'];
1317
+ };
1318
+ export type PrivateUserAssetsArgs = {
1319
+ after?: InputMaybe<Scalars['String']['input']>;
1320
+ before?: InputMaybe<Scalars['String']['input']>;
1321
+ first?: InputMaybe<Scalars['Int']['input']>;
1322
+ last?: InputMaybe<Scalars['Int']['input']>;
1323
+ sort?: InputMaybe<SortDirection>;
1324
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1325
+ };
1326
+ export type PrivateUserOrganizationsArgs = {
1327
+ after?: InputMaybe<Scalars['String']['input']>;
1328
+ before?: InputMaybe<Scalars['String']['input']>;
1329
+ first?: InputMaybe<Scalars['Int']['input']>;
1330
+ last?: InputMaybe<Scalars['Int']['input']>;
1331
+ sort?: InputMaybe<SortDirection>;
1332
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1333
+ };
1334
+ export type Query = {
1335
+ __typename?: 'Query';
1336
+ _allOrganizations: PaginatedOrganization;
1337
+ _organizationExists: Scalars['Boolean']['output'];
1338
+ _statistics: Statistics;
1339
+ availableGithubRepos: Array<GithubRepo>;
1340
+ build: Build;
1341
+ builds: Array<Build>;
1342
+ /** List validation results with pagination. Filter by repo OR organization (not both) */
1343
+ codeValidationResults: PaginatedCodeValidationResult;
1344
+ /** List validation sessions (runs) with pagination and aggregated metadata */
1345
+ codeValidationSessions: PaginatedCodeValidationSession;
1346
+ defaultBranch?: Maybe<GithubBranch>;
1347
+ discussion: DocumentDiscussion;
1348
+ document: Document;
1349
+ documentDiffVersion: Scalars['String']['output'];
1350
+ documentFilters: Array<UserFilter>;
1351
+ documentValidationResults: Array<DocumentValidationResult>;
1352
+ /** Retrieves a list of document versions by the document's id. */
1353
+ documentVersions: PaginatedDocumentUpdate;
1354
+ documents: PaginatedDocument;
1355
+ findAllOrganizationAccessTokens: Array<AccessToken>;
1356
+ findAllUserAccessTokens: Array<UserAccessToken>;
1357
+ generateDocumentTitle: Array<Scalars['String']['output']>;
1358
+ /** Match requirements for a document using AI-powered analysis. */
1359
+ getMatchingRequirements: Array<RequirementMatch>;
1360
+ /** Match requirements for a task using AI-powered analysis. */
1361
+ getMatchingRequirementsForTask: Array<RequirementMatch>;
1362
+ getMyAssets: PaginatedAsset;
1363
+ getNotifications: Array<Notification>;
1364
+ getSlackIntegration?: Maybe<SlackIntegration>;
1365
+ /** Get stakeholder recommendations for a document based on topic expertise */
1366
+ getStakeholderRecommendationsForDocument: Array<UserRecommendation>;
1367
+ getUnreadNotificationCount: Scalars['Float']['output'];
1368
+ getUserNotificationPreferences: Array<NotificationPreference>;
1369
+ githubInstallation?: Maybe<GithubInstallation>;
1370
+ /** Retrieve a list of all customer invoices */
1371
+ invoices: Array<Invoice>;
1372
+ latestBuild?: Maybe<Build>;
1373
+ me: PrivateUser;
1374
+ message: CollaborationMessage;
1375
+ messagesForRequirementCollection: Array<CollaborationMessage>;
1376
+ oauthLoginScreen: SamlLogin;
1377
+ organization: Organization;
1378
+ organizationInvites: Array<OrganizationInvite>;
1379
+ organizations: PaginatedOrganization;
1380
+ /** Retrieve a list of all customer credit cards */
1381
+ paymentCards: Array<PaymentCard>;
1382
+ pricingPlan: Plan;
1383
+ pricingPlans: Array<Plan>;
1384
+ /** Check if validation results exist for a pull request commit */
1385
+ pullRequestValidationExists: Scalars['Boolean']['output'];
1386
+ /** Get all validation results for a specific pull request */
1387
+ pullRequestValidationResults: Array<CodeValidationResult>;
1388
+ reply: DocumentReply;
1389
+ repositoryBranches: Array<GithubBranch>;
1390
+ requirementCollection: RequirementCollection;
1391
+ requirementCollections: PaginatedRequirementCollection;
1392
+ requirementFilters: Array<UserFilter>;
1393
+ samlConnection?: Maybe<SamlConnection>;
1394
+ samlInfo: SamlInfo;
1395
+ scimDirectoryConnection?: Maybe<ScimConnection>;
1396
+ scimDirectoryConnectionTypes: Scalars['JSON']['output'];
1397
+ searchDocuments: Array<Document>;
1398
+ searchRequirementCollections: Array<RequirementCollection>;
1399
+ similarDocuments: Array<Document>;
1400
+ unfurl: UnfurledUrl;
1401
+ user: User;
1402
+ usersByIds: Array<User>;
1403
+ /** Get all validation results for a specific commit SHA across the organization (supports same SHA in multiple PRs) */
1404
+ validationResultsBySha: Array<CodeValidationResult>;
1405
+ /** Get all validation results for a specific validation session/run (by session ID) */
1406
+ validationSessionResults: Array<CodeValidationResult>;
1407
+ };
1408
+ export type Query_AllOrganizationsArgs = {
1409
+ after?: InputMaybe<Scalars['String']['input']>;
1410
+ before?: InputMaybe<Scalars['String']['input']>;
1411
+ first?: InputMaybe<Scalars['Int']['input']>;
1412
+ last?: InputMaybe<Scalars['Int']['input']>;
1413
+ sort?: InputMaybe<SortDirection>;
1414
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1415
+ };
1416
+ export type Query_OrganizationExistsArgs = {
1417
+ subdomain: Scalars['String']['input'];
1418
+ };
1419
+ export type QueryBuildArgs = {
1420
+ buildId: Scalars['String']['input'];
1421
+ };
1422
+ export type QueryBuildsArgs = {
1423
+ documentId: Scalars['String']['input'];
1424
+ };
1425
+ export type QueryCodeValidationResultsArgs = {
1426
+ after?: InputMaybe<Scalars['String']['input']>;
1427
+ before?: InputMaybe<Scalars['String']['input']>;
1428
+ first?: InputMaybe<Scalars['Int']['input']>;
1429
+ last?: InputMaybe<Scalars['Int']['input']>;
1430
+ repo?: InputMaybe<Scalars['String']['input']>;
1431
+ sort?: InputMaybe<SortDirection>;
1432
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1433
+ };
1434
+ export type QueryCodeValidationSessionsArgs = {
1435
+ after?: InputMaybe<Scalars['String']['input']>;
1436
+ before?: InputMaybe<Scalars['String']['input']>;
1437
+ first?: InputMaybe<Scalars['Int']['input']>;
1438
+ last?: InputMaybe<Scalars['Int']['input']>;
1439
+ repo?: InputMaybe<Scalars['String']['input']>;
1440
+ sort?: InputMaybe<SortDirection>;
1441
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1442
+ };
1443
+ export type QueryDefaultBranchArgs = {
1444
+ repositoryUrl: Scalars['String']['input'];
1445
+ };
1446
+ export type QueryDiscussionArgs = {
1447
+ id: Scalars['String']['input'];
1448
+ };
1449
+ export type QueryDocumentArgs = {
1450
+ count?: InputMaybe<Scalars['Int']['input']>;
1451
+ deleted?: InputMaybe<Scalars['Boolean']['input']>;
1452
+ externalId?: InputMaybe<Scalars['String']['input']>;
1453
+ id?: InputMaybe<Scalars['String']['input']>;
1454
+ };
1455
+ export type QueryDocumentDiffVersionArgs = {
1456
+ count?: InputMaybe<Scalars['Int']['input']>;
1457
+ externalId?: InputMaybe<Scalars['String']['input']>;
1458
+ from?: InputMaybe<Scalars['String']['input']>;
1459
+ id?: InputMaybe<Scalars['String']['input']>;
1460
+ to: Scalars['String']['input'];
1461
+ };
1462
+ export type QueryDocumentValidationResultsArgs = {
1463
+ documentId: Scalars['String']['input'];
1464
+ };
1465
+ export type QueryDocumentVersionsArgs = {
1466
+ after?: InputMaybe<Scalars['String']['input']>;
1467
+ before?: InputMaybe<Scalars['String']['input']>;
1468
+ documentId: Scalars['String']['input'];
1469
+ first?: InputMaybe<Scalars['Int']['input']>;
1470
+ last?: InputMaybe<Scalars['Int']['input']>;
1471
+ sort?: InputMaybe<SortDirection>;
1472
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1473
+ };
1474
+ export type QueryDocumentsArgs = {
1475
+ after?: InputMaybe<Scalars['String']['input']>;
1476
+ before?: InputMaybe<Scalars['String']['input']>;
1477
+ first?: InputMaybe<Scalars['Int']['input']>;
1478
+ last?: InputMaybe<Scalars['Int']['input']>;
1479
+ sort?: InputMaybe<SortDirection>;
1480
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1481
+ userId?: InputMaybe<Scalars['String']['input']>;
1482
+ };
1483
+ export type QueryGenerateDocumentTitleArgs = {
1484
+ documentId: Scalars['String']['input'];
1485
+ };
1486
+ export type QueryGetMatchingRequirementsArgs = {
1487
+ documentId: Scalars['String']['input'];
1488
+ };
1489
+ export type QueryGetMatchingRequirementsForTaskArgs = {
1490
+ body: Scalars['String']['input'];
1491
+ summary: Scalars['String']['input'];
1492
+ title: Scalars['String']['input'];
1493
+ };
1494
+ export type QueryGetMyAssetsArgs = {
1495
+ after?: InputMaybe<Scalars['String']['input']>;
1496
+ before?: InputMaybe<Scalars['String']['input']>;
1497
+ first?: InputMaybe<Scalars['Int']['input']>;
1498
+ last?: InputMaybe<Scalars['Int']['input']>;
1499
+ sort?: InputMaybe<SortDirection>;
1500
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1501
+ };
1502
+ export type QueryGetNotificationsArgs = {
1503
+ limit?: InputMaybe<Scalars['Float']['input']>;
1504
+ offset?: InputMaybe<Scalars['Float']['input']>;
1505
+ status?: InputMaybe<Scalars['String']['input']>;
1506
+ };
1507
+ export type QueryGetStakeholderRecommendationsForDocumentArgs = {
1508
+ documentId: Scalars['ID']['input'];
1509
+ };
1510
+ export type QueryLatestBuildArgs = {
1511
+ documentId: Scalars['String']['input'];
1512
+ };
1513
+ export type QueryMessageArgs = {
1514
+ id: Scalars['String']['input'];
1515
+ };
1516
+ export type QueryMessagesForRequirementCollectionArgs = {
1517
+ requirementCollectionId: Scalars['String']['input'];
1518
+ };
1519
+ export type QueryOauthLoginScreenArgs = {
1520
+ subdomain: Scalars['String']['input'];
1521
+ };
1522
+ export type QueryOrganizationsArgs = {
1523
+ after?: InputMaybe<Scalars['String']['input']>;
1524
+ before?: InputMaybe<Scalars['String']['input']>;
1525
+ first?: InputMaybe<Scalars['Int']['input']>;
1526
+ last?: InputMaybe<Scalars['Int']['input']>;
1527
+ sort?: InputMaybe<SortDirection>;
1528
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1529
+ };
1530
+ export type QueryPullRequestValidationExistsArgs = {
1531
+ headSha: Scalars['String']['input'];
1532
+ pullRequestNumber: Scalars['Float']['input'];
1533
+ repo: Scalars['String']['input'];
1534
+ };
1535
+ export type QueryPullRequestValidationResultsArgs = {
1536
+ input: GetPullRequestValidationResultsInput;
1537
+ };
1538
+ export type QueryReplyArgs = {
1539
+ id: Scalars['String']['input'];
1540
+ };
1541
+ export type QueryRepositoryBranchesArgs = {
1542
+ repositoryUrl: Scalars['String']['input'];
1543
+ };
1544
+ export type QueryRequirementCollectionArgs = {
1545
+ id: Scalars['String']['input'];
1546
+ };
1547
+ export type QueryRequirementCollectionsArgs = {
1548
+ after?: InputMaybe<Scalars['String']['input']>;
1549
+ before?: InputMaybe<Scalars['String']['input']>;
1550
+ first?: InputMaybe<Scalars['Int']['input']>;
1551
+ last?: InputMaybe<Scalars['Int']['input']>;
1552
+ sort?: InputMaybe<SortDirection>;
1553
+ sortBy?: InputMaybe<Scalars['String']['input']>;
1554
+ userId?: InputMaybe<Scalars['String']['input']>;
1555
+ };
1556
+ export type QuerySamlConnectionArgs = {
1557
+ subdomain: Scalars['String']['input'];
1558
+ };
1559
+ export type QueryScimDirectoryConnectionArgs = {
1560
+ subdomain: Scalars['String']['input'];
1561
+ };
1562
+ export type QuerySearchDocumentsArgs = {
1563
+ facets?: InputMaybe<DocumentSearchFacets>;
1564
+ query?: InputMaybe<Scalars['String']['input']>;
1565
+ };
1566
+ export type QuerySearchRequirementCollectionsArgs = {
1567
+ facets?: InputMaybe<RequirementSearchFacets>;
1568
+ query?: InputMaybe<Scalars['String']['input']>;
1569
+ };
1570
+ export type QuerySimilarDocumentsArgs = {
1571
+ documentId: Scalars['String']['input'];
1572
+ limit?: InputMaybe<Scalars['Int']['input']>;
1573
+ };
1574
+ export type QueryUnfurlArgs = {
1575
+ url: Scalars['String']['input'];
1576
+ };
1577
+ export type QueryUserArgs = {
1578
+ id: Scalars['String']['input'];
1579
+ organizationId: Scalars['String']['input'];
1580
+ };
1581
+ export type QueryUsersByIdsArgs = {
1582
+ ids: Array<Scalars['String']['input']>;
1583
+ };
1584
+ export type QueryValidationResultsByShaArgs = {
1585
+ headSha: Scalars['String']['input'];
1586
+ };
1587
+ export type QueryValidationSessionResultsArgs = {
1588
+ sessionId: Scalars['String']['input'];
1589
+ };
1590
+ export type Reaction = {
1591
+ __typename?: 'Reaction';
1592
+ content: Scalars['String']['output'];
1593
+ createdAt: Scalars['DateTime']['output'];
1594
+ discussion?: Maybe<DocumentDiscussion>;
1595
+ document: Document;
1596
+ id: Scalars['String']['output'];
1597
+ organization: Organization;
1598
+ reply?: Maybe<DocumentReply>;
1599
+ updatedAt: Scalars['DateTime']['output'];
1600
+ user: User;
1601
+ };
1602
+ export type ReactionOperation = {
1603
+ __typename?: 'ReactionOperation';
1604
+ operationType: OperationType;
1605
+ reaction: Reaction;
1606
+ };
1607
+ export declare enum RecurringInterval {
1608
+ Month = "Month",
1609
+ Year = "Year"
1610
+ }
1611
+ export type RemoveCollaborationMessageReactionInput = {
1612
+ content: Scalars['String']['input'];
1613
+ messageId: Scalars['String']['input'];
1614
+ };
1615
+ export type RemoveReactionInput = {
1616
+ /** The unique id of the reaction that should be removed */
1617
+ reactionId: Scalars['String']['input'];
1618
+ };
1619
+ export type ReplyOperation = {
1620
+ __typename?: 'ReplyOperation';
1621
+ operationType: OperationType;
1622
+ reply: DocumentReply;
1623
+ };
1624
+ export type Requirement = {
1625
+ __typename?: 'Requirement';
1626
+ collectionId: Scalars['String']['output'];
1627
+ /** The content of the requirement as markdown */
1628
+ content: Scalars['String']['output'];
1629
+ createdAt: Scalars['DateTime']['output'];
1630
+ id: Scalars['String']['output'];
1631
+ mandatory: Scalars['Boolean']['output'];
1632
+ organization: Organization;
1633
+ updatedAt: Scalars['DateTime']['output'];
1634
+ };
1635
+ export type RequirementCollection = {
1636
+ __typename?: 'RequirementCollection';
1637
+ createdAt: Scalars['DateTime']['output'];
1638
+ createdBy: User;
1639
+ description?: Maybe<Scalars['String']['output']>;
1640
+ id: Scalars['String']['output'];
1641
+ name?: Maybe<Scalars['String']['output']>;
1642
+ organization: Organization;
1643
+ requirements: Array<Requirement>;
1644
+ updatedAt: Scalars['DateTime']['output'];
1645
+ };
1646
+ export type RequirementCollectionEdge = {
1647
+ __typename?: 'RequirementCollectionEdge';
1648
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
1649
+ cursor: Scalars['String']['output'];
1650
+ /** The actual data node */
1651
+ node: RequirementCollection;
1652
+ };
1653
+ export type RequirementMatch = {
1654
+ __typename?: 'RequirementMatch';
1655
+ collectionId: Scalars['String']['output'];
1656
+ collectionName: Scalars['String']['output'];
1657
+ content: Scalars['String']['output'];
1658
+ finalScore: Scalars['Float']['output'];
1659
+ requirementId: Scalars['String']['output'];
1660
+ scope: RequirementScopeClassification;
1661
+ scopeConfidence: Scalars['Float']['output'];
1662
+ scopeReasoning: Scalars['String']['output'];
1663
+ };
1664
+ export declare enum RequirementScopeClassification {
1665
+ InScope = "IN_SCOPE",
1666
+ OutOfScope = "OUT_OF_SCOPE",
1667
+ Uncertain = "UNCERTAIN",
1668
+ Unspecified = "UNSPECIFIED"
1669
+ }
1670
+ export type RequirementSearchFacets = {
1671
+ /** A list of uuids to filter for owners of requirements */
1672
+ owner?: InputMaybe<Array<Scalars['String']['input']>>;
1673
+ };
1674
+ export declare enum ReviewState {
1675
+ Approved = "approved",
1676
+ Initial = "initial",
1677
+ Rejected = "rejected"
1678
+ }
1679
+ /** Selected user who can approve a document. */
1680
+ export type Reviewer = {
1681
+ __typename?: 'Reviewer';
1682
+ createdAt: Scalars['DateTime']['output'];
1683
+ document: Document;
1684
+ id: Scalars['String']['output'];
1685
+ organization: Organization;
1686
+ state: ReviewState;
1687
+ updatedAt: Scalars['DateTime']['output'];
1688
+ user: User;
1689
+ };
1690
+ export declare enum Role {
1691
+ Admin = "admin",
1692
+ OrganizationAdmin = "organizationAdmin",
1693
+ User = "user"
1694
+ }
1695
+ /** Represents a SAML connection that is setup */
1696
+ export type SamlConnection = {
1697
+ __typename?: 'SamlConnection';
1698
+ createdAt: Scalars['DateTime']['output'];
1699
+ id: Scalars['String']['output'];
1700
+ /** The url to redirect the user to for login */
1701
+ loginUrl?: Maybe<Scalars['String']['output']>;
1702
+ /** The xml metadata from the identity provider */
1703
+ metadata: Scalars['String']['output'];
1704
+ /** The xml metadata url to fetch the metadata from */
1705
+ metadataUrl?: Maybe<Scalars['String']['output']>;
1706
+ subdomain: Scalars['String']['output'];
1707
+ updatedAt: Scalars['DateTime']['output'];
1708
+ };
1709
+ /** Holds all endpoints and information to setup a SAML Application */
1710
+ export type SamlInfo = {
1711
+ __typename?: 'SamlInfo';
1712
+ /** The location where the SAML assertion is sent with a HTTP POST. This is often referred to as the SAML Assertion Consumer Service (ACS) URL for your application. */
1713
+ assertionConsumerService: Scalars['String']['output'];
1714
+ /** The application-defined unique identifier that is the intended audience of the SAML assertion. This is most often the SP Entity ID of your application. */
1715
+ audienceUri: Scalars['String']['output'];
1716
+ };
1717
+ export type SamlLogin = {
1718
+ __typename?: 'SamlLogin';
1719
+ oauthUrl?: Maybe<Scalars['String']['output']>;
1720
+ organizationId: Scalars['String']['output'];
1721
+ subdomain: Scalars['String']['output'];
1722
+ };
1723
+ /** Represents a SCIM connection that is setup */
1724
+ export type ScimConnection = {
1725
+ __typename?: 'ScimConnection';
1726
+ createdAt: Scalars['DateTime']['output'];
1727
+ endpoint: Scalars['String']['output'];
1728
+ id: Scalars['String']['output'];
1729
+ name: Scalars['String']['output'];
1730
+ organization: Organization;
1731
+ secret: Scalars['String']['output'];
1732
+ subdomain: Scalars['String']['output'];
1733
+ type: Scalars['String']['output'];
1734
+ updatedAt: Scalars['DateTime']['output'];
1735
+ };
1736
+ /** Sign up with google for an existing organization */
1737
+ export type SignUpWithInviteGoogleInput = {
1738
+ bootstrap: Array<Scalars['String']['input']>;
1739
+ /** The google auth token */
1740
+ googleToken: Scalars['String']['input'];
1741
+ /** The token that is used to sign up for an existing organization */
1742
+ inviteToken: Scalars['String']['input'];
1743
+ };
1744
+ /** Sign up for an existing organization */
1745
+ export type SignUpWithInviteInput = {
1746
+ bootstrap: Array<Scalars['String']['input']>;
1747
+ email: Scalars['String']['input'];
1748
+ firstName?: InputMaybe<Scalars['String']['input']>;
1749
+ /** The token that is used to sign up for an existing organization */
1750
+ inviteToken: Scalars['String']['input'];
1751
+ lastName?: InputMaybe<Scalars['String']['input']>;
1752
+ password: Scalars['String']['input'];
1753
+ };
1754
+ /** Sign up with google and create an organization */
1755
+ export type SignUpWithOrganizationGoogleInput = {
1756
+ /** The google auth token */
1757
+ googleToken: Scalars['String']['input'];
1758
+ /** The name of the organization to create */
1759
+ organizationName: Scalars['String']['input'];
1760
+ /** The subdomain of the organization that will be created */
1761
+ subdomain: Scalars['String']['input'];
1762
+ };
1763
+ /** Sign up and create an organization */
1764
+ export type SignUpWithOrganizationInput = {
1765
+ email: Scalars['String']['input'];
1766
+ firstName?: InputMaybe<Scalars['String']['input']>;
1767
+ lastName?: InputMaybe<Scalars['String']['input']>;
1768
+ /** The name of the organization to create */
1769
+ organizationName: Scalars['String']['input'];
1770
+ password: Scalars['String']['input'];
1771
+ /** The subdomain of the organization that will be created */
1772
+ subdomain: Scalars['String']['input'];
1773
+ };
1774
+ export type SlackIntegration = {
1775
+ __typename?: 'SlackIntegration';
1776
+ createdAt: Scalars['DateTime']['output'];
1777
+ organization: Organization;
1778
+ /** Determines if the slack app needs to be reinstalled because the authentication scopes have changed. */
1779
+ requireReinstall: Scalars['Boolean']['output'];
1780
+ /** The name of the Slack team or enterprise */
1781
+ teamName?: Maybe<Scalars['String']['output']>;
1782
+ updatedAt: Scalars['DateTime']['output'];
1783
+ };
1784
+ export declare enum SortDirection {
1785
+ Asc = "ASC",
1786
+ Desc = "DESC"
1787
+ }
1788
+ export type Statistics = {
1789
+ __typename?: 'Statistics';
1790
+ documents: Scalars['Int']['output'];
1791
+ organizations: Scalars['Int']['output'];
1792
+ users: Scalars['Int']['output'];
1793
+ };
1794
+ export type Subscription = {
1795
+ __typename?: 'Subscription';
1796
+ codeValidationProgress: CodeValidationResult;
1797
+ getBuildTraceLogs: BuildTraceLog;
1798
+ getBuildTraceSpans: BuildTraceSpan;
1799
+ getBuildUpdates: Build;
1800
+ subscribeToCollaborationMessageOperation: CollaborationMessageOperation;
1801
+ subscribeToDiscussionOperation: DiscussionOperation;
1802
+ subscribeToReactionOperation: ReactionOperation;
1803
+ subscribeToReplyOperation: ReplyOperation;
1804
+ validationProgress: DocumentValidationResult;
1805
+ };
1806
+ export type SubscriptionCodeValidationProgressArgs = {
1807
+ sessionId: Scalars['String']['input'];
1808
+ };
1809
+ export type SubscriptionGetBuildTraceLogsArgs = {
1810
+ buildId: Scalars['String']['input'];
1811
+ };
1812
+ export type SubscriptionGetBuildTraceSpansArgs = {
1813
+ buildId: Scalars['String']['input'];
1814
+ };
1815
+ export type SubscriptionGetBuildUpdatesArgs = {
1816
+ buildId: Scalars['String']['input'];
1817
+ };
1818
+ export type SubscriptionSubscribeToCollaborationMessageOperationArgs = {
1819
+ contextId: Scalars['String']['input'];
1820
+ };
1821
+ export type SubscriptionSubscribeToDiscussionOperationArgs = {
1822
+ documentId: Scalars['String']['input'];
1823
+ };
1824
+ export type SubscriptionSubscribeToReactionOperationArgs = {
1825
+ documentId: Scalars['String']['input'];
1826
+ };
1827
+ export type SubscriptionSubscribeToReplyOperationArgs = {
1828
+ discussionId: Scalars['String']['input'];
1829
+ };
1830
+ export type SubscriptionValidationProgressArgs = {
1831
+ documentId: Scalars['String']['input'];
1832
+ };
1833
+ export type Token = {
1834
+ __typename?: 'Token';
1835
+ /** The JWT access token */
1836
+ accessToken: Scalars['String']['output'];
1837
+ /** The organization id the token is valid for */
1838
+ organizationId: Scalars['String']['output'];
1839
+ /** The JWT refresh token */
1840
+ refreshToken: Scalars['String']['output'];
1841
+ };
1842
+ export type UnfurledUrl = {
1843
+ __typename?: 'UnfurledUrl';
1844
+ description: Scalars['String']['output'];
1845
+ favicon: Scalars['String']['output'];
1846
+ image: Scalars['String']['output'];
1847
+ title: Scalars['String']['output'];
1848
+ url: Scalars['String']['output'];
1849
+ };
1850
+ export type UpdateCollaborationMessageInput = {
1851
+ content?: InputMaybe<Scalars['String']['input']>;
1852
+ state?: InputMaybe<CollaborationMessageState>;
1853
+ };
1854
+ export type UpdateDiscussionInput = {
1855
+ html?: InputMaybe<Scalars['String']['input']>;
1856
+ state?: InputMaybe<DocumentDiscussionState>;
1857
+ };
1858
+ export type UpdateDocumentInput = {
1859
+ driver?: InputMaybe<Scalars['String']['input']>;
1860
+ dueDate?: InputMaybe<Scalars['DateTime']['input']>;
1861
+ /** The external id of the document */
1862
+ externalId?: InputMaybe<Scalars['String']['input']>;
1863
+ /** A link to the external document */
1864
+ externalUrl?: InputMaybe<Scalars['String']['input']>;
1865
+ lastSyncedAt?: InputMaybe<Scalars['DateTime']['input']>;
1866
+ state?: InputMaybe<DocumentState>;
1867
+ title?: InputMaybe<Scalars['String']['input']>;
1868
+ };
1869
+ export type UpdateDocumentValidationResultStatusInput = {
1870
+ documentId: Scalars['String']['input'];
1871
+ requirementId: Scalars['String']['input'];
1872
+ status: DocumentValidationResultStatus;
1873
+ /** The unique id of the user that updates the validation result, defaults to the current user */
1874
+ updatedById?: InputMaybe<Scalars['String']['input']>;
1875
+ };
1876
+ export type UpdateOrganizationMemberInput = {
1877
+ /** The role that should be assigned to the user inside the organization */
1878
+ roles?: InputMaybe<Array<Role>>;
1879
+ };
1880
+ export type UpdateReplyInput = {
1881
+ content: Scalars['String']['input'];
1882
+ /** The unique id of the reply */
1883
+ replyId: Scalars['String']['input'];
1884
+ state?: InputMaybe<DocumentReplyState>;
1885
+ };
1886
+ /** Updates an existing SAML connection */
1887
+ export type UpdateSamlConnectionInput = {
1888
+ /** The xml metadata from the identity provider */
1889
+ metadata: Scalars['String']['input'];
1890
+ /** The url to load the metadata from the identity provider */
1891
+ metadataUrl?: InputMaybe<Scalars['String']['input']>;
1892
+ /** The tenant identifier for the connection, the organization subdomain */
1893
+ subdomain: Scalars['String']['input'];
1894
+ };
1895
+ export type UpdateUserFilterInput = {
1896
+ id: Scalars['String']['input'];
1897
+ name: Scalars['String']['input'];
1898
+ };
1899
+ export type User = {
1900
+ __typename?: 'User';
1901
+ createdAt: Scalars['DateTime']['output'];
1902
+ /** Indicates if the user got removed from the organization. */
1903
+ deactivated: Scalars['Boolean']['output'];
1904
+ /** The users email address. */
1905
+ email: Scalars['String']['output'];
1906
+ firstName?: Maybe<Scalars['String']['output']>;
1907
+ id: Scalars['String']['output'];
1908
+ lastName?: Maybe<Scalars['String']['output']>;
1909
+ name: Scalars['String']['output'];
1910
+ profilePicture?: Maybe<Scalars['String']['output']>;
1911
+ provisionedByScim: Scalars['Boolean']['output'];
1912
+ /** The roles of the user in the organization. */
1913
+ roles: Array<Role>;
1914
+ updatedAt: Scalars['DateTime']['output'];
1915
+ };
1916
+ export type UserAccessToken = {
1917
+ __typename?: 'UserAccessToken';
1918
+ createdAt: Scalars['DateTime']['output'];
1919
+ id: Scalars['String']['output'];
1920
+ /** The date the token was last used */
1921
+ lastUsedAt?: Maybe<Scalars['DateTime']['output']>;
1922
+ /** The display name for the token */
1923
+ name: Scalars['String']['output'];
1924
+ updatedAt: Scalars['DateTime']['output'];
1925
+ /** The user id this token belongs to */
1926
+ userId: Scalars['String']['output'];
1927
+ /** The date the token is valid until */
1928
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
1929
+ };
1930
+ export type UserAccessTokenWithToken = {
1931
+ __typename?: 'UserAccessTokenWithToken';
1932
+ createdAt: Scalars['DateTime']['output'];
1933
+ id: Scalars['String']['output'];
1934
+ /** The date the token was last used */
1935
+ lastUsedAt?: Maybe<Scalars['DateTime']['output']>;
1936
+ /** The display name for the token */
1937
+ name: Scalars['String']['output'];
1938
+ token: Scalars['String']['output'];
1939
+ updatedAt: Scalars['DateTime']['output'];
1940
+ /** The user id this token belongs to */
1941
+ userId: Scalars['String']['output'];
1942
+ /** The date the token is valid until */
1943
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
1944
+ };
1945
+ export type UserEdge = {
1946
+ __typename?: 'UserEdge';
1947
+ /** Base64 encoded cursor representing the position of this node in the dataset. */
1948
+ cursor: Scalars['String']['output'];
1949
+ /** The actual data node */
1950
+ node: User;
1951
+ };
1952
+ export type UserFilter = {
1953
+ __typename?: 'UserFilter';
1954
+ createdAt: Scalars['DateTime']['output'];
1955
+ createdBy: User;
1956
+ /** The JSON stringified filter json */
1957
+ filterData: Scalars['String']['output'];
1958
+ id: Scalars['String']['output'];
1959
+ name: Scalars['String']['output'];
1960
+ organization: Organization;
1961
+ type: Scalars['String']['output'];
1962
+ updatedAt: Scalars['DateTime']['output'];
1963
+ };
1964
+ export type UserRecommendation = {
1965
+ __typename?: 'UserRecommendation';
1966
+ expertiseScore: Scalars['Float']['output'];
1967
+ lastActivityAt?: Maybe<Scalars['DateTime']['output']>;
1968
+ matchReason?: Maybe<Scalars['String']['output']>;
1969
+ topicId: Scalars['Int']['output'];
1970
+ topicLabel: Scalars['String']['output'];
1971
+ user: User;
1972
+ };
1973
+ export type ValidateCollectionsInput = {
1974
+ collectionIds: Array<Scalars['String']['input']>;
1975
+ documentId: Scalars['String']['input'];
1976
+ };
1977
+ export type ValidateRequirementInput = {
1978
+ collectionId: Scalars['String']['input'];
1979
+ documentId: Scalars['String']['input'];
1980
+ requirementId: Scalars['String']['input'];
1981
+ };
1982
+ export type MeQueryVariables = Exact<{
1983
+ [key: string]: never;
1984
+ }>;
1985
+ export type MeQuery = {
1986
+ __typename?: 'Query';
1987
+ me: {
1988
+ __typename?: 'PrivateUser';
1989
+ id: string;
1990
+ firstName?: string | null;
1991
+ lastName?: string | null;
1992
+ name: string;
1993
+ defaultOrganization: {
1994
+ __typename?: 'Organization';
1995
+ id: string;
1996
+ name: string;
1997
+ subdomain: string;
1998
+ };
1999
+ organizations: {
2000
+ __typename?: 'PaginatedOrganization';
2001
+ totalCount: number;
2002
+ nodes: Array<{
2003
+ __typename?: 'Organization';
2004
+ id: string;
2005
+ name: string;
2006
+ subdomain: string;
2007
+ }>;
2008
+ };
2009
+ };
2010
+ };
2011
+ export type LoggedInUserFragment = {
2012
+ __typename?: 'PrivateUser';
2013
+ id: string;
2014
+ firstName?: string | null;
2015
+ lastName?: string | null;
2016
+ name: string;
2017
+ defaultOrganization: {
2018
+ __typename?: 'Organization';
2019
+ id: string;
2020
+ name: string;
2021
+ subdomain: string;
2022
+ };
2023
+ organizations: {
2024
+ __typename?: 'PaginatedOrganization';
2025
+ totalCount: number;
2026
+ nodes: Array<{
2027
+ __typename?: 'Organization';
2028
+ id: string;
2029
+ name: string;
2030
+ subdomain: string;
2031
+ }>;
2032
+ };
2033
+ };
2034
+ export type OrganizationFragment = {
2035
+ __typename?: 'Organization';
2036
+ id: string;
2037
+ name: string;
2038
+ subdomain: string;
2039
+ };
2040
+ export type GetMatchingRequirementsForTaskQueryVariables = Exact<{
2041
+ title: Scalars['String']['input'];
2042
+ body: Scalars['String']['input'];
2043
+ summary: Scalars['String']['input'];
2044
+ }>;
2045
+ export type GetMatchingRequirementsForTaskQuery = {
2046
+ __typename?: 'Query';
2047
+ getMatchingRequirementsForTask: Array<{
2048
+ __typename?: 'RequirementMatch';
2049
+ content: string;
2050
+ collectionId: string;
2051
+ requirementId: string;
2052
+ collectionName: string;
2053
+ scope: RequirementScopeClassification;
2054
+ scopeConfidence: number;
2055
+ scopeReasoning: string;
2056
+ }>;
2057
+ };
2058
+ export declare const OrganizationFragmentDoc = "\n fragment Organization on Organization {\n id\n name\n subdomain\n}\n ";
2059
+ export declare const LoggedInUserFragmentDoc = "\n fragment LoggedInUser on PrivateUser {\n id\n firstName\n lastName\n name\n defaultOrganization {\n ...Organization\n }\n organizations {\n nodes {\n ...Organization\n }\n totalCount\n }\n}\n \n fragment Organization on Organization {\n id\n name\n subdomain\n}\n ";
2060
+ export declare const MeDocument = "\n query Me {\n me {\n ...LoggedInUser\n }\n}\n \n fragment LoggedInUser on PrivateUser {\n id\n firstName\n lastName\n name\n defaultOrganization {\n ...Organization\n }\n organizations {\n nodes {\n ...Organization\n }\n totalCount\n }\n}\n \n fragment Organization on Organization {\n id\n name\n subdomain\n}\n ";
2061
+ export declare const GetMatchingRequirementsForTaskDocument = "\n query getMatchingRequirementsForTask($title: String!, $body: String!, $summary: String!) {\n getMatchingRequirementsForTask(title: $title, body: $body, summary: $summary) {\n content\n collectionId\n requirementId\n collectionName\n scope\n scopeConfidence\n scopeReasoning\n }\n}\n ";
2062
+ export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
2063
+ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
2064
+ Me(variables?: MeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
2065
+ data: MeQuery;
2066
+ errors?: GraphQLError[];
2067
+ extensions?: any;
2068
+ headers: Headers;
2069
+ status: number;
2070
+ }>;
2071
+ getMatchingRequirementsForTask(variables: GetMatchingRequirementsForTaskQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{
2072
+ data: GetMatchingRequirementsForTaskQuery;
2073
+ errors?: GraphQLError[];
2074
+ extensions?: any;
2075
+ headers: Headers;
2076
+ status: number;
2077
+ }>;
2078
+ };
2079
+ export type Sdk = ReturnType<typeof getSdk>;
2080
+ export {};
2081
+ //# sourceMappingURL=graphql.d.ts.map