@artinet/sdk 0.5.6 → 0.5.7

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 (117) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +73 -0
  3. package/dist/services/a2a/factory/builder.js +1 -1
  4. package/dist/services/a2a/factory/event.js +1 -1
  5. package/dist/services/a2a/service.js +2 -5
  6. package/dist/services/a2a/service.js.map +1 -1
  7. package/dist/services/index.js +1 -0
  8. package/dist/services/index.js.map +1 -1
  9. package/dist/services/mcp/index.js +2 -0
  10. package/dist/services/mcp/index.js.map +1 -0
  11. package/dist/services/mcp/service.js +123 -0
  12. package/dist/services/mcp/service.js.map +1 -0
  13. package/dist/transport/trpc/a2a/routes/tasks/route.js +1 -1
  14. package/dist/transport/trpc/a2a/routes/tasks/route.js.map +1 -1
  15. package/dist/types/interfaces/services/a2a/builder.js +4 -0
  16. package/dist/types/interfaces/services/a2a/builder.js.map +1 -1
  17. package/dist/types/interfaces/services/index.js +1 -0
  18. package/dist/types/interfaces/services/index.js.map +1 -1
  19. package/dist/types/interfaces/services/mcp/index.js +2 -0
  20. package/dist/types/interfaces/services/mcp/index.js.map +1 -0
  21. package/dist/types/interfaces/services/mcp/service.js +6 -0
  22. package/dist/types/interfaces/services/mcp/service.js.map +1 -0
  23. package/dist/types/schemas/a2a/agent.js +9 -3
  24. package/dist/types/schemas/a2a/agent.js.map +1 -1
  25. package/dist/types/schemas/a2a/auth.js +11 -1
  26. package/dist/types/schemas/a2a/auth.js.map +1 -1
  27. package/dist/types/schemas/a2a/error.js +1 -1
  28. package/dist/types/schemas/a2a/error.js.map +1 -1
  29. package/dist/types/schemas/a2a/kind.js +1 -1
  30. package/dist/types/schemas/a2a/kind.js.map +1 -1
  31. package/dist/types/schemas/a2a/message.js +1 -1
  32. package/dist/types/schemas/a2a/message.js.map +1 -1
  33. package/dist/types/schemas/a2a/notification.js +2 -1
  34. package/dist/types/schemas/a2a/notification.js.map +1 -1
  35. package/dist/types/schemas/a2a/parameters.js +1 -1
  36. package/dist/types/schemas/a2a/parameters.js.map +1 -1
  37. package/dist/types/schemas/a2a/protocol.js +1 -1
  38. package/dist/types/schemas/a2a/protocol.js.map +1 -1
  39. package/dist/types/schemas/a2a/rpc.js +1 -1
  40. package/dist/types/schemas/a2a/rpc.js.map +1 -1
  41. package/dist/types/schemas/a2a/task.js +1 -1
  42. package/dist/types/schemas/a2a/task.js.map +1 -1
  43. package/dist/types/schemas/a2a/transport.js +2 -1
  44. package/dist/types/schemas/a2a/transport.js.map +1 -1
  45. package/dist/types/schemas/deployment/request.js +2 -2
  46. package/dist/types/schemas/deployment/request.js.map +1 -1
  47. package/dist/types/server/express/server.d.ts +7 -7
  48. package/dist/types/services/a2a/factory/builder.d.ts +8 -8
  49. package/dist/types/services/a2a/factory/context.d.ts +1 -1
  50. package/dist/types/services/a2a/factory/event.d.ts +1 -1
  51. package/dist/types/services/a2a/methods/get-task.d.ts +17 -17
  52. package/dist/types/services/a2a/service.d.ts +57 -58
  53. package/dist/types/services/a2a/service.d.ts.map +1 -1
  54. package/dist/types/services/index.d.ts +1 -0
  55. package/dist/types/services/index.d.ts.map +1 -1
  56. package/dist/types/services/mcp/index.d.ts +2 -0
  57. package/dist/types/services/mcp/index.d.ts.map +1 -0
  58. package/dist/types/services/mcp/service.d.ts +31 -0
  59. package/dist/types/services/mcp/service.d.ts.map +1 -0
  60. package/dist/types/transport/trpc/a2a/factory/router.d.ts +370 -370
  61. package/dist/types/transport/trpc/a2a/routes/info.d.ts +15 -15
  62. package/dist/types/transport/trpc/a2a/routes/message/route.d.ts +79 -79
  63. package/dist/types/transport/trpc/a2a/routes/tasks/route.d.ts +84 -84
  64. package/dist/types/transport/trpc/a2a/trpc.d.ts +35 -35
  65. package/dist/types/types/interfaces/services/a2a/builder.d.ts +4 -0
  66. package/dist/types/types/interfaces/services/a2a/builder.d.ts.map +1 -1
  67. package/dist/types/types/interfaces/services/a2a/context.d.ts +1 -1
  68. package/dist/types/types/interfaces/services/a2a/service.d.ts +1 -1
  69. package/dist/types/types/interfaces/services/core/context/context.d.ts +1 -1
  70. package/dist/types/types/interfaces/services/core/context/types.d.ts.map +1 -1
  71. package/dist/types/types/interfaces/services/core/execution/engine.d.ts +1 -1
  72. package/dist/types/types/interfaces/services/core/managers/event.d.ts +1 -1
  73. package/dist/types/types/interfaces/services/core/managers/stream.d.ts +1 -1
  74. package/dist/types/types/interfaces/services/core/service.d.ts +1 -1
  75. package/dist/types/types/interfaces/services/index.d.ts +1 -0
  76. package/dist/types/types/interfaces/services/index.d.ts.map +1 -1
  77. package/dist/types/types/interfaces/services/mcp/index.d.ts +2 -0
  78. package/dist/types/types/interfaces/services/mcp/index.d.ts.map +1 -0
  79. package/dist/types/types/interfaces/services/mcp/service.d.ts +50 -0
  80. package/dist/types/types/interfaces/services/mcp/service.d.ts.map +1 -0
  81. package/dist/types/types/schemas/a2a/agent.d.ts +2371 -296
  82. package/dist/types/types/schemas/a2a/agent.d.ts.map +1 -1
  83. package/dist/types/types/schemas/a2a/auth.d.ts +795 -171
  84. package/dist/types/types/schemas/a2a/auth.d.ts.map +1 -1
  85. package/dist/types/types/schemas/a2a/error.d.ts +243 -27
  86. package/dist/types/types/schemas/a2a/error.d.ts.map +1 -1
  87. package/dist/types/types/schemas/a2a/kind.d.ts +3 -19
  88. package/dist/types/types/schemas/a2a/kind.d.ts.map +1 -1
  89. package/dist/types/types/schemas/a2a/message.d.ts +9580 -1806
  90. package/dist/types/types/schemas/a2a/message.d.ts.map +1 -1
  91. package/dist/types/types/schemas/a2a/notification.d.ts +1283 -103
  92. package/dist/types/types/schemas/a2a/notification.d.ts.map +1 -1
  93. package/dist/types/types/schemas/a2a/parameters.d.ts +814 -165
  94. package/dist/types/types/schemas/a2a/parameters.d.ts.map +1 -1
  95. package/dist/types/types/schemas/a2a/protocol.d.ts +13378 -2221
  96. package/dist/types/types/schemas/a2a/protocol.d.ts.map +1 -1
  97. package/dist/types/types/schemas/a2a/rpc.d.ts +137 -11
  98. package/dist/types/types/schemas/a2a/rpc.d.ts.map +1 -1
  99. package/dist/types/types/schemas/a2a/task.d.ts +5409 -1020
  100. package/dist/types/types/schemas/a2a/task.d.ts.map +1 -1
  101. package/dist/types/types/schemas/a2a/transport.d.ts +17 -13
  102. package/dist/types/types/schemas/a2a/transport.d.ts.map +1 -1
  103. package/dist/types/types/schemas/deployment/request.d.ts +2639 -299
  104. package/dist/types/types/schemas/deployment/request.d.ts.map +1 -1
  105. package/dist/types/utils/common/zAsyncIterable-v3.d.ts +25 -0
  106. package/dist/types/utils/common/zAsyncIterable-v3.d.ts.map +1 -0
  107. package/dist/types/utils/common/zAsyncIterable.d.ts.map +1 -1
  108. package/dist/types/utils/deployment/full-deployment.d.ts +2 -2
  109. package/dist/types/utils/index.d.ts +1 -1
  110. package/dist/types/utils/index.d.ts.map +1 -1
  111. package/dist/utils/common/zAsyncIterable-v3.js +39 -0
  112. package/dist/utils/common/zAsyncIterable-v3.js.map +1 -0
  113. package/dist/utils/common/zAsyncIterable.js +1 -0
  114. package/dist/utils/common/zAsyncIterable.js.map +1 -1
  115. package/dist/utils/index.js +1 -1
  116. package/dist/utils/index.js.map +1 -1
  117. package/package.json +4 -4
