@squidcloud/client 1.0.473 → 1.0.474

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/dist/cjs/index.js +1 -1
  2. package/dist/esm/index.js +1 -1
  3. package/dist/internal-common/src/metric-name.d.ts +14 -0
  4. package/dist/internal-common/src/public-types/ai-agent-integrations.public-types.d.ts +17 -0
  5. package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +35 -1
  6. package/dist/internal-common/src/public-types/ai-common.public-types.d.ts +3 -3
  7. package/dist/internal-common/src/public-types/ai-knowledge-base.public-types.d.ts +66 -11
  8. package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +30 -0
  9. package/dist/internal-common/src/public-types-backend/mutation.public-context.d.ts +148 -0
  10. package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +72 -0
  11. package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +190 -0
  12. package/dist/internal-common/src/types/ai-agent.types.d.ts +242 -0
  13. package/dist/internal-common/src/types/ai-knowledge-base.types.d.ts +202 -0
  14. package/dist/internal-common/src/types/ai-matchmaking.types.d.ts +59 -0
  15. package/dist/internal-common/src/types/backend-function.types.d.ts +1 -0
  16. package/dist/internal-common/src/types/communication.types.d.ts +1 -0
  17. package/dist/internal-common/src/types/document.types.d.ts +1 -0
  18. package/dist/internal-common/src/types/file.types.d.ts +6 -0
  19. package/dist/internal-common/src/types/headers.types.d.ts +17 -0
  20. package/dist/internal-common/src/types/management-api-key.types.d.ts +92 -0
  21. package/dist/internal-common/src/types/mutation.types.d.ts +1 -0
  22. package/dist/internal-common/src/types/notification.types.d.ts +5 -0
  23. package/dist/internal-common/src/types/observability.types.d.ts +162 -0
  24. package/dist/internal-common/src/types/query.types.d.ts +15 -0
  25. package/dist/internal-common/src/types/secret.types.d.ts +7 -0
  26. package/dist/internal-common/src/types/socket.types.d.ts +1 -0
  27. package/dist/internal-common/src/types/stage.d.ts +9 -0
  28. package/dist/internal-common/src/types/time-units.d.ts +1 -0
  29. package/dist/internal-common/src/types/url-shortener.types.d.ts +45 -0
  30. package/dist/internal-common/src/utils/array.d.ts +7 -0
  31. package/dist/internal-common/src/utils/e2e-test-utils.d.ts +2 -0
  32. package/dist/internal-common/src/utils/file-utils.d.ts +2 -0
  33. package/dist/internal-common/src/utils/global.utils.d.ts +1 -0
  34. package/dist/internal-common/src/utils/http.d.ts +11 -0
  35. package/dist/internal-common/src/utils/lock.manager.d.ts +14 -0
  36. package/dist/internal-common/src/utils/metric-utils.d.ts +4 -0
  37. package/dist/internal-common/src/utils/metrics.types.d.ts +7 -0
  38. package/dist/internal-common/src/utils/object.d.ts +86 -0
  39. package/dist/internal-common/src/utils/serialization.d.ts +18 -0
  40. package/dist/internal-common/src/utils/squid.constants.d.ts +6 -0
  41. package/dist/internal-common/src/utils/trace-id-generator.d.ts +1 -0
  42. package/dist/internal-common/src/utils/validation.d.ts +19 -0
  43. package/dist/internal-common/src/websocket.impl.d.ts +26 -0
  44. package/dist/typescript-client/src/ai-client.d.ts +4 -1
  45. package/dist/typescript-client/src/ai-knowledge-base/ai-knowledge-base-client-reference.d.ts +9 -1
  46. package/dist/typescript-client/src/version.d.ts +1 -1
  47. package/package.json +1 -2
@@ -1,4 +1,4 @@
1
- import { AiEmbeddingsModelWithOptionalFields, AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResultChunk, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
1
+ import { AiEmbeddingsModelWithOptionalFields, AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResultChunk, GenerateMetadataFieldDescriptionsRequest, GenerateMetadataFieldDescriptionsResponse, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
2
2
  import { AiContextId } from '../../../internal-common/src/public-types/communication.public-types';
3
3
  /**
4
4
  * Parameters for creating or updating an AI agent.
@@ -28,6 +28,14 @@ export declare class AiKnowledgeBaseReference {
28
28
  * @param knowledgeBase
29
29
  */
30
30
  upsertKnowledgeBase(knowledgeBase: Omit<AiEmbeddingsModelWithOptionalFields, 'id' | 'appId' | 'updatedAt'>): Promise<void>;
31
+ /**
32
+ * AI-generates descriptions for this knowledge base's metadata fields and returns them WITHOUT
33
+ * persisting — the caller saves them onto the KB (e.g. via `upsertKnowledgeBase`). By default only
34
+ * fields with an empty description are generated; pass `overwriteExisting` to regenerate all.
35
+ * @param options Optional `fieldNames` to limit generation to specific fields, and `overwriteExisting`.
36
+ * @returns The (re)generated fields with their new descriptions (not yet persisted).
37
+ */
38
+ generateMetadataFieldDescriptions(options?: Omit<GenerateMetadataFieldDescriptionsRequest, 'knowledgeBaseId'>): Promise<GenerateMetadataFieldDescriptionsResponse>;
31
39
  /**
32
40
  * Deletes the AI knowledge base.
33
41
  * @returns A promise that resolves when the deletion is complete.
@@ -2,4 +2,4 @@
2
2
  * The current version of the SquidCloud client package.
3
3
  * @category Platform
4
4
  */
5
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.473";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.474";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.473",
3
+ "version": "1.0.474",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -53,7 +53,6 @@
53
53
  "@supercharge/promise-pool": "^3.2.0",
54
54
  "@webpack-cli/generators": "^3.0.7",
55
55
  "copy-webpack-plugin": "^14.0.0",
56
- "cpx": "^1.5.0",
57
56
  "generate-package-json-webpack-plugin": "^2.6.0",
58
57
  "otrie": "^1.2.2",
59
58
  "tsconfig-paths-webpack-plugin": "^4.1.0",