@meetkai/mka1 0.49.11 → 0.49.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/bin/mcp-server.js +126 -30
  2. package/bin/mcp-server.js.map +17 -15
  3. package/dist/commonjs/funcs/agentConnectorsActivateAgentConnector.d.ts +1 -1
  4. package/dist/commonjs/funcs/agentConnectorsActivateAgentConnector.js +1 -1
  5. package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
  6. package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.js +1 -1
  7. package/dist/commonjs/funcs/agentConnectorsDeleteAgentConnector.d.ts +1 -1
  8. package/dist/commonjs/funcs/agentConnectorsDeleteAgentConnector.js +1 -1
  9. package/dist/commonjs/lib/config.d.ts +2 -2
  10. package/dist/commonjs/lib/config.js +2 -2
  11. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  12. package/dist/commonjs/mcp-server/server.js +1 -1
  13. package/dist/commonjs/mcp-server/tools/agentConnectorsActivateAgentConnector.js +1 -1
  14. package/dist/commonjs/mcp-server/tools/agentConnectorsActivateAgentConnector.js.map +1 -1
  15. package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
  16. package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
  17. package/dist/commonjs/mcp-server/tools/agentConnectorsDeleteAgentConnector.js +1 -1
  18. package/dist/commonjs/mcp-server/tools/agentConnectorsDeleteAgentConnector.js.map +1 -1
  19. package/dist/commonjs/models/components/agentconnector.d.ts +3 -2
  20. package/dist/commonjs/models/components/agentconnector.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/agentconnector.js +1 -0
  22. package/dist/commonjs/models/components/agentconnector.js.map +1 -1
  23. package/dist/commonjs/models/components/createagentconnectorrequest.d.ts +4 -80
  24. package/dist/commonjs/models/components/createagentconnectorrequest.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/createagentconnectorrequest.js +13 -93
  26. package/dist/commonjs/models/components/createagentconnectorrequest.js.map +1 -1
  27. package/dist/commonjs/models/components/createtelegramagentconnectorrequest.d.ts +77 -0
  28. package/dist/commonjs/models/components/createtelegramagentconnectorrequest.d.ts.map +1 -0
  29. package/dist/commonjs/models/components/createtelegramagentconnectorrequest.js +133 -0
  30. package/dist/commonjs/models/components/createtelegramagentconnectorrequest.js.map +1 -0
  31. package/dist/commonjs/models/components/createwhatsappagentconnectorrequest.d.ts +99 -0
  32. package/dist/commonjs/models/components/createwhatsappagentconnectorrequest.d.ts.map +1 -0
  33. package/dist/commonjs/models/components/createwhatsappagentconnectorrequest.js +161 -0
  34. package/dist/commonjs/models/components/createwhatsappagentconnectorrequest.js.map +1 -0
  35. package/dist/commonjs/models/components/index.d.ts +2 -0
  36. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/index.js +2 -0
  38. package/dist/commonjs/models/components/index.js.map +1 -1
  39. package/dist/commonjs/react-query/agentConnectorsActivateAgentConnector.d.ts +1 -1
  40. package/dist/commonjs/react-query/agentConnectorsActivateAgentConnector.js +1 -1
  41. package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
  42. package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.js +1 -1
  43. package/dist/commonjs/react-query/agentConnectorsDeleteAgentConnector.d.ts +1 -1
  44. package/dist/commonjs/react-query/agentConnectorsDeleteAgentConnector.js +1 -1
  45. package/dist/commonjs/sdk/agentconnectors.d.ts +3 -3
  46. package/dist/commonjs/sdk/agentconnectors.js +3 -3
  47. package/dist/esm/funcs/agentConnectorsActivateAgentConnector.d.ts +1 -1
  48. package/dist/esm/funcs/agentConnectorsActivateAgentConnector.js +1 -1
  49. package/dist/esm/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
  50. package/dist/esm/funcs/agentConnectorsCreateAgentConnector.js +1 -1
  51. package/dist/esm/funcs/agentConnectorsDeleteAgentConnector.d.ts +1 -1
  52. package/dist/esm/funcs/agentConnectorsDeleteAgentConnector.js +1 -1
  53. package/dist/esm/lib/config.d.ts +2 -2
  54. package/dist/esm/lib/config.js +2 -2
  55. package/dist/esm/mcp-server/mcp-server.js +1 -1
  56. package/dist/esm/mcp-server/server.js +1 -1
  57. package/dist/esm/mcp-server/tools/agentConnectorsActivateAgentConnector.js +1 -1
  58. package/dist/esm/mcp-server/tools/agentConnectorsActivateAgentConnector.js.map +1 -1
  59. package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
  60. package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
  61. package/dist/esm/mcp-server/tools/agentConnectorsDeleteAgentConnector.js +1 -1
  62. package/dist/esm/mcp-server/tools/agentConnectorsDeleteAgentConnector.js.map +1 -1
  63. package/dist/esm/models/components/agentconnector.d.ts +3 -2
  64. package/dist/esm/models/components/agentconnector.d.ts.map +1 -1
  65. package/dist/esm/models/components/agentconnector.js +1 -0
  66. package/dist/esm/models/components/agentconnector.js.map +1 -1
  67. package/dist/esm/models/components/createagentconnectorrequest.d.ts +4 -80
  68. package/dist/esm/models/components/createagentconnectorrequest.d.ts.map +1 -1
  69. package/dist/esm/models/components/createagentconnectorrequest.js +12 -88
  70. package/dist/esm/models/components/createagentconnectorrequest.js.map +1 -1
  71. package/dist/esm/models/components/createtelegramagentconnectorrequest.d.ts +77 -0
  72. package/dist/esm/models/components/createtelegramagentconnectorrequest.d.ts.map +1 -0
  73. package/dist/esm/models/components/createtelegramagentconnectorrequest.js +91 -0
  74. package/dist/esm/models/components/createtelegramagentconnectorrequest.js.map +1 -0
  75. package/dist/esm/models/components/createwhatsappagentconnectorrequest.d.ts +99 -0
  76. package/dist/esm/models/components/createwhatsappagentconnectorrequest.d.ts.map +1 -0
  77. package/dist/esm/models/components/createwhatsappagentconnectorrequest.js +117 -0
  78. package/dist/esm/models/components/createwhatsappagentconnectorrequest.js.map +1 -0
  79. package/dist/esm/models/components/index.d.ts +2 -0
  80. package/dist/esm/models/components/index.d.ts.map +1 -1
  81. package/dist/esm/models/components/index.js +2 -0
  82. package/dist/esm/models/components/index.js.map +1 -1
  83. package/dist/esm/react-query/agentConnectorsActivateAgentConnector.d.ts +1 -1
  84. package/dist/esm/react-query/agentConnectorsActivateAgentConnector.js +1 -1
  85. package/dist/esm/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
  86. package/dist/esm/react-query/agentConnectorsCreateAgentConnector.js +1 -1
  87. package/dist/esm/react-query/agentConnectorsDeleteAgentConnector.d.ts +1 -1
  88. package/dist/esm/react-query/agentConnectorsDeleteAgentConnector.js +1 -1
  89. package/dist/esm/sdk/agentconnectors.d.ts +3 -3
  90. package/dist/esm/sdk/agentconnectors.js +3 -3
  91. package/jsr.json +1 -1
  92. package/package.json +1 -1
  93. package/src/funcs/agentConnectorsActivateAgentConnector.ts +1 -1
  94. package/src/funcs/agentConnectorsCreateAgentConnector.ts +1 -1
  95. package/src/funcs/agentConnectorsDeleteAgentConnector.ts +1 -1
  96. package/src/lib/config.ts +2 -2
  97. package/src/mcp-server/mcp-server.ts +1 -1
  98. package/src/mcp-server/server.ts +1 -1
  99. package/src/mcp-server/tools/agentConnectorsActivateAgentConnector.ts +1 -1
  100. package/src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts +1 -1
  101. package/src/mcp-server/tools/agentConnectorsDeleteAgentConnector.ts +1 -1
  102. package/src/models/components/agentconnector.ts +3 -2
  103. package/src/models/components/createagentconnectorrequest.ts +27 -196
  104. package/src/models/components/createtelegramagentconnectorrequest.ts +225 -0
  105. package/src/models/components/createwhatsappagentconnectorrequest.ts +301 -0
  106. package/src/models/components/index.ts +2 -0
  107. package/src/react-query/agentConnectorsActivateAgentConnector.ts +1 -1
  108. package/src/react-query/agentConnectorsCreateAgentConnector.ts +1 -1
  109. package/src/react-query/agentConnectorsDeleteAgentConnector.ts +1 -1
  110. package/src/sdk/agentconnectors.ts +3 -3
