@copilotkit/runtime-client-gql 0.0.0-mme-load-agent-state-20250117154700

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 (92) hide show
  1. package/CHANGELOG.md +937 -0
  2. package/README.md +46 -0
  3. package/codegen.ts +22 -0
  4. package/dist/chunk-7ECCT6PK.mjs +1 -0
  5. package/dist/chunk-7ECCT6PK.mjs.map +1 -0
  6. package/dist/chunk-BBNGLVX5.mjs +38 -0
  7. package/dist/chunk-BBNGLVX5.mjs.map +1 -0
  8. package/dist/chunk-GQ2BQR46.mjs +119 -0
  9. package/dist/chunk-GQ2BQR46.mjs.map +1 -0
  10. package/dist/chunk-JGGSE6H3.mjs +20 -0
  11. package/dist/chunk-JGGSE6H3.mjs.map +1 -0
  12. package/dist/chunk-LBECNDL5.mjs +56 -0
  13. package/dist/chunk-LBECNDL5.mjs.map +1 -0
  14. package/dist/chunk-MLWD2EGY.mjs +200 -0
  15. package/dist/chunk-MLWD2EGY.mjs.map +1 -0
  16. package/dist/chunk-RHAQH56F.mjs +84 -0
  17. package/dist/chunk-RHAQH56F.mjs.map +1 -0
  18. package/dist/chunk-RIPDMDI6.mjs +77 -0
  19. package/dist/chunk-RIPDMDI6.mjs.map +1 -0
  20. package/dist/chunk-XZPL6QVK.mjs +24 -0
  21. package/dist/chunk-XZPL6QVK.mjs.map +1 -0
  22. package/dist/client/CopilotRuntimeClient.d.ts +37 -0
  23. package/dist/client/CopilotRuntimeClient.js +251 -0
  24. package/dist/client/CopilotRuntimeClient.js.map +1 -0
  25. package/dist/client/CopilotRuntimeClient.mjs +11 -0
  26. package/dist/client/CopilotRuntimeClient.mjs.map +1 -0
  27. package/dist/client/conversion.d.ts +11 -0
  28. package/dist/client/conversion.js +296 -0
  29. package/dist/client/conversion.js.map +1 -0
  30. package/dist/client/conversion.mjs +17 -0
  31. package/dist/client/conversion.mjs.map +1 -0
  32. package/dist/client/index.d.ts +8 -0
  33. package/dist/client/index.js +541 -0
  34. package/dist/client/index.js.map +1 -0
  35. package/dist/client/index.mjs +38 -0
  36. package/dist/client/index.mjs.map +1 -0
  37. package/dist/client/types.d.ts +55 -0
  38. package/dist/client/types.js +113 -0
  39. package/dist/client/types.js.map +1 -0
  40. package/dist/client/types.mjs +18 -0
  41. package/dist/client/types.mjs.map +1 -0
  42. package/dist/graphql/@generated/fragment-masking.d.ts +22 -0
  43. package/dist/graphql/@generated/fragment-masking.js +50 -0
  44. package/dist/graphql/@generated/fragment-masking.js.map +1 -0
  45. package/dist/graphql/@generated/fragment-masking.mjs +11 -0
  46. package/dist/graphql/@generated/fragment-masking.mjs.map +1 -0
  47. package/dist/graphql/@generated/gql.d.ts +53 -0
  48. package/dist/graphql/@generated/gql.js +45 -0
  49. package/dist/graphql/@generated/gql.js.map +1 -0
  50. package/dist/graphql/@generated/gql.mjs +8 -0
  51. package/dist/graphql/@generated/gql.mjs.map +1 -0
  52. package/dist/graphql/@generated/graphql.d.ts +477 -0
  53. package/dist/graphql/@generated/graphql.js +88 -0
  54. package/dist/graphql/@generated/graphql.js.map +1 -0
  55. package/dist/graphql/@generated/graphql.mjs +23 -0
  56. package/dist/graphql/@generated/graphql.mjs.map +1 -0
  57. package/dist/graphql/@generated/index.d.ts +4 -0
  58. package/dist/graphql/@generated/index.js +69 -0
  59. package/dist/graphql/@generated/index.js.map +1 -0
  60. package/dist/graphql/@generated/index.mjs +16 -0
  61. package/dist/graphql/@generated/index.mjs.map +1 -0
  62. package/dist/graphql/definitions/mutations.d.ts +9 -0
  63. package/dist/graphql/definitions/mutations.js +121 -0
  64. package/dist/graphql/definitions/mutations.js.map +1 -0
  65. package/dist/graphql/definitions/mutations.mjs +9 -0
  66. package/dist/graphql/definitions/mutations.mjs.map +1 -0
  67. package/dist/graphql/definitions/queries.d.ts +11 -0
  68. package/dist/graphql/definitions/queries.js +76 -0
  69. package/dist/graphql/definitions/queries.js.map +1 -0
  70. package/dist/graphql/definitions/queries.mjs +11 -0
  71. package/dist/graphql/definitions/queries.mjs.map +1 -0
  72. package/dist/index.d.ts +8 -0
  73. package/dist/index.js +591 -0
  74. package/dist/index.js.map +1 -0
  75. package/dist/index.mjs +57 -0
  76. package/dist/index.mjs.map +1 -0
  77. package/jest.config.js +5 -0
  78. package/package.json +77 -0
  79. package/src/client/CopilotRuntimeClient.ts +150 -0
  80. package/src/client/conversion.ts +211 -0
  81. package/src/client/index.ts +10 -0
  82. package/src/client/types.ts +127 -0
  83. package/src/graphql/@generated/fragment-masking.ts +87 -0
  84. package/src/graphql/@generated/gql.ts +52 -0
  85. package/src/graphql/@generated/graphql.ts +366 -0
  86. package/src/graphql/@generated/index.ts +2 -0
  87. package/src/graphql/definitions/mutations.ts +73 -0
  88. package/src/graphql/definitions/queries.ts +24 -0
  89. package/src/index.ts +2 -0
  90. package/tsconfig.json +16 -0
  91. package/tsup.config.ts +33 -0
  92. package/typedoc.json +4 -0
