@copilotkit/runtime-client-gql 1.4.3 → 1.4.4-next.0

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 (49) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +3 -3
  3. package/dist/chunk-7ECCT6PK.mjs +0 -1
  4. package/dist/chunk-7ECCT6PK.mjs.map +0 -1
  5. package/dist/chunk-GD5NLJQE.mjs +0 -77
  6. package/dist/chunk-GD5NLJQE.mjs.map +0 -1
  7. package/dist/chunk-I7PYBIRA.mjs +0 -71
  8. package/dist/chunk-I7PYBIRA.mjs.map +0 -1
  9. package/dist/chunk-MNJB3NHD.mjs +0 -85
  10. package/dist/chunk-MNJB3NHD.mjs.map +0 -1
  11. package/dist/chunk-OGFO6ZEP.mjs +0 -59
  12. package/dist/chunk-OGFO6ZEP.mjs.map +0 -1
  13. package/dist/chunk-ZWVRRYBP.mjs +0 -142
  14. package/dist/chunk-ZWVRRYBP.mjs.map +0 -1
  15. package/dist/client/CopilotRuntimeClient.d.ts +0 -30
  16. package/dist/client/CopilotRuntimeClient.js +0 -171
  17. package/dist/client/CopilotRuntimeClient.js.map +0 -1
  18. package/dist/client/CopilotRuntimeClient.mjs +0 -9
  19. package/dist/client/CopilotRuntimeClient.mjs.map +0 -1
  20. package/dist/client/conversion.d.ts +0 -10
  21. package/dist/client/conversion.js +0 -237
  22. package/dist/client/conversion.js.map +0 -1
  23. package/dist/client/conversion.mjs +0 -15
  24. package/dist/client/conversion.mjs.map +0 -1
  25. package/dist/client/index.d.ts +0 -8
  26. package/dist/client/index.js +0 -402
  27. package/dist/client/index.js.map +0 -1
  28. package/dist/client/index.mjs +0 -34
  29. package/dist/client/index.mjs.map +0 -1
  30. package/dist/client/types.d.ts +0 -54
  31. package/dist/client/types.js +0 -113
  32. package/dist/client/types.js.map +0 -1
  33. package/dist/client/types.mjs +0 -18
  34. package/dist/client/types.mjs.map +0 -1
  35. package/dist/graphql/definitions/mutations.d.ts +0 -9
  36. package/dist/graphql/definitions/mutations.js +0 -110
  37. package/dist/graphql/definitions/mutations.js.map +0 -1
  38. package/dist/graphql/definitions/mutations.mjs +0 -8
  39. package/dist/graphql/definitions/mutations.mjs.map +0 -1
  40. package/dist/graphql-5404d59a.d.ts +0 -392
  41. package/dist/index.d.ts +0 -8
  42. package/dist/index.js +0 -456
  43. package/dist/index.js.map +0 -1
  44. package/dist/index.mjs +0 -51
  45. package/dist/index.mjs.map +0 -1
  46. package/src/graphql/@generated/fragment-masking.ts +0 -87
  47. package/src/graphql/@generated/gql.ts +0 -42
  48. package/src/graphql/@generated/graphql.ts +0 -297
  49. package/src/graphql/@generated/index.ts +0 -2
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,87 +0,0 @@
1
- /* eslint-disable */
2
- import type { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
3
- import type { FragmentDefinitionNode } from 'graphql';
4
- import type { Incremental } from './graphql';
5
-
6
-
7
- export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<
8
- infer TType,
9
- any
10
- >
11
- ? [TType] extends [{ ' $fragmentName'?: infer TKey }]
12
- ? TKey extends string
13
- ? { ' $fragmentRefs'?: { [key in TKey]: TType } }
14
- : never
15
- : never
16
- : never;
17
-
18
- // return non-nullable if `fragmentType` is non-nullable
19
- export function useFragment<TType>(
20
- _documentNode: DocumentTypeDecoration<TType, any>,
21
- fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>
22
- ): TType;
23
- // return nullable if `fragmentType` is undefined
24
- export function useFragment<TType>(
25
- _documentNode: DocumentTypeDecoration<TType, any>,
26
- fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined
27
- ): TType | undefined;
28
- // return nullable if `fragmentType` is nullable
29
- export function useFragment<TType>(
30
- _documentNode: DocumentTypeDecoration<TType, any>,
31
- fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null
32
- ): TType | null;
33
- // return nullable if `fragmentType` is nullable or undefined
34
- export function useFragment<TType>(
35
- _documentNode: DocumentTypeDecoration<TType, any>,
36
- fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined
37
- ): TType | null | undefined;
38
- // return array of non-nullable if `fragmentType` is array of non-nullable
39
- export function useFragment<TType>(
40
- _documentNode: DocumentTypeDecoration<TType, any>,
41
- fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>
42
- ): Array<TType>;
43
- // return array of nullable if `fragmentType` is array of nullable
44
- export function useFragment<TType>(
45
- _documentNode: DocumentTypeDecoration<TType, any>,
46
- fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
47
- ): Array<TType> | null | undefined;
48
- // return readonly array of non-nullable if `fragmentType` is array of non-nullable
49
- export function useFragment<TType>(
50
- _documentNode: DocumentTypeDecoration<TType, any>,
51
- fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>
52
- ): ReadonlyArray<TType>;
53
- // return readonly array of nullable if `fragmentType` is array of nullable
54
- export function useFragment<TType>(
55
- _documentNode: DocumentTypeDecoration<TType, any>,
56
- fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
57
- ): ReadonlyArray<TType> | null | undefined;
58
- export function useFragment<TType>(
59
- _documentNode: DocumentTypeDecoration<TType, any>,
60
- fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | Array<FragmentType<DocumentTypeDecoration<TType, any>>> | ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined
61
- ): TType | Array<TType> | ReadonlyArray<TType> | null | undefined {
62
- return fragmentType as any;
63
- }
64
-
65
-
66
- export function makeFragmentData<
67
- F extends DocumentTypeDecoration<any, any>,
68
- FT extends ResultOf<F>
69
- >(data: FT, _fragment: F): FragmentType<F> {
70
- return data as FragmentType<F>;
71
- }
72
- export function isFragmentReady<TQuery, TFrag>(
73
- queryNode: DocumentTypeDecoration<TQuery, any>,
74
- fragmentNode: TypedDocumentNode<TFrag>,
75
- data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined
76
- ): data is FragmentType<typeof fragmentNode> {
77
- const deferredFields = (queryNode as { __meta__?: { deferredFields: Record<string, (keyof TFrag)[]> } }).__meta__
78
- ?.deferredFields;
79
-
80
- if (!deferredFields) return true;
81
-
82
- const fragDef = fragmentNode.definitions[0] as FragmentDefinitionNode | undefined;
83
- const fragName = fragDef?.name?.value;
84
-
85
- const fields = (fragName && deferredFields[fragName]) || [];
86
- return fields.length > 0 && fields.every(field => data && field in data);
87
- }
@@ -1,42 +0,0 @@
1
- /* eslint-disable */
2
- import * as types from './graphql';
3
- import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
4
-
5
- /**
6
- * Map of all GraphQL operations in the project.
7
- *
8
- * This map has several performance disadvantages:
9
- * 1. It is not tree-shakeable, so it will include all operations in the project.
10
- * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
11
- * 3. It does not support dead code elimination, so it will add unused operations.
12
- *
13
- * Therefore it is highly recommended to use the babel or swc plugin for production.
14
- */
15
- const documents = {
16
- "\n mutation generateCopilotResponse($data: GenerateCopilotResponseInput!, $properties: JSONObject) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n ... on CopilotResponse @defer {\n status {\n ... on BaseResponseStatus {\n code\n }\n ... on FailedResponseStatus {\n reason\n details\n }\n }\n }\n messages @stream {\n __typename\n ... on BaseMessageOutput {\n id\n createdAt\n }\n ... on BaseMessageOutput @defer {\n status {\n ... on SuccessMessageStatus {\n code\n }\n ... on FailedMessageStatus {\n code\n reason\n }\n ... on PendingMessageStatus {\n code\n }\n }\n }\n ... on TextMessageOutput {\n content @stream\n role\n }\n ... on ActionExecutionMessageOutput {\n name\n scope\n arguments @stream\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n ... on AgentStateMessageOutput {\n threadId\n state\n running\n agentName\n nodeName\n runId\n active\n role\n }\n }\n }\n }\n": types.GenerateCopilotResponseDocument,
17
- };
18
-
19
- /**
20
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
21
- *
22
- *
23
- * @example
24
- * ```ts
25
- * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
26
- * ```
27
- *
28
- * The query argument is unknown!
29
- * Please regenerate the types.
30
- */
31
- export function graphql(source: string): unknown;
32
-
33
- /**
34
- * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
35
- */
36
- export function graphql(source: "\n mutation generateCopilotResponse($data: GenerateCopilotResponseInput!, $properties: JSONObject) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n ... on CopilotResponse @defer {\n status {\n ... on BaseResponseStatus {\n code\n }\n ... on FailedResponseStatus {\n reason\n details\n }\n }\n }\n messages @stream {\n __typename\n ... on BaseMessageOutput {\n id\n createdAt\n }\n ... on BaseMessageOutput @defer {\n status {\n ... on SuccessMessageStatus {\n code\n }\n ... on FailedMessageStatus {\n code\n reason\n }\n ... on PendingMessageStatus {\n code\n }\n }\n }\n ... on TextMessageOutput {\n content @stream\n role\n }\n ... on ActionExecutionMessageOutput {\n name\n scope\n arguments @stream\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n ... on AgentStateMessageOutput {\n threadId\n state\n running\n agentName\n nodeName\n runId\n active\n role\n }\n }\n }\n }\n"): (typeof documents)["\n mutation generateCopilotResponse($data: GenerateCopilotResponseInput!, $properties: JSONObject) {\n generateCopilotResponse(data: $data, properties: $properties) {\n threadId\n runId\n ... on CopilotResponse @defer {\n status {\n ... on BaseResponseStatus {\n code\n }\n ... on FailedResponseStatus {\n reason\n details\n }\n }\n }\n messages @stream {\n __typename\n ... on BaseMessageOutput {\n id\n createdAt\n }\n ... on BaseMessageOutput @defer {\n status {\n ... on SuccessMessageStatus {\n code\n }\n ... on FailedMessageStatus {\n code\n reason\n }\n ... on PendingMessageStatus {\n code\n }\n }\n }\n ... on TextMessageOutput {\n content @stream\n role\n }\n ... on ActionExecutionMessageOutput {\n name\n scope\n arguments @stream\n }\n ... on ResultMessageOutput {\n result\n actionExecutionId\n actionName\n }\n ... on AgentStateMessageOutput {\n threadId\n state\n running\n agentName\n nodeName\n runId\n active\n role\n }\n }\n }\n }\n"];
37
-
38
- export function graphql(source: string) {
39
- return (documents as any)[source] ?? {};
40
- }
41
-
42
- export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;
@@ -1,297 +0,0 @@
1
- /* eslint-disable */
2
- import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
3
- export type Maybe<T> = T | null;
4
- export type InputMaybe<T> = Maybe<T>;
5
- export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
6
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
7
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
8
- export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
9
- export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
10
- /** All built-in and custom scalars, mapped to their actual values */
11
- export type Scalars = {
12
- ID: { input: string; output: string; }
13
- String: { input: string; output: string; }
14
- Boolean: { input: boolean; output: boolean; }
15
- Int: { input: number; output: number; }
16
- Float: { input: number; output: number; }
17
- /** 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. */
18
- DateTimeISO: { input: any; output: any; }
19
- /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
20
- JSON: { input: any; output: any; }
21
- /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
22
- JSONObject: { input: any; output: any; }
23
- };
24
-
25
- export type ActionExecutionMessageInput = {
26
- arguments: Scalars['String']['input'];
27
- name: Scalars['String']['input'];
28
- scope: ActionExecutionScope;
29
- };
30
-
31
- export type ActionExecutionMessageOutput = BaseMessageOutput & {
32
- __typename?: 'ActionExecutionMessageOutput';
33
- arguments: Array<Scalars['String']['output']>;
34
- createdAt: Scalars['DateTimeISO']['output'];
35
- id: Scalars['String']['output'];
36
- name: Scalars['String']['output'];
37
- scope: ActionExecutionScope;
38
- status: MessageStatus;
39
- };
40
-
41
- /** The scope of the action */
42
- export enum ActionExecutionScope {
43
- Client = 'client',
44
- PassThrough = 'passThrough',
45
- Server = 'server'
46
- }
47
-
48
- export type ActionInput = {
49
- available?: InputMaybe<ActionInputAvailability>;
50
- description: Scalars['String']['input'];
51
- jsonSchema: Scalars['String']['input'];
52
- name: Scalars['String']['input'];
53
- };
54
-
55
- /** The availability of the frontend action */
56
- export enum ActionInputAvailability {
57
- Disabled = 'disabled',
58
- Enabled = 'enabled',
59
- Remote = 'remote'
60
- }
61
-
62
- export type AgentSessionInput = {
63
- agentName: Scalars['String']['input'];
64
- nodeName?: InputMaybe<Scalars['String']['input']>;
65
- threadId?: InputMaybe<Scalars['String']['input']>;
66
- };
67
-
68
- export type AgentStateInput = {
69
- agentName: Scalars['String']['input'];
70
- state: Scalars['String']['input'];
71
- };
72
-
73
- export type AgentStateMessageInput = {
74
- active: Scalars['Boolean']['input'];
75
- agentName: Scalars['String']['input'];
76
- nodeName: Scalars['String']['input'];
77
- role: MessageRole;
78
- runId: Scalars['String']['input'];
79
- running: Scalars['Boolean']['input'];
80
- state: Scalars['String']['input'];
81
- threadId: Scalars['String']['input'];
82
- };
83
-
84
- export type AgentStateMessageOutput = BaseMessageOutput & {
85
- __typename?: 'AgentStateMessageOutput';
86
- active: Scalars['Boolean']['output'];
87
- agentName: Scalars['String']['output'];
88
- createdAt: Scalars['DateTimeISO']['output'];
89
- id: Scalars['String']['output'];
90
- nodeName: Scalars['String']['output'];
91
- role: MessageRole;
92
- runId: Scalars['String']['output'];
93
- running: Scalars['Boolean']['output'];
94
- state: Scalars['String']['output'];
95
- status: MessageStatus;
96
- threadId: Scalars['String']['output'];
97
- };
98
-
99
- export type BaseMessageOutput = {
100
- createdAt: Scalars['DateTimeISO']['output'];
101
- id: Scalars['String']['output'];
102
- status: MessageStatus;
103
- };
104
-
105
- export type BaseResponseStatus = {
106
- code: ResponseStatusCode;
107
- };
108
-
109
- export type CloudInput = {
110
- guardrails?: InputMaybe<GuardrailsInput>;
111
- };
112
-
113
- /** The type of Copilot request */
114
- export enum CopilotRequestType {
115
- Chat = 'Chat',
116
- Suggestion = 'Suggestion',
117
- Task = 'Task',
118
- TextareaCompletion = 'TextareaCompletion',
119
- TextareaPopover = 'TextareaPopover'
120
- }
121
-
122
- export type CopilotResponse = {
123
- __typename?: 'CopilotResponse';
124
- messages: Array<BaseMessageOutput>;
125
- runId?: Maybe<Scalars['String']['output']>;
126
- status: ResponseStatus;
127
- threadId: Scalars['String']['output'];
128
- };
129
-
130
- export type FailedMessageStatus = {
131
- __typename?: 'FailedMessageStatus';
132
- code: MessageStatusCode;
133
- reason: Scalars['String']['output'];
134
- };
135
-
136
- export type FailedResponseStatus = BaseResponseStatus & {
137
- __typename?: 'FailedResponseStatus';
138
- code: ResponseStatusCode;
139
- details?: Maybe<Scalars['JSON']['output']>;
140
- reason: FailedResponseStatusReason;
141
- };
142
-
143
- export enum FailedResponseStatusReason {
144
- GuardrailsValidationFailed = 'GUARDRAILS_VALIDATION_FAILED',
145
- MessageStreamInterrupted = 'MESSAGE_STREAM_INTERRUPTED',
146
- UnknownError = 'UNKNOWN_ERROR'
147
- }
148
-
149
- export type ForwardedParametersInput = {
150
- maxTokens?: InputMaybe<Scalars['Float']['input']>;
151
- model?: InputMaybe<Scalars['String']['input']>;
152
- stop?: InputMaybe<Array<Scalars['String']['input']>>;
153
- toolChoice?: InputMaybe<Scalars['String']['input']>;
154
- toolChoiceFunctionName?: InputMaybe<Scalars['String']['input']>;
155
- };
156
-
157
- export type FrontendInput = {
158
- actions: Array<ActionInput>;
159
- toDeprecate_fullContext?: InputMaybe<Scalars['String']['input']>;
160
- url?: InputMaybe<Scalars['String']['input']>;
161
- };
162
-
163
- export type GenerateCopilotResponseInput = {
164
- agentSession?: InputMaybe<AgentSessionInput>;
165
- agentState?: InputMaybe<AgentStateInput>;
166
- agentStates?: InputMaybe<Array<AgentStateInput>>;
167
- cloud?: InputMaybe<CloudInput>;
168
- forwardedParameters?: InputMaybe<ForwardedParametersInput>;
169
- frontend: FrontendInput;
170
- messages: Array<MessageInput>;
171
- metadata: GenerateCopilotResponseMetadataInput;
172
- runId?: InputMaybe<Scalars['String']['input']>;
173
- threadId?: InputMaybe<Scalars['String']['input']>;
174
- };
175
-
176
- export type GenerateCopilotResponseMetadataInput = {
177
- requestType?: InputMaybe<CopilotRequestType>;
178
- };
179
-
180
- export type GuardrailsInput = {
181
- inputValidationRules: GuardrailsRuleInput;
182
- };
183
-
184
- export type GuardrailsRuleInput = {
185
- allowList?: InputMaybe<Array<Scalars['String']['input']>>;
186
- denyList?: InputMaybe<Array<Scalars['String']['input']>>;
187
- };
188
-
189
- export type MessageInput = {
190
- actionExecutionMessage?: InputMaybe<ActionExecutionMessageInput>;
191
- agentStateMessage?: InputMaybe<AgentStateMessageInput>;
192
- createdAt: Scalars['DateTimeISO']['input'];
193
- id: Scalars['String']['input'];
194
- resultMessage?: InputMaybe<ResultMessageInput>;
195
- textMessage?: InputMaybe<TextMessageInput>;
196
- };
197
-
198
- /** The role of the message */
199
- export enum MessageRole {
200
- Assistant = 'assistant',
201
- System = 'system',
202
- Tool = 'tool',
203
- User = 'user'
204
- }
205
-
206
- export type MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus;
207
-
208
- export enum MessageStatusCode {
209
- Failed = 'Failed',
210
- Pending = 'Pending',
211
- Success = 'Success'
212
- }
213
-
214
- export type Mutation = {
215
- __typename?: 'Mutation';
216
- generateCopilotResponse: CopilotResponse;
217
- };
218
-
219
-
220
- export type MutationGenerateCopilotResponseArgs = {
221
- data: GenerateCopilotResponseInput;
222
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
223
- };
224
-
225
- export type PendingMessageStatus = {
226
- __typename?: 'PendingMessageStatus';
227
- code: MessageStatusCode;
228
- };
229
-
230
- export type PendingResponseStatus = BaseResponseStatus & {
231
- __typename?: 'PendingResponseStatus';
232
- code: ResponseStatusCode;
233
- };
234
-
235
- export type Query = {
236
- __typename?: 'Query';
237
- hello: Scalars['String']['output'];
238
- };
239
-
240
- export type ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus;
241
-
242
- export enum ResponseStatusCode {
243
- Failed = 'Failed',
244
- Pending = 'Pending',
245
- Success = 'Success'
246
- }
247
-
248
- export type ResultMessageInput = {
249
- actionExecutionId: Scalars['String']['input'];
250
- actionName: Scalars['String']['input'];
251
- result: Scalars['String']['input'];
252
- };
253
-
254
- export type ResultMessageOutput = BaseMessageOutput & {
255
- __typename?: 'ResultMessageOutput';
256
- actionExecutionId: Scalars['String']['output'];
257
- actionName: Scalars['String']['output'];
258
- createdAt: Scalars['DateTimeISO']['output'];
259
- id: Scalars['String']['output'];
260
- result: Scalars['String']['output'];
261
- status: MessageStatus;
262
- };
263
-
264
- export type SuccessMessageStatus = {
265
- __typename?: 'SuccessMessageStatus';
266
- code: MessageStatusCode;
267
- };
268
-
269
- export type SuccessResponseStatus = BaseResponseStatus & {
270
- __typename?: 'SuccessResponseStatus';
271
- code: ResponseStatusCode;
272
- };
273
-
274
- export type TextMessageInput = {
275
- content: Scalars['String']['input'];
276
- role: MessageRole;
277
- };
278
-
279
- export type TextMessageOutput = BaseMessageOutput & {
280
- __typename?: 'TextMessageOutput';
281
- content: Array<Scalars['String']['output']>;
282
- createdAt: Scalars['DateTimeISO']['output'];
283
- id: Scalars['String']['output'];
284
- role: MessageRole;
285
- status: MessageStatus;
286
- };
287
-
288
- export type GenerateCopilotResponseMutationVariables = Exact<{
289
- data: GenerateCopilotResponseInput;
290
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
291
- }>;
292
-
293
-
294
- export type GenerateCopilotResponseMutation = { __typename?: 'Mutation', generateCopilotResponse: { __typename?: 'CopilotResponse', threadId: string, runId?: string | null, messages: Array<{ __typename: 'ActionExecutionMessageOutput', id: string, createdAt: any, name: string, scope: ActionExecutionScope, arguments: Array<string>, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } } | { __typename: 'AgentStateMessageOutput', id: string, createdAt: any, threadId: string, state: string, running: boolean, agentName: string, nodeName: string, runId: string, active: boolean, role: MessageRole, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } } | { __typename: 'ResultMessageOutput', id: string, createdAt: any, result: string, actionExecutionId: string, actionName: string, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } } | { __typename: 'TextMessageOutput', id: string, createdAt: any, content: Array<string>, role: MessageRole, status: { __typename?: 'FailedMessageStatus', code: MessageStatusCode, reason: string } | { __typename?: 'PendingMessageStatus', code: MessageStatusCode } | { __typename?: 'SuccessMessageStatus', code: MessageStatusCode } }> } & ({ __typename?: 'CopilotResponse', status: { __typename?: 'FailedResponseStatus', code: ResponseStatusCode, reason: FailedResponseStatusReason, details?: any | null } | { __typename?: 'PendingResponseStatus', code: ResponseStatusCode } | { __typename?: 'SuccessResponseStatus', code: ResponseStatusCode } } | { __typename?: 'CopilotResponse', status?: never }) };
295
-
296
-
297
- export const 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":"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":"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":"scope"}},{"kind":"Field","name":{"kind":"Name","value":"arguments"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}]}]}},{"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"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables>;
@@ -1,2 +0,0 @@
1
- export * from "./fragment-masking";
2
- export * from "./gql";