@@ -2,24 +2,54 @@
2
2
  * Copyright 2025 The Artinet Project
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { z } from "zod/v4";
5
+ import { z } from "zod";
6
6
  /**
7
7
  * Defines parameters for fetching a specific push notification configuration for a task.
8
8
  */
9
9
  export declare const GetTaskPushNotificationConfigParamSchema: z.ZodObject<{
10
10
  id: z.ZodString;
11
11
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
12
+ } & {
13
+ /**
14
+ * @optional The ID of the push notification configuration to retrieve.
15
+ */
12
16
  pushNotificationConfigId: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ metadata?: Record<string, unknown> | undefined;
20
+ pushNotificationConfigId?: string | undefined;
21
+ }, {
22
+ id: string;
23
+ metadata?: Record<string, unknown> | undefined;
24
+ pushNotificationConfigId?: string | undefined;
25
+ }>;
14
26
  export type GetTaskPushNotificationConfigParam = z.infer<typeof GetTaskPushNotificationConfigParamSchema>;
15
- export declare const GetTaskPushNotificationConfigParamsSchema: z.ZodUnion<readonly [z.ZodObject<{
27
+ export declare const GetTaskPushNotificationConfigParamsSchema: z.ZodUnion<[z.ZodObject<{
16
28
  id: z.ZodString;
17
29
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
30
+ } & {
31
+ /**
32
+ * @optional The ID of the push notification configuration to retrieve.
33
+ */
18
34
  pushNotificationConfigId: z.ZodOptional<z.ZodString>;
19
- }, z.core.$strip>, z.ZodObject<{
35
+ }, "strip", z.ZodTypeAny, {
36
+ id: string;
37
+ metadata?: Record<string, unknown> | undefined;
38
+ pushNotificationConfigId?: string | undefined;
39
+ }, {
40
+ id: string;
41
+ metadata?: Record<string, unknown> | undefined;
42
+ pushNotificationConfigId?: string | undefined;
43
+ }>, z.ZodObject<{
20
44
  id: z.ZodString;
21
45
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
22
- }, z.core.$strip>]>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ id: string;
48
+ metadata?: Record<string, unknown> | undefined;
49
+ }, {
50
+ id: string;
51
+ metadata?: Record<string, unknown> | undefined;
52
+ }>]>;
23
53
  export type GetTaskPushNotificationConfigParams = z.infer<typeof GetTaskPushNotificationConfigParamsSchema>;
24
54
  /**
25
55
  * Defines parameters for listing all push notification configurations for a task.
@@ -27,7 +57,13 @@ export type GetTaskPushNotificationConfigParams = z.infer<typeof GetTaskPushNoti
27
57
  export declare const ListTaskPushNotificationConfigsParamsSchema: z.ZodObject<{
28
58
  id: z.ZodString;
29
59
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
30
- }, z.core.$strip>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ id: string;
62
+ metadata?: Record<string, unknown> | undefined;
63
+ }, {
64
+ id: string;
65
+ metadata?: Record<string, unknown> | undefined;
66
+ }>;
31
67
  export type ListTaskPushNotificationConfigsParams = z.infer<typeof ListTaskPushNotificationConfigsParamsSchema>;
32
68
  /**
33
69
  * Defines parameters for deleting a specific push notification configuration for a task.
@@ -35,304 +71,1448 @@ export type ListTaskPushNotificationConfigsParams = z.infer<typeof ListTaskPushN
35
71
  export declare const DeleteTaskPushNotificationConfigParamsSchema: z.ZodObject<{
36
72
  id: z.ZodString;
37
73
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
74
+ } & {
75
+ /**
76
+ * @required The ID of the push notification configuration to delete.
77
+ */
38
78
  pushNotificationConfigId: z.ZodString;
39
- }, z.core.$strip>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ id: string;
81
+ pushNotificationConfigId: string;
82
+ metadata?: Record<string, unknown> | undefined;
83
+ }, {
84
+ id: string;
85
+ pushNotificationConfigId: string;
86
+ metadata?: Record<string, unknown> | undefined;
87
+ }>;
40
88
  export type DeleteTaskPushNotificationConfigParams = z.infer<typeof DeleteTaskPushNotificationConfigParamsSchema>;
41
89
  /**
42
90
  * @description Defines authentication details for a push notification endpoint.
43
91
  */
44
92
  export declare const PushNotificationAuthenticationInfoSchema: z.ZodObject<{
45
- schemes: z.ZodArray<z.ZodString>;
93
+ /**
94
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
95
+ */
96
+ schemes: z.ZodArray<z.ZodString, "many">;
97
+ /**
98
+ * @optional Optional credentials required by the push notification endpoint.
99
+ */
46
100
  credentials: z.ZodOptional<z.ZodString>;
47
- }, z.core.$strip>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ schemes: string[];
103
+ credentials?: string | undefined;
104
+ }, {
105
+ schemes: string[];
106
+ credentials?: string | undefined;
107
+ }>;
48
108
  export type PushNotificationAuthenticationInfo = z.infer<typeof PushNotificationAuthenticationInfoSchema>;
49
109
  /**
50
110
  * @description Defines the configuration for setting up push notifications for task updates.
51
111
  */
52
112
  export declare const PushNotificationConfigSchema: z.ZodObject<{
113
+ /**
114
+ * @optional A unique ID for the push notification configuration, created by the server
115
+ * to support multiple notification callbacks.
116
+ */
53
117
  id: z.ZodOptional<z.ZodString>;
54
- url: z.ZodURL;
118
+ /**
119
+ * @required The callback URL where the agent should send push notifications.
120
+ */
121
+ url: z.ZodString;
122
+ /**
123
+ * @optional A unique token for this task or session to validate incoming push notifications.
124
+ */
55
125
  token: z.ZodOptional<z.ZodString>;
126
+ /**
127
+ * @optional Authentication details for the agent to use when calling the notification URL.
128
+ */
56
129
  authentication: z.ZodOptional<z.ZodObject<{
57
- schemes: z.ZodArray<z.ZodString>;
130
+ /**
131
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
132
+ */
133
+ schemes: z.ZodArray<z.ZodString, "many">;
134
+ /**
135
+ * @optional Optional credentials required by the push notification endpoint.
136
+ */
58
137
  credentials: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strip>>;
60
- }, z.core.$strip>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ schemes: string[];
140
+ credentials?: string | undefined;
141
+ }, {
142
+ schemes: string[];
143
+ credentials?: string | undefined;
144
+ }>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ url: string;
147
+ id?: string | undefined;
148
+ token?: string | undefined;
149
+ authentication?: {
150
+ schemes: string[];
151
+ credentials?: string | undefined;
152
+ } | undefined;
153
+ }, {
154
+ url: string;
155
+ id?: string | undefined;
156
+ token?: string | undefined;
157
+ authentication?: {
158
+ schemes: string[];
159
+ credentials?: string | undefined;
160
+ } | undefined;
161
+ }>;
61
162
  export type PushNotificationConfig = z.infer<typeof PushNotificationConfigSchema>;
62
163
  /**
63
164
  * @description A container associating a push notification configuration with a specific task.
64
165
  */
