@taico/client 0.5.0 → 0.6.0

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 (54) hide show
  1. package/README.md +1 -1
  2. package/dist/contracts/types.d.ts +2345 -1830
  3. package/dist/src/v1/client/index.d.ts +10 -2
  4. package/dist/src/v1/client/index.js +5 -1
  5. package/dist/src/v1/client/models/ActorResponseDto.d.ts +4 -0
  6. package/dist/src/v1/client/models/AuthorizationServerMetadataDto.d.ts +8 -0
  7. package/dist/src/v1/client/models/BlockSearchResultDto.d.ts +19 -1
  8. package/dist/src/v1/client/models/ClientRegistrationResponseDto.d.ts +2 -1
  9. package/dist/src/v1/client/models/ClientRegistrationResponseDto.js +1 -0
  10. package/dist/src/v1/client/models/FlowClientDto.d.ts +13 -0
  11. package/dist/src/v1/client/models/FlowClientDto.js +11 -1
  12. package/dist/src/v1/client/models/GlobalSearchResultDto.d.ts +28 -14
  13. package/dist/src/v1/client/models/GlobalSearchResultDto.js +1 -15
  14. package/dist/src/v1/client/models/RegisterClientDto.d.ts +2 -1
  15. package/dist/src/v1/client/models/RegisterClientDto.js +1 -0
  16. package/dist/src/v1/client/models/SearchIndexStatusDto.d.ts +39 -0
  17. package/dist/src/v1/client/models/SearchIndexStatusDto.js +1 -0
  18. package/dist/src/v1/client/models/SearchIndexTypeStatusDto.d.ts +14 -0
  19. package/dist/src/v1/client/models/SearchIndexTypeStatusDto.js +1 -0
  20. package/dist/src/v1/client/models/SearchMatchField.d.ts +8 -0
  21. package/dist/src/v1/client/models/SearchMatchField.js +13 -0
  22. package/dist/src/v1/client/models/SearchResultType.d.ts +8 -0
  23. package/dist/src/v1/client/models/SearchResultType.js +13 -0
  24. package/dist/src/v1/client/models/SearchSettingsDto.d.ts +74 -0
  25. package/dist/src/v1/client/models/SearchSettingsDto.js +1 -0
  26. package/dist/src/v1/client/models/SearchStrategy.d.ts +8 -0
  27. package/dist/src/v1/client/models/SearchStrategy.js +13 -0
  28. package/dist/src/v1/client/models/TaskSearchResultDto.d.ts +31 -1
  29. package/dist/src/v1/client/models/TaskSubscriptionResponseDto.d.ts +29 -0
  30. package/dist/src/v1/client/models/TaskSubscriptionResponseDto.js +13 -0
  31. package/dist/src/v1/client/models/ThreadResponseDto.d.ts +5 -0
  32. package/dist/src/v1/client/models/TokenRequestDto.d.ts +10 -2
  33. package/dist/src/v1/client/models/UpdateSearchSettingsDto.d.ts +74 -0
  34. package/dist/src/v1/client/models/UpdateSearchSettingsDto.js +1 -0
  35. package/dist/src/v1/client/services/ActorsService.d.ts +2 -2
  36. package/dist/src/v1/client/services/ActorsService.js +2 -2
  37. package/dist/src/v1/client/services/ContextService.d.ts +3 -4
  38. package/dist/src/v1/client/services/ContextService.js +3 -5
  39. package/dist/src/v1/client/services/SearchService.d.ts +42 -4
  40. package/dist/src/v1/client/services/SearchService.js +66 -5
  41. package/dist/src/v1/client/services/TaskService.d.ts +3 -4
  42. package/dist/src/v1/client/services/TaskService.js +3 -5
  43. package/dist/src/v2/actors-resource.d.ts +2 -2
  44. package/dist/src/v2/actors-resource.js +2 -2
  45. package/dist/src/v2/client.d.ts +6 -6
  46. package/dist/src/v2/client.js +9 -9
  47. package/dist/src/v2/context-resource.d.ts +0 -1
  48. package/dist/src/v2/context-resource.js +1 -1
  49. package/dist/src/v2/search-resource.d.ts +23 -2
  50. package/dist/src/v2/search-resource.js +21 -1
  51. package/dist/src/v2/task-resource.d.ts +0 -1
  52. package/dist/src/v2/task-resource.js +1 -1
  53. package/dist/src/v2/types.d.ts +165 -76
  54. package/package.json +1 -1
