@meetkai/mka1 0.49.6 → 0.49.8
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/bin/mcp-server.js +6 -6
- package/bin/mcp-server.js.map +7 -7
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
- package/dist/commonjs/models/components/createagentconnectorrequest.d.ts +3 -3
- package/dist/commonjs/models/components/createagentconnectorrequest.js +1 -1
- package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/sdk/agentconnectors.d.ts +1 -1
- package/dist/commonjs/sdk/agentconnectors.js +1 -1
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
- package/dist/esm/models/components/createagentconnectorrequest.d.ts +3 -3
- package/dist/esm/models/components/createagentconnectorrequest.js +1 -1
- package/dist/esm/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/esm/react-query/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/sdk/agentconnectors.d.ts +1 -1
- package/dist/esm/sdk/agentconnectors.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/models/components/createagentconnectorrequest.ts +3 -3
- package/src/react-query/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/sdk/agentconnectors.ts +1 -1
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Create a connector
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
16
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
17
17
|
*/
|
|
18
18
|
export declare function agentConnectorsCreateAgentConnector(client: SDKCore, request: operations.CreateAgentConnectorRequest, options?: RequestOptions): APIPromise<Result<components.AgentConnector, errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=agentConnectorsCreateAgentConnector.d.ts.map
|
|
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
* Create a connector
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
55
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
56
56
|
*/
|
|
57
57
|
function agentConnectorsCreateAgentConnector(client, request, options) {
|
|
58
58
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.1.0";
|
|
34
|
-
readonly sdkVersion: "0.49.
|
|
34
|
+
readonly sdkVersion: "0.49.8";
|
|
35
35
|
readonly genVersion: "2.918.3";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.49.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.49.8 2.918.3 1.1.0 @meetkai/mka1";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "1.1.0",
|
|
38
|
-
sdkVersion: "0.49.
|
|
38
|
+
sdkVersion: "0.49.8",
|
|
39
39
|
genVersion: "2.918.3",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.49.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.49.8 2.918.3 1.1.0 @meetkai/mka1",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.49.
|
|
25
|
+
currentVersion: "0.49.8",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -333,7 +333,7 @@ const usageSandbox_js_1 = require("./tools/usageSandbox.js");
|
|
|
333
333
|
function createMCPServer(deps) {
|
|
334
334
|
const server = new mcp_js_1.McpServer({
|
|
335
335
|
name: "SDK",
|
|
336
|
-
version: "0.49.
|
|
336
|
+
version: "0.49.8",
|
|
337
337
|
});
|
|
338
338
|
const client = new core_js_1.SDKCore({
|
|
339
339
|
bearerAuth: deps.bearerAuth,
|
|
@@ -47,7 +47,7 @@ exports.tool$agentConnectorsCreateAgentConnector = {
|
|
|
47
47
|
name: "agent-connectors-create-agent-connector",
|
|
48
48
|
description: `Create a connector
|
|
49
49
|
|
|
50
|
-
Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
50
|
+
Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.`,
|
|
51
51
|
args,
|
|
52
52
|
tool: async (client, args, ctx) => {
|
|
53
53
|
const [result, apiCall] = await (0, agentConnectorsCreateAgentConnector_js_1.agentConnectorsCreateAgentConnector)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentConnectorsCreateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+GAAyG;AACzG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEW,QAAA,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"agentConnectorsCreateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+GAAyG;AACzG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEW,QAAA,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;06BAE25B;IACx6B,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,4EAAmC,EACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -3,13 +3,13 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
6
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
7
7
|
*/
|
|
8
8
|
export declare const CreateAgentConnectorRequestProvider: {
|
|
9
9
|
readonly Telegram: "telegram";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
12
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
13
13
|
*/
|
|
14
14
|
export type CreateAgentConnectorRequestProvider = ClosedEnum<typeof CreateAgentConnectorRequestProvider>;
|
|
15
15
|
export type Credentials = {
|
|
@@ -31,7 +31,7 @@ export type CreateAgentConnectorRequestAccess = {
|
|
|
31
31
|
};
|
|
32
32
|
export type CreateAgentConnectorRequest = {
|
|
33
33
|
/**
|
|
34
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
34
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
35
35
|
*/
|
|
36
36
|
provider: CreateAgentConnectorRequestProvider;
|
|
37
37
|
name?: string | undefined;
|
|
@@ -47,7 +47,7 @@ const z = __importStar(require("zod/v3"));
|
|
|
47
47
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
48
48
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
49
49
|
/**
|
|
50
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
50
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
51
51
|
*/
|
|
52
52
|
exports.CreateAgentConnectorRequestProvider = {
|
|
53
53
|
Telegram: "telegram",
|
|
@@ -19,7 +19,7 @@ export type AgentConnectorsCreateAgentConnectorMutationError = errors.ErrorEnvel
|
|
|
19
19
|
* Create a connector
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
22
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
23
23
|
*/
|
|
24
24
|
export declare function useAgentConnectorsCreateAgentConnectorMutation(options?: MutationHookOptions<AgentConnectorsCreateAgentConnectorMutationData, AgentConnectorsCreateAgentConnectorMutationError, AgentConnectorsCreateAgentConnectorMutationVariables>): UseMutationResult<AgentConnectorsCreateAgentConnectorMutationData, AgentConnectorsCreateAgentConnectorMutationError, AgentConnectorsCreateAgentConnectorMutationVariables>;
|
|
25
25
|
export declare function mutationKeyAgentConnectorsCreateAgentConnector(): MutationKey;
|
|
@@ -15,7 +15,7 @@ const _context_js_1 = require("./_context.js");
|
|
|
15
15
|
* Create a connector
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
18
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
19
19
|
*/
|
|
20
20
|
function useAgentConnectorsCreateAgentConnectorMutation(options) {
|
|
21
21
|
const client = (0, _context_js_1.useSDKContext)();
|
|
@@ -13,7 +13,7 @@ export declare class AgentConnectors extends ClientSDK {
|
|
|
13
13
|
* Create a connector
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
16
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
17
17
|
*/
|
|
18
18
|
createAgentConnector(request: operations.CreateAgentConnectorRequest, options?: RequestOptions): Promise<components.AgentConnector>;
|
|
19
19
|
/**
|
|
@@ -25,7 +25,7 @@ class AgentConnectors extends sdks_js_1.ClientSDK {
|
|
|
25
25
|
* Create a connector
|
|
26
26
|
*
|
|
27
27
|
* @remarks
|
|
28
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
28
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
29
29
|
*/
|
|
30
30
|
async createAgentConnector(request, options) {
|
|
31
31
|
return (0, fp_js_1.unwrapAsync)((0, agentConnectorsCreateAgentConnector_js_1.agentConnectorsCreateAgentConnector)(this, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Create a connector
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
16
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
17
17
|
*/
|
|
18
18
|
export declare function agentConnectorsCreateAgentConnector(client: SDKCore, request: operations.CreateAgentConnectorRequest, options?: RequestOptions): APIPromise<Result<components.AgentConnector, errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=agentConnectorsCreateAgentConnector.d.ts.map
|
|
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
16
16
|
* Create a connector
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
19
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
20
20
|
*/
|
|
21
21
|
export function agentConnectorsCreateAgentConnector(client, request, options) {
|
|
22
22
|
return new APIPromise($do(client, request, options));
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.1.0";
|
|
34
|
-
readonly sdkVersion: "0.49.
|
|
34
|
+
readonly sdkVersion: "0.49.8";
|
|
35
35
|
readonly genVersion: "2.918.3";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.49.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.49.8 2.918.3 1.1.0 @meetkai/mka1";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
|
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "1.1.0",
|
|
34
|
-
sdkVersion: "0.49.
|
|
34
|
+
sdkVersion: "0.49.8",
|
|
35
35
|
genVersion: "2.918.3",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.49.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.49.8 2.918.3 1.1.0 @meetkai/mka1",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -330,7 +330,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
|
|
|
330
330
|
export function createMCPServer(deps) {
|
|
331
331
|
const server = new McpServer({
|
|
332
332
|
name: "SDK",
|
|
333
|
-
version: "0.49.
|
|
333
|
+
version: "0.49.8",
|
|
334
334
|
});
|
|
335
335
|
const client = new SDKCore({
|
|
336
336
|
bearerAuth: deps.bearerAuth,
|
|
@@ -11,7 +11,7 @@ export const tool$agentConnectorsCreateAgentConnector = {
|
|
|
11
11
|
name: "agent-connectors-create-agent-connector",
|
|
12
12
|
description: `Create a connector
|
|
13
13
|
|
|
14
|
-
Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
14
|
+
Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.`,
|
|
15
15
|
args,
|
|
16
16
|
tool: async (client, args, ctx) => {
|
|
17
17
|
const [result, apiCall] = await agentConnectorsCreateAgentConnector(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentConnectorsCreateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"agentConnectorsCreateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;06BAE25B;IACx6B,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,mCAAmC,CACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -3,13 +3,13 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
6
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
7
7
|
*/
|
|
8
8
|
export declare const CreateAgentConnectorRequestProvider: {
|
|
9
9
|
readonly Telegram: "telegram";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
12
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
13
13
|
*/
|
|
14
14
|
export type CreateAgentConnectorRequestProvider = ClosedEnum<typeof CreateAgentConnectorRequestProvider>;
|
|
15
15
|
export type Credentials = {
|
|
@@ -31,7 +31,7 @@ export type CreateAgentConnectorRequestAccess = {
|
|
|
31
31
|
};
|
|
32
32
|
export type CreateAgentConnectorRequest = {
|
|
33
33
|
/**
|
|
34
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
34
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
35
35
|
*/
|
|
36
36
|
provider: CreateAgentConnectorRequestProvider;
|
|
37
37
|
name?: string | undefined;
|
|
@@ -5,7 +5,7 @@ import * as z from "zod/v3";
|
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
/**
|
|
8
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
8
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
9
9
|
*/
|
|
10
10
|
export const CreateAgentConnectorRequestProvider = {
|
|
11
11
|
Telegram: "telegram",
|
|
@@ -19,7 +19,7 @@ export type AgentConnectorsCreateAgentConnectorMutationError = errors.ErrorEnvel
|
|
|
19
19
|
* Create a connector
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
22
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
23
23
|
*/
|
|
24
24
|
export declare function useAgentConnectorsCreateAgentConnectorMutation(options?: MutationHookOptions<AgentConnectorsCreateAgentConnectorMutationData, AgentConnectorsCreateAgentConnectorMutationError, AgentConnectorsCreateAgentConnectorMutationVariables>): UseMutationResult<AgentConnectorsCreateAgentConnectorMutationData, AgentConnectorsCreateAgentConnectorMutationError, AgentConnectorsCreateAgentConnectorMutationVariables>;
|
|
25
25
|
export declare function mutationKeyAgentConnectorsCreateAgentConnector(): MutationKey;
|
|
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Create a connector
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
13
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
14
14
|
*/
|
|
15
15
|
export function useAgentConnectorsCreateAgentConnectorMutation(options) {
|
|
16
16
|
const client = useSDKContext();
|
|
@@ -13,7 +13,7 @@ export declare class AgentConnectors extends ClientSDK {
|
|
|
13
13
|
* Create a connector
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
16
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
17
17
|
*/
|
|
18
18
|
createAgentConnector(request: operations.CreateAgentConnectorRequest, options?: RequestOptions): Promise<components.AgentConnector>;
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ export class AgentConnectors extends ClientSDK {
|
|
|
22
22
|
* Create a connector
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
25
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
26
26
|
*/
|
|
27
27
|
async createAgentConnector(request, options) {
|
|
28
28
|
return unwrapAsync(agentConnectorsCreateAgentConnector(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Create a connector
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
34
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
35
35
|
*/
|
|
36
36
|
export function agentConnectorsCreateAgentConnector(
|
|
37
37
|
client: SDKCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.49.
|
|
68
|
+
sdkVersion: "0.49.8",
|
|
69
69
|
genVersion: "2.918.3",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.49.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.49.8 2.918.3 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -16,7 +16,7 @@ export const tool$agentConnectorsCreateAgentConnector: ToolDefinition<
|
|
|
16
16
|
name: "agent-connectors-create-agent-connector",
|
|
17
17
|
description: `Create a connector
|
|
18
18
|
|
|
19
|
-
Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
19
|
+
Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await agentConnectorsCreateAgentConnector(
|
|
@@ -10,13 +10,13 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
13
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
14
14
|
*/
|
|
15
15
|
export const CreateAgentConnectorRequestProvider = {
|
|
16
16
|
Telegram: "telegram",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
19
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
20
20
|
*/
|
|
21
21
|
export type CreateAgentConnectorRequestProvider = ClosedEnum<
|
|
22
22
|
typeof CreateAgentConnectorRequestProvider
|
|
@@ -46,7 +46,7 @@ export type CreateAgentConnectorRequestAccess = {
|
|
|
46
46
|
|
|
47
47
|
export type CreateAgentConnectorRequest = {
|
|
48
48
|
/**
|
|
49
|
-
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through thumbs reactions
|
|
49
|
+
* Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
|
|
50
50
|
*/
|
|
51
51
|
provider: CreateAgentConnectorRequestProvider;
|
|
52
52
|
name?: string | undefined;
|
|
@@ -51,7 +51,7 @@ export type AgentConnectorsCreateAgentConnectorMutationError =
|
|
|
51
51
|
* Create a connector
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
54
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
55
55
|
*/
|
|
56
56
|
export function useAgentConnectorsCreateAgentConnectorMutation(
|
|
57
57
|
options?: MutationHookOptions<
|
|
@@ -34,7 +34,7 @@ export class AgentConnectors extends ClientSDK {
|
|
|
34
34
|
* Create a connector
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables
|
|
37
|
+
* Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
|
|
38
38
|
*/
|
|
39
39
|
async createAgentConnector(
|
|
40
40
|
request: operations.CreateAgentConnectorRequest,
|