65
166
  export declare const TaskPushNotificationConfigSchema: z.ZodObject<{
167
+ /**
168
+ * @required The ID of the task to associate with the push notification configuration.
169
+ */
66
170
  taskId: z.ZodString;
171
+ /**
172
+ * @required The push notification configuration to associate with the task.
173
+ */
67
174
  pushNotificationConfig: z.ZodObject<{
175
+ /**
176
+ * @optional A unique ID for the push notification configuration, created by the server
177
+ * to support multiple notification callbacks.
178
+ */
68
179
  id: z.ZodOptional<z.ZodString>;
69
- url: z.ZodURL;
180
+ /**
181
+ * @required The callback URL where the agent should send push notifications.
182
+ */
183
+ url: z.ZodString;
184
+ /**
185
+ * @optional A unique token for this task or session to validate incoming push notifications.
186
+ */
70
187
  token: z.ZodOptional<z.ZodString>;
188
+ /**
189
+ * @optional Authentication details for the agent to use when calling the notification URL.
190
+ */
71
191
  authentication: z.ZodOptional<z.ZodObject<{
72
- schemes: z.ZodArray<z.ZodString>;
192
+ /**
193
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
194
+ */
195
+ schemes: z.ZodArray<z.ZodString, "many">;
196
+ /**
197
+ * @optional Optional credentials required by the push notification endpoint.
198
+ */
73
199
  credentials: z.ZodOptional<z.ZodString>;
74
- }, z.core.$strip>>;
75
- }, z.core.$strip>;
76
- }, z.core.$strip>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ schemes: string[];
202
+ credentials?: string | undefined;
203
+ }, {
204
+ schemes: string[];
205
+ credentials?: string | undefined;
206
+ }>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ url: string;
209
+ id?: string | undefined;
210
+ token?: string | undefined;
211
+ authentication?: {
212
+ schemes: string[];
213
+ credentials?: string | undefined;
214
+ } | undefined;
215
+ }, {
216
+ url: string;
217
+ id?: string | undefined;
218
+ token?: string | undefined;
219
+ authentication?: {
220
+ schemes: string[];
221
+ credentials?: string | undefined;
222
+ } | undefined;
223
+ }>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ taskId: string;
226
+ pushNotificationConfig: {
227
+ url: string;
228
+ id?: string | undefined;
229
+ token?: string | undefined;
230
+ authentication?: {
231
+ schemes: string[];
232
+ credentials?: string | undefined;
233
+ } | undefined;
234
+ };
235
+ }, {
236
+ taskId: string;
237
+ pushNotificationConfig: {
238
+ url: string;
239
+ id?: string | undefined;
240
+ token?: string | undefined;
241
+ authentication?: {
242
+ schemes: string[];
243
+ credentials?: string | undefined;
244
+ } | undefined;
245
+ };
246
+ }>;
77
247
  export type TaskPushNotificationConfig = z.infer<typeof TaskPushNotificationConfigSchema>;
78
248
  /**
79
249
  * @description Request to set or update the push notification config for a task.
80
250
  */
81
251
  export declare const SetTaskPushNotificationConfigRequestSchema: z.ZodObject<{
82
252
  jsonrpc: z.ZodLiteral<"2.0">;
83
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
253
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
254
+ } & {
84
255
  method: z.ZodLiteral<"tasks/pushNotificationConfig/set">;
85
256
  params: z.ZodObject<{
257
+ /**
258
+ * @required The ID of the task to associate with the push notification configuration.
259
+ */
86
260
  taskId: z.ZodString;
261
+ /**
262
+ * @required The push notification configuration to associate with the task.
263
+ */
87
264
  pushNotificationConfig: z.ZodObject<{
265
+ /**
266
+ * @optional A unique ID for the push notification configuration, created by the server
267
+ * to support multiple notification callbacks.
268
+ */
88
269
  id: z.ZodOptional<z.ZodString>;
89
- url: z.ZodURL;
270
+ /**
271
+ * @required The callback URL where the agent should send push notifications.
272
+ */
273
+ url: z.ZodString;
274
+ /**
275
+ * @optional A unique token for this task or session to validate incoming push notifications.
276
+ */
90
277
  token: z.ZodOptional<z.ZodString>;
278
+ /**
279
+ * @optional Authentication details for the agent to use when calling the notification URL.
280
+ */
91
281
  authentication: z.ZodOptional<z.ZodObject<{
92
- schemes: z.ZodArray<z.ZodString>;
282
+ /**
283
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
284
+ */
285
+ schemes: z.ZodArray<z.ZodString, "many">;
286
+ /**
287
+ * @optional Optional credentials required by the push notification endpoint.
288
+ */
93
289
  credentials: z.ZodOptional<z.ZodString>;
94
- }, z.core.$strip>>;
95
- }, z.core.$strip>;
96
- }, z.core.$strip>;
97
- }, z.core.$strip>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ schemes: string[];
292
+ credentials?: string | undefined;
293
+ }, {
294
+ schemes: string[];
295
+ credentials?: string | undefined;
296
+ }>>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ url: string;
299
+ id?: string | undefined;
300
+ token?: string | undefined;
301
+ authentication?: {
302
+ schemes: string[];
303
+ credentials?: string | undefined;
304
+ } | undefined;
305
+ }, {
306
+ url: string;
307
+ id?: string | undefined;
308
+ token?: string | undefined;
309
+ authentication?: {
310
+ schemes: string[];
311
+ credentials?: string | undefined;
312
+ } | undefined;
313
+ }>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ taskId: string;
316
+ pushNotificationConfig: {
317
+ url: string;
318
+ id?: string | undefined;
319
+ token?: string | undefined;
320
+ authentication?: {
321
+ schemes: string[];
322
+ credentials?: string | undefined;
323
+ } | undefined;
324
+ };
325
+ }, {
326
+ taskId: string;
327
+ pushNotificationConfig: {
328
+ url: string;
329
+ id?: string | undefined;
330
+ token?: string | undefined;
331
+ authentication?: {
332
+ schemes: string[];
333
+ credentials?: string | undefined;
334
+ } | undefined;
335
+ };
336
+ }>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ params: {
339
+ taskId: string;
340
+ pushNotificationConfig: {
341
+ url: string;
342
+ id?: string | undefined;
343
+ token?: string | undefined;
344
+ authentication?: {
345
+ schemes: string[];
346
+ credentials?: string | undefined;
347
+ } | undefined;
348
+ };
349
+ };
350
+ jsonrpc: "2.0";
351
+ id: string | number;
352
+ method: "tasks/pushNotificationConfig/set";
353
+ }, {
354
+ params: {
355
+ taskId: string;
356
+ pushNotificationConfig: {
357
+ url: string;
358
+ id?: string | undefined;
359
+ token?: string | undefined;
360
+ authentication?: {
361
+ schemes: string[];
362
+ credentials?: string | undefined;
363
+ } | undefined;
364
+ };
365
+ };
366
+ jsonrpc: "2.0";
367
+ id: string | number;
368
+ method: "tasks/pushNotificationConfig/set";
369
+ }>;
98
370
  export type SetTaskPushNotificationConfigRequest = z.infer<typeof SetTaskPushNotificationConfigRequestSchema>;
99
371
  /**
100
372
  * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/set' method.
101
373
  */