@@ -0,0 +1,74 @@
1
+ export type UpdateSearchSettingsDto = {
2
+ /**
3
+ * Use embeddings. When off, search uses keywords and fuzzy title matching only.
4
+ */
5
+ semanticEnabled?: boolean;
6
+ /**
7
+ * Target size of an embedded passage, in characters. Changing it re-embeds every item.
8
+ */
9
+ chunkSizeChars?: number;
10
+ /**
11
+ * Characters repeated between consecutive pieces of one over-long paragraph. Changing it re-embeds every item.
12
+ */
13
+ chunkOverlapChars?: number;
14
+ /**
15
+ * Instruction sent with each query to instruction-aware embedding models. Leave empty for models that take none.
16
+ */
17
+ queryInstruction?: string;
18
+ /**
19
+ * How long a search waits for the query embedding before answering without semantic matches, in milliseconds.
20
+ */
21
+ queryEmbeddingTimeoutMs?: number;
22
+ /**
23
+ * How many candidates each strategy contributes before the lists are merged.
24
+ */
25
+ candidatesPerStrategy?: number;
26
+ /**
27
+ * Lowest cosine similarity (0-1) at which a passage counts as a semantic match. Raise it to cut loosely related results.
28
+ */
29
+ semanticMinSimilarity?: number;
30
+ /**
31
+ * How far below the best semantic match a passage may be and still count. Trims the tail when something matches well. 1 turns it off.
32
+ */
33
+ semanticMaxGap?: number;
34
+ /**
35
+ * Lowest cover density at which a text counts as a keyword match. Filters out long texts that contain every term but far apart. 0 turns it off.
36
+ */
37
+ keywordMinDensity?: number;
38
+ /**
39
+ * Lowest trigram similarity (0-1) at which a title counts as a fuzzy match. Lower it to forgive more typos.
40
+ */
41
+ fuzzyMinSimilarity?: number;
42
+ /**
43
+ * Reciprocal rank fusion constant. Higher values flatten the difference between ranks.
44
+ */
45
+ rrfK?: number;
46
+ /**
47
+ * Weight of keyword matches in the merged ranking. 0 turns the strategy off.
48
+ */
49
+ keywordWeight?: number;
50
+ /**
51
+ * Weight of fuzzy title matches in the merged ranking. 0 turns the strategy off.
52
+ */
53
+ fuzzyTitleWeight?: number;
54
+ /**
55
+ * Weight of semantic matches in the merged ranking. 0 turns the strategy off.
56
+ */
57
+ semanticWeight?: number;
58
+ /**
59
+ * Added to the score when the query is the title; half of it when the title starts with the query.
60
+ */
61
+ exactTitleBoost?: number;
62
+ /**
63
+ * Score multiplier for finished tasks, so open work wins ties. 1 turns it off.
64
+ */
65
+ doneTaskMultiplier?: number;
66
+ /**
67
+ * Longest excerpt returned with a result, in characters. Shorter items are returned whole.
68
+ */
69
+ excerptMaxChars?: number;
70
+ /**
71
+ * Results returned when a search does not ask for a number.
72
+ */
73
+ defaultLimit?: number;
74
+ };
@@ -3,13 +3,13 @@ import type { CancelablePromise } from '../core/CancelablePromise.js';
3
3
  import type { OpenAPIConfig } from '../core/OpenAPI.js';
4
4
  export declare class ActorsService {
5
5
  /**
6
- * List all actors (users and agents)
6
+ * List all actors (users and agents), including deleted ones so past work can still be attributed
7
7
  * @returns ActorResponseDto List of all actors
8
8
  * @throws ApiError
9
9
  */
10
10
  static actorControllerListActors(config?: OpenAPIConfig): CancelablePromise<Array<ActorResponseDto>>;
11
11
  /**
12
- * Search actors by display name or slug
12
+ * Search active actors by display name or slug
13
13
  * @param query Search query string
14
14
  * @param limit Maximum number of results to return
15
15
  * @param threshold Minimum score threshold (0-1, higher is stricter)
@@ -2,7 +2,7 @@ import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
3
  export class ActorsService {
4
4
  /**
5
- * List all actors (users and agents)
5
+ * List all actors (users and agents), including deleted ones so past work can still be attributed
6
6
  * @returns ActorResponseDto List of all actors
7
7
  * @throws ApiError
8
8
  */
@@ -13,7 +13,7 @@ export class ActorsService {
13
13
  });
