@squidcloud/client 1.0.483 → 1.0.485

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 (55) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/esm/index.js +1 -1
  3. package/dist/internal-common/src/ai/system-openai-compatible.d.ts +35 -0
  4. package/dist/internal-common/src/metric-name.d.ts +14 -0
  5. package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +79 -3
  6. package/dist/internal-common/src/public-types/ai-common.public-types.d.ts +9 -0
  7. package/dist/internal-common/src/public-types/ai-function.public-types.d.ts +36 -0
  8. package/dist/internal-common/src/public-types/ai-knowledge-base.public-types.d.ts +141 -2
  9. package/dist/internal-common/src/public-types/connector.public-types.d.ts +1 -1
  10. package/dist/internal-common/src/public-types/extraction.public-types.d.ts +9 -2
  11. package/dist/internal-common/src/public-types/integration.public-types.d.ts +7 -1
  12. package/dist/internal-common/src/public-types/source-code.public-types.d.ts +196 -0
  13. package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +30 -0
  14. package/dist/internal-common/src/public-types-backend/mutation.public-context.d.ts +161 -0
  15. package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +75 -0
  16. package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +193 -0
  17. package/dist/internal-common/src/types/ai-agent.types.d.ts +253 -0
  18. package/dist/internal-common/src/types/ai-knowledge-base.types.d.ts +306 -0
  19. package/dist/internal-common/src/types/ai-matchmaking.types.d.ts +19 -0
  20. package/dist/internal-common/src/types/backend-function.types.d.ts +1 -0
  21. package/dist/internal-common/src/types/communication.types.d.ts +1 -0
  22. package/dist/internal-common/src/types/document.types.d.ts +1 -0
  23. package/dist/internal-common/src/types/file.types.d.ts +6 -0
  24. package/dist/internal-common/src/types/headers.types.d.ts +41 -0
  25. package/dist/internal-common/src/types/management-api-key.types.d.ts +92 -0
  26. package/dist/internal-common/src/types/mutation.types.d.ts +1 -0
  27. package/dist/internal-common/src/types/notification.types.d.ts +19 -0
  28. package/dist/internal-common/src/types/observability.types.d.ts +168 -0
  29. package/dist/internal-common/src/types/query.types.d.ts +15 -0
  30. package/dist/internal-common/src/types/secret.types.d.ts +7 -0
  31. package/dist/internal-common/src/types/socket.types.d.ts +1 -0
  32. package/dist/internal-common/src/types/stage.d.ts +9 -0
  33. package/dist/internal-common/src/types/time-units.d.ts +1 -0
  34. package/dist/internal-common/src/types/url-shortener.types.d.ts +45 -0
  35. package/dist/internal-common/src/utils/array.d.ts +7 -0
  36. package/dist/internal-common/src/utils/e2e-test-utils.d.ts +2 -0
  37. package/dist/internal-common/src/utils/file-utils.d.ts +2 -0
  38. package/dist/internal-common/src/utils/global.utils.d.ts +1 -0
  39. package/dist/internal-common/src/utils/http.d.ts +10 -0
  40. package/dist/internal-common/src/utils/lock.manager.d.ts +14 -0
  41. package/dist/internal-common/src/utils/metric-utils.d.ts +4 -0
  42. package/dist/internal-common/src/utils/metrics.types.d.ts +7 -0
  43. package/dist/internal-common/src/utils/object.d.ts +86 -0
  44. package/dist/internal-common/src/utils/serialization.d.ts +24 -0
  45. package/dist/internal-common/src/utils/squid.constants.d.ts +6 -0
  46. package/dist/internal-common/src/utils/trace-id-generator.d.ts +1 -0
  47. package/dist/internal-common/src/utils/validation.d.ts +19 -0
  48. package/dist/internal-common/src/websocket.impl.d.ts +26 -0
  49. package/dist/typescript-client/src/agent/ai-agent-client-reference.d.ts +12 -1
  50. package/dist/typescript-client/src/ai-knowledge-base/ai-knowledge-base-client-reference.d.ts +9 -1
  51. package/dist/typescript-client/src/distributed-lock.manager.d.ts +3 -2
  52. package/dist/typescript-client/src/integration-client.d.ts +5 -1
  53. package/dist/typescript-client/src/public-types.d.ts +1 -0
  54. package/dist/typescript-client/src/version.d.ts +1 -1
  55. package/package.json +1 -3