102
374
  export declare const SetTaskPushNotificationConfigSuccessResponseSchema: z.ZodObject<{
103
375
  jsonrpc: z.ZodLiteral<"2.0">;
104
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
376
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
105
377
  error: z.ZodOptional<z.ZodNever>;
378
+ } & {
106
379
  result: z.ZodObject<{
380
+ /**
381
+ * @required The ID of the task to associate with the push notification configuration.
382
+ */
107
383
  taskId: z.ZodString;
384
+ /**
385
+ * @required The push notification configuration to associate with the task.
386
+ */
108
387
  pushNotificationConfig: z.ZodObject<{
388
+ /**
389
+ * @optional A unique ID for the push notification configuration, created by the server
390
+ * to support multiple notification callbacks.
391
+ */
109
392
  id: z.ZodOptional<z.ZodString>;
110
- url: z.ZodURL;
393
+ /**
394
+ * @required The callback URL where the agent should send push notifications.
395
+ */
396
+ url: z.ZodString;
397
+ /**
398
+ * @optional A unique token for this task or session to validate incoming push notifications.
399
+ */
111
400
  token: z.ZodOptional<z.ZodString>;
401
+ /**
402
+ * @optional Authentication details for the agent to use when calling the notification URL.
403
+ */
112
404
  authentication: z.ZodOptional<z.ZodObject<{
113
- schemes: z.ZodArray<z.ZodString>;
405
+ /**
406
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
407
+ */
408
+ schemes: z.ZodArray<z.ZodString, "many">;
409
+ /**
410
+ * @optional Optional credentials required by the push notification endpoint.
411
+ */
114
412
  credentials: z.ZodOptional<z.ZodString>;
115
- }, z.core.$strip>>;
116
- }, z.core.$strip>;
117
- }, z.core.$strip>;
118
- }, z.core.$strip>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ schemes: string[];
415
+ credentials?: string | undefined;
416
+ }, {
417
+ schemes: string[];
418
+ credentials?: string | undefined;
419
+ }>>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ url: string;
422
+ id?: string | undefined;
423
+ token?: string | undefined;
424
+ authentication?: {
425
+ schemes: string[];
426
+ credentials?: string | undefined;
427
+ } | undefined;
428
+ }, {
429
+ url: string;
430
+ id?: string | undefined;
431
+ token?: string | undefined;
432
+ authentication?: {
433
+ schemes: string[];
434
+ credentials?: string | undefined;
435
+ } | undefined;
436
+ }>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ taskId: string;
439
+ pushNotificationConfig: {
440
+ url: string;
441
+ id?: string | undefined;
442
+ token?: string | undefined;
443
+ authentication?: {
444
+ schemes: string[];
445
+ credentials?: string | undefined;
446
+ } | undefined;
447
+ };
448
+ }, {
449
+ taskId: string;
450
+ pushNotificationConfig: {
451
+ url: string;
452
+ id?: string | undefined;
453
+ token?: string | undefined;
454
+ authentication?: {
455
+ schemes: string[];
456
+ credentials?: string | undefined;
457
+ } | undefined;
458
+ };
459
+ }>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ jsonrpc: "2.0";
462
+ result: {
463
+ taskId: string;
464
+ pushNotificationConfig: {
465
+ url: string;
466
+ id?: string | undefined;
467
+ token?: string | undefined;
468
+ authentication?: {
469
+ schemes: string[];
470
+ credentials?: string | undefined;
471
+ } | undefined;
472
+ };
473
+ };
474
+ id?: string | number | undefined;
475
+ error?: undefined;
476
+ }, {
477
+ jsonrpc: "2.0";
478
+ result: {
479
+ taskId: string;
480
+ pushNotificationConfig: {
481
+ url: string;
482
+ id?: string | undefined;
483
+ token?: string | undefined;
484
+ authentication?: {
485
+ schemes: string[];
486
+ credentials?: string | undefined;
487
+ } | undefined;
488
+ };
489
+ };
490
+ id?: string | number | undefined;
491
+ error?: undefined;
492
+ }>;
119
493
  export type SetTaskPushNotificationConfigSuccessResponse = z.infer<typeof SetTaskPushNotificationConfigSuccessResponseSchema>;
120
494
  /**
121
495
  * @description Response to a `tasks/pushNotificationConfig/set` request.
122
496
  */
123
- export declare const SetTaskPushNotificationConfigResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
497
+ export declare const SetTaskPushNotificationConfigResponseSchema: z.ZodUnion<[z.ZodObject<{
124
498
  jsonrpc: z.ZodLiteral<"2.0">;
125
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
499
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
126
500
  error: z.ZodOptional<z.ZodNever>;
501
+ } & {
127
502
  result: z.ZodObject<{
503
+ /**
504
+ * @required The ID of the task to associate with the push notification configuration.
505
+ */
128
506
  taskId: z.ZodString;
507
+ /**
508
+ * @required The push notification configuration to associate with the task.
509
+ */
129
510
  pushNotificationConfig: z.ZodObject<{
511
+ /**
512
+ * @optional A unique ID for the push notification configuration, created by the server
513
+ * to support multiple notification callbacks.
514
+ */
130
515
  id: z.ZodOptional<z.ZodString>;
131
- url: z.ZodURL;
516
+ /**
517
+ * @required The callback URL where the agent should send push notifications.
518
+ */
519
+ url: z.ZodString;
520
+ /**
521
+ * @optional A unique token for this task or session to validate incoming push notifications.
522
+ */
132
523
  token: z.ZodOptional<z.ZodString>;
524
+ /**
525
+ * @optional Authentication details for the agent to use when calling the notification URL.
526
+ */
133
527
  authentication: z.ZodOptional<z.ZodObject<{
134
- schemes: z.ZodArray<z.ZodString>;
528
+ /**
529
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
530
+ */
531
+ schemes: z.ZodArray<z.ZodString, "many">;
532
+ /**
533
+ * @optional Optional credentials required by the push notification endpoint.
534
+ */
135
535
  credentials: z.ZodOptional<z.ZodString>;
136
- }, z.core.$strip>>;
137
- }, z.core.$strip>;
138
- }, z.core.$strip>;
139
- }, z.core.$strip>, z.ZodObject<{
536
+ }, "strip", z.ZodTypeAny, {
537
+ schemes: string[];
538
+ credentials?: string | undefined;
539
+ }, {
540
+ schemes: string[];
541
+ credentials?: string | undefined;
542
+ }>>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ url: string;
545
+ id?: string | undefined;
546
+ token?: string | undefined;
547
+ authentication?: {
548
+ schemes: string[];
549
+ credentials?: string | undefined;
550
+ } | undefined;
551
+ }, {
552
+ url: string;
553
+ id?: string | undefined;
554
+ token?: string | undefined;
555
+ authentication?: {
556
+ schemes: string[];
557
+ credentials?: string | undefined;
558
+ } | undefined;
559
+ }>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ taskId: string;
562
+ pushNotificationConfig: {
563
+ url: string;
564
+ id?: string | undefined;
565
+ token?: string | undefined;
566
+ authentication?: {
567
+ schemes: string[];
568
+ credentials?: string | undefined;
569
+ } | undefined;
570
+ };
571
+ }, {
572
+ taskId: string;
573
+ pushNotificationConfig: {
574
+ url: string;
575
+ id?: string | undefined;
576
+ token?: string | undefined;
577
+ authentication?: {
578
+ schemes: string[];
579
+ credentials?: string | undefined;
580
+ } | undefined;
581
+ };
582
+ }>;
583
+ }, "strip", z.ZodTypeAny, {
584
+ jsonrpc: "2.0";
585
+ result: {
586
+ taskId: string;
587
+ pushNotificationConfig: {
588
+ url: string;
589
+ id?: string | undefined;
590
+ token?: string | undefined;
591
+ authentication?: {
592
+ schemes: string[];
593
+ credentials?: string | undefined;
594
+ } | undefined;
595
+ };
596
+ };
597
+ id?: string | number | undefined;
598
+ error?: undefined;
599
+ }, {
600
+ jsonrpc: "2.0";
601
+ result: {
602
+ taskId: string;
603
+ pushNotificationConfig: {
604
+ url: string;
605
+ id?: string | undefined;
606
+ token?: string | undefined;
607
+ authentication?: {
608
+ schemes: string[];
609
+ credentials?: string | undefined;
610
+ } | undefined;
611
+ };
612
+ };
613
+ id?: string | number | undefined;
614
+ error?: undefined;
615
+ }>, z.ZodObject<{
140
616
  jsonrpc: z.ZodLiteral<"2.0">;
141
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
617
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
618
+ } & {
142
619
  result: z.ZodOptional<z.ZodNever>;
143
620
  error: z.ZodObject<{
144
621
  code: z.ZodNumber;
145
622
  message: z.ZodString;
146
623
  data: z.ZodOptional<z.ZodUnknown>;
147
- }, z.core.$strip>;
148
- }, z.core.$strip>]>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ message: string;
626
+ code: number;
627
+ data?: unknown;
628
+ }, {
629
+ message: string;
630
+ code: number;
631
+ data?: unknown;
632
+ }>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ jsonrpc: "2.0";
635
+ error: {
636
+ message: string;
637
+ code: number;
638
+ data?: unknown;
639
+ };
640
+ id?: string | number | undefined;
641
+ result?: undefined;
642
+ }, {
643
+ jsonrpc: "2.0";
644
+ error: {
645
+ message: string;
646
+ code: number;
647
+ data?: unknown;
648
+ };
649
+ id?: string | number | undefined;
650
+ result?: undefined;
651
+ }>]>;
149
652
  export type SetTaskPushNotificationConfigResponse = z.infer<typeof SetTaskPushNotificationConfigResponseSchema>;
150
653
  /**
151
654
  * @description Request to retrieve the currently configured push notification configuration for a task.
152
655
  */