14
14
  }
15
15
  /**
16
- * Search actors by display name or slug
16
+ * Search active actors by display name or slug
17
17
  * @param query Search query string
18
18
  * @param limit Maximum number of results to return
19
19
  * @param threshold Minimum score threshold (0-1, higher is stricter)
@@ -28,13 +28,12 @@ export declare class ContextService {
28
28
  static contextControllerListBlocks(tag?: string, config?: OpenAPIConfig): CancelablePromise<BlockListResponseDto>;
29
29
  /**
30
30
  * Search blocks by query string
31
- * @param query Search query string
32
- * @param limit Maximum number of results to return
33
- * @param threshold Minimum score threshold (0-1, higher is stricter)
31
+ * @param query What to look for. Keywords, a partial title or a question in plain language all work.
32
+ * @param limit Maximum number of results. Defaults to the configured default limit.
34
33
  * @returns BlockSearchResultDto Search results sorted by relevance
35
34
  * @throws ApiError
36
35
  */
37
- static contextControllerSearchBlocks(query: string, limit?: number, threshold?: number, config?: OpenAPIConfig): CancelablePromise<Array<BlockSearchResultDto>>;
36
+ static contextControllerSearchBlocks(query: string, limit?: number, config?: OpenAPIConfig): CancelablePromise<Array<BlockSearchResultDto>>;
38
37
  /**
39
38
  * Get page hierarchy tree
40
39
  * @returns BlockTreeResponseDto Page hierarchy tree
@@ -35,20 +35,18 @@ export class ContextService {
35
35
  }
36
36
  /**
37
37
  * Search blocks by query string
38
- * @param query Search query string
39
- * @param limit Maximum number of results to return
40
- * @param threshold Minimum score threshold (0-1, higher is stricter)
38
+ * @param query What to look for. Keywords, a partial title or a question in plain language all work.
39
+ * @param limit Maximum number of results. Defaults to the configured default limit.
41
40
  * @returns BlockSearchResultDto Search results sorted by relevance
42
41
  * @throws ApiError
43
42
  */
