agentstack-sdk 0.6.1 → 0.6.2-rc2

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 (199) hide show
  1. package/README.md +36 -29
  2. package/dist/api.cjs +1994 -2
  3. package/dist/api.d.cts +29 -0
  4. package/dist/api.d.ts +25 -1
  5. package/dist/api.js +1801 -2
  6. package/dist/core-DcGxYeok.d.ts +1238 -0
  7. package/dist/core-XN6gWSAb.d.cts +1238 -0
  8. package/dist/core.cjs +1773 -2
  9. package/dist/core.d.cts +7 -0
  10. package/dist/core.d.ts +7 -5
  11. package/dist/core.js +1725 -2
  12. package/dist/extensions.cjs +798 -2
  13. package/dist/extensions.d.cts +244 -0
  14. package/dist/extensions.d.ts +240 -1
  15. package/dist/extensions.js +652 -2
  16. package/dist/index.cjs +3142 -2
  17. package/dist/index.d.cts +10 -0
  18. package/dist/index.d.ts +10 -7
  19. package/dist/index.js +2781 -2
  20. package/dist/index.umd.js +16509 -2
  21. package/dist/schemas-Dy3P_eAt.d.cts +57 -0
  22. package/dist/schemas-Dy3P_eAt.d.ts +57 -0
  23. package/dist/server.cjs +2762 -0
  24. package/dist/server.d.cts +244 -0
  25. package/dist/server.d.ts +244 -0
  26. package/dist/server.js +2716 -0
  27. package/dist/types-B5B3b0V2.d.cts +396 -0
  28. package/dist/types-B5B3b0V2.d.ts +396 -0
  29. package/dist/types-CmEs5_Ag.d.cts +3522 -0
  30. package/dist/types-DJm5-rZZ.d.ts +3522 -0
  31. package/dist/types-DvLt-XuC.d.ts +866 -0
  32. package/dist/types-E26YDM19.d.cts +866 -0
  33. package/dist/types-MfIzGgpV.d.cts +43 -0
  34. package/dist/types-MfIzGgpV.d.ts +43 -0
  35. package/package.json +36 -21
  36. package/src/client/a2a/extensions/auth/oauth/index.ts +6 -6
  37. package/src/client/a2a/extensions/auth/secrets/index.ts +6 -6
  38. package/src/client/a2a/extensions/interactions/approval/index.ts +7 -7
  39. package/src/client/a2a/extensions/services/embedding/index.ts +7 -3
  40. package/src/client/a2a/extensions/services/form/index.ts +3 -3
  41. package/src/client/a2a/extensions/services/llm/index.ts +3 -3
  42. package/src/client/a2a/extensions/services/mcp/index.ts +3 -3
  43. package/src/client/a2a/extensions/services/platform-api/index.ts +2 -2
  44. package/src/client/a2a/extensions/ui/agent-detail/index.ts +4 -4
  45. package/src/client/a2a/extensions/ui/canvas/index.ts +4 -4
  46. package/src/client/a2a/extensions/ui/citation/index.ts +4 -4
  47. package/src/client/a2a/extensions/ui/error/index.ts +4 -4
  48. package/src/client/a2a/extensions/ui/form-request/index.ts +4 -4
  49. package/src/client/a2a/extensions/ui/settings/index.ts +7 -3
  50. package/src/client/a2a/extensions/ui/trajectory/index.ts +4 -4
  51. package/src/client/core/extensions/types.ts +8 -1
  52. package/src/client/core/handle-task-status-update.ts +10 -3
  53. package/src/client/core/index.ts +1 -0
  54. package/src/client/core/utils/extract-text-from-message.ts +15 -0
  55. package/src/examples/hello-world.ts +34 -0
  56. package/src/experimental/server/a2a/extensions/agent-detail/index.ts +35 -0
  57. package/src/experimental/server/a2a/extensions/agent-detail/types.ts +10 -0
  58. package/src/experimental/server/a2a/extensions/index.ts +11 -0
  59. package/src/experimental/server/a2a/extensions/llm/index.ts +70 -0
  60. package/src/experimental/server/a2a/extensions/llm/types.ts +16 -0
  61. package/src/experimental/server/a2a/extensions/platform-self-registration/index.ts +34 -0
  62. package/src/experimental/server/a2a/extensions/platform-self-registration/types.ts +10 -0
  63. package/src/experimental/server/a2a/helpers.ts +95 -0
  64. package/{dist/client/a2a/index.d.ts → src/experimental/server/a2a/index.ts} +1 -1
  65. package/src/experimental/server/a2a/utils.ts +43 -0
  66. package/src/experimental/server/core/config/index.ts +17 -0
  67. package/src/experimental/server/core/config/schemas.ts +15 -0
  68. package/src/experimental/server/core/config/types.ts +10 -0
  69. package/src/experimental/server/core/context/index.ts +18 -0
  70. package/src/experimental/server/core/extensions/types.ts +24 -0
  71. package/{dist/client/a2a/protocol/index.d.ts → src/experimental/server/core/index.ts} +4 -0
  72. package/{dist/client/a2a/protocol/tests.d.ts → src/experimental/server/core/schemas.ts} +2 -1
  73. package/src/experimental/server/core/server/autoregistration.ts +142 -0
  74. package/src/experimental/server/core/server/executor.ts +284 -0
  75. package/src/experimental/server/core/server/helpers.ts +12 -0
  76. package/src/experimental/server/core/server/index.ts +166 -0
  77. package/src/experimental/server/core/server/types.ts +58 -0
  78. package/src/experimental/server/core/types.ts +8 -0
  79. package/src/experimental/server/core/utils.ts +59 -0
  80. package/{dist/client/api/core/errors/index.d.ts → src/server.ts} +3 -2
  81. package/dist/api.cjs.map +0 -1
  82. package/dist/api.js.map +0 -1
  83. package/dist/api.umd.js +0 -2
  84. package/dist/api.umd.js.map +0 -1
  85. package/dist/client/a2a/extensions/auth/oauth/index.d.ts +0 -10
  86. package/dist/client/a2a/extensions/auth/oauth/schemas.d.ts +0 -32
  87. package/dist/client/a2a/extensions/auth/oauth/types.d.ts +0 -13
  88. package/dist/client/a2a/extensions/auth/secrets/index.d.ts +0 -10
  89. package/dist/client/a2a/extensions/auth/secrets/schemas.d.ts +0 -23
  90. package/dist/client/a2a/extensions/auth/secrets/types.d.ts +0 -10
  91. package/dist/client/a2a/extensions/common/form/schemas.d.ts +0 -290
  92. package/dist/client/a2a/extensions/common/form/types.d.ts +0 -24
  93. package/dist/client/a2a/extensions/index.d.ts +0 -21
  94. package/dist/client/a2a/extensions/interactions/approval/index.d.ts +0 -10
  95. package/dist/client/a2a/extensions/interactions/approval/schemas.d.ts +0 -43
  96. package/dist/client/a2a/extensions/interactions/approval/types.d.ts +0 -14
  97. package/dist/client/a2a/extensions/schemas.d.ts +0 -19
  98. package/dist/client/a2a/extensions/services/embedding/index.d.ts +0 -9
  99. package/dist/client/a2a/extensions/services/embedding/schemas.d.ts +0 -29
  100. package/dist/client/a2a/extensions/services/embedding/types.d.ts +0 -10
  101. package/dist/client/a2a/extensions/services/form/index.d.ts +0 -9
  102. package/dist/client/a2a/extensions/services/form/schemas.d.ts +0 -97
  103. package/dist/client/a2a/extensions/services/form/types.d.ts +0 -8
  104. package/dist/client/a2a/extensions/services/llm/index.d.ts +0 -9
  105. package/dist/client/a2a/extensions/services/llm/schemas.d.ts +0 -29
  106. package/dist/client/a2a/extensions/services/llm/types.d.ts +0 -10
  107. package/dist/client/a2a/extensions/services/mcp/index.d.ts +0 -9
  108. package/dist/client/a2a/extensions/services/mcp/schemas.d.ts +0 -35
  109. package/dist/client/a2a/extensions/services/mcp/types.d.ts +0 -14
  110. package/dist/client/a2a/extensions/services/platform-api/index.d.ts +0 -11
  111. package/dist/client/a2a/extensions/services/platform-api/schemas.d.ts +0 -10
  112. package/dist/client/a2a/extensions/services/platform-api/types.d.ts +0 -7
  113. package/dist/client/a2a/extensions/types.d.ts +0 -19
  114. package/dist/client/a2a/extensions/ui/agent-detail/index.d.ts +0 -9
  115. package/dist/client/a2a/extensions/ui/agent-detail/schemas.d.ts +0 -41
  116. package/dist/client/a2a/extensions/ui/agent-detail/types.d.ts +0 -13
  117. package/dist/client/a2a/extensions/ui/canvas/index.d.ts +0 -9
  118. package/dist/client/a2a/extensions/ui/canvas/schemas.d.ts +0 -11
  119. package/dist/client/a2a/extensions/ui/canvas/types.d.ts +0 -7
  120. package/dist/client/a2a/extensions/ui/citation/index.d.ts +0 -9
  121. package/dist/client/a2a/extensions/ui/citation/schemas.d.ts +0 -21
  122. package/dist/client/a2a/extensions/ui/citation/types.d.ts +0 -8
  123. package/dist/client/a2a/extensions/ui/error/index.d.ts +0 -9
  124. package/dist/client/a2a/extensions/ui/error/schemas.d.ts +0 -30
  125. package/dist/client/a2a/extensions/ui/error/types.d.ts +0 -9
  126. package/dist/client/a2a/extensions/ui/form-request/index.d.ts +0 -9
  127. package/dist/client/a2a/extensions/ui/settings/index.d.ts +0 -9
  128. package/dist/client/a2a/extensions/ui/settings/schemas.d.ts +0 -113
  129. package/dist/client/a2a/extensions/ui/settings/types.d.ts +0 -18
  130. package/dist/client/a2a/extensions/ui/trajectory/index.d.ts +0 -9
  131. package/dist/client/a2a/extensions/ui/trajectory/schemas.d.ts +0 -10
  132. package/dist/client/a2a/extensions/ui/trajectory/types.d.ts +0 -7
  133. package/dist/client/a2a/protocol/schemas.d.ts +0 -988
  134. package/dist/client/a2a/protocol/types.d.ts +0 -52
  135. package/dist/client/a2a/protocol/utils.d.ts +0 -6
  136. package/dist/client/api/common/schemas.d.ts +0 -30
  137. package/dist/client/api/common/types.d.ts +0 -18
  138. package/dist/client/api/configuration/api.d.ts +0 -22
  139. package/dist/client/api/configuration/schemas.d.ts +0 -31
  140. package/dist/client/api/configuration/types.d.ts +0 -11
  141. package/dist/client/api/connectors/api.d.ts +0 -78
  142. package/dist/client/api/connectors/schemas.d.ts +0 -114
  143. package/dist/client/api/connectors/types.d.ts +0 -28
  144. package/dist/client/api/contexts/api.d.ts +0 -133
  145. package/dist/client/api/contexts/schemas.d.ts +0 -359
  146. package/dist/client/api/contexts/types.d.ts +0 -34
  147. package/dist/client/api/core/client.d.ts +0 -1273
  148. package/dist/client/api/core/errors/types.d.ts +0 -36
  149. package/dist/client/api/core/errors/utils.d.ts +0 -23
  150. package/dist/client/api/core/index.d.ts +0 -7
  151. package/dist/client/api/core/schemas.d.ts +0 -17
  152. package/dist/client/api/core/types.d.ts +0 -45
  153. package/dist/client/api/core/utils.d.ts +0 -23
  154. package/dist/client/api/files/api.d.ts +0 -32
  155. package/dist/client/api/files/schemas.d.ts +0 -61
  156. package/dist/client/api/files/types.d.ts +0 -19
  157. package/dist/client/api/index.d.ts +0 -7
  158. package/dist/client/api/model-providers/api.d.ts +0 -50
  159. package/dist/client/api/model-providers/schemas.d.ts +0 -80
  160. package/dist/client/api/model-providers/types.d.ts +0 -44
  161. package/dist/client/api/provider-builds/api.d.ts +0 -143
  162. package/dist/client/api/provider-builds/schemas.d.ts +0 -250
  163. package/dist/client/api/provider-builds/types.d.ts +0 -31
  164. package/dist/client/api/providers/api.d.ts +0 -847
  165. package/dist/client/api/providers/schemas.d.ts +0 -1335
  166. package/dist/client/api/providers/types.d.ts +0 -45
  167. package/dist/client/api/schemas.d.ts +0 -15
  168. package/dist/client/api/types.d.ts +0 -15
  169. package/dist/client/api/user-feedback/api.d.ts +0 -9
  170. package/dist/client/api/user-feedback/schemas.d.ts +0 -15
  171. package/dist/client/api/user-feedback/types.d.ts +0 -8
  172. package/dist/client/api/users/api.d.ts +0 -13
  173. package/dist/client/api/users/schemas.d.ts +0 -20
  174. package/dist/client/api/users/types.d.ts +0 -14
  175. package/dist/client/api/variables/api.d.ts +0 -12
  176. package/dist/client/api/variables/schemas.d.ts +0 -13
  177. package/dist/client/api/variables/types.d.ts +0 -10
  178. package/dist/client/core/create-authenticated-fetch.d.ts +0 -5
  179. package/dist/client/core/extensions/extract.d.ts +0 -8
  180. package/dist/client/core/extensions/fulfill.d.ts +0 -8
  181. package/dist/client/core/extensions/resolve-user-metadata.d.ts +0 -6
  182. package/dist/client/core/extensions/types.d.ts +0 -68
  183. package/dist/client/core/fulfillment-resolvers/build-llm-extension-fulfillment-resolver.d.ts +0 -8
  184. package/dist/client/core/handle-agent-card.d.ts +0 -128
  185. package/dist/client/core/handle-task-status-update.d.ts +0 -7
  186. package/dist/client/core/index.d.ts +0 -14
  187. package/dist/client/core/utils/build-message-builder.d.ts +0 -9
  188. package/dist/client/core/utils/get-agent-card-path.d.ts +0 -5
  189. package/dist/core.cjs.map +0 -1
  190. package/dist/core.js.map +0 -1
  191. package/dist/core.umd.js +0 -2
  192. package/dist/core.umd.js.map +0 -1
  193. package/dist/extensions.cjs.map +0 -1
  194. package/dist/extensions.js.map +0 -1
  195. package/dist/extensions.umd.js +0 -2
  196. package/dist/extensions.umd.js.map +0 -1
  197. package/dist/index.cjs.map +0 -1
  198. package/dist/index.js.map +0 -1
  199. package/dist/index.umd.js.map +0 -1