153
656
  export declare const GetTaskPushNotificationConfigRequestSchema: z.ZodObject<{
154
657
  jsonrpc: z.ZodLiteral<"2.0">;
155
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
658
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
659
+ } & {
156
660
  method: z.ZodLiteral<"tasks/pushNotificationConfig/get">;
157
- params: z.ZodUnion<readonly [z.ZodObject<{
661
+ params: z.ZodUnion<[z.ZodObject<{
158
662
  id: z.ZodString;
159
663
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
664
+ } & {
665
+ /**
666
+ * @optional The ID of the push notification configuration to retrieve.
667
+ */
160
668
  pushNotificationConfigId: z.ZodOptional<z.ZodString>;
161
- }, z.core.$strip>, z.ZodObject<{
669
+ }, "strip", z.ZodTypeAny, {
670
+ id: string;
671
+ metadata?: Record<string, unknown> | undefined;
672
+ pushNotificationConfigId?: string | undefined;
673
+ }, {
674
+ id: string;
675
+ metadata?: Record<string, unknown> | undefined;
676
+ pushNotificationConfigId?: string | undefined;
677
+ }>, z.ZodObject<{
162
678
  id: z.ZodString;
163
679
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
164
- }, z.core.$strip>]>;
165
- }, z.core.$strip>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ id: string;
682
+ metadata?: Record<string, unknown> | undefined;
683
+ }, {
684
+ id: string;
685
+ metadata?: Record<string, unknown> | undefined;
686
+ }>]>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ params: {
689
+ id: string;
690
+ metadata?: Record<string, unknown> | undefined;
691
+ } | {
692
+ id: string;
693
+ metadata?: Record<string, unknown> | undefined;
694
+ pushNotificationConfigId?: string | undefined;
695
+ };
696
+ jsonrpc: "2.0";
697
+ id: string | number;
698
+ method: "tasks/pushNotificationConfig/get";
699
+ }, {
700
+ params: {
701
+ id: string;
702
+ metadata?: Record<string, unknown> | undefined;
703
+ } | {
704
+ id: string;
705
+ metadata?: Record<string, unknown> | undefined;
706
+ pushNotificationConfigId?: string | undefined;
707
+ };
708
+ jsonrpc: "2.0";
709
+ id: string | number;
710
+ method: "tasks/pushNotificationConfig/get";
711
+ }>;
166
712
  export type GetTaskPushNotificationConfigRequest = z.infer<typeof GetTaskPushNotificationConfigRequestSchema>;
167
713
  /**
168
714
  * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/get' method.
169
715
  */
170
716
  export declare const GetTaskPushNotificationConfigSuccessResponseSchema: z.ZodObject<{
171
717
  jsonrpc: z.ZodLiteral<"2.0">;
172
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
718
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
173
719
  error: z.ZodOptional<z.ZodNever>;
720
+ } & {
174
721
  result: z.ZodObject<{
722
+ /**
723
+ * @required The ID of the task to associate with the push notification configuration.
724
+ */
175
725
  taskId: z.ZodString;
726
+ /**
727
+ * @required The push notification configuration to associate with the task.
728
+ */
176
729
  pushNotificationConfig: z.ZodObject<{
730
+ /**
731
+ * @optional A unique ID for the push notification configuration, created by the server
732
+ * to support multiple notification callbacks.
733
+ */
177
734
  id: z.ZodOptional<z.ZodString>;
178
- url: z.ZodURL;
735
+ /**
736
+ * @required The callback URL where the agent should send push notifications.
737
+ */
738
+ url: z.ZodString;
739
+ /**
740
+ * @optional A unique token for this task or session to validate incoming push notifications.
741
+ */
179
742
  token: z.ZodOptional<z.ZodString>;
743
+ /**
744
+ * @optional Authentication details for the agent to use when calling the notification URL.
745
+ */
180
746
  authentication: z.ZodOptional<z.ZodObject<{
181
- schemes: z.ZodArray<z.ZodString>;
747
+ /**
748
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
749
+ */
750
+ schemes: z.ZodArray<z.ZodString, "many">;
751
+ /**
752
+ * @optional Optional credentials required by the push notification endpoint.
753
+ */
182
754
  credentials: z.ZodOptional<z.ZodString>;
183
- }, z.core.$strip>>;
184
- }, z.core.$strip>;
185
- }, z.core.$strip>;
186
- }, z.core.$strip>;
755
+ }, "strip", z.ZodTypeAny, {
756
+ schemes: string[];
757
+ credentials?: string | undefined;
758
+ }, {
759
+ schemes: string[];
760
+ credentials?: string | undefined;
761
+ }>>;
762
+ }, "strip", z.ZodTypeAny, {
763
+ url: string;
764
+ id?: string | undefined;
765
+ token?: string | undefined;
766
+ authentication?: {
767
+ schemes: string[];
768
+ credentials?: string | undefined;
769
+ } | undefined;
770
+ }, {
771
+ url: string;
772
+ id?: string | undefined;
773
+ token?: string | undefined;
774
+ authentication?: {
775
+ schemes: string[];
776
+ credentials?: string | undefined;
777
+ } | undefined;
778
+ }>;
779
+ }, "strip", z.ZodTypeAny, {
780
+ taskId: string;
781
+ pushNotificationConfig: {
782
+ url: string;
783
+ id?: string | undefined;
784
+ token?: string | undefined;
785
+ authentication?: {
786
+ schemes: string[];
787
+ credentials?: string | undefined;
788
+ } | undefined;
789
+ };
790
+ }, {
791
+ taskId: string;
792
+ pushNotificationConfig: {
793
+ url: string;
794
+ id?: string | undefined;
795
+ token?: string | undefined;
796
+ authentication?: {
797
+ schemes: string[];
798
+ credentials?: string | undefined;
799
+ } | undefined;
800
+ };
801
+ }>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ jsonrpc: "2.0";
804
+ result: {
805
+ taskId: string;
806
+ pushNotificationConfig: {
807
+ url: string;
808
+ id?: string | undefined;
809
+ token?: string | undefined;
810
+ authentication?: {
811
+ schemes: string[];
812
+ credentials?: string | undefined;
813
+ } | undefined;
814
+ };
815
+ };
816
+ id?: string | number | undefined;
817
+ error?: undefined;
818
+ }, {
819
+ jsonrpc: "2.0";
820
+ result: {
821
+ taskId: string;
822
+ pushNotificationConfig: {
823
+ url: string;
824
+ id?: string | undefined;
825
+ token?: string | undefined;
826
+ authentication?: {
827
+ schemes: string[];
828
+ credentials?: string | undefined;
829
+ } | undefined;
830
+ };
831
+ };
832
+ id?: string | number | undefined;
833
+ error?: undefined;
834
+ }>;
187
835
  export type GetTaskPushNotificationConfigSuccessResponse = z.infer<typeof GetTaskPushNotificationConfigSuccessResponseSchema>;
188
836
  /**
189
837
  * @description Response to a `tasks/pushNotificationConfig/get` request.
190
838
  */
