@artinet/sdk 0.5.3 → 0.5.5
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.
- package/CHANGELOG.md +20 -1
- package/README.md +58 -89
- package/dist/client/a2a-client.js +25 -7
- package/dist/client/a2a-client.js.map +1 -1
- package/dist/server/a2a-server.js +51 -241
- package/dist/server/a2a-server.js.map +1 -1
- package/dist/server/interfaces/params.js.map +1 -1
- package/dist/server/interfaces/store.js +16 -0
- package/dist/server/interfaces/store.js.map +1 -1
- package/dist/server/lib/express-server.js +211 -2
- package/dist/server/lib/express-server.js.map +1 -1
- package/dist/server/lib/middleware/a2a-methods.js +61 -24
- package/dist/server/lib/middleware/a2a-methods.js.map +1 -1
- package/dist/server/lib/middleware/factory.js +6 -6
- package/dist/server/lib/middleware/factory.js.map +1 -1
- package/dist/server/lib/state.js +44 -72
- package/dist/server/lib/state.js.map +1 -1
- package/dist/server/lib/storage/memory.js.map +1 -1
- package/dist/server/lib/update/base.js +109 -0
- package/dist/server/lib/update/base.js.map +1 -0
- package/dist/services/a2a/index.js +3 -0
- package/dist/services/a2a/index.js.map +1 -0
- package/dist/services/a2a/repository.js +160 -0
- package/dist/services/a2a/repository.js.map +1 -0
- package/dist/services/a2a/service.js +247 -0
- package/dist/services/a2a/service.js.map +1 -0
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/manager.js +61 -0
- package/dist/services/manager.js.map +1 -0
- package/dist/services/mcp/index.js +2 -0
- package/dist/services/mcp/index.js.map +1 -0
- package/dist/services/mcp/service.js +75 -0
- package/dist/services/mcp/service.js.map +1 -0
- package/dist/transport/rpc/parser.js +2 -1
- package/dist/transport/rpc/parser.js.map +1 -1
- package/dist/transport/rpc/rpc-client.js.map +1 -1
- package/dist/transport/streaming/stream.js +19 -36
- package/dist/transport/streaming/stream.js.map +1 -1
- package/dist/types/client/a2a-client.d.ts +21 -7
- package/dist/types/client/a2a-client.d.ts.map +1 -1
- package/dist/types/express.js +2 -0
- package/dist/types/express.js.map +1 -0
- package/dist/types/extended-schema.js +1 -1
- package/dist/types/extended-schema.js.map +1 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/schemas/a2a/auth/auth.js +2 -0
- package/dist/types/schemas/a2a/auth/auth.js.map +1 -0
- package/dist/types/schemas/a2a/auth/base.js +2 -0
- package/dist/types/schemas/a2a/auth/base.js.map +1 -0
- package/dist/types/schemas/a2a/auth/index.js +4 -0
- package/dist/types/schemas/a2a/auth/index.js.map +1 -0
- package/dist/types/schemas/a2a/auth/oauth.js +2 -0
- package/dist/types/schemas/a2a/auth/oauth.js.map +1 -0
- package/dist/types/schemas/a2a/error.js +45 -0
- package/dist/types/schemas/a2a/error.js.map +1 -0
- package/dist/types/schemas/a2a/index.js +8 -0
- package/dist/types/schemas/a2a/index.js.map +1 -0
- package/dist/types/schemas/a2a/message.js +2 -0
- package/dist/types/schemas/a2a/message.js.map +1 -0
- package/dist/types/schemas/a2a/notification.js +2 -0
- package/dist/types/schemas/a2a/notification.js.map +1 -0
- package/dist/types/schemas/a2a/parameters.js +2 -0
- package/dist/types/schemas/a2a/parameters.js.map +1 -0
- package/dist/types/schemas/a2a/ref.js +25 -0
- package/dist/types/schemas/a2a/ref.js.map +1 -0
- package/dist/types/schemas/a2a/rpc.js +2 -0
- package/dist/types/schemas/a2a/rpc.js.map +1 -0
- package/dist/types/schemas/a2a/task.js +16 -0
- package/dist/types/schemas/a2a/task.js.map +1 -0
- package/dist/types/schemas/index.js +2 -0
- package/dist/types/schemas/index.js.map +1 -0
- package/dist/types/server/a2a-server.d.ts +9 -20
- package/dist/types/server/a2a-server.d.ts.map +1 -1
- package/dist/types/server/interfaces/params.d.ts +11 -11
- package/dist/types/server/interfaces/params.d.ts.map +1 -1
- package/dist/types/server/interfaces/server.d.ts +4 -4
- package/dist/types/server/interfaces/server.d.ts.map +1 -1
- package/dist/types/server/interfaces/store.d.ts +6 -1
- package/dist/types/server/interfaces/store.d.ts.map +1 -1
- package/dist/types/server/lib/express-server.d.ts +49 -1
- package/dist/types/server/lib/express-server.d.ts.map +1 -1
- package/dist/types/server/lib/middleware/a2a-methods.d.ts.map +1 -1
- package/dist/types/server/lib/middleware/factory.d.ts +2 -2
- package/dist/types/server/lib/middleware/factory.d.ts.map +1 -1
- package/dist/types/server/lib/state.d.ts +7 -15
- package/dist/types/server/lib/state.d.ts.map +1 -1
- package/dist/types/server/lib/storage/memory.d.ts.map +1 -1
- package/dist/types/server/lib/update/base.d.ts +21 -0
- package/dist/types/server/lib/update/base.d.ts.map +1 -0
- package/dist/types/services/a2a/index.d.ts +3 -0
- package/dist/types/services/a2a/index.d.ts.map +1 -0
- package/dist/types/services/a2a/repository.d.ts +77 -0
- package/dist/types/services/a2a/repository.d.ts.map +1 -0
- package/dist/types/services/a2a/repository.js +2 -0
- package/dist/types/services/a2a/repository.js.map +1 -0
- package/dist/types/services/a2a/service.d.ts +45 -0
- package/dist/types/services/a2a/service.d.ts.map +1 -0
- package/dist/types/services/a2a/service.js +2 -0
- package/dist/types/services/a2a/service.js.map +1 -0
- package/dist/types/services/context.js +29 -0
- package/dist/types/services/context.js.map +1 -0
- package/dist/types/services/dispatcher.js +33 -0
- package/dist/types/services/dispatcher.js.map +1 -0
- package/dist/types/services/index.d.ts +2 -0
- package/dist/types/services/index.d.ts.map +1 -0
- package/dist/types/services/index.js +9 -0
- package/dist/types/services/index.js.map +1 -0
- package/dist/types/services/manager.d.ts +44 -0
- package/dist/types/services/manager.d.ts.map +1 -0
- package/dist/types/services/manager.js +2 -0
- package/dist/types/services/manager.js.map +1 -0
- package/dist/types/services/mcp/index.d.ts +2 -0
- package/dist/types/services/mcp/index.d.ts.map +1 -0
- package/dist/types/services/mcp/service.d.ts +30 -0
- package/dist/types/services/mcp/service.d.ts.map +1 -0
- package/dist/types/services/mcp/service.js +8 -0
- package/dist/types/services/mcp/service.js.map +1 -0
- package/dist/types/services/protocol.js +31 -0
- package/dist/types/services/protocol.js.map +1 -0
- package/dist/types/services/service.js +2 -0
- package/dist/types/services/service.js.map +1 -0
- package/dist/types/transform.js +35 -0
- package/dist/types/transform.js.map +1 -0
- package/dist/types/transport/rpc/parser.d.ts.map +1 -1
- package/dist/types/transport/rpc/rpc-client.d.ts.map +1 -1
- package/dist/types/transport/streaming/stream.d.ts +6 -5
- package/dist/types/transport/streaming/stream.d.ts.map +1 -1
- package/dist/types/types/client.d.ts +26 -9
- package/dist/types/types/client.d.ts.map +1 -1
- package/dist/types/types/express.d.ts +66 -0
- package/dist/types/types/express.d.ts.map +1 -0
- package/dist/types/types/extended-schema.d.ts +88 -33
- package/dist/types/types/extended-schema.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/proxy.d.ts +4 -5
- package/dist/types/types/proxy.d.ts.map +1 -1
- package/dist/types/types/schemas/a2a/auth/auth.d.ts +80 -0
- package/dist/types/types/schemas/a2a/auth/auth.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/auth/base.d.ts +16 -0
- package/dist/types/types/schemas/a2a/auth/base.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/auth/index.d.ts +4 -0
- package/dist/types/types/schemas/a2a/auth/index.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/auth/oauth.d.ts +124 -0
- package/dist/types/types/schemas/a2a/auth/oauth.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/error.d.ts +75 -0
- package/dist/types/types/schemas/a2a/error.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/index.d.ts +220 -0
- package/dist/types/types/schemas/a2a/index.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/message.d.ts +90 -0
- package/dist/types/types/schemas/a2a/message.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/notification.d.ts +87 -0
- package/dist/types/types/schemas/a2a/notification.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/parameters.d.ts +188 -0
- package/dist/types/types/schemas/a2a/parameters.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/ref.d.ts +2057 -0
- package/dist/types/types/schemas/a2a/ref.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/rpc.d.ts +104 -0
- package/dist/types/types/schemas/a2a/rpc.d.ts.map +1 -0
- package/dist/types/types/schemas/a2a/task.d.ts +252 -0
- package/dist/types/types/schemas/a2a/task.d.ts.map +1 -0
- package/dist/types/types/schemas/index.d.ts +2 -0
- package/dist/types/types/schemas/index.d.ts.map +1 -0
- package/dist/types/types/services/a2a/repository.d.ts +85 -0
- package/dist/types/types/services/a2a/repository.d.ts.map +1 -0
- package/dist/types/types/services/a2a/service.d.ts +29 -0
- package/dist/types/types/services/a2a/service.d.ts.map +1 -0
- package/dist/types/types/services/context.d.ts +167 -0
- package/dist/types/types/services/context.d.ts.map +1 -0
- package/dist/types/types/services/dispatcher.d.ts +20 -0
- package/dist/types/types/services/dispatcher.d.ts.map +1 -0
- package/dist/types/types/services/index.d.ts +9 -0
- package/dist/types/types/services/index.d.ts.map +1 -0
- package/dist/types/types/services/manager.d.ts +42 -0
- package/dist/types/types/services/manager.d.ts.map +1 -0
- package/dist/types/types/services/mcp/service.d.ts +57 -0
- package/dist/types/types/services/mcp/service.d.ts.map +1 -0
- package/dist/types/types/services/protocol.d.ts +30 -0
- package/dist/types/types/services/protocol.d.ts.map +1 -0
- package/dist/types/types/services/service.d.ts +35 -0
- package/dist/types/types/services/service.d.ts.map +1 -0
- package/dist/types/types/transform.d.ts +61 -0
- package/dist/types/types/transform.d.ts.map +1 -0
- package/dist/types/utils/api/register.d.ts.map +1 -1
- package/dist/types/utils/common/constants.d.ts +4 -4
- package/dist/types/utils/common/constants.d.ts.map +1 -1
- package/dist/types/utils/common/errors.d.ts +19 -15
- package/dist/types/utils/common/errors.d.ts.map +1 -1
- package/dist/types/utils/common/utils.d.ts +2 -13
- package/dist/types/utils/common/utils.d.ts.map +1 -1
- package/dist/types/utils/deployment/task-wrapper.d.ts +5 -6
- package/dist/types/utils/deployment/task-wrapper.d.ts.map +1 -1
- package/dist/types/utils/deployment/test-deployment.d.ts +2 -2
- package/dist/types/utils/deployment/test-deployment.d.ts.map +1 -1
- package/dist/types/utils/logging/log.d.ts.map +1 -1
- package/dist/utils/api/register.js +1 -3
- package/dist/utils/api/register.js.map +1 -1
- package/dist/utils/common/constants.js +37 -24
- package/dist/utils/common/constants.js.map +1 -1
- package/dist/utils/common/errors.js +20 -9
- package/dist/utils/common/errors.js.map +1 -1
- package/dist/utils/common/utils.js +5 -27
- package/dist/utils/common/utils.js.map +1 -1
- package/dist/utils/deployment/agents.js.map +1 -1
- package/dist/utils/deployment/task-wrapper.js +3 -3
- package/dist/utils/deployment/task-wrapper.js.map +1 -1
- package/dist/utils/deployment/test-deployment.js +3 -4
- package/dist/utils/deployment/test-deployment.js.map +1 -1
- package/dist/utils/logging/log.js.map +1 -1
- package/package.json +11 -7
- package/dist/types/context.js +0 -2
- package/dist/types/context.js.map +0 -1
- package/dist/types/schema.js +0 -23
- package/dist/types/schema.js.map +0 -1
- package/dist/types/types/context.d.ts +0 -41
- package/dist/types/types/context.d.ts.map +0 -1
- package/dist/types/types/schema.d.ts +0 -694
- package/dist/types/types/schema.d.ts.map +0 -1
|
@@ -0,0 +1,2057 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
8
|
+
* via the `definition` "A2AError".
|
|
9
|
+
*/
|
|
10
|
+
export type A2AError = JSONParseError | InvalidRequestError | MethodNotFoundError | InvalidParamsError | InternalError | TaskNotFoundError | TaskNotCancelableError | PushNotificationNotSupportedError | UnsupportedOperationError | ContentTypeNotSupportedError | InvalidAgentResponseError;
|
|
11
|
+
/**
|
|
12
|
+
* A2A supported request types
|
|
13
|
+
*
|
|
14
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
15
|
+
* via the `definition` "A2ARequest".
|
|
16
|
+
*/
|
|
17
|
+
export type A2ARequest = SendMessageRequest | SendStreamingMessageRequest | GetTaskRequest | CancelTaskRequest | SetTaskPushNotificationConfigRequest | GetTaskPushNotificationConfigRequest | TaskResubscriptionRequest;
|
|
18
|
+
/**
|
|
19
|
+
* Represents a part of a message, which can be text, a file, or structured data.
|
|
20
|
+
*
|
|
21
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
22
|
+
* via the `definition` "Part".
|
|
23
|
+
*/
|
|
24
|
+
export type Part = TextPart | FilePart | DataPart;
|
|
25
|
+
/**
|
|
26
|
+
* Mirrors the OpenAPI Security Scheme Object
|
|
27
|
+
* (https://swagger.io/specification/#security-scheme-object)
|
|
28
|
+
*
|
|
29
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
30
|
+
* via the `definition` "SecurityScheme".
|
|
31
|
+
*/
|
|
32
|
+
export type SecurityScheme = APIKeySecurityScheme | HTTPAuthSecurityScheme | OAuth2SecurityScheme | OpenIdConnectSecurityScheme;
|
|
33
|
+
/**
|
|
34
|
+
* JSON-RPC response for the 'tasks/cancel' method.
|
|
35
|
+
*
|
|
36
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
37
|
+
* via the `definition` "CancelTaskResponse".
|
|
38
|
+
*/
|
|
39
|
+
export type CancelTaskResponse = JSONRPCErrorResponse | CancelTaskSuccessResponse;
|
|
40
|
+
/**
|
|
41
|
+
* JSON-RPC response for the 'tasks/pushNotificationConfig/set' method.
|
|
42
|
+
*
|
|
43
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
44
|
+
* via the `definition` "GetTaskPushNotificationConfigResponse".
|
|
45
|
+
*/
|
|
46
|
+
export type GetTaskPushNotificationConfigResponse = JSONRPCErrorResponse | GetTaskPushNotificationConfigSuccessResponse;
|
|
47
|
+
/**
|
|
48
|
+
* JSON-RPC response for the 'tasks/get' method.
|
|
49
|
+
*
|
|
50
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
51
|
+
* via the `definition` "GetTaskResponse".
|
|
52
|
+
*/
|
|
53
|
+
export type GetTaskResponse = JSONRPCErrorResponse | GetTaskSuccessResponse;
|
|
54
|
+
/**
|
|
55
|
+
* Represents a JSON-RPC 2.0 Response object.
|
|
56
|
+
*
|
|
57
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
58
|
+
* via the `definition` "JSONRPCResponse".
|
|
59
|
+
*/
|
|
60
|
+
export type JSONRPCResponse = JSONRPCErrorResponse | SendMessageSuccessResponse | SendStreamingMessageSuccessResponse | GetTaskSuccessResponse | CancelTaskSuccessResponse | SetTaskPushNotificationConfigSuccessResponse | GetTaskPushNotificationConfigSuccessResponse;
|
|
61
|
+
/**
|
|
62
|
+
* JSON-RPC response model for the 'message/send' method.
|
|
63
|
+
*
|
|
64
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
65
|
+
* via the `definition` "SendMessageResponse".
|
|
66
|
+
*/
|
|
67
|
+
export type SendMessageResponse = JSONRPCErrorResponse | SendMessageSuccessResponse;
|
|
68
|
+
/**
|
|
69
|
+
* JSON-RPC response model for the 'message/stream' method.
|
|
70
|
+
*
|
|
71
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
72
|
+
* via the `definition` "SendStreamingMessageResponse".
|
|
73
|
+
*/
|
|
74
|
+
export type SendStreamingMessageResponse = JSONRPCErrorResponse | SendStreamingMessageSuccessResponse;
|
|
75
|
+
/**
|
|
76
|
+
* JSON-RPC response for the 'tasks/pushNotificationConfig/set' method.
|
|
77
|
+
*
|
|
78
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
79
|
+
* via the `definition` "SetTaskPushNotificationConfigResponse".
|
|
80
|
+
*/
|
|
81
|
+
export type SetTaskPushNotificationConfigResponse = JSONRPCErrorResponse | SetTaskPushNotificationConfigSuccessResponse;
|
|
82
|
+
export interface MySchema {
|
|
83
|
+
[k: string]: unknown;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* JSON-RPC error indicating invalid JSON was received by the server.
|
|
87
|
+
*
|
|
88
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
89
|
+
* via the `definition` "JSONParseError".
|
|
90
|
+
*/
|
|
91
|
+
export interface JSONParseError {
|
|
92
|
+
/**
|
|
93
|
+
* A Number that indicates the error type that occurred.
|
|
94
|
+
*/
|
|
95
|
+
code: -32700;
|
|
96
|
+
/**
|
|
97
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
98
|
+
* This may be omitted.
|
|
99
|
+
*/
|
|
100
|
+
data?: {
|
|
101
|
+
[k: string]: unknown;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* A String providing a short description of the error.
|
|
105
|
+
*/
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* JSON-RPC error indicating the JSON sent is not a valid Request object.
|
|
110
|
+
*
|
|
111
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
112
|
+
* via the `definition` "InvalidRequestError".
|
|
113
|
+
*/
|
|
114
|
+
export interface InvalidRequestError {
|
|
115
|
+
/**
|
|
116
|
+
* A Number that indicates the error type that occurred.
|
|
117
|
+
*/
|
|
118
|
+
code: -32600;
|
|
119
|
+
/**
|
|
120
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
121
|
+
* This may be omitted.
|
|
122
|
+
*/
|
|
123
|
+
data?: {
|
|
124
|
+
[k: string]: unknown;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* A String providing a short description of the error.
|
|
128
|
+
*/
|
|
129
|
+
message: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* JSON-RPC error indicating the method does not exist or is not available.
|
|
133
|
+
*
|
|
134
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
135
|
+
* via the `definition` "MethodNotFoundError".
|
|
136
|
+
*/
|
|
137
|
+
export interface MethodNotFoundError {
|
|
138
|
+
/**
|
|
139
|
+
* A Number that indicates the error type that occurred.
|
|
140
|
+
*/
|
|
141
|
+
code: -32601;
|
|
142
|
+
/**
|
|
143
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
144
|
+
* This may be omitted.
|
|
145
|
+
*/
|
|
146
|
+
data?: {
|
|
147
|
+
[k: string]: unknown;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* A String providing a short description of the error.
|
|
151
|
+
*/
|
|
152
|
+
message: string;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* JSON-RPC error indicating invalid method parameter(s).
|
|
156
|
+
*
|
|
157
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
158
|
+
* via the `definition` "InvalidParamsError".
|
|
159
|
+
*/
|
|
160
|
+
export interface InvalidParamsError {
|
|
161
|
+
/**
|
|
162
|
+
* A Number that indicates the error type that occurred.
|
|
163
|
+
*/
|
|
164
|
+
code: -32602;
|
|
165
|
+
/**
|
|
166
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
167
|
+
* This may be omitted.
|
|
168
|
+
*/
|
|
169
|
+
data?: {
|
|
170
|
+
[k: string]: unknown;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* A String providing a short description of the error.
|
|
174
|
+
*/
|
|
175
|
+
message: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* JSON-RPC error indicating an internal JSON-RPC error on the server.
|
|
179
|
+
*
|
|
180
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
181
|
+
* via the `definition` "InternalError".
|
|
182
|
+
*/
|
|
183
|
+
export interface InternalError {
|
|
184
|
+
/**
|
|
185
|
+
* A Number that indicates the error type that occurred.
|
|
186
|
+
*/
|
|
187
|
+
code: -32603;
|
|
188
|
+
/**
|
|
189
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
190
|
+
* This may be omitted.
|
|
191
|
+
*/
|
|
192
|
+
data?: {
|
|
193
|
+
[k: string]: unknown;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* A String providing a short description of the error.
|
|
197
|
+
*/
|
|
198
|
+
message: string;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* A2A specific error indicating the requested task ID was not found.
|
|
202
|
+
*
|
|
203
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
204
|
+
* via the `definition` "TaskNotFoundError".
|
|
205
|
+
*/
|
|
206
|
+
export interface TaskNotFoundError {
|
|
207
|
+
/**
|
|
208
|
+
* A Number that indicates the error type that occurred.
|
|
209
|
+
*/
|
|
210
|
+
code: -32001;
|
|
211
|
+
/**
|
|
212
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
213
|
+
* This may be omitted.
|
|
214
|
+
*/
|
|
215
|
+
data?: {
|
|
216
|
+
[k: string]: unknown;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* A String providing a short description of the error.
|
|
220
|
+
*/
|
|
221
|
+
message: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* A2A specific error indicating the task is in a state where it cannot be canceled.
|
|
225
|
+
*
|
|
226
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
227
|
+
* via the `definition` "TaskNotCancelableError".
|
|
228
|
+
*/
|
|
229
|
+
export interface TaskNotCancelableError {
|
|
230
|
+
/**
|
|
231
|
+
* A Number that indicates the error type that occurred.
|
|
232
|
+
*/
|
|
233
|
+
code: -32002;
|
|
234
|
+
/**
|
|
235
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
236
|
+
* This may be omitted.
|
|
237
|
+
*/
|
|
238
|
+
data?: {
|
|
239
|
+
[k: string]: unknown;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* A String providing a short description of the error.
|
|
243
|
+
*/
|
|
244
|
+
message: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* A2A specific error indicating the agent does not support push notifications.
|
|
248
|
+
*
|
|
249
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
250
|
+
* via the `definition` "PushNotificationNotSupportedError".
|
|
251
|
+
*/
|
|
252
|
+
export interface PushNotificationNotSupportedError {
|
|
253
|
+
/**
|
|
254
|
+
* A Number that indicates the error type that occurred.
|
|
255
|
+
*/
|
|
256
|
+
code: -32003;
|
|
257
|
+
/**
|
|
258
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
259
|
+
* This may be omitted.
|
|
260
|
+
*/
|
|
261
|
+
data?: {
|
|
262
|
+
[k: string]: unknown;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* A String providing a short description of the error.
|
|
266
|
+
*/
|
|
267
|
+
message: string;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* A2A specific error indicating the requested operation is not supported by the agent.
|
|
271
|
+
*
|
|
272
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
273
|
+
* via the `definition` "UnsupportedOperationError".
|
|
274
|
+
*/
|
|
275
|
+
export interface UnsupportedOperationError {
|
|
276
|
+
/**
|
|
277
|
+
* A Number that indicates the error type that occurred.
|
|
278
|
+
*/
|
|
279
|
+
code: -32004;
|
|
280
|
+
/**
|
|
281
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
282
|
+
* This may be omitted.
|
|
283
|
+
*/
|
|
284
|
+
data?: {
|
|
285
|
+
[k: string]: unknown;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* A String providing a short description of the error.
|
|
289
|
+
*/
|
|
290
|
+
message: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* A2A specific error indicating incompatible content types between request and agent capabilities.
|
|
294
|
+
*
|
|
295
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
296
|
+
* via the `definition` "ContentTypeNotSupportedError".
|
|
297
|
+
*/
|
|
298
|
+
export interface ContentTypeNotSupportedError {
|
|
299
|
+
/**
|
|
300
|
+
* A Number that indicates the error type that occurred.
|
|
301
|
+
*/
|
|
302
|
+
code: -32005;
|
|
303
|
+
/**
|
|
304
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
305
|
+
* This may be omitted.
|
|
306
|
+
*/
|
|
307
|
+
data?: {
|
|
308
|
+
[k: string]: unknown;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* A String providing a short description of the error.
|
|
312
|
+
*/
|
|
313
|
+
message: string;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* A2A specific error indicating agent returned invalid response for the current method
|
|
317
|
+
*
|
|
318
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
319
|
+
* via the `definition` "InvalidAgentResponseError".
|
|
320
|
+
*/
|
|
321
|
+
export interface InvalidAgentResponseError {
|
|
322
|
+
/**
|
|
323
|
+
* A Number that indicates the error type that occurred.
|
|
324
|
+
*/
|
|
325
|
+
code: -32006;
|
|
326
|
+
/**
|
|
327
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
328
|
+
* This may be omitted.
|
|
329
|
+
*/
|
|
330
|
+
data?: {
|
|
331
|
+
[k: string]: unknown;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* A String providing a short description of the error.
|
|
335
|
+
*/
|
|
336
|
+
message: string;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* JSON-RPC request model for the 'message/send' method.
|
|
340
|
+
*
|
|
341
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
342
|
+
* via the `definition` "SendMessageRequest".
|
|
343
|
+
*/
|
|
344
|
+
export interface SendMessageRequest {
|
|
345
|
+
/**
|
|
346
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
347
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
348
|
+
*/
|
|
349
|
+
id: string | number;
|
|
350
|
+
/**
|
|
351
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
352
|
+
*/
|
|
353
|
+
jsonrpc: "2.0";
|
|
354
|
+
/**
|
|
355
|
+
* A String containing the name of the method to be invoked.
|
|
356
|
+
*/
|
|
357
|
+
method: "message/send";
|
|
358
|
+
params: MessageSendParams;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
362
|
+
*/
|
|
363
|
+
export interface MessageSendParams {
|
|
364
|
+
configuration?: MessageSendConfiguration;
|
|
365
|
+
message: Message;
|
|
366
|
+
/**
|
|
367
|
+
* Extension metadata.
|
|
368
|
+
*/
|
|
369
|
+
metadata?: {
|
|
370
|
+
[k: string]: unknown;
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Send message configuration.
|
|
375
|
+
*/
|
|
376
|
+
export interface MessageSendConfiguration {
|
|
377
|
+
/**
|
|
378
|
+
* Accepted output modalities by the client.
|
|
379
|
+
*/
|
|
380
|
+
acceptedOutputModes: string[];
|
|
381
|
+
/**
|
|
382
|
+
* If the server should treat the client as a blocking request.
|
|
383
|
+
*/
|
|
384
|
+
blocking?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* Number of recent messages to be retrieved.
|
|
387
|
+
*/
|
|
388
|
+
historyLength?: number;
|
|
389
|
+
pushNotificationConfig?: PushNotificationConfig;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Where the server should send notifications when disconnected.
|
|
393
|
+
*/
|
|
394
|
+
export interface PushNotificationConfig {
|
|
395
|
+
authentication?: PushNotificationAuthenticationInfo;
|
|
396
|
+
/**
|
|
397
|
+
* Push Notification ID - created by server to support multiple callbacks
|
|
398
|
+
*/
|
|
399
|
+
id?: string;
|
|
400
|
+
/**
|
|
401
|
+
* Token unique to this task/session.
|
|
402
|
+
*/
|
|
403
|
+
token?: string;
|
|
404
|
+
/**
|
|
405
|
+
* URL for sending the push notifications.
|
|
406
|
+
*/
|
|
407
|
+
url: string;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Defines authentication details for push notifications.
|
|
411
|
+
*
|
|
412
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
413
|
+
* via the `definition` "PushNotificationAuthenticationInfo".
|
|
414
|
+
*/
|
|
415
|
+
export interface PushNotificationAuthenticationInfo {
|
|
416
|
+
/**
|
|
417
|
+
* Optional credentials
|
|
418
|
+
*/
|
|
419
|
+
credentials?: string;
|
|
420
|
+
/**
|
|
421
|
+
* Supported authentication schemes - e.g. Basic, Bearer
|
|
422
|
+
*/
|
|
423
|
+
schemes: string[];
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* The message being sent to the server.
|
|
427
|
+
*/
|
|
428
|
+
export interface Message {
|
|
429
|
+
/**
|
|
430
|
+
* The context the message is associated with
|
|
431
|
+
*/
|
|
432
|
+
contextId?: string;
|
|
433
|
+
/**
|
|
434
|
+
* The URIs of extensions that are present or contributed to this Message.
|
|
435
|
+
*/
|
|
436
|
+
extensions?: string[];
|
|
437
|
+
/**
|
|
438
|
+
* Event type
|
|
439
|
+
*/
|
|
440
|
+
kind: "message";
|
|
441
|
+
/**
|
|
442
|
+
* Identifier created by the message creator
|
|
443
|
+
*/
|
|
444
|
+
messageId: string;
|
|
445
|
+
/**
|
|
446
|
+
* Extension metadata.
|
|
447
|
+
*/
|
|
448
|
+
metadata?: {
|
|
449
|
+
[k: string]: unknown;
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Message content
|
|
453
|
+
*/
|
|
454
|
+
parts: Part[];
|
|
455
|
+
/**
|
|
456
|
+
* List of tasks referenced as context by this message.
|
|
457
|
+
*/
|
|
458
|
+
referenceTaskIds?: string[];
|
|
459
|
+
/**
|
|
460
|
+
* Message sender's role
|
|
461
|
+
*/
|
|
462
|
+
role: "agent" | "user";
|
|
463
|
+
/**
|
|
464
|
+
* Identifier of task the message is related to
|
|
465
|
+
*/
|
|
466
|
+
taskId?: string;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Represents a text segment within parts.
|
|
470
|
+
*
|
|
471
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
472
|
+
* via the `definition` "TextPart".
|
|
473
|
+
*/
|
|
474
|
+
export interface TextPart {
|
|
475
|
+
/**
|
|
476
|
+
* Part type - text for TextParts
|
|
477
|
+
*/
|
|
478
|
+
kind: "text";
|
|
479
|
+
/**
|
|
480
|
+
* Optional metadata associated with the part.
|
|
481
|
+
*/
|
|
482
|
+
metadata?: {
|
|
483
|
+
[k: string]: unknown;
|
|
484
|
+
};
|
|
485
|
+
/**
|
|
486
|
+
* Text content
|
|
487
|
+
*/
|
|
488
|
+
text: string;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Represents a File segment within parts.
|
|
492
|
+
*
|
|
493
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
494
|
+
* via the `definition` "FilePart".
|
|
495
|
+
*/
|
|
496
|
+
export interface FilePart {
|
|
497
|
+
/**
|
|
498
|
+
* File content either as url or bytes
|
|
499
|
+
*/
|
|
500
|
+
file: FileWithBytes | FileWithUri;
|
|
501
|
+
/**
|
|
502
|
+
* Part type - file for FileParts
|
|
503
|
+
*/
|
|
504
|
+
kind: "file";
|
|
505
|
+
/**
|
|
506
|
+
* Optional metadata associated with the part.
|
|
507
|
+
*/
|
|
508
|
+
metadata?: {
|
|
509
|
+
[k: string]: unknown;
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Define the variant where 'bytes' is present and 'uri' is absent
|
|
514
|
+
*
|
|
515
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
516
|
+
* via the `definition` "FileWithBytes".
|
|
517
|
+
*/
|
|
518
|
+
export interface FileWithBytes {
|
|
519
|
+
/**
|
|
520
|
+
* base64 encoded content of the file
|
|
521
|
+
*/
|
|
522
|
+
bytes: string;
|
|
523
|
+
/**
|
|
524
|
+
* Optional mimeType for the file
|
|
525
|
+
*/
|
|
526
|
+
mimeType?: string;
|
|
527
|
+
/**
|
|
528
|
+
* Optional name for the file
|
|
529
|
+
*/
|
|
530
|
+
name?: string;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Define the variant where 'uri' is present and 'bytes' is absent
|
|
534
|
+
*
|
|
535
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
536
|
+
* via the `definition` "FileWithUri".
|
|
537
|
+
*/
|
|
538
|
+
export interface FileWithUri {
|
|
539
|
+
/**
|
|
540
|
+
* Optional mimeType for the file
|
|
541
|
+
*/
|
|
542
|
+
mimeType?: string;
|
|
543
|
+
/**
|
|
544
|
+
* Optional name for the file
|
|
545
|
+
*/
|
|
546
|
+
name?: string;
|
|
547
|
+
/**
|
|
548
|
+
* URL for the File content
|
|
549
|
+
*/
|
|
550
|
+
uri: string;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Represents a structured data segment within a message part.
|
|
554
|
+
*
|
|
555
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
556
|
+
* via the `definition` "DataPart".
|
|
557
|
+
*/
|
|
558
|
+
export interface DataPart {
|
|
559
|
+
/**
|
|
560
|
+
* Structured data content
|
|
561
|
+
*/
|
|
562
|
+
data: {
|
|
563
|
+
[k: string]: unknown;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* Part type - data for DataParts
|
|
567
|
+
*/
|
|
568
|
+
kind: "data";
|
|
569
|
+
/**
|
|
570
|
+
* Optional metadata associated with the part.
|
|
571
|
+
*/
|
|
572
|
+
metadata?: {
|
|
573
|
+
[k: string]: unknown;
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* JSON-RPC request model for the 'message/stream' method.
|
|
578
|
+
*
|
|
579
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
580
|
+
* via the `definition` "SendStreamingMessageRequest".
|
|
581
|
+
*/
|
|
582
|
+
export interface SendStreamingMessageRequest {
|
|
583
|
+
/**
|
|
584
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
585
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
586
|
+
*/
|
|
587
|
+
id: string | number;
|
|
588
|
+
/**
|
|
589
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
590
|
+
*/
|
|
591
|
+
jsonrpc: "2.0";
|
|
592
|
+
/**
|
|
593
|
+
* A String containing the name of the method to be invoked.
|
|
594
|
+
*/
|
|
595
|
+
method: "message/stream";
|
|
596
|
+
params: MessageSendParams1;
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
600
|
+
*/
|
|
601
|
+
export interface MessageSendParams1 {
|
|
602
|
+
configuration?: MessageSendConfiguration;
|
|
603
|
+
message: Message;
|
|
604
|
+
/**
|
|
605
|
+
* Extension metadata.
|
|
606
|
+
*/
|
|
607
|
+
metadata?: {
|
|
608
|
+
[k: string]: unknown;
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* JSON-RPC request model for the 'tasks/get' method.
|
|
613
|
+
*
|
|
614
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
615
|
+
* via the `definition` "GetTaskRequest".
|
|
616
|
+
*/
|
|
617
|
+
export interface GetTaskRequest {
|
|
618
|
+
/**
|
|
619
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
620
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
621
|
+
*/
|
|
622
|
+
id: string | number;
|
|
623
|
+
/**
|
|
624
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
625
|
+
*/
|
|
626
|
+
jsonrpc: "2.0";
|
|
627
|
+
/**
|
|
628
|
+
* A String containing the name of the method to be invoked.
|
|
629
|
+
*/
|
|
630
|
+
method: "tasks/get";
|
|
631
|
+
params: TaskQueryParams;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
635
|
+
*/
|
|
636
|
+
export interface TaskQueryParams {
|
|
637
|
+
/**
|
|
638
|
+
* Number of recent messages to be retrieved.
|
|
639
|
+
*/
|
|
640
|
+
historyLength?: number;
|
|
641
|
+
/**
|
|
642
|
+
* Task id.
|
|
643
|
+
*/
|
|
644
|
+
id: string;
|
|
645
|
+
metadata?: {
|
|
646
|
+
[k: string]: unknown;
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* JSON-RPC request model for the 'tasks/cancel' method.
|
|
651
|
+
*
|
|
652
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
653
|
+
* via the `definition` "CancelTaskRequest".
|
|
654
|
+
*/
|
|
655
|
+
export interface CancelTaskRequest {
|
|
656
|
+
/**
|
|
657
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
658
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
659
|
+
*/
|
|
660
|
+
id: string | number;
|
|
661
|
+
/**
|
|
662
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
663
|
+
*/
|
|
664
|
+
jsonrpc: "2.0";
|
|
665
|
+
/**
|
|
666
|
+
* A String containing the name of the method to be invoked.
|
|
667
|
+
*/
|
|
668
|
+
method: "tasks/cancel";
|
|
669
|
+
params: TaskIdParams;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
673
|
+
*/
|
|
674
|
+
export interface TaskIdParams {
|
|
675
|
+
/**
|
|
676
|
+
* Task id.
|
|
677
|
+
*/
|
|
678
|
+
id: string;
|
|
679
|
+
metadata?: {
|
|
680
|
+
[k: string]: unknown;
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
/**
|
|
684
|
+
* JSON-RPC request model for the 'tasks/pushNotificationConfig/set' method.
|
|
685
|
+
*
|
|
686
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
687
|
+
* via the `definition` "SetTaskPushNotificationConfigRequest".
|
|
688
|
+
*/
|
|
689
|
+
export interface SetTaskPushNotificationConfigRequest {
|
|
690
|
+
/**
|
|
691
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
692
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
693
|
+
*/
|
|
694
|
+
id: string | number;
|
|
695
|
+
/**
|
|
696
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
697
|
+
*/
|
|
698
|
+
jsonrpc: "2.0";
|
|
699
|
+
/**
|
|
700
|
+
* A String containing the name of the method to be invoked.
|
|
701
|
+
*/
|
|
702
|
+
method: "tasks/pushNotificationConfig/set";
|
|
703
|
+
params: TaskPushNotificationConfig;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
707
|
+
*/
|
|
708
|
+
export interface TaskPushNotificationConfig {
|
|
709
|
+
pushNotificationConfig: PushNotificationConfig1;
|
|
710
|
+
/**
|
|
711
|
+
* Task id.
|
|
712
|
+
*/
|
|
713
|
+
taskId: string;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Push notification configuration.
|
|
717
|
+
*/
|
|
718
|
+
export interface PushNotificationConfig1 {
|
|
719
|
+
authentication?: PushNotificationAuthenticationInfo;
|
|
720
|
+
/**
|
|
721
|
+
* Push Notification ID - created by server to support multiple callbacks
|
|
722
|
+
*/
|
|
723
|
+
id?: string;
|
|
724
|
+
/**
|
|
725
|
+
* Token unique to this task/session.
|
|
726
|
+
*/
|
|
727
|
+
token?: string;
|
|
728
|
+
/**
|
|
729
|
+
* URL for sending the push notifications.
|
|
730
|
+
*/
|
|
731
|
+
url: string;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* JSON-RPC request model for the 'tasks/pushNotificationConfig/get' method.
|
|
735
|
+
*
|
|
736
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
737
|
+
* via the `definition` "GetTaskPushNotificationConfigRequest".
|
|
738
|
+
*/
|
|
739
|
+
export interface GetTaskPushNotificationConfigRequest {
|
|
740
|
+
/**
|
|
741
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
742
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
743
|
+
*/
|
|
744
|
+
id: string | number;
|
|
745
|
+
/**
|
|
746
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
747
|
+
*/
|
|
748
|
+
jsonrpc: "2.0";
|
|
749
|
+
/**
|
|
750
|
+
* A String containing the name of the method to be invoked.
|
|
751
|
+
*/
|
|
752
|
+
method: "tasks/pushNotificationConfig/get";
|
|
753
|
+
params: TaskIdParams1;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
757
|
+
*/
|
|
758
|
+
export interface TaskIdParams1 {
|
|
759
|
+
/**
|
|
760
|
+
* Task id.
|
|
761
|
+
*/
|
|
762
|
+
id: string;
|
|
763
|
+
metadata?: {
|
|
764
|
+
[k: string]: unknown;
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* JSON-RPC request model for the 'tasks/resubscribe' method.
|
|
769
|
+
*
|
|
770
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
771
|
+
* via the `definition` "TaskResubscriptionRequest".
|
|
772
|
+
*/
|
|
773
|
+
export interface TaskResubscriptionRequest {
|
|
774
|
+
/**
|
|
775
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
776
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
777
|
+
*/
|
|
778
|
+
id: string | number;
|
|
779
|
+
/**
|
|
780
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
781
|
+
*/
|
|
782
|
+
jsonrpc: "2.0";
|
|
783
|
+
/**
|
|
784
|
+
* A String containing the name of the method to be invoked.
|
|
785
|
+
*/
|
|
786
|
+
method: "tasks/resubscribe";
|
|
787
|
+
params: TaskIdParams2;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
791
|
+
*/
|
|
792
|
+
export interface TaskIdParams2 {
|
|
793
|
+
/**
|
|
794
|
+
* Task id.
|
|
795
|
+
*/
|
|
796
|
+
id: string;
|
|
797
|
+
metadata?: {
|
|
798
|
+
[k: string]: unknown;
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* API Key security scheme.
|
|
803
|
+
*
|
|
804
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
805
|
+
* via the `definition` "APIKeySecurityScheme".
|
|
806
|
+
*/
|
|
807
|
+
export interface APIKeySecurityScheme {
|
|
808
|
+
/**
|
|
809
|
+
* Description of this security scheme.
|
|
810
|
+
*/
|
|
811
|
+
description?: string;
|
|
812
|
+
/**
|
|
813
|
+
* The location of the API key. Valid values are "query", "header", or "cookie".
|
|
814
|
+
*/
|
|
815
|
+
in: "cookie" | "header" | "query";
|
|
816
|
+
/**
|
|
817
|
+
* The name of the header, query or cookie parameter to be used.
|
|
818
|
+
*/
|
|
819
|
+
name: string;
|
|
820
|
+
type: "apiKey";
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Defines optional capabilities supported by an agent.
|
|
824
|
+
*
|
|
825
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
826
|
+
* via the `definition` "AgentCapabilities".
|
|
827
|
+
*/
|
|
828
|
+
export interface AgentCapabilities {
|
|
829
|
+
/**
|
|
830
|
+
* extensions supported by this agent.
|
|
831
|
+
*/
|
|
832
|
+
extensions?: AgentExtension[];
|
|
833
|
+
/**
|
|
834
|
+
* true if the agent can notify updates to client.
|
|
835
|
+
*/
|
|
836
|
+
pushNotifications?: boolean;
|
|
837
|
+
/**
|
|
838
|
+
* true if the agent exposes status change history for tasks.
|
|
839
|
+
*/
|
|
840
|
+
stateTransitionHistory?: boolean;
|
|
841
|
+
/**
|
|
842
|
+
* true if the agent supports SSE.
|
|
843
|
+
*/
|
|
844
|
+
streaming?: boolean;
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* A declaration of an extension supported by an Agent.
|
|
848
|
+
*
|
|
849
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
850
|
+
* via the `definition` "AgentExtension".
|
|
851
|
+
*/
|
|
852
|
+
export interface AgentExtension {
|
|
853
|
+
/**
|
|
854
|
+
* A description of how this agent uses this extension.
|
|
855
|
+
*/
|
|
856
|
+
description?: string;
|
|
857
|
+
/**
|
|
858
|
+
* Optional configuration for the extension.
|
|
859
|
+
*/
|
|
860
|
+
params?: {
|
|
861
|
+
[k: string]: unknown;
|
|
862
|
+
};
|
|
863
|
+
/**
|
|
864
|
+
* Whether the client must follow specific requirements of the extension.
|
|
865
|
+
*/
|
|
866
|
+
required?: boolean;
|
|
867
|
+
/**
|
|
868
|
+
* The URI of the extension.
|
|
869
|
+
*/
|
|
870
|
+
uri: string;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* An AgentCard conveys key information:
|
|
874
|
+
* - Overall details (version, name, description, uses)
|
|
875
|
+
* - Skills: A set of capabilities the agent can perform
|
|
876
|
+
* - Default modalities/content types supported by the agent.
|
|
877
|
+
* - Authentication requirements
|
|
878
|
+
*
|
|
879
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
880
|
+
* via the `definition` "AgentCard".
|
|
881
|
+
*/
|
|
882
|
+
export interface AgentCard {
|
|
883
|
+
capabilities: AgentCapabilities1;
|
|
884
|
+
/**
|
|
885
|
+
* The set of interaction modes that the agent supports across all skills. This can be overridden per-skill.
|
|
886
|
+
* Supported media types for input.
|
|
887
|
+
*/
|
|
888
|
+
defaultInputModes: string[];
|
|
889
|
+
/**
|
|
890
|
+
* Supported media types for output.
|
|
891
|
+
*/
|
|
892
|
+
defaultOutputModes: string[];
|
|
893
|
+
/**
|
|
894
|
+
* A human-readable description of the agent. Used to assist users and
|
|
895
|
+
* other agents in understanding what the agent can do.
|
|
896
|
+
*/
|
|
897
|
+
description: string;
|
|
898
|
+
/**
|
|
899
|
+
* A URL to documentation for the agent.
|
|
900
|
+
*/
|
|
901
|
+
documentationUrl?: string;
|
|
902
|
+
/**
|
|
903
|
+
* A URL to an icon for the agent.
|
|
904
|
+
*/
|
|
905
|
+
iconUrl?: string;
|
|
906
|
+
/**
|
|
907
|
+
* Human readable name of the agent.
|
|
908
|
+
*/
|
|
909
|
+
name: string;
|
|
910
|
+
provider?: AgentProvider;
|
|
911
|
+
/**
|
|
912
|
+
* Security requirements for contacting the agent.
|
|
913
|
+
*/
|
|
914
|
+
security?: {
|
|
915
|
+
[k: string]: string[];
|
|
916
|
+
}[];
|
|
917
|
+
/**
|
|
918
|
+
* Security scheme details used for authenticating with this agent.
|
|
919
|
+
*/
|
|
920
|
+
securitySchemes?: {
|
|
921
|
+
[k: string]: SecurityScheme;
|
|
922
|
+
};
|
|
923
|
+
/**
|
|
924
|
+
* Skills are a unit of capability that an agent can perform.
|
|
925
|
+
*/
|
|
926
|
+
skills: AgentSkill[];
|
|
927
|
+
/**
|
|
928
|
+
* true if the agent supports providing an extended agent card when the user is authenticated.
|
|
929
|
+
* Defaults to false if not specified.
|
|
930
|
+
*/
|
|
931
|
+
supportsAuthenticatedExtendedCard?: boolean;
|
|
932
|
+
/**
|
|
933
|
+
* A URL to the address the agent is hosted at.
|
|
934
|
+
*/
|
|
935
|
+
url: string;
|
|
936
|
+
/**
|
|
937
|
+
* The version of the agent - format is up to the provider.
|
|
938
|
+
*/
|
|
939
|
+
version: string;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* Optional capabilities supported by the agent.
|
|
943
|
+
*/
|
|
944
|
+
export interface AgentCapabilities1 {
|
|
945
|
+
/**
|
|
946
|
+
* extensions supported by this agent.
|
|
947
|
+
*/
|
|
948
|
+
extensions?: AgentExtension[];
|
|
949
|
+
/**
|
|
950
|
+
* true if the agent can notify updates to client.
|
|
951
|
+
*/
|
|
952
|
+
pushNotifications?: boolean;
|
|
953
|
+
/**
|
|
954
|
+
* true if the agent exposes status change history for tasks.
|
|
955
|
+
*/
|
|
956
|
+
stateTransitionHistory?: boolean;
|
|
957
|
+
/**
|
|
958
|
+
* true if the agent supports SSE.
|
|
959
|
+
*/
|
|
960
|
+
streaming?: boolean;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* The service provider of the agent
|
|
964
|
+
*/
|
|
965
|
+
export interface AgentProvider {
|
|
966
|
+
/**
|
|
967
|
+
* Agent provider's organization name.
|
|
968
|
+
*/
|
|
969
|
+
organization: string;
|
|
970
|
+
/**
|
|
971
|
+
* Agent provider's URL.
|
|
972
|
+
*/
|
|
973
|
+
url: string;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* HTTP Authentication security scheme.
|
|
977
|
+
*
|
|
978
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
979
|
+
* via the `definition` "HTTPAuthSecurityScheme".
|
|
980
|
+
*/
|
|
981
|
+
export interface HTTPAuthSecurityScheme {
|
|
982
|
+
/**
|
|
983
|
+
* A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually
|
|
984
|
+
* generated by an authorization server, so this information is primarily for documentation
|
|
985
|
+
* purposes.
|
|
986
|
+
*/
|
|
987
|
+
bearerFormat?: string;
|
|
988
|
+
/**
|
|
989
|
+
* Description of this security scheme.
|
|
990
|
+
*/
|
|
991
|
+
description?: string;
|
|
992
|
+
/**
|
|
993
|
+
* The name of the HTTP Authentication scheme to be used in the Authorization header as defined
|
|
994
|
+
* in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry.
|
|
995
|
+
* The value is case-insensitive, as defined in RFC7235.
|
|
996
|
+
*/
|
|
997
|
+
scheme: string;
|
|
998
|
+
type: "http";
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* OAuth2.0 security scheme configuration.
|
|
1002
|
+
*
|
|
1003
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1004
|
+
* via the `definition` "OAuth2SecurityScheme".
|
|
1005
|
+
*/
|
|
1006
|
+
export interface OAuth2SecurityScheme {
|
|
1007
|
+
/**
|
|
1008
|
+
* Description of this security scheme.
|
|
1009
|
+
*/
|
|
1010
|
+
description?: string;
|
|
1011
|
+
flows: OAuthFlows;
|
|
1012
|
+
type: "oauth2";
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* An object containing configuration information for the flow types supported.
|
|
1016
|
+
*/
|
|
1017
|
+
export interface OAuthFlows {
|
|
1018
|
+
authorizationCode?: AuthorizationCodeOAuthFlow;
|
|
1019
|
+
clientCredentials?: ClientCredentialsOAuthFlow;
|
|
1020
|
+
implicit?: ImplicitOAuthFlow;
|
|
1021
|
+
password?: PasswordOAuthFlow;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
|
|
1025
|
+
*/
|
|
1026
|
+
export interface AuthorizationCodeOAuthFlow {
|
|
1027
|
+
/**
|
|
1028
|
+
* The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
|
|
1029
|
+
* standard requires the use of TLS
|
|
1030
|
+
*/
|
|
1031
|
+
authorizationUrl: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1034
|
+
* standard requires the use of TLS.
|
|
1035
|
+
*/
|
|
1036
|
+
refreshUrl?: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1039
|
+
* description for it. The map MAY be empty.
|
|
1040
|
+
*/
|
|
1041
|
+
scopes: {
|
|
1042
|
+
[k: string]: string;
|
|
1043
|
+
};
|
|
1044
|
+
/**
|
|
1045
|
+
* The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
|
|
1046
|
+
* requires the use of TLS.
|
|
1047
|
+
*/
|
|
1048
|
+
tokenUrl: string;
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0
|
|
1052
|
+
*/
|
|
1053
|
+
export interface ClientCredentialsOAuthFlow {
|
|
1054
|
+
/**
|
|
1055
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1056
|
+
* standard requires the use of TLS.
|
|
1057
|
+
*/
|
|
1058
|
+
refreshUrl?: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1061
|
+
* description for it. The map MAY be empty.
|
|
1062
|
+
*/
|
|
1063
|
+
scopes: {
|
|
1064
|
+
[k: string]: string;
|
|
1065
|
+
};
|
|
1066
|
+
/**
|
|
1067
|
+
* The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
|
|
1068
|
+
* requires the use of TLS.
|
|
1069
|
+
*/
|
|
1070
|
+
tokenUrl: string;
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* Configuration for the OAuth Implicit flow
|
|
1074
|
+
*/
|
|
1075
|
+
export interface ImplicitOAuthFlow {
|
|
1076
|
+
/**
|
|
1077
|
+
* The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
|
|
1078
|
+
* standard requires the use of TLS
|
|
1079
|
+
*/
|
|
1080
|
+
authorizationUrl: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1083
|
+
* standard requires the use of TLS.
|
|
1084
|
+
*/
|
|
1085
|
+
refreshUrl?: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1088
|
+
* description for it. The map MAY be empty.
|
|
1089
|
+
*/
|
|
1090
|
+
scopes: {
|
|
1091
|
+
[k: string]: string;
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Configuration for the OAuth Resource Owner Password flow
|
|
1096
|
+
*/
|
|
1097
|
+
export interface PasswordOAuthFlow {
|
|
1098
|
+
/**
|
|
1099
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1100
|
+
* standard requires the use of TLS.
|
|
1101
|
+
*/
|
|
1102
|
+
refreshUrl?: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1105
|
+
* description for it. The map MAY be empty.
|
|
1106
|
+
*/
|
|
1107
|
+
scopes: {
|
|
1108
|
+
[k: string]: string;
|
|
1109
|
+
};
|
|
1110
|
+
/**
|
|
1111
|
+
* The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
|
|
1112
|
+
* requires the use of TLS.
|
|
1113
|
+
*/
|
|
1114
|
+
tokenUrl: string;
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* OpenID Connect security scheme configuration.
|
|
1118
|
+
*
|
|
1119
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1120
|
+
* via the `definition` "OpenIdConnectSecurityScheme".
|
|
1121
|
+
*/
|
|
1122
|
+
export interface OpenIdConnectSecurityScheme {
|
|
1123
|
+
/**
|
|
1124
|
+
* Description of this security scheme.
|
|
1125
|
+
*/
|
|
1126
|
+
description?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata.
|
|
1129
|
+
*/
|
|
1130
|
+
openIdConnectUrl: string;
|
|
1131
|
+
type: "openIdConnect";
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Represents a unit of capability that an agent can perform.
|
|
1135
|
+
*
|
|
1136
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1137
|
+
* via the `definition` "AgentSkill".
|
|
1138
|
+
*/
|
|
1139
|
+
export interface AgentSkill {
|
|
1140
|
+
/**
|
|
1141
|
+
* Description of the skill - will be used by the client or a human
|
|
1142
|
+
* as a hint to understand what the skill does.
|
|
1143
|
+
*/
|
|
1144
|
+
description: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* The set of example scenarios that the skill can perform.
|
|
1147
|
+
* Will be used by the client as a hint to understand how the skill can be used.
|
|
1148
|
+
*/
|
|
1149
|
+
examples?: string[];
|
|
1150
|
+
/**
|
|
1151
|
+
* Unique identifier for the agent's skill.
|
|
1152
|
+
*/
|
|
1153
|
+
id: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* The set of interaction modes that the skill supports
|
|
1156
|
+
* (if different than the default).
|
|
1157
|
+
* Supported media types for input.
|
|
1158
|
+
*/
|
|
1159
|
+
inputModes?: string[];
|
|
1160
|
+
/**
|
|
1161
|
+
* Human readable name of the skill.
|
|
1162
|
+
*/
|
|
1163
|
+
name: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* Supported media types for output.
|
|
1166
|
+
*/
|
|
1167
|
+
outputModes?: string[];
|
|
1168
|
+
/**
|
|
1169
|
+
* Set of tagwords describing classes of capabilities for this specific skill.
|
|
1170
|
+
*/
|
|
1171
|
+
tags: string[];
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Represents the service provider of an agent.
|
|
1175
|
+
*
|
|
1176
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1177
|
+
* via the `definition` "AgentProvider".
|
|
1178
|
+
*/
|
|
1179
|
+
export interface AgentProvider1 {
|
|
1180
|
+
/**
|
|
1181
|
+
* Agent provider's organization name.
|
|
1182
|
+
*/
|
|
1183
|
+
organization: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* Agent provider's URL.
|
|
1186
|
+
*/
|
|
1187
|
+
url: string;
|
|
1188
|
+
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Represents an artifact generated for a task.
|
|
1191
|
+
*
|
|
1192
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1193
|
+
* via the `definition` "Artifact".
|
|
1194
|
+
*/
|
|
1195
|
+
export interface Artifact {
|
|
1196
|
+
/**
|
|
1197
|
+
* Unique identifier for the artifact.
|
|
1198
|
+
*/
|
|
1199
|
+
artifactId: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* Optional description for the artifact.
|
|
1202
|
+
*/
|
|
1203
|
+
description?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* The URIs of extensions that are present or contributed to this Artifact.
|
|
1206
|
+
*/
|
|
1207
|
+
extensions?: string[];
|
|
1208
|
+
/**
|
|
1209
|
+
* Extension metadata.
|
|
1210
|
+
*/
|
|
1211
|
+
metadata?: {
|
|
1212
|
+
[k: string]: unknown;
|
|
1213
|
+
};
|
|
1214
|
+
/**
|
|
1215
|
+
* Optional name for the artifact.
|
|
1216
|
+
*/
|
|
1217
|
+
name?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Artifact parts.
|
|
1220
|
+
*/
|
|
1221
|
+
parts: Part[];
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* Configuration details for a supported OAuth Flow
|
|
1225
|
+
*
|
|
1226
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1227
|
+
* via the `definition` "AuthorizationCodeOAuthFlow".
|
|
1228
|
+
*/
|
|
1229
|
+
export interface AuthorizationCodeOAuthFlow1 {
|
|
1230
|
+
/**
|
|
1231
|
+
* The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
|
|
1232
|
+
* standard requires the use of TLS
|
|
1233
|
+
*/
|
|
1234
|
+
authorizationUrl: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1237
|
+
* standard requires the use of TLS.
|
|
1238
|
+
*/
|
|
1239
|
+
refreshUrl?: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1242
|
+
* description for it. The map MAY be empty.
|
|
1243
|
+
*/
|
|
1244
|
+
scopes: {
|
|
1245
|
+
[k: string]: string;
|
|
1246
|
+
};
|
|
1247
|
+
/**
|
|
1248
|
+
* The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
|
|
1249
|
+
* requires the use of TLS.
|
|
1250
|
+
*/
|
|
1251
|
+
tokenUrl: string;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Represents a JSON-RPC 2.0 Error Response object.
|
|
1255
|
+
*
|
|
1256
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1257
|
+
* via the `definition` "JSONRPCErrorResponse".
|
|
1258
|
+
*/
|
|
1259
|
+
export interface JSONRPCErrorResponse {
|
|
1260
|
+
error: JSONRPCError | JSONParseError | InvalidRequestError | MethodNotFoundError | InvalidParamsError | InternalError | TaskNotFoundError | TaskNotCancelableError | PushNotificationNotSupportedError | UnsupportedOperationError | ContentTypeNotSupportedError | InvalidAgentResponseError;
|
|
1261
|
+
/**
|
|
1262
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1263
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1264
|
+
*/
|
|
1265
|
+
id: string | number | null;
|
|
1266
|
+
/**
|
|
1267
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1268
|
+
*/
|
|
1269
|
+
jsonrpc: "2.0";
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Represents a JSON-RPC 2.0 Error object.
|
|
1273
|
+
* This is typically included in a JSONRPCErrorResponse when an error occurs.
|
|
1274
|
+
*
|
|
1275
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1276
|
+
* via the `definition` "JSONRPCError".
|
|
1277
|
+
*/
|
|
1278
|
+
export interface JSONRPCError {
|
|
1279
|
+
/**
|
|
1280
|
+
* A Number that indicates the error type that occurred.
|
|
1281
|
+
*/
|
|
1282
|
+
code: number;
|
|
1283
|
+
/**
|
|
1284
|
+
* A Primitive or Structured value that contains additional information about the error.
|
|
1285
|
+
* This may be omitted.
|
|
1286
|
+
*/
|
|
1287
|
+
data?: {
|
|
1288
|
+
[k: string]: unknown;
|
|
1289
|
+
};
|
|
1290
|
+
/**
|
|
1291
|
+
* A String providing a short description of the error.
|
|
1292
|
+
*/
|
|
1293
|
+
message: string;
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* JSON-RPC success response model for the 'tasks/cancel' method.
|
|
1297
|
+
*
|
|
1298
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1299
|
+
* via the `definition` "CancelTaskSuccessResponse".
|
|
1300
|
+
*/
|
|
1301
|
+
export interface CancelTaskSuccessResponse {
|
|
1302
|
+
/**
|
|
1303
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1304
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1305
|
+
*/
|
|
1306
|
+
id: string | number | null;
|
|
1307
|
+
/**
|
|
1308
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1309
|
+
*/
|
|
1310
|
+
jsonrpc: "2.0";
|
|
1311
|
+
result: Task;
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* The result object on success.
|
|
1315
|
+
*/
|
|
1316
|
+
export interface Task {
|
|
1317
|
+
/**
|
|
1318
|
+
* Collection of artifacts created by the agent.
|
|
1319
|
+
*/
|
|
1320
|
+
artifacts?: Artifact[];
|
|
1321
|
+
/**
|
|
1322
|
+
* Server-generated id for contextual alignment across interactions
|
|
1323
|
+
*/
|
|
1324
|
+
contextId: string;
|
|
1325
|
+
history?: Message1[];
|
|
1326
|
+
/**
|
|
1327
|
+
* Unique identifier for the task
|
|
1328
|
+
*/
|
|
1329
|
+
id: string;
|
|
1330
|
+
/**
|
|
1331
|
+
* Event type
|
|
1332
|
+
*/
|
|
1333
|
+
kind: "task";
|
|
1334
|
+
/**
|
|
1335
|
+
* Extension metadata.
|
|
1336
|
+
*/
|
|
1337
|
+
metadata?: {
|
|
1338
|
+
[k: string]: unknown;
|
|
1339
|
+
};
|
|
1340
|
+
status: TaskStatus;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Represents a single message exchanged between user and agent.
|
|
1344
|
+
*
|
|
1345
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1346
|
+
* via the `definition` "Message".
|
|
1347
|
+
*/
|
|
1348
|
+
export interface Message1 {
|
|
1349
|
+
/**
|
|
1350
|
+
* The context the message is associated with
|
|
1351
|
+
*/
|
|
1352
|
+
contextId?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* The URIs of extensions that are present or contributed to this Message.
|
|
1355
|
+
*/
|
|
1356
|
+
extensions?: string[];
|
|
1357
|
+
/**
|
|
1358
|
+
* Event type
|
|
1359
|
+
*/
|
|
1360
|
+
kind: "message";
|
|
1361
|
+
/**
|
|
1362
|
+
* Identifier created by the message creator
|
|
1363
|
+
*/
|
|
1364
|
+
messageId: string;
|
|
1365
|
+
/**
|
|
1366
|
+
* Extension metadata.
|
|
1367
|
+
*/
|
|
1368
|
+
metadata?: {
|
|
1369
|
+
[k: string]: unknown;
|
|
1370
|
+
};
|
|
1371
|
+
/**
|
|
1372
|
+
* Message content
|
|
1373
|
+
*/
|
|
1374
|
+
parts: Part[];
|
|
1375
|
+
/**
|
|
1376
|
+
* List of tasks referenced as context by this message.
|
|
1377
|
+
*/
|
|
1378
|
+
referenceTaskIds?: string[];
|
|
1379
|
+
/**
|
|
1380
|
+
* Message sender's role
|
|
1381
|
+
*/
|
|
1382
|
+
role: "agent" | "user";
|
|
1383
|
+
/**
|
|
1384
|
+
* Identifier of task the message is related to
|
|
1385
|
+
*/
|
|
1386
|
+
taskId?: string;
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Current status of the task
|
|
1390
|
+
*/
|
|
1391
|
+
export interface TaskStatus {
|
|
1392
|
+
message?: Message2;
|
|
1393
|
+
state: TaskState;
|
|
1394
|
+
/**
|
|
1395
|
+
* ISO 8601 datetime string when the status was recorded.
|
|
1396
|
+
*/
|
|
1397
|
+
timestamp?: string;
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* Represents a single message exchanged between user and agent.
|
|
1401
|
+
*/
|
|
1402
|
+
export interface Message2 {
|
|
1403
|
+
/**
|
|
1404
|
+
* The context the message is associated with
|
|
1405
|
+
*/
|
|
1406
|
+
contextId?: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* The URIs of extensions that are present or contributed to this Message.
|
|
1409
|
+
*/
|
|
1410
|
+
extensions?: string[];
|
|
1411
|
+
/**
|
|
1412
|
+
* Event type
|
|
1413
|
+
*/
|
|
1414
|
+
kind: "message";
|
|
1415
|
+
/**
|
|
1416
|
+
* Identifier created by the message creator
|
|
1417
|
+
*/
|
|
1418
|
+
messageId: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* Extension metadata.
|
|
1421
|
+
*/
|
|
1422
|
+
metadata?: {
|
|
1423
|
+
[k: string]: unknown;
|
|
1424
|
+
};
|
|
1425
|
+
/**
|
|
1426
|
+
* Message content
|
|
1427
|
+
*/
|
|
1428
|
+
parts: Part[];
|
|
1429
|
+
/**
|
|
1430
|
+
* List of tasks referenced as context by this message.
|
|
1431
|
+
*/
|
|
1432
|
+
referenceTaskIds?: string[];
|
|
1433
|
+
/**
|
|
1434
|
+
* Message sender's role
|
|
1435
|
+
*/
|
|
1436
|
+
role: "agent" | "user";
|
|
1437
|
+
/**
|
|
1438
|
+
* Identifier of task the message is related to
|
|
1439
|
+
*/
|
|
1440
|
+
taskId?: string;
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* Configuration details for a supported OAuth Flow
|
|
1444
|
+
*
|
|
1445
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1446
|
+
* via the `definition` "ClientCredentialsOAuthFlow".
|
|
1447
|
+
*/
|
|
1448
|
+
export interface ClientCredentialsOAuthFlow1 {
|
|
1449
|
+
/**
|
|
1450
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1451
|
+
* standard requires the use of TLS.
|
|
1452
|
+
*/
|
|
1453
|
+
refreshUrl?: string;
|
|
1454
|
+
/**
|
|
1455
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1456
|
+
* description for it. The map MAY be empty.
|
|
1457
|
+
*/
|
|
1458
|
+
scopes: {
|
|
1459
|
+
[k: string]: string;
|
|
1460
|
+
};
|
|
1461
|
+
/**
|
|
1462
|
+
* The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
|
|
1463
|
+
* requires the use of TLS.
|
|
1464
|
+
*/
|
|
1465
|
+
tokenUrl: string;
|
|
1466
|
+
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Represents the base entity for FileParts
|
|
1469
|
+
*
|
|
1470
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1471
|
+
* via the `definition` "FileBase".
|
|
1472
|
+
*/
|
|
1473
|
+
export interface FileBase {
|
|
1474
|
+
/**
|
|
1475
|
+
* Optional mimeType for the file
|
|
1476
|
+
*/
|
|
1477
|
+
mimeType?: string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Optional name for the file
|
|
1480
|
+
*/
|
|
1481
|
+
name?: string;
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* JSON-RPC success response model for the 'tasks/pushNotificationConfig/get' method.
|
|
1485
|
+
*
|
|
1486
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1487
|
+
* via the `definition` "GetTaskPushNotificationConfigSuccessResponse".
|
|
1488
|
+
*/
|
|
1489
|
+
export interface GetTaskPushNotificationConfigSuccessResponse {
|
|
1490
|
+
/**
|
|
1491
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1492
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1493
|
+
*/
|
|
1494
|
+
id: string | number | null;
|
|
1495
|
+
/**
|
|
1496
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1497
|
+
*/
|
|
1498
|
+
jsonrpc: "2.0";
|
|
1499
|
+
result: TaskPushNotificationConfig1;
|
|
1500
|
+
}
|
|
1501
|
+
/**
|
|
1502
|
+
* The result object on success.
|
|
1503
|
+
*/
|
|
1504
|
+
export interface TaskPushNotificationConfig1 {
|
|
1505
|
+
pushNotificationConfig: PushNotificationConfig1;
|
|
1506
|
+
/**
|
|
1507
|
+
* Task id.
|
|
1508
|
+
*/
|
|
1509
|
+
taskId: string;
|
|
1510
|
+
}
|
|
1511
|
+
/**
|
|
1512
|
+
* JSON-RPC success response for the 'tasks/get' method.
|
|
1513
|
+
*
|
|
1514
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1515
|
+
* via the `definition` "GetTaskSuccessResponse".
|
|
1516
|
+
*/
|
|
1517
|
+
export interface GetTaskSuccessResponse {
|
|
1518
|
+
/**
|
|
1519
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1520
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1521
|
+
*/
|
|
1522
|
+
id: string | number | null;
|
|
1523
|
+
/**
|
|
1524
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1525
|
+
*/
|
|
1526
|
+
jsonrpc: "2.0";
|
|
1527
|
+
result: Task1;
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* The result object on success.
|
|
1531
|
+
*/
|
|
1532
|
+
export interface Task1 {
|
|
1533
|
+
/**
|
|
1534
|
+
* Collection of artifacts created by the agent.
|
|
1535
|
+
*/
|
|
1536
|
+
artifacts?: Artifact[];
|
|
1537
|
+
/**
|
|
1538
|
+
* Server-generated id for contextual alignment across interactions
|
|
1539
|
+
*/
|
|
1540
|
+
contextId: string;
|
|
1541
|
+
history?: Message1[];
|
|
1542
|
+
/**
|
|
1543
|
+
* Unique identifier for the task
|
|
1544
|
+
*/
|
|
1545
|
+
id: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* Event type
|
|
1548
|
+
*/
|
|
1549
|
+
kind: "task";
|
|
1550
|
+
/**
|
|
1551
|
+
* Extension metadata.
|
|
1552
|
+
*/
|
|
1553
|
+
metadata?: {
|
|
1554
|
+
[k: string]: unknown;
|
|
1555
|
+
};
|
|
1556
|
+
status: TaskStatus;
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* Configuration details for a supported OAuth Flow
|
|
1560
|
+
*
|
|
1561
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1562
|
+
* via the `definition` "ImplicitOAuthFlow".
|
|
1563
|
+
*/
|
|
1564
|
+
export interface ImplicitOAuthFlow1 {
|
|
1565
|
+
/**
|
|
1566
|
+
* The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
|
|
1567
|
+
* standard requires the use of TLS
|
|
1568
|
+
*/
|
|
1569
|
+
authorizationUrl: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1572
|
+
* standard requires the use of TLS.
|
|
1573
|
+
*/
|
|
1574
|
+
refreshUrl?: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1577
|
+
* description for it. The map MAY be empty.
|
|
1578
|
+
*/
|
|
1579
|
+
scopes: {
|
|
1580
|
+
[k: string]: string;
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Base interface for any JSON-RPC 2.0 request or response.
|
|
1585
|
+
*
|
|
1586
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1587
|
+
* via the `definition` "JSONRPCMessage".
|
|
1588
|
+
*/
|
|
1589
|
+
export interface JSONRPCMessage {
|
|
1590
|
+
/**
|
|
1591
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1592
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1593
|
+
*/
|
|
1594
|
+
id?: string | number | null;
|
|
1595
|
+
/**
|
|
1596
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1597
|
+
*/
|
|
1598
|
+
jsonrpc: "2.0";
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Represents a JSON-RPC 2.0 Request object.
|
|
1602
|
+
*
|
|
1603
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1604
|
+
* via the `definition` "JSONRPCRequest".
|
|
1605
|
+
*/
|
|
1606
|
+
export interface JSONRPCRequest {
|
|
1607
|
+
/**
|
|
1608
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1609
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1610
|
+
*/
|
|
1611
|
+
id?: string | number | null;
|
|
1612
|
+
/**
|
|
1613
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1614
|
+
*/
|
|
1615
|
+
jsonrpc: "2.0";
|
|
1616
|
+
/**
|
|
1617
|
+
* A String containing the name of the method to be invoked.
|
|
1618
|
+
*/
|
|
1619
|
+
method: string;
|
|
1620
|
+
/**
|
|
1621
|
+
* A Structured value that holds the parameter values to be used during the invocation of the method.
|
|
1622
|
+
*/
|
|
1623
|
+
params?: {
|
|
1624
|
+
[k: string]: unknown;
|
|
1625
|
+
};
|
|
1626
|
+
}
|
|
1627
|
+
/**
|
|
1628
|
+
* JSON-RPC success response model for the 'message/send' method.
|
|
1629
|
+
*
|
|
1630
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1631
|
+
* via the `definition` "SendMessageSuccessResponse".
|
|
1632
|
+
*/
|
|
1633
|
+
export interface SendMessageSuccessResponse {
|
|
1634
|
+
/**
|
|
1635
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1636
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1637
|
+
*/
|
|
1638
|
+
id: string | number | null;
|
|
1639
|
+
/**
|
|
1640
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1641
|
+
*/
|
|
1642
|
+
jsonrpc: "2.0";
|
|
1643
|
+
/**
|
|
1644
|
+
* The result object on success
|
|
1645
|
+
*/
|
|
1646
|
+
result: Task2 | Message1;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1650
|
+
* via the `definition` "Task".
|
|
1651
|
+
*/
|
|
1652
|
+
export interface Task2 {
|
|
1653
|
+
/**
|
|
1654
|
+
* Collection of artifacts created by the agent.
|
|
1655
|
+
*/
|
|
1656
|
+
artifacts?: Artifact[];
|
|
1657
|
+
/**
|
|
1658
|
+
* Server-generated id for contextual alignment across interactions
|
|
1659
|
+
*/
|
|
1660
|
+
contextId: string;
|
|
1661
|
+
history?: Message1[];
|
|
1662
|
+
/**
|
|
1663
|
+
* Unique identifier for the task
|
|
1664
|
+
*/
|
|
1665
|
+
id: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Event type
|
|
1668
|
+
*/
|
|
1669
|
+
kind: "task";
|
|
1670
|
+
/**
|
|
1671
|
+
* Extension metadata.
|
|
1672
|
+
*/
|
|
1673
|
+
metadata?: {
|
|
1674
|
+
[k: string]: unknown;
|
|
1675
|
+
};
|
|
1676
|
+
status: TaskStatus;
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* JSON-RPC success response model for the 'message/stream' method.
|
|
1680
|
+
*
|
|
1681
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1682
|
+
* via the `definition` "SendStreamingMessageSuccessResponse".
|
|
1683
|
+
*/
|
|
1684
|
+
export interface SendStreamingMessageSuccessResponse {
|
|
1685
|
+
/**
|
|
1686
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1687
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1688
|
+
*/
|
|
1689
|
+
id: string | number | null;
|
|
1690
|
+
/**
|
|
1691
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1692
|
+
*/
|
|
1693
|
+
jsonrpc: "2.0";
|
|
1694
|
+
/**
|
|
1695
|
+
* The result object on success
|
|
1696
|
+
*/
|
|
1697
|
+
result: Task2 | Message1 | TaskStatusUpdateEvent | TaskArtifactUpdateEvent;
|
|
1698
|
+
}
|
|
1699
|
+
/**
|
|
1700
|
+
* Sent by server during sendStream or subscribe requests
|
|
1701
|
+
*
|
|
1702
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1703
|
+
* via the `definition` "TaskStatusUpdateEvent".
|
|
1704
|
+
*/
|
|
1705
|
+
export interface TaskStatusUpdateEvent {
|
|
1706
|
+
/**
|
|
1707
|
+
* The context the task is associated with
|
|
1708
|
+
*/
|
|
1709
|
+
contextId: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* Indicates the end of the event stream
|
|
1712
|
+
*/
|
|
1713
|
+
final: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* Event type
|
|
1716
|
+
*/
|
|
1717
|
+
kind: "status-update";
|
|
1718
|
+
/**
|
|
1719
|
+
* Extension metadata.
|
|
1720
|
+
*/
|
|
1721
|
+
metadata?: {
|
|
1722
|
+
[k: string]: unknown;
|
|
1723
|
+
};
|
|
1724
|
+
status: TaskStatus1;
|
|
1725
|
+
/**
|
|
1726
|
+
* Task id
|
|
1727
|
+
*/
|
|
1728
|
+
taskId: string;
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Current status of the task
|
|
1732
|
+
*/
|
|
1733
|
+
export interface TaskStatus1 {
|
|
1734
|
+
message?: Message2;
|
|
1735
|
+
state: TaskState;
|
|
1736
|
+
/**
|
|
1737
|
+
* ISO 8601 datetime string when the status was recorded.
|
|
1738
|
+
*/
|
|
1739
|
+
timestamp?: string;
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* Sent by server during sendStream or subscribe requests
|
|
1743
|
+
*
|
|
1744
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1745
|
+
* via the `definition` "TaskArtifactUpdateEvent".
|
|
1746
|
+
*/
|
|
1747
|
+
export interface TaskArtifactUpdateEvent {
|
|
1748
|
+
/**
|
|
1749
|
+
* Indicates if this artifact appends to a previous one
|
|
1750
|
+
*/
|
|
1751
|
+
append?: boolean;
|
|
1752
|
+
artifact: Artifact1;
|
|
1753
|
+
/**
|
|
1754
|
+
* The context the task is associated with
|
|
1755
|
+
*/
|
|
1756
|
+
contextId: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* Event type
|
|
1759
|
+
*/
|
|
1760
|
+
kind: "artifact-update";
|
|
1761
|
+
/**
|
|
1762
|
+
* Indicates if this is the last chunk of the artifact
|
|
1763
|
+
*/
|
|
1764
|
+
lastChunk?: boolean;
|
|
1765
|
+
/**
|
|
1766
|
+
* Extension metadata.
|
|
1767
|
+
*/
|
|
1768
|
+
metadata?: {
|
|
1769
|
+
[k: string]: unknown;
|
|
1770
|
+
};
|
|
1771
|
+
/**
|
|
1772
|
+
* Task id
|
|
1773
|
+
*/
|
|
1774
|
+
taskId: string;
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Represents an artifact generated for a task.
|
|
1778
|
+
*/
|
|
1779
|
+
export interface Artifact1 {
|
|
1780
|
+
/**
|
|
1781
|
+
* Unique identifier for the artifact.
|
|
1782
|
+
*/
|
|
1783
|
+
artifactId: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* Optional description for the artifact.
|
|
1786
|
+
*/
|
|
1787
|
+
description?: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* The URIs of extensions that are present or contributed to this Artifact.
|
|
1790
|
+
*/
|
|
1791
|
+
extensions?: string[];
|
|
1792
|
+
/**
|
|
1793
|
+
* Extension metadata.
|
|
1794
|
+
*/
|
|
1795
|
+
metadata?: {
|
|
1796
|
+
[k: string]: unknown;
|
|
1797
|
+
};
|
|
1798
|
+
/**
|
|
1799
|
+
* Optional name for the artifact.
|
|
1800
|
+
*/
|
|
1801
|
+
name?: string;
|
|
1802
|
+
/**
|
|
1803
|
+
* Artifact parts.
|
|
1804
|
+
*/
|
|
1805
|
+
parts: Part[];
|
|
1806
|
+
}
|
|
1807
|
+
/**
|
|
1808
|
+
* JSON-RPC success response model for the 'tasks/pushNotificationConfig/set' method.
|
|
1809
|
+
*
|
|
1810
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1811
|
+
* via the `definition` "SetTaskPushNotificationConfigSuccessResponse".
|
|
1812
|
+
*/
|
|
1813
|
+
export interface SetTaskPushNotificationConfigSuccessResponse {
|
|
1814
|
+
/**
|
|
1815
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1816
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1817
|
+
*/
|
|
1818
|
+
id: string | number | null;
|
|
1819
|
+
/**
|
|
1820
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1821
|
+
*/
|
|
1822
|
+
jsonrpc: "2.0";
|
|
1823
|
+
result: TaskPushNotificationConfig2;
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* The result object on success.
|
|
1827
|
+
*/
|
|
1828
|
+
export interface TaskPushNotificationConfig2 {
|
|
1829
|
+
pushNotificationConfig: PushNotificationConfig1;
|
|
1830
|
+
/**
|
|
1831
|
+
* Task id.
|
|
1832
|
+
*/
|
|
1833
|
+
taskId: string;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Represents a JSON-RPC 2.0 Success Response object.
|
|
1837
|
+
*
|
|
1838
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1839
|
+
* via the `definition` "JSONRPCSuccessResponse".
|
|
1840
|
+
*/
|
|
1841
|
+
export interface JSONRPCSuccessResponse {
|
|
1842
|
+
/**
|
|
1843
|
+
* An identifier established by the Client that MUST contain a String, Number.
|
|
1844
|
+
* Numbers SHOULD NOT contain fractional parts.
|
|
1845
|
+
*/
|
|
1846
|
+
id: string | number | null;
|
|
1847
|
+
/**
|
|
1848
|
+
* Specifies the version of the JSON-RPC protocol. MUST be exactly "2.0".
|
|
1849
|
+
*/
|
|
1850
|
+
jsonrpc: "2.0";
|
|
1851
|
+
/**
|
|
1852
|
+
* The result object on success
|
|
1853
|
+
*/
|
|
1854
|
+
result: {
|
|
1855
|
+
[k: string]: unknown;
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
/**
|
|
1859
|
+
* Configuration for the send message request.
|
|
1860
|
+
*
|
|
1861
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1862
|
+
* via the `definition` "MessageSendConfiguration".
|
|
1863
|
+
*/
|
|
1864
|
+
export interface MessageSendConfiguration1 {
|
|
1865
|
+
/**
|
|
1866
|
+
* Accepted output modalities by the client.
|
|
1867
|
+
*/
|
|
1868
|
+
acceptedOutputModes: string[];
|
|
1869
|
+
/**
|
|
1870
|
+
* If the server should treat the client as a blocking request.
|
|
1871
|
+
*/
|
|
1872
|
+
blocking?: boolean;
|
|
1873
|
+
/**
|
|
1874
|
+
* Number of recent messages to be retrieved.
|
|
1875
|
+
*/
|
|
1876
|
+
historyLength?: number;
|
|
1877
|
+
pushNotificationConfig?: PushNotificationConfig;
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* Sent by the client to the agent as a request. May create, continue or restart a task.
|
|
1881
|
+
*
|
|
1882
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1883
|
+
* via the `definition` "MessageSendParams".
|
|
1884
|
+
*/
|
|
1885
|
+
export interface MessageSendParams2 {
|
|
1886
|
+
configuration?: MessageSendConfiguration;
|
|
1887
|
+
message: Message;
|
|
1888
|
+
/**
|
|
1889
|
+
* Extension metadata.
|
|
1890
|
+
*/
|
|
1891
|
+
metadata?: {
|
|
1892
|
+
[k: string]: unknown;
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1895
|
+
/**
|
|
1896
|
+
* Allows configuration of the supported OAuth Flows
|
|
1897
|
+
*
|
|
1898
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1899
|
+
* via the `definition` "OAuthFlows".
|
|
1900
|
+
*/
|
|
1901
|
+
export interface OAuthFlows1 {
|
|
1902
|
+
authorizationCode?: AuthorizationCodeOAuthFlow;
|
|
1903
|
+
clientCredentials?: ClientCredentialsOAuthFlow;
|
|
1904
|
+
implicit?: ImplicitOAuthFlow;
|
|
1905
|
+
password?: PasswordOAuthFlow;
|
|
1906
|
+
}
|
|
1907
|
+
/**
|
|
1908
|
+
* Base properties common to all message parts.
|
|
1909
|
+
*
|
|
1910
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1911
|
+
* via the `definition` "PartBase".
|
|
1912
|
+
*/
|
|
1913
|
+
export interface PartBase {
|
|
1914
|
+
/**
|
|
1915
|
+
* Optional metadata associated with the part.
|
|
1916
|
+
*/
|
|
1917
|
+
metadata?: {
|
|
1918
|
+
[k: string]: unknown;
|
|
1919
|
+
};
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* Configuration details for a supported OAuth Flow
|
|
1923
|
+
*
|
|
1924
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1925
|
+
* via the `definition` "PasswordOAuthFlow".
|
|
1926
|
+
*/
|
|
1927
|
+
export interface PasswordOAuthFlow1 {
|
|
1928
|
+
/**
|
|
1929
|
+
* The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
|
|
1930
|
+
* standard requires the use of TLS.
|
|
1931
|
+
*/
|
|
1932
|
+
refreshUrl?: string;
|
|
1933
|
+
/**
|
|
1934
|
+
* The available scopes for the OAuth2 security scheme. A map between the scope name and a short
|
|
1935
|
+
* description for it. The map MAY be empty.
|
|
1936
|
+
*/
|
|
1937
|
+
scopes: {
|
|
1938
|
+
[k: string]: string;
|
|
1939
|
+
};
|
|
1940
|
+
/**
|
|
1941
|
+
* The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
|
|
1942
|
+
* requires the use of TLS.
|
|
1943
|
+
*/
|
|
1944
|
+
tokenUrl: string;
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* Configuration for setting up push notifications for task updates.
|
|
1948
|
+
*
|
|
1949
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1950
|
+
* via the `definition` "PushNotificationConfig".
|
|
1951
|
+
*/
|
|
1952
|
+
export interface PushNotificationConfig2 {
|
|
1953
|
+
authentication?: PushNotificationAuthenticationInfo;
|
|
1954
|
+
/**
|
|
1955
|
+
* Push Notification ID - created by server to support multiple callbacks
|
|
1956
|
+
*/
|
|
1957
|
+
id?: string;
|
|
1958
|
+
/**
|
|
1959
|
+
* Token unique to this task/session.
|
|
1960
|
+
*/
|
|
1961
|
+
token?: string;
|
|
1962
|
+
/**
|
|
1963
|
+
* URL for sending the push notifications.
|
|
1964
|
+
*/
|
|
1965
|
+
url: string;
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* Base properties shared by all security schemes.
|
|
1969
|
+
*
|
|
1970
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1971
|
+
* via the `definition` "SecuritySchemeBase".
|
|
1972
|
+
*/
|
|
1973
|
+
export interface SecuritySchemeBase {
|
|
1974
|
+
/**
|
|
1975
|
+
* Description of this security scheme.
|
|
1976
|
+
*/
|
|
1977
|
+
description?: string;
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Parameters containing only a task ID, used for simple task operations.
|
|
1981
|
+
*
|
|
1982
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1983
|
+
* via the `definition` "TaskIdParams".
|
|
1984
|
+
*/
|
|
1985
|
+
export interface TaskIdParams3 {
|
|
1986
|
+
/**
|
|
1987
|
+
* Task id.
|
|
1988
|
+
*/
|
|
1989
|
+
id: string;
|
|
1990
|
+
metadata?: {
|
|
1991
|
+
[k: string]: unknown;
|
|
1992
|
+
};
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* Parameters for setting or getting push notification configuration for a task
|
|
1996
|
+
*
|
|
1997
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
1998
|
+
* via the `definition` "TaskPushNotificationConfig".
|
|
1999
|
+
*/
|
|
2000
|
+
export interface TaskPushNotificationConfig3 {
|
|
2001
|
+
pushNotificationConfig: PushNotificationConfig1;
|
|
2002
|
+
/**
|
|
2003
|
+
* Task id.
|
|
2004
|
+
*/
|
|
2005
|
+
taskId: string;
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* Parameters for querying a task, including optional history length.
|
|
2009
|
+
*
|
|
2010
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
2011
|
+
* via the `definition` "TaskQueryParams".
|
|
2012
|
+
*/
|
|
2013
|
+
export interface TaskQueryParams1 {
|
|
2014
|
+
/**
|
|
2015
|
+
* Number of recent messages to be retrieved.
|
|
2016
|
+
*/
|
|
2017
|
+
historyLength?: number;
|
|
2018
|
+
/**
|
|
2019
|
+
* Task id.
|
|
2020
|
+
*/
|
|
2021
|
+
id: string;
|
|
2022
|
+
metadata?: {
|
|
2023
|
+
[k: string]: unknown;
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* TaskState and accompanying message.
|
|
2028
|
+
*
|
|
2029
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
2030
|
+
* via the `definition` "TaskStatus".
|
|
2031
|
+
*/
|
|
2032
|
+
export interface TaskStatus2 {
|
|
2033
|
+
message?: Message2;
|
|
2034
|
+
state: TaskState;
|
|
2035
|
+
/**
|
|
2036
|
+
* ISO 8601 datetime string when the status was recorded.
|
|
2037
|
+
*/
|
|
2038
|
+
timestamp?: string;
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* Represents the possible states of a Task.
|
|
2042
|
+
*
|
|
2043
|
+
* This interface was referenced by `MySchema`'s JSON-Schema
|
|
2044
|
+
* via the `definition` "TaskState".
|
|
2045
|
+
*/
|
|
2046
|
+
export declare enum TaskState {
|
|
2047
|
+
Submitted = "submitted",
|
|
2048
|
+
Working = "working",
|
|
2049
|
+
InputRequired = "input-required",
|
|
2050
|
+
Completed = "completed",
|
|
2051
|
+
Canceled = "canceled",
|
|
2052
|
+
Failed = "failed",
|
|
2053
|
+
Rejected = "rejected",
|
|
2054
|
+
AuthRequired = "auth-required",
|
|
2055
|
+
Unknown = "unknown"
|
|
2056
|
+
}
|
|
2057
|
+
//# sourceMappingURL=ref.d.ts.map
|