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.
- package/README.md +36 -29
- package/dist/api.cjs +1994 -2
- package/dist/api.d.cts +29 -0
- package/dist/api.d.ts +25 -1
- package/dist/api.js +1801 -2
- package/dist/core-DcGxYeok.d.ts +1238 -0
- package/dist/core-XN6gWSAb.d.cts +1238 -0
- package/dist/core.cjs +1773 -2
- package/dist/core.d.cts +7 -0
- package/dist/core.d.ts +7 -5
- package/dist/core.js +1725 -2
- package/dist/extensions.cjs +798 -2
- package/dist/extensions.d.cts +244 -0
- package/dist/extensions.d.ts +240 -1
- package/dist/extensions.js +652 -2
- package/dist/index.cjs +3142 -2
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -7
- package/dist/index.js +2781 -2
- package/dist/index.umd.js +16509 -2
- package/dist/schemas-Dy3P_eAt.d.cts +57 -0
- package/dist/schemas-Dy3P_eAt.d.ts +57 -0
- package/dist/server.cjs +2762 -0
- package/dist/server.d.cts +244 -0
- package/dist/server.d.ts +244 -0
- package/dist/server.js +2716 -0
- package/dist/types-B5B3b0V2.d.cts +396 -0
- package/dist/types-B5B3b0V2.d.ts +396 -0
- package/dist/types-CmEs5_Ag.d.cts +3522 -0
- package/dist/types-DJm5-rZZ.d.ts +3522 -0
- package/dist/types-DvLt-XuC.d.ts +866 -0
- package/dist/types-E26YDM19.d.cts +866 -0
- package/dist/types-MfIzGgpV.d.cts +43 -0
- package/dist/types-MfIzGgpV.d.ts +43 -0
- package/package.json +36 -21
- package/src/client/a2a/extensions/auth/oauth/index.ts +6 -6
- package/src/client/a2a/extensions/auth/secrets/index.ts +6 -6
- package/src/client/a2a/extensions/interactions/approval/index.ts +7 -7
- package/src/client/a2a/extensions/services/embedding/index.ts +7 -3
- package/src/client/a2a/extensions/services/form/index.ts +3 -3
- package/src/client/a2a/extensions/services/llm/index.ts +3 -3
- package/src/client/a2a/extensions/services/mcp/index.ts +3 -3
- package/src/client/a2a/extensions/services/platform-api/index.ts +2 -2
- package/src/client/a2a/extensions/ui/agent-detail/index.ts +4 -4
- package/src/client/a2a/extensions/ui/canvas/index.ts +4 -4
- package/src/client/a2a/extensions/ui/citation/index.ts +4 -4
- package/src/client/a2a/extensions/ui/error/index.ts +4 -4
- package/src/client/a2a/extensions/ui/form-request/index.ts +4 -4
- package/src/client/a2a/extensions/ui/settings/index.ts +7 -3
- package/src/client/a2a/extensions/ui/trajectory/index.ts +4 -4
- package/src/client/core/extensions/types.ts +8 -1
- package/src/client/core/handle-task-status-update.ts +10 -3
- package/src/client/core/index.ts +1 -0
- package/src/client/core/utils/extract-text-from-message.ts +15 -0
- package/src/examples/hello-world.ts +34 -0
- package/src/experimental/server/a2a/extensions/agent-detail/index.ts +35 -0
- package/src/experimental/server/a2a/extensions/agent-detail/types.ts +10 -0
- package/src/experimental/server/a2a/extensions/index.ts +11 -0
- package/src/experimental/server/a2a/extensions/llm/index.ts +70 -0
- package/src/experimental/server/a2a/extensions/llm/types.ts +16 -0
- package/src/experimental/server/a2a/extensions/platform-self-registration/index.ts +34 -0
- package/src/experimental/server/a2a/extensions/platform-self-registration/types.ts +10 -0
- package/src/experimental/server/a2a/helpers.ts +95 -0
- package/{dist/client/a2a/index.d.ts → src/experimental/server/a2a/index.ts} +1 -1
- package/src/experimental/server/a2a/utils.ts +43 -0
- package/src/experimental/server/core/config/index.ts +17 -0
- package/src/experimental/server/core/config/schemas.ts +15 -0
- package/src/experimental/server/core/config/types.ts +10 -0
- package/src/experimental/server/core/context/index.ts +18 -0
- package/src/experimental/server/core/extensions/types.ts +24 -0
- package/{dist/client/a2a/protocol/index.d.ts → src/experimental/server/core/index.ts} +4 -0
- package/{dist/client/a2a/protocol/tests.d.ts → src/experimental/server/core/schemas.ts} +2 -1
- package/src/experimental/server/core/server/autoregistration.ts +142 -0
- package/src/experimental/server/core/server/executor.ts +284 -0
- package/src/experimental/server/core/server/helpers.ts +12 -0
- package/src/experimental/server/core/server/index.ts +166 -0
- package/src/experimental/server/core/server/types.ts +58 -0
- package/src/experimental/server/core/types.ts +8 -0
- package/src/experimental/server/core/utils.ts +59 -0
- package/{dist/client/api/core/errors/index.d.ts → src/server.ts} +3 -2
- package/dist/api.cjs.map +0 -1
- package/dist/api.js.map +0 -1
- package/dist/api.umd.js +0 -2
- package/dist/api.umd.js.map +0 -1
- package/dist/client/a2a/extensions/auth/oauth/index.d.ts +0 -10
- package/dist/client/a2a/extensions/auth/oauth/schemas.d.ts +0 -32
- package/dist/client/a2a/extensions/auth/oauth/types.d.ts +0 -13
- package/dist/client/a2a/extensions/auth/secrets/index.d.ts +0 -10
- package/dist/client/a2a/extensions/auth/secrets/schemas.d.ts +0 -23
- package/dist/client/a2a/extensions/auth/secrets/types.d.ts +0 -10
- package/dist/client/a2a/extensions/common/form/schemas.d.ts +0 -290
- package/dist/client/a2a/extensions/common/form/types.d.ts +0 -24
- package/dist/client/a2a/extensions/index.d.ts +0 -21
- package/dist/client/a2a/extensions/interactions/approval/index.d.ts +0 -10
- package/dist/client/a2a/extensions/interactions/approval/schemas.d.ts +0 -43
- package/dist/client/a2a/extensions/interactions/approval/types.d.ts +0 -14
- package/dist/client/a2a/extensions/schemas.d.ts +0 -19
- package/dist/client/a2a/extensions/services/embedding/index.d.ts +0 -9
- package/dist/client/a2a/extensions/services/embedding/schemas.d.ts +0 -29
- package/dist/client/a2a/extensions/services/embedding/types.d.ts +0 -10
- package/dist/client/a2a/extensions/services/form/index.d.ts +0 -9
- package/dist/client/a2a/extensions/services/form/schemas.d.ts +0 -97
- package/dist/client/a2a/extensions/services/form/types.d.ts +0 -8
- package/dist/client/a2a/extensions/services/llm/index.d.ts +0 -9
- package/dist/client/a2a/extensions/services/llm/schemas.d.ts +0 -29
- package/dist/client/a2a/extensions/services/llm/types.d.ts +0 -10
- package/dist/client/a2a/extensions/services/mcp/index.d.ts +0 -9
- package/dist/client/a2a/extensions/services/mcp/schemas.d.ts +0 -35
- package/dist/client/a2a/extensions/services/mcp/types.d.ts +0 -14
- package/dist/client/a2a/extensions/services/platform-api/index.d.ts +0 -11
- package/dist/client/a2a/extensions/services/platform-api/schemas.d.ts +0 -10
- package/dist/client/a2a/extensions/services/platform-api/types.d.ts +0 -7
- package/dist/client/a2a/extensions/types.d.ts +0 -19
- package/dist/client/a2a/extensions/ui/agent-detail/index.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/agent-detail/schemas.d.ts +0 -41
- package/dist/client/a2a/extensions/ui/agent-detail/types.d.ts +0 -13
- package/dist/client/a2a/extensions/ui/canvas/index.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/canvas/schemas.d.ts +0 -11
- package/dist/client/a2a/extensions/ui/canvas/types.d.ts +0 -7
- package/dist/client/a2a/extensions/ui/citation/index.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/citation/schemas.d.ts +0 -21
- package/dist/client/a2a/extensions/ui/citation/types.d.ts +0 -8
- package/dist/client/a2a/extensions/ui/error/index.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/error/schemas.d.ts +0 -30
- package/dist/client/a2a/extensions/ui/error/types.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/form-request/index.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/settings/index.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/settings/schemas.d.ts +0 -113
- package/dist/client/a2a/extensions/ui/settings/types.d.ts +0 -18
- package/dist/client/a2a/extensions/ui/trajectory/index.d.ts +0 -9
- package/dist/client/a2a/extensions/ui/trajectory/schemas.d.ts +0 -10
- package/dist/client/a2a/extensions/ui/trajectory/types.d.ts +0 -7
- package/dist/client/a2a/protocol/schemas.d.ts +0 -988
- package/dist/client/a2a/protocol/types.d.ts +0 -52
- package/dist/client/a2a/protocol/utils.d.ts +0 -6
- package/dist/client/api/common/schemas.d.ts +0 -30
- package/dist/client/api/common/types.d.ts +0 -18
- package/dist/client/api/configuration/api.d.ts +0 -22
- package/dist/client/api/configuration/schemas.d.ts +0 -31
- package/dist/client/api/configuration/types.d.ts +0 -11
- package/dist/client/api/connectors/api.d.ts +0 -78
- package/dist/client/api/connectors/schemas.d.ts +0 -114
- package/dist/client/api/connectors/types.d.ts +0 -28
- package/dist/client/api/contexts/api.d.ts +0 -133
- package/dist/client/api/contexts/schemas.d.ts +0 -359
- package/dist/client/api/contexts/types.d.ts +0 -34
- package/dist/client/api/core/client.d.ts +0 -1273
- package/dist/client/api/core/errors/types.d.ts +0 -36
- package/dist/client/api/core/errors/utils.d.ts +0 -23
- package/dist/client/api/core/index.d.ts +0 -7
- package/dist/client/api/core/schemas.d.ts +0 -17
- package/dist/client/api/core/types.d.ts +0 -45
- package/dist/client/api/core/utils.d.ts +0 -23
- package/dist/client/api/files/api.d.ts +0 -32
- package/dist/client/api/files/schemas.d.ts +0 -61
- package/dist/client/api/files/types.d.ts +0 -19
- package/dist/client/api/index.d.ts +0 -7
- package/dist/client/api/model-providers/api.d.ts +0 -50
- package/dist/client/api/model-providers/schemas.d.ts +0 -80
- package/dist/client/api/model-providers/types.d.ts +0 -44
- package/dist/client/api/provider-builds/api.d.ts +0 -143
- package/dist/client/api/provider-builds/schemas.d.ts +0 -250
- package/dist/client/api/provider-builds/types.d.ts +0 -31
- package/dist/client/api/providers/api.d.ts +0 -847
- package/dist/client/api/providers/schemas.d.ts +0 -1335
- package/dist/client/api/providers/types.d.ts +0 -45
- package/dist/client/api/schemas.d.ts +0 -15
- package/dist/client/api/types.d.ts +0 -15
- package/dist/client/api/user-feedback/api.d.ts +0 -9
- package/dist/client/api/user-feedback/schemas.d.ts +0 -15
- package/dist/client/api/user-feedback/types.d.ts +0 -8
- package/dist/client/api/users/api.d.ts +0 -13
- package/dist/client/api/users/schemas.d.ts +0 -20
- package/dist/client/api/users/types.d.ts +0 -14
- package/dist/client/api/variables/api.d.ts +0 -12
- package/dist/client/api/variables/schemas.d.ts +0 -13
- package/dist/client/api/variables/types.d.ts +0 -10
- package/dist/client/core/create-authenticated-fetch.d.ts +0 -5
- package/dist/client/core/extensions/extract.d.ts +0 -8
- package/dist/client/core/extensions/fulfill.d.ts +0 -8
- package/dist/client/core/extensions/resolve-user-metadata.d.ts +0 -6
- package/dist/client/core/extensions/types.d.ts +0 -68
- package/dist/client/core/fulfillment-resolvers/build-llm-extension-fulfillment-resolver.d.ts +0 -8
- package/dist/client/core/handle-agent-card.d.ts +0 -128
- package/dist/client/core/handle-task-status-update.d.ts +0 -7
- package/dist/client/core/index.d.ts +0 -14
- package/dist/client/core/utils/build-message-builder.d.ts +0 -9
- package/dist/client/core/utils/get-agent-card-path.d.ts +0 -5
- package/dist/core.cjs.map +0 -1
- package/dist/core.js.map +0 -1
- package/dist/core.umd.js +0 -2
- package/dist/core.umd.js.map +0 -1
- package/dist/extensions.cjs.map +0 -1
- package/dist/extensions.js.map +0 -1
- package/dist/extensions.umd.js +0 -2
- package/dist/extensions.umd.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
|
@@ -1,52 +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 { agentCapabilitiesSchema, agentCardSchema, agentCardSignatureSchema, agentExtensionSchema, agentInterfaceSchema, agentProviderSchema, agentSkillSchema, apiKeySecuritySchemeSchema, artifactSchema, authenticatedExtendedCardNotConfiguredErrorSchema, authorizationCodeOAuthFlowSchema, clientCredentialsOAuthFlowSchema, contentTypeNotSupportedErrorSchema, dataPartSchema, filePartSchema, fileWithBytesSchema, fileWithUriSchema, getTaskResponseSchema, getTaskSuccessResponseSchema, httpAuthSecuritySchemeSchema, implicitOAuthFlowSchema, internalErrorSchema, invalidAgentResponseErrorSchema, invalidParamsErrorSchema, invalidRequestErrorSchema, jsonParseErrorSchema, jsonRpcErrorResponseSchema, jsonRpcErrorSchema, messageSchema, methodNotFoundErrorSchema, mutualTlsSecuritySchemeSchema, oauth2SecuritySchemeSchema, oauthFlowsSchema, openIdConnectSecuritySchemeSchema, partSchema, passwordOAuthFlowSchema, pushNotificationNotSupportedErrorSchema, securitySchemeSchema, taskArtifactUpdateEventSchema, taskNotCancelableErrorSchema, taskNotFoundErrorSchema, taskSchema, taskStatusSchema, taskStatusUpdateEventSchema, textPartSchema, unsupportedOperationErrorSchema } from './schemas';
|
|
7
|
-
export type AgentInterface = z.infer<typeof agentInterfaceSchema>;
|
|
8
|
-
export type AgentExtension = z.infer<typeof agentExtensionSchema>;
|
|
9
|
-
export type AgentCapabilities = z.infer<typeof agentCapabilitiesSchema>;
|
|
10
|
-
export type AgentProvider = z.infer<typeof agentProviderSchema>;
|
|
11
|
-
export type AgentCardSignature = z.infer<typeof agentCardSignatureSchema>;
|
|
12
|
-
export type AgentSkill = z.infer<typeof agentSkillSchema>;
|
|
13
|
-
export type AuthorizationCodeOAuthFlow = z.infer<typeof authorizationCodeOAuthFlowSchema>;
|
|
14
|
-
export type ClientCredentialsOAuthFlow = z.infer<typeof clientCredentialsOAuthFlowSchema>;
|
|
15
|
-
export type ImplicitOAuthFlow = z.infer<typeof implicitOAuthFlowSchema>;
|
|
16
|
-
export type PasswordOAuthFlow = z.infer<typeof passwordOAuthFlowSchema>;
|
|
17
|
-
export type OAuthFlows = z.infer<typeof oauthFlowsSchema>;
|
|
18
|
-
export type APIKeySecurityScheme = z.infer<typeof apiKeySecuritySchemeSchema>;
|
|
19
|
-
export type HTTPAuthSecurityScheme = z.infer<typeof httpAuthSecuritySchemeSchema>;
|
|
20
|
-
export type OAuth2SecurityScheme = z.infer<typeof oauth2SecuritySchemeSchema>;
|
|
21
|
-
export type OpenIdConnectSecurityScheme = z.infer<typeof openIdConnectSecuritySchemeSchema>;
|
|
22
|
-
export type MutualTLSSecurityScheme = z.infer<typeof mutualTlsSecuritySchemeSchema>;
|
|
23
|
-
export type SecurityScheme = z.infer<typeof securitySchemeSchema>;
|
|
24
|
-
export type AgentCard = z.infer<typeof agentCardSchema>;
|
|
25
|
-
export type FileWithBytes = z.infer<typeof fileWithBytesSchema>;
|
|
26
|
-
export type FileWithUri = z.infer<typeof fileWithUriSchema>;
|
|
27
|
-
export type TextPart = z.infer<typeof textPartSchema>;
|
|
28
|
-
export type FilePart = z.infer<typeof filePartSchema>;
|
|
29
|
-
export type DataPart = z.infer<typeof dataPartSchema>;
|
|
30
|
-
export type Part = z.infer<typeof partSchema>;
|
|
31
|
-
export type Artifact = z.infer<typeof artifactSchema>;
|
|
32
|
-
export type Message = z.infer<typeof messageSchema>;
|
|
33
|
-
export type TaskStatus = z.infer<typeof taskStatusSchema>;
|
|
34
|
-
export type TaskStatusUpdateEvent = z.infer<typeof taskStatusUpdateEventSchema>;
|
|
35
|
-
export type Task = z.infer<typeof taskSchema>;
|
|
36
|
-
export type TaskArtifactUpdateEvent = z.infer<typeof taskArtifactUpdateEventSchema>;
|
|
37
|
-
export type JSONRPCError = z.infer<typeof jsonRpcErrorSchema>;
|
|
38
|
-
export type JSONParseError = z.infer<typeof jsonParseErrorSchema>;
|
|
39
|
-
export type InvalidRequestError = z.infer<typeof invalidRequestErrorSchema>;
|
|
40
|
-
export type MethodNotFoundError = z.infer<typeof methodNotFoundErrorSchema>;
|
|
41
|
-
export type InvalidParamsError = z.infer<typeof invalidParamsErrorSchema>;
|
|
42
|
-
export type InternalError = z.infer<typeof internalErrorSchema>;
|
|
43
|
-
export type TaskNotFoundError = z.infer<typeof taskNotFoundErrorSchema>;
|
|
44
|
-
export type TaskNotCancelableError = z.infer<typeof taskNotCancelableErrorSchema>;
|
|
45
|
-
export type PushNotificationNotSupportedError = z.infer<typeof pushNotificationNotSupportedErrorSchema>;
|
|
46
|
-
export type UnsupportedOperationError = z.infer<typeof unsupportedOperationErrorSchema>;
|
|
47
|
-
export type ContentTypeNotSupportedError = z.infer<typeof contentTypeNotSupportedErrorSchema>;
|
|
48
|
-
export type InvalidAgentResponseError = z.infer<typeof invalidAgentResponseErrorSchema>;
|
|
49
|
-
export type AuthenticatedExtendedCardNotConfiguredError = z.infer<typeof authenticatedExtendedCardNotConfiguredErrorSchema>;
|
|
50
|
-
export type JSONRPCErrorResponse = z.infer<typeof jsonRpcErrorResponseSchema>;
|
|
51
|
-
export type GetTaskSuccessResponse = z.infer<typeof getTaskSuccessResponseSchema>;
|
|
52
|
-
export type GetTaskResponse = z.infer<typeof getTaskResponseSchema>;
|
|
@@ -1,30 +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 { GitHubVersionType } from './types';
|
|
7
|
-
export declare const gitHubVersionTypeSchema: z.ZodEnum<typeof GitHubVersionType>;
|
|
8
|
-
export declare const gitHubRegistryLocationSchema: z.ZodString;
|
|
9
|
-
export declare const networkRegistryLocationSchema: z.ZodString;
|
|
10
|
-
export declare const fileSystemRegistryLocationSchema: z.ZodString;
|
|
11
|
-
export declare const dockerImageIdSchema: z.ZodString;
|
|
12
|
-
export declare const dockerImageProviderLocationSchema: z.ZodString;
|
|
13
|
-
export declare const networkProviderLocationSchema: z.ZodString;
|
|
14
|
-
export declare const resolvedGitHubUrlSchema: z.ZodObject<{
|
|
15
|
-
host: z.ZodString;
|
|
16
|
-
org: z.ZodString;
|
|
17
|
-
repo: z.ZodString;
|
|
18
|
-
version: z.ZodString;
|
|
19
|
-
version_type: z.ZodEnum<typeof GitHubVersionType>;
|
|
20
|
-
commit_hash: z.ZodString;
|
|
21
|
-
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
export declare const resolvedDockerImageIdSchema: z.ZodObject<{
|
|
24
|
-
registry: z.ZodString;
|
|
25
|
-
repository: z.ZodString;
|
|
26
|
-
tag: z.ZodString;
|
|
27
|
-
digest: z.ZodString;
|
|
28
|
-
image_id: z.ZodString;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export declare const readableStreamSchema: z.ZodCustom<ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>>;
|
|
@@ -1,18 +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 { dockerImageIdSchema, dockerImageProviderLocationSchema, fileSystemRegistryLocationSchema, gitHubRegistryLocationSchema, networkProviderLocationSchema, networkRegistryLocationSchema, resolvedDockerImageIdSchema, resolvedGitHubUrlSchema } from './schemas';
|
|
7
|
-
export declare enum GitHubVersionType {
|
|
8
|
-
Head = "head",
|
|
9
|
-
Tag = "tag"
|
|
10
|
-
}
|
|
11
|
-
export type GitHubRegistryLocation = z.infer<typeof gitHubRegistryLocationSchema>;
|
|
12
|
-
export type NetworkRegistryLocation = z.infer<typeof networkRegistryLocationSchema>;
|
|
13
|
-
export type FileSystemRegistryLocation = z.infer<typeof fileSystemRegistryLocationSchema>;
|
|
14
|
-
export type DockerImageId = z.infer<typeof dockerImageIdSchema>;
|
|
15
|
-
export type DockerImageProviderLocation = z.infer<typeof dockerImageProviderLocationSchema>;
|
|
16
|
-
export type NetworkProviderLocation = z.infer<typeof networkProviderLocationSchema>;
|
|
17
|
-
export type ResolvedGitHubUrl = z.infer<typeof resolvedGitHubUrlSchema>;
|
|
18
|
-
export type ResolvedDockerImageId = z.infer<typeof resolvedDockerImageIdSchema>;
|
|
@@ -1,22 +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 { UpdateSystemConfigurationRequest } from './types';
|
|
7
|
-
export declare function createConfigurationApi(callApi: CallApi): {
|
|
8
|
-
readSystemConfiguration: () => Promise<import("../core/types").ApiResult<{
|
|
9
|
-
id: string;
|
|
10
|
-
created_by: string;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
default_embedding_model?: string | null | undefined;
|
|
13
|
-
default_llm_model?: string | null | undefined;
|
|
14
|
-
}>>;
|
|
15
|
-
updateSystemConfiguration: ({ ...body }: UpdateSystemConfigurationRequest) => Promise<import("../core/types").ApiResult<{
|
|
16
|
-
id: string;
|
|
17
|
-
created_by: string;
|
|
18
|
-
updated_at: string;
|
|
19
|
-
default_embedding_model?: string | null | undefined;
|
|
20
|
-
default_llm_model?: string | null | undefined;
|
|
21
|
-
}>>;
|
|
22
|
-
};
|
|
@@ -1,31 +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 systemConfigurationSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
created_by: z.ZodString;
|
|
9
|
-
updated_at: z.ZodString;
|
|
10
|
-
default_embedding_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
default_llm_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export declare const readSystemConfigurationRequestSchema: z.ZodNever;
|
|
14
|
-
export declare const readSystemConfigurationResponseSchema: z.ZodObject<{
|
|
15
|
-
id: z.ZodString;
|
|
16
|
-
created_by: z.ZodString;
|
|
17
|
-
updated_at: z.ZodString;
|
|
18
|
-
default_embedding_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
default_llm_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export declare const updateSystemConfigurationRequestSchema: z.ZodObject<{
|
|
22
|
-
default_embedding_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
default_llm_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
export declare const updateSystemConfigurationResponseSchema: z.ZodObject<{
|
|
26
|
-
id: z.ZodString;
|
|
27
|
-
created_by: z.ZodString;
|
|
28
|
-
updated_at: z.ZodString;
|
|
29
|
-
default_embedding_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
default_llm_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$strip>;
|
|
@@ -1,11 +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 { readSystemConfigurationRequestSchema, readSystemConfigurationResponseSchema, systemConfigurationSchema, updateSystemConfigurationRequestSchema, updateSystemConfigurationResponseSchema } from './schemas';
|
|
7
|
-
export type SystemConfiguration = z.infer<typeof systemConfigurationSchema>;
|
|
8
|
-
export type ReadSystemConfigurationRequest = z.infer<typeof readSystemConfigurationRequestSchema>;
|
|
9
|
-
export type ReadSystemConfigurationResponse = z.infer<typeof readSystemConfigurationResponseSchema>;
|
|
10
|
-
export type UpdateSystemConfigurationRequest = z.infer<typeof updateSystemConfigurationRequestSchema>;
|
|
11
|
-
export type UpdateSystemConfigurationResponse = z.infer<typeof updateSystemConfigurationResponseSchema>;
|
|
@@ -1,78 +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 { ConnectConnectorRequest, CreateConnectorRequest, DeleteConnectorRequest, DisconnectConnectorRequest, ReadConnectorRequest } from './types';
|
|
7
|
-
export declare function createConnectorsApi(callApi: CallApi): {
|
|
8
|
-
listConnectors: () => 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
|
-
url: string;
|
|
15
|
-
state: import("./types").ConnectorState;
|
|
16
|
-
auth_request: {
|
|
17
|
-
type: "code";
|
|
18
|
-
authorization_endpoint: string;
|
|
19
|
-
} | null;
|
|
20
|
-
disconnect_reason: string | null;
|
|
21
|
-
metadata: Record<string, string> | null;
|
|
22
|
-
}[];
|
|
23
|
-
}>>;
|
|
24
|
-
createConnector: ({ ...body }: CreateConnectorRequest) => Promise<import("../core/types").ApiResult<{
|
|
25
|
-
id: string;
|
|
26
|
-
url: string;
|
|
27
|
-
state: import("./types").ConnectorState;
|
|
28
|
-
auth_request: {
|
|
29
|
-
type: "code";
|
|
30
|
-
authorization_endpoint: string;
|
|
31
|
-
} | null;
|
|
32
|
-
disconnect_reason: string | null;
|
|
33
|
-
metadata: Record<string, string> | null;
|
|
34
|
-
}>>;
|
|
35
|
-
readConnector: ({ connector_id }: ReadConnectorRequest) => Promise<import("../core/types").ApiResult<{
|
|
36
|
-
id: string;
|
|
37
|
-
url: string;
|
|
38
|
-
state: import("./types").ConnectorState;
|
|
39
|
-
auth_request: {
|
|
40
|
-
type: "code";
|
|
41
|
-
authorization_endpoint: string;
|
|
42
|
-
} | null;
|
|
43
|
-
disconnect_reason: string | null;
|
|
44
|
-
metadata: Record<string, string> | null;
|
|
45
|
-
}>>;
|
|
46
|
-
deleteConnector: ({ connector_id }: DeleteConnectorRequest) => Promise<import("../core/types").ApiResult<null>>;
|
|
47
|
-
connectConnector: ({ connector_id, ...body }: ConnectConnectorRequest) => Promise<import("../core/types").ApiResult<{
|
|
48
|
-
id: string;
|
|
49
|
-
url: string;
|
|
50
|
-
state: import("./types").ConnectorState;
|
|
51
|
-
auth_request: {
|
|
52
|
-
type: "code";
|
|
53
|
-
authorization_endpoint: string;
|
|
54
|
-
} | null;
|
|
55
|
-
disconnect_reason: string | null;
|
|
56
|
-
metadata: Record<string, string> | null;
|
|
57
|
-
}>>;
|
|
58
|
-
disconnectConnector: ({ connector_id }: DisconnectConnectorRequest) => Promise<import("../core/types").ApiResult<{
|
|
59
|
-
id: string;
|
|
60
|
-
url: string;
|
|
61
|
-
state: import("./types").ConnectorState;
|
|
62
|
-
auth_request: {
|
|
63
|
-
type: "code";
|
|
64
|
-
authorization_endpoint: string;
|
|
65
|
-
} | null;
|
|
66
|
-
disconnect_reason: string | null;
|
|
67
|
-
metadata: Record<string, string> | null;
|
|
68
|
-
}>>;
|
|
69
|
-
listConnectorPresets: () => Promise<import("../core/types").ApiResult<{
|
|
70
|
-
total_count: number;
|
|
71
|
-
has_more: boolean;
|
|
72
|
-
next_page_token: string | null;
|
|
73
|
-
items: {
|
|
74
|
-
url: string;
|
|
75
|
-
metadata: Record<string, string> | null;
|
|
76
|
-
}[];
|
|
77
|
-
}>>;
|
|
78
|
-
};
|
|
@@ -1,114 +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 { ConnectorState } from './types';
|
|
7
|
-
export declare const connectorStateSchema: z.ZodEnum<typeof ConnectorState>;
|
|
8
|
-
export declare const connectorSchema: z.ZodObject<{
|
|
9
|
-
id: z.ZodString;
|
|
10
|
-
url: z.ZodString;
|
|
11
|
-
state: z.ZodEnum<typeof ConnectorState>;
|
|
12
|
-
auth_request: z.ZodNullable<z.ZodObject<{
|
|
13
|
-
type: z.ZodLiteral<"code">;
|
|
14
|
-
authorization_endpoint: z.ZodString;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
disconnect_reason: z.ZodNullable<z.ZodString>;
|
|
17
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export declare const listConnectorsRequestSchema: z.ZodNever;
|
|
20
|
-
export declare const listConnectorsResponseSchema: z.ZodObject<{
|
|
21
|
-
total_count: z.ZodNumber;
|
|
22
|
-
has_more: z.ZodBoolean;
|
|
23
|
-
next_page_token: z.ZodNullable<z.ZodString>;
|
|
24
|
-
items: z.ZodArray<z.ZodObject<{
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
url: z.ZodString;
|
|
27
|
-
state: z.ZodEnum<typeof ConnectorState>;
|
|
28
|
-
auth_request: z.ZodNullable<z.ZodObject<{
|
|
29
|
-
type: z.ZodLiteral<"code">;
|
|
30
|
-
authorization_endpoint: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>;
|
|
32
|
-
disconnect_reason: z.ZodNullable<z.ZodString>;
|
|
33
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
export declare const createConnectorRequestSchema: z.ZodObject<{
|
|
37
|
-
match_preset: z.ZodBoolean;
|
|
38
|
-
url: z.ZodString;
|
|
39
|
-
client_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
client_secret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
export declare const createConnectorResponseSchema: z.ZodObject<{
|
|
44
|
-
id: z.ZodString;
|
|
45
|
-
url: z.ZodString;
|
|
46
|
-
state: z.ZodEnum<typeof ConnectorState>;
|
|
47
|
-
auth_request: z.ZodNullable<z.ZodObject<{
|
|
48
|
-
type: z.ZodLiteral<"code">;
|
|
49
|
-
authorization_endpoint: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
|
-
disconnect_reason: z.ZodNullable<z.ZodString>;
|
|
52
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export declare const readConnectorRequestSchema: z.ZodObject<{
|
|
55
|
-
connector_id: z.ZodString;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
export declare const readConnectorResponseSchema: z.ZodObject<{
|
|
58
|
-
id: z.ZodString;
|
|
59
|
-
url: z.ZodString;
|
|
60
|
-
state: z.ZodEnum<typeof ConnectorState>;
|
|
61
|
-
auth_request: z.ZodNullable<z.ZodObject<{
|
|
62
|
-
type: z.ZodLiteral<"code">;
|
|
63
|
-
authorization_endpoint: z.ZodString;
|
|
64
|
-
}, z.core.$strip>>;
|
|
65
|
-
disconnect_reason: z.ZodNullable<z.ZodString>;
|
|
66
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
|
-
export declare const deleteConnectorRequestSchema: z.ZodObject<{
|
|
69
|
-
connector_id: z.ZodString;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
|
-
export declare const deleteConnectorResponseSchema: z.ZodNull;
|
|
72
|
-
export declare const connectConnectorRequestSchema: z.ZodObject<{
|
|
73
|
-
connector_id: z.ZodString;
|
|
74
|
-
redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
export declare const connectConnectorResponseSchema: z.ZodObject<{
|
|
77
|
-
id: z.ZodString;
|
|
78
|
-
url: z.ZodString;
|
|
79
|
-
state: z.ZodEnum<typeof ConnectorState>;
|
|
80
|
-
auth_request: z.ZodNullable<z.ZodObject<{
|
|
81
|
-
type: z.ZodLiteral<"code">;
|
|
82
|
-
authorization_endpoint: z.ZodString;
|
|
83
|
-
}, z.core.$strip>>;
|
|
84
|
-
disconnect_reason: z.ZodNullable<z.ZodString>;
|
|
85
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
86
|
-
}, z.core.$strip>;
|
|
87
|
-
export declare const disconnectConnectorRequestSchema: z.ZodObject<{
|
|
88
|
-
connector_id: z.ZodString;
|
|
89
|
-
}, z.core.$strip>;
|
|
90
|
-
export declare const disconnectConnectorResponseSchema: z.ZodObject<{
|
|
91
|
-
id: z.ZodString;
|
|
92
|
-
url: z.ZodString;
|
|
93
|
-
state: z.ZodEnum<typeof ConnectorState>;
|
|
94
|
-
auth_request: z.ZodNullable<z.ZodObject<{
|
|
95
|
-
type: z.ZodLiteral<"code">;
|
|
96
|
-
authorization_endpoint: z.ZodString;
|
|
97
|
-
}, z.core.$strip>>;
|
|
98
|
-
disconnect_reason: z.ZodNullable<z.ZodString>;
|
|
99
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
export declare const connectorPresetSchema: z.ZodObject<{
|
|
102
|
-
url: z.ZodString;
|
|
103
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
104
|
-
}, z.core.$strip>;
|
|
105
|
-
export declare const listConnectorPresetsRequestSchema: z.ZodNever;
|
|
106
|
-
export declare const listConnectorPresetsResponseSchema: z.ZodObject<{
|
|
107
|
-
total_count: z.ZodNumber;
|
|
108
|
-
has_more: z.ZodBoolean;
|
|
109
|
-
next_page_token: z.ZodNullable<z.ZodString>;
|
|
110
|
-
items: z.ZodArray<z.ZodObject<{
|
|
111
|
-
url: z.ZodString;
|
|
112
|
-
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
113
|
-
}, z.core.$strip>>;
|
|
114
|
-
}, z.core.$strip>;
|
|
@@ -1,28 +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 { connectConnectorRequestSchema, connectConnectorResponseSchema, connectorPresetSchema, connectorSchema, createConnectorRequestSchema, createConnectorResponseSchema, deleteConnectorRequestSchema, deleteConnectorResponseSchema, disconnectConnectorRequestSchema, disconnectConnectorResponseSchema, listConnectorPresetsRequestSchema, listConnectorPresetsResponseSchema, listConnectorsRequestSchema, listConnectorsResponseSchema, readConnectorRequestSchema, readConnectorResponseSchema } from './schemas';
|
|
7
|
-
export declare enum ConnectorState {
|
|
8
|
-
Created = "created",
|
|
9
|
-
AuthRequired = "auth_required",
|
|
10
|
-
Connected = "connected",
|
|
11
|
-
Disconnected = "disconnected"
|
|
12
|
-
}
|
|
13
|
-
export type Connector = z.infer<typeof connectorSchema>;
|
|
14
|
-
export type ListConnectorsRequest = z.infer<typeof listConnectorsRequestSchema>;
|
|
15
|
-
export type ListConnectorsResponse = z.infer<typeof listConnectorsResponseSchema>;
|
|
16
|
-
export type CreateConnectorRequest = z.infer<typeof createConnectorRequestSchema>;
|
|
17
|
-
export type CreateConnectorResponse = z.infer<typeof createConnectorResponseSchema>;
|
|
18
|
-
export type ReadConnectorRequest = z.infer<typeof readConnectorRequestSchema>;
|
|
19
|
-
export type ReadConnectorResponse = z.infer<typeof readConnectorResponseSchema>;
|
|
20
|
-
export type DeleteConnectorRequest = z.infer<typeof deleteConnectorRequestSchema>;
|
|
21
|
-
export type DeleteConnectorResponse = z.infer<typeof deleteConnectorResponseSchema>;
|
|
22
|
-
export type ConnectConnectorRequest = z.infer<typeof connectConnectorRequestSchema>;
|
|
23
|
-
export type ConnectConnectorResponse = z.infer<typeof connectConnectorResponseSchema>;
|
|
24
|
-
export type DisconnectConnectorRequest = z.infer<typeof disconnectConnectorRequestSchema>;
|
|
25
|
-
export type DisconnectConnectorResponse = z.infer<typeof disconnectConnectorResponseSchema>;
|
|
26
|
-
export type ConnectorPreset = z.infer<typeof connectorPresetSchema>;
|
|
27
|
-
export type ListConnectorPresetsRequest = z.infer<typeof listConnectorPresetsRequestSchema>;
|
|
28
|
-
export type ListConnectorPresetsResponse = z.infer<typeof listConnectorPresetsResponseSchema>;
|
|
@@ -1,133 +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 { CreateContextHistoryRequest, CreateContextRequest, CreateContextTokenRequest, DeleteContextRequest, ListContextHistoryRequest, ListContextsRequest, PatchContextMetadataRequest, ReadContextRequest, UpdateContextRequest } from './types';
|
|
7
|
-
export declare function createContextsApi(callApi: CallApi): {
|
|
8
|
-
listContexts: ({ query }: ListContextsRequest) => 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
|
-
updated_at: string;
|
|
16
|
-
last_active_at: string;
|
|
17
|
-
created_by: string;
|
|
18
|
-
provider_id: string | null;
|
|
19
|
-
metadata: Record<string, unknown> | null;
|
|
20
|
-
}[];
|
|
21
|
-
}>>;
|
|
22
|
-
createContext: ({ ...body }: CreateContextRequest) => Promise<import("../core/types").ApiResult<{
|
|
23
|
-
id: string;
|
|
24
|
-
created_at: string;
|
|
25
|
-
updated_at: string;
|
|
26
|
-
last_active_at: string;
|
|
27
|
-
created_by: string;
|
|
28
|
-
provider_id: string | null;
|
|
29
|
-
metadata: Record<string, unknown> | null;
|
|
30
|
-
}>>;
|
|
31
|
-
readContext: ({ context_id }: ReadContextRequest) => Promise<import("../core/types").ApiResult<{
|
|
32
|
-
id: string;
|
|
33
|
-
created_at: string;
|
|
34
|
-
updated_at: string;
|
|
35
|
-
last_active_at: string;
|
|
36
|
-
created_by: string;
|
|
37
|
-
provider_id: string | null;
|
|
38
|
-
metadata: Record<string, unknown> | null;
|
|
39
|
-
}>>;
|
|
40
|
-
updateContext: ({ context_id, ...body }: UpdateContextRequest) => Promise<import("../core/types").ApiResult<{
|
|
41
|
-
id: string;
|
|
42
|
-
created_at: string;
|
|
43
|
-
updated_at: string;
|
|
44
|
-
last_active_at: string;
|
|
45
|
-
created_by: string;
|
|
46
|
-
provider_id: string | null;
|
|
47
|
-
metadata: Record<string, unknown> | null;
|
|
48
|
-
}>>;
|
|
49
|
-
deleteContext: ({ context_id }: DeleteContextRequest) => Promise<import("../core/types").ApiResult<null>>;
|
|
50
|
-
listContextHistory: ({ context_id, query }: ListContextHistoryRequest) => Promise<import("../core/types").ApiResult<{
|
|
51
|
-
total_count: number;
|
|
52
|
-
has_more: boolean;
|
|
53
|
-
next_page_token: string | null;
|
|
54
|
-
items: {
|
|
55
|
-
id: string;
|
|
56
|
-
context_id: string;
|
|
57
|
-
created_at: string;
|
|
58
|
-
kind: import("./types").ContextHistoryKind;
|
|
59
|
-
data: {
|
|
60
|
-
artifactId: string;
|
|
61
|
-
parts: ({
|
|
62
|
-
kind: "text";
|
|
63
|
-
text: string;
|
|
64
|
-
metadata?: Record<string, unknown> | undefined;
|
|
65
|
-
} | {
|
|
66
|
-
kind: "file";
|
|
67
|
-
file: {
|
|
68
|
-
bytes: string;
|
|
69
|
-
mimeType?: string | undefined;
|
|
70
|
-
name?: string | undefined;
|
|
71
|
-
} | {
|
|
72
|
-
uri: string;
|
|
73
|
-
mimeType?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
};
|
|
76
|
-
metadata?: Record<string, unknown> | undefined;
|
|
77
|
-
} | {
|
|
78
|
-
kind: "data";
|
|
79
|
-
data: Record<string, unknown>;
|
|
80
|
-
metadata?: Record<string, unknown> | undefined;
|
|
81
|
-
})[];
|
|
82
|
-
description?: string | undefined;
|
|
83
|
-
extensions?: string[] | undefined;
|
|
84
|
-
metadata?: Record<string, unknown> | undefined;
|
|
85
|
-
name?: string | undefined;
|
|
86
|
-
} | {
|
|
87
|
-
kind: "message";
|
|
88
|
-
messageId: string;
|
|
89
|
-
parts: ({
|
|
90
|
-
kind: "text";
|
|
91
|
-
text: string;
|
|
92
|
-
metadata?: Record<string, unknown> | undefined;
|
|
93
|
-
} | {
|
|
94
|
-
kind: "file";
|
|
95
|
-
file: {
|
|
96
|
-
bytes: string;
|
|
97
|
-
mimeType?: string | undefined;
|
|
98
|
-
name?: string | undefined;
|
|
99
|
-
} | {
|
|
100
|
-
uri: string;
|
|
101
|
-
mimeType?: string | undefined;
|
|
102
|
-
name?: string | undefined;
|
|
103
|
-
};
|
|
104
|
-
metadata?: Record<string, unknown> | undefined;
|
|
105
|
-
} | {
|
|
106
|
-
kind: "data";
|
|
107
|
-
data: Record<string, unknown>;
|
|
108
|
-
metadata?: Record<string, unknown> | undefined;
|
|
109
|
-
})[];
|
|
110
|
-
role: "agent" | "user";
|
|
111
|
-
contextId?: string | undefined;
|
|
112
|
-
extensions?: string[] | undefined;
|
|
113
|
-
metadata?: Record<string, unknown> | undefined;
|
|
114
|
-
referenceTaskIds?: string[] | undefined;
|
|
115
|
-
taskId?: string | undefined;
|
|
116
|
-
};
|
|
117
|
-
}[];
|
|
118
|
-
}>>;
|
|
119
|
-
createContextHistory: ({ context_id, ...body }: CreateContextHistoryRequest) => Promise<import("../core/types").ApiResult<null>>;
|
|
120
|
-
patchContextMetadata: ({ context_id, ...body }: PatchContextMetadataRequest) => Promise<import("../core/types").ApiResult<{
|
|
121
|
-
id: string;
|
|
122
|
-
created_at: string;
|
|
123
|
-
updated_at: string;
|
|
124
|
-
last_active_at: string;
|
|
125
|
-
created_by: string;
|
|
126
|
-
provider_id: string | null;
|
|
127
|
-
metadata: Record<string, unknown> | null;
|
|
128
|
-
}>>;
|
|
129
|
-
createContextToken: ({ context_id, ...body }: CreateContextTokenRequest) => Promise<import("../core/types").ApiResult<{
|
|
130
|
-
token: string;
|
|
131
|
-
expires_at: string | null;
|
|
132
|
-
}>>;
|
|
133
|
-
};
|