191
- export declare const GetTaskPushNotificationConfigResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
839
+ export declare const GetTaskPushNotificationConfigResponseSchema: z.ZodUnion<[z.ZodObject<{
192
840
  jsonrpc: z.ZodLiteral<"2.0">;
193
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
841
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
194
842
  error: z.ZodOptional<z.ZodNever>;
843
+ } & {
195
844
  result: z.ZodObject<{
845
+ /**
846
+ * @required The ID of the task to associate with the push notification configuration.
847
+ */
196
848
  taskId: z.ZodString;
849
+ /**
850
+ * @required The push notification configuration to associate with the task.
851
+ */
197
852
  pushNotificationConfig: z.ZodObject<{
853
+ /**
854
+ * @optional A unique ID for the push notification configuration, created by the server
855
+ * to support multiple notification callbacks.
856
+ */
198
857
  id: z.ZodOptional<z.ZodString>;
199
- url: z.ZodURL;
858
+ /**
859
+ * @required The callback URL where the agent should send push notifications.
860
+ */
861
+ url: z.ZodString;
862
+ /**
863
+ * @optional A unique token for this task or session to validate incoming push notifications.
864
+ */
200
865
  token: z.ZodOptional<z.ZodString>;
866
+ /**
867
+ * @optional Authentication details for the agent to use when calling the notification URL.
868
+ */
201
869
  authentication: z.ZodOptional<z.ZodObject<{
202
- schemes: z.ZodArray<z.ZodString>;
870
+ /**
871
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
872
+ */
873
+ schemes: z.ZodArray<z.ZodString, "many">;
874
+ /**
875
+ * @optional Optional credentials required by the push notification endpoint.
876
+ */
203
877
  credentials: z.ZodOptional<z.ZodString>;
204
- }, z.core.$strip>>;
205
- }, z.core.$strip>;
206
- }, z.core.$strip>;
207
- }, z.core.$strip>, z.ZodObject<{
878
+ }, "strip", z.ZodTypeAny, {
879
+ schemes: string[];
880
+ credentials?: string | undefined;
881
+ }, {
882
+ schemes: string[];
883
+ credentials?: string | undefined;
884
+ }>>;
885
+ }, "strip", z.ZodTypeAny, {
886
+ url: string;
887
+ id?: string | undefined;
888
+ token?: string | undefined;
889
+ authentication?: {
890
+ schemes: string[];
891
+ credentials?: string | undefined;
892
+ } | undefined;
893
+ }, {
894
+ url: string;
895
+ id?: string | undefined;
896
+ token?: string | undefined;
897
+ authentication?: {
898
+ schemes: string[];
899
+ credentials?: string | undefined;
900
+ } | undefined;
901
+ }>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ taskId: string;
904
+ pushNotificationConfig: {
905
+ url: string;
906
+ id?: string | undefined;
907
+ token?: string | undefined;
908
+ authentication?: {
909
+ schemes: string[];
910
+ credentials?: string | undefined;
911
+ } | undefined;
912
+ };
913
+ }, {
914
+ taskId: string;
915
+ pushNotificationConfig: {
916
+ url: string;
917
+ id?: string | undefined;
918
+ token?: string | undefined;
919
+ authentication?: {
920
+ schemes: string[];
921
+ credentials?: string | undefined;
922
+ } | undefined;
923
+ };
924
+ }>;
925
+ }, "strip", z.ZodTypeAny, {
926
+ jsonrpc: "2.0";
927
+ result: {
928
+ taskId: string;
929
+ pushNotificationConfig: {
930
+ url: string;
931
+ id?: string | undefined;
932
+ token?: string | undefined;
933
+ authentication?: {
934
+ schemes: string[];
935
+ credentials?: string | undefined;
936
+ } | undefined;
937
+ };
938
+ };
939
+ id?: string | number | undefined;
940
+ error?: undefined;
941
+ }, {
942
+ jsonrpc: "2.0";
943
+ result: {
944
+ taskId: string;
945
+ pushNotificationConfig: {
946
+ url: string;
947
+ id?: string | undefined;
948
+ token?: string | undefined;
949
+ authentication?: {
950
+ schemes: string[];
951
+ credentials?: string | undefined;
952
+ } | undefined;
953
+ };
954
+ };
955
+ id?: string | number | undefined;
956
+ error?: undefined;
957
+ }>, z.ZodObject<{
208
958
  jsonrpc: z.ZodLiteral<"2.0">;
209
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
959
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
960
+ } & {
210
961
  result: z.ZodOptional<z.ZodNever>;
211
962
  error: z.ZodObject<{
212
963
  code: z.ZodNumber;
213
964
  message: z.ZodString;
214
965
  data: z.ZodOptional<z.ZodUnknown>;
215
- }, z.core.$strip>;
216
- }, z.core.$strip>]>;
966
+ }, "strip", z.ZodTypeAny, {
967
+ message: string;
968
+ code: number;
969
+ data?: unknown;
970
+ }, {
971
+ message: string;
972
+ code: number;
973
+ data?: unknown;
974
+ }>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ jsonrpc: "2.0";
977
+ error: {
978
+ message: string;
979
+ code: number;
980
+ data?: unknown;
981
+ };
982
+ id?: string | number | undefined;
983
+ result?: undefined;
984
+ }, {
985
+ jsonrpc: "2.0";
986
+ error: {
987
+ message: string;
988
+ code: number;
989
+ data?: unknown;
990
+ };
991
+ id?: string | number | undefined;
992
+ result?: undefined;
993
+ }>]>;
217
994
  export type GetTaskPushNotificationConfigResponse = z.infer<typeof GetTaskPushNotificationConfigResponseSchema>;
218
995
  /**
219
996
  * @description Request to list all push notification configurations for a task.
220
997
  */
221
998
  export declare const ListTaskPushNotificationConfigRequestSchema: z.ZodObject<{
222
999
  jsonrpc: z.ZodLiteral<"2.0">;
223
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1000
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1001
+ } & {
224
1002
  method: z.ZodLiteral<"tasks/pushNotificationConfig/list">;
225
1003
  params: z.ZodObject<{
226
1004
  id: z.ZodString;
227
1005
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
228
- }, z.core.$strip>;
229
- }, z.core.$strip>;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ id: string;
1008
+ metadata?: Record<string, unknown> | undefined;
1009
+ }, {
1010
+ id: string;
1011
+ metadata?: Record<string, unknown> | undefined;
1012
+ }>;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ params: {
1015
+ id: string;
1016
+ metadata?: Record<string, unknown> | undefined;
1017
+ };
1018
+ jsonrpc: "2.0";
1019
+ id: string | number;
1020
+ method: "tasks/pushNotificationConfig/list";
1021
+ }, {
1022
+ params: {
1023
+ id: string;
1024
+ metadata?: Record<string, unknown> | undefined;
1025
+ };
1026
+ jsonrpc: "2.0";
1027
+ id: string | number;
1028
+ method: "tasks/pushNotificationConfig/list";
1029
+ }>;
230
1030
  export type ListTaskPushNotificationConfigRequest = z.infer<typeof ListTaskPushNotificationConfigRequestSchema>;
231
1031
  export declare const ListTaskPushNotificationConfigResultSchema: z.ZodArray<z.ZodObject<{
1032
+ /**
1033
+ * @required The ID of the task to associate with the push notification configuration.
1034
+ */
232
1035
  taskId: z.ZodString;
1036
+ /**
1037
+ * @required The push notification configuration to associate with the task.
1038
+ */
233
1039
  pushNotificationConfig: z.ZodObject<{
1040
+ /**
1041
+ * @optional A unique ID for the push notification configuration, created by the server
1042
+ * to support multiple notification callbacks.
1043
+ */
234
1044
  id: z.ZodOptional<z.ZodString>;
235
- url: z.ZodURL;
1045
+ /**
1046
+ * @required The callback URL where the agent should send push notifications.
1047
+ */
1048
+ url: z.ZodString;
1049
+ /**
1050
+ * @optional A unique token for this task or session to validate incoming push notifications.
1051
+ */
236
1052
  token: z.ZodOptional<z.ZodString>;
1053
+ /**
1054
+ * @optional Authentication details for the agent to use when calling the notification URL.
1055
+ */
237
1056
  authentication: z.ZodOptional<z.ZodObject<{
238
- schemes: z.ZodArray<z.ZodString>;
1057
+ /**
1058
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
1059
+ */
1060
+ schemes: z.ZodArray<z.ZodString, "many">;
1061
+ /**
1062
+ * @optional Optional credentials required by the push notification endpoint.
1063
+ */
239
1064
  credentials: z.ZodOptional<z.ZodString>;
240
- }, z.core.$strip>>;
241
- }, z.core.$strip>;
242
- }, z.core.$strip>>;
1065
+ }, "strip", z.ZodTypeAny, {
1066
+ schemes: string[];
1067
+ credentials?: string | undefined;
1068
+ }, {
1069
+ schemes: string[];
1070
+ credentials?: string | undefined;
1071
+ }>>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ url: string;
1074
+ id?: string | undefined;
1075
+ token?: string | undefined;
1076
+ authentication?: {
1077
+ schemes: string[];
1078
+ credentials?: string | undefined;
1079
+ } | undefined;
1080
+ }, {
1081
+ url: string;
1082
+ id?: string | undefined;
1083
+ token?: string | undefined;
1084
+ authentication?: {
1085
+ schemes: string[];
1086
+ credentials?: string | undefined;
1087
+ } | undefined;
1088
+ }>;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ taskId: string;
1091
+ pushNotificationConfig: {
1092
+ url: string;
1093
+ id?: string | undefined;
1094
+ token?: string | undefined;
1095
+ authentication?: {
1096
+ schemes: string[];
1097
+ credentials?: string | undefined;
1098
+ } | undefined;
1099
+ };
1100
+ }, {
1101
+ taskId: string;
1102
+ pushNotificationConfig: {
1103
+ url: string;
1104
+ id?: string | undefined;
1105
+ token?: string | undefined;
1106
+ authentication?: {
1107
+ schemes: string[];
1108
+ credentials?: string | undefined;
1109
+ } | undefined;
1110
+ };
1111
+ }>, "many">;
243
1112
  export type ListTaskPushNotificationConfigResult = z.infer<typeof ListTaskPushNotificationConfigResultSchema>;
