@meetkai/mka1 0.49.2 → 0.49.4

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 (47) hide show
  1. package/bin/mcp-server.js +6 -6
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
  4. package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.js +1 -1
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.js +2 -2
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
  10. package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
  11. package/dist/commonjs/models/components/createagentconnectorrequest.d.ts +9 -0
  12. package/dist/commonjs/models/components/createagentconnectorrequest.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/createagentconnectorrequest.js +3 -0
  14. package/dist/commonjs/models/components/createagentconnectorrequest.js.map +1 -1
  15. package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts +4 -4
  16. package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
  17. package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.js +1 -1
  18. package/dist/commonjs/sdk/agentconnectors.d.ts +1 -1
  19. package/dist/commonjs/sdk/agentconnectors.js +1 -1
  20. package/dist/esm/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
  21. package/dist/esm/funcs/agentConnectorsCreateAgentConnector.js +1 -1
  22. package/dist/esm/lib/config.d.ts +2 -2
  23. package/dist/esm/lib/config.js +2 -2
  24. package/dist/esm/mcp-server/mcp-server.js +1 -1
  25. package/dist/esm/mcp-server/server.js +1 -1
  26. package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
  27. package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
  28. package/dist/esm/models/components/createagentconnectorrequest.d.ts +9 -0
  29. package/dist/esm/models/components/createagentconnectorrequest.d.ts.map +1 -1
  30. package/dist/esm/models/components/createagentconnectorrequest.js +3 -0
  31. package/dist/esm/models/components/createagentconnectorrequest.js.map +1 -1
  32. package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts +4 -4
  33. package/dist/esm/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
  34. package/dist/esm/react-query/agentConnectorsCreateAgentConnector.js +1 -1
  35. package/dist/esm/sdk/agentconnectors.d.ts +1 -1
  36. package/dist/esm/sdk/agentconnectors.js +1 -1
  37. package/jsr.json +1 -1
  38. package/package.json +1 -1
  39. package/src/funcs/agentConnectorsCreateAgentConnector.ts +1 -1
  40. package/src/lib/config.ts +2 -2
  41. package/src/mcp-server/mcp-server.ts +1 -1
  42. package/src/mcp-server/server.ts +1 -1
  43. package/src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts +1 -1
  44. package/src/models/components/createagentconnectorrequest.ts +9 -0
  45. package/src/models/components/createvectorstorefilebatchrequest.ts +4 -4
  46. package/src/react-query/agentConnectorsCreateAgentConnector.ts +1 -1
  47. package/src/sdk/agentconnectors.ts +1 -1
@@ -32,7 +32,7 @@ export type CreateVectorStoreFileBatchRequestAttributes =
32
32
  | number;
33
33
 
34
34
  /**
35
- * Global chunking strategy to apply to all files if using 'file_ids'. Ignored if using 'files'.
35
+ * Batch-wide default chunking strategy, applied to every file that does not carry its own (a 'files' entry's chunking_strategy overrides this).
36
36
  */
37
37
  export type CreateVectorStoreFileBatchRequestChunkingStrategy =
38
38
  | AutoChunkingStrategy
@@ -47,15 +47,15 @@ export type CreateVectorStoreFileBatchRequest = {
47
47
  */
48
48
  fileIds?: Array<string> | undefined;
49
49
  /**
50
- * A list of objects that each include a file_id plus optional attributes or chunking_strategy. Use this when you need to override metadata for specific files. The global attributes or chunking_strategy will be ignored. Mutually exclusive with 'file_ids'. At most 500 per batch.
50
+ * A list of objects that each include a file_id plus optional attributes or chunking_strategy. Use this when you need to override metadata for specific files. Entries without their own attributes or chunking_strategy fall back to the request-level values. Mutually exclusive with 'file_ids'. At most 500 per batch.
51
51
  */
52
52
  files?: Array<FileWithMetadata> | undefined;
53
53
  /**
54
- * Global attributes to apply to all files if using 'file_ids'. Ignored if using 'files'.
54
+ * Batch-wide default attributes, applied to every file that does not carry its own (a 'files' entry's attributes override this).
55
55
  */
56
56
  attributes?: { [k: string]: string | boolean | number } | undefined;
57
57
  /**
58
- * Global chunking strategy to apply to all files if using 'file_ids'. Ignored if using 'files'.
58
+ * Batch-wide default chunking strategy, applied to every file that does not carry its own (a 'files' entry's chunking_strategy overrides this).
59
59
  */
60
60
  chunkingStrategy?: AutoChunkingStrategy | StaticChunkingStrategy | undefined;
61
61
  };
@@ -51,7 +51,7 @@ export type AgentConnectorsCreateAgentConnectorMutationError =
51
51
  * Create a connector
52
52
  *
53
53
  * @remarks
54
- * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. 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.
54
+ * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
55
55
  */
56
56
  export function useAgentConnectorsCreateAgentConnectorMutation(
57
57
  options?: MutationHookOptions<
@@ -34,7 +34,7 @@ export class AgentConnectors extends ClientSDK {
34
34
  * Create a connector
35
35
  *
36
36
  * @remarks
37
- * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. 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.
37
+ * Connects the agent to a Telegram bot, validates the bot token, and registers the agent's webhook. Telegram text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which Telegram chats may invoke the agent.
38
38
  */
39
39
  async createAgentConnector(
40
40
  request: operations.CreateAgentConnectorRequest,