@meetkai/mka1 0.55.34 → 0.55.35
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 +112 -13
- package/bin/mcp-server.js.map +17 -15
- package/dist/commonjs/funcs/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/funcs/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsDeleteAgentConnector.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/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsActivateAgentConnector.js.map +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/mcp-server/tools/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsDeleteAgentConnector.js.map +1 -1
- package/dist/commonjs/models/components/agentconnector.d.ts +8 -1
- package/dist/commonjs/models/components/agentconnector.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentconnector.js +4 -0
- package/dist/commonjs/models/components/agentconnector.js.map +1 -1
- package/dist/commonjs/models/components/agentconnectorembed.d.ts +24 -0
- package/dist/commonjs/models/components/agentconnectorembed.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentconnectorembed.js +75 -0
- package/dist/commonjs/models/components/agentconnectorembed.js.map +1 -0
- package/dist/commonjs/models/components/createagentconnectorrequest.d.ts +3 -2
- package/dist/commonjs/models/components/createagentconnectorrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createagentconnectorrequest.js +3 -0
- package/dist/commonjs/models/components/createagentconnectorrequest.js.map +1 -1
- package/dist/commonjs/models/components/createwebagentconnectorrequest.d.ts +83 -0
- package/dist/commonjs/models/components/createwebagentconnectorrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createwebagentconnectorrequest.js +129 -0
- package/dist/commonjs/models/components/createwebagentconnectorrequest.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/react-query/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/commonjs/react-query/agentConnectorsActivateAgentConnector.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/react-query/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/commonjs/react-query/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/commonjs/sdk/agentconnectors.d.ts +3 -3
- package/dist/commonjs/sdk/agentconnectors.js +3 -3
- package/dist/esm/funcs/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/funcs/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsDeleteAgentConnector.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/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsActivateAgentConnector.js.map +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/mcp-server/tools/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsDeleteAgentConnector.js.map +1 -1
- package/dist/esm/models/components/agentconnector.d.ts +8 -1
- package/dist/esm/models/components/agentconnector.d.ts.map +1 -1
- package/dist/esm/models/components/agentconnector.js +4 -0
- package/dist/esm/models/components/agentconnector.js.map +1 -1
- package/dist/esm/models/components/agentconnectorembed.d.ts +24 -0
- package/dist/esm/models/components/agentconnectorembed.d.ts.map +1 -0
- package/dist/esm/models/components/agentconnectorembed.js +37 -0
- package/dist/esm/models/components/agentconnectorembed.js.map +1 -0
- package/dist/esm/models/components/createagentconnectorrequest.d.ts +3 -2
- package/dist/esm/models/components/createagentconnectorrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createagentconnectorrequest.js +3 -0
- package/dist/esm/models/components/createagentconnectorrequest.js.map +1 -1
- package/dist/esm/models/components/createwebagentconnectorrequest.d.ts +83 -0
- package/dist/esm/models/components/createwebagentconnectorrequest.d.ts.map +1 -0
- package/dist/esm/models/components/createwebagentconnectorrequest.js +87 -0
- package/dist/esm/models/components/createwebagentconnectorrequest.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/react-query/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/esm/react-query/agentConnectorsActivateAgentConnector.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/react-query/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/esm/react-query/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/esm/sdk/agentconnectors.d.ts +3 -3
- package/dist/esm/sdk/agentconnectors.js +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/agentConnectorsActivateAgentConnector.ts +1 -1
- package/src/funcs/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/funcs/agentConnectorsDeleteAgentConnector.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/agentConnectorsActivateAgentConnector.ts +1 -1
- package/src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/mcp-server/tools/agentConnectorsDeleteAgentConnector.ts +1 -1
- package/src/models/components/agentconnector.ts +15 -1
- package/src/models/components/agentconnectorembed.ts +75 -0
- package/src/models/components/createagentconnectorrequest.ts +12 -2
- package/src/models/components/createwebagentconnectorrequest.ts +202 -0
- package/src/models/components/index.ts +2 -0
- package/src/react-query/agentConnectorsActivateAgentConnector.ts +1 -1
- package/src/react-query/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/react-query/agentConnectorsDeleteAgentConnector.ts +1 -1
- package/src/sdk/agentconnectors.ts +3 -3
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Activate a connector
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.
|
|
16
|
+
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner. Web connectors have no provider webhook; activation only re-authorizes the stored API-key identity.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
* Activate a connector
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.
|
|
55
|
+
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner. Web connectors have no provider webhook; activation only re-authorizes the stored API-key identity.
|
|
56
56
|
*
|
|
57
57
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
58
58
|
*/
|
|
@@ -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 or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. 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 provider users or chats may invoke the agent.
|
|
16
|
+
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. 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 provider users or chats may invoke the agent. A web connector (provider web) needs no provider credentials or access policy: it is active immediately and returns an embed object with an iframe URL and snippet for an anonymous web chat widget whose visitors are limited by signed sessions, rate limits and the optional allowed_origins list. Creating a web connector returns 409 when the deployment has not enabled web chat.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
@@ -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 or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. 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 provider users or chats may invoke the agent.
|
|
55
|
+
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. 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 provider users or chats may invoke the agent. A web connector (provider web) needs no provider credentials or access policy: it is active immediately and returns an embed object with an iframe URL and snippet for an anonymous web chat widget whose visitors are limited by signed sessions, rate limits and the optional allowed_origins list. Creating a web connector returns 409 when the deployment has not enabled web chat.
|
|
56
56
|
*
|
|
57
57
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
58
58
|
*/
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Delete a connector
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account.
|
|
16
|
+
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account. Deleting a web connector disables its embed immediately.
|
|
17
17
|
*
|
|
18
18
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
19
19
|
*/
|
|
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
52
52
|
* Delete a connector
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account.
|
|
55
|
+
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account. Deleting a web connector disables its embed immediately.
|
|
56
56
|
*
|
|
57
57
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
58
58
|
*/
|
|
@@ -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.55.
|
|
34
|
+
readonly sdkVersion: "0.55.35";
|
|
35
35
|
readonly genVersion: "2.950.2";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.55.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.55.35 2.950.2 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.55.
|
|
38
|
+
sdkVersion: "0.55.35",
|
|
39
39
|
genVersion: "2.950.2",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.55.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.55.35 2.950.2 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.55.
|
|
25
|
+
currentVersion: "0.55.35",
|
|
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));
|
|
@@ -512,7 +512,7 @@ const usageSandbox_js_1 = require("./tools/usageSandbox.js");
|
|
|
512
512
|
function createMCPServer(deps) {
|
|
513
513
|
const server = new server_1.McpServer({
|
|
514
514
|
name: "SDK",
|
|
515
|
-
version: "0.55.
|
|
515
|
+
version: "0.55.35",
|
|
516
516
|
});
|
|
517
517
|
const client = new core_js_1.SDKCore({
|
|
518
518
|
bearerAuth: deps.bearerAuth,
|
|
@@ -47,7 +47,7 @@ exports.tool$agentConnectorsActivateAgentConnector = {
|
|
|
47
47
|
name: "agent-connectors-activate-agent-connector",
|
|
48
48
|
description: `Activate a connector
|
|
49
49
|
|
|
50
|
-
Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.`,
|
|
50
|
+
Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner. Web connectors have no provider webhook; activation only re-authorizes the stored API-key identity.`,
|
|
51
51
|
args,
|
|
52
52
|
tool: async (client, args, ctx) => {
|
|
53
53
|
const [result, apiCall] = await (0, agentConnectorsActivateAgentConnector_js_1.agentConnectorsActivateAgentConnector)(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentConnectorsActivateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsActivateAgentConnector.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mHAA6G;AAC7G,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEW,QAAA,0CAA0C,GAEnD;IACF,IAAI,EAAE,2CAA2C;IACjD,WAAW,EAAE
|
|
1
|
+
{"version":3,"file":"agentConnectorsActivateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsActivateAgentConnector.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mHAA6G;AAC7G,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEW,QAAA,0CAA0C,GAEnD;IACF,IAAI,EAAE,2CAA2C;IACjD,WAAW,EAAE;;+cAEgc;IAC7c,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,gFAAqC,EACnE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAChD,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"}
|
|
@@ -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 or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. 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 provider users or chats may invoke the agent.`,
|
|
50
|
+
Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. 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 provider users or chats may invoke the agent. A web connector (provider web) needs no provider credentials or access policy: it is active immediately and returns an embed object with an iframe URL and snippet for an anonymous web chat widget whose visitors are limited by signed sessions, rate limits and the optional allowed_origins list. Creating a web connector returns 409 when the deployment has not enabled web chat.`,
|
|
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.mcpReq.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;;o3CAEq2C;IACl3C,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,CAAC,MAAM,EAAE,EAAE,CAChD,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"}
|
|
@@ -47,7 +47,7 @@ exports.tool$agentConnectorsDeleteAgentConnector = {
|
|
|
47
47
|
name: "agent-connectors-delete-agent-connector",
|
|
48
48
|
description: `Delete a connector
|
|
49
49
|
|
|
50
|
-
Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account.`,
|
|
50
|
+
Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account. Deleting a web connector disables its embed immediately.`,
|
|
51
51
|
args,
|
|
52
52
|
tool: async (client, args, ctx) => {
|
|
53
53
|
const [result, apiCall] = await (0, agentConnectorsDeleteAgentConnector_js_1.agentConnectorsDeleteAgentConnector)(client, args.request, { fetchOptions: { signal: ctx.mcpReq.signal } }).$inspect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentConnectorsDeleteAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsDeleteAgentConnector.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":"agentConnectorsDeleteAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsDeleteAgentConnector.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;;yTAE0S;IACvT,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,CAAC,MAAM,EAAE,EAAE,CAChD,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"}
|
|
@@ -2,6 +2,7 @@ import * as z from "zod/v3";
|
|
|
2
2
|
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
|
+
import { AgentConnectorEmbed, AgentConnectorEmbed$Outbound } from "./agentconnectorembed.js";
|
|
5
6
|
export declare const AgentConnectorObject: {
|
|
6
7
|
readonly AgentConnector: "agent.connector";
|
|
7
8
|
};
|
|
@@ -9,6 +10,7 @@ export type AgentConnectorObject = ClosedEnum<typeof AgentConnectorObject>;
|
|
|
9
10
|
export declare const Provider: {
|
|
10
11
|
readonly Telegram: "telegram";
|
|
11
12
|
readonly Whatsapp: "whatsapp";
|
|
13
|
+
readonly Web: "web";
|
|
12
14
|
};
|
|
13
15
|
export type Provider = ClosedEnum<typeof Provider>;
|
|
14
16
|
export type AgentConnector = {
|
|
@@ -22,7 +24,7 @@ export type AgentConnector = {
|
|
|
22
24
|
*/
|
|
23
25
|
status: string;
|
|
24
26
|
/**
|
|
25
|
-
* The provider account ID: Telegram bot user ID
|
|
27
|
+
* The provider account ID: Telegram bot user ID, WhatsApp phone-number ID, or web chat embed ID.
|
|
26
28
|
*/
|
|
27
29
|
providerAccountId: string;
|
|
28
30
|
/**
|
|
@@ -41,6 +43,10 @@ export type AgentConnector = {
|
|
|
41
43
|
createdAt: Date;
|
|
42
44
|
updatedAt: Date;
|
|
43
45
|
deletedAt: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* Embed details for web connectors; null for other providers, and for web connectors when the deployment has no public connector base URL.
|
|
48
|
+
*/
|
|
49
|
+
embed: AgentConnectorEmbed | null;
|
|
44
50
|
};
|
|
45
51
|
/** @internal */
|
|
46
52
|
export declare const AgentConnectorObject$inboundSchema: z.ZodNativeEnum<typeof AgentConnectorObject>;
|
|
@@ -68,6 +74,7 @@ export type AgentConnector$Outbound = {
|
|
|
68
74
|
created_at: string;
|
|
69
75
|
updated_at: string;
|
|
70
76
|
deleted_at: string | null;
|
|
77
|
+
embed: AgentConnectorEmbed$Outbound | null;
|
|
71
78
|
};
|
|
72
79
|
/** @internal */
|
|
73
80
|
export declare const AgentConnector$outboundSchema: z.ZodType<AgentConnector$Outbound, z.ZodTypeDef, AgentConnector>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentconnector.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agentconnector.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"agentconnector.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agentconnector.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0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M,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,QAAQ,CAC7C,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CA8BP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACzB,sBAAsB,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,4BAA4B,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CA4Bd,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AACD,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -42,12 +42,14 @@ exports.agentConnectorFromJSON = agentConnectorFromJSON;
|
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const agentconnectorembed_js_1 = require("./agentconnectorembed.js");
|
|
45
46
|
exports.AgentConnectorObject = {
|
|
46
47
|
AgentConnector: "agent.connector",
|
|
47
48
|
};
|
|
48
49
|
exports.Provider = {
|
|
49
50
|
Telegram: "telegram",
|
|
50
51
|
Whatsapp: "whatsapp",
|
|
52
|
+
Web: "web",
|
|
51
53
|
};
|
|
52
54
|
/** @internal */
|
|
53
55
|
exports.AgentConnectorObject$inboundSchema = z.nativeEnum(exports.AgentConnectorObject);
|
|
@@ -74,6 +76,7 @@ exports.AgentConnector$inboundSchema = z.object({
|
|
|
74
76
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
75
77
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
76
78
|
deleted_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
79
|
+
embed: z.nullable(agentconnectorembed_js_1.AgentConnectorEmbed$inboundSchema),
|
|
77
80
|
}).transform((v) => {
|
|
78
81
|
return (0, primitives_js_1.remap)(v, {
|
|
79
82
|
"agent_id": "agentId",
|
|
@@ -102,6 +105,7 @@ exports.AgentConnector$outboundSchema = z.object({
|
|
|
102
105
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
103
106
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
104
107
|
deletedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
108
|
+
embed: z.nullable(agentconnectorembed_js_1.AgentConnectorEmbed$outboundSchema),
|
|
105
109
|
}).transform((v) => {
|
|
106
110
|
return (0, primitives_js_1.remap)(v, {
|
|
107
111
|
agentId: "agent_id",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentconnector.js","sourceRoot":"","sources":["../../../../src/models/components/agentconnector.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
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ACL,CAAC,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AACD,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type AgentConnectorEmbed = {
|
|
5
|
+
embedId: string;
|
|
6
|
+
iframeUrl: string;
|
|
7
|
+
/**
|
|
8
|
+
* HTML iframe element that embeds the widget.
|
|
9
|
+
*/
|
|
10
|
+
iframeSnippet: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const AgentConnectorEmbed$inboundSchema: z.ZodType<AgentConnectorEmbed, z.ZodTypeDef, unknown>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type AgentConnectorEmbed$Outbound = {
|
|
16
|
+
embed_id: string;
|
|
17
|
+
iframe_url: string;
|
|
18
|
+
iframe_snippet: string;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const AgentConnectorEmbed$outboundSchema: z.ZodType<AgentConnectorEmbed$Outbound, z.ZodTypeDef, AgentConnectorEmbed>;
|
|
22
|
+
export declare function agentConnectorEmbedToJSON(agentConnectorEmbed: AgentConnectorEmbed): string;
|
|
23
|
+
export declare function agentConnectorEmbedFromJSON(jsonString: string): SafeParseResult<AgentConnectorEmbed, SDKValidationError>;
|
|
24
|
+
//# sourceMappingURL=agentconnectorembed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentconnectorembed.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agentconnectorembed.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAWnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AgentConnectorEmbed$outboundSchema = exports.AgentConnectorEmbed$inboundSchema = void 0;
|
|
40
|
+
exports.agentConnectorEmbedToJSON = agentConnectorEmbedToJSON;
|
|
41
|
+
exports.agentConnectorEmbedFromJSON = agentConnectorEmbedFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.AgentConnectorEmbed$inboundSchema = z.object({
|
|
47
|
+
embed_id: z.string(),
|
|
48
|
+
iframe_url: z.string(),
|
|
49
|
+
iframe_snippet: z.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return (0, primitives_js_1.remap)(v, {
|
|
52
|
+
"embed_id": "embedId",
|
|
53
|
+
"iframe_url": "iframeUrl",
|
|
54
|
+
"iframe_snippet": "iframeSnippet",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.AgentConnectorEmbed$outboundSchema = z.object({
|
|
59
|
+
embedId: z.string(),
|
|
60
|
+
iframeUrl: z.string(),
|
|
61
|
+
iframeSnippet: z.string(),
|
|
62
|
+
}).transform((v) => {
|
|
63
|
+
return (0, primitives_js_1.remap)(v, {
|
|
64
|
+
embedId: "embed_id",
|
|
65
|
+
iframeUrl: "iframe_url",
|
|
66
|
+
iframeSnippet: "iframe_snippet",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
function agentConnectorEmbedToJSON(agentConnectorEmbed) {
|
|
70
|
+
return JSON.stringify(exports.AgentConnectorEmbed$outboundSchema.parse(agentConnectorEmbed));
|
|
71
|
+
}
|
|
72
|
+
function agentConnectorEmbedFromJSON(jsonString) {
|
|
73
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentConnectorEmbed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentConnectorEmbed' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=agentconnectorembed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentconnectorembed.js","sourceRoot":"","sources":["../../../../src/models/components/agentconnectorembed.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;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DAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -2,12 +2,13 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { CreateTelegramAgentConnectorRequest, CreateTelegramAgentConnectorRequest$Outbound } from "./createtelegramagentconnectorrequest.js";
|
|
5
|
+
import { CreateWebAgentConnectorRequest, CreateWebAgentConnectorRequest$Outbound } from "./createwebagentconnectorrequest.js";
|
|
5
6
|
import { CreateWhatsAppAgentConnectorRequest, CreateWhatsAppAgentConnectorRequest$Outbound } from "./createwhatsappagentconnectorrequest.js";
|
|
6
|
-
export type CreateAgentConnectorRequest = CreateTelegramAgentConnectorRequest | CreateWhatsAppAgentConnectorRequest;
|
|
7
|
+
export type CreateAgentConnectorRequest = CreateTelegramAgentConnectorRequest | CreateWhatsAppAgentConnectorRequest | CreateWebAgentConnectorRequest;
|
|
7
8
|
/** @internal */
|
|
8
9
|
export declare const CreateAgentConnectorRequest$inboundSchema: z.ZodType<CreateAgentConnectorRequest, z.ZodTypeDef, unknown>;
|
|
9
10
|
/** @internal */
|
|
10
|
-
export type CreateAgentConnectorRequest$Outbound = CreateTelegramAgentConnectorRequest$Outbound | CreateWhatsAppAgentConnectorRequest$Outbound;
|
|
11
|
+
export type CreateAgentConnectorRequest$Outbound = CreateTelegramAgentConnectorRequest$Outbound | CreateWhatsAppAgentConnectorRequest$Outbound | CreateWebAgentConnectorRequest$Outbound;
|
|
11
12
|
/** @internal */
|
|
12
13
|
export declare const CreateAgentConnectorRequest$outboundSchema: z.ZodType<CreateAgentConnectorRequest$Outbound, z.ZodTypeDef, CreateAgentConnectorRequest>;
|
|
13
14
|
export declare function createAgentConnectorRequestToJSON(createAgentConnectorRequest: CreateAgentConnectorRequest): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createagentconnectorrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createagentconnectorrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAElD,MAAM,MAAM,2BAA2B,GACnC,mCAAmC,GACnC,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"createagentconnectorrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createagentconnectorrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,mCAAmC,EAEnC,4CAA4C,EAE7C,MAAM,0CAA0C,CAAC;AAElD,MAAM,MAAM,2BAA2B,GACnC,mCAAmC,GACnC,mCAAmC,GACnC,8BAA8B,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,4CAA4C,GAC5C,4CAA4C,GAC5C,uCAAuC,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAK3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AACD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -42,16 +42,19 @@ exports.createAgentConnectorRequestFromJSON = createAgentConnectorRequestFromJSO
|
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
44
|
const createtelegramagentconnectorrequest_js_1 = require("./createtelegramagentconnectorrequest.js");
|
|
45
|
+
const createwebagentconnectorrequest_js_1 = require("./createwebagentconnectorrequest.js");
|
|
45
46
|
const createwhatsappagentconnectorrequest_js_1 = require("./createwhatsappagentconnectorrequest.js");
|
|
46
47
|
/** @internal */
|
|
47
48
|
exports.CreateAgentConnectorRequest$inboundSchema = z.union([
|
|
48
49
|
createtelegramagentconnectorrequest_js_1.CreateTelegramAgentConnectorRequest$inboundSchema,
|
|
49
50
|
createwhatsappagentconnectorrequest_js_1.CreateWhatsAppAgentConnectorRequest$inboundSchema,
|
|
51
|
+
createwebagentconnectorrequest_js_1.CreateWebAgentConnectorRequest$inboundSchema,
|
|
50
52
|
]);
|
|
51
53
|
/** @internal */
|
|
52
54
|
exports.CreateAgentConnectorRequest$outboundSchema = z.union([
|
|
53
55
|
createtelegramagentconnectorrequest_js_1.CreateTelegramAgentConnectorRequest$outboundSchema,
|
|
54
56
|
createwhatsappagentconnectorrequest_js_1.CreateWhatsAppAgentConnectorRequest$outboundSchema,
|
|
57
|
+
createwebagentconnectorrequest_js_1.CreateWebAgentConnectorRequest$outboundSchema,
|
|
55
58
|
]);
|
|
56
59
|
function createAgentConnectorRequestToJSON(createAgentConnectorRequest) {
|
|
57
60
|
return JSON.stringify(exports.CreateAgentConnectorRequest$outboundSchema.parse(createAgentConnectorRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createagentconnectorrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createagentconnectorrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createagentconnectorrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createagentconnectorrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDH,8EAQC;AACD,kFAQC;AAxED,0CAA4B;AAC5B,qDAAiD;AAGjD,qGAKkD;AAClD,2FAK6C;AAC7C,qGAKkD;AAOlD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,0FAAiD;IACjD,0FAAiD;IACjD,gFAA4C;CAC7C,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,2FAAkD;IAClD,2FAAkD;IAClD,iFAA6C;CAC9C,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type Appearance = {
|
|
5
|
+
/**
|
|
6
|
+
* Trimmed before the length check.
|
|
7
|
+
*/
|
|
8
|
+
title?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Opening message; an empty string shows none.
|
|
11
|
+
*/
|
|
12
|
+
greeting?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Trimmed before the length check.
|
|
15
|
+
*/
|
|
16
|
+
placeholder?: string | undefined;
|
|
17
|
+
primaryColor?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* An https image URL shown in the widget header.
|
|
20
|
+
*/
|
|
21
|
+
logoUrl?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
export type Web = {
|
|
24
|
+
/**
|
|
25
|
+
* Exact https origins (scheme, host and optional port, no path) allowed to frame the widget. Empty allows any site to frame it (frame-ancestors *); a non-empty list is enforced by the browser through the page's CSP frame-ancestors directive, and the session mint also checks the request's Origin header. Neither allowed_origins nor allow_direct_link limits non-browser callers; spend is bounded by the per-embed and per-session limits.
|
|
26
|
+
*/
|
|
27
|
+
allowedOrigins?: Array<string> | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the iframe URL also works as a standalone chat page when opened directly. Setting it to false requires a non-empty allowed_origins list. This is a browser-side rule only; it does not limit non-browser callers.
|
|
30
|
+
*/
|
|
31
|
+
allowDirectLink?: boolean | undefined;
|
|
32
|
+
appearance?: Appearance | undefined;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Web chat widget connector configuration. Appearance and origins are fixed at creation; recreate the connector to change them. Visitors are anonymous and every message runs the agent with this API key's identity, so use a dedicated, minimally scoped key for agents with tools.
|
|
36
|
+
*/
|
|
37
|
+
export type CreateWebAgentConnectorRequest = {
|
|
38
|
+
/**
|
|
39
|
+
* Embeddable text-only web chat served from the connector worker at /widget/agent/v1.
|
|
40
|
+
*/
|
|
41
|
+
provider: "web";
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
web?: Web | undefined;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const Appearance$inboundSchema: z.ZodType<Appearance, z.ZodTypeDef, unknown>;
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type Appearance$Outbound = {
|
|
49
|
+
title: string;
|
|
50
|
+
greeting: string;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
primary_color: string;
|
|
53
|
+
logo_url?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
/** @internal */
|
|
56
|
+
export declare const Appearance$outboundSchema: z.ZodType<Appearance$Outbound, z.ZodTypeDef, Appearance>;
|
|
57
|
+
export declare function appearanceToJSON(appearance: Appearance): string;
|
|
58
|
+
export declare function appearanceFromJSON(jsonString: string): SafeParseResult<Appearance, SDKValidationError>;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const Web$inboundSchema: z.ZodType<Web, z.ZodTypeDef, unknown>;
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type Web$Outbound = {
|
|
63
|
+
allowed_origins?: Array<string> | undefined;
|
|
64
|
+
allow_direct_link: boolean;
|
|
65
|
+
appearance?: Appearance$Outbound | undefined;
|
|
66
|
+
};
|
|
67
|
+
/** @internal */
|
|
68
|
+
export declare const Web$outboundSchema: z.ZodType<Web$Outbound, z.ZodTypeDef, Web>;
|
|
69
|
+
export declare function webToJSON(web: Web): string;
|
|
70
|
+
export declare function webFromJSON(jsonString: string): SafeParseResult<Web, SDKValidationError>;
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const CreateWebAgentConnectorRequest$inboundSchema: z.ZodType<CreateWebAgentConnectorRequest, z.ZodTypeDef, unknown>;
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type CreateWebAgentConnectorRequest$Outbound = {
|
|
75
|
+
provider: "web";
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
web?: Web$Outbound | undefined;
|
|
78
|
+
};
|
|
79
|
+
/** @internal */
|
|
80
|
+
export declare const CreateWebAgentConnectorRequest$outboundSchema: z.ZodType<CreateWebAgentConnectorRequest$Outbound, z.ZodTypeDef, CreateWebAgentConnectorRequest>;
|
|
81
|
+
export declare function createWebAgentConnectorRequestToJSON(createWebAgentConnectorRequest: CreateWebAgentConnectorRequest): string;
|
|
82
|
+
export declare function createWebAgentConnectorRequestFromJSON(jsonString: string): SafeParseResult<CreateWebAgentConnectorRequest, SDKValidationError>;
|
|
83
|
+
//# sourceMappingURL=createwebagentconnectorrequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createwebagentconnectorrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createwebagentconnectorrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IAChB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,UAAU,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GA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