@@ -0,0 +1,477 @@
1
+ import { TypedDocumentNode } from '@graphql-typed-document-node/core';
2
+
3
+ type Maybe<T> = T | null;
4
+ type InputMaybe<T> = Maybe<T>;
5
+ type Exact<T extends {
6
+ [key: string]: unknown;
7
+ }> = {
8
+ [K in keyof T]: T[K];
9
+ };
10
+ type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
11
+ [SubKey in K]?: Maybe<T[SubKey]>;
12
+ };
13
+ type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
14
+ [SubKey in K]: Maybe<T[SubKey]>;
15
+ };
16
+ type MakeEmpty<T extends {
17
+ [key: string]: unknown;
18
+ }, K extends keyof T> = {
19
+ [_ in K]?: never;
20
+ };
21
+ type Incremental<T> = T | {
22
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
23
+ };
24
+ /** All built-in and custom scalars, mapped to their actual values */
25
+ type Scalars = {
26
+ ID: {
27
+ input: string;
28
+ output: string;
29
+ };
30
+ String: {
31
+ input: string;
32
+ output: string;
33
+ };
34
+ Boolean: {
35
+ input: boolean;
36
+ output: boolean;
37
+ };
38
+ Int: {
39
+ input: number;
40
+ output: number;
41
+ };
42
+ Float: {
43
+ input: number;
44
+ output: number;
45
+ };
46
+ /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format. */
47
+ DateTimeISO: {
48
+ input: any;
49
+ output: any;
50
+ };
51
+ /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
52
+ JSON: {
53
+ input: any;
54
+ output: any;
55
+ };
56
+ /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
57
+ JSONObject: {
58
+ input: any;
59
+ output: any;
60
+ };
61
+ };
62
+ type ActionExecutionMessageInput = {
63
+ arguments: Scalars['String']['input'];
64
+ name: Scalars['String']['input'];
65
+ parentMessageId?: InputMaybe<Scalars['String']['input']>;
66
+ /** @deprecated This field will be removed in a future version */
67
+ scope?: InputMaybe<Scalars['String']['input']>;
68
+ };
69
+ type ActionExecutionMessageOutput = BaseMessageOutput & {
70
+ __typename?: 'ActionExecutionMessageOutput';
71
+ arguments: Array<Scalars['String']['output']>;
72
+ createdAt: Scalars['DateTimeISO']['output'];
73
+ id: Scalars['String']['output'];
74
+ name: Scalars['String']['output'];
75
+ parentMessageId?: Maybe<Scalars['String']['output']>;
76
+ /** @deprecated This field will be removed in a future version */
77
+ scope?: Maybe<Scalars['String']['output']>;
78
+ status: MessageStatus;
79
+ };
80
+ type ActionInput = {
81
+ available?: InputMaybe<ActionInputAvailability>;
82
+ description: Scalars['String']['input'];
83
+ jsonSchema: Scalars['String']['input'];
84
+ name: Scalars['String']['input'];
85
+ };
86
+ /** The availability of the frontend action */
87
+ declare enum ActionInputAvailability {
88
+ Disabled = "disabled",
89
+ Enabled = "enabled",
90
+ Remote = "remote"
91
+ }
92
+ type Agent = {
93
+ __typename?: 'Agent';
94
+ description: Scalars['String']['output'];
95
+ id: Scalars['String']['output'];
96
+ name: Scalars['String']['output'];
97
+ };
98
+ type AgentSessionInput = {
99
+ agentName: Scalars['String']['input'];
100
+ nodeName?: InputMaybe<Scalars['String']['input']>;
101
+ threadId?: InputMaybe<Scalars['String']['input']>;
102
+ };
103
+ type AgentStateInput = {
104
+ agentName: Scalars['String']['input'];
105
+ state: Scalars['String']['input'];
106
+ };
107
+ type AgentStateMessageInput = {
108
+ active: Scalars['Boolean']['input'];
109
+ agentName: Scalars['String']['input'];
110
+ nodeName: Scalars['String']['input'];
111
+ role: MessageRole;
112
+ runId: Scalars['String']['input'];
113
+ running: Scalars['Boolean']['input'];
114
+ state: Scalars['String']['input'];
115
+ threadId: Scalars['String']['input'];
116
+ };
117
+ type AgentStateMessageOutput = BaseMessageOutput & {
118
+ __typename?: 'AgentStateMessageOutput';
119
+ active: Scalars['Boolean']['output'];
120
+ agentName: Scalars['String']['output'];
121
+ createdAt: Scalars['DateTimeISO']['output'];
122
+ id: Scalars['String']['output'];
123
+ nodeName: Scalars['String']['output'];
124
+ role: MessageRole;
125
+ runId: Scalars['String']['output'];
126
+ running: Scalars['Boolean']['output'];
127
+ state: Scalars['String']['output'];
128
+ status: MessageStatus;
129
+ threadId: Scalars['String']['output'];
130
+ };
131
+ type AgentsResponse = {
132
+ __typename?: 'AgentsResponse';
133
+ agents: Array<Agent>;
134
+ };
135
+ type BaseMessageOutput = {
136
+ createdAt: Scalars['DateTimeISO']['output'];
137
+ id: Scalars['String']['output'];
138
+ status: MessageStatus;
139
+ };
140
+ type BaseResponseStatus = {
141
+ code: ResponseStatusCode;
142
+ };
143
+ type CloudInput = {
144
+ guardrails?: InputMaybe<GuardrailsInput>;
145
+ };
146
+ /** The type of Copilot request */
147
+ declare enum CopilotRequestType {
148
+ Chat = "Chat",
149
+ Suggestion = "Suggestion",
150
+ Task = "Task",
151
+ TextareaCompletion = "TextareaCompletion",
152
+ TextareaPopover = "TextareaPopover"
153
+ }
154
+ type CopilotResponse = {
155
+ __typename?: 'CopilotResponse';
156
+ extensions?: Maybe<ExtensionsResponse>;
157
+ messages: Array<BaseMessageOutput>;
158
+ runId?: Maybe<Scalars['String']['output']>;
159
+ status: ResponseStatus;
160
+ threadId: Scalars['String']['output'];
161
+ };
162
+ type ExtensionsInput = {
163
+ openaiAssistantAPI?: InputMaybe<OpenAiApiAssistantApiInput>;
164
+ };
165
+ type ExtensionsResponse = {
166
+ __typename?: 'ExtensionsResponse';
167
+ openaiAssistantAPI?: Maybe<OpenAiApiAssistantApiResponse>;
168
+ };
169
+ type FailedMessageStatus = {
170
+ __typename?: 'FailedMessageStatus';
171
+ code: MessageStatusCode;
172
+ reason: Scalars['String']['output'];
173
+ };
174
+ type FailedResponseStatus = BaseResponseStatus & {
175
+ __typename?: 'FailedResponseStatus';
176
+ code: ResponseStatusCode;
177
+ details?: Maybe<Scalars['JSON']['output']>;
178
+ reason: FailedResponseStatusReason;
179
+ };
180
+ declare enum FailedResponseStatusReason {
181
+ GuardrailsValidationFailed = "GUARDRAILS_VALIDATION_FAILED",
182
+ MessageStreamInterrupted = "MESSAGE_STREAM_INTERRUPTED",
183
+ UnknownError = "UNKNOWN_ERROR"
184
+ }
185
+ type ForwardedParametersInput = {
186
+ maxTokens?: InputMaybe<Scalars['Float']['input']>;
187
+ model?: InputMaybe<Scalars['String']['input']>;
188
+ stop?: InputMaybe<Array<Scalars['String']['input']>>;
189
+ temperature?: InputMaybe<Scalars['Float']['input']>;
190
+ toolChoice?: InputMaybe<Scalars['String']['input']>;
191
+ toolChoiceFunctionName?: InputMaybe<Scalars['String']['input']>;
192
+ };
193
+ type FrontendInput = {
194
+ actions: Array<ActionInput>;
195
+ toDeprecate_fullContext?: InputMaybe<Scalars['String']['input']>;
196
+ url?: InputMaybe<Scalars['String']['input']>;
197
+ };
198
+ type GenerateCopilotResponseInput = {
199
+ agentSession?: InputMaybe<AgentSessionInput>;
200
+ agentState?: InputMaybe<AgentStateInput>;
201
+ agentStates?: InputMaybe<Array<AgentStateInput>>;
202
+ cloud?: InputMaybe<CloudInput>;
203
+ extensions?: InputMaybe<ExtensionsInput>;
204
+ forwardedParameters?: InputMaybe<ForwardedParametersInput>;
205
+ frontend: FrontendInput;
206
+ messages: Array<MessageInput>;
207
+ metadata: GenerateCopilotResponseMetadataInput;
208
+ runId?: InputMaybe<Scalars['String']['input']>;
209
+ threadId?: InputMaybe<Scalars['String']['input']>;
210
+ };
211
+ type GenerateCopilotResponseMetadataInput = {
212
+ requestType?: InputMaybe<CopilotRequestType>;
213
+ };
214
+ type GuardrailsInput = {
215
+ inputValidationRules: GuardrailsRuleInput;
216
+ };
217
+ type GuardrailsRuleInput = {
218
+ allowList?: InputMaybe<Array<Scalars['String']['input']>>;
219
+ denyList?: InputMaybe<Array<Scalars['String']['input']>>;
220
+ };
221
+ type LoadAgentStateInput = {
222
+ agentName: Scalars['String']['input'];
223
+ threadId: Scalars['String']['input'];
224
+ };
225
+ type LoadAgentStateResponse = {
226
+ __typename?: 'LoadAgentStateResponse';
227
+ messages: Scalars['String']['output'];
228
+ state: Scalars['String']['output'];
229
+ threadExists: Scalars['Boolean']['output'];
230
+ threadId: Scalars['String']['output'];
231
+ };
232
+ type MessageInput = {
233
+ actionExecutionMessage?: InputMaybe<ActionExecutionMessageInput>;
234
+ agentStateMessage?: InputMaybe<AgentStateMessageInput>;
235
+ createdAt: Scalars['DateTimeISO']['input'];
236
+ id: Scalars['String']['input'];
237
+ resultMessage?: InputMaybe<ResultMessageInput>;
238
+ textMessage?: InputMaybe<TextMessageInput>;
239
+ };
240
+ /** The role of the message */
241
+ declare enum MessageRole {
242
+ Assistant = "assistant",
243
+ System = "system",
244
+ Tool = "tool",
245
+ User = "user"
246
+ }
247
+ type MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus;
248
+ declare enum MessageStatusCode {
249
+ Failed = "Failed",
250
+ Pending = "Pending",
251
+ Success = "Success"
252
+ }
253
+ type Mutation = {
254
+ __typename?: 'Mutation';
255
+ generateCopilotResponse: CopilotResponse;
256
+ };
257
+ type MutationGenerateCopilotResponseArgs = {
258
+ data: GenerateCopilotResponseInput;
259
+ properties?: InputMaybe<Scalars['JSONObject']['input']>;
260
+ };
261
+ type OpenAiApiAssistantApiInput = {
262
+ runId?: InputMaybe<Scalars['String']['input']>;
263
+ threadId?: InputMaybe<Scalars['String']['input']>;
264
+ };
265
+ type OpenAiApiAssistantApiResponse = {
266
+ __typename?: 'OpenAIApiAssistantAPIResponse';
267
+ runId?: Maybe<Scalars['String']['output']>;
268
+ threadId?: Maybe<Scalars['String']['output']>;
269
+ };
270
+ type PendingMessageStatus = {
271
+ __typename?: 'PendingMessageStatus';
272
+ code: MessageStatusCode;
273
+ };
274
+ type PendingResponseStatus = BaseResponseStatus & {
275
+ __typename?: 'PendingResponseStatus';
276
+ code: ResponseStatusCode;
277
+ };
278
+ type Query = {
279
+ __typename?: 'Query';
280
+ availableAgents: AgentsResponse;
281
+ hello: Scalars['String']['output'];
282
+ loadAgentState: LoadAgentStateResponse;
283
+ };
284
+ type QueryLoadAgentStateArgs = {
285
+ data: LoadAgentStateInput;
286
+ };
287
+ type ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus;
288
+ declare enum ResponseStatusCode {
289
+ Failed = "Failed",
290
+ Pending = "Pending",
291
+ Success = "Success"
292
+ }
293
+ type ResultMessageInput = {
294
+ actionExecutionId: Scalars['String']['input'];
295
+ actionName: Scalars['String']['input'];
296
+ parentMessageId?: InputMaybe<Scalars['String']['input']>;
297
+ result: Scalars['String']['input'];
298
+ };
299
+ type ResultMessageOutput = BaseMessageOutput & {
300
+ __typename?: 'ResultMessageOutput';
301
+ actionExecutionId: Scalars['String']['output'];
302
+ actionName: Scalars['String']['output'];
303
+ createdAt: Scalars['DateTimeISO']['output'];
304
+ id: Scalars['String']['output'];
305
+ result: Scalars['String']['output'];
306
+ status: MessageStatus;
307
+ };
308
+ type SuccessMessageStatus = {
309
+ __typename?: 'SuccessMessageStatus';
310
+ code: MessageStatusCode;
311
+ };
312
+ type SuccessResponseStatus = BaseResponseStatus & {
313
+ __typename?: 'SuccessResponseStatus';
314
+ code: ResponseStatusCode;
315
+ };
316
+ type TextMessageInput = {
317
+ content: Scalars['String']['input'];
318
+ parentMessageId?: InputMaybe<Scalars['String']['input']>;
319
+ role: MessageRole;
320
+ };
321
+ type TextMessageOutput = BaseMessageOutput & {
322
+ __typename?: 'TextMessageOutput';
323
+ content: Array<Scalars['String']['output']>;
324
+ createdAt: Scalars['DateTimeISO']['output'];
325
+ id: Scalars['String']['output'];
326
+ parentMessageId?: Maybe<Scalars['String']['output']>;
327
+ role: MessageRole;
328
+ status: MessageStatus;
329
+ };
330
+ type GenerateCopilotResponseMutationVariables = Exact<{
331
+ data: GenerateCopilotResponseInput;
332
+ properties?: InputMaybe<Scalars['JSONObject']['input']>;
333
+ }>;
334
+ type GenerateCopilotResponseMutation = {
335
+ __typename?: 'Mutation';
336
+ generateCopilotResponse: {
337
+ __typename?: 'CopilotResponse';
338
+ threadId: string;
339
+ runId?: string | null;
340
+ extensions?: {
341
+ __typename?: 'ExtensionsResponse';
342
+ openaiAssistantAPI?: {
343
+ __typename?: 'OpenAIApiAssistantAPIResponse';
344
+ runId?: string | null;
345
+ threadId?: string | null;
346
+ } | null;
347
+ } | null;
348
+ messages: Array<{
349
+ __typename: 'ActionExecutionMessageOutput';
350
+ id: string;
351
+ createdAt: any;
352
+ name: string;
353
+ arguments: Array<string>;
354
+ parentMessageId?: string | null;
355
+ status: {
356
+ __typename?: 'FailedMessageStatus';
357
+ code: MessageStatusCode;
358
+ reason: string;
359
+ } | {
360
+ __typename?: 'PendingMessageStatus';
361
+ code: MessageStatusCode;
362
+ } | {
363
+ __typename?: 'SuccessMessageStatus';
364
+ code: MessageStatusCode;
365
+ };
366
+ } | {
367
+ __typename: 'AgentStateMessageOutput';
368
+ id: string;
369
+ createdAt: any;
370
+ threadId: string;
371
+ state: string;
372
+ running: boolean;
373
+ agentName: string;
374
+ nodeName: string;
375
+ runId: string;
376
+ active: boolean;
377
+ role: MessageRole;
378
+ status: {
379
+ __typename?: 'FailedMessageStatus';
380
+ code: MessageStatusCode;
381
+ reason: string;
382
+ } | {
383
+ __typename?: 'PendingMessageStatus';
384
+ code: MessageStatusCode;
385
+ } | {
386
+ __typename?: 'SuccessMessageStatus';
387
+ code: MessageStatusCode;
388
+ };
389
+ } | {
390
+ __typename: 'ResultMessageOutput';
391
+ id: string;
392
+ createdAt: any;
393
+ result: string;
394
+ actionExecutionId: string;
395
+ actionName: string;
396
+ status: {
397
+ __typename?: 'FailedMessageStatus';
398
+ code: MessageStatusCode;
399
+ reason: string;
400
+ } | {
401
+ __typename?: 'PendingMessageStatus';
402
+ code: MessageStatusCode;
403
+ } | {
404
+ __typename?: 'SuccessMessageStatus';
405
+ code: MessageStatusCode;
406
+ };
407
+ } | {
408
+ __typename: 'TextMessageOutput';
409
+ id: string;
410
+ createdAt: any;
411
+ content: Array<string>;
412
+ role: MessageRole;
413
+ parentMessageId?: string | null;
414
+ status: {
415
+ __typename?: 'FailedMessageStatus';
416
+ code: MessageStatusCode;
417
+ reason: string;
418
+ } | {
419
+ __typename?: 'PendingMessageStatus';
420
+ code: MessageStatusCode;
421
+ } | {
422
+ __typename?: 'SuccessMessageStatus';
423
+ code: MessageStatusCode;
424
+ };
425
+ }>;
426
+ } & ({
427
+ __typename?: 'CopilotResponse';
428
+ status: {
429
+ __typename?: 'FailedResponseStatus';
430
+ code: ResponseStatusCode;
431
+ reason: FailedResponseStatusReason;
432
+ details?: any | null;
433
+ } | {
434
+ __typename?: 'PendingResponseStatus';
435
+ code: ResponseStatusCode;
436
+ } | {
437
+ __typename?: 'SuccessResponseStatus';
438
+ code: ResponseStatusCode;
439
+ };
440
+ } | {
441
+ __typename?: 'CopilotResponse';
442
+ status?: never;
443
+ });
444
+ };
445
+ type AvailableAgentsQueryVariables = Exact<{
446
+ [key: string]: never;
447
+ }>;
448
+ type AvailableAgentsQuery = {
449
+ __typename?: 'Query';
450
+ availableAgents: {
451
+ __typename?: 'AgentsResponse';
452
+ agents: Array<{
453
+ __typename?: 'Agent';
454
+ name: string;
455
+ id: string;
456
+ description: string;
457
+ }>;
458
+ };
459
+ };
460
+ type LoadAgentStateQueryVariables = Exact<{
461
+ data: LoadAgentStateInput;
462
+ }>;
463
+ type LoadAgentStateQuery = {
464
+ __typename?: 'Query';
465
+ loadAgentState: {
466
+ __typename?: 'LoadAgentStateResponse';
467
+ threadId: string;
468
+ threadExists: boolean;
469
+ state: string;
470
+ messages: string;
471
+ };
472
+ };
473
+ declare const GenerateCopilotResponseDocument: TypedDocumentNode<GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables>;
474
+ declare const AvailableAgentsDocument: TypedDocumentNode<AvailableAgentsQuery, AvailableAgentsQueryVariables>;
475
+ declare const LoadAgentStateDocument: TypedDocumentNode<LoadAgentStateQuery, LoadAgentStateQueryVariables>;
476
+
477
+ export { ActionExecutionMessageInput, ActionExecutionMessageOutput, ActionInput, ActionInputAvailability, Agent, AgentSessionInput, AgentStateInput, AgentStateMessageInput, AgentStateMessageOutput, AgentsResponse, AvailableAgentsDocument, AvailableAgentsQuery, AvailableAgentsQueryVariables, BaseMessageOutput, BaseResponseStatus, CloudInput, CopilotRequestType, CopilotResponse, Exact, ExtensionsInput, ExtensionsResponse, FailedMessageStatus, FailedResponseStatus, FailedResponseStatusReason, ForwardedParametersInput, FrontendInput, GenerateCopilotResponseDocument, GenerateCopilotResponseInput, GenerateCopilotResponseMetadataInput, GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables, GuardrailsInput, GuardrailsRuleInput, Incremental, InputMaybe, LoadAgentStateDocument, LoadAgentStateInput, LoadAgentStateQuery, LoadAgentStateQueryVariables, LoadAgentStateResponse, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MessageInput, MessageRole, MessageStatus, MessageStatusCode, Mutation, MutationGenerateCopilotResponseArgs, OpenAiApiAssistantApiInput, OpenAiApiAssistantApiResponse, PendingMessageStatus, PendingResponseStatus, Query, QueryLoadAgentStateArgs, ResponseStatus, ResponseStatusCode, ResultMessageInput, ResultMessageOutput, Scalars, SuccessMessageStatus, SuccessResponseStatus, TextMessageInput, TextMessageOutput };
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/graphql/@generated/graphql.ts
21
+ var graphql_exports = {};
22
+ __export(graphql_exports, {
23
+ ActionInputAvailability: () => ActionInputAvailability,
24
+ AvailableAgentsDocument: () => AvailableAgentsDocument,
25
+ CopilotRequestType: () => CopilotRequestType,
26
+ FailedResponseStatusReason: () => FailedResponseStatusReason,
27
+ GenerateCopilotResponseDocument: () => GenerateCopilotResponseDocument,
28
+ LoadAgentStateDocument: () => LoadAgentStateDocument,
29
+ MessageRole: () => MessageRole,
30
+ MessageStatusCode: () => MessageStatusCode,
31
+ ResponseStatusCode: () => ResponseStatusCode
32
+ });
33
+ module.exports = __toCommonJS(graphql_exports);
34
+ var ActionInputAvailability = /* @__PURE__ */ ((ActionInputAvailability2) => {
35
+ ActionInputAvailability2["Disabled"] = "disabled";
36
+ ActionInputAvailability2["Enabled"] = "enabled";
37
+ ActionInputAvailability2["Remote"] = "remote";
38
+ return ActionInputAvailability2;
39
+ })(ActionInputAvailability || {});
40
+ var CopilotRequestType = /* @__PURE__ */ ((CopilotRequestType2) => {
41
+ CopilotRequestType2["Chat"] = "Chat";
42
+ CopilotRequestType2["Suggestion"] = "Suggestion";
43
+ CopilotRequestType2["Task"] = "Task";
44
+ CopilotRequestType2["TextareaCompletion"] = "TextareaCompletion";
45
+ CopilotRequestType2["TextareaPopover"] = "TextareaPopover";
46
+ return CopilotRequestType2;
47
+ })(CopilotRequestType || {});
48
+ var FailedResponseStatusReason = /* @__PURE__ */ ((FailedResponseStatusReason2) => {
49
+ FailedResponseStatusReason2["GuardrailsValidationFailed"] = "GUARDRAILS_VALIDATION_FAILED";
50
+ FailedResponseStatusReason2["MessageStreamInterrupted"] = "MESSAGE_STREAM_INTERRUPTED";
51
+ FailedResponseStatusReason2["UnknownError"] = "UNKNOWN_ERROR";
52
+ return FailedResponseStatusReason2;
53
+ })(FailedResponseStatusReason || {});
54
+ var MessageRole = /* @__PURE__ */ ((MessageRole2) => {
55
+ MessageRole2["Assistant"] = "assistant";
56
+ MessageRole2["System"] = "system";
57
+ MessageRole2["Tool"] = "tool";
58
+ MessageRole2["User"] = "user";
59
+ return MessageRole2;
60
+ })(MessageRole || {});
61
+ var MessageStatusCode = /* @__PURE__ */ ((MessageStatusCode2) => {
62
+ MessageStatusCode2["Failed"] = "Failed";
63
+ MessageStatusCode2["Pending"] = "Pending";
64
+ MessageStatusCode2["Success"] = "Success";
65
+ return MessageStatusCode2;
66
+ })(MessageStatusCode || {});
67
+ var ResponseStatusCode = /* @__PURE__ */ ((ResponseStatusCode2) => {
68
+ ResponseStatusCode2["Failed"] = "Failed";
69
+ ResponseStatusCode2["Pending"] = "Pending";
70
+ ResponseStatusCode2["Success"] = "Success";
71
+ return ResponseStatusCode2;
72
+ })(ResponseStatusCode || {});
73
+ var GenerateCopilotResponseDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "generateCopilotResponse" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "data" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "GenerateCopilotResponseInput" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "properties" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "JSONObject" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "generateCopilotResponse" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "data" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "data" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "properties" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "properties" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "threadId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "runId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "extensions" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "openaiAssistantAPI" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "runId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "threadId" } }] } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "CopilotResponse" } }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "defer" } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "status" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "BaseResponseStatus" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "code" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "FailedResponseStatus" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "reason" } }, { "kind": "Field", "name": { "kind": "Name", "value": "details" } }] } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "messages" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "stream" } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "BaseMessageOutput" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "createdAt" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "BaseMessageOutput" } }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "defer" } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "status" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "SuccessMessageStatus" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "code" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "FailedMessageStatus" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "code" } }, { "kind": "Field", "name": { "kind": "Name", "value": "reason" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "PendingMessageStatus" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "code" } }] } }] } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "TextMessageOutput" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "content" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "stream" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "role" } }, { "kind": "Field", "name": { "kind": "Name", "value": "parentMessageId" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "ActionExecutionMessageOutput" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "arguments" }, "directives": [{ "kind": "Directive", "name": { "kind": "Name", "value": "stream" } }] }, { "kind": "Field", "name": { "kind": "Name", "value": "parentMessageId" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "ResultMessageOutput" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "result" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionExecutionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "actionName" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "AgentStateMessageOutput" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "threadId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" } }, { "kind": "Field", "name": { "kind": "Name", "value": "running" } }, { "kind": "Field", "name": { "kind": "Name", "value": "agentName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "nodeName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "runId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "active" } }, { "kind": "Field", "name": { "kind": "Name", "value": "role" } }] } }] } }] } }] } }] };
74
+ var AvailableAgentsDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "availableAgents" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "availableAgents" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "agents" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "description" } }] } }] } }] } }] };
75
+ var LoadAgentStateDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "loadAgentState" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "data" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "LoadAgentStateInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "loadAgentState" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "data" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "data" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "threadId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "threadExists" } }, { "kind": "Field", "name": { "kind": "Name", "value": "state" } }, { "kind": "Field", "name": { "kind": "Name", "value": "messages" } }] } }] } }] };
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ ActionInputAvailability,
79
+ AvailableAgentsDocument,
80
+ CopilotRequestType,
81
+ FailedResponseStatusReason,
82
+ GenerateCopilotResponseDocument,
83
+ LoadAgentStateDocument,
84
+ MessageRole,
85
+ MessageStatusCode,
86
+ ResponseStatusCode
87
+ });
88
+ //# sourceMappingURL=graphql.js.map