44
- static contextControllerSearchBlocks(query, limit = 10, threshold = 0.3, config = OpenAPI) {
43
+ static contextControllerSearchBlocks(query, limit, config = OpenAPI) {
45
44
  return __request(config, {
46
45
  method: 'GET',
47
46
  url: '/api/v1/context/blocks/search/query',
48
47
  query: {
49
48
  'query': query,
50
49
  'limit': limit,
51
- 'threshold': threshold,
52
50
  },
53
51
  });
54
52
  }
@@ -1,14 +1,52 @@
1
1
  import type { GlobalSearchResultDto } from '../models/GlobalSearchResultDto.js';
2
+ import type { SearchIndexStatusDto } from '../models/SearchIndexStatusDto.js';
3
+ import type { SearchResultType } from '../models/SearchResultType.js';
4
+ import type { SearchSettingsDto } from '../models/SearchSettingsDto.js';
5
+ import type { UpdateSearchSettingsDto } from '../models/UpdateSearchSettingsDto.js';
2
6
  import type { CancelablePromise } from '../core/CancelablePromise.js';
3
7
  import type { OpenAPIConfig } from '../core/OpenAPI.js';
4
8
  export declare class SearchService {
5
9
  /**
6
10
  * Global search across all resources
7
- * @param query Search query string
8
- * @param limit Maximum number of results to return per category
9
- * @param threshold Minimum score threshold (0-1, higher is stricter)
11
+ * Searches tasks (including their comments), context blocks, tools, agents and projects by keyword, fuzzy title and meaning, and returns one list ranked by relevance.
12
+ * @param query What to look for. Keywords, a partial title or a question in plain language all work.
13
+ * @param limit Maximum number of results. Defaults to the configured default limit.
14
+ * @param types Only return these kinds of result. All kinds when omitted.
10
15
  * @returns GlobalSearchResultDto Search results sorted by relevance
11
16
  * @throws ApiError
12
17
  */
13
- static globalSearchControllerSearch(query: string, limit?: number, threshold?: number, config?: OpenAPIConfig): CancelablePromise<Array<GlobalSearchResultDto>>;
18
+ static globalSearchControllerSearch(query: string, limit?: number, types?: Array<SearchResultType>, config?: OpenAPIConfig): CancelablePromise<Array<GlobalSearchResultDto>>;
19
+ /**
20
+ * Get the search settings
21
+ * @returns SearchSettingsDto Every setting with its current value
22
+ * @throws ApiError
23
+ */
24
+ static searchAdminControllerGetSearchSettings(config?: OpenAPIConfig): CancelablePromise<SearchSettingsDto>;
25
+ /**
26
+ * Change search settings
27
+ * Changes the settings sent and leaves the others as they are.
28
+ * @param requestBody
29
+ * @returns SearchSettingsDto The settings after the change
30
+ * @throws ApiError
31
+ */
32
+ static searchAdminControllerUpdateSearchSettings(requestBody: UpdateSearchSettingsDto, config?: OpenAPIConfig): CancelablePromise<SearchSettingsDto>;
33
+ /**
34
+ * Reset the search settings to their defaults
35
+ * @returns SearchSettingsDto The default settings
36
+ * @throws ApiError
37
+ */
38
+ static searchAdminControllerResetSearchSettings(config?: OpenAPIConfig): CancelablePromise<SearchSettingsDto>;
39
+ /**
40
+ * Get the state of the search index
41
+ * @returns SearchIndexStatusDto What is indexed and embedded
42
+ * @throws ApiError
43
+ */
44
+ static searchAdminControllerGetSearchIndexStatus(config?: OpenAPIConfig): CancelablePromise<SearchIndexStatusDto>;
45
+ /**
46
+ * Rebuild the search index
47
+ * Discards the index and builds it again. Keyword search is complete when this returns; embeddings are rebuilt in the background.
48
+ * @returns SearchIndexStatusDto The index right after the rebuild started
49
+ * @throws ApiError
50
+ */
51
+ static searchAdminControllerRebuildSearchIndex(config?: OpenAPIConfig): CancelablePromise<SearchIndexStatusDto>;
14
52
  }
@@ -3,21 +3,82 @@ import { request as __request } from '../core/request.js';
3
3
  export class SearchService {
4
4
  /**
5
5
  * Global search across all resources
6
- * @param query Search query string
7
- * @param limit Maximum number of results to return per category
8
- * @param threshold Minimum score threshold (0-1, higher is stricter)
6
+ * Searches tasks (including their comments), context blocks, tools, agents and projects by keyword, fuzzy title and meaning, and returns one list ranked by relevance.
7
+ * @param query What to look for. Keywords, a partial title or a question in plain language all work.
8
+ * @param limit Maximum number of results. Defaults to the configured default limit.
9
+ * @param types Only return these kinds of result. All kinds when omitted.
9
10
  * @returns GlobalSearchResultDto Search results sorted by relevance
10
11
  * @throws ApiError
11
12
  */
12
- static globalSearchControllerSearch(query, limit = 10, threshold = 0.3, config = OpenAPI) {
13
+ static globalSearchControllerSearch(query, limit, types, config = OpenAPI) {
13
14
  return __request(config, {
14
15
  method: 'GET',
15
16
  url: '/api/v1/search/query',
16
17
  query: {
17
18
  'query': query,
18
19
  'limit': limit,
19
- 'threshold': threshold,
20
+ 'types': types,
20
21
  },
21
22
  });
22
23
  }
24
+ /**
25
+ * Get the search settings
26
+ * @returns SearchSettingsDto Every setting with its current value
27
+ * @throws ApiError
28
+ */
29
+ static searchAdminControllerGetSearchSettings(config = OpenAPI) {
30
+ return __request(config, {
31
+ method: 'GET',
32
+ url: '/api/v1/search/settings',
33
+ });
34
+ }
35
+ /**
36
+ * Change search settings
37
+ * Changes the settings sent and leaves the others as they are.
38
+ * @param requestBody
39
+ * @returns SearchSettingsDto The settings after the change
40
+ * @throws ApiError
41
+ */
42
+ static searchAdminControllerUpdateSearchSettings(requestBody, config = OpenAPI) {
43
+ return __request(config, {
44
+ method: 'PATCH',
45
+ url: '/api/v1/search/settings',
46
+ body: requestBody,
47
+ mediaType: 'application/json',
48
+ });
49
+ }
50
+ /**
51
+ * Reset the search settings to their defaults
52
+ * @returns SearchSettingsDto The default settings
53
+ * @throws ApiError
54
+ */
55
+ static searchAdminControllerResetSearchSettings(config = OpenAPI) {
56
+ return __request(config, {
57
+ method: 'DELETE',
58
+ url: '/api/v1/search/settings',
59
+ });
60
+ }
61
+ /**
62
+ * Get the state of the search index
63
+ * @returns SearchIndexStatusDto What is indexed and embedded
64
+ * @throws ApiError
65
+ */
66
+ static searchAdminControllerGetSearchIndexStatus(config = OpenAPI) {
67
+ return __request(config, {
68
+ method: 'GET',
69
+ url: '/api/v1/search/index',
70
+ });
71
+ }
72
+ /**
73
+ * Rebuild the search index
74
+ * Discards the index and builds it again. Keyword search is complete when this returns; embeddings are rebuilt in the background.
75
+ * @returns SearchIndexStatusDto The index right after the rebuild started
76
+ * @throws ApiError
77
+ */
78
+ static searchAdminControllerRebuildSearchIndex(config = OpenAPI) {
79
+ return __request(config, {
80
+ method: 'POST',
81
+ url: '/api/v1/search/index/rebuild',
82
+ });
83
+ }
23
84
  }
@@ -73,13 +73,12 @@ export declare class TaskService {
73
73
  static tasksControllerAssignTaskToMe(id: string, config?: OpenAPIConfig): CancelablePromise<TaskResponseDto>;
74
74
  /**
75
75
  * Search tasks by query string
76
- * @param query Search query string
77
- * @param limit Maximum number of results to return
78
- * @param threshold Minimum score threshold (0-1, higher is stricter)
76
+ * @param query What to look for. Keywords, a partial title or a question in plain language all work.
77
+ * @param limit Maximum number of results. Defaults to the configured default limit.
79
78
  * @returns TaskSearchResultDto Search results sorted by relevance
80
79
  * @throws ApiError
81
80
  */
82
- static tasksControllerSearchTasks(query: string, limit?: number, threshold?: number, config?: OpenAPIConfig): CancelablePromise<Array<TaskSearchResultDto>>;
81
+ static tasksControllerSearchTasks(query: string, limit?: number, config?: OpenAPIConfig): CancelablePromise<Array<TaskSearchResultDto>>;
83
82
  /**
84
83
  * Add a comment to a task
85
84
  * @param id Task UUID
@@ -141,20 +141,18 @@ export class TaskService {
141
141
  }
142
142
  /**
143
143
  * Search tasks by query string
144
- * @param query Search query string
145
- * @param limit Maximum number of results to return
146
- * @param threshold Minimum score threshold (0-1, higher is stricter)
144
+ * @param query What to look for. Keywords, a partial title or a question in plain language all work.
145
+ * @param limit Maximum number of results. Defaults to the configured default limit.
147
146
  * @returns TaskSearchResultDto Search results sorted by relevance
148
147
  * @throws ApiError
149
148
  */
150
- static tasksControllerSearchTasks(query, limit = 10, threshold = 0.3, config = OpenAPI) {
149
+ static tasksControllerSearchTasks(query, limit, config = OpenAPI) {
151
150
  return __request(config, {
152
151
  method: 'GET',
153
152
  url: '/api/v1/tasks/tasks/search/query',
154
153
  query: {
155
154
  'query': query,
156
155
  'limit': limit,
157
- 'threshold': threshold,
158
156
  },
159
157
  });
160
158
  }
@@ -2,11 +2,11 @@ import { BaseClient, ClientConfig } from './base-client.js';
2
2
  import type { ActorResponseDto } from './types.js';
3
3
  export declare class ActorsResource extends BaseClient {
4
4
  constructor(config: ClientConfig);
5
- /** List all actors (users and agents) */
5
+ /** List all actors (users and agents), including deleted ones so past work can still be attributed */
6
6
  ActorController_listActors(params?: {
7
7
  signal?: AbortSignal;
8
8
  }): Promise<ActorResponseDto[]>;
9
- /** Search actors by display name or slug */
9
+ /** Search active actors by display name or slug */
10
10
  ActorController_searchActors(params: {
11
11
  query: string;
12
12
  limit?: number;
@@ -3,11 +3,11 @@ export class ActorsResource extends BaseClient {
3
3
  constructor(config) {
4
4
  super(config);
5
5
  }
6
- /** List all actors (users and agents) */
6
+ /** List all actors (users and agents), including deleted ones so past work can still be attributed */
7
7
  async ActorController_listActors(params) {
8
8
  return this.request('GET', '/api/v1/actors', { signal: params?.signal });
9
9
  }
10
- /** Search actors by display name or slug */
10
+ /** Search active actors by display name or slug */
11
11
  async ActorController_searchActors(params) {
12
12
  return this.request('GET', '/api/v1/actors/search', { params: { query: params.query, limit: params.limit, threshold: params.threshold }, signal: params?.signal });
13
13
  }
@@ -8,6 +8,9 @@ import { AuthorizationJourneysResource } from './authorization-journeys-resource
8
8
  import { ToolsResource } from './tools-resource.js';
9
9
  import { JwksResource } from './jwks-resource.js';
10
10
  import { ActorsResource } from './actors-resource.js';
11
+ import { AiProvidersResource } from './ai-providers-resource.js';
12
+ import { AiModelSelectionsResource } from './ai-model-selections-resource.js';
13
+ import { SecretsResource } from './secrets-resource.js';
11
14
  import { TaskResource } from './task-resource.js';
12
15
  import { AgentrunResource } from './agent-run-resource.js';
13
16
  import { ThreadsResource } from './threads-resource.js';
@@ -15,9 +18,6 @@ import { AgentResource } from './agent-resource.js';
15
18
  import { AgentTokensResource } from './agent-tokens-resource.js';
16
19
  import { AgentExecutionTokensResource } from './agent-execution-tokens-resource.js';
17
20
  import { ContextResource } from './context-resource.js';
18
- import { AiProvidersResource } from './ai-providers-resource.js';
19
- import { AiModelSelectionsResource } from './ai-model-selections-resource.js';
20
- import { SecretsResource } from './secrets-resource.js';
21
21
  import { ExecutionsResource } from './executions-resource.js';
22
22
  import { WorkersResource } from './workers-resource.js';
23
23
  import { TaskBlueprintsResource } from './task-blueprints-resource.js';
@@ -35,6 +35,9 @@ export declare class ApiClient {
35
35
  readonly tools: ToolsResource;
36
36
  readonly jwks: JwksResource;
37
37
  readonly actors: ActorsResource;
38
+ readonly aiProviders: AiProvidersResource;
39
+ readonly aiModelSelections: AiModelSelectionsResource;
40
+ readonly secrets: SecretsResource;
38
41
  readonly task: TaskResource;
39
42
  readonly agentrun: AgentrunResource;
40
43
  readonly threads: ThreadsResource;
@@ -42,9 +45,6 @@ export declare class ApiClient {
42
45
  readonly agentTokens: AgentTokensResource;
43
46
  readonly agentExecutionTokens: AgentExecutionTokensResource;
44
47
  readonly context: ContextResource;
45
- readonly aiProviders: AiProvidersResource;
46
- readonly aiModelSelections: AiModelSelectionsResource;
47
- readonly secrets: SecretsResource;
48
48
  readonly executions: ExecutionsResource;
49
49
  readonly workers: WorkersResource;
50
50
  readonly taskBlueprints: TaskBlueprintsResource;
@@ -7,6 +7,9 @@ import { AuthorizationJourneysResource } from './authorization-journeys-resource
7
7
  import { ToolsResource } from './tools-resource.js';
8
8
  import { JwksResource } from './jwks-resource.js';
9
9
  import { ActorsResource } from './actors-resource.js';
10
+ import { AiProvidersResource } from './ai-providers-resource.js';
11
+ import { AiModelSelectionsResource } from './ai-model-selections-resource.js';
12
+ import { SecretsResource } from './secrets-resource.js';
10
13
  import { TaskResource } from './task-resource.js';
11
14
  import { AgentrunResource } from './agent-run-resource.js';
12
15
  import { ThreadsResource } from './threads-resource.js';
@@ -14,9 +17,6 @@ import { AgentResource } from './agent-resource.js';
14
17
  import { AgentTokensResource } from './agent-tokens-resource.js';
15
18
  import { AgentExecutionTokensResource } from './agent-execution-tokens-resource.js';
16
19
  import { ContextResource } from './context-resource.js';
17
- import { AiProvidersResource } from './ai-providers-resource.js';
18
- import { AiModelSelectionsResource } from './ai-model-selections-resource.js';
19
- import { SecretsResource } from './secrets-resource.js';
20
20
  import { ExecutionsResource } from './executions-resource.js';
21
21
  import { WorkersResource } from './workers-resource.js';
22
22
  import { TaskBlueprintsResource } from './task-blueprints-resource.js';
@@ -34,6 +34,9 @@ export class ApiClient {
34
34
  tools;
35
35
  jwks;
36
36
  actors;
37
+ aiProviders;
38
+ aiModelSelections;
39
+ secrets;
37
40
  task;
38
41
  agentrun;
39
42
  threads;
@@ -41,9 +44,6 @@ export class ApiClient {
41
44
  agentTokens;
42
45
  agentExecutionTokens;
43
46
  context;
44
- aiProviders;
45
- aiModelSelections;
46
- secrets;
47
47
  executions;
48
48
  workers;
49
49
  taskBlueprints;
@@ -61,6 +61,9 @@ export class ApiClient {
61
61
  this.tools = new ToolsResource(config);
62
62
  this.jwks = new JwksResource(config);
63
63
  this.actors = new ActorsResource(config);
64
+ this.aiProviders = new AiProvidersResource(config);
65
+ this.aiModelSelections = new AiModelSelectionsResource(config);
66
+ this.secrets = new SecretsResource(config);
64
67
  this.task = new TaskResource(config);
65
68
  this.agentrun = new AgentrunResource(config);
66
69
  this.threads = new ThreadsResource(config);
@@ -68,9 +71,6 @@ export class ApiClient {
68
71
  this.agentTokens = new AgentTokensResource(config);
69
72
  this.agentExecutionTokens = new AgentExecutionTokensResource(config);
70
73
  this.context = new ContextResource(config);
71
- this.aiProviders = new AiProvidersResource(config);
72
- this.aiModelSelections = new AiModelSelectionsResource(config);
73
- this.secrets = new SecretsResource(config);
74
74
  this.executions = new ExecutionsResource(config);
75
75
  this.workers = new WorkersResource(config);
76
76
  this.taskBlueprints = new TaskBlueprintsResource(config);
@@ -16,7 +16,6 @@ export declare class ContextResource extends BaseClient {
16
16
  ContextController_searchBlocks(params: {
17
17
  query: string;
18
18
  limit?: number;
19
- threshold?: number;
20
19
  signal?: AbortSignal;
21
20
  }): Promise<BlockSearchResultDto[]>;
22
21
  /** Get page hierarchy tree */
@@ -13,7 +13,7 @@ export class ContextResource extends BaseClient {
13
13
  }
14
14
  /** Search blocks by query string */
15
15
  async ContextController_searchBlocks(params) {
16
- return this.request('GET', '/api/v1/context/blocks/search/query', { params: { query: params.query, limit: params.limit, threshold: params.threshold }, signal: params?.signal });
16
+ return this.request('GET', '/api/v1/context/blocks/search/query', { params: { query: params.query, limit: params.limit }, signal: params?.signal });
17
17
  }
18
18
  /** Get page hierarchy tree */
19
19
  async ContextController_getBlockTree(params) {
@@ -1,12 +1,33 @@
1
1
  import { BaseClient, ClientConfig } from './base-client.js';
2
- import type { GlobalSearchResultDto } from './types.js';
2
+ import type { GlobalSearchResultDto, SearchIndexStatusDto, SearchResultType, SearchSettingsDto, UpdateSearchSettingsDto } from './types.js';
3
3
  export declare class SearchResource extends BaseClient {
4
4
  constructor(config: ClientConfig);
5
5
  /** Global search across all resources */
6
6
  GlobalSearchController_search(params: {
7
7
  query: string;
8
8
  limit?: number;
9
- threshold?: number;
9
+ types?: SearchResultType[];
10
10
  signal?: AbortSignal;
11
11
  }): Promise<GlobalSearchResultDto[]>;
12
+ /** Get the search settings */
13
+ SearchAdminController_getSearchSettings(params?: {
14
+ signal?: AbortSignal;
15
+ }): Promise<SearchSettingsDto>;
16
+ /** Change search settings */
17
+ SearchAdminController_updateSearchSettings(params: {
18
+ body: UpdateSearchSettingsDto;
19
+ signal?: AbortSignal;
20
+ }): Promise<SearchSettingsDto>;
21
+ /** Reset the search settings to their defaults */
22
+ SearchAdminController_resetSearchSettings(params?: {
23
+ signal?: AbortSignal;
24
+ }): Promise<SearchSettingsDto>;
25
+ /** Get the state of the search index */
26
+ SearchAdminController_getSearchIndexStatus(params?: {
27
+ signal?: AbortSignal;
28
+ }): Promise<SearchIndexStatusDto>;
29
+ /** Rebuild the search index */
30
+ SearchAdminController_rebuildSearchIndex(params?: {
31
+ signal?: AbortSignal;
32
+ }): Promise<SearchIndexStatusDto>;
12
33
  }
@@ -5,6 +5,26 @@ export class SearchResource extends BaseClient {
5
5
  }
6
6
  /** Global search across all resources */
7
7
  async GlobalSearchController_search(params) {
8
- return this.request('GET', '/api/v1/search/query', { params: { query: params.query, limit: params.limit, threshold: params.threshold }, signal: params?.signal });
8
+ return this.request('GET', '/api/v1/search/query', { params: { query: params.query, limit: params.limit, types: params.types }, signal: params?.signal });
9
+ }
10
+ /** Get the search settings */
11
+ async SearchAdminController_getSearchSettings(params) {
12
+ return this.request('GET', '/api/v1/search/settings', { signal: params?.signal });
13
+ }
14
+ /** Change search settings */
15
+ async SearchAdminController_updateSearchSettings(params) {
16
+ return this.request('PATCH', '/api/v1/search/settings', { body: params.body, signal: params?.signal });
17
+ }
18
+ /** Reset the search settings to their defaults */
19
+ async SearchAdminController_resetSearchSettings(params) {
20
+ return this.request('DELETE', '/api/v1/search/settings', { signal: params?.signal });
21
+ }
22
+ /** Get the state of the search index */
23
+ async SearchAdminController_getSearchIndexStatus(params) {
24
+ return this.request('GET', '/api/v1/search/index', { signal: params?.signal });
25
+ }
26
+ /** Rebuild the search index */
27
+ async SearchAdminController_rebuildSearchIndex(params) {
28
+ return this.request('POST', '/api/v1/search/index/rebuild', { signal: params?.signal });
9
29
  }
10
30
  }
@@ -47,7 +47,6 @@ export declare class TaskResource extends BaseClient {
47
47
  TasksController_searchTasks(params: {
48
48
  query: string;
49
49
  limit?: number;
50
- threshold?: number;
51
50
  signal?: AbortSignal;
52
51
  }): Promise<TaskSearchResultDto[]>;
53
52
  /** Add a comment to a task */
@@ -33,7 +33,7 @@ export class TaskResource extends BaseClient {
33
33
  }
34
34
  /** Search tasks by query string */
35
35
  async TasksController_searchTasks(params) {
36
- return this.request('GET', '/api/v1/tasks/tasks/search/query', { params: { query: params.query, limit: params.limit, threshold: params.threshold }, signal: params?.signal });
36
+ return this.request('GET', '/api/v1/tasks/tasks/search/query', { params: { query: params.query, limit: params.limit }, signal: params?.signal });
37
37
  }
38
38
  /** Add a comment to a task */
39
39
  async TasksController_addComment(params) {