@taico/client 0.5.1 → 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.
- package/README.md +1 -1
- package/dist/contracts/types.d.ts +2345 -1830
- package/dist/src/v1/client/index.d.ts +10 -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/ThreadResponseDto.d.ts +5 -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/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/types.d.ts +165 -76
- package/package.json +1 -1
|
@@ -72,10 +72,10 @@ export type { DeleteMappingResponseDto } from './models/DeleteMappingResponseDto
|
|
|
72
72
|
export type { DeleteScopeResponseDto } from './models/DeleteScopeResponseDto.js';
|
|
73
73
|
export type { DeleteServerResponseDto } from './models/DeleteServerResponseDto.js';
|
|
74
74
|
export type { ExecutionStatsResponseDto } from './models/ExecutionStatsResponseDto.js';
|
|
75
|
-
export
|
|
75
|
+
export { FlowClientDto } from './models/FlowClientDto.js';
|
|
76
76
|
export type { FlowServerDto } from './models/FlowServerDto.js';
|
|
77
77
|
export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
|
|
78
|
-
export { GlobalSearchResultDto } from './models/GlobalSearchResultDto.js';
|
|
78
|
+
export type { GlobalSearchResultDto } from './models/GlobalSearchResultDto.js';
|
|
79
79
|
export type { ImportBlocksResponseDto } from './models/ImportBlocksResponseDto.js';
|
|
80
80
|
export type { InputRequestResponseDto } from './models/InputRequestResponseDto.js';
|
|
81
81
|
export { IntrospectTokenRequestDto } from './models/IntrospectTokenRequestDto.js';
|
|
@@ -108,6 +108,12 @@ export type { ScheduledTaskResponseDto } from './models/ScheduledTaskResponseDto
|
|
|
108
108
|
export type { ScopeDto } from './models/ScopeDto.js';
|
|
109
109
|
export type { ScopeResponseDto } from './models/ScopeResponseDto.js';
|
|
110
110
|
export type { ScopesResponseDto } from './models/ScopesResponseDto.js';
|
|
111
|
+
export type { SearchIndexStatusDto } from './models/SearchIndexStatusDto.js';
|
|
112
|
+
export type { SearchIndexTypeStatusDto } from './models/SearchIndexTypeStatusDto.js';
|
|
113
|
+
export { SearchMatchField } from './models/SearchMatchField.js';
|
|
114
|
+
export { SearchResultType } from './models/SearchResultType.js';
|
|
115
|
+
export type { SearchSettingsDto } from './models/SearchSettingsDto.js';
|
|
116
|
+
export { SearchStrategy } from './models/SearchStrategy.js';
|
|
111
117
|
export type { SecretResponseDto } from './models/SecretResponseDto.js';
|
|
112
118
|
export type { SecretValueResponseDto } from './models/SecretValueResponseDto.js';
|
|
113
119
|
export type { ServerListResponseDto } from './models/ServerListResponseDto.js';
|
|
@@ -126,6 +132,7 @@ export type { TaskInfoDto } from './models/TaskInfoDto.js';
|
|
|
126
132
|
export type { TaskListResponseDto } from './models/TaskListResponseDto.js';
|
|
127
133
|
export { TaskResponseDto } from './models/TaskResponseDto.js';
|
|
128
134
|
export type { TaskSearchResultDto } from './models/TaskSearchResultDto.js';
|
|
135
|
+
export { TaskSubscriptionResponseDto } from './models/TaskSubscriptionResponseDto.js';
|
|
129
136
|
export { TaskSummaryResponseDto } from './models/TaskSummaryResponseDto.js';
|
|
130
137
|
export type { ThreadListItemResponseDto } from './models/ThreadListItemResponseDto.js';
|
|
131
138
|
export type { ThreadListResponseDto } from './models/ThreadListResponseDto.js';
|
|
@@ -143,6 +150,7 @@ export type { UpdateConnectionDto } from './models/UpdateConnectionDto.js';
|
|
|
143
150
|
export type { UpdateExecutionStatsDto } from './models/UpdateExecutionStatsDto.js';
|
|
144
151
|
export type { UpdateRunnerSessionIdDto } from './models/UpdateRunnerSessionIdDto.js';
|
|
145
152
|
export type { UpdateScheduledTaskDto } from './models/UpdateScheduledTaskDto.js';
|
|
153
|
+
export type { UpdateSearchSettingsDto } from './models/UpdateSearchSettingsDto.js';
|
|
146
154
|
export type { UpdateSecretDto } from './models/UpdateSecretDto.js';
|
|
147
155
|
export { UpdateServerDto } from './models/UpdateServerDto.js';
|
|
148
156
|
export type { UpdateTaskBlueprintDto } from './models/UpdateTaskBlueprintDto.js';
|
|
@@ -22,19 +22,23 @@ export { CreateAgentDto } from './models/CreateAgentDto.js';
|
|
|
22
22
|
export { CreateAiProviderDto } from './models/CreateAiProviderDto.js';
|
|
23
23
|
export { CreateManagedUserRequestDto } from './models/CreateManagedUserRequestDto.js';
|
|
24
24
|
export { CreateServerDto } from './models/CreateServerDto.js';
|
|
25
|
+
export { FlowClientDto } from './models/FlowClientDto.js';
|
|
25
26
|
export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
|
|
26
|
-
export { GlobalSearchResultDto } from './models/GlobalSearchResultDto.js';
|
|
27
27
|
export { IntrospectTokenRequestDto } from './models/IntrospectTokenRequestDto.js';
|
|
28
28
|
export { IntrospectTokenResponseDto } from './models/IntrospectTokenResponseDto.js';
|
|
29
29
|
export { ManagedUserResponseDto } from './models/ManagedUserResponseDto.js';
|
|
30
30
|
export { McpFlowResponseDto } from './models/McpFlowResponseDto.js';
|
|
31
31
|
export { PatchAgentDto } from './models/PatchAgentDto.js';
|
|
32
32
|
export { RegisterClientDto } from './models/RegisterClientDto.js';
|
|
33
|
+
export { SearchMatchField } from './models/SearchMatchField.js';
|
|
34
|
+
export { SearchResultType } from './models/SearchResultType.js';
|
|
35
|
+
export { SearchStrategy } from './models/SearchStrategy.js';
|
|
33
36
|
export { ServerResponseDto } from './models/ServerResponseDto.js';
|
|
34
37
|
export { StopActiveTaskExecutionDto } from './models/StopActiveTaskExecutionDto.js';
|
|
35
38
|
export { TaskExecutionHistoryResponseDto } from './models/TaskExecutionHistoryResponseDto.js';
|
|
36
39
|
export { TaskExecutionQueueEntryResponseDto } from './models/TaskExecutionQueueEntryResponseDto.js';
|
|
37
40
|
export { TaskResponseDto } from './models/TaskResponseDto.js';
|
|
41
|
+
export { TaskSubscriptionResponseDto } from './models/TaskSubscriptionResponseDto.js';
|
|
38
42
|
export { TaskSummaryResponseDto } from './models/TaskSummaryResponseDto.js';
|
|
39
43
|
export { TokenExchangeRequestDto } from './models/TokenExchangeRequestDto.js';
|
|
40
44
|
export { TokenRequestDto } from './models/TokenRequestDto.js';
|
|
@@ -23,6 +23,10 @@ export type ActorResponseDto = {
|
|
|
23
23
|
* Short description of what this actor is good at and when to assign them tasks
|
|
24
24
|
*/
|
|
25
25
|
introduction?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
* When the actor was deleted, or null while active. Deleted actors stay attached to the work they touched but cannot be assigned anything new.
|
|
28
|
+
*/
|
|
29
|
+
deletedAt: string | null;
|
|
26
30
|
};
|
|
27
31
|
export declare namespace ActorResponseDto {
|
|
28
32
|
/**
|
|
@@ -31,8 +31,16 @@ export type AuthorizationServerMetadataDto = {
|
|
|
31
31
|
* Client authentication methods supported by the token endpoint
|
|
32
32
|
*/
|
|
33
33
|
token_endpoint_auth_methods_supported: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Signature algorithms accepted on the JWT of a client that authenticates with private_key_jwt
|
|
36
|
+
*/
|
|
37
|
+
token_endpoint_auth_signing_alg_values_supported: Array<string>;
|
|
34
38
|
/**
|
|
35
39
|
* PKCE code challenge methods supported by this authorization server
|
|
36
40
|
*/
|
|
37
41
|
code_challenge_methods_supported: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Whether clients may use a Client ID Metadata Document URL as their client_id instead of registering
|
|
44
|
+
*/
|
|
45
|
+
client_id_metadata_document_supported: boolean;
|
|
38
46
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { SearchMatchField } from './SearchMatchField.js';
|
|
2
|
+
import type { SearchStrategy } from './SearchStrategy.js';
|
|
1
3
|
export type BlockSearchResultDto = {
|
|
2
4
|
/**
|
|
3
5
|
* Block ID
|
|
@@ -8,7 +10,23 @@ export type BlockSearchResultDto = {
|
|
|
8
10
|
*/
|
|
9
11
|
title: string;
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* Relevance from 0 to 1, for ordering results within this response. Not comparable between searches.
|
|
12
14
|
*/
|
|
13
15
|
score: number;
|
|
16
|
+
/**
|
|
17
|
+
* The search strategies that found this result
|
|
18
|
+
*/
|
|
19
|
+
matchedBy: Array<SearchStrategy>;
|
|
20
|
+
/**
|
|
21
|
+
* Which part of the block matched best: its title or a passage of its content
|
|
22
|
+
*/
|
|
23
|
+
matchedOn: SearchMatchField;
|
|
24
|
+
/**
|
|
25
|
+
* Text from the block: the passage that matched, or the start of the content when only the title matched. Empty when the block has no content.
|
|
26
|
+
*/
|
|
27
|
+
excerpt: string;
|
|
28
|
+
/**
|
|
29
|
+
* True when the excerpt is the block's whole content. False when it is only a part.
|
|
30
|
+
*/
|
|
31
|
+
excerptIsComplete: boolean;
|
|
14
32
|
};
|
|
@@ -38,6 +38,7 @@ export declare namespace ClientRegistrationResponseDto {
|
|
|
38
38
|
*/
|
|
39
39
|
enum token_endpoint_auth_method {
|
|
40
40
|
NONE = "none",
|
|
41
|
-
CLIENT_SECRET_BASIC = "client_secret_basic"
|
|
41
|
+
CLIENT_SECRET_BASIC = "client_secret_basic",
|
|
42
|
+
PRIVATE_KEY_JWT = "private_key_jwt"
|
|
42
43
|
}
|
|
43
44
|
}
|
|
@@ -7,5 +7,6 @@ export var ClientRegistrationResponseDto;
|
|
|
7
7
|
(function (token_endpoint_auth_method) {
|
|
8
8
|
token_endpoint_auth_method["NONE"] = "none";
|
|
9
9
|
token_endpoint_auth_method["CLIENT_SECRET_BASIC"] = "client_secret_basic";
|
|
10
|
+
token_endpoint_auth_method["PRIVATE_KEY_JWT"] = "private_key_jwt";
|
|
10
11
|
})(token_endpoint_auth_method = ClientRegistrationResponseDto.token_endpoint_auth_method || (ClientRegistrationResponseDto.token_endpoint_auth_method = {}));
|
|
11
12
|
})(ClientRegistrationResponseDto || (ClientRegistrationResponseDto = {}));
|
|
@@ -7,4 +7,17 @@ export type FlowClientDto = {
|
|
|
7
7
|
* Human-readable name of the client application
|
|
8
8
|
*/
|
|
9
9
|
clientName: string;
|
|
10
|
+
/**
|
|
11
|
+
* How the client is known: it registered, or its client_id is a URL to a metadata document it hosts. The client name is self-declared either way.
|
|
12
|
+
*/
|
|
13
|
+
registrationMethod: FlowClientDto.registrationMethod;
|
|
10
14
|
};
|
|
15
|
+
export declare namespace FlowClientDto {
|
|
16
|
+
/**
|
|
17
|
+
* How the client is known: it registered, or its client_id is a URL to a metadata document it hosts. The client name is self-declared either way.
|
|
18
|
+
*/
|
|
19
|
+
enum registrationMethod {
|
|
20
|
+
DYNAMIC_REGISTRATION = "dynamic_registration",
|
|
21
|
+
METADATA_DOCUMENT = "metadata_document"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var FlowClientDto;
|
|
2
|
+
(function (FlowClientDto) {
|
|
3
|
+
/**
|
|
4
|
+
* How the client is known: it registered, or its client_id is a URL to a metadata document it hosts. The client name is self-declared either way.
|
|
5
|
+
*/
|
|
6
|
+
let registrationMethod;
|
|
7
|
+
(function (registrationMethod) {
|
|
8
|
+
registrationMethod["DYNAMIC_REGISTRATION"] = "dynamic_registration";
|
|
9
|
+
registrationMethod["METADATA_DOCUMENT"] = "metadata_document";
|
|
10
|
+
})(registrationMethod = FlowClientDto.registrationMethod || (FlowClientDto.registrationMethod = {}));
|
|
11
|
+
})(FlowClientDto || (FlowClientDto = {}));
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { SearchMatchField } from './SearchMatchField.js';
|
|
2
|
+
import type { SearchResultType } from './SearchResultType.js';
|
|
3
|
+
import type { SearchStrategy } from './SearchStrategy.js';
|
|
1
4
|
export type GlobalSearchResultDto = {
|
|
2
5
|
/**
|
|
3
6
|
* Result ID
|
|
@@ -6,30 +9,41 @@ export type GlobalSearchResultDto = {
|
|
|
6
9
|
/**
|
|
7
10
|
* Result type
|
|
8
11
|
*/
|
|
9
|
-
type:
|
|
12
|
+
type: SearchResultType;
|
|
10
13
|
/**
|
|
11
14
|
* Result title/name
|
|
12
15
|
*/
|
|
13
16
|
title: string;
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
18
|
+
* Relevance from 0 to 1, for ordering results within this response. Not comparable between searches.
|
|
16
19
|
*/
|
|
17
20
|
score: number;
|
|
18
21
|
/**
|
|
19
22
|
* Frontend URL path to navigate to this resource
|
|
20
23
|
*/
|
|
21
24
|
url: string;
|
|
22
|
-
};
|
|
23
|
-
export declare namespace GlobalSearchResultDto {
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* The search strategies that found this result
|
|
27
|
+
*/
|
|
28
|
+
matchedBy: Array<SearchStrategy>;
|
|
29
|
+
/**
|
|
30
|
+
* Which part of the item matched best: its title, a passage of its text, or a comment on it
|
|
26
31
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
matchedOn: SearchMatchField;
|
|
33
|
+
/**
|
|
34
|
+
* Text from the item: the passage or comment that matched, or the start of the item when only its title matched. Empty when the item has no text.
|
|
35
|
+
*/
|
|
36
|
+
excerpt: string;
|
|
37
|
+
/**
|
|
38
|
+
* True when the excerpt is the item's whole text (or the whole comment). False when it is only a part.
|
|
39
|
+
*/
|
|
40
|
+
excerptIsComplete: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* ID of the comment the excerpt comes from. Null unless a comment matched.
|
|
43
|
+
*/
|
|
44
|
+
commentId?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Who wrote the matching comment. Null unless a comment matched.
|
|
47
|
+
*/
|
|
48
|
+
commentAuthor?: string | null;
|
|
49
|
+
};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (GlobalSearchResultDto) {
|
|
3
|
-
/**
|
|
4
|
-
* Result type
|
|
5
|
-
*/
|
|
6
|
-
let type;
|
|
7
|
-
(function (type) {
|
|
8
|
-
type["TASK"] = "task";
|
|
9
|
-
type["CONTEXT_BLOCK"] = "context_block";
|
|
10
|
-
type["AGENT"] = "agent";
|
|
11
|
-
type["PROJECT"] = "project";
|
|
12
|
-
type["TAG"] = "tag";
|
|
13
|
-
type["TOOL"] = "tool";
|
|
14
|
-
})(type = GlobalSearchResultDto.type || (GlobalSearchResultDto.type = {}));
|
|
15
|
-
})(GlobalSearchResultDto || (GlobalSearchResultDto = {}));
|
|
1
|
+
export {};
|
|
@@ -7,5 +7,6 @@ export var RegisterClientDto;
|
|
|
7
7
|
(function (token_endpoint_auth_method) {
|
|
8
8
|
token_endpoint_auth_method["NONE"] = "none";
|
|
9
9
|
token_endpoint_auth_method["CLIENT_SECRET_BASIC"] = "client_secret_basic";
|
|
10
|
+
token_endpoint_auth_method["PRIVATE_KEY_JWT"] = "private_key_jwt";
|
|
10
11
|
})(token_endpoint_auth_method = RegisterClientDto.token_endpoint_auth_method || (RegisterClientDto.token_endpoint_auth_method = {}));
|
|
11
12
|
})(RegisterClientDto || (RegisterClientDto = {}));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { SearchIndexTypeStatusDto } from './SearchIndexTypeStatusDto.js';
|
|
2
|
+
export type SearchIndexStatusDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Whether searches currently use embeddings
|
|
5
|
+
*/
|
|
6
|
+
semanticActive: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Why semantic search is not active. Null when it is.
|
|
9
|
+
*/
|
|
10
|
+
semanticInactiveReason?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* The embedding model in use. Null when there is no usable one.
|
|
13
|
+
*/
|
|
14
|
+
embeddingModelId?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Indexed items: tasks, comments, context blocks, tools, agents and projects
|
|
17
|
+
*/
|
|
18
|
+
documents: number;
|
|
19
|
+
/**
|
|
20
|
+
* Items with up-to-date embeddings
|
|
21
|
+
*/
|
|
22
|
+
embedded: number;
|
|
23
|
+
/**
|
|
24
|
+
* Items waiting to be embedded
|
|
25
|
+
*/
|
|
26
|
+
pending: number;
|
|
27
|
+
/**
|
|
28
|
+
* Items whose last embedding attempt failed
|
|
29
|
+
*/
|
|
30
|
+
failed: number;
|
|
31
|
+
/**
|
|
32
|
+
* The most recent embedding error. Null when nothing is failing.
|
|
33
|
+
*/
|
|
34
|
+
lastError?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* The same counts per kind of item
|
|
37
|
+
*/
|
|
38
|
+
byType: Array<SearchIndexTypeStatusDto>;
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* Which part of the task matched best: its name, its description, or one of its comments
|
|
7
|
+
*/
|
|
8
|
+
export var SearchMatchField;
|
|
9
|
+
(function (SearchMatchField) {
|
|
10
|
+
SearchMatchField["TITLE"] = "title";
|
|
11
|
+
SearchMatchField["CONTENT"] = "content";
|
|
12
|
+
SearchMatchField["COMMENT"] = "comment";
|
|
13
|
+
})(SearchMatchField || (SearchMatchField = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export var SearchResultType;
|
|
6
|
+
(function (SearchResultType) {
|
|
7
|
+
SearchResultType["TASK"] = "task";
|
|
8
|
+
SearchResultType["CONTEXT_BLOCK"] = "context_block";
|
|
9
|
+
SearchResultType["THREAD"] = "thread";
|
|
10
|
+
SearchResultType["TOOL"] = "tool";
|
|
11
|
+
SearchResultType["AGENT"] = "agent";
|
|
12
|
+
SearchResultType["PROJECT"] = "project";
|
|
13
|
+
})(SearchResultType || (SearchResultType = {}));
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export type SearchSettingsDto = {
|
|
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 {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* The search strategies that found this result
|
|
7
|
+
*/
|
|
8
|
+
export var SearchStrategy;
|
|
9
|
+
(function (SearchStrategy) {
|
|
10
|
+
SearchStrategy["KEYWORD"] = "keyword";
|
|
11
|
+
SearchStrategy["FUZZY_TITLE"] = "fuzzy_title";
|
|
12
|
+
SearchStrategy["SEMANTIC"] = "semantic";
|
|
13
|
+
})(SearchStrategy || (SearchStrategy = {}));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { SearchMatchField } from './SearchMatchField.js';
|
|
2
|
+
import type { SearchStrategy } from './SearchStrategy.js';
|
|
1
3
|
export type TaskSearchResultDto = {
|
|
2
4
|
/**
|
|
3
5
|
* Task ID
|
|
@@ -8,7 +10,35 @@ export type TaskSearchResultDto = {
|
|
|
8
10
|
*/
|
|
9
11
|
name: string;
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* Task status
|
|
14
|
+
*/
|
|
15
|
+
status?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Relevance from 0 to 1, for ordering results within this response. Not comparable between searches.
|
|
12
18
|
*/
|
|
13
19
|
score: number;
|
|
20
|
+
/**
|
|
21
|
+
* The search strategies that found this result
|
|
22
|
+
*/
|
|
23
|
+
matchedBy: Array<SearchStrategy>;
|
|
24
|
+
/**
|
|
25
|
+
* Which part of the task matched best: its name, its description, or one of its comments
|
|
26
|
+
*/
|
|
27
|
+
matchedOn: SearchMatchField;
|
|
28
|
+
/**
|
|
29
|
+
* Text from the task: the comment or part of the description that matched, or the start of the description when only the name matched. Empty when the task has no description.
|
|
30
|
+
*/
|
|
31
|
+
excerpt: string;
|
|
32
|
+
/**
|
|
33
|
+
* True when the excerpt is the whole description (or the whole comment). False when it is only a part.
|
|
34
|
+
*/
|
|
35
|
+
excerptIsComplete: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the comment the excerpt comes from. Null unless a comment matched.
|
|
38
|
+
*/
|
|
39
|
+
commentId?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Who wrote the matching comment. Null unless a comment matched.
|
|
42
|
+
*/
|
|
43
|
+
commentAuthor?: string | null;
|
|
14
44
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type TaskSubscriptionResponseDto = {
|
|
2
|
+
/**
|
|
3
|
+
* ID of the task the thread is subscribed to
|
|
4
|
+
*/
|
|
5
|
+
taskId: string;
|
|
6
|
+
/**
|
|
7
|
+
* Task name
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Current task status
|
|
12
|
+
*/
|
|
13
|
+
status: TaskSubscriptionResponseDto.status;
|
|
14
|
+
/**
|
|
15
|
+
* When the thread subscribed to the task
|
|
16
|
+
*/
|
|
17
|
+
createdAt: string;
|
|
18
|
+
};
|
|
19
|
+
export declare namespace TaskSubscriptionResponseDto {
|
|
20
|
+
/**
|
|
21
|
+
* Current task status
|
|
22
|
+
*/
|
|
23
|
+
enum status {
|
|
24
|
+
NOT_STARTED = "NOT_STARTED",
|
|
25
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
26
|
+
FOR_REVIEW = "FOR_REVIEW",
|
|
27
|
+
DONE = "DONE"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var TaskSubscriptionResponseDto;
|
|
2
|
+
(function (TaskSubscriptionResponseDto) {
|
|
3
|
+
/**
|
|
4
|
+
* Current task status
|
|
5
|
+
*/
|
|
6
|
+
let status;
|
|
7
|
+
(function (status) {
|
|
8
|
+
status["NOT_STARTED"] = "NOT_STARTED";
|
|
9
|
+
status["IN_PROGRESS"] = "IN_PROGRESS";
|
|
10
|
+
status["FOR_REVIEW"] = "FOR_REVIEW";
|
|
11
|
+
status["DONE"] = "DONE";
|
|
12
|
+
})(status = TaskSubscriptionResponseDto.status || (TaskSubscriptionResponseDto.status = {}));
|
|
13
|
+
})(TaskSubscriptionResponseDto || (TaskSubscriptionResponseDto = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ActorResponseDto } from './ActorResponseDto.js';
|
|
2
2
|
import type { ContextBlockSummaryResponseDto } from './ContextBlockSummaryResponseDto.js';
|
|
3
3
|
import type { MetaTagResponseDto } from './MetaTagResponseDto.js';
|
|
4
|
+
import type { TaskSubscriptionResponseDto } from './TaskSubscriptionResponseDto.js';
|
|
4
5
|
import type { TaskSummaryResponseDto } from './TaskSummaryResponseDto.js';
|
|
5
6
|
export type ThreadResponseDto = {
|
|
6
7
|
/**
|
|
@@ -39,6 +40,10 @@ export type ThreadResponseDto = {
|
|
|
39
40
|
* Participants in this thread
|
|
40
41
|
*/
|
|
41
42
|
participants: Array<ActorResponseDto>;
|
|
43
|
+
/**
|
|
44
|
+
* Tasks the threads agent will be notified about when they go to review or are done
|
|
45
|
+
*/
|
|
46
|
+
taskSubscriptions: Array<TaskSubscriptionResponseDto>;
|
|
42
47
|
/**
|
|
43
48
|
* Row version for optimistic locking
|
|
44
49
|
*/
|
|
@@ -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
|
*/
|