@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
|
@@ -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,
|
|
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
|
}
|
|
@@ -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
|
|
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) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient, ClientConfig } from './base-client.js';
|
|
2
|
-
import type { AddParticipantDto, AppendThreadStateDto, AttachTaskDto, CreateTagDto, CreateThreadDto, CreateThreadMessageDto, ListThreadMessagesResponseDto, ReferenceContextBlockDto, ThreadListResponseDto, ThreadMessageResponseDto, ThreadResponseDto, ThreadStateResponseDto, UpdateThreadDto, UpdateThreadStateDto } from './types.js';
|
|
2
|
+
import type { AddParticipantDto, AppendThreadStateDto, AttachTaskDto, CreateTagDto, CreateThreadDto, CreateThreadMessageDto, ListThreadMessagesResponseDto, ReferenceContextBlockDto, ThreadListResponseDto, ThreadMessageResponseDto, ThreadResponseDto, ThreadStateResponseDto, ThreadTokenUsageResponseDto, UpdateThreadDto, UpdateThreadStateDto } from './types.js';
|
|
3
3
|
export declare class ThreadsResource extends BaseClient {
|
|
4
4
|
constructor(config: ClientConfig);
|
|
5
5
|
/** Create a new thread */
|
|
@@ -80,6 +80,11 @@ export declare class ThreadsResource extends BaseClient {
|
|
|
80
80
|
body: UpdateThreadStateDto;
|
|
81
81
|
signal?: AbortSignal;
|
|
82
82
|
}): Promise<ThreadStateResponseDto>;
|
|
83
|
+
/** Get the token usage the model provider reported for a thread (debug) */
|
|
84
|
+
ThreadsController_getThreadTokenUsage(params: {
|
|
85
|
+
id: string;
|
|
86
|
+
signal?: AbortSignal;
|
|
87
|
+
}): Promise<ThreadTokenUsageResponseDto>;
|
|
83
88
|
/** Append content to the state of a thread */
|
|
84
89
|
ThreadsController_appendThreadState(params: {
|
|
85
90
|
id: string;
|
|
@@ -92,11 +97,16 @@ export declare class ThreadsResource extends BaseClient {
|
|
|
92
97
|
body: CreateThreadMessageDto;
|
|
93
98
|
signal?: AbortSignal;
|
|
94
99
|
}): Promise<ThreadMessageResponseDto>;
|
|
95
|
-
/** List messages in a thread */
|
|
100
|
+
/** List messages in a thread, newest first */
|
|
96
101
|
ThreadsController_listMessages(params: {
|
|
97
102
|
id: string;
|
|
98
103
|
page?: number;
|
|
99
104
|
limit?: number;
|
|
100
105
|
signal?: AbortSignal;
|
|
101
106
|
}): Promise<ListThreadMessagesResponseDto>;
|
|
107
|
+
/** Mark every message in the thread as read by the caller */
|
|
108
|
+
ThreadsController_markThreadRead(params: {
|
|
109
|
+
id: string;
|
|
110
|
+
signal?: AbortSignal;
|
|
111
|
+
}): Promise<void>;
|
|
102
112
|
}
|
|
@@ -59,6 +59,10 @@ export class ThreadsResource extends BaseClient {
|
|
|
59
59
|
async ThreadsController_updateThreadState(params) {
|
|
60
60
|
return this.request('PATCH', `/api/v1/threads/${params.id}/state`, { body: params.body, signal: params?.signal });
|
|
61
61
|
}
|
|
62
|
+
/** Get the token usage the model provider reported for a thread (debug) */
|
|
63
|
+
async ThreadsController_getThreadTokenUsage(params) {
|
|
64
|
+
return this.request('GET', `/api/v1/threads/${params.id}/token-usage`, { signal: params?.signal });
|
|
65
|
+
}
|
|
62
66
|
/** Append content to the state of a thread */
|
|
63
67
|
async ThreadsController_appendThreadState(params) {
|
|
64
68
|
return this.request('POST', `/api/v1/threads/${params.id}/state/append`, { body: params.body, signal: params?.signal });
|
|
@@ -67,8 +71,12 @@ export class ThreadsResource extends BaseClient {
|
|
|
67
71
|
async ThreadsController_createMessage(params) {
|
|
68
72
|
return this.request('POST', `/api/v1/threads/${params.id}/messages`, { body: params.body, signal: params?.signal });
|
|
69
73
|
}
|
|
70
|
-
/** List messages in a thread */
|
|
74
|
+
/** List messages in a thread, newest first */
|
|
71
75
|
async ThreadsController_listMessages(params) {
|
|
72
76
|
return this.request('GET', `/api/v1/threads/${params.id}/messages`, { params: { page: params.page, limit: params.limit }, signal: params?.signal });
|
|
73
77
|
}
|
|
78
|
+
/** Mark every message in the thread as read by the caller */
|
|
79
|
+
async ThreadsController_markThreadRead(params) {
|
|
80
|
+
return this.request('POST', `/api/v1/threads/${params.id}/read`, { responseType: 'void', signal: params?.signal });
|
|
81
|
+
}
|
|
74
82
|
}
|
package/dist/src/v2/types.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface PatchProjectDto {
|
|
|
35
35
|
}
|
|
36
36
|
export interface RegisterClientDto {
|
|
37
37
|
redirect_uris: string[];
|
|
38
|
-
token_endpoint_auth_method: 'none' | 'client_secret_basic';
|
|
38
|
+
token_endpoint_auth_method: 'none' | 'client_secret_basic' | 'private_key_jwt';
|
|
39
39
|
grant_types: ('authorization_code' | 'refresh_token')[];
|
|
40
40
|
response_types: 'code'[];
|
|
41
41
|
client_name: string;
|
|
@@ -55,7 +55,7 @@ export interface ClientRegistrationResponseDto {
|
|
|
55
55
|
client_name: string;
|
|
56
56
|
redirect_uris: string[];
|
|
57
57
|
grant_types: ('authorization_code' | 'refresh_token')[];
|
|
58
|
-
token_endpoint_auth_method: 'none' | 'client_secret_basic';
|
|
58
|
+
token_endpoint_auth_method: 'none' | 'client_secret_basic' | 'private_key_jwt';
|
|
59
59
|
scope?: string | null;
|
|
60
60
|
contacts?: string[] | null;
|
|
61
61
|
client_id_issued_at: number;
|
|
@@ -72,6 +72,7 @@ export interface FlowServerDto {
|
|
|
72
72
|
export interface FlowClientDto {
|
|
73
73
|
clientId: string;
|
|
74
74
|
clientName: string;
|
|
75
|
+
registrationMethod: 'dynamic_registration' | 'metadata_document';
|
|
75
76
|
}
|
|
76
77
|
export interface GetConsentMetadataResponseDto {
|
|
77
78
|
id: string;
|
|
@@ -85,7 +86,9 @@ export interface GetConsentMetadataResponseDto {
|
|
|
85
86
|
}
|
|
86
87
|
export interface TokenRequestDto {
|
|
87
88
|
grant_type: 'authorization_code' | 'refresh_token';
|
|
88
|
-
client_id
|
|
89
|
+
client_id?: string;
|
|
90
|
+
client_assertion_type?: string;
|
|
91
|
+
client_assertion?: string;
|
|
89
92
|
code?: string;
|
|
90
93
|
redirect_uri?: string;
|
|
91
94
|
code_verifier?: string;
|
|
@@ -207,6 +210,7 @@ export interface ActorResponseDto {
|
|
|
207
210
|
displayName: string;
|
|
208
211
|
avatarUrl?: string | null;
|
|
209
212
|
introduction?: string | null;
|
|
213
|
+
deletedAt: string | null;
|
|
210
214
|
}
|
|
211
215
|
export interface McpFlowResponseDto {
|
|
212
216
|
id: string;
|
|
@@ -353,6 +357,78 @@ export interface JwkResponseDto {
|
|
|
353
357
|
export interface JwksResponseDto {
|
|
354
358
|
keys: JwkResponseDto[];
|
|
355
359
|
}
|
|
360
|
+
export interface CreateAiProviderDto {
|
|
361
|
+
name: string;
|
|
362
|
+
type: 'openai' | 'anthropic' | 'google' | 'google_vertex' | 'xai' | 'openai_compatible';
|
|
363
|
+
secretId?: string;
|
|
364
|
+
baseUrl?: string | null;
|
|
365
|
+
project?: string | null;
|
|
366
|
+
location?: string | null;
|
|
367
|
+
}
|
|
368
|
+
export interface AiProviderResponseDto {
|
|
369
|
+
id: string;
|
|
370
|
+
name: string;
|
|
371
|
+
type: 'openai' | 'anthropic' | 'google' | 'google_vertex' | 'xai' | 'openai_compatible';
|
|
372
|
+
secretId?: string | null;
|
|
373
|
+
baseUrl?: string | null;
|
|
374
|
+
project?: string | null;
|
|
375
|
+
location?: string | null;
|
|
376
|
+
isConfigured: boolean;
|
|
377
|
+
rowVersion: number;
|
|
378
|
+
createdAt: string;
|
|
379
|
+
updatedAt: string;
|
|
380
|
+
}
|
|
381
|
+
export interface UpdateAiProviderDto {
|
|
382
|
+
name?: string;
|
|
383
|
+
secretId?: string;
|
|
384
|
+
apiKey?: string;
|
|
385
|
+
baseUrl?: string | null;
|
|
386
|
+
project?: string | null;
|
|
387
|
+
location?: string | null;
|
|
388
|
+
}
|
|
389
|
+
export interface AiProviderModelResponseDto {
|
|
390
|
+
id: string;
|
|
391
|
+
displayName?: string | null;
|
|
392
|
+
kind: 'language' | 'embedding';
|
|
393
|
+
}
|
|
394
|
+
export interface AiModelSelectionResponseDto {
|
|
395
|
+
job: 'conversation' | 'quick_tasks' | 'middle_manager' | 'embeddings';
|
|
396
|
+
aiProviderId?: string | null;
|
|
397
|
+
modelId?: string | null;
|
|
398
|
+
followsConversation: boolean;
|
|
399
|
+
effectiveAiProviderId?: string | null;
|
|
400
|
+
effectiveModelId?: string | null;
|
|
401
|
+
isReady: boolean;
|
|
402
|
+
}
|
|
403
|
+
export interface SetAiModelSelectionDto {
|
|
404
|
+
aiProviderId: string;
|
|
405
|
+
modelId: string;
|
|
406
|
+
}
|
|
407
|
+
export interface CreateSecretDto {
|
|
408
|
+
name: string;
|
|
409
|
+
description?: string;
|
|
410
|
+
value: string;
|
|
411
|
+
}
|
|
412
|
+
export interface SecretResponseDto {
|
|
413
|
+
id: string;
|
|
414
|
+
name: string;
|
|
415
|
+
description?: string | null;
|
|
416
|
+
createdByActorId: string;
|
|
417
|
+
createdBy?: string | null;
|
|
418
|
+
rowVersion: number;
|
|
419
|
+
createdAt: string;
|
|
420
|
+
updatedAt: string;
|
|
421
|
+
}
|
|
422
|
+
export interface SecretValueResponseDto {
|
|
423
|
+
id: string;
|
|
424
|
+
name: string;
|
|
425
|
+
value: string;
|
|
426
|
+
}
|
|
427
|
+
export interface UpdateSecretDto {
|
|
428
|
+
name?: string;
|
|
429
|
+
description?: string | null;
|
|
430
|
+
value?: string;
|
|
431
|
+
}
|
|
356
432
|
export interface CreateTaskDto {
|
|
357
433
|
name: string;
|
|
358
434
|
description: string;
|
|
@@ -428,10 +504,19 @@ export interface TaskListResponseDto {
|
|
|
428
504
|
limit: number;
|
|
429
505
|
totalPages: number;
|
|
430
506
|
}
|
|
507
|
+
export type SearchStrategy = 'keyword' | 'fuzzy_title' | 'semantic';
|
|
508
|
+
export type SearchMatchField = 'title' | 'content' | 'comment';
|
|
431
509
|
export interface TaskSearchResultDto {
|
|
432
510
|
id: string;
|
|
433
511
|
name: string;
|
|
512
|
+
status?: string | null;
|
|
434
513
|
score: number;
|
|
514
|
+
matchedBy: SearchStrategy[];
|
|
515
|
+
matchedOn: SearchMatchField;
|
|
516
|
+
excerpt: string;
|
|
517
|
+
excerptIsComplete: boolean;
|
|
518
|
+
commentId?: string | null;
|
|
519
|
+
commentAuthor?: string | null;
|
|
435
520
|
}
|
|
436
521
|
export interface CreateCommentDto {
|
|
437
522
|
content: string;
|
|
@@ -507,6 +592,12 @@ export interface ContextBlockSummaryResponseDto {
|
|
|
507
592
|
id: string;
|
|
508
593
|
title: string;
|
|
509
594
|
}
|
|
595
|
+
export interface TaskSubscriptionResponseDto {
|
|
596
|
+
taskId: string;
|
|
597
|
+
name: string;
|
|
598
|
+
status: 'NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE';
|
|
599
|
+
createdAt: string;
|
|
600
|
+
}
|
|
510
601
|
export interface ThreadResponseDto {
|
|
511
602
|
id: string;
|
|
512
603
|
title: string;
|
|
@@ -517,6 +608,7 @@ export interface ThreadResponseDto {
|
|
|
517
608
|
referencedContextBlocks: ContextBlockSummaryResponseDto[];
|
|
518
609
|
tags: MetaTagResponseDto[];
|
|
519
610
|
participants: ActorResponseDto[];
|
|
611
|
+
taskSubscriptions: TaskSubscriptionResponseDto[];
|
|
520
612
|
rowVersion: number;
|
|
521
613
|
createdAt: string;
|
|
522
614
|
updatedAt: string;
|
|
@@ -528,6 +620,8 @@ export interface ThreadListItemResponseDto {
|
|
|
528
620
|
id: string;
|
|
529
621
|
title: string;
|
|
530
622
|
stateContextBlockId: string;
|
|
623
|
+
lastActivityAt: string;
|
|
624
|
+
unreadCount: number;
|
|
531
625
|
}
|
|
532
626
|
export interface ThreadListResponseDto {
|
|
533
627
|
items: ThreadListItemResponseDto[];
|
|
@@ -548,6 +642,12 @@ export interface AddParticipantDto {
|
|
|
548
642
|
export interface ThreadStateResponseDto {
|
|
549
643
|
content: string;
|
|
550
644
|
}
|
|
645
|
+
export interface ThreadTokenUsageResponseDto {
|
|
646
|
+
contextTokens: number | null;
|
|
647
|
+
inputTokens: number | null;
|
|
648
|
+
outputTokens: number | null;
|
|
649
|
+
steps: number;
|
|
650
|
+
}
|
|
551
651
|
export interface UpdateThreadStateDto {
|
|
552
652
|
content: string;
|
|
553
653
|
}
|
|
@@ -769,6 +869,10 @@ export interface BlockSearchResultDto {
|
|
|
769
869
|
id: string;
|
|
770
870
|
title: string;
|
|
771
871
|
score: number;
|
|
872
|
+
matchedBy: SearchStrategy[];
|
|
873
|
+
matchedOn: SearchMatchField;
|
|
874
|
+
excerpt: string;
|
|
875
|
+
excerptIsComplete: boolean;
|
|
772
876
|
}
|
|
773
877
|
export interface BlockTreeResponseDto {
|
|
774
878
|
id: string;
|
|
@@ -800,78 +904,6 @@ export interface ReorderBlockDto {
|
|
|
800
904
|
export interface MoveBlockDto {
|
|
801
905
|
newParentId: Record<string, any> | null;
|
|
802
906
|
}
|
|
803
|
-
export interface CreateAiProviderDto {
|
|
804
|
-
name: string;
|
|
805
|
-
type: 'openai' | 'anthropic' | 'google' | 'google_vertex' | 'xai' | 'openai_compatible';
|
|
806
|
-
secretId?: string;
|
|
807
|
-
baseUrl?: string | null;
|
|
808
|
-
project?: string | null;
|
|
809
|
-
location?: string | null;
|
|
810
|
-
}
|
|
811
|
-
export interface AiProviderResponseDto {
|
|
812
|
-
id: string;
|
|
813
|
-
name: string;
|
|
814
|
-
type: 'openai' | 'anthropic' | 'google' | 'google_vertex' | 'xai' | 'openai_compatible';
|
|
815
|
-
secretId?: string | null;
|
|
816
|
-
baseUrl?: string | null;
|
|
817
|
-
project?: string | null;
|
|
818
|
-
location?: string | null;
|
|
819
|
-
isConfigured: boolean;
|
|
820
|
-
rowVersion: number;
|
|
821
|
-
createdAt: string;
|
|
822
|
-
updatedAt: string;
|
|
823
|
-
}
|
|
824
|
-
export interface UpdateAiProviderDto {
|
|
825
|
-
name?: string;
|
|
826
|
-
secretId?: string;
|
|
827
|
-
apiKey?: string;
|
|
828
|
-
baseUrl?: string | null;
|
|
829
|
-
project?: string | null;
|
|
830
|
-
location?: string | null;
|
|
831
|
-
}
|
|
832
|
-
export interface AiProviderModelResponseDto {
|
|
833
|
-
id: string;
|
|
834
|
-
displayName?: string | null;
|
|
835
|
-
kind: 'language' | 'embedding';
|
|
836
|
-
}
|
|
837
|
-
export interface AiModelSelectionResponseDto {
|
|
838
|
-
job: 'conversation' | 'quick_tasks' | 'middle_manager' | 'embeddings';
|
|
839
|
-
aiProviderId?: string | null;
|
|
840
|
-
modelId?: string | null;
|
|
841
|
-
followsConversation: boolean;
|
|
842
|
-
effectiveAiProviderId?: string | null;
|
|
843
|
-
effectiveModelId?: string | null;
|
|
844
|
-
isReady: boolean;
|
|
845
|
-
}
|
|
846
|
-
export interface SetAiModelSelectionDto {
|
|
847
|
-
aiProviderId: string;
|
|
848
|
-
modelId: string;
|
|
849
|
-
}
|
|
850
|
-
export interface CreateSecretDto {
|
|
851
|
-
name: string;
|
|
852
|
-
description?: string;
|
|
853
|
-
value: string;
|
|
854
|
-
}
|
|
855
|
-
export interface SecretResponseDto {
|
|
856
|
-
id: string;
|
|
857
|
-
name: string;
|
|
858
|
-
description?: string | null;
|
|
859
|
-
createdByActorId: string;
|
|
860
|
-
createdBy?: string | null;
|
|
861
|
-
rowVersion: number;
|
|
862
|
-
createdAt: string;
|
|
863
|
-
updatedAt: string;
|
|
864
|
-
}
|
|
865
|
-
export interface SecretValueResponseDto {
|
|
866
|
-
id: string;
|
|
867
|
-
name: string;
|
|
868
|
-
value: string;
|
|
869
|
-
}
|
|
870
|
-
export interface UpdateSecretDto {
|
|
871
|
-
name?: string;
|
|
872
|
-
description?: string | null;
|
|
873
|
-
value?: string;
|
|
874
|
-
}
|
|
875
907
|
export interface TaskExecutionQueueEntryResponseDto {
|
|
876
908
|
taskId: string;
|
|
877
909
|
taskName: string | null;
|
|
@@ -1038,7 +1070,9 @@ export interface AuthorizationServerMetadataDto {
|
|
|
1038
1070
|
response_types_supported: string[];
|
|
1039
1071
|
grant_types_supported: ('authorization_code' | 'refresh_token')[];
|
|
1040
1072
|
token_endpoint_auth_methods_supported: string[];
|
|
1073
|
+
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
1041
1074
|
code_challenge_methods_supported: string[];
|
|
1075
|
+
client_id_metadata_document_supported: boolean;
|
|
1042
1076
|
}
|
|
1043
1077
|
export interface ProtectedResourceMetadataResponseDto {
|
|
1044
1078
|
resource: string;
|
|
@@ -1047,12 +1081,75 @@ export interface ProtectedResourceMetadataResponseDto {
|
|
|
1047
1081
|
bearer_methods_supported: string[];
|
|
1048
1082
|
resource_name: string;
|
|
1049
1083
|
}
|
|
1084
|
+
export type SearchResultType = 'task' | 'context_block' | 'thread' | 'tool' | 'agent' | 'project';
|
|
1050
1085
|
export interface GlobalSearchResultDto {
|
|
1051
1086
|
id: string;
|
|
1052
|
-
type:
|
|
1087
|
+
type: SearchResultType;
|
|
1053
1088
|
title: string;
|
|
1054
1089
|
score: number;
|
|
1055
1090
|
url: string;
|
|
1091
|
+
matchedBy: SearchStrategy[];
|
|
1092
|
+
matchedOn: SearchMatchField;
|
|
1093
|
+
excerpt: string;
|
|
1094
|
+
excerptIsComplete: boolean;
|
|
1095
|
+
commentId?: string | null;
|
|
1096
|
+
commentAuthor?: string | null;
|
|
1097
|
+
}
|
|
1098
|
+
export interface SearchSettingsDto {
|
|
1099
|
+
semanticEnabled: boolean;
|
|
1100
|
+
chunkSizeChars: number;
|
|
1101
|
+
chunkOverlapChars: number;
|
|
1102
|
+
queryInstruction: string;
|
|
1103
|
+
queryEmbeddingTimeoutMs: number;
|
|
1104
|
+
candidatesPerStrategy: number;
|
|
1105
|
+
semanticMinSimilarity: number;
|
|
1106
|
+
semanticMaxGap: number;
|
|
1107
|
+
keywordMinDensity: number;
|
|
1108
|
+
fuzzyMinSimilarity: number;
|
|
1109
|
+
rrfK: number;
|
|
1110
|
+
keywordWeight: number;
|
|
1111
|
+
fuzzyTitleWeight: number;
|
|
1112
|
+
semanticWeight: number;
|
|
1113
|
+
exactTitleBoost: number;
|
|
1114
|
+
doneTaskMultiplier: number;
|
|
1115
|
+
excerptMaxChars: number;
|
|
1116
|
+
defaultLimit: number;
|
|
1117
|
+
}
|
|
1118
|
+
export interface UpdateSearchSettingsDto {
|
|
1119
|
+
semanticEnabled?: boolean;
|
|
1120
|
+
chunkSizeChars?: number;
|
|
1121
|
+
chunkOverlapChars?: number;
|
|
1122
|
+
queryInstruction?: string;
|
|
1123
|
+
queryEmbeddingTimeoutMs?: number;
|
|
1124
|
+
candidatesPerStrategy?: number;
|
|
1125
|
+
semanticMinSimilarity?: number;
|
|
1126
|
+
semanticMaxGap?: number;
|
|
1127
|
+
keywordMinDensity?: number;
|
|
1128
|
+
fuzzyMinSimilarity?: number;
|
|
1129
|
+
rrfK?: number;
|
|
1130
|
+
keywordWeight?: number;
|
|
1131
|
+
fuzzyTitleWeight?: number;
|
|
1132
|
+
semanticWeight?: number;
|
|
1133
|
+
exactTitleBoost?: number;
|
|
1134
|
+
doneTaskMultiplier?: number;
|
|
1135
|
+
excerptMaxChars?: number;
|
|
1136
|
+
defaultLimit?: number;
|
|
1137
|
+
}
|
|
1138
|
+
export interface SearchIndexTypeStatusDto {
|
|
1139
|
+
type: string;
|
|
1140
|
+
documents: number;
|
|
1141
|
+
embedded: number;
|
|
1142
|
+
}
|
|
1143
|
+
export interface SearchIndexStatusDto {
|
|
1144
|
+
semanticActive: boolean;
|
|
1145
|
+
semanticInactiveReason?: string | null;
|
|
1146
|
+
embeddingModelId?: string | null;
|
|
1147
|
+
documents: number;
|
|
1148
|
+
embedded: number;
|
|
1149
|
+
pending: number;
|
|
1150
|
+
failed: number;
|
|
1151
|
+
lastError?: string | null;
|
|
1152
|
+
byType: SearchIndexTypeStatusDto[];
|
|
1056
1153
|
}
|
|
1057
1154
|
export interface UserWalkthroughStatusResponseDto {
|
|
1058
1155
|
workerConfigured: boolean;
|