@copilotkit/runtime-client-gql 1.4.3 → 1.4.4-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 (49) hide show
  1. package/CHANGELOG.md +12 -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,392 +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
- scope: ActionExecutionScope;
66
- };
67
- type ActionExecutionMessageOutput = BaseMessageOutput & {
68
- __typename?: 'ActionExecutionMessageOutput';
69
- arguments: Array<Scalars['String']['output']>;
70
- createdAt: Scalars['DateTimeISO']['output'];
71
- id: Scalars['String']['output'];
72
- name: Scalars['String']['output'];
73
- scope: ActionExecutionScope;
74
- status: MessageStatus;
75
- };
76
- /** The scope of the action */
77
- declare enum ActionExecutionScope {
78
- Client = "client",
79
- PassThrough = "passThrough",
80
- Server = "server"
81
- }
82
- type ActionInput = {
83
- available?: InputMaybe<ActionInputAvailability>;
84
- description: Scalars['String']['input'];
85
- jsonSchema: Scalars['String']['input'];
86
- name: Scalars['String']['input'];
87
- };
88
- /** The availability of the frontend action */
89
- declare enum ActionInputAvailability {
90
- Disabled = "disabled",
91
- Enabled = "enabled",
92
- Remote = "remote"
93
- }
94
- type AgentSessionInput = {
95
- agentName: Scalars['String']['input'];
96
- nodeName?: InputMaybe<Scalars['String']['input']>;
97
- threadId?: InputMaybe<Scalars['String']['input']>;
98
- };
99
- type AgentStateInput = {
100
- agentName: Scalars['String']['input'];
101
- state: Scalars['String']['input'];
102
- };
103
- type AgentStateMessageInput = {
104
- active: Scalars['Boolean']['input'];
105
- agentName: Scalars['String']['input'];
106
- nodeName: Scalars['String']['input'];
107
- role: MessageRole;
108
- runId: Scalars['String']['input'];
109
- running: Scalars['Boolean']['input'];
110
- state: Scalars['String']['input'];
111
- threadId: Scalars['String']['input'];
112
- };
113
- type AgentStateMessageOutput = BaseMessageOutput & {
114
- __typename?: 'AgentStateMessageOutput';
115
- active: Scalars['Boolean']['output'];
116
- agentName: Scalars['String']['output'];
117
- createdAt: Scalars['DateTimeISO']['output'];
118
- id: Scalars['String']['output'];
119
- nodeName: Scalars['String']['output'];
120
- role: MessageRole;
121
- runId: Scalars['String']['output'];
122
- running: Scalars['Boolean']['output'];
123
- state: Scalars['String']['output'];
124
- status: MessageStatus;
125
- threadId: Scalars['String']['output'];
126
- };
127
- type BaseMessageOutput = {
128
- createdAt: Scalars['DateTimeISO']['output'];
129
- id: Scalars['String']['output'];
130
- status: MessageStatus;
131
- };
132
- type BaseResponseStatus = {
133
- code: ResponseStatusCode;
134
- };
135
- type CloudInput = {
136
- guardrails?: InputMaybe<GuardrailsInput>;
137
- };
138
- /** The type of Copilot request */
139
- declare enum CopilotRequestType {
140
- Chat = "Chat",
141
- Suggestion = "Suggestion",
142
- Task = "Task",
143
- TextareaCompletion = "TextareaCompletion",
144
- TextareaPopover = "TextareaPopover"
145
- }
146
- type CopilotResponse = {
147
- __typename?: 'CopilotResponse';
148
- messages: Array<BaseMessageOutput>;
149
- runId?: Maybe<Scalars['String']['output']>;
150
- status: ResponseStatus;
151
- threadId: Scalars['String']['output'];
152
- };
153
- type FailedMessageStatus = {
154
- __typename?: 'FailedMessageStatus';
155
- code: MessageStatusCode;
156
- reason: Scalars['String']['output'];
157
- };
158
- type FailedResponseStatus = BaseResponseStatus & {
159
- __typename?: 'FailedResponseStatus';
160
- code: ResponseStatusCode;
161
- details?: Maybe<Scalars['JSON']['output']>;
162
- reason: FailedResponseStatusReason;
163
- };
164
- declare enum FailedResponseStatusReason {
165
- GuardrailsValidationFailed = "GUARDRAILS_VALIDATION_FAILED",
166
- MessageStreamInterrupted = "MESSAGE_STREAM_INTERRUPTED",
167
- UnknownError = "UNKNOWN_ERROR"
168
- }
169
- type ForwardedParametersInput = {
170
- maxTokens?: InputMaybe<Scalars['Float']['input']>;
171
- model?: InputMaybe<Scalars['String']['input']>;
172
- stop?: InputMaybe<Array<Scalars['String']['input']>>;
173
- toolChoice?: InputMaybe<Scalars['String']['input']>;
174
- toolChoiceFunctionName?: InputMaybe<Scalars['String']['input']>;
175
- };
176
- type FrontendInput = {
177
- actions: Array<ActionInput>;
178
- toDeprecate_fullContext?: InputMaybe<Scalars['String']['input']>;
179
- url?: InputMaybe<Scalars['String']['input']>;
180
- };
181
- type GenerateCopilotResponseInput = {
182
- agentSession?: InputMaybe<AgentSessionInput>;
183
- agentState?: InputMaybe<AgentStateInput>;
184
- agentStates?: InputMaybe<Array<AgentStateInput>>;
185
- cloud?: InputMaybe<CloudInput>;
186
- forwardedParameters?: InputMaybe<ForwardedParametersInput>;
187
- frontend: FrontendInput;
188
- messages: Array<MessageInput>;
189
- metadata: GenerateCopilotResponseMetadataInput;
190
- runId?: InputMaybe<Scalars['String']['input']>;
191
- threadId?: InputMaybe<Scalars['String']['input']>;
192
- };
193
- type GenerateCopilotResponseMetadataInput = {
194
- requestType?: InputMaybe<CopilotRequestType>;
195
- };
196
- type GuardrailsInput = {
197
- inputValidationRules: GuardrailsRuleInput;
198
- };
199
- type GuardrailsRuleInput = {
200
- allowList?: InputMaybe<Array<Scalars['String']['input']>>;
201
- denyList?: InputMaybe<Array<Scalars['String']['input']>>;
202
- };
203
- type MessageInput = {
204
- actionExecutionMessage?: InputMaybe<ActionExecutionMessageInput>;
205
- agentStateMessage?: InputMaybe<AgentStateMessageInput>;
206
- createdAt: Scalars['DateTimeISO']['input'];
207
- id: Scalars['String']['input'];
208
- resultMessage?: InputMaybe<ResultMessageInput>;
209
- textMessage?: InputMaybe<TextMessageInput>;
210
- };
211
- /** The role of the message */
212
- declare enum MessageRole {
213
- Assistant = "assistant",
214
- System = "system",
215
- Tool = "tool",
216
- User = "user"
217
- }
218
- type MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus;
219
- declare enum MessageStatusCode {
220
- Failed = "Failed",
221
- Pending = "Pending",
222
- Success = "Success"
223
- }
224
- type Mutation = {
225
- __typename?: 'Mutation';
226
- generateCopilotResponse: CopilotResponse;
227
- };
228
- type MutationGenerateCopilotResponseArgs = {
229
- data: GenerateCopilotResponseInput;
230
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
231
- };
232
- type PendingMessageStatus = {
233
- __typename?: 'PendingMessageStatus';
234
- code: MessageStatusCode;
235
- };
236
- type PendingResponseStatus = BaseResponseStatus & {
237
- __typename?: 'PendingResponseStatus';
238
- code: ResponseStatusCode;
239
- };
240
- type Query = {
241
- __typename?: 'Query';
242
- hello: Scalars['String']['output'];
243
- };
244
- type ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus;
245
- declare enum ResponseStatusCode {
246
- Failed = "Failed",
247
- Pending = "Pending",
248
- Success = "Success"
249
- }
250
- type ResultMessageInput = {
251
- actionExecutionId: Scalars['String']['input'];
252
- actionName: Scalars['String']['input'];
253
- result: Scalars['String']['input'];
254
- };
255
- type ResultMessageOutput = BaseMessageOutput & {
256
- __typename?: 'ResultMessageOutput';
257
- actionExecutionId: Scalars['String']['output'];
258
- actionName: Scalars['String']['output'];
259
- createdAt: Scalars['DateTimeISO']['output'];
260
- id: Scalars['String']['output'];
261
- result: Scalars['String']['output'];
262
- status: MessageStatus;
263
- };
264
- type SuccessMessageStatus = {
265
- __typename?: 'SuccessMessageStatus';
266
- code: MessageStatusCode;
267
- };
268
- type SuccessResponseStatus = BaseResponseStatus & {
269
- __typename?: 'SuccessResponseStatus';
270
- code: ResponseStatusCode;
271
- };
272
- type TextMessageInput = {
273
- content: Scalars['String']['input'];
274
- role: MessageRole;
275
- };
276
- type TextMessageOutput = BaseMessageOutput & {
277
- __typename?: 'TextMessageOutput';
278
- content: Array<Scalars['String']['output']>;
279
- createdAt: Scalars['DateTimeISO']['output'];
280
- id: Scalars['String']['output'];
281
- role: MessageRole;
282
- status: MessageStatus;
283
- };
284
- type GenerateCopilotResponseMutationVariables = Exact<{
285
- data: GenerateCopilotResponseInput;
286
- properties?: InputMaybe<Scalars['JSONObject']['input']>;
287
- }>;
288
- type GenerateCopilotResponseMutation = {
289
- __typename?: 'Mutation';
290
- generateCopilotResponse: {
291
- __typename?: 'CopilotResponse';
292
- threadId: string;
293
- runId?: string | null;
294
- messages: Array<{
295
- __typename: 'ActionExecutionMessageOutput';
296
- id: string;
297
- createdAt: any;
298
- name: string;
299
- scope: ActionExecutionScope;
300
- arguments: Array<string>;
301
- status: {
302
- __typename?: 'FailedMessageStatus';
303
- code: MessageStatusCode;
304
- reason: string;
305
- } | {
306
- __typename?: 'PendingMessageStatus';
307
- code: MessageStatusCode;
308
- } | {
309
- __typename?: 'SuccessMessageStatus';
310
- code: MessageStatusCode;
311
- };
312
- } | {
313
- __typename: 'AgentStateMessageOutput';
314
- id: string;
315
- createdAt: any;
316
- threadId: string;
317
- state: string;
318
- running: boolean;
319
- agentName: string;
320
- nodeName: string;
321
- runId: string;
322
- active: boolean;
323
- role: MessageRole;
324
- status: {
325
- __typename?: 'FailedMessageStatus';
326
- code: MessageStatusCode;
327
- reason: string;
328
- } | {
329
- __typename?: 'PendingMessageStatus';
330
- code: MessageStatusCode;
331
- } | {
332
- __typename?: 'SuccessMessageStatus';
333
- code: MessageStatusCode;
334
- };
335
- } | {
336
- __typename: 'ResultMessageOutput';
337
- id: string;
338
- createdAt: any;
339
- result: string;
340
- actionExecutionId: string;
341
- actionName: string;
342
- status: {
343
- __typename?: 'FailedMessageStatus';
344
- code: MessageStatusCode;
345
- reason: string;
346
- } | {
347
- __typename?: 'PendingMessageStatus';
348
- code: MessageStatusCode;
349
- } | {
350
- __typename?: 'SuccessMessageStatus';
351
- code: MessageStatusCode;
352
- };
353
- } | {
354
- __typename: 'TextMessageOutput';
355
- id: string;
356
- createdAt: any;
357
- content: Array<string>;
358
- role: MessageRole;
359
- status: {
360
- __typename?: 'FailedMessageStatus';
361
- code: MessageStatusCode;
362
- reason: string;
363
- } | {
364
- __typename?: 'PendingMessageStatus';
365
- code: MessageStatusCode;
366
- } | {
367
- __typename?: 'SuccessMessageStatus';
368
- code: MessageStatusCode;
369
- };
370
- }>;
371
- } & ({
372
- __typename?: 'CopilotResponse';
373
- status: {
374
- __typename?: 'FailedResponseStatus';
375
- code: ResponseStatusCode;
376
- reason: FailedResponseStatusReason;
377
- details?: any | null;
378
- } | {
379
- __typename?: 'PendingResponseStatus';
380
- code: ResponseStatusCode;
381
- } | {
382
- __typename?: 'SuccessResponseStatus';
383
- code: ResponseStatusCode;
384
- };
385
- } | {
386
- __typename?: 'CopilotResponse';
387
- status?: never;
388
- });
389
- };
390
- declare const GenerateCopilotResponseDocument: TypedDocumentNode<GenerateCopilotResponseMutation, GenerateCopilotResponseMutationVariables>;
391
-
392
- export { ActionExecutionMessageInput as A, BaseMessageOutput as B, CloudInput as C, Mutation as D, Exact as E, FailedMessageStatus as F, GenerateCopilotResponseInput as G, MutationGenerateCopilotResponseArgs as H, InputMaybe as I, PendingResponseStatus as J, ResponseStatusCode as K, ResultMessageInput as L, Maybe as M, ResultMessageOutput as N, SuccessMessageStatus as O, PendingMessageStatus as P, Query as Q, ResponseStatus as R, Scalars as S, SuccessResponseStatus as T, TextMessageInput as U, TextMessageOutput as V, GenerateCopilotResponseMutationVariables as W, GenerateCopilotResponseMutation as X, GenerateCopilotResponseDocument as Y, MakeOptional as a, MakeMaybe as b, MakeEmpty as c, Incremental as d, ActionExecutionMessageOutput as e, ActionExecutionScope as f, ActionInput as g, ActionInputAvailability as h, AgentSessionInput as i, AgentStateInput as j, AgentStateMessageInput as k, AgentStateMessageOutput as l, BaseResponseStatus as m, CopilotRequestType as n, CopilotResponse as o, FailedResponseStatus as p, FailedResponseStatusReason as q, ForwardedParametersInput as r, FrontendInput as s, GenerateCopilotResponseMetadataInput as t, GuardrailsInput as u, GuardrailsRuleInput as v, MessageInput as w, MessageRole as x, MessageStatus as y, MessageStatusCode as z };
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- export { CopilotRuntimeClient, CopilotRuntimeClientOptions } from './client/CopilotRuntimeClient.js';
2
- export { convertGqlOutputToMessages, convertMessagesToGqlInput, filterAdjacentAgentStateMessages, filterAgentStateMessages } from './client/conversion.js';
3
- export { ActionExecutionMessage, AgentStateMessage, Message, ResultMessage, Role, TextMessage } from './client/types.js';
4
- export { GraphQLError } from 'graphql';
5
- export { A as ActionExecutionMessageInput, e as ActionExecutionMessageOutput, f as ActionExecutionScope, g as ActionInput, h as ActionInputAvailability, i as AgentSessionInput, j as AgentStateInput, k as AgentStateMessageInput, l as AgentStateMessageOutput, B as BaseMessageOutput, m as BaseResponseStatus, C as CloudInput, n as CopilotRequestType, o as CopilotResponse, E as Exact, F as FailedMessageStatus, p as FailedResponseStatus, q as FailedResponseStatusReason, r as ForwardedParametersInput, s as FrontendInput, Y as GenerateCopilotResponseDocument, G as GenerateCopilotResponseInput, t as GenerateCopilotResponseMetadataInput, X as GenerateCopilotResponseMutation, W as GenerateCopilotResponseMutationVariables, u as GuardrailsInput, v as GuardrailsRuleInput, d as Incremental, I as InputMaybe, c as MakeEmpty, b as MakeMaybe, a as MakeOptional, M as Maybe, w as MessageInput, x as MessageRole, y as MessageStatus, z as MessageStatusCode, D as Mutation, H as MutationGenerateCopilotResponseArgs, P as PendingMessageStatus, J as PendingResponseStatus, Q as Query, R as ResponseStatus, K as ResponseStatusCode, L as ResultMessageInput, N as ResultMessageOutput, S as Scalars, O as SuccessMessageStatus, T as SuccessResponseStatus, U as TextMessageInput, V as TextMessageOutput } from './graphql-5404d59a.js';
6
- import '@urql/core';
7
- import 'urql';
8
- import '@graphql-typed-document-node/core';