@meetkai/mka1 0.49.13 → 0.49.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/mcp-server.js +17 -9
- package/bin/mcp-server.js.map +12 -12
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/funcs/agentConnectorsSetupWhatsAppAppWebhook.d.ts +2 -2
- package/dist/commonjs/funcs/agentConnectorsSetupWhatsAppAppWebhook.js +2 -2
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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/mcp-server/tools/agentConnectorsSetupWhatsAppAppWebhook.js +2 -2
- package/dist/commonjs/mcp-server/tools/agentConnectorsSetupWhatsAppAppWebhook.js.map +1 -1
- package/dist/commonjs/models/components/createwhatsappagentconnectorrequest.d.ts +4 -1
- package/dist/commonjs/models/components/createwhatsappagentconnectorrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createwhatsappagentconnectorrequest.js.map +1 -1
- package/dist/commonjs/models/components/mcptoolcall.d.ts +2 -0
- package/dist/commonjs/models/components/mcptoolcall.d.ts.map +1 -1
- package/dist/commonjs/models/components/mcptoolcall.js +4 -0
- package/dist/commonjs/models/components/mcptoolcall.js.map +1 -1
- package/dist/commonjs/models/components/mcptoolcallwithid.d.ts +2 -0
- package/dist/commonjs/models/components/mcptoolcallwithid.d.ts.map +1 -1
- package/dist/commonjs/models/components/mcptoolcallwithid.js +4 -0
- package/dist/commonjs/models/components/mcptoolcallwithid.js.map +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/agentConnectorsSetupWhatsAppAppWebhook.d.ts +2 -2
- package/dist/commonjs/react-query/agentConnectorsSetupWhatsAppAppWebhook.js +2 -2
- package/dist/commonjs/sdk/agentconnectors.d.ts +3 -3
- package/dist/commonjs/sdk/agentconnectors.js +3 -3
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/funcs/agentConnectorsSetupWhatsAppAppWebhook.d.ts +2 -2
- package/dist/esm/funcs/agentConnectorsSetupWhatsAppAppWebhook.js +2 -2
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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/mcp-server/tools/agentConnectorsSetupWhatsAppAppWebhook.js +2 -2
- package/dist/esm/mcp-server/tools/agentConnectorsSetupWhatsAppAppWebhook.js.map +1 -1
- package/dist/esm/models/components/createwhatsappagentconnectorrequest.d.ts +4 -1
- package/dist/esm/models/components/createwhatsappagentconnectorrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createwhatsappagentconnectorrequest.js.map +1 -1
- package/dist/esm/models/components/mcptoolcall.d.ts +2 -0
- package/dist/esm/models/components/mcptoolcall.d.ts.map +1 -1
- package/dist/esm/models/components/mcptoolcall.js +4 -0
- package/dist/esm/models/components/mcptoolcall.js.map +1 -1
- package/dist/esm/models/components/mcptoolcallwithid.d.ts +2 -0
- package/dist/esm/models/components/mcptoolcallwithid.d.ts.map +1 -1
- package/dist/esm/models/components/mcptoolcallwithid.js +4 -0
- package/dist/esm/models/components/mcptoolcallwithid.js.map +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/agentConnectorsSetupWhatsAppAppWebhook.d.ts +2 -2
- package/dist/esm/react-query/agentConnectorsSetupWhatsAppAppWebhook.js +2 -2
- 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/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/funcs/agentConnectorsSetupWhatsAppAppWebhook.ts +2 -2
- package/src/lib/config.ts +3 -3
- 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/mcp-server/tools/agentConnectorsSetupWhatsAppAppWebhook.ts +2 -2
- package/src/models/components/createwhatsappagentconnectorrequest.ts +4 -1
- package/src/models/components/mcptoolcall.ts +6 -0
- package/src/models/components/mcptoolcallwithid.ts +6 -0
- package/src/react-query/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/react-query/agentConnectorsSetupWhatsAppAppWebhook.ts +2 -2
- package/src/sdk/agentconnectors.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentConnectorsSetupWhatsAppAppWebhook.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsSetupWhatsAppAppWebhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sCAAsC,EAAE,MAAM,uDAAuD,CAAC;AAC/G,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,4CAA4C;CACjE,CAAC;AAEF,MAAM,CAAC,MAAM,2CAA2C,GAEpD;IACF,IAAI,EAAE,8CAA8C;IACpD,WAAW,EAAE;;
|
|
1
|
+
{"version":3,"file":"agentConnectorsSetupWhatsAppAppWebhook.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsSetupWhatsAppAppWebhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sCAAsC,EAAE,MAAM,uDAAuD,CAAC;AAC/G,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,4CAA4C;CACjE,CAAC;AAEF,MAAM,CAAC,MAAM,2CAA2C,GAEpD;IACF,IAAI,EAAE,8CAA8C;IACpD,WAAW,EAAE;;0SAE2R;IACxS,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,sCAAsC,CACpE,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,MAAM,CAAC;QAElC,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -31,9 +31,12 @@ export type CreateWhatsAppAgentConnectorRequestAccess = {
|
|
|
31
31
|
mode: CreateWhatsAppAgentConnectorRequestMode;
|
|
32
32
|
userIds: Array<string>;
|
|
33
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Beta WhatsApp Cloud API connector configuration.
|
|
36
|
+
*/
|
|
34
37
|
export type CreateWhatsAppAgentConnectorRequest = {
|
|
35
38
|
/**
|
|
36
|
-
* WhatsApp Cloud API connector with text, image, document, and native thumbs-reaction feedback support.
|
|
39
|
+
* Beta WhatsApp Cloud API connector with text, image, document, and native thumbs-reaction feedback support.
|
|
37
40
|
*/
|
|
38
41
|
provider: "whatsapp";
|
|
39
42
|
name?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createwhatsappagentconnectorrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createwhatsappagentconnectorrequest.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;AAErE,MAAM,MAAM,8CAA8C,GAAG;IAC3D;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB,EAAE,MAAM,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,uCAAuC;;CAE1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,EAAE,uCAAuC,CAAC;IAC9C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,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AE,kDAAkD,CAAC;CAC5D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAWnC,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AACD,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
1
|
+
{"version":3,"file":"createwhatsappagentconnectorrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/createwhatsappagentconnectorrequest.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;AAErE,MAAM,MAAM,8CAA8C,GAAG;IAC3D;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB,EAAE,MAAM,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,uCAAuC;;CAE1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,EAAE,uCAAuC,CAAC;IAC9C,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG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B,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CAWnC,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AACD,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createwhatsappagentconnectorrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createwhatsappagentconnectorrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAyBjD,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,SAAS,EAAE,WAAW;CACd,CAAC;
|
|
1
|
+
{"version":3,"file":"createwhatsappagentconnectorrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createwhatsappagentconnectorrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAyBjD,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,SAAS,EAAE,WAAW;CACd,CAAC;AA8BX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4DAA4D,GAKnE,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,E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AC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACvB,6DAA6D,CAC9D;IACD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;IAC7C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAClB,wDAAwD,CACzD;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,kDAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,2CAA2C,CACzD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,iDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
7
7
|
export type MCPToolCall = {
|
|
8
8
|
type: "mcp_call";
|
|
9
9
|
id: string;
|
|
10
|
+
approvalRequestId?: string | null | undefined;
|
|
10
11
|
arguments: string;
|
|
11
12
|
name: string;
|
|
12
13
|
serverLabel: string;
|
|
@@ -19,6 +20,7 @@ export declare const MCPToolCall$inboundSchema: z.ZodType<MCPToolCall, z.ZodType
|
|
|
19
20
|
export type MCPToolCall$Outbound = {
|
|
20
21
|
type: "mcp_call";
|
|
21
22
|
id: string;
|
|
23
|
+
approval_request_id?: string | null | undefined;
|
|
22
24
|
arguments: string;
|
|
23
25
|
name: string;
|
|
24
26
|
server_label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcptoolcall.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mcptoolcall.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;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"mcptoolcall.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mcptoolcall.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;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAeX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AACD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -8,6 +8,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
export const MCPToolCall$inboundSchema = z.object({
|
|
9
9
|
type: z.literal("mcp_call"),
|
|
10
10
|
id: z.string(),
|
|
11
|
+
approval_request_id: z.nullable(z.string()).optional(),
|
|
11
12
|
arguments: z.string(),
|
|
12
13
|
name: z.string(),
|
|
13
14
|
server_label: z.string(),
|
|
@@ -15,6 +16,7 @@ export const MCPToolCall$inboundSchema = z.object({
|
|
|
15
16
|
output: z.string().optional(),
|
|
16
17
|
}).transform((v) => {
|
|
17
18
|
return remap$(v, {
|
|
19
|
+
"approval_request_id": "approvalRequestId",
|
|
18
20
|
"server_label": "serverLabel",
|
|
19
21
|
});
|
|
20
22
|
});
|
|
@@ -22,6 +24,7 @@ export const MCPToolCall$inboundSchema = z.object({
|
|
|
22
24
|
export const MCPToolCall$outboundSchema = z.object({
|
|
23
25
|
type: z.literal("mcp_call"),
|
|
24
26
|
id: z.string(),
|
|
27
|
+
approvalRequestId: z.nullable(z.string()).optional(),
|
|
25
28
|
arguments: z.string(),
|
|
26
29
|
name: z.string(),
|
|
27
30
|
serverLabel: z.string(),
|
|
@@ -29,6 +32,7 @@ export const MCPToolCall$outboundSchema = z.object({
|
|
|
29
32
|
output: z.string().optional(),
|
|
30
33
|
}).transform((v) => {
|
|
31
34
|
return remap$(v, {
|
|
35
|
+
approvalRequestId: "approval_request_id",
|
|
32
36
|
serverLabel: "server_label",
|
|
33
37
|
});
|
|
34
38
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcptoolcall.js","sourceRoot":"","sources":["../../../../src/models/components/mcptoolcall.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"mcptoolcall.js","sourceRoot":"","sources":["../../../../src/models/components/mcptoolcall.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAkBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3B,EAAE,EA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CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AACD,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -10,6 +10,7 @@ export type MCPToolCallWithId = {
|
|
|
10
10
|
* The unique ID of the message.
|
|
11
11
|
*/
|
|
12
12
|
id: string;
|
|
13
|
+
approvalRequestId?: string | null | undefined;
|
|
13
14
|
arguments: string;
|
|
14
15
|
name: string;
|
|
15
16
|
serverLabel: string;
|
|
@@ -32,6 +33,7 @@ export declare const MCPToolCallWithId$inboundSchema: z.ZodType<MCPToolCallWithI
|
|
|
32
33
|
export type MCPToolCallWithId$Outbound = {
|
|
33
34
|
type: "mcp_call";
|
|
34
35
|
id: string;
|
|
36
|
+
approval_request_id?: string | null | undefined;
|
|
35
37
|
arguments: string;
|
|
36
38
|
name: string;
|
|
37
39
|
server_label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcptoolcallwithid.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mcptoolcallwithid.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;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,S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CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAkBP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAkBjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -8,6 +8,7 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
export const MCPToolCallWithId$inboundSchema = z.object({
|
|
9
9
|
type: z.literal("mcp_call"),
|
|
10
10
|
id: z.string(),
|
|
11
|
+
approval_request_id: z.nullable(z.string()).optional(),
|
|
11
12
|
arguments: z.string(),
|
|
12
13
|
name: z.string(),
|
|
13
14
|
server_label: z.string(),
|
|
@@ -17,6 +18,7 @@ export const MCPToolCallWithId$inboundSchema = z.object({
|
|
|
17
18
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
18
19
|
}).transform((v) => {
|
|
19
20
|
return remap$(v, {
|
|
21
|
+
"approval_request_id": "approvalRequestId",
|
|
20
22
|
"server_label": "serverLabel",
|
|
21
23
|
"response_id": "responseId",
|
|
22
24
|
});
|
|
@@ -25,6 +27,7 @@ export const MCPToolCallWithId$inboundSchema = z.object({
|
|
|
25
27
|
export const MCPToolCallWithId$outboundSchema = z.object({
|
|
26
28
|
type: z.literal("mcp_call"),
|
|
27
29
|
id: z.string(),
|
|
30
|
+
approvalRequestId: z.nullable(z.string()).optional(),
|
|
28
31
|
arguments: z.string(),
|
|
29
32
|
name: z.string(),
|
|
30
33
|
serverLabel: z.string(),
|
|
@@ -34,6 +37,7 @@ export const MCPToolCallWithId$outboundSchema = z.object({
|
|
|
34
37
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
35
38
|
}).transform((v) => {
|
|
36
39
|
return remap$(v, {
|
|
40
|
+
approvalRequestId: "approval_request_id",
|
|
37
41
|
serverLabel: "server_label",
|
|
38
42
|
responseId: "response_id",
|
|
39
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcptoolcallwithid.js","sourceRoot":"","sources":["../../../../src/models/components/mcptoolcallwithid.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"mcptoolcallwithid.js","sourceRoot":"","sources":["../../../../src/models/components/mcptoolcallwithid.ts"],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export type AgentConnectorsCreateAgentConnectorMutationError = errors.ErrorEnvel
|
|
|
19
19
|
* Create a connector
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. 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.
|
|
22
|
+
* 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.
|
|
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 or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. 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.
|
|
13
|
+
* 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.
|
|
14
14
|
*/
|
|
15
15
|
export function useAgentConnectorsCreateAgentConnectorMutation(options) {
|
|
16
16
|
const client = useSDKContext();
|
|
@@ -15,10 +15,10 @@ export type AgentConnectorsSetupWhatsAppAppWebhookMutationVariables = {
|
|
|
15
15
|
export type AgentConnectorsSetupWhatsAppAppWebhookMutationData = operations.SetupWhatsAppAppWebhookResponse;
|
|
16
16
|
export type AgentConnectorsSetupWhatsAppAppWebhookMutationError = errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
17
17
|
/**
|
|
18
|
-
* Set up a WhatsApp app webhook
|
|
18
|
+
* Set up a WhatsApp app webhook (Beta)
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
|
-
* Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
21
|
+
* Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
22
22
|
*/
|
|
23
23
|
export declare function useAgentConnectorsSetupWhatsAppAppWebhookMutation(options?: MutationHookOptions<AgentConnectorsSetupWhatsAppAppWebhookMutationData, AgentConnectorsSetupWhatsAppAppWebhookMutationError, AgentConnectorsSetupWhatsAppAppWebhookMutationVariables>): UseMutationResult<AgentConnectorsSetupWhatsAppAppWebhookMutationData, AgentConnectorsSetupWhatsAppAppWebhookMutationError, AgentConnectorsSetupWhatsAppAppWebhookMutationVariables>;
|
|
24
24
|
export declare function mutationKeyAgentConnectorsSetupWhatsAppAppWebhook(): MutationKey;
|
|
@@ -7,10 +7,10 @@ import { combineSignals } from "../lib/primitives.js";
|
|
|
7
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
8
8
|
import { useSDKContext } from "./_context.js";
|
|
9
9
|
/**
|
|
10
|
-
* Set up a WhatsApp app webhook
|
|
10
|
+
* Set up a WhatsApp app webhook (Beta)
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
13
|
+
* Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
14
14
|
*/
|
|
15
15
|
export function useAgentConnectorsSetupWhatsAppAppWebhookMutation(options) {
|
|
16
16
|
const client = useSDKContext();
|
|
@@ -13,14 +13,14 @@ export declare class AgentConnectors extends ClientSDK {
|
|
|
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. 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.
|
|
17
17
|
*/
|
|
18
18
|
createAgentConnector(request: operations.CreateAgentConnectorRequest, options?: RequestOptions): Promise<components.AgentConnector>;
|
|
19
19
|
/**
|
|
20
|
-
* Set up a WhatsApp app webhook
|
|
20
|
+
* Set up a WhatsApp app webhook (Beta)
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
|
-
* Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
23
|
+
* Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
24
24
|
*/
|
|
25
25
|
setupWhatsAppAppWebhook(request: operations.SetupWhatsAppAppWebhookRequest, options?: RequestOptions): Promise<operations.SetupWhatsAppAppWebhookResponse>;
|
|
26
26
|
/**
|
|
@@ -23,16 +23,16 @@ export class AgentConnectors extends ClientSDK {
|
|
|
23
23
|
* Create a connector
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. 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.
|
|
26
|
+
* 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.
|
|
27
27
|
*/
|
|
28
28
|
async createAgentConnector(request, options) {
|
|
29
29
|
return unwrapAsync(agentConnectorsCreateAgentConnector(this, request, options));
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Set up a WhatsApp app webhook
|
|
32
|
+
* Set up a WhatsApp app webhook (Beta)
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
35
|
+
* Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
36
36
|
*/
|
|
37
37
|
async setupWhatsAppAppWebhook(request, options) {
|
|
38
38
|
return unwrapAsync(agentConnectorsSetupWhatsAppAppWebhook(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 or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. 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.
|
|
34
|
+
* 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.
|
|
35
35
|
*/
|
|
36
36
|
export function agentConnectorsCreateAgentConnector(
|
|
37
37
|
client: SDKCore,
|
|
@@ -27,10 +27,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Set up a WhatsApp app webhook
|
|
30
|
+
* Set up a WhatsApp app webhook (Beta)
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
33
|
+
* Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
34
34
|
*/
|
|
35
35
|
export function agentConnectorsSetupWhatsAppAppWebhook(
|
|
36
36
|
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.
|
|
69
|
-
genVersion: "2.918.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.49.
|
|
68
|
+
sdkVersion: "0.49.15",
|
|
69
|
+
genVersion: "2.918.4",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.49.15 2.918.4 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 or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. 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.`,
|
|
19
|
+
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.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await agentConnectorsCreateAgentConnector(
|
|
@@ -14,9 +14,9 @@ export const tool$agentConnectorsSetupWhatsAppAppWebhook: ToolDefinition<
|
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
16
|
name: "agent-connectors-setup-whats-app-app-webhook",
|
|
17
|
-
description: `Set up a WhatsApp app webhook
|
|
17
|
+
description: `Set up a WhatsApp app webhook (Beta)
|
|
18
18
|
|
|
19
|
-
Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.`,
|
|
19
|
+
Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.`,
|
|
20
20
|
args,
|
|
21
21
|
tool: async (client, args, ctx) => {
|
|
22
22
|
const [result, apiCall] = await agentConnectorsSetupWhatsAppAppWebhook(
|
|
@@ -44,9 +44,12 @@ export type CreateWhatsAppAgentConnectorRequestAccess = {
|
|
|
44
44
|
userIds: Array<string>;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Beta WhatsApp Cloud API connector configuration.
|
|
49
|
+
*/
|
|
47
50
|
export type CreateWhatsAppAgentConnectorRequest = {
|
|
48
51
|
/**
|
|
49
|
-
* WhatsApp Cloud API connector with text, image, document, and native thumbs-reaction feedback support.
|
|
52
|
+
* Beta WhatsApp Cloud API connector with text, image, document, and native thumbs-reaction feedback support.
|
|
50
53
|
*/
|
|
51
54
|
provider: "whatsapp";
|
|
52
55
|
name?: string | undefined;
|
|
@@ -14,6 +14,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
14
14
|
export type MCPToolCall = {
|
|
15
15
|
type: "mcp_call";
|
|
16
16
|
id: string;
|
|
17
|
+
approvalRequestId?: string | null | undefined;
|
|
17
18
|
arguments: string;
|
|
18
19
|
name: string;
|
|
19
20
|
serverLabel: string;
|
|
@@ -29,6 +30,7 @@ export const MCPToolCall$inboundSchema: z.ZodType<
|
|
|
29
30
|
> = z.object({
|
|
30
31
|
type: z.literal("mcp_call"),
|
|
31
32
|
id: z.string(),
|
|
33
|
+
approval_request_id: z.nullable(z.string()).optional(),
|
|
32
34
|
arguments: z.string(),
|
|
33
35
|
name: z.string(),
|
|
34
36
|
server_label: z.string(),
|
|
@@ -36,6 +38,7 @@ export const MCPToolCall$inboundSchema: z.ZodType<
|
|
|
36
38
|
output: z.string().optional(),
|
|
37
39
|
}).transform((v) => {
|
|
38
40
|
return remap$(v, {
|
|
41
|
+
"approval_request_id": "approvalRequestId",
|
|
39
42
|
"server_label": "serverLabel",
|
|
40
43
|
});
|
|
41
44
|
});
|
|
@@ -43,6 +46,7 @@ export const MCPToolCall$inboundSchema: z.ZodType<
|
|
|
43
46
|
export type MCPToolCall$Outbound = {
|
|
44
47
|
type: "mcp_call";
|
|
45
48
|
id: string;
|
|
49
|
+
approval_request_id?: string | null | undefined;
|
|
46
50
|
arguments: string;
|
|
47
51
|
name: string;
|
|
48
52
|
server_label: string;
|
|
@@ -58,6 +62,7 @@ export const MCPToolCall$outboundSchema: z.ZodType<
|
|
|
58
62
|
> = z.object({
|
|
59
63
|
type: z.literal("mcp_call"),
|
|
60
64
|
id: z.string(),
|
|
65
|
+
approvalRequestId: z.nullable(z.string()).optional(),
|
|
61
66
|
arguments: z.string(),
|
|
62
67
|
name: z.string(),
|
|
63
68
|
serverLabel: z.string(),
|
|
@@ -65,6 +70,7 @@ export const MCPToolCall$outboundSchema: z.ZodType<
|
|
|
65
70
|
output: z.string().optional(),
|
|
66
71
|
}).transform((v) => {
|
|
67
72
|
return remap$(v, {
|
|
73
|
+
approvalRequestId: "approval_request_id",
|
|
68
74
|
serverLabel: "server_label",
|
|
69
75
|
});
|
|
70
76
|
});
|
|
@@ -17,6 +17,7 @@ export type MCPToolCallWithId = {
|
|
|
17
17
|
* The unique ID of the message.
|
|
18
18
|
*/
|
|
19
19
|
id: string;
|
|
20
|
+
approvalRequestId?: string | null | undefined;
|
|
20
21
|
arguments: string;
|
|
21
22
|
name: string;
|
|
22
23
|
serverLabel: string;
|
|
@@ -40,6 +41,7 @@ export const MCPToolCallWithId$inboundSchema: z.ZodType<
|
|
|
40
41
|
> = z.object({
|
|
41
42
|
type: z.literal("mcp_call"),
|
|
42
43
|
id: z.string(),
|
|
44
|
+
approval_request_id: z.nullable(z.string()).optional(),
|
|
43
45
|
arguments: z.string(),
|
|
44
46
|
name: z.string(),
|
|
45
47
|
server_label: z.string(),
|
|
@@ -49,6 +51,7 @@ export const MCPToolCallWithId$inboundSchema: z.ZodType<
|
|
|
49
51
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
50
52
|
}).transform((v) => {
|
|
51
53
|
return remap$(v, {
|
|
54
|
+
"approval_request_id": "approvalRequestId",
|
|
52
55
|
"server_label": "serverLabel",
|
|
53
56
|
"response_id": "responseId",
|
|
54
57
|
});
|
|
@@ -57,6 +60,7 @@ export const MCPToolCallWithId$inboundSchema: z.ZodType<
|
|
|
57
60
|
export type MCPToolCallWithId$Outbound = {
|
|
58
61
|
type: "mcp_call";
|
|
59
62
|
id: string;
|
|
63
|
+
approval_request_id?: string | null | undefined;
|
|
60
64
|
arguments: string;
|
|
61
65
|
name: string;
|
|
62
66
|
server_label: string;
|
|
@@ -74,6 +78,7 @@ export const MCPToolCallWithId$outboundSchema: z.ZodType<
|
|
|
74
78
|
> = z.object({
|
|
75
79
|
type: z.literal("mcp_call"),
|
|
76
80
|
id: z.string(),
|
|
81
|
+
approvalRequestId: z.nullable(z.string()).optional(),
|
|
77
82
|
arguments: z.string(),
|
|
78
83
|
name: z.string(),
|
|
79
84
|
serverLabel: z.string(),
|
|
@@ -83,6 +88,7 @@ export const MCPToolCallWithId$outboundSchema: z.ZodType<
|
|
|
83
88
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
84
89
|
}).transform((v) => {
|
|
85
90
|
return remap$(v, {
|
|
91
|
+
approvalRequestId: "approval_request_id",
|
|
86
92
|
serverLabel: "server_label",
|
|
87
93
|
responseId: "response_id",
|
|
88
94
|
});
|
|
@@ -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 or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. 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.
|
|
54
|
+
* 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
55
|
*/
|
|
56
56
|
export function useAgentConnectorsCreateAgentConnectorMutation(
|
|
57
57
|
options?: MutationHookOptions<
|
|
@@ -47,10 +47,10 @@ export type AgentConnectorsSetupWhatsAppAppWebhookMutationError =
|
|
|
47
47
|
| SDKValidationError;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Set up a WhatsApp app webhook
|
|
50
|
+
* Set up a WhatsApp app webhook (Beta)
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
53
|
+
* Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
54
54
|
*/
|
|
55
55
|
export function useAgentConnectorsSetupWhatsAppAppWebhookMutation(
|
|
56
56
|
options?: MutationHookOptions<
|
|
@@ -35,7 +35,7 @@ export class AgentConnectors extends ClientSDK {
|
|
|
35
35
|
* Create a connector
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. 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.
|
|
38
|
+
* 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.
|
|
39
39
|
*/
|
|
40
40
|
async createAgentConnector(
|
|
41
41
|
request: operations.CreateAgentConnectorRequest,
|
|
@@ -49,10 +49,10 @@ export class AgentConnectors extends ClientSDK {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Set up a WhatsApp app webhook
|
|
52
|
+
* Set up a WhatsApp app webhook (Beta)
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
55
|
+
* Beta. Returns the app-level callback URL and verification token that must be saved in Meta before the first WhatsApp phone connector is created. The caller must be allowed to manage the agent. The stable verification token is returned only in this no-store response and is not a Meta access token.
|
|
56
56
|
*/
|
|
57
57
|
async setupWhatsAppAppWebhook(
|
|
58
58
|
request: operations.SetupWhatsAppAppWebhookRequest,
|