@@ -1,45 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type z from 'zod';
6
- import type { createProviderRequestSchema, createProviderResponseSchema, deleteProviderRequestSchema, deleteProviderResponseSchema, listProvidersRequestSchema, listProvidersResponseSchema, listProviderVariablesRequestSchema, listProviderVariablesResponseSchema, patchProviderRequestSchema, patchProviderResponseSchema, previewProviderRequestSchema, previewProviderResponseSchema, providerEnvVarSchema, providerErrorSchema, providerSchema, providerVersionInfoSchema, readProviderByLocationRequestSchema, readProviderByLocationResponseSchema, readProviderLogsRequestSchema, readProviderLogsResponseSchema, readProviderRequestSchema, readProviderResponseSchema, updateProviderVariablesRequestSchema, updateProviderVariablesResponseSchema } from './schemas';
7
- export declare enum ProviderType {
8
- Managed = "managed",
9
- Unmanaged = "unmanaged"
10
- }
11
- export declare enum ProviderStatus {
12
- Missing = "missing",
13
- Starting = "starting",
14
- Ready = "ready",
15
- Running = "running",
16
- Error = "error"
17
- }
18
- export declare enum ProviderUnmanagedStatus {
19
- Online = "online",
20
- Offline = "offline"
21
- }
22
- export type ProviderError = z.infer<typeof providerErrorSchema>;
23
- export type ProviderEnvVar = z.infer<typeof providerEnvVarSchema>;
24
- export type ProviderVersionInfo = z.infer<typeof providerVersionInfoSchema>;
25
- export type Provider = z.infer<typeof providerSchema>;
26
- export type ListProvidersRequest = z.infer<typeof listProvidersRequestSchema>;
27
- export type ListProvidersResponse = z.infer<typeof listProvidersResponseSchema>;
28
- export type CreateProviderRequest = z.infer<typeof createProviderRequestSchema>;
29
- export type CreateProviderResponse = z.infer<typeof createProviderResponseSchema>;
30
- export type ReadProviderRequest = z.infer<typeof readProviderRequestSchema>;
31
- export type ReadProviderResponse = z.infer<typeof readProviderResponseSchema>;
32
- export type DeleteProviderRequest = z.infer<typeof deleteProviderRequestSchema>;
33
- export type DeleteProviderResponse = z.infer<typeof deleteProviderResponseSchema>;
34
- export type PatchProviderRequest = z.infer<typeof patchProviderRequestSchema>;
35
- export type PatchProviderResponse = z.infer<typeof patchProviderResponseSchema>;
36
- export type ReadProviderLogsRequest = z.infer<typeof readProviderLogsRequestSchema>;
37
- export type ReadProviderLogsResponse = z.infer<typeof readProviderLogsResponseSchema>;
38
- export type ListProviderVariablesRequest = z.infer<typeof listProviderVariablesRequestSchema>;
39
- export type ListProviderVariablesResponse = z.infer<typeof listProviderVariablesResponseSchema>;
40
- export type UpdateProviderVariablesRequest = z.infer<typeof updateProviderVariablesRequestSchema>;
41
- export type UpdateProviderVariablesResponse = z.infer<typeof updateProviderVariablesResponseSchema>;
42
- export type ReadProviderByLocationRequest = z.infer<typeof readProviderByLocationRequestSchema>;
43
- export type ReadProviderByLocationResponse = z.infer<typeof readProviderByLocationResponseSchema>;
44
- export type PreviewProviderRequest = z.infer<typeof previewProviderRequestSchema>;
45
- export type PreviewProviderResponse = z.infer<typeof previewProviderResponseSchema>;
@@ -1,15 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export * from './common/schemas';
6
- export * from './configuration/schemas';
7
- export * from './connectors/schemas';
8
- export * from './contexts/schemas';
9
- export * from './files/schemas';
10
- export * from './model-providers/schemas';
11
- export * from './provider-builds/schemas';
12
- export * from './providers/schemas';
13
- export * from './user-feedback/schemas';
14
- export * from './users/schemas';
15
- export * from './variables/schemas';
@@ -1,15 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export * from './common/types';
6
- export * from './configuration/types';
7
- export * from './connectors/types';
8
- export * from './contexts/types';
9
- export * from './files/types';
10
- export * from './model-providers/types';
11
- export * from './provider-builds/types';
12
- export * from './providers/types';
13
- export * from './user-feedback/types';
14
- export * from './users/types';
15
- export * from './variables/types';
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { CallApi } from '../core/types';
6
- import type { CreateUserFeedbackRequest } from './types';
7
- export declare function createUserFeedbackApi(callApi: CallApi): {
8
- createUserFeedback: ({ ...body }: CreateUserFeedbackRequest) => Promise<import("../core/types").ApiResult<null>>;
9
- };
@@ -1,15 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import z from 'zod';
6
- export declare const createUserFeedbackRequestSchema: z.ZodObject<{
7
- provider_id: z.ZodString;
8
- context_id: z.ZodString;
9
- task_id: z.ZodString;
10
- message: z.ZodString;
11
- rating: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
12
- comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- comment_tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
14
- }, z.core.$strip>;
15
- export declare const createUserFeedbackResponseSchema: z.ZodNull;
@@ -1,8 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type z from 'zod';
6
- import type { createUserFeedbackRequestSchema, createUserFeedbackResponseSchema } from './schemas';
7
- export type CreateUserFeedbackRequest = z.infer<typeof createUserFeedbackRequestSchema>;
8
- export type CreateUserFeedbackResponse = z.infer<typeof createUserFeedbackResponseSchema>;
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { CallApi } from '../core/types';
6
- export declare function createUsersApi(callApi: CallApi): {
7
- readUser: () => Promise<import("../core/types").ApiResult<{
8
- id: string;
9
- role: import("./types").UserRole;
10
- email: string;
11
- created_at: string;
12
- }>>;
13
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import z from 'zod';
6
- import { UserRole } from './types';
7
- export declare const userRoleSchema: z.ZodEnum<typeof UserRole>;
8
- export declare const userSchema: z.ZodObject<{
9
- id: z.ZodString;
10
- role: z.ZodEnum<typeof UserRole>;
11
- email: z.ZodString;
12
- created_at: z.ZodString;
13
- }, z.core.$strip>;
14
- export declare const readUserRequestSchema: z.ZodNever;
15
- export declare const readUserResponseSchema: z.ZodObject<{
16
- id: z.ZodString;
17
- role: z.ZodEnum<typeof UserRole>;
18
- email: z.ZodString;
19
- created_at: z.ZodString;
20
- }, z.core.$strip>;
@@ -1,14 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type z from 'zod';
6
- import type { readUserRequestSchema, readUserResponseSchema, userSchema } from './schemas';
7
- export declare enum UserRole {
8
- Admin = "admin",
9
- Developer = "developer",
10
- User = "user"
11
- }
12
- export type User = z.infer<typeof userSchema>;
13
- export type ReadUserRequest = z.infer<typeof readUserRequestSchema>;
14
- export type ReadUserResponse = z.infer<typeof readUserResponseSchema>;
@@ -1,12 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { CallApi } from '../core/types';
6
- import type { UpdateVariablesRequest } from './types';
7
- export declare function createVariablesApi(callApi: CallApi): {
8
- listVariables: () => Promise<import("../core/types").ApiResult<{
9
- variables: Record<string, string>;
10
- }>>;
11
- updateVariables: ({ ...body }: UpdateVariablesRequest) => Promise<import("../core/types").ApiResult<null>>;
12
- };
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import z from 'zod';
6
- export declare const listVariablesRequestSchema: z.ZodNever;
7
- export declare const listVariablesResponseSchema: z.ZodObject<{
8
- variables: z.ZodRecord<z.ZodString, z.ZodString>;
9
- }, z.core.$strip>;
10
- export declare const updateVariablesRequestSchema: z.ZodObject<{
11
- variables: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
12
- }, z.core.$strip>;
13
- export declare const updateVariablesResponseSchema: z.ZodNull;
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type z from 'zod';
6
- import type { listVariablesRequestSchema, listVariablesResponseSchema, updateVariablesRequestSchema, updateVariablesResponseSchema } from './schemas';
7
- export type ListVariablesRequest = z.infer<typeof listVariablesRequestSchema>;
8
- export type ListVariablesResponse = z.infer<typeof listVariablesResponseSchema>;
9
- export type UpdateVariablesRequest = z.infer<typeof updateVariablesRequestSchema>;
10
- export type UpdateVariablesResponse = z.infer<typeof updateVariablesResponseSchema>;
@@ -1,5 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export declare function createAuthenticatedFetch(token: string, baseFetch?: typeof fetch): typeof fetch;
@@ -1,8 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { AgentExtension } from '../../a2a/protocol/types';
6
- import type { A2AServiceExtension, A2AUiExtension } from './types';
7
- export declare function extractUiExtensionData<U extends string, D>(extension: A2AUiExtension<U, D>): (metadata: Record<string, unknown> | undefined | null) => Partial<Record<U, D>>[U] | null;
8
- export declare function extractServiceExtensionDemands<U extends string, D, F>(extension: A2AServiceExtension<U, D, F>): (agentExtensions: AgentExtension[]) => D | null;
@@ -1,8 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { A2AServiceExtension } from './types';
6
- export declare function fulfillServiceExtensionDemand<U extends string, D, F>(extension: A2AServiceExtension<U, D, F>): (metadata: Record<string, unknown>, fulfillment: F) => {
7
- [x: string]: unknown;
8
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { UserMetadataInputs } from './types';
6
- export declare const resolveUserMetadata: (inputs: UserMetadataInputs) => Promise<Record<string, unknown>>;
@@ -1,68 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { z } from 'zod';
6
- import type { OAuthDemands, OAuthFulfillments } from '../../a2a/extensions/auth/oauth/types';
7
- import type { SecretDemands, SecretFulfillments } from '../../a2a/extensions/auth/secrets/types';
8
- import type { FormRender, FormValues } from '../../a2a/extensions/common/form/types';
9
- import type { ApprovalRequest, ApprovalResponse } from '../../a2a/extensions/interactions/approval/types';
10
- import type { EmbeddingDemands, EmbeddingFulfillments } from '../../a2a/extensions/services/embedding/types';
11
- import type { FormDemands, FormFulfillments } from '../../a2a/extensions/services/form/types';
12
- import type { LLMDemands, LLMFulfillments } from '../../a2a/extensions/services/llm/types';
13
- import type { MCPDemands, MCPFulfillments } from '../../a2a/extensions/services/mcp/types';
14
- import type { CanvasEditRequest } from '../../a2a/extensions/ui/canvas/types';
15
- import type { SettingsDemands, SettingsFulfillments } from '../../a2a/extensions/ui/settings/types';
16
- import type { ContextToken } from '../../api/contexts/types';
17
- export interface A2AExtension<U extends string> {
18
- getUri: () => U;
19
- }
20
- export interface A2AUiExtension<U extends string, D> extends A2AExtension<U> {
21
- getMessageMetadataSchema: () => z.ZodSchema<Partial<Record<U, D>>>;
22
- }
23
- export interface A2AServiceExtension<U extends string, D, F> extends A2AExtension<U> {
24
- getDemandsSchema: () => z.ZodSchema<D>;
25
- getFulfillmentsSchema: () => z.ZodSchema<F>;
26
- }
27
- export type Fulfillments = Partial<{
28
- llm: (demand: LLMDemands) => Promise<LLMFulfillments>;
29
- embedding: (demand: EmbeddingDemands) => Promise<EmbeddingFulfillments>;
30
- mcp: (demand: MCPDemands) => Promise<MCPFulfillments>;
31
- oauth: (demand: OAuthDemands) => Promise<OAuthFulfillments>;
32
- settings: (demand: SettingsDemands) => Promise<SettingsFulfillments>;
33
- secrets: (demand: SecretDemands) => Promise<SecretFulfillments>;
34
- form: (demand: FormDemands) => Promise<FormFulfillments>;
35
- oauthRedirectUri: () => string | null;
36
- /**
37
- * @deprecated - keeping this for backwards compatibility, context token is now passed via A2A client headers
38
- */
39
- getContextToken: () => ContextToken;
40
- }>;
41
- export type UserMetadataInputs = Partial<{
42
- form: FormValues;
43
- canvasEditRequest: CanvasEditRequest;
44
- approvalResponse: ApprovalResponse;
45
- }>;
46
- export declare enum TaskStatusUpdateType {
47
- SecretRequired = "secret-required",
48
- FormRequired = "form-required",
49
- OAuthRequired = "oauth-required",
50
- ApprovalRequired = "approval-required"
51
- }
52
- export interface SecretRequiredResult {
53
- type: TaskStatusUpdateType.SecretRequired;
54
- demands: SecretDemands;
55
- }
56
- export interface FormRequiredResult {
57
- type: TaskStatusUpdateType.FormRequired;
58
- form: FormRender;
59
- }
60
- export interface OAuthRequiredResult {
61
- type: TaskStatusUpdateType.OAuthRequired;
62
- url: string;
63
- }
64
- export interface ApprovalRequiredResult {
65
- type: TaskStatusUpdateType.ApprovalRequired;
66
- request: ApprovalRequest;
67
- }
68
- export type TaskStatusUpdateResult = SecretRequiredResult | FormRequiredResult | OAuthRequiredResult | ApprovalRequiredResult;
@@ -1,8 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { LLMDemands, LLMFulfillments } from '../../a2a/extensions/services/llm/types';
6
- import type { ContextToken } from '../../api/contexts/types';
7
- import type { AgentStackClient } from '../../api/core/types';
8
- export declare const buildLLMExtensionFulfillmentResolver: (api: AgentStackClient, token: ContextToken) => ({ llm_demands }: LLMDemands) => Promise<LLMFulfillments>;
@@ -1,128 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { AgentCapabilities } from '../a2a/protocol/types';
6
- import type { Fulfillments } from './extensions/types';
7
- export declare const handleAgentCard: (agentCard: {
8
- capabilities: AgentCapabilities;
9
- }) => {
10
- resolveMetadata: (fulfillments: Fulfillments) => Promise<Record<string, unknown>>;
11
- demands: {
12
- llmDemands: {
13
- llm_demands: Record<string, {
14
- description?: string | null | undefined;
15
- suggested?: string[] | null | undefined;
16
- }>;
17
- } | null;
18
- embeddingDemands: {
19
- embedding_demands: Record<string, {
20
- description?: string | null | undefined;
21
- suggested?: string[] | null | undefined;
22
- }>;
23
- } | null;
24
- mcpDemands: {
25
- mcp_demands: Record<string, {
26
- description?: string | null | undefined;
27
- suggested?: string[] | null | undefined;
28
- allowed_transports?: import("../a2a").MCPTransportType[] | null | undefined;
29
- }>;
30
- } | null;
31
- oauthDemands: {
32
- oauth_demands: Record<string, {
33
- redirect_uri: boolean;
34
- }>;
35
- } | null;
36
- settingsDemands: {
37
- fields: ({
38
- id: string;
39
- type: "checkbox_group";
40
- fields: {
41
- id: string;
42
- label: string;
43
- default_value: boolean;
44
- }[];
45
- } | {
46
- type: "single_select";
47
- id: string;
48
- label: string;
49
- options: {
50
- label: string;
51
- value: string;
52
- }[];
53
- default_value: string;
54
- })[];
55
- } | null;
56
- secretDemands: {
57
- secret_demands: Record<string, {
58
- name: string;
59
- description?: string | null | undefined;
60
- }>;
61
- } | null;
62
- formDemands: {
63
- form_demands: {
64
- initial_form?: {
65
- fields: ({
66
- id: string;
67
- label: string;
68
- type: "text";
69
- required?: boolean | null | undefined;
70
- col_span?: number | null | undefined;
71
- placeholder?: string | null | undefined;
72
- default_value?: string | null | undefined;
73
- auto_resize?: boolean | null | undefined;
74
- } | {
75
- id: string;
76
- label: string;
77
- type: "date";
78
- required?: boolean | null | undefined;
79
- col_span?: number | null | undefined;
80
- placeholder?: string | null | undefined;
81
- default_value?: string | null | undefined;
82
- } | {
83
- id: string;
84
- label: string;
85
- type: "file";
86
- accept: string[];
87
- required?: boolean | null | undefined;
88
- col_span?: number | null | undefined;
89
- } | {
90
- id: string;
91
- label: string;
92
- type: "singleselect";
93
- options: {
94
- id: string;
95
- label: string;
96
- }[];
97
- required?: boolean | null | undefined;
98
- col_span?: number | null | undefined;
99
- default_value?: string | null | undefined;
100
- } | {
101
- id: string;
102
- label: string;
103
- type: "multiselect";
104
- options: {
105
- id: string;
106
- label: string;
107
- }[];
108
- required?: boolean | null | undefined;
109
- col_span?: number | null | undefined;
110
- default_value?: string[] | null | undefined;
111
- } | {
112
- id: string;
113
- label: string;
114
- type: "checkbox";
115
- content: string;
116
- required?: boolean | null | undefined;
117
- col_span?: number | null | undefined;
118
- default_value?: boolean | null | undefined;
119
- })[];
120
- title?: string | null | undefined;
121
- description?: string | null | undefined;
122
- columns?: number | null | undefined;
123
- submit_label?: string | null | undefined;
124
- } | undefined;
125
- };
126
- } | null;
127
- };
128
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { TaskStatusUpdateEvent } from '../a2a/protocol/types';
6
- import type { TaskStatusUpdateResult } from './extensions/types';
7
- export declare const handleTaskStatusUpdate: (event: TaskStatusUpdateEvent) => TaskStatusUpdateResult[];
@@ -1,14 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export * from './create-authenticated-fetch';
6
- export * from './extensions/extract';
7
- export * from './extensions/fulfill';
8
- export * from './extensions/resolve-user-metadata';
9
- export * from './extensions/types';
10
- export * from './fulfillment-resolvers/build-llm-extension-fulfillment-resolver';
11
- export * from './handle-agent-card';
12
- export * from './handle-task-status-update';
13
- export * from './utils/build-message-builder';
14
- export * from './utils/get-agent-card-path';
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { AgentCapabilities, Message } from '../../a2a/protocol/types';
6
- import type { Fulfillments } from '../extensions/types';
7
- export declare const buildMessageBuilder: (agent: {
8
- capabilities: AgentCapabilities;
9
- }) => (contextId: string, fulfillments: Fulfillments, originalMessage: Pick<Message, "parts" | "messageId">) => Promise<Message>;
@@ -1,5 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export declare function getAgentCardPath(providerId: string): string;