@copilotkit/runtime-client-gql 1.51.4 → 1.51.5-next.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 (176) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  3. package/dist/client/CopilotRuntimeClient.cjs +119 -0
  4. package/dist/client/CopilotRuntimeClient.cjs.map +1 -0
  5. package/dist/client/CopilotRuntimeClient.d.cts +44 -0
  6. package/dist/client/CopilotRuntimeClient.d.cts.map +1 -0
  7. package/dist/client/CopilotRuntimeClient.d.mts +44 -0
  8. package/dist/client/CopilotRuntimeClient.d.mts.map +1 -0
  9. package/dist/client/CopilotRuntimeClient.mjs +116 -10
  10. package/dist/client/CopilotRuntimeClient.mjs.map +1 -1
  11. package/dist/client/conversion.cjs +194 -0
  12. package/dist/client/conversion.cjs.map +1 -0
  13. package/dist/client/{conversion.d.ts → conversion.d.cts} +5 -4
  14. package/dist/client/conversion.d.cts.map +1 -0
  15. package/dist/client/conversion.d.mts +12 -0
  16. package/dist/client/conversion.d.mts.map +1 -0
  17. package/dist/client/conversion.mjs +187 -17
  18. package/dist/client/conversion.mjs.map +1 -1
  19. package/dist/client/index.d.cts +5 -0
  20. package/dist/client/index.d.mts +5 -0
  21. package/dist/client/types.cjs +86 -0
  22. package/dist/client/types.cjs.map +1 -0
  23. package/dist/client/types.d.cts +76 -0
  24. package/dist/client/types.d.cts.map +1 -0
  25. package/dist/client/types.d.mts +76 -0
  26. package/dist/client/types.d.mts.map +1 -0
  27. package/dist/client/types.mjs +76 -21
  28. package/dist/client/types.mjs.map +1 -1
  29. package/dist/graphql/@generated/gql.cjs +15 -0
  30. package/dist/graphql/@generated/gql.cjs.map +1 -0
  31. package/dist/graphql/@generated/gql.mjs +13 -7
  32. package/dist/graphql/@generated/gql.mjs.map +1 -1
  33. package/dist/graphql/@generated/graphql.cjs +1154 -0
  34. package/dist/graphql/@generated/graphql.cjs.map +1 -0
  35. package/dist/graphql/@generated/graphql.d.cts +642 -0
  36. package/dist/graphql/@generated/graphql.d.cts.map +1 -0
  37. package/dist/graphql/@generated/graphql.d.mts +642 -0
  38. package/dist/graphql/@generated/graphql.d.mts.map +1 -0
  39. package/dist/graphql/@generated/graphql.mjs +1142 -24
  40. package/dist/graphql/@generated/graphql.mjs.map +1 -1
  41. package/dist/{chunk-E5FOLXLN.mjs → graphql/definitions/mutations.cjs} +8 -11
  42. package/dist/graphql/definitions/mutations.cjs.map +1 -0
  43. package/dist/graphql/definitions/mutations.mjs +140 -9
  44. package/dist/graphql/definitions/mutations.mjs.map +1 -1
  45. package/dist/graphql/definitions/queries.cjs +35 -0
  46. package/dist/graphql/definitions/queries.cjs.map +1 -0
  47. package/dist/graphql/definitions/queries.mjs +33 -11
  48. package/dist/graphql/definitions/queries.mjs.map +1 -1
  49. package/dist/index.cjs +43 -0
  50. package/dist/index.d.cts +9 -0
  51. package/dist/index.d.mts +9 -0
  52. package/dist/index.mjs +8 -91
  53. package/dist/index.umd.js +2080 -2
  54. package/dist/index.umd.js.map +1 -1
  55. package/dist/message-conversion/agui-to-gql.cjs +162 -0
  56. package/dist/message-conversion/agui-to-gql.cjs.map +1 -0
  57. package/dist/message-conversion/{agui-to-gql.d.ts → agui-to-gql.d.cts} +6 -5
  58. package/dist/message-conversion/agui-to-gql.d.cts.map +1 -0
  59. package/dist/message-conversion/agui-to-gql.d.mts +14 -0
  60. package/dist/message-conversion/agui-to-gql.d.mts.map +1 -0
  61. package/dist/message-conversion/agui-to-gql.mjs +156 -25
  62. package/dist/message-conversion/agui-to-gql.mjs.map +1 -1
  63. package/dist/message-conversion/gql-to-agui.cjs +169 -0
  64. package/dist/message-conversion/gql-to-agui.cjs.map +1 -0
  65. package/dist/message-conversion/{gql-to-agui.d.ts → gql-to-agui.d.cts} +6 -5
  66. package/dist/message-conversion/gql-to-agui.d.cts.map +1 -0
  67. package/dist/message-conversion/gql-to-agui.d.mts +13 -0
  68. package/dist/message-conversion/gql-to-agui.d.mts.map +1 -0
  69. package/dist/message-conversion/gql-to-agui.mjs +164 -23
  70. package/dist/message-conversion/gql-to-agui.mjs.map +1 -1
  71. package/dist/message-conversion/index.d.cts +2 -0
  72. package/dist/message-conversion/index.d.mts +2 -0
  73. package/dist/package.cjs +12 -0
  74. package/dist/package.cjs.map +1 -0
  75. package/dist/package.mjs +6 -0
  76. package/dist/package.mjs.map +1 -0
  77. package/package.json +15 -15
  78. package/src/message-conversion/agui-to-gql.test.ts +70 -0
  79. package/src/message-conversion/agui-to-gql.ts +4 -0
  80. package/tsdown.config.ts +49 -0
  81. package/vitest.config.mjs +11 -0
  82. package/dist/chunk-2XWNDVTL.mjs +0 -176
  83. package/dist/chunk-2XWNDVTL.mjs.map +0 -1
  84. package/dist/chunk-7ECCT6PK.mjs +0 -1
  85. package/dist/chunk-7ECCT6PK.mjs.map +0 -1
  86. package/dist/chunk-A4INSSNE.mjs +0 -17722
  87. package/dist/chunk-A4INSSNE.mjs.map +0 -1
  88. package/dist/chunk-CA4VMP2C.mjs +0 -1
  89. package/dist/chunk-CA4VMP2C.mjs.map +0 -1
  90. package/dist/chunk-DELDZXUX.mjs +0 -31
  91. package/dist/chunk-DELDZXUX.mjs.map +0 -1
  92. package/dist/chunk-E5FOLXLN.mjs.map +0 -1
  93. package/dist/chunk-LTVE64IE.mjs +0 -241
  94. package/dist/chunk-LTVE64IE.mjs.map +0 -1
  95. package/dist/chunk-M4CK5HDR.mjs +0 -237
  96. package/dist/chunk-M4CK5HDR.mjs.map +0 -1
  97. package/dist/chunk-OBDQ5BWD.mjs +0 -63
  98. package/dist/chunk-OBDQ5BWD.mjs.map +0 -1
  99. package/dist/chunk-QUH7QWUA.mjs +0 -38
  100. package/dist/chunk-QUH7QWUA.mjs.map +0 -1
  101. package/dist/chunk-SDQPJXLL.mjs +0 -20
  102. package/dist/chunk-SDQPJXLL.mjs.map +0 -1
  103. package/dist/chunk-UOAPP5IN.mjs +0 -93
  104. package/dist/chunk-UOAPP5IN.mjs.map +0 -1
  105. package/dist/chunk-VIHKTLUA.mjs +0 -221
  106. package/dist/chunk-VIHKTLUA.mjs.map +0 -1
  107. package/dist/chunk-XZPL6QVK.mjs +0 -24
  108. package/dist/chunk-XZPL6QVK.mjs.map +0 -1
  109. package/dist/client/CopilotRuntimeClient.d.ts +0 -39
  110. package/dist/client/CopilotRuntimeClient.js +0 -366
  111. package/dist/client/CopilotRuntimeClient.js.map +0 -1
  112. package/dist/client/conversion.js +0 -339
  113. package/dist/client/conversion.js.map +0 -1
  114. package/dist/client/index.d.ts +0 -8
  115. package/dist/client/index.js +0 -711
  116. package/dist/client/index.js.map +0 -1
  117. package/dist/client/index.mjs +0 -43
  118. package/dist/client/index.mjs.map +0 -1
  119. package/dist/client/types.d.ts +0 -75
  120. package/dist/client/types.js +0 -132
  121. package/dist/client/types.js.map +0 -1
  122. package/dist/graphql/@generated/fragment-masking.d.ts +0 -22
  123. package/dist/graphql/@generated/fragment-masking.js +0 -50
  124. package/dist/graphql/@generated/fragment-masking.js.map +0 -1
  125. package/dist/graphql/@generated/fragment-masking.mjs +0 -12
  126. package/dist/graphql/@generated/fragment-masking.mjs.map +0 -1
  127. package/dist/graphql/@generated/gql.d.ts +0 -48
  128. package/dist/graphql/@generated/gql.js +0 -45
  129. package/dist/graphql/@generated/gql.js.map +0 -1
  130. package/dist/graphql/@generated/graphql.d.ts +0 -655
  131. package/dist/graphql/@generated/graphql.js +0 -96
  132. package/dist/graphql/@generated/graphql.js.map +0 -1
  133. package/dist/graphql/@generated/index.d.ts +0 -4
  134. package/dist/graphql/@generated/index.js +0 -69
  135. package/dist/graphql/@generated/index.js.map +0 -1
  136. package/dist/graphql/@generated/index.mjs +0 -17
  137. package/dist/graphql/@generated/index.mjs.map +0 -1
  138. package/dist/graphql/definitions/mutations.d.ts +0 -9
  139. package/dist/graphql/definitions/mutations.js +0 -181
  140. package/dist/graphql/definitions/mutations.js.map +0 -1
  141. package/dist/graphql/definitions/queries.d.ts +0 -11
  142. package/dist/graphql/definitions/queries.js +0 -76
  143. package/dist/graphql/definitions/queries.js.map +0 -1
  144. package/dist/index.d.ts +0 -11
  145. package/dist/index.js +0 -1222
  146. package/dist/index.js.map +0 -1
  147. package/dist/index.mjs.map +0 -1
  148. package/dist/magic-string.es-XBKSJO3K.mjs +0 -1389
  149. package/dist/magic-string.es-XBKSJO3K.mjs.map +0 -1
  150. package/dist/message-conversion/agui-to-gql.js +0 -344
  151. package/dist/message-conversion/agui-to-gql.js.map +0 -1
  152. package/dist/message-conversion/agui-to-gql.test.d.ts +0 -2
  153. package/dist/message-conversion/agui-to-gql.test.js +0 -20553
  154. package/dist/message-conversion/agui-to-gql.test.js.map +0 -1
  155. package/dist/message-conversion/agui-to-gql.test.mjs +0 -1137
  156. package/dist/message-conversion/agui-to-gql.test.mjs.map +0 -1
  157. package/dist/message-conversion/gql-to-agui.js +0 -262
  158. package/dist/message-conversion/gql-to-agui.js.map +0 -1
  159. package/dist/message-conversion/gql-to-agui.test.d.ts +0 -2
  160. package/dist/message-conversion/gql-to-agui.test.js +0 -20850
  161. package/dist/message-conversion/gql-to-agui.test.js.map +0 -1
  162. package/dist/message-conversion/gql-to-agui.test.mjs +0 -1447
  163. package/dist/message-conversion/gql-to-agui.test.mjs.map +0 -1
  164. package/dist/message-conversion/index.d.ts +0 -6
  165. package/dist/message-conversion/index.js +0 -563
  166. package/dist/message-conversion/index.js.map +0 -1
  167. package/dist/message-conversion/index.mjs +0 -39
  168. package/dist/message-conversion/index.mjs.map +0 -1
  169. package/dist/message-conversion/roundtrip-conversion.test.d.ts +0 -2
  170. package/dist/message-conversion/roundtrip-conversion.test.js +0 -20095
  171. package/dist/message-conversion/roundtrip-conversion.test.js.map +0 -1
  172. package/dist/message-conversion/roundtrip-conversion.test.mjs +0 -489
  173. package/dist/message-conversion/roundtrip-conversion.test.mjs.map +0 -1
  174. package/jest.config.js +0 -5
  175. package/rollup.config.mjs +0 -62
  176. package/tsup.config.ts +0 -12