@@ -13,7 +13,7 @@ export declare class AgentConnectors extends ClientSDK {
13
13
  * Create a connector
14
14
  *
15
15
  * @remarks
16
- * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
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.
17
17
  */
18
18
  createAgentConnector(request: operations.CreateAgentConnectorRequest, options?: RequestOptions): Promise<components.AgentConnector>;
19
19
  /**
@@ -27,14 +27,14 @@ export declare class AgentConnectors extends ClientSDK {
27
27
  * Delete a connector
28
28
  *
29
29
  * @remarks
30
- * Unregisters the provider webhook, drops its pending Telegram updates, and deletes the stored connector credentials.
30
+ * 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.
31
31
  */
32
32
  deleteAgentConnector(request: operations.DeleteAgentConnectorRequest, options?: RequestOptions): Promise<components.AgentConnectorDeleted>;
33
33
  /**
34
34
  * Activate a connector
35
35
  *
36
36
  * @remarks
37
- * Revalidates the stored Telegram credentials and registers the provider webhook. Use this to retry a connector left in an error state or rotate its key. API-key authentication with every listed scope is required; session authentication is rejected, and the new key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.
37
+ * 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.
38
38
  */
39
39
  activateAgentConnector(request: operations.ActivateAgentConnectorRequest, options?: RequestOptions): Promise<components.AgentConnector>;
40
40
  }
