@taico/client 0.5.1 → 0.7.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.
- package/README.md +1 -1
- package/dist/contracts/types.d.ts +2545 -1906
- package/dist/src/v1/client/index.d.ts +11 -2
- package/dist/src/v1/client/index.js +5 -1
- package/dist/src/v1/client/models/ActorResponseDto.d.ts +4 -0
- package/dist/src/v1/client/models/AuthorizationServerMetadataDto.d.ts +8 -0
- package/dist/src/v1/client/models/BlockSearchResultDto.d.ts +19 -1
- package/dist/src/v1/client/models/ClientRegistrationResponseDto.d.ts +2 -1
- package/dist/src/v1/client/models/ClientRegistrationResponseDto.js +1 -0
- package/dist/src/v1/client/models/FlowClientDto.d.ts +13 -0
- package/dist/src/v1/client/models/FlowClientDto.js +11 -1
- package/dist/src/v1/client/models/GlobalSearchResultDto.d.ts +28 -14
- package/dist/src/v1/client/models/GlobalSearchResultDto.js +1 -15
- package/dist/src/v1/client/models/RegisterClientDto.d.ts +2 -1
- package/dist/src/v1/client/models/RegisterClientDto.js +1 -0
- package/dist/src/v1/client/models/SearchIndexStatusDto.d.ts +39 -0
- package/dist/src/v1/client/models/SearchIndexStatusDto.js +1 -0
- package/dist/src/v1/client/models/SearchIndexTypeStatusDto.d.ts +14 -0
- package/dist/src/v1/client/models/SearchIndexTypeStatusDto.js +1 -0
- package/dist/src/v1/client/models/SearchMatchField.d.ts +8 -0
- package/dist/src/v1/client/models/SearchMatchField.js +13 -0
- package/dist/src/v1/client/models/SearchResultType.d.ts +8 -0
- package/dist/src/v1/client/models/SearchResultType.js +13 -0
- package/dist/src/v1/client/models/SearchSettingsDto.d.ts +74 -0
- package/dist/src/v1/client/models/SearchSettingsDto.js +1 -0
- package/dist/src/v1/client/models/SearchStrategy.d.ts +8 -0
- package/dist/src/v1/client/models/SearchStrategy.js +13 -0
- package/dist/src/v1/client/models/TaskSearchResultDto.d.ts +31 -1
- package/dist/src/v1/client/models/TaskSubscriptionResponseDto.d.ts +29 -0
- package/dist/src/v1/client/models/TaskSubscriptionResponseDto.js +13 -0
- package/dist/src/v1/client/models/ThreadListItemResponseDto.d.ts +8 -0
- package/dist/src/v1/client/models/ThreadResponseDto.d.ts +5 -0
- package/dist/src/v1/client/models/ThreadTokenUsageResponseDto.d.ts +18 -0
- package/dist/src/v1/client/models/ThreadTokenUsageResponseDto.js +1 -0
- package/dist/src/v1/client/models/TokenRequestDto.d.ts +10 -2
- package/dist/src/v1/client/models/UpdateSearchSettingsDto.d.ts +74 -0
- package/dist/src/v1/client/models/UpdateSearchSettingsDto.js +1 -0
- package/dist/src/v1/client/services/ActorsService.d.ts +2 -2
- package/dist/src/v1/client/services/ActorsService.js +2 -2
- package/dist/src/v1/client/services/ContextService.d.ts +3 -4
- package/dist/src/v1/client/services/ContextService.js +3 -5
- package/dist/src/v1/client/services/SearchService.d.ts +42 -4
- package/dist/src/v1/client/services/SearchService.js +66 -5
- package/dist/src/v1/client/services/TaskService.d.ts +3 -4
- package/dist/src/v1/client/services/TaskService.js +3 -5
- package/dist/src/v1/client/services/ThreadsService.d.ts +16 -1
- package/dist/src/v1/client/services/ThreadsService.js +37 -1
- package/dist/src/v2/actors-resource.d.ts +2 -2
- package/dist/src/v2/actors-resource.js +2 -2
- package/dist/src/v2/client.d.ts +6 -6
- package/dist/src/v2/client.js +9 -9
- package/dist/src/v2/context-resource.d.ts +0 -1
- package/dist/src/v2/context-resource.js +1 -1
- package/dist/src/v2/search-resource.d.ts +23 -2
- package/dist/src/v2/search-resource.js +21 -1
- package/dist/src/v2/task-resource.d.ts +0 -1
- package/dist/src/v2/task-resource.js +1 -1
- package/dist/src/v2/threads-resource.d.ts +12 -2
- package/dist/src/v2/threads-resource.js +9 -1
- package/dist/src/v2/types.d.ts +173 -76
- package/package.json +1 -1
|
@@ -4,9 +4,17 @@ export type TokenRequestDto = {
|
|
|
4
4
|
*/
|
|
5
5
|
grant_type: TokenRequestDto.grant_type;
|
|
6
6
|
/**
|
|
7
|
-
* Client identifier issued during dynamic registration
|
|
7
|
+
* Client identifier: issued during dynamic registration, or the URL of the client metadata document. Required unless a client_assertion is sent
|
|
8
8
|
*/
|
|
9
|
-
client_id
|
|
9
|
+
client_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Type of the client assertion. Sent by clients that authenticate with private_key_jwt
|
|
12
|
+
*/
|
|
13
|
+
client_assertion_type?: string;
|
|
14
|
+
/**
|
|
15
|
+
* JWT signed with the client private key (RFC 7523). Sent by clients that authenticate with private_key_jwt
|
|
16
|
+
*/
|
|
17
|
+
client_assertion?: string;
|
|
10
18
|
/**
|
|
11
19
|
* Authorization code that was issued by the /authorize endpoint
|
|
12
20
|
*/
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
|
32
|
-
* @param limit Maximum number of results to
|
|
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,
|
|
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
|
|
39
|
-
* @param limit Maximum number of results to
|
|
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
|
|
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
|
-
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
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,
|
|
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
|
-
*
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
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
|
|
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
|
-
'
|
|
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
|
|
77
|
-
* @param limit Maximum number of results to
|
|
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,
|
|
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
|
|
145
|
-
* @param limit Maximum number of results to
|
|
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
|
|
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
|
}
|
|
@@ -10,6 +10,7 @@ import type { ThreadListResponseDto } from '../models/ThreadListResponseDto.js';
|
|
|
10
10
|
import type { ThreadMessageResponseDto } from '../models/ThreadMessageResponseDto.js';
|
|
11
11
|
import type { ThreadResponseDto } from '../models/ThreadResponseDto.js';
|
|
12
12
|
import type { ThreadStateResponseDto } from '../models/ThreadStateResponseDto.js';
|
|
13
|
+
import type { ThreadTokenUsageResponseDto } from '../models/ThreadTokenUsageResponseDto.js';
|
|
13
14
|
import type { UpdateThreadDto } from '../models/UpdateThreadDto.js';
|
|
14
15
|
import type { UpdateThreadStateDto } from '../models/UpdateThreadStateDto.js';
|
|
15
16
|
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -121,6 +122,13 @@ export declare class ThreadsService {
|
|
|
121
122
|
* @throws ApiError
|
|
122
123
|
*/
|
|
123
124
|
static threadsControllerUpdateThreadState(id: string, requestBody: UpdateThreadStateDto, config?: OpenAPIConfig): CancelablePromise<ThreadStateResponseDto>;
|
|
125
|
+
/**
|
|
126
|
+
* Get the token usage the model provider reported for a thread (debug)
|
|
127
|
+
* @param id Thread UUID
|
|
128
|
+
* @returns ThreadTokenUsageResponseDto Token usage retrieved successfully
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
static threadsControllerGetThreadTokenUsage(id: string, config?: OpenAPIConfig): CancelablePromise<ThreadTokenUsageResponseDto>;
|
|
124
132
|
/**
|
|
125
133
|
* Append content to the state of a thread
|
|
126
134
|
* @param id Thread UUID
|
|
@@ -138,7 +146,7 @@ export declare class ThreadsService {
|
|
|
138
146
|
*/
|
|
139
147
|
static threadsControllerCreateMessage(id: string, requestBody: CreateThreadMessageDto, config?: OpenAPIConfig): CancelablePromise<ThreadMessageResponseDto>;
|
|
140
148
|
/**
|
|
141
|
-
* List messages in a thread
|
|
149
|
+
* List messages in a thread, newest first
|
|
142
150
|
* @param id Thread UUID
|
|
143
151
|
* @param page Page number
|
|
144
152
|
* @param limit Number of items per page
|
|
@@ -146,4 +154,11 @@ export declare class ThreadsService {
|
|
|
146
154
|
* @throws ApiError
|
|
147
155
|
*/
|
|
148
156
|
static threadsControllerListMessages(id: string, page?: number, limit?: number, config?: OpenAPIConfig): CancelablePromise<ListThreadMessagesResponseDto>;
|
|
157
|
+
/**
|
|
158
|
+
* Mark every message in the thread as read by the caller
|
|
159
|
+
* @param id Thread UUID
|
|
160
|
+
* @returns void
|
|
161
|
+
* @throws ApiError
|
|
162
|
+
*/
|
|
163
|
+
static threadsControllerMarkThreadRead(id: string, config?: OpenAPIConfig): CancelablePromise<void>;
|
|
149
164
|
}
|
|
@@ -271,6 +271,24 @@ export class ThreadsService {
|
|
|
271
271
|
},
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Get the token usage the model provider reported for a thread (debug)
|
|
276
|
+
* @param id Thread UUID
|
|
277
|
+
* @returns ThreadTokenUsageResponseDto Token usage retrieved successfully
|
|
278
|
+
* @throws ApiError
|
|
279
|
+
*/
|
|
280
|
+
static threadsControllerGetThreadTokenUsage(id, config = OpenAPI) {
|
|
281
|
+
return __request(config, {
|
|
282
|
+
method: 'GET',
|
|
283
|
+
url: '/api/v1/threads/{id}/token-usage',
|
|
284
|
+
path: {
|
|
285
|
+
'id': id,
|
|
286
|
+
},
|
|
287
|
+
errors: {
|
|
288
|
+
404: `Thread not found`,
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
}
|
|
274
292
|
/**
|
|
275
293
|
* Append content to the state of a thread
|
|
276
294
|
* @param id Thread UUID
|
|
@@ -316,7 +334,7 @@ export class ThreadsService {
|
|
|
316
334
|
});
|
|
317
335
|
}
|
|
318
336
|
/**
|
|
319
|
-
* List messages in a thread
|
|
337
|
+
* List messages in a thread, newest first
|
|
320
338
|
* @param id Thread UUID
|
|
321
339
|
* @param page Page number
|
|
322
340
|
* @param limit Number of items per page
|
|
@@ -339,4 +357,22 @@ export class ThreadsService {
|
|
|
339
357
|
},
|
|
340
358
|
});
|
|
341
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* Mark every message in the thread as read by the caller
|
|
362
|
+
* @param id Thread UUID
|
|
363
|
+
* @returns void
|
|
364
|
+
* @throws ApiError
|
|
365
|
+
*/
|
|
366
|
+
static threadsControllerMarkThreadRead(id, config = OpenAPI) {
|
|
367
|
+
return __request(config, {
|
|
368
|
+
method: 'POST',
|
|
369
|
+
url: '/api/v1/threads/{id}/read',
|
|
370
|
+
path: {
|
|
371
|
+
'id': id,
|
|
372
|
+
},
|
|
373
|
+
errors: {
|
|
374
|
+
404: `Thread not found`,
|
|
375
|
+
},
|
|
376
|
+
});
|
|
377
|
+
}
|
|
342
378
|
}
|
|
@@ -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
|
}
|
package/dist/src/v2/client.d.ts
CHANGED
|
@@ -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;
|
package/dist/src/v2/client.js
CHANGED
|
@@ -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);
|
|
@@ -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
|
|
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
|
-
|
|
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
|
}
|