244
1113
  /**
245
1114
  * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/list' method.
246
1115
  */
247
1116
  export declare const ListTaskPushNotificationConfigSuccessResponseSchema: z.ZodObject<{
248
1117
  jsonrpc: z.ZodLiteral<"2.0">;
249
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1118
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
250
1119
  error: z.ZodOptional<z.ZodNever>;
1120
+ } & {
251
1121
  result: z.ZodArray<z.ZodObject<{
1122
+ /**
1123
+ * @required The ID of the task to associate with the push notification configuration.
1124
+ */
252
1125
  taskId: z.ZodString;
1126
+ /**
1127
+ * @required The push notification configuration to associate with the task.
1128
+ */
253
1129
  pushNotificationConfig: z.ZodObject<{
1130
+ /**
1131
+ * @optional A unique ID for the push notification configuration, created by the server
1132
+ * to support multiple notification callbacks.
1133
+ */
254
1134
  id: z.ZodOptional<z.ZodString>;
255
- url: z.ZodURL;
1135
+ /**
1136
+ * @required The callback URL where the agent should send push notifications.
1137
+ */
1138
+ url: z.ZodString;
1139
+ /**
1140
+ * @optional A unique token for this task or session to validate incoming push notifications.
1141
+ */
256
1142
  token: z.ZodOptional<z.ZodString>;
1143
+ /**
1144
+ * @optional Authentication details for the agent to use when calling the notification URL.
1145
+ */
257
1146
  authentication: z.ZodOptional<z.ZodObject<{
258
- schemes: z.ZodArray<z.ZodString>;
1147
+ /**
1148
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
1149
+ */
1150
+ schemes: z.ZodArray<z.ZodString, "many">;
1151
+ /**
1152
+ * @optional Optional credentials required by the push notification endpoint.
1153
+ */
259
1154
  credentials: z.ZodOptional<z.ZodString>;
260
- }, z.core.$strip>>;
261
- }, z.core.$strip>;
262
- }, z.core.$strip>>;
263
- }, z.core.$strip>;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ schemes: string[];
1157
+ credentials?: string | undefined;
1158
+ }, {
1159
+ schemes: string[];
1160
+ credentials?: string | undefined;
1161
+ }>>;
1162
+ }, "strip", z.ZodTypeAny, {
1163
+ url: string;
1164
+ id?: string | undefined;
1165
+ token?: string | undefined;
1166
+ authentication?: {
1167
+ schemes: string[];
1168
+ credentials?: string | undefined;
1169
+ } | undefined;
1170
+ }, {
1171
+ url: string;
1172
+ id?: string | undefined;
1173
+ token?: string | undefined;
1174
+ authentication?: {
1175
+ schemes: string[];
1176
+ credentials?: string | undefined;
1177
+ } | undefined;
1178
+ }>;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ taskId: string;
1181
+ pushNotificationConfig: {
1182
+ url: string;
1183
+ id?: string | undefined;
1184
+ token?: string | undefined;
1185
+ authentication?: {
1186
+ schemes: string[];
1187
+ credentials?: string | undefined;
1188
+ } | undefined;
1189
+ };
1190
+ }, {
1191
+ taskId: string;
1192
+ pushNotificationConfig: {
1193
+ url: string;
1194
+ id?: string | undefined;
1195
+ token?: string | undefined;
1196
+ authentication?: {
1197
+ schemes: string[];
1198
+ credentials?: string | undefined;
1199
+ } | undefined;
1200
+ };
1201
+ }>, "many">;
1202
+ }, "strip", z.ZodTypeAny, {
1203
+ jsonrpc: "2.0";
1204
+ result: {
1205
+ taskId: string;
1206
+ pushNotificationConfig: {
1207
+ url: string;
1208
+ id?: string | undefined;
1209
+ token?: string | undefined;
1210
+ authentication?: {
1211
+ schemes: string[];
1212
+ credentials?: string | undefined;
1213
+ } | undefined;
1214
+ };
1215
+ }[];
1216
+ id?: string | number | undefined;
1217
+ error?: undefined;
1218
+ }, {
1219
+ jsonrpc: "2.0";
1220
+ result: {
1221
+ taskId: string;
1222
+ pushNotificationConfig: {
1223
+ url: string;
1224
+ id?: string | undefined;
1225
+ token?: string | undefined;
1226
+ authentication?: {
1227
+ schemes: string[];
1228
+ credentials?: string | undefined;
1229
+ } | undefined;
1230
+ };
1231
+ }[];
1232
+ id?: string | number | undefined;
1233
+ error?: undefined;
1234
+ }>;
264
1235
  export type ListTaskPushNotificationConfigSuccessResponse = z.infer<typeof ListTaskPushNotificationConfigSuccessResponseSchema>;
265
1236
  /**
266
1237
  * @description Response to a `tasks/pushNotificationConfig/list` request.
267
1238
  */
268
- export declare const ListTaskPushNotificationConfigResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1239
+ export declare const ListTaskPushNotificationConfigResponseSchema: z.ZodUnion<[z.ZodObject<{
269
1240
  jsonrpc: z.ZodLiteral<"2.0">;
270
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1241
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
271
1242
  error: z.ZodOptional<z.ZodNever>;
1243
+ } & {
272
1244
  result: z.ZodArray<z.ZodObject<{
1245
+ /**
1246
+ * @required The ID of the task to associate with the push notification configuration.
1247
+ */
273
1248
  taskId: z.ZodString;
1249
+ /**
1250
+ * @required The push notification configuration to associate with the task.
1251
+ */
274
1252
  pushNotificationConfig: z.ZodObject<{
1253
+ /**
1254
+ * @optional A unique ID for the push notification configuration, created by the server
1255
+ * to support multiple notification callbacks.
1256
+ */
275
1257
  id: z.ZodOptional<z.ZodString>;
276
- url: z.ZodURL;
1258
+ /**
1259
+ * @required The callback URL where the agent should send push notifications.
1260
+ */
1261
+ url: z.ZodString;
1262
+ /**
1263
+ * @optional A unique token for this task or session to validate incoming push notifications.
1264
+ */
277
1265
  token: z.ZodOptional<z.ZodString>;
1266
+ /**
1267
+ * @optional Authentication details for the agent to use when calling the notification URL.
1268
+ */
278
1269
  authentication: z.ZodOptional<z.ZodObject<{
279
- schemes: z.ZodArray<z.ZodString>;
1270
+ /**
1271
+ * @required A list of supported authentication schemes (e.g., 'Basic', 'Bearer').
1272
+ */
1273
+ schemes: z.ZodArray<z.ZodString, "many">;
1274
+ /**
1275
+ * @optional Optional credentials required by the push notification endpoint.
1276
+ */
280
1277
  credentials: z.ZodOptional<z.ZodString>;
281
- }, z.core.$strip>>;
282
- }, z.core.$strip>;
283
- }, z.core.$strip>>;
284
- }, z.core.$strip>, z.ZodObject<{
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ schemes: string[];
1280
+ credentials?: string | undefined;
1281
+ }, {
1282
+ schemes: string[];
1283
+ credentials?: string | undefined;
1284
+ }>>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ url: string;
1287
+ id?: string | undefined;
1288
+ token?: string | undefined;
1289
+ authentication?: {
1290
+ schemes: string[];
1291
+ credentials?: string | undefined;
1292
+ } | undefined;
1293
+ }, {
1294
+ url: string;
1295
+ id?: string | undefined;
1296
+ token?: string | undefined;
1297
+ authentication?: {
1298
+ schemes: string[];
1299
+ credentials?: string | undefined;
1300
+ } | undefined;
1301
+ }>;
1302
+ }, "strip", z.ZodTypeAny, {
1303
+ taskId: string;
1304
+ pushNotificationConfig: {
1305
+ url: string;
1306
+ id?: string | undefined;
1307
+ token?: string | undefined;
1308
+ authentication?: {
1309
+ schemes: string[];
1310
+ credentials?: string | undefined;
1311
+ } | undefined;
1312
+ };
1313
+ }, {
1314
+ taskId: string;
1315
+ pushNotificationConfig: {
1316
+ url: string;
1317
+ id?: string | undefined;
1318
+ token?: string | undefined;
1319
+ authentication?: {
1320
+ schemes: string[];
1321
+ credentials?: string | undefined;
1322
+ } | undefined;
1323
+ };
1324
+ }>, "many">;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ jsonrpc: "2.0";
1327
+ result: {
1328
+ taskId: string;
1329
+ pushNotificationConfig: {
1330
+ url: string;
1331
+ id?: string | undefined;
1332
+ token?: string | undefined;
1333
+ authentication?: {
1334
+ schemes: string[];
1335
+ credentials?: string | undefined;
1336
+ } | undefined;
1337
+ };
1338
+ }[];
1339
+ id?: string | number | undefined;
1340
+ error?: undefined;
1341
+ }, {
1342
+ jsonrpc: "2.0";
1343
+ result: {
1344
+ taskId: string;
1345
+ pushNotificationConfig: {
1346
+ url: string;
1347
+ id?: string | undefined;
1348
+ token?: string | undefined;
1349
+ authentication?: {
1350
+ schemes: string[];
1351
+ credentials?: string | undefined;
1352
+ } | undefined;
1353
+ };
1354
+ }[];
1355
+ id?: string | number | undefined;
1356
+ error?: undefined;
1357
+ }>, z.ZodObject<{
285
1358
  jsonrpc: z.ZodLiteral<"2.0">;
286
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1359
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1360
+ } & {
287
1361
  result: z.ZodOptional<z.ZodNever>;
288
1362
  error: z.ZodObject<{
289
1363
  code: z.ZodNumber;
290
1364
  message: z.ZodString;
291
1365
  data: z.ZodOptional<z.ZodUnknown>;
292
- }, z.core.$strip>;
293
- }, z.core.$strip>]>;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ message: string;
1368
+ code: number;
1369
+ data?: unknown;
1370
+ }, {
1371
+ message: string;
1372
+ code: number;
1373
+ data?: unknown;
1374
+ }>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ jsonrpc: "2.0";
1377
+ error: {
1378
+ message: string;
1379
+ code: number;
1380
+ data?: unknown;
1381
+ };
1382
+ id?: string | number | undefined;
1383
+ result?: undefined;
1384
+ }, {
1385
+ jsonrpc: "2.0";
1386
+ error: {
1387
+ message: string;
1388
+ code: number;
1389
+ data?: unknown;
1390
+ };
1391
+ id?: string | number | undefined;
1392
+ result?: undefined;
1393
+ }>]>;
294
1394
  export type ListTaskPushNotificationConfigResponse = z.infer<typeof ListTaskPushNotificationConfigResponseSchema>;