@@ -1,655 +0,0 @@
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
- config?: InputMaybe<Scalars['String']['input']>;
106
- state: Scalars['String']['input'];
107
- };
108
- type AgentStateMessageInput = {
109
- active: Scalars['Boolean']['input'];
110
- agentName: Scalars['String']['input'];
111
- nodeName: Scalars['String']['input'];
112
- role: MessageRole;
113
- runId: Scalars['String']['input'];
114
- running: Scalars['Boolean']['input'];
115
- state: Scalars['String']['input'];
116
- threadId: Scalars['String']['input'];
117
- };
118
- type AgentStateMessageOutput = BaseMessageOutput & {
119
- __typename?: 'AgentStateMessageOutput';
120
- active: Scalars['Boolean']['output'];
121
- agentName: Scalars['String']['output'];
122
- createdAt: Scalars['DateTimeISO']['output'];
123
- id: Scalars['String']['output'];
124
- nodeName: Scalars['String']['output'];
125
- role: MessageRole;
126
- runId: Scalars['String']['output'];
127
- running: Scalars['Boolean']['output'];
128
- state: Scalars['String']['output'];
129
- status: MessageStatus;
130
- threadId: Scalars['String']['output'];
131
- };
132
- type AgentsResponse = {
133
- __typename?: 'AgentsResponse';
134
- agents: Array<Agent>;
135
- };
136
- type BaseMessageOutput = {
137
- createdAt: Scalars['DateTimeISO']['output'];
138
- id: Scalars['String']['output'];
139
- status: MessageStatus;
140
- };
141
- type BaseMetaEvent = {
142
- name: MetaEventName;
143
- type: Scalars['String']['output'];
144
- };
145
- type BaseResponseStatus = {
146
- code: ResponseStatusCode;
147
- };
148
- type CloudInput = {
149
- guardrails?: InputMaybe<GuardrailsInput>;
150
- };
151
- type CopilotContextInput = {
152
- description: Scalars['String']['input'];
153
- value: Scalars['String']['input'];
154
- };
155
- type CopilotKitLangGraphInterruptEvent = BaseMetaEvent & {
156
- __typename?: 'CopilotKitLangGraphInterruptEvent';
157
- data: CopilotKitLangGraphInterruptEventData;
158
- name: MetaEventName;
159
- response?: Maybe<Scalars['String']['output']>;
160
- type: Scalars['String']['output'];
161
- };
162
- type CopilotKitLangGraphInterruptEventData = {
163
- __typename?: 'CopilotKitLangGraphInterruptEventData';
164
- messages: Array<BaseMessageOutput>;
165
- value: Scalars['String']['output'];
166
- };
167
- /** The type of Copilot request */
168
- declare enum CopilotRequestType {
169
- Chat = "Chat",
170
- Suggestion = "Suggestion",
171
- Task = "Task",
172
- TextareaCompletion = "TextareaCompletion",
173
- TextareaPopover = "TextareaPopover"
174
- }
175
- type CopilotResponse = {
176
- __typename?: 'CopilotResponse';
177
- extensions?: Maybe<ExtensionsResponse>;
178
- messages: Array<BaseMessageOutput>;
179
- metaEvents?: Maybe<Array<BaseMetaEvent>>;
180
- runId?: Maybe<Scalars['String']['output']>;
181
- status: ResponseStatus;
182
- threadId: Scalars['String']['output'];
183
- };
184
- type ExtensionsInput = {
185
- openaiAssistantAPI?: InputMaybe<OpenAiApiAssistantApiInput>;
186
- };
187
- type ExtensionsResponse = {
188
- __typename?: 'ExtensionsResponse';
189
- openaiAssistantAPI?: Maybe<OpenAiApiAssistantApiResponse>;
190
- };
191
- type FailedMessageStatus = {
192
- __typename?: 'FailedMessageStatus';
193
- code: MessageStatusCode;
194
- reason: Scalars['String']['output'];
195
- };
196
- type FailedResponseStatus = BaseResponseStatus & {
197
- __typename?: 'FailedResponseStatus';
198
- code: ResponseStatusCode;
199
- details?: Maybe<Scalars['JSON']['output']>;
200
- reason: FailedResponseStatusReason;
201
- };
202
- declare enum FailedResponseStatusReason {
203
- GuardrailsValidationFailed = "GUARDRAILS_VALIDATION_FAILED",
204
- MessageStreamInterrupted = "MESSAGE_STREAM_INTERRUPTED",
205
- UnknownError = "UNKNOWN_ERROR"
206
- }
207
- type ForwardedParametersInput = {
208
- maxTokens?: InputMaybe<Scalars['Float']['input']>;
209
- model?: InputMaybe<Scalars['String']['input']>;
210
- stop?: InputMaybe<Array<Scalars['String']['input']>>;
211
- temperature?: InputMaybe<Scalars['Float']['input']>;
212
- toolChoice?: InputMaybe<Scalars['String']['input']>;
213
- toolChoiceFunctionName?: InputMaybe<Scalars['String']['input']>;
214
- };
215
- type FrontendInput = {
216
- actions: Array<ActionInput>;
217
- toDeprecate_fullContext?: InputMaybe<Scalars['String']['input']>;
218
- url?: InputMaybe<Scalars['String']['input']>;
219
- };
220
- type GenerateCopilotResponseInput = {
221
- agentSession?: InputMaybe<AgentSessionInput>;
222
- agentState?: InputMaybe<AgentStateInput>;
223
- agentStates?: InputMaybe<Array<AgentStateInput>>;
224
- cloud?: InputMaybe<CloudInput>;
225
- context?: InputMaybe<Array<CopilotContextInput>>;
226
- extensions?: InputMaybe<ExtensionsInput>;
227
- forwardedParameters?: InputMaybe<ForwardedParametersInput>;
228
- frontend: FrontendInput;
229
- messages: Array<MessageInput>;
230
- metaEvents?: InputMaybe<Array<MetaEventInput>>;
231
- metadata: GenerateCopilotResponseMetadataInput;
232
- runId?: InputMaybe<Scalars['String']['input']>;
233
- threadId?: InputMaybe<Scalars['String']['input']>;
234
- };
235
- type GenerateCopilotResponseMetadataInput = {
236
- requestType?: InputMaybe<CopilotRequestType>;
237
- };
238
- type GuardrailsInput = {
239
- inputValidationRules: GuardrailsRuleInput;
240
- };
241
- type GuardrailsRuleInput = {
242
- allowList?: InputMaybe<Array<Scalars['String']['input']>>;
243
- denyList?: InputMaybe<Array<Scalars['String']['input']>>;
244
- };
245
- type ImageMessageInput = {
246
- bytes: Scalars['String']['input'];
247
- format: Scalars['String']['input'];
248
- parentMessageId?: InputMaybe<Scalars['String']['input']>;
249
- role: MessageRole;
250
- };
251
- type ImageMessageOutput = BaseMessageOutput & {
252
- __typename?: 'ImageMessageOutput';
253
- bytes: Scalars['String']['output'];
254
- createdAt: Scalars['DateTimeISO']['output'];
255
- format: Scalars['String']['output'];
256
- id: Scalars['String']['output'];
257
- parentMessageId?: Maybe<Scalars['String']['output']>;
258
- role: MessageRole;
259
- status: MessageStatus;
260
- };
261
- type LangGraphInterruptEvent = BaseMetaEvent & {
262
- __typename?: 'LangGraphInterruptEvent';
263
- name: MetaEventName;
264
- response?: Maybe<Scalars['String']['output']>;
265
- type: Scalars['String']['output'];
266
- value: Scalars['String']['output'];
267
- };
268
- type LoadAgentStateInput = {
269
- agentName: Scalars['String']['input'];
270
- threadId: Scalars['String']['input'];
271
- };
272
- type LoadAgentStateResponse = {
273
- __typename?: 'LoadAgentStateResponse';
274
- messages: Scalars['String']['output'];
275
- state: Scalars['String']['output'];
276
- threadExists: Scalars['Boolean']['output'];
277
- threadId: Scalars['String']['output'];
278
- };
279
- type MessageInput = {
280
- actionExecutionMessage?: InputMaybe<ActionExecutionMessageInput>;
281
- agentStateMessage?: InputMaybe<AgentStateMessageInput>;
282
- createdAt: Scalars['DateTimeISO']['input'];
283
- id: Scalars['String']['input'];
284
- imageMessage?: InputMaybe<ImageMessageInput>;
285
- resultMessage?: InputMaybe<ResultMessageInput>;
286
- textMessage?: InputMaybe<TextMessageInput>;
287
- };
288
- /** The role of the message */
289
- declare enum MessageRole {
290
- Assistant = "assistant",
291
- Developer = "developer",
292
- System = "system",
293
- Tool = "tool",
294
- User = "user"
295
- }
296
- type MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus;
297
- declare enum MessageStatusCode {
298
- Failed = "Failed",
299
- Pending = "Pending",
300
- Success = "Success"
301
- }
302
- type MetaEventInput = {
303
- messages?: InputMaybe<Array<MessageInput>>;
304
- name: MetaEventName;
305
- response?: InputMaybe<Scalars['String']['input']>;
306
- value: Scalars['String']['input'];
307
- };
308
- /** Meta event types */
309
- declare enum MetaEventName {
310
- CopilotKitLangGraphInterruptEvent = "CopilotKitLangGraphInterruptEvent",
311
- LangGraphInterruptEvent = "LangGraphInterruptEvent"
312
- }
313
- type Mutation = {
314
- __typename?: 'Mutation';
315
- generateCopilotResponse: CopilotResponse;
316
- };
317
- type MutationGenerateCopilotResponseArgs = {
318
- data: GenerateCopilotResponseInput;
319
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
320
- };
321
- type OpenAiApiAssistantApiInput = {
322
- runId?: InputMaybe<Scalars['String']['input']>;
323
- threadId?: InputMaybe<Scalars['String']['input']>;
324
- };
325
- type OpenAiApiAssistantApiResponse = {
326
- __typename?: 'OpenAIApiAssistantAPIResponse';
327
- runId?: Maybe<Scalars['String']['output']>;
328
- threadId?: Maybe<Scalars['String']['output']>;
329
- };
330
- type PendingMessageStatus = {
331
- __typename?: 'PendingMessageStatus';
332
- code: MessageStatusCode;
333
- };
334
- type PendingResponseStatus = BaseResponseStatus & {
335
- __typename?: 'PendingResponseStatus';
336
- code: ResponseStatusCode;
337
- };
338
- type Query = {
339
- __typename?: 'Query';
340
- availableAgents: AgentsResponse;
341
- hello: Scalars['String']['output'];
342
- loadAgentState: LoadAgentStateResponse;
343
- };
344
- type QueryLoadAgentStateArgs = {
345
- data: LoadAgentStateInput;
346
- };
347
- type ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus;
348
- declare enum ResponseStatusCode {
349
- Failed = "Failed",
350
- Pending = "Pending",
351
- Success = "Success"
352
- }
353
- type ResultMessageInput = {
354
- actionExecutionId: Scalars['String']['input'];
355
- actionName: Scalars['String']['input'];
356
- parentMessageId?: InputMaybe<Scalars['String']['input']>;
357
- result: Scalars['String']['input'];
358
- };
359
- type ResultMessageOutput = BaseMessageOutput & {
360
- __typename?: 'ResultMessageOutput';
361
- actionExecutionId: Scalars['String']['output'];
362
- actionName: Scalars['String']['output'];
363
- createdAt: Scalars['DateTimeISO']['output'];
364
- id: Scalars['String']['output'];
365
- result: Scalars['String']['output'];
366
- status: MessageStatus;
367
- };
368
- type SuccessMessageStatus = {
369
- __typename?: 'SuccessMessageStatus';
370
- code: MessageStatusCode;
371
- };
372
- type SuccessResponseStatus = BaseResponseStatus & {
373
- __typename?: 'SuccessResponseStatus';
374
- code: ResponseStatusCode;
375
- };
376
- type TextMessageInput = {
377
- content: Scalars['String']['input'];
378
- parentMessageId?: InputMaybe<Scalars['String']['input']>;
379
- role: MessageRole;
380
- };
381
- type TextMessageOutput = BaseMessageOutput & {
382
- __typename?: 'TextMessageOutput';
383
- content: Array<Scalars['String']['output']>;
384
- createdAt: Scalars['DateTimeISO']['output'];
385
- id: Scalars['String']['output'];
386
- parentMessageId?: Maybe<Scalars['String']['output']>;
387
- role: MessageRole;
388
- status: MessageStatus;
389
- };
390
- type GenerateCopilotResponseMutationVariables = Exact<{
391
- data: GenerateCopilotResponseInput;
392
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
393
- }>;
394
- type GenerateCopilotResponseMutation = {
395
- __typename?: 'Mutation';
396
- generateCopilotResponse: {
397
- __typename?: 'CopilotResponse';
398
- threadId: string;
399
- runId?: string | null;
400
- extensions?: {
401
- __typename?: 'ExtensionsResponse';
402
- openaiAssistantAPI?: {
403
- __typename?: 'OpenAIApiAssistantAPIResponse';
404
- runId?: string | null;
405
- threadId?: string | null;
406
- } | null;
407
- } | null;
408
- messages: Array<{
409
- __typename: 'ActionExecutionMessageOutput';
410
- id: string;
411
- createdAt: any;
412
- name: string;
413
- arguments: Array<string>;
414
- parentMessageId?: string | null;
415
- status: {
416
- __typename?: 'FailedMessageStatus';
417
- code: MessageStatusCode;
418
- reason: string;
419
- } | {
420
- __typename?: 'PendingMessageStatus';
421
- code: MessageStatusCode;
422
- } | {
423
- __typename?: 'SuccessMessageStatus';
424
- code: MessageStatusCode;
425
- };
426
- } | {
427
- __typename: 'AgentStateMessageOutput';
428
- id: string;
429
- createdAt: any;
430
- threadId: string;
431
- state: string;
432
- running: boolean;
433
- agentName: string;
434
- nodeName: string;
435
- runId: string;
436
- active: boolean;
437
- role: MessageRole;
438
- status: {
439
- __typename?: 'FailedMessageStatus';
440
- code: MessageStatusCode;
441
- reason: string;
442
- } | {
443
- __typename?: 'PendingMessageStatus';
444
- code: MessageStatusCode;
445
- } | {
446
- __typename?: 'SuccessMessageStatus';
447
- code: MessageStatusCode;
448
- };
449
- } | {
450
- __typename: 'ImageMessageOutput';
451
- id: string;
452
- createdAt: any;
453
- format: string;
454
- bytes: string;
455
- role: MessageRole;
456
- parentMessageId?: string | null;
457
- status: {
458
- __typename?: 'FailedMessageStatus';
459
- code: MessageStatusCode;
460
- reason: string;
461
- } | {
462
- __typename?: 'PendingMessageStatus';
463
- code: MessageStatusCode;
464
- } | {
465
- __typename?: 'SuccessMessageStatus';
466
- code: MessageStatusCode;
467
- };
468
- } | {
469
- __typename: 'ResultMessageOutput';
470
- id: string;
471
- createdAt: any;
472
- result: string;
473
- actionExecutionId: string;
474
- actionName: string;
475
- status: {
476
- __typename?: 'FailedMessageStatus';
477
- code: MessageStatusCode;
478
- reason: string;
479
- } | {
480
- __typename?: 'PendingMessageStatus';
481
- code: MessageStatusCode;
482
- } | {
483
- __typename?: 'SuccessMessageStatus';
484
- code: MessageStatusCode;
485
- };
486
- } | {
487
- __typename: 'TextMessageOutput';
488
- id: string;
489
- createdAt: any;
490
- content: Array<string>;
491
- role: MessageRole;
492
- parentMessageId?: string | null;
493
- status: {
494
- __typename?: 'FailedMessageStatus';
495
- code: MessageStatusCode;
496
- reason: string;
497
- } | {
498
- __typename?: 'PendingMessageStatus';
499
- code: MessageStatusCode;
500
- } | {
501
- __typename?: 'SuccessMessageStatus';
502
- code: MessageStatusCode;
503
- };
504
- }>;
505
- metaEvents?: Array<{
506
- __typename?: 'CopilotKitLangGraphInterruptEvent';
507
- type: string;
508
- name: MetaEventName;
509
- data: {
510
- __typename?: 'CopilotKitLangGraphInterruptEventData';
511
- value: string;
512
- messages: Array<{
513
- __typename: 'ActionExecutionMessageOutput';
514
- id: string;
515
- createdAt: any;
516
- name: string;
517
- arguments: Array<string>;
518
- parentMessageId?: string | null;
519
- status: {
520
- __typename?: 'FailedMessageStatus';
521
- code: MessageStatusCode;
522
- reason: string;
523
- } | {
524
- __typename?: 'PendingMessageStatus';
525
- code: MessageStatusCode;
526
- } | {
527
- __typename?: 'SuccessMessageStatus';
528
- code: MessageStatusCode;
529
- };
530
- } | {
531
- __typename: 'AgentStateMessageOutput';
532
- id: string;
533
- createdAt: any;
534
- status: {
535
- __typename?: 'FailedMessageStatus';
536
- code: MessageStatusCode;
537
- reason: string;
538
- } | {
539
- __typename?: 'PendingMessageStatus';
540
- code: MessageStatusCode;
541
- } | {
542
- __typename?: 'SuccessMessageStatus';
543
- code: MessageStatusCode;
544
- };
545
- } | {
546
- __typename: 'ImageMessageOutput';
547
- id: string;
548
- createdAt: any;
549
- status: {
550
- __typename?: 'FailedMessageStatus';
551
- code: MessageStatusCode;
552
- reason: string;
553
- } | {
554
- __typename?: 'PendingMessageStatus';
555
- code: MessageStatusCode;
556
- } | {
557
- __typename?: 'SuccessMessageStatus';
558
- code: MessageStatusCode;
559
- };
560
- } | {
561
- __typename: 'ResultMessageOutput';
562
- id: string;
563
- createdAt: any;
564
- result: string;
565
- actionExecutionId: string;
566
- actionName: string;
567
- status: {
568
- __typename?: 'FailedMessageStatus';
569
- code: MessageStatusCode;
570
- reason: string;
571
- } | {
572
- __typename?: 'PendingMessageStatus';
573
- code: MessageStatusCode;
574
- } | {
575
- __typename?: 'SuccessMessageStatus';
576
- code: MessageStatusCode;
577
- };
578
- } | {
579
- __typename: 'TextMessageOutput';
580
- id: string;
581
- createdAt: any;
582
- content: Array<string>;
583
- role: MessageRole;
584
- parentMessageId?: string | null;
585
- status: {
586
- __typename?: 'FailedMessageStatus';
587
- code: MessageStatusCode;
588
- reason: string;
589
- } | {
590
- __typename?: 'PendingMessageStatus';
591
- code: MessageStatusCode;
592
- } | {
593
- __typename?: 'SuccessMessageStatus';
594
- code: MessageStatusCode;
595
- };
596
- }>;
597
- };
598
- } | {
599
- __typename?: 'LangGraphInterruptEvent';
600
- type: string;
601
- name: MetaEventName;
602
- value: string;
603
- }> | null;
604
- } & ({
605
- __typename?: 'CopilotResponse';
606
- status: {
607
- __typename?: 'FailedResponseStatus';
608
- code: ResponseStatusCode;
609
- reason: FailedResponseStatusReason;
610
- details?: any | null;
611
- } | {
612
- __typename?: 'PendingResponseStatus';
613
- code: ResponseStatusCode;
614
- } | {
615
- __typename?: 'SuccessResponseStatus';
616
- code: ResponseStatusCode;
617
- };
618
- } | {
619
- __typename?: 'CopilotResponse';
620
- status?: never;
621
- });
622
- };
623
- type AvailableAgentsQueryVariables = Exact<{
624
- [key: string]: never;
625
- }>;
626
- type AvailableAgentsQuery = {
627
- __typename?: 'Query';
628
- availableAgents: {
629
- __typename?: 'AgentsResponse';
630
- agents: Array<{
631
- __typename?: 'Agent';
632
- name: string;
633
- id: string;
634
- description: string;
635
- }>;
636
- };
637
- };
638
- type LoadAgentStateQueryVariables = Exact<{
639
- data: LoadAgentStateInput;
640
- }>;
641
- type LoadAgentStateQuery = {
642
- __typename?: 'Query';
643
- loadAgentState: {
644
- __typename?: 'LoadAgentStateResponse';
645
- threadId: string;
646
- threadExists: boolean;
647
- state: string;
648
- messages: string;
649
- };
650
- };
651
- declare const GenerateCopilotResponseDocument: TypedDocumentNode<GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables>;
652
- declare const AvailableAgentsDocument: TypedDocumentNode<AvailableAgentsQuery, AvailableAgentsQueryVariables>;
653
- declare const LoadAgentStateDocument: TypedDocumentNode<LoadAgentStateQuery, LoadAgentStateQueryVariables>;
654
-
655
- export { ActionExecutionMessageInput, ActionExecutionMessageOutput, ActionInput, ActionInputAvailability, Agent, AgentSessionInput, AgentStateInput, AgentStateMessageInput, AgentStateMessageOutput, AgentsResponse, AvailableAgentsDocument, AvailableAgentsQuery, AvailableAgentsQueryVariables, BaseMessageOutput, BaseMetaEvent, BaseResponseStatus, CloudInput, CopilotContextInput, CopilotKitLangGraphInterruptEvent, CopilotKitLangGraphInterruptEventData, CopilotRequestType, CopilotResponse, Exact, ExtensionsInput, ExtensionsResponse, FailedMessageStatus, FailedResponseStatus, FailedResponseStatusReason, ForwardedParametersInput, FrontendInput, GenerateCopilotResponseDocument, GenerateCopilotResponseInput, GenerateCopilotResponseMetadataInput, GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables, GuardrailsInput, GuardrailsRuleInput, ImageMessageInput, ImageMessageOutput, Incremental, InputMaybe, LangGraphInterruptEvent, LoadAgentStateDocument, LoadAgentStateInput, LoadAgentStateQuery, LoadAgentStateQueryVariables, LoadAgentStateResponse, MakeEmpty, MakeMaybe, MakeOptional, Maybe, MessageInput, MessageRole, MessageStatus, MessageStatusCode, MetaEventInput, MetaEventName, Mutation, MutationGenerateCopilotResponseArgs, OpenAiApiAssistantApiInput, OpenAiApiAssistantApiResponse, PendingMessageStatus, PendingResponseStatus, Query, QueryLoadAgentStateArgs, ResponseStatus, ResponseStatusCode, ResultMessageInput, ResultMessageOutput, Scalars, SuccessMessageStatus, SuccessResponseStatus, TextMessageInput, TextMessageOutput };