@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
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;
|
|
@@ -769,6 +861,10 @@ export interface BlockSearchResultDto {
|
|
|
769
861
|
id: string;
|
|
770
862
|
title: string;
|
|
771
863
|
score: number;
|
|
864
|
+
matchedBy: SearchStrategy[];
|
|
865
|
+
matchedOn: SearchMatchField;
|
|
866
|
+
excerpt: string;
|
|
867
|
+
excerptIsComplete: boolean;
|
|
772
868
|
}
|
|
773
869
|
export interface BlockTreeResponseDto {
|
|
774
870
|
id: string;
|
|
@@ -800,78 +896,6 @@ export interface ReorderBlockDto {
|
|
|
800
896
|
export interface MoveBlockDto {
|
|
801
897
|
newParentId: Record<string, any> | null;
|
|
802
898
|
}
|
|
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
899
|
export interface TaskExecutionQueueEntryResponseDto {
|
|
876
900
|
taskId: string;
|
|
877
901
|
taskName: string | null;
|
|
@@ -1038,7 +1062,9 @@ export interface AuthorizationServerMetadataDto {
|
|
|
1038
1062
|
response_types_supported: string[];
|
|
1039
1063
|
grant_types_supported: ('authorization_code' | 'refresh_token')[];
|
|
1040
1064
|
token_endpoint_auth_methods_supported: string[];
|
|
1065
|
+
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
1041
1066
|
code_challenge_methods_supported: string[];
|
|
1067
|
+
client_id_metadata_document_supported: boolean;
|
|
1042
1068
|
}
|
|
1043
1069
|
export interface ProtectedResourceMetadataResponseDto {
|
|
1044
1070
|
resource: string;
|
|
@@ -1047,12 +1073,75 @@ export interface ProtectedResourceMetadataResponseDto {
|
|
|
1047
1073
|
bearer_methods_supported: string[];
|
|
1048
1074
|
resource_name: string;
|
|
1049
1075
|
}
|
|
1076
|
+
export type SearchResultType = 'task' | 'context_block' | 'thread' | 'tool' | 'agent' | 'project';
|
|
1050
1077
|
export interface GlobalSearchResultDto {
|
|
1051
1078
|
id: string;
|
|
1052
|
-
type:
|
|
1079
|
+
type: SearchResultType;
|
|
1053
1080
|
title: string;
|
|
1054
1081
|
score: number;
|
|
1055
1082
|
url: string;
|
|
1083
|
+
matchedBy: SearchStrategy[];
|
|
1084
|
+
matchedOn: SearchMatchField;
|
|
1085
|
+
excerpt: string;
|
|
1086
|
+
excerptIsComplete: boolean;
|
|
1087
|
+
commentId?: string | null;
|
|
1088
|
+
commentAuthor?: string | null;
|
|
1089
|
+
}
|
|
1090
|
+
export interface SearchSettingsDto {
|
|
1091
|
+
semanticEnabled: boolean;
|
|
1092
|
+
chunkSizeChars: number;
|
|
1093
|
+
chunkOverlapChars: number;
|
|
1094
|
+
queryInstruction: string;
|
|
1095
|
+
queryEmbeddingTimeoutMs: number;
|
|
1096
|
+
candidatesPerStrategy: number;
|
|
1097
|
+
semanticMinSimilarity: number;
|
|
1098
|
+
semanticMaxGap: number;
|
|
1099
|
+
keywordMinDensity: number;
|
|
1100
|
+
fuzzyMinSimilarity: number;
|
|
1101
|
+
rrfK: number;
|
|
1102
|
+
keywordWeight: number;
|
|
1103
|
+
fuzzyTitleWeight: number;
|
|
1104
|
+
semanticWeight: number;
|
|
1105
|
+
exactTitleBoost: number;
|
|
1106
|
+
doneTaskMultiplier: number;
|
|
1107
|
+
excerptMaxChars: number;
|
|
1108
|
+
defaultLimit: number;
|
|
1109
|
+
}
|
|
1110
|
+
export interface UpdateSearchSettingsDto {
|
|
1111
|
+
semanticEnabled?: boolean;
|
|
1112
|
+
chunkSizeChars?: number;
|
|
1113
|
+
chunkOverlapChars?: number;
|
|
1114
|
+
queryInstruction?: string;
|
|
1115
|
+
queryEmbeddingTimeoutMs?: number;
|
|
1116
|
+
candidatesPerStrategy?: number;
|
|
1117
|
+
semanticMinSimilarity?: number;
|
|
1118
|
+
semanticMaxGap?: number;
|
|
1119
|
+
keywordMinDensity?: number;
|
|
1120
|
+
fuzzyMinSimilarity?: number;
|
|
1121
|
+
rrfK?: number;
|
|
1122
|
+
keywordWeight?: number;
|
|
1123
|
+
fuzzyTitleWeight?: number;
|
|
1124
|
+
semanticWeight?: number;
|
|
1125
|
+
exactTitleBoost?: number;
|
|
1126
|
+
doneTaskMultiplier?: number;
|
|
1127
|
+
excerptMaxChars?: number;
|
|
1128
|
+
defaultLimit?: number;
|
|
1129
|
+
}
|
|
1130
|
+
export interface SearchIndexTypeStatusDto {
|
|
1131
|
+
type: string;
|
|
1132
|
+
documents: number;
|
|
1133
|
+
embedded: number;
|
|
1134
|
+
}
|
|
1135
|
+
export interface SearchIndexStatusDto {
|
|
1136
|
+
semanticActive: boolean;
|
|
1137
|
+
semanticInactiveReason?: string | null;
|
|
1138
|
+
embeddingModelId?: string | null;
|
|
1139
|
+
documents: number;
|
|
1140
|
+
embedded: number;
|
|
1141
|
+
pending: number;
|
|
1142
|
+
failed: number;
|
|
1143
|
+
lastError?: string | null;
|
|
1144
|
+
byType: SearchIndexTypeStatusDto[];
|
|
1056
1145
|
}
|
|
1057
1146
|
export interface UserWalkthroughStatusResponseDto {
|
|
1058
1147
|
workerConfigured: boolean;
|