295
1395
  /**
296
1396
  * @description Request to delete a specific push notification configuration for a task.
297
1397
  */
298
1398
  export declare const DeleteTaskPushNotificationConfigRequestSchema: z.ZodObject<{
299
1399
  jsonrpc: z.ZodLiteral<"2.0">;
300
- id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
1400
+ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1401
+ } & {
301
1402
  method: z.ZodLiteral<"tasks/pushNotificationConfig/delete">;
302
1403
  params: z.ZodObject<{
303
1404
  id: z.ZodString;
304
1405
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1406
+ } & {
1407
+ /**
1408
+ * @required The ID of the push notification configuration to delete.
1409
+ */
305
1410
  pushNotificationConfigId: z.ZodString;
306
- }, z.core.$strip>;
307
- }, z.core.$strip>;
1411
+ }, "strip", z.ZodTypeAny, {
1412
+ id: string;
1413
+ pushNotificationConfigId: string;
1414
+ metadata?: Record<string, unknown> | undefined;
1415
+ }, {
1416
+ id: string;
1417
+ pushNotificationConfigId: string;
1418
+ metadata?: Record<string, unknown> | undefined;
1419
+ }>;
1420
+ }, "strip", z.ZodTypeAny, {
1421
+ params: {
1422
+ id: string;
1423
+ pushNotificationConfigId: string;
1424
+ metadata?: Record<string, unknown> | undefined;
1425
+ };
1426
+ jsonrpc: "2.0";
1427
+ id: string | number;
1428
+ method: "tasks/pushNotificationConfig/delete";
1429
+ }, {
1430
+ params: {
1431
+ id: string;
1432
+ pushNotificationConfigId: string;
1433
+ metadata?: Record<string, unknown> | undefined;
1434
+ };
1435
+ jsonrpc: "2.0";
1436
+ id: string | number;
1437
+ method: "tasks/pushNotificationConfig/delete";
1438
+ }>;
308
1439
  export type DeleteTaskPushNotificationConfigRequest = z.infer<typeof DeleteTaskPushNotificationConfigRequestSchema>;
309
1440
  /**
310
1441
  * @description JSON-RPC success response model for the 'tasks/pushNotificationConfig/delete' method.
311
1442
  */
312
1443
  export declare const DeleteTaskPushNotificationConfigSuccessResponseSchema: z.ZodObject<{
313
1444
  jsonrpc: z.ZodLiteral<"2.0">;
314
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1445
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
315
1446
  error: z.ZodOptional<z.ZodNever>;
1447
+ } & {
316
1448
  result: z.ZodNull;
317
- }, z.core.$strip>;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ jsonrpc: "2.0";
1451
+ result: null;
1452
+ id?: string | number | undefined;
1453
+ error?: undefined;
1454
+ }, {
1455
+ jsonrpc: "2.0";
1456
+ result: null;
1457
+ id?: string | number | undefined;
1458
+ error?: undefined;
1459
+ }>;
318
1460
  export type DeleteTaskPushNotificationConfigSuccessResponse = z.infer<typeof DeleteTaskPushNotificationConfigSuccessResponseSchema>;
319
1461
  /**
320
1462
  * @description Response to a `tasks/pushNotificationConfig/delete` request.
321
1463
  */
322
- export declare const DeleteTaskPushNotificationConfigResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
1464
+ export declare const DeleteTaskPushNotificationConfigResponseSchema: z.ZodUnion<[z.ZodObject<{
323
1465
  jsonrpc: z.ZodLiteral<"2.0">;
324
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1466
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
325
1467
  error: z.ZodOptional<z.ZodNever>;
1468
+ } & {
326
1469
  result: z.ZodNull;
327
- }, z.core.$strip>, z.ZodObject<{
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ jsonrpc: "2.0";
1472
+ result: null;
1473
+ id?: string | number | undefined;
1474
+ error?: undefined;
1475
+ }, {
1476
+ jsonrpc: "2.0";
1477
+ result: null;
1478
+ id?: string | number | undefined;
1479
+ error?: undefined;
1480
+ }>, z.ZodObject<{
328
1481
  jsonrpc: z.ZodLiteral<"2.0">;
329
- id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1482
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1483
+ } & {
330
1484
  result: z.ZodOptional<z.ZodNever>;
331
1485
  error: z.ZodObject<{
332
1486
  code: z.ZodNumber;
333
1487
  message: z.ZodString;
334
1488
  data: z.ZodOptional<z.ZodUnknown>;
335
- }, z.core.$strip>;
336
- }, z.core.$strip>]>;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ message: string;
1491
+ code: number;
1492
+ data?: unknown;
1493
+ }, {
1494
+ message: string;
1495
+ code: number;
1496
+ data?: unknown;
1497
+ }>;
1498
+ }, "strip", z.ZodTypeAny, {
1499
+ jsonrpc: "2.0";
1500
+ error: {
1501
+ message: string;
1502
+ code: number;
1503
+ data?: unknown;
1504
+ };
1505
+ id?: string | number | undefined;
1506
+ result?: undefined;
1507
+ }, {
1508
+ jsonrpc: "2.0";
1509
+ error: {
1510
+ message: string;
1511
+ code: number;
1512
+ data?: unknown;
1513
+ };
1514
+ id?: string | number | undefined;
1515
+ result?: undefined;
1516
+ }>]>;
337
1517
  export type DeleteTaskPushNotificationConfigResponse = z.infer<typeof DeleteTaskPushNotificationConfigResponseSchema>;
338
1518
  //# sourceMappingURL=notification.d.ts.map