@@ -1,4 +1,4 @@
1
- import { AiEmbeddingsModelWithOptionalFields, AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResponse, AiKnowledgeBaseSearchResultChunk, ExploreKnowledgeBaseGraphRequest, ExploreKnowledgeBaseGraphResponse, GenerateMetadataFieldDescriptionsRequest, GenerateMetadataFieldDescriptionsResponse, GetKnowledgeBaseGraphStatusResponse, ListAiKnowledgeBaseContextsPageResponse, ListKnowledgeBaseContextsOptions, QueryKnowledgeBaseGraphRequest, QueryKnowledgeBaseGraphResponse, RebuildKnowledgeBaseGraphRequest, UpsertKnowledgeBaseContextResponse, UpsertKnowledgeBaseContextsResponse } from '../../../internal-common/src/public-types/ai-knowledge-base.public-types';
1
+ import { AiEmbeddingsModelWithOptionalFields, AiKnowledgeBase, AiKnowledgeBaseChatOptions, AiKnowledgeBaseContext, AiKnowledgeBaseContextRequest, AiKnowledgeBaseContextWithReasoning, AiKnowledgeBaseDownloadContextResponse, AiKnowledgeBaseSearchContextsWithContextIdRequest, AiKnowledgeBaseSearchContextsWithPromptRequest, AiKnowledgeBaseSearchResponse, AiKnowledgeBaseSearchResultChunk, ExploreKnowledgeBaseGraphRequest, ExploreKnowledgeBaseGraphResponse, GenerateMetadataFieldDescriptionsRequest, GenerateMetadataFieldDescriptionsResponse, GetKnowledgeBaseGraphStatusResponse, GrepKnowledgeBaseOptions, GrepKnowledgeBaseResponse, ListAiKnowledgeBaseContextsPageResponse, ListKnowledgeBaseContextsOptions, QueryKnowledgeBaseGraphRequest, QueryKnowledgeBaseGraphResponse, RebuildKnowledgeBaseGraphRequest, 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.
@@ -105,6 +105,14 @@ export declare class AiKnowledgeBaseReference {
105
105
  searchWithGraphContext(options: AiKnowledgeBaseChatOptions & {
106
106
  prompt: string;
107
107
  }): Promise<AiKnowledgeBaseSearchResponse>;
108
+ /**
109
+ * Scans the knowledge base's raw extracted text for a literal string and returns every matching line
110
+ * with its file and locator. Unlike {@link search} this reads the pre-chunking text, which includes
111
+ * spreadsheet rows verbatim, and matches characters rather than meaning. The pattern is always a
112
+ * literal — regex metacharacters in it are escaped — and matching is case-insensitive.
113
+ * `options.metadataFilter` scopes the scan to the contexts it admits before any text is matched.
114
+ */
115
+ grep(pattern: string, options?: GrepKnowledgeBaseOptions): Promise<GrepKnowledgeBaseResponse>;
108
116
  /**
109
117
  * Queries the knowledge base's graph (documents, entities, themes, facets) through the closed op set
110
118
  * — overview / resolve / describe / subtree / docsUnder / conceptsOf / neighborhood / pathBetween /
@@ -23,7 +23,7 @@ export interface DistributedLockOptions {
23
23
  export interface DistributedLock {
24
24
  /**
25
25
  * Releases the lock by sending a release message to the server.
26
- * The release process runs asynchronously. Use `observeRelease()` to be notified when the release completes.
26
+ * The lock is considered released immediately; the message to the server is sent asynchronously.
27
27
  * @returns A promise that resolves when the release message is sent, or undefined for backward compatibility.
28
28
  */
29
29
  release(): Promise<void>;
@@ -33,7 +33,8 @@ export interface DistributedLock {
33
33
  */
34
34
  isReleased(): boolean;
35
35
  /**
36
- * Observes when the lock is released (It may be released due to a connection issue)
36
+ * Observes when the lock is released (It may be released due to a connection issue).
37
+ * Emits as soon as the lock is considered released locally, without waiting for the server to confirm it.
37
38
  * @returns An observable that emits when the lock is released.
38
39
  */
39
40
  observeRelease(): Observable<void>;
@@ -1,4 +1,4 @@
1
- import { IntegrationId, IntegrationInfo, IntegrationType } from './public-types';
1
+ import { DiscoverSourceRepositoriesResponse, IntegrationId, IntegrationInfo, IntegrationType } from './public-types';
2
2
  /**
3
3
  * IntegrationClient manages integrations within an application,
4
4
  * providing methods for listing, retrieving, updating, and deleting integrations.
@@ -57,6 +57,10 @@ export declare class IntegrationClient {
57
57
  * @returns A promise that resolves when the operation is complete.
58
58
  */
59
59
  upsertIntegration<ConfigurationType = Record<string, any>>(integration: IntegrationInfo<ConfigurationType>): Promise<void>;
60
+ /** Discovers repositories from a saved source-code integration. */
61
+ discoverSourceRepositories(integrationId: IntegrationId): Promise<DiscoverSourceRepositoriesResponse>;
62
+ /** Discovers repositories from an unsaved source-code integration. */
63
+ discoverSourceRepositoriesFromDraft(integration: IntegrationInfo): Promise<DiscoverSourceRepositoriesResponse>;
60
64
  /**
61
65
  * Generates AI descriptions for the data schema of an integration.
62
66
  * Uses AI to analyze the schema structure and generate meaningful descriptions
@@ -31,5 +31,6 @@ export * from '../../internal-common/src/public-types/schema.public-types';
31
31
  export * from '../../internal-common/src/public-types/secret.public-types';
32
32
  export * from '../../internal-common/src/public-types/serialized-query.public-types';
33
33
  export * from '../../internal-common/src/public-types/socket.public-types';
34
+ export * from '../../internal-common/src/public-types/source-code.public-types';
34
35
  export * from '../../internal-common/src/public-types/typescript.public-types';
35
36
  export * from '../../internal-common/src/public-types/web.public-types';
@@ -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.483";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.485";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.483",
3
+ "version": "1.0.485",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -51,12 +51,10 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@supercharge/promise-pool": "^3.2.0",
54
- "@webpack-cli/generators": "^3.0.7",
55
54
  "copy-webpack-plugin": "^14.0.0",
56
55
  "generate-package-json-webpack-plugin": "^2.6.0",
57
56
  "otrie": "^1.2.2",
58
57
  "tsconfig-paths-webpack-plugin": "^4.1.0",
59
- "tscpaths": "^0.0.9",
60
58
  "typedoc": "^0.28.10",
61
59
  "typedoc-plugin-markdown": "^4.8.1",
62
60
  "webpack": "^5.106.2",