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,36 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { ZodError } from 'zod';
6
- import type { ApiRequest, ApiResponse } from '../types';
7
- export declare enum ApiErrorType {
8
- Http = "http",
9
- Network = "network",
10
- Parse = "parse",
11
- Unknown = "unknown",
12
- Validation = "validation"
13
- }
14
- export interface ApiErrorBase {
15
- message: string;
16
- request: ApiRequest;
17
- }
18
- export interface HttpError extends ApiErrorBase {
19
- type: ApiErrorType.Http;
20
- response: ApiResponse;
21
- }
22
- export interface NetworkError extends ApiErrorBase {
23
- type: ApiErrorType.Network;
24
- details: unknown;
25
- }
26
- export interface ParseError extends ApiErrorBase {
27
- type: ApiErrorType.Parse;
28
- response: ApiResponse;
29
- details: Error;
30
- }
31
- export interface ValidationError extends ApiErrorBase {
32
- type: ApiErrorType.Validation;
33
- response: ApiResponse;
34
- details: ZodError;
35
- }
36
- export type ApiError = HttpError | NetworkError | ParseError | ValidationError;
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { HttpError, NetworkError, ParseError, ValidationError } from './types';
6
- import { type ApiError } from './types';
7
- export declare class ApiErrorException extends Error {
8
- apiError: ApiError;
9
- constructor(apiError: ApiError);
10
- }
11
- export declare function isApiError(error: unknown): error is ApiErrorException;
12
- export declare function isHttpError(error: unknown, status?: number): error is ApiErrorException & {
13
- apiError: HttpError;
14
- };
15
- export declare function isNetworkError(error: unknown): error is ApiErrorException & {
16
- apiError: NetworkError;
17
- };
18
- export declare function isParseError(error: unknown): error is ApiErrorException & {
19
- apiError: ParseError;
20
- };
21
- export declare function isValidationError(error: unknown): error is ApiErrorException & {
22
- apiError: ValidationError;
23
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export * from './client';
6
- export * from './errors';
7
- export * from './types';
@@ -1,17 +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 paginationQuerySchema: z.ZodObject<{
7
- limit: z.ZodOptional<z.ZodNumber>;
8
- order: z.ZodOptional<z.ZodString>;
9
- order_by: z.ZodOptional<z.ZodString>;
10
- page_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- }, z.core.$strip>;
12
- export declare const paginatedResponseSchema: z.ZodObject<{
13
- items: z.ZodArray<z.ZodUnknown>;
14
- total_count: z.ZodNumber;
15
- has_more: z.ZodBoolean;
16
- next_page_token: z.ZodNullable<z.ZodString>;
17
- }, z.core.$strip>;
@@ -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 { buildApiClient } from './client';
7
- import type { ApiError } from './errors';
8
- export declare enum ApiMethod {
9
- Get = "GET",
10
- Post = "POST",
11
- Put = "PUT",
12
- Delete = "DELETE",
13
- Patch = "PATCH"
14
- }
15
- export type ApiQueryParams = Record<string, unknown>;
16
- export type ApiRequestBody = Record<string, unknown> | FormData;
17
- export interface ApiParams<T> {
18
- method: ApiMethod;
19
- path: string;
20
- schema: z.ZodSchema<T>;
21
- query?: ApiQueryParams;
22
- body?: ApiRequestBody;
23
- parseAsStream?: boolean;
24
- }
25
- export interface ApiRequest {
26
- method: ApiMethod;
27
- url: string;
28
- }
29
- export interface ApiResponse {
30
- status: number;
31
- statusText: string;
32
- bodyText: ReadableStream<Uint8Array> | string | null;
33
- }
34
- export interface ApiSuccess<T> {
35
- ok: true;
36
- data: T;
37
- response: ApiResponse;
38
- }
39
- export interface ApiFailure {
40
- ok: false;
41
- error: ApiError;
42
- }
43
- export type ApiResult<T> = ApiSuccess<T> | ApiFailure;
44
- export type CallApi = <T>(params: ApiParams<T>) => Promise<ApiResult<T>>;
45
- export type AgentStackClient = ReturnType<typeof buildApiClient>;
@@ -1,23 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import type { ApiMethod, ApiQueryParams, ApiRequestBody } from './types';
6
- export declare function buildRequestUrl({ baseUrl, path, query }: {
7
- baseUrl: string;
8
- path: string;
9
- query?: ApiQueryParams;
10
- }): string;
11
- export declare function buildRequestInit({ method, body }: {
12
- method: ApiMethod;
13
- body?: ApiRequestBody;
14
- }): {
15
- method: ApiMethod;
16
- headers: Headers;
17
- body: string | FormData | undefined;
18
- };
19
- export declare function safeReadText(response: Response): Promise<string | null>;
20
- export declare function parseBodyText(bodyText: ReadableStream<Uint8Array> | string | null, headers: Headers): {
21
- data: unknown;
22
- error?: Error;
23
- };
@@ -1,32 +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 { CreateFileRequest, DeleteFileRequest, ReadFileContentRequest, ReadFileRequest } from './types';
7
- export declare function createFilesApi(callApi: CallApi): {
8
- createFile: ({ context_id, file }: CreateFileRequest) => Promise<import("../core/types").ApiResult<{
9
- id: string;
10
- filename: string;
11
- content_type: string;
12
- file_type: import("./types").FileType;
13
- created_by: string;
14
- created_at: string;
15
- context_id?: string | null | undefined;
16
- file_size_bytes?: number | null | undefined;
17
- parent_file_id?: string | null | undefined;
18
- }>>;
19
- readFile: ({ context_id, file_id }: ReadFileRequest) => Promise<import("../core/types").ApiResult<{
20
- id: string;
21
- filename: string;
22
- content_type: string;
23
- file_type: import("./types").FileType;
24
- created_by: string;
25
- created_at: string;
26
- context_id?: string | null | undefined;
27
- file_size_bytes?: number | null | undefined;
28
- parent_file_id?: string | null | undefined;
29
- }>>;
30
- deleteFile: ({ context_id, file_id }: DeleteFileRequest) => Promise<import("../core/types").ApiResult<null>>;
31
- readFileContent: ({ context_id, file_id }: ReadFileContentRequest) => Promise<import("../core/types").ApiResult<unknown>>;
32
- };
@@ -1,61 +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 { FileType } from './types';
7
- export declare const fileTypeSchema: z.ZodEnum<typeof FileType>;
8
- export declare const fileSchema: z.ZodObject<{
9
- id: z.ZodString;
10
- filename: z.ZodString;
11
- content_type: z.ZodString;
12
- file_type: z.ZodEnum<typeof FileType>;
13
- created_by: z.ZodString;
14
- created_at: z.ZodString;
15
- context_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- file_size_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
- parent_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- }, z.core.$strip>;
19
- export declare const createFileRequestSchema: z.ZodObject<{
20
- context_id: z.ZodNullable<z.ZodString>;
21
- file: z.ZodUnion<readonly [z.ZodFile, z.ZodObject<{
22
- blob: z.ZodCustom<Blob, Blob>;
23
- filename: z.ZodString;
24
- }, z.core.$strip>]>;
25
- }, z.core.$strip>;
26
- export declare const createFileResponseSchema: z.ZodObject<{
27
- id: z.ZodString;
28
- filename: z.ZodString;
29
- content_type: z.ZodString;
30
- file_type: z.ZodEnum<typeof FileType>;
31
- created_by: z.ZodString;
32
- created_at: z.ZodString;
33
- context_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
- file_size_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
- parent_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- }, z.core.$strip>;
37
- export declare const readFileRequestSchema: z.ZodObject<{
38
- context_id: z.ZodNullable<z.ZodString>;
39
- file_id: z.ZodString;
40
- }, z.core.$strip>;
41
- export declare const readFileResponseSchema: z.ZodObject<{
42
- id: z.ZodString;
43
- filename: z.ZodString;
44
- content_type: z.ZodString;
45
- file_type: z.ZodEnum<typeof FileType>;
46
- created_by: z.ZodString;
47
- created_at: z.ZodString;
48
- context_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- file_size_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
- parent_file_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
- }, z.core.$strip>;
52
- export declare const deleteFileRequestSchema: z.ZodObject<{
53
- context_id: z.ZodNullable<z.ZodString>;
54
- file_id: z.ZodString;
55
- }, z.core.$strip>;
56
- export declare const deleteFileResponseSchema: z.ZodNull;
57
- export declare const readFileContentRequestSchema: z.ZodObject<{
58
- context_id: z.ZodNullable<z.ZodString>;
59
- file_id: z.ZodString;
60
- }, z.core.$strip>;
61
- export declare const readFileContentResponseSchema: z.ZodUnknown;
@@ -1,19 +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 { createFileRequestSchema, createFileResponseSchema, deleteFileRequestSchema, deleteFileResponseSchema, fileSchema, readFileContentRequestSchema, readFileContentResponseSchema, readFileRequestSchema, readFileResponseSchema } from './schemas';
7
- export declare enum FileType {
8
- UserUpload = "user_upload",
9
- ExtractedText = "extracted_text"
10
- }
11
- export type File = z.infer<typeof fileSchema>;
12
- export type CreateFileRequest = z.infer<typeof createFileRequestSchema>;
13
- export type CreateFileResponse = z.infer<typeof createFileResponseSchema>;
14
- export type ReadFileRequest = z.infer<typeof readFileRequestSchema>;
15
- export type ReadFileResponse = z.infer<typeof readFileResponseSchema>;
16
- export type DeleteFileRequest = z.infer<typeof deleteFileRequestSchema>;
17
- export type DeleteFileResponse = z.infer<typeof deleteFileResponseSchema>;
18
- export type ReadFileContentRequest = z.infer<typeof readFileContentRequestSchema>;
19
- export type ReadFileContentResponse = z.infer<typeof readFileContentResponseSchema>;
@@ -1,7 +0,0 @@
1
- /**
2
- * Copyright 2025 © BeeAI a Series of LF Projects, LLC
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export * from './core';
6
- export * from './schemas';
7
- export * from './types';
@@ -1,50 +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 { CreateModelProviderRequest, DeleteModelProviderRequest, MatchModelProvidersRequest, ReadModelProviderRequest } from './types';
7
- export declare function createModelProvidersApi(callApi: CallApi): {
8
- listModelProviders: () => Promise<import("../core/types").ApiResult<{
9
- total_count: number;
10
- has_more: boolean;
11
- next_page_token: string | null;
12
- items: {
13
- id: string;
14
- base_url: string;
15
- created_at: string;
16
- capabilities: import("./types").ModelCapability[];
17
- type: import("./types").ModelProviderType;
18
- name?: string | null | undefined;
19
- description?: string | null | undefined;
20
- }[];
21
- }>>;
22
- createModelProvider: ({ ...body }: CreateModelProviderRequest) => Promise<import("../core/types").ApiResult<{
23
- id: string;
24
- base_url: string;
25
- created_at: string;
26
- capabilities: import("./types").ModelCapability[];
27
- type: import("./types").ModelProviderType;
28
- name?: string | null | undefined;
29
- description?: string | null | undefined;
30
- }>>;
31
- readModelProvider: ({ model_provider_id }: ReadModelProviderRequest) => Promise<import("../core/types").ApiResult<{
32
- id: string;
33
- base_url: string;
34
- created_at: string;
35
- capabilities: import("./types").ModelCapability[];
36
- type: import("./types").ModelProviderType;
37
- name?: string | null | undefined;
38
- description?: string | null | undefined;
39
- }>>;
40
- deleteModelProvider: ({ model_provider_id }: DeleteModelProviderRequest) => Promise<import("../core/types").ApiResult<null>>;
41
- matchModelProviders: ({ ...body }: MatchModelProvidersRequest) => Promise<import("../core/types").ApiResult<{
42
- total_count: number;
43
- has_more: boolean;
44
- next_page_token: string | null;
45
- items: {
46
- model_id: string;
47
- score: number;
48
- }[];
49
- }>>;
50
- };
@@ -1,80 +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 { ModelCapability, ModelProviderType } from './types';
7
- export declare const modelCapabilitySchema: z.ZodEnum<typeof ModelCapability>;
8
- export declare const modelProviderTypeSchema: z.ZodEnum<typeof ModelProviderType>;
9
- export declare const modelProviderSchema: z.ZodObject<{
10
- id: z.ZodString;
11
- base_url: z.ZodString;
12
- created_at: z.ZodString;
13
- capabilities: z.ZodArray<z.ZodEnum<typeof ModelCapability>>;
14
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- type: z.ZodEnum<typeof ModelProviderType>;
17
- }, z.core.$strip>;
18
- export declare const listModelProvidersRequestSchema: z.ZodNever;
19
- export declare const listModelProvidersResponseSchema: z.ZodObject<{
20
- total_count: z.ZodNumber;
21
- has_more: z.ZodBoolean;
22
- next_page_token: z.ZodNullable<z.ZodString>;
23
- items: z.ZodArray<z.ZodObject<{
24
- id: z.ZodString;
25
- base_url: z.ZodString;
26
- created_at: z.ZodString;
27
- capabilities: z.ZodArray<z.ZodEnum<typeof ModelCapability>>;
28
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- type: z.ZodEnum<typeof ModelProviderType>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
33
- export declare const createModelProviderRequestSchema: z.ZodObject<{
34
- api_key: z.ZodString;
35
- base_url: z.ZodString;
36
- type: z.ZodEnum<typeof ModelProviderType>;
37
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
- watsonx_project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
- watsonx_space_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
- }, z.core.$strip>;
42
- export declare const createModelProviderResponseSchema: z.ZodObject<{
43
- id: z.ZodString;
44
- base_url: z.ZodString;
45
- created_at: z.ZodString;
46
- capabilities: z.ZodArray<z.ZodEnum<typeof ModelCapability>>;
47
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- type: z.ZodEnum<typeof ModelProviderType>;
50
- }, z.core.$strip>;
51
- export declare const readModelProviderRequestSchema: z.ZodObject<{
52
- model_provider_id: z.ZodString;
53
- }, z.core.$strip>;
54
- export declare const readModelProviderResponseSchema: z.ZodObject<{
55
- id: z.ZodString;
56
- base_url: z.ZodString;
57
- created_at: z.ZodString;
58
- capabilities: z.ZodArray<z.ZodEnum<typeof ModelCapability>>;
59
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
- type: z.ZodEnum<typeof ModelProviderType>;
62
- }, z.core.$strip>;
63
- export declare const deleteModelProviderRequestSchema: z.ZodObject<{
64
- model_provider_id: z.ZodString;
65
- }, z.core.$strip>;
66
- export declare const deleteModelProviderResponseSchema: z.ZodNull;
67
- export declare const matchModelProvidersRequestSchema: z.ZodObject<{
68
- suggested_models: z.ZodNullable<z.ZodArray<z.ZodString>>;
69
- capability: z.ZodEnum<typeof ModelCapability>;
70
- score_cutoff: z.ZodNumber;
71
- }, z.core.$strip>;
72
- export declare const matchModelProvidersResponseSchema: z.ZodObject<{
73
- total_count: z.ZodNumber;
74
- has_more: z.ZodBoolean;
75
- next_page_token: z.ZodNullable<z.ZodString>;
76
- items: z.ZodArray<z.ZodObject<{
77
- model_id: z.ZodString;
78
- score: z.ZodNumber;
79
- }, z.core.$strip>>;
80
- }, z.core.$strip>;
@@ -1,44 +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 { createModelProviderRequestSchema, createModelProviderResponseSchema, deleteModelProviderRequestSchema, deleteModelProviderResponseSchema, listModelProvidersRequestSchema, listModelProvidersResponseSchema, matchModelProvidersRequestSchema, matchModelProvidersResponseSchema, modelProviderSchema, readModelProviderRequestSchema, readModelProviderResponseSchema } from './schemas';
7
- export declare enum ModelCapability {
8
- Llm = "llm",
9
- Embedding = "embedding"
10
- }
11
- export declare enum ModelProviderType {
12
- Anthropic = "anthropic",
13
- Cerebras = "cerebras",
14
- Chutes = "chutes",
15
- Cohere = "cohere",
16
- DeepSeek = "deepseek",
17
- Gemini = "gemini",
18
- GitHub = "github",
19
- Groq = "groq",
20
- Watsonx = "watsonx",
21
- Jan = "jan",
22
- Mistral = "mistral",
23
- Moonshot = "moonshot",
24
- Nvidia = "nvidia",
25
- Ollama = "ollama",
26
- OpenAI = "openai",
27
- OpenRouter = "openrouter",
28
- Perplexity = "perplexity",
29
- Together = "together",
30
- Voyage = "voyage",
31
- Rits = "rits",
32
- Other = "other"
33
- }
34
- export type ModelProvider = z.infer<typeof modelProviderSchema>;
35
- export type ListModelProvidersRequest = z.infer<typeof listModelProvidersRequestSchema>;
36
- export type ListModelProvidersResponse = z.infer<typeof listModelProvidersResponseSchema>;
37
- export type CreateModelProviderRequest = z.infer<typeof createModelProviderRequestSchema>;
38
- export type CreateModelProviderResponse = z.infer<typeof createModelProviderResponseSchema>;
39
- export type ReadModelProviderRequest = z.infer<typeof readModelProviderRequestSchema>;
40
- export type ReadModelProviderResponse = z.infer<typeof readModelProviderResponseSchema>;
41
- export type DeleteModelProviderRequest = z.infer<typeof deleteModelProviderRequestSchema>;
42
- export type DeleteModelProviderResponse = z.infer<typeof deleteModelProviderResponseSchema>;
43
- export type MatchModelProvidersRequest = z.infer<typeof matchModelProvidersRequestSchema>;
44
- export type MatchModelProvidersResponse = z.infer<typeof matchModelProvidersResponseSchema>;
@@ -1,143 +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 { CreateProviderBuildRequest, DeleteProviderBuildRequest, ListProviderBuildsRequest, PreviewProviderBuildRequest, ReadProviderBuildLogsRequest, ReadProviderBuildRequest } from './types';
7
- export declare function createProviderBuildsApi(callApi: CallApi): {
8
- listProviderBuilds: ({ query }: ListProviderBuildsRequest) => Promise<import("../core/types").ApiResult<{
9
- total_count: number;
10
- has_more: boolean;
11
- next_page_token: string | null;
12
- items: {
13
- id: string;
14
- created_at: string;
15
- created_by: string;
16
- provider_origin: string;
17
- status: import("./types").ProviderBuildState;
18
- source: {
19
- host: string;
20
- org: string;
21
- repo: string;
22
- version: string;
23
- version_type: import("..").GitHubVersionType;
24
- commit_hash: string;
25
- path?: string | null | undefined;
26
- };
27
- destination: string;
28
- on_complete: {
29
- type: "add_provider";
30
- auto_stop_timeout_sec?: number | null | undefined;
31
- variables?: Record<string, string> | null | undefined;
32
- } | {
33
- type: "update_provider";
34
- provider_id: string;
35
- } | {
36
- type: "no_action";
37
- };
38
- build_configuration?: {
39
- dockerfile_path?: string | null | undefined;
40
- } | null | undefined;
41
- provider_id?: string | null | undefined;
42
- error_message?: string | null | undefined;
43
- }[];
44
- }>>;
45
- createProviderBuild: ({ ...body }: CreateProviderBuildRequest) => Promise<import("../core/types").ApiResult<{
46
- id: string;
47
- created_at: string;
48
- created_by: string;
49
- provider_origin: string;
50
- status: import("./types").ProviderBuildState;
51
- source: {
52
- host: string;
53
- org: string;
54
- repo: string;
55
- version: string;
56
- version_type: import("..").GitHubVersionType;
57
- commit_hash: string;
58
- path?: string | null | undefined;
59
- };
60
- destination: string;
61
- on_complete: {
62
- type: "add_provider";
63
- auto_stop_timeout_sec?: number | null | undefined;
64
- variables?: Record<string, string> | null | undefined;
65
- } | {
66
- type: "update_provider";
67
- provider_id: string;
68
- } | {
69
- type: "no_action";
70
- };
71
- build_configuration?: {
72
- dockerfile_path?: string | null | undefined;
73
- } | null | undefined;
74
- provider_id?: string | null | undefined;
75
- error_message?: string | null | undefined;
76
- }>>;
77
- readProviderBuild: ({ id }: ReadProviderBuildRequest) => Promise<import("../core/types").ApiResult<{
78
- id: string;
79
- created_at: string;
80
- created_by: string;
81
- provider_origin: string;
82
- status: import("./types").ProviderBuildState;
83
- source: {
84
- host: string;
85
- org: string;
86
- repo: string;
87
- version: string;
88
- version_type: import("..").GitHubVersionType;
89
- commit_hash: string;
90
- path?: string | null | undefined;
91
- };
92
- destination: string;
93
- on_complete: {
94
- type: "add_provider";
95
- auto_stop_timeout_sec?: number | null | undefined;
96
- variables?: Record<string, string> | null | undefined;
97
- } | {
98
- type: "update_provider";
99
- provider_id: string;
100
- } | {
101
- type: "no_action";
102
- };
103
- build_configuration?: {
104
- dockerfile_path?: string | null | undefined;
105
- } | null | undefined;
106
- provider_id?: string | null | undefined;
107
- error_message?: string | null | undefined;
108
- }>>;
109
- deleteProviderBuild: ({ id }: DeleteProviderBuildRequest) => Promise<import("../core/types").ApiResult<null>>;
110
- readProviderBuildLogs: ({ id }: ReadProviderBuildLogsRequest) => Promise<import("../core/types").ApiResult<ReadableStream<Uint8Array<ArrayBuffer>>>>;
111
- previewProviderBuild: ({ ...body }: PreviewProviderBuildRequest) => Promise<import("../core/types").ApiResult<{
112
- id: string;
113
- created_at: string;
114
- created_by: string;
115
- provider_origin: string;
116
- status: import("./types").ProviderBuildState;
117
- source: {
118
- host: string;
119
- org: string;
120
- repo: string;
121
- version: string;
122
- version_type: import("..").GitHubVersionType;
123
- commit_hash: string;
124
- path?: string | null | undefined;
125
- };
126
- destination: string;
127
- on_complete: {
128
- type: "add_provider";
129
- auto_stop_timeout_sec?: number | null | undefined;
130
- variables?: Record<string, string> | null | undefined;
131
- } | {
132
- type: "update_provider";
133
- provider_id: string;
134
- } | {
135
- type: "no_action";
136
- };
137
- build_configuration?: {
138
- dockerfile_path?: string | null | undefined;
139
- } | null | undefined;
140
- provider_id?: string | null | undefined;
141
- error_message?: string | null | undefined;
142
- }>>;
143
- };