@@ -25,7 +25,7 @@ class AgentConnectors extends sdks_js_1.ClientSDK {
25
25
  * Create a connector
26
26
  *
27
27
  * @remarks
28
- * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
28
+ * 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.
29
29
  */
30
30
  async createAgentConnector(request, options) {
31
31
  return (0, fp_js_1.unwrapAsync)((0, agentConnectorsCreateAgentConnector_js_1.agentConnectorsCreateAgentConnector)(this, request, options));
@@ -43,7 +43,7 @@ class AgentConnectors extends sdks_js_1.ClientSDK {
43
43
  * Delete a connector
44
44
  *
45
45
  * @remarks
46
- * Unregisters the provider webhook, drops its pending Telegram updates, and deletes the stored connector credentials.
46
+ * 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.
47
47
  */
48
48
  async deleteAgentConnector(request, options) {
49
49
  return (0, fp_js_1.unwrapAsync)((0, agentConnectorsDeleteAgentConnector_js_1.agentConnectorsDeleteAgentConnector)(this, request, options));
@@ -52,7 +52,7 @@ class AgentConnectors extends sdks_js_1.ClientSDK {
52
52
  * Activate a connector
53
53
  *
54
54
  * @remarks
55
- * Revalidates the stored Telegram credentials and registers the provider webhook. Use this to retry a connector left in an error state or rotate its key. API-key authentication with every listed scope is required; session authentication is rejected, and the new 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.
56
56
  */
57
57
  async activateAgentConnector(request, options) {
58
58
  return (0, fp_js_1.unwrapAsync)((0, agentConnectorsActivateAgentConnector_js_1.agentConnectorsActivateAgentConnector)(this, request, options));
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Activate a connector
14
14
  *
15
15
  * @remarks
16
- * Revalidates the stored Telegram credentials and registers the provider webhook. Use this to retry a connector left in an error state or rotate its key. API-key authentication with every listed scope is required; session authentication is rejected, and the new 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.
17
17
  */
18
18
  export declare function agentConnectorsActivateAgentConnector(client: SDKCore, request: operations.ActivateAgentConnectorRequest, options?: RequestOptions): APIPromise<Result<components.AgentConnector, errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=agentConnectorsActivateAgentConnector.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Activate a connector
17
17
  *
18
18
  * @remarks
19
- * Revalidates the stored Telegram credentials and registers the provider webhook. Use this to retry a connector left in an error state or rotate its key. API-key authentication with every listed scope is required; session authentication is rejected, and the new key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.
19
+ * 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.
20
20
  */
21
21
  export function agentConnectorsActivateAgentConnector(client, request, options) {
22
22
  return new APIPromise($do(client, request, options));
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Create a connector
14
14
  *
15
15
  * @remarks
16
- * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
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.
17
17
  */
18
18
  export declare function agentConnectorsCreateAgentConnector(client: SDKCore, request: operations.CreateAgentConnectorRequest, options?: RequestOptions): APIPromise<Result<components.AgentConnector, errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=agentConnectorsCreateAgentConnector.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Create a connector
17
17
  *
18
18
  * @remarks
19
- * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
19
+ * 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.
20
20
  */
21
21
  export function agentConnectorsCreateAgentConnector(client, request, options) {
22
22
  return new APIPromise($do(client, request, options));
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Delete a connector
14
14
  *
15
15
  * @remarks
16
- * Unregisters the provider webhook, drops its pending Telegram updates, and deletes the stored connector credentials.
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.
17
17
  */
18
18
  export declare function agentConnectorsDeleteAgentConnector(client: SDKCore, request: operations.DeleteAgentConnectorRequest, options?: RequestOptions): APIPromise<Result<components.AgentConnectorDeleted, errors.ErrorEnvelope | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=agentConnectorsDeleteAgentConnector.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Delete a connector
17
17
  *
18
18
  * @remarks
19
- * Unregisters the provider webhook, drops its pending Telegram updates, and deletes the stored connector credentials.
19
+ * 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.
20
20
  */
21
21
  export function agentConnectorsDeleteAgentConnector(client, request, options) {
22
22
  return new APIPromise($do(client, request, options));
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "1.1.0";
34
- readonly sdkVersion: "0.49.11";
34
+ readonly sdkVersion: "0.49.12";
35
35
  readonly genVersion: "2.918.3";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.49.11 2.918.3 1.1.0 @meetkai/mka1";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.49.12 2.918.3 1.1.0 @meetkai/mka1";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "1.1.0",
34
- sdkVersion: "0.49.11",
34
+ sdkVersion: "0.49.12",
35
35
  genVersion: "2.918.3",
36
- userAgent: "speakeasy-sdk/typescript 0.49.11 2.918.3 1.1.0 @meetkai/mka1",
36
+ userAgent: "speakeasy-sdk/typescript 0.49.12 2.918.3 1.1.0 @meetkai/mka1",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -16,7 +16,7 @@ const routes = buildRouteMap({
16
16
  export const app = buildApplication(routes, {
17
17
  name: "mcp",
18
18
  versionInfo: {
19
- currentVersion: "0.49.11",
19
+ currentVersion: "0.49.12",
20
20
  },
21
21
  });
22
22
  run(app, process.argv.slice(2), buildContext(process));
@@ -330,7 +330,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
330
330
  export function createMCPServer(deps) {
331
331
  const server = new McpServer({
332
332
  name: "SDK",
333
- version: "0.49.11",
333
+ version: "0.49.12",
334
334
  });
335
335
  const client = new SDKCore({
336
336
  bearerAuth: deps.bearerAuth,
@@ -11,7 +11,7 @@ export const tool$agentConnectorsActivateAgentConnector = {
11
11
  name: "agent-connectors-activate-agent-connector",
12
12
  description: `Activate a connector
13
13
 
14
- Revalidates the stored Telegram credentials and registers the provider webhook. Use this to retry a connector left in an error state or rotate its key. API-key authentication with every listed scope is required; session authentication is rejected, and the new key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.`,
14
+ 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.`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await agentConnectorsActivateAgentConnector(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"agentConnectorsActivateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsActivateAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qCAAqC,EAAE,MAAM,sDAAsD,CAAC;AAC7G,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAEnD;IACF,IAAI,EAAE,2CAA2C;IACjD,WAAW,EAAE;;iYAEkX;IAC/X,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,qCAAqC,CACnE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"agentConnectorsActivateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsActivateAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,qCAAqC,EAAE,MAAM,sDAAsD,CAAC;AAC7G,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,2CAA2C;CAChE,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAEnD;IACF,IAAI,EAAE,2CAA2C;IACjD,WAAW,EAAE;;2WAE4V;IACzW,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,qCAAqC,CACnE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -11,7 +11,7 @@ export const tool$agentConnectorsCreateAgentConnector = {
11
11
  name: "agent-connectors-create-agent-connector",
12
12
  description: `Create a connector
13
13
 
14
- Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.`,
14
+ 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.`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await agentConnectorsCreateAgentConnector(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"agentConnectorsCreateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;06BAE25B;IACx6B,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,mCAAmC,CACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"agentConnectorsCreateAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;u9BAEw8B;IACr9B,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,mCAAmC,CACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -11,7 +11,7 @@ export const tool$agentConnectorsDeleteAgentConnector = {
11
11
  name: "agent-connectors-delete-agent-connector",
12
12
  description: `Delete a connector
13
13
 
14
- Unregisters the provider webhook, drops its pending Telegram updates, and deletes the stored connector credentials.`,
14
+ 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.`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await agentConnectorsDeleteAgentConnector(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"agentConnectorsDeleteAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsDeleteAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;oHAEqG;IAClH,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,mCAAmC,CACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"agentConnectorsDeleteAgentConnector.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/agentConnectorsDeleteAgentConnector.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mCAAmC,EAAE,MAAM,oDAAoD,CAAC;AACzG,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,yCAAyC;CAC9D,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAEjD;IACF,IAAI,EAAE,yCAAyC;IAC/C,WAAW,EAAE;;gQAEiP;IAC9P,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,mCAAmC,CACjE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -9,6 +9,7 @@ export declare const AgentConnectorObject: {
9
9
  export type AgentConnectorObject = ClosedEnum<typeof AgentConnectorObject>;
10
10
  export declare const Provider: {
11
11
  readonly Telegram: "telegram";
12
+ readonly Whatsapp: "whatsapp";
12
13
  };
13
14
  export type Provider = ClosedEnum<typeof Provider>;
14
15
  export type AgentConnector = {
@@ -22,11 +23,11 @@ export type AgentConnector = {
22
23
  */
23
24
  status: string;
24
25
  /**
25
- * The Telegram bot user ID.
26
+ * The provider account ID: Telegram bot user ID or WhatsApp phone-number ID.
26
27
  */
27
28
  providerAccountId: string;
28
29
  /**
29
- * The Telegram bot username when one is available.
30
+ * Provider account display name when one is available.
30
31
  */
31
32
  providerAccountName: string | null;
32
33
  config: JsonValue | null;
@@ -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;AACrE,OAAO,EACL,SAAS,EAET,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,oBAAoB;;CAEvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE3E,eAAO,MAAM,QAAQ;;CAEX,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;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AAE,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,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAClC,sBAAsB,EAAE,OAAO,CAAC;IAChC,UAAU,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CA2Bd,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"}
@@ -10,6 +10,7 @@ export const AgentConnectorObject = {
10
10
  };
11
11
  export const Provider = {
12
12
  Telegram: "telegram",
13
+ Whatsapp: "whatsapp",
13
14
  };
14
15
  /** @internal */
15
16
  export const AgentConnectorObject$inboundSchema = z.nativeEnum(AgentConnectorObject);
@@ -1 +1 @@
1
- {"version":3,"file":"agentconnector.js","sourceRoot":"","sources":["../../../../src/models/components/agentconnector.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;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E,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AACD,MAAM,UAAU,sBAAsB,CACpC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -1,89 +1,13 @@
1
1
  import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- /**
6
- * Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
7
- */
8
- export declare const CreateAgentConnectorRequestProvider: {
9
- readonly Telegram: "telegram";
10
- };
11
- /**
12
- * Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
13
- */
14
- export type CreateAgentConnectorRequestProvider = ClosedEnum<typeof CreateAgentConnectorRequestProvider>;
15
- export type Credentials = {
16
- /**
17
- * Telegram bot token issued by BotFather. It is encrypted at rest and is never returned by the API.
18
- */
19
- botToken: string;
20
- };
21
- export declare const CreateAgentConnectorRequestMode: {
22
- readonly Allowlist: "allowlist";
23
- };
24
- export type CreateAgentConnectorRequestMode = ClosedEnum<typeof CreateAgentConnectorRequestMode>;
25
- /**
26
- * The explicit Telegram chat allowlist permitted to invoke the agent.
27
- */
28
- export type CreateAgentConnectorRequestAccess = {
29
- mode: CreateAgentConnectorRequestMode;
30
- chatIds: Array<number>;
31
- };
32
- export type CreateAgentConnectorRequest = {
33
- /**
34
- * Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
35
- */
36
- provider: CreateAgentConnectorRequestProvider;
37
- name?: string | undefined;
38
- credentials: Credentials;
39
- /**
40
- * The explicit Telegram chat allowlist permitted to invoke the agent.
41
- */
42
- access: CreateAgentConnectorRequestAccess;
43
- /**
44
- * Always true: Telegram discards updates queued before this tenancy's webhook is registered.
45
- */
46
- dropPendingUpdates?: true | undefined;
47
- };
48
- /** @internal */
49
- export declare const CreateAgentConnectorRequestProvider$inboundSchema: z.ZodNativeEnum<typeof CreateAgentConnectorRequestProvider>;
50
- /** @internal */
51
- export declare const CreateAgentConnectorRequestProvider$outboundSchema: z.ZodNativeEnum<typeof CreateAgentConnectorRequestProvider>;
52
- /** @internal */
53
- export declare const Credentials$inboundSchema: z.ZodType<Credentials, z.ZodTypeDef, unknown>;
54
- /** @internal */
55
- export type Credentials$Outbound = {
56
- bot_token: string;
57
- };
58
- /** @internal */
59
- export declare const Credentials$outboundSchema: z.ZodType<Credentials$Outbound, z.ZodTypeDef, Credentials>;
60
- export declare function credentialsToJSON(credentials: Credentials): string;
61
- export declare function credentialsFromJSON(jsonString: string): SafeParseResult<Credentials, SDKValidationError>;
62
- /** @internal */
63
- export declare const CreateAgentConnectorRequestMode$inboundSchema: z.ZodNativeEnum<typeof CreateAgentConnectorRequestMode>;
64
- /** @internal */
65
- export declare const CreateAgentConnectorRequestMode$outboundSchema: z.ZodNativeEnum<typeof CreateAgentConnectorRequestMode>;
66
- /** @internal */
67
- export declare const CreateAgentConnectorRequestAccess$inboundSchema: z.ZodType<CreateAgentConnectorRequestAccess, z.ZodTypeDef, unknown>;
68
- /** @internal */
69
- export type CreateAgentConnectorRequestAccess$Outbound = {
70
- mode: string;
71
- chat_ids: Array<number>;
72
- };
73
- /** @internal */
74
- export declare const CreateAgentConnectorRequestAccess$outboundSchema: z.ZodType<CreateAgentConnectorRequestAccess$Outbound, z.ZodTypeDef, CreateAgentConnectorRequestAccess>;
75
- export declare function createAgentConnectorRequestAccessToJSON(createAgentConnectorRequestAccess: CreateAgentConnectorRequestAccess): string;
76
- export declare function createAgentConnectorRequestAccessFromJSON(jsonString: string): SafeParseResult<CreateAgentConnectorRequestAccess, SDKValidationError>;
4
+ import { CreateTelegramAgentConnectorRequest, CreateTelegramAgentConnectorRequest$Outbound } from "./createtelegramagentconnectorrequest.js";
5
+ import { CreateWhatsAppAgentConnectorRequest, CreateWhatsAppAgentConnectorRequest$Outbound } from "./createwhatsappagentconnectorrequest.js";
6
+ export type CreateAgentConnectorRequest = CreateTelegramAgentConnectorRequest | CreateWhatsAppAgentConnectorRequest;
77
7
  /** @internal */
78
8
  export declare const CreateAgentConnectorRequest$inboundSchema: z.ZodType<CreateAgentConnectorRequest, z.ZodTypeDef, unknown>;
79
9
  /** @internal */
80
- export type CreateAgentConnectorRequest$Outbound = {
81
- provider: string;
82
- name?: string | undefined;
83
- credentials: Credentials$Outbound;
84
- access: CreateAgentConnectorRequestAccess$Outbound;
85
- drop_pending_updates: true;
86
- };
10
+ export type CreateAgentConnectorRequest$Outbound = CreateTelegramAgentConnectorRequest$Outbound | CreateWhatsAppAgentConnectorRequest$Outbound;
87
11
  /** @internal */
88
12
  export declare const CreateAgentConnectorRequest$outboundSchema: z.ZodType<CreateAgentConnectorRequest$Outbound, z.ZodTypeDef, CreateAgentConnectorRequest>;
89
13
  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;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM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SAAS,CAAC;IAC1B,WAAW,EAAE,oBAAoB,CAAC;IAClC,MAAM,EAAE,0CAA0C,CAAC;IACnD,oBAAoB,EAAE,IAAI,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAW3B,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"}
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;AAExC,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,4CAA4C,GAC5C,4CAA4C,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAI3B,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"}
@@ -2,95 +2,19 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
5
  import { safeParse } from "../../lib/schemas.js";
7
- /**
8
- * Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
9
- */
10
- export const CreateAgentConnectorRequestProvider = {
11
- Telegram: "telegram",
12
- };
13
- export const CreateAgentConnectorRequestMode = {
14
- Allowlist: "allowlist",
15
- };
16
- /** @internal */
17
- export const CreateAgentConnectorRequestProvider$inboundSchema = z.nativeEnum(CreateAgentConnectorRequestProvider);
18
- /** @internal */
19
- export const CreateAgentConnectorRequestProvider$outboundSchema = CreateAgentConnectorRequestProvider$inboundSchema;
20
- /** @internal */
21
- export const Credentials$inboundSchema = z.object({
22
- bot_token: z.string(),
23
- }).transform((v) => {
24
- return remap$(v, {
25
- "bot_token": "botToken",
26
- });
27
- });
28
- /** @internal */
29
- export const Credentials$outboundSchema = z.object({
30
- botToken: z.string(),
31
- }).transform((v) => {
32
- return remap$(v, {
33
- botToken: "bot_token",
34
- });
35
- });
36
- export function credentialsToJSON(credentials) {
37
- return JSON.stringify(Credentials$outboundSchema.parse(credentials));
38
- }
39
- export function credentialsFromJSON(jsonString) {
40
- return safeParse(jsonString, (x) => Credentials$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Credentials' from JSON`);
41
- }
42
- /** @internal */
43
- export const CreateAgentConnectorRequestMode$inboundSchema = z.nativeEnum(CreateAgentConnectorRequestMode);
44
- /** @internal */
45
- export const CreateAgentConnectorRequestMode$outboundSchema = CreateAgentConnectorRequestMode$inboundSchema;
46
- /** @internal */
47
- export const CreateAgentConnectorRequestAccess$inboundSchema = z.object({
48
- mode: CreateAgentConnectorRequestMode$inboundSchema,
49
- chat_ids: z.array(z.number().int()),
50
- }).transform((v) => {
51
- return remap$(v, {
52
- "chat_ids": "chatIds",
53
- });
54
- });
55
- /** @internal */
56
- export const CreateAgentConnectorRequestAccess$outboundSchema = z.object({
57
- mode: CreateAgentConnectorRequestMode$outboundSchema,
58
- chatIds: z.array(z.number().int()),
59
- }).transform((v) => {
60
- return remap$(v, {
61
- chatIds: "chat_ids",
62
- });
63
- });
64
- export function createAgentConnectorRequestAccessToJSON(createAgentConnectorRequestAccess) {
65
- return JSON.stringify(CreateAgentConnectorRequestAccess$outboundSchema.parse(createAgentConnectorRequestAccess));
66
- }
67
- export function createAgentConnectorRequestAccessFromJSON(jsonString) {
68
- return safeParse(jsonString, (x) => CreateAgentConnectorRequestAccess$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAgentConnectorRequestAccess' from JSON`);
69
- }
70
- /** @internal */
71
- export const CreateAgentConnectorRequest$inboundSchema = z.object({
72
- provider: CreateAgentConnectorRequestProvider$inboundSchema,
73
- name: z.string().optional(),
74
- credentials: z.lazy(() => Credentials$inboundSchema),
75
- access: z.lazy(() => CreateAgentConnectorRequestAccess$inboundSchema),
76
- drop_pending_updates: z.literal(true).default(true),
77
- }).transform((v) => {
78
- return remap$(v, {
79
- "drop_pending_updates": "dropPendingUpdates",
80
- });
81
- });
82
- /** @internal */
83
- export const CreateAgentConnectorRequest$outboundSchema = z.object({
84
- provider: CreateAgentConnectorRequestProvider$outboundSchema,
85
- name: z.string().optional(),
86
- credentials: z.lazy(() => Credentials$outboundSchema),
87
- access: z.lazy(() => CreateAgentConnectorRequestAccess$outboundSchema),
88
- dropPendingUpdates: z.literal(true).default(true),
89
- }).transform((v) => {
90
- return remap$(v, {
91
- dropPendingUpdates: "drop_pending_updates",
92
- });
93
- });
6
+ import { CreateTelegramAgentConnectorRequest$inboundSchema, CreateTelegramAgentConnectorRequest$outboundSchema, } from "./createtelegramagentconnectorrequest.js";
7
+ import { CreateWhatsAppAgentConnectorRequest$inboundSchema, CreateWhatsAppAgentConnectorRequest$outboundSchema, } from "./createwhatsappagentconnectorrequest.js";
8
+ /** @internal */
9
+ export const CreateAgentConnectorRequest$inboundSchema = z.union([
10
+ CreateTelegramAgentConnectorRequest$inboundSchema,
11
+ CreateWhatsAppAgentConnectorRequest$inboundSchema,
12
+ ]);
13
+ /** @internal */
14
+ export const CreateAgentConnectorRequest$outboundSchema = z.union([
15
+ CreateTelegramAgentConnectorRequest$outboundSchema,
16
+ CreateWhatsAppAgentConnectorRequest$outboundSchema,
17
+ ]);
94
18
  export function createAgentConnectorRequestToJSON(createAgentConnectorRequest) {
95
19
  return JSON.stringify(CreateAgentConnectorRequest$outboundSchema.parse(createAgentConnectorRequest));
96
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createagentconnectorrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createagentconnectorrequest.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;AAKjD;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,QAAQ,EAAE,UAAU;CACZ,CAAC;AAeX,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,SAAS,EAAE,WAAW;CACd,CAAC;AA8BX,gBAAgB;AAChB,MAAM,CAAC,MAAM,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,mCAAmC,CAAC,CAAC;AACtD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAE3D,iDAAiD,CAAC;AAEtD,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IAC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CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,sBAAsB,EAAE,oBAAoB;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,kDAAkD;IAC5D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,gDAAgD,CAAC;IACtE,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAa,CAAC;CAC3D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,sBAAsB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,mCAAmC,CACjD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"createagentconnectorrequest.js","sourceRoot":"","sources":["../../../../src/models/components/createagentconnectorrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iDAAiD,EAEjD,kDAAkD,GACnD,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAEL,iDAAiD,EAEjD,kDAAkD,GACnD,MAAM,0CAA0C,CAAC;AAMlD,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,iDAAiD;IACjD,iDAAiD;CAClD,CAAC,CAAC;AAMH,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,kDAAkD;IAClD,kDAAkD;CACnD,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,mCAAmC,CACjD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,77 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type Credentials = {
6
+ /**
7
+ * Telegram bot token issued by BotFather. It is encrypted at rest and is never returned by the API.
8
+ */
9
+ botToken: string;
10
+ };
11
+ export declare const CreateTelegramAgentConnectorRequestMode: {
12
+ readonly Allowlist: "allowlist";
13
+ };
14
+ export type CreateTelegramAgentConnectorRequestMode = ClosedEnum<typeof CreateTelegramAgentConnectorRequestMode>;
15
+ /**
16
+ * The explicit Telegram chat allowlist permitted to invoke the agent.
17
+ */
18
+ export type CreateTelegramAgentConnectorRequestAccess = {
19
+ mode: CreateTelegramAgentConnectorRequestMode;
20
+ chatIds: Array<number>;
21
+ };
22
+ export type CreateTelegramAgentConnectorRequest = {
23
+ /**
24
+ * Telegram Bot API connector. Supports text, photos up to the Bot API's 20 MiB download limit, gateway-supported documents, and response feedback through native thumbs reactions.
25
+ */
26
+ provider: "telegram";
27
+ name?: string | undefined;
28
+ credentials: Credentials;
29
+ /**
30
+ * The explicit Telegram chat allowlist permitted to invoke the agent.
31
+ */
32
+ access: CreateTelegramAgentConnectorRequestAccess;
33
+ /**
34
+ * Always true: Telegram discards updates queued before this tenancy's webhook is registered.
35
+ */
36
+ dropPendingUpdates?: true | undefined;
37
+ };
38
+ /** @internal */
39
+ export declare const Credentials$inboundSchema: z.ZodType<Credentials, z.ZodTypeDef, unknown>;
40
+ /** @internal */
41
+ export type Credentials$Outbound = {
42
+ bot_token: string;
43
+ };
44
+ /** @internal */
45
+ export declare const Credentials$outboundSchema: z.ZodType<Credentials$Outbound, z.ZodTypeDef, Credentials>;
46
+ export declare function credentialsToJSON(credentials: Credentials): string;
47
+ export declare function credentialsFromJSON(jsonString: string): SafeParseResult<Credentials, SDKValidationError>;
48
+ /** @internal */
49
+ export declare const CreateTelegramAgentConnectorRequestMode$inboundSchema: z.ZodNativeEnum<typeof CreateTelegramAgentConnectorRequestMode>;
50
+ /** @internal */
51
+ export declare const CreateTelegramAgentConnectorRequestMode$outboundSchema: z.ZodNativeEnum<typeof CreateTelegramAgentConnectorRequestMode>;
52
+ /** @internal */
53
+ export declare const CreateTelegramAgentConnectorRequestAccess$inboundSchema: z.ZodType<CreateTelegramAgentConnectorRequestAccess, z.ZodTypeDef, unknown>;
54
+ /** @internal */
55
+ export type CreateTelegramAgentConnectorRequestAccess$Outbound = {
56
+ mode: string;
57
+ chat_ids: Array<number>;
58
+ };
59
+ /** @internal */
60
+ export declare const CreateTelegramAgentConnectorRequestAccess$outboundSchema: z.ZodType<CreateTelegramAgentConnectorRequestAccess$Outbound, z.ZodTypeDef, CreateTelegramAgentConnectorRequestAccess>;
61
+ export declare function createTelegramAgentConnectorRequestAccessToJSON(createTelegramAgentConnectorRequestAccess: CreateTelegramAgentConnectorRequestAccess): string;
62
+ export declare function createTelegramAgentConnectorRequestAccessFromJSON(jsonString: string): SafeParseResult<CreateTelegramAgentConnectorRequestAccess, SDKValidationError>;
63
+ /** @internal */
64
+ export declare const CreateTelegramAgentConnectorRequest$inboundSchema: z.ZodType<CreateTelegramAgentConnectorRequest, z.ZodTypeDef, unknown>;
65
+ /** @internal */
66
+ export type CreateTelegramAgentConnectorRequest$Outbound = {
67
+ provider: "telegram";
68
+ name?: string | undefined;
69
+ credentials: Credentials$Outbound;
70
+ access: CreateTelegramAgentConnectorRequestAccess$Outbound;
71
+ drop_pending_updates: true;
72
+ };
73
+ /** @internal */
74
+ export declare const CreateTelegramAgentConnectorRequest$outboundSchema: z.ZodType<CreateTelegramAgentConnectorRequest$Outbound, z.ZodTypeDef, CreateTelegramAgentConnectorRequest>;
75
+ export declare function createTelegramAgentConnectorRequestToJSON(createTelegramAgentConnectorRequest: CreateTelegramAgentConnectorRequest): string;
76
+ export declare function createTelegramAgentConnectorRequestFromJSON(jsonString: string): SafeParseResult<CreateTelegramAgentConnectorRequest, SDKValidationError>;
77
+ //# sourceMappingURL=createtelegramagentconnectorrequest.d.ts.map