codemie-sdk 0.1.280 → 0.1.281
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/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -3
- package/dist/index.d.ts +40 -3
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -218,6 +218,7 @@ interface AssistantRequestBase extends AssistantBase {
|
|
|
218
218
|
mcp_servers: MCPServerDetails[];
|
|
219
219
|
assistant_ids: string[];
|
|
220
220
|
prompt_variables?: PromptVariable[];
|
|
221
|
+
skip_integration_validation?: boolean;
|
|
221
222
|
}
|
|
222
223
|
interface ChatMessage {
|
|
223
224
|
role: ChatRole;
|
|
@@ -254,6 +255,34 @@ interface AssistantVersion {
|
|
|
254
255
|
prompt_variables?: PromptVariable[];
|
|
255
256
|
[key: string]: unknown;
|
|
256
257
|
}
|
|
258
|
+
interface MissingIntegration {
|
|
259
|
+
toolkit: string;
|
|
260
|
+
tool: string;
|
|
261
|
+
label: string;
|
|
262
|
+
credential_type?: string;
|
|
263
|
+
}
|
|
264
|
+
interface MissingIntegrationsByCredentialType {
|
|
265
|
+
credential_type: string;
|
|
266
|
+
missing_tools: MissingIntegration[];
|
|
267
|
+
assistant_id?: string;
|
|
268
|
+
assistant_name?: string;
|
|
269
|
+
icon_url?: string;
|
|
270
|
+
}
|
|
271
|
+
interface IntegrationValidationResult {
|
|
272
|
+
has_missing_integrations: boolean;
|
|
273
|
+
missing_by_credential_type: MissingIntegrationsByCredentialType[];
|
|
274
|
+
sub_assistants_missing: MissingIntegrationsByCredentialType[];
|
|
275
|
+
message?: string;
|
|
276
|
+
}
|
|
277
|
+
interface AssistantCreateResponse {
|
|
278
|
+
message: string;
|
|
279
|
+
assistant_id?: string;
|
|
280
|
+
validation?: IntegrationValidationResult;
|
|
281
|
+
}
|
|
282
|
+
interface AssistantUpdateResponse {
|
|
283
|
+
message: string;
|
|
284
|
+
validation?: IntegrationValidationResult;
|
|
285
|
+
}
|
|
257
286
|
|
|
258
287
|
declare const AssistantListParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
259
288
|
minimal_response: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -425,6 +454,7 @@ declare const AssistantCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
425
454
|
description?: string | undefined;
|
|
426
455
|
}>, "many">>>;
|
|
427
456
|
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
457
|
+
skip_integration_validation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
428
458
|
}, "strip", z.ZodTypeAny, {
|
|
429
459
|
project: string;
|
|
430
460
|
description: string;
|
|
@@ -473,6 +503,7 @@ declare const AssistantCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
473
503
|
}[];
|
|
474
504
|
name: string;
|
|
475
505
|
conversation_starters: string[];
|
|
506
|
+
skip_integration_validation: boolean;
|
|
476
507
|
temperature?: number | undefined;
|
|
477
508
|
top_p?: number | undefined;
|
|
478
509
|
icon_url?: string | undefined;
|
|
@@ -537,6 +568,7 @@ declare const AssistantCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
537
568
|
is_global?: boolean | undefined;
|
|
538
569
|
slug?: string | undefined;
|
|
539
570
|
categories?: string[] | undefined;
|
|
571
|
+
skip_integration_validation?: boolean | undefined;
|
|
540
572
|
}>>;
|
|
541
573
|
type AssistantCreateParams = z.infer<typeof AssistantCreateParamsSchema>;
|
|
542
574
|
declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
@@ -689,6 +721,7 @@ declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
689
721
|
description?: string | undefined;
|
|
690
722
|
}>, "many">>>;
|
|
691
723
|
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
724
|
+
skip_integration_validation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
692
725
|
}, "strip", z.ZodTypeAny, {
|
|
693
726
|
project: string;
|
|
694
727
|
description: string;
|
|
@@ -737,6 +770,7 @@ declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
737
770
|
}[];
|
|
738
771
|
name: string;
|
|
739
772
|
conversation_starters: string[];
|
|
773
|
+
skip_integration_validation: boolean;
|
|
740
774
|
temperature?: number | undefined;
|
|
741
775
|
top_p?: number | undefined;
|
|
742
776
|
icon_url?: string | undefined;
|
|
@@ -801,6 +835,7 @@ declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
801
835
|
is_global?: boolean | undefined;
|
|
802
836
|
slug?: string | undefined;
|
|
803
837
|
categories?: string[] | undefined;
|
|
838
|
+
skip_integration_validation?: boolean | undefined;
|
|
804
839
|
}>>;
|
|
805
840
|
type AssistantUpdateParams = z.infer<typeof AssistantUpdateParamsSchema>;
|
|
806
841
|
declare const AssistantChatParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
@@ -903,12 +938,14 @@ declare class AssistantService {
|
|
|
903
938
|
getBySlug(slug: string): Promise<Assistant>;
|
|
904
939
|
/**
|
|
905
940
|
* Create a new assistant.
|
|
941
|
+
* @returns AssistantCreateResponse with assistant_id and optional validation results
|
|
906
942
|
*/
|
|
907
|
-
create(_params: AssistantCreateParams): Promise<
|
|
943
|
+
create(_params: AssistantCreateParams): Promise<AssistantCreateResponse>;
|
|
908
944
|
/**
|
|
909
945
|
* Update an existing assistant.
|
|
946
|
+
* @returns AssistantUpdateResponse with optional validation results
|
|
910
947
|
*/
|
|
911
|
-
update(assistantId: string, _params: AssistantUpdateParams): Promise<
|
|
948
|
+
update(assistantId: string, _params: AssistantUpdateParams): Promise<AssistantUpdateResponse>;
|
|
912
949
|
/**
|
|
913
950
|
* Get list of available tools.
|
|
914
951
|
*/
|
|
@@ -2337,4 +2374,4 @@ declare class NotFoundError extends ApiError {
|
|
|
2337
2374
|
constructor(resourceType: string, resourceId: string);
|
|
2338
2375
|
}
|
|
2339
2376
|
|
|
2340
|
-
export { type AboutUser, type AboutUserResponse, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, type AssistantRequestBase, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseUser, type ChatMessage, ChatRole, type Code, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, ExecutionStatus, type ExecutionStatusType, type File, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, type MCPServerConfig, type MCPServerDetails, type Mark, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, type SortOrder, type SystemPromptHistory, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolItem, type ToolKitDetails, type UserData, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, type WorkflowUpdateParams, WorkflowUpdateParamsSchema };
|
|
2377
|
+
export { type AboutUser, type AboutUserResponse, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantCreateResponse, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, type AssistantRequestBase, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantUpdateResponse, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseUser, type ChatMessage, ChatRole, type Code, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, ExecutionStatus, type ExecutionStatusType, type File, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type IntegrationValidationResult, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, type MCPServerConfig, type MCPServerDetails, type Mark, type MissingIntegration, type MissingIntegrationsByCredentialType, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, type SortOrder, type SystemPromptHistory, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolItem, type ToolKitDetails, type UserData, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, type WorkflowUpdateParams, WorkflowUpdateParamsSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -218,6 +218,7 @@ interface AssistantRequestBase extends AssistantBase {
|
|
|
218
218
|
mcp_servers: MCPServerDetails[];
|
|
219
219
|
assistant_ids: string[];
|
|
220
220
|
prompt_variables?: PromptVariable[];
|
|
221
|
+
skip_integration_validation?: boolean;
|
|
221
222
|
}
|
|
222
223
|
interface ChatMessage {
|
|
223
224
|
role: ChatRole;
|
|
@@ -254,6 +255,34 @@ interface AssistantVersion {
|
|
|
254
255
|
prompt_variables?: PromptVariable[];
|
|
255
256
|
[key: string]: unknown;
|
|
256
257
|
}
|
|
258
|
+
interface MissingIntegration {
|
|
259
|
+
toolkit: string;
|
|
260
|
+
tool: string;
|
|
261
|
+
label: string;
|
|
262
|
+
credential_type?: string;
|
|
263
|
+
}
|
|
264
|
+
interface MissingIntegrationsByCredentialType {
|
|
265
|
+
credential_type: string;
|
|
266
|
+
missing_tools: MissingIntegration[];
|
|
267
|
+
assistant_id?: string;
|
|
268
|
+
assistant_name?: string;
|
|
269
|
+
icon_url?: string;
|
|
270
|
+
}
|
|
271
|
+
interface IntegrationValidationResult {
|
|
272
|
+
has_missing_integrations: boolean;
|
|
273
|
+
missing_by_credential_type: MissingIntegrationsByCredentialType[];
|
|
274
|
+
sub_assistants_missing: MissingIntegrationsByCredentialType[];
|
|
275
|
+
message?: string;
|
|
276
|
+
}
|
|
277
|
+
interface AssistantCreateResponse {
|
|
278
|
+
message: string;
|
|
279
|
+
assistant_id?: string;
|
|
280
|
+
validation?: IntegrationValidationResult;
|
|
281
|
+
}
|
|
282
|
+
interface AssistantUpdateResponse {
|
|
283
|
+
message: string;
|
|
284
|
+
validation?: IntegrationValidationResult;
|
|
285
|
+
}
|
|
257
286
|
|
|
258
287
|
declare const AssistantListParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
259
288
|
minimal_response: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -425,6 +454,7 @@ declare const AssistantCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
425
454
|
description?: string | undefined;
|
|
426
455
|
}>, "many">>>;
|
|
427
456
|
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
457
|
+
skip_integration_validation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
428
458
|
}, "strip", z.ZodTypeAny, {
|
|
429
459
|
project: string;
|
|
430
460
|
description: string;
|
|
@@ -473,6 +503,7 @@ declare const AssistantCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
473
503
|
}[];
|
|
474
504
|
name: string;
|
|
475
505
|
conversation_starters: string[];
|
|
506
|
+
skip_integration_validation: boolean;
|
|
476
507
|
temperature?: number | undefined;
|
|
477
508
|
top_p?: number | undefined;
|
|
478
509
|
icon_url?: string | undefined;
|
|
@@ -537,6 +568,7 @@ declare const AssistantCreateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
537
568
|
is_global?: boolean | undefined;
|
|
538
569
|
slug?: string | undefined;
|
|
539
570
|
categories?: string[] | undefined;
|
|
571
|
+
skip_integration_validation?: boolean | undefined;
|
|
540
572
|
}>>;
|
|
541
573
|
type AssistantCreateParams = z.infer<typeof AssistantCreateParamsSchema>;
|
|
542
574
|
declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
@@ -689,6 +721,7 @@ declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
689
721
|
description?: string | undefined;
|
|
690
722
|
}>, "many">>>;
|
|
691
723
|
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
724
|
+
skip_integration_validation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
692
725
|
}, "strip", z.ZodTypeAny, {
|
|
693
726
|
project: string;
|
|
694
727
|
description: string;
|
|
@@ -737,6 +770,7 @@ declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
737
770
|
}[];
|
|
738
771
|
name: string;
|
|
739
772
|
conversation_starters: string[];
|
|
773
|
+
skip_integration_validation: boolean;
|
|
740
774
|
temperature?: number | undefined;
|
|
741
775
|
top_p?: number | undefined;
|
|
742
776
|
icon_url?: string | undefined;
|
|
@@ -801,6 +835,7 @@ declare const AssistantUpdateParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
801
835
|
is_global?: boolean | undefined;
|
|
802
836
|
slug?: string | undefined;
|
|
803
837
|
categories?: string[] | undefined;
|
|
838
|
+
skip_integration_validation?: boolean | undefined;
|
|
804
839
|
}>>;
|
|
805
840
|
type AssistantUpdateParams = z.infer<typeof AssistantUpdateParamsSchema>;
|
|
806
841
|
declare const AssistantChatParamsSchema: z.ZodReadonly<z.ZodObject<{
|
|
@@ -903,12 +938,14 @@ declare class AssistantService {
|
|
|
903
938
|
getBySlug(slug: string): Promise<Assistant>;
|
|
904
939
|
/**
|
|
905
940
|
* Create a new assistant.
|
|
941
|
+
* @returns AssistantCreateResponse with assistant_id and optional validation results
|
|
906
942
|
*/
|
|
907
|
-
create(_params: AssistantCreateParams): Promise<
|
|
943
|
+
create(_params: AssistantCreateParams): Promise<AssistantCreateResponse>;
|
|
908
944
|
/**
|
|
909
945
|
* Update an existing assistant.
|
|
946
|
+
* @returns AssistantUpdateResponse with optional validation results
|
|
910
947
|
*/
|
|
911
|
-
update(assistantId: string, _params: AssistantUpdateParams): Promise<
|
|
948
|
+
update(assistantId: string, _params: AssistantUpdateParams): Promise<AssistantUpdateResponse>;
|
|
912
949
|
/**
|
|
913
950
|
* Get list of available tools.
|
|
914
951
|
*/
|
|
@@ -2337,4 +2374,4 @@ declare class NotFoundError extends ApiError {
|
|
|
2337
2374
|
constructor(resourceType: string, resourceId: string);
|
|
2338
2375
|
}
|
|
2339
2376
|
|
|
2340
|
-
export { type AboutUser, type AboutUserResponse, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, type AssistantRequestBase, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseUser, type ChatMessage, ChatRole, type Code, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, ExecutionStatus, type ExecutionStatusType, type File, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, type MCPServerConfig, type MCPServerDetails, type Mark, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, type SortOrder, type SystemPromptHistory, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolItem, type ToolKitDetails, type UserData, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, type WorkflowUpdateParams, WorkflowUpdateParamsSchema };
|
|
2377
|
+
export { type AboutUser, type AboutUserResponse, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantCreateResponse, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, type AssistantRequestBase, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantUpdateResponse, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseUser, type ChatMessage, ChatRole, type Code, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, ExecutionStatus, type ExecutionStatusType, type File, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type IntegrationValidationResult, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, type MCPServerConfig, type MCPServerDetails, type Mark, type MissingIntegration, type MissingIntegrationsByCredentialType, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, type SortOrder, type SystemPromptHistory, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolItem, type ToolKitDetails, type UserData, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, type WorkflowUpdateParams, WorkflowUpdateParamsSchema };
|
package/dist/index.js
CHANGED
|
@@ -146,7 +146,8 @@ var AssistantCreateParamsSchema = z.object({
|
|
|
146
146
|
),
|
|
147
147
|
assistant_ids: z.array(z.string()),
|
|
148
148
|
prompt_variables: z.array(PromptVariableSchema).optional().default([]),
|
|
149
|
-
categories: z.array(z.string()).max(3).optional()
|
|
149
|
+
categories: z.array(z.string()).max(3).optional(),
|
|
150
|
+
skip_integration_validation: z.boolean().optional().default(false)
|
|
150
151
|
}).readonly();
|
|
151
152
|
var AssistantUpdateParamsSchema = AssistantCreateParamsSchema;
|
|
152
153
|
var AssistantChatParamsSchema = z.object({
|
|
@@ -326,6 +327,7 @@ var AssistantService = class {
|
|
|
326
327
|
}
|
|
327
328
|
/**
|
|
328
329
|
* Create a new assistant.
|
|
330
|
+
* @returns AssistantCreateResponse with assistant_id and optional validation results
|
|
329
331
|
*/
|
|
330
332
|
async create(_params) {
|
|
331
333
|
const params = AssistantCreateParamsSchema.parse(_params);
|
|
@@ -333,6 +335,7 @@ var AssistantService = class {
|
|
|
333
335
|
}
|
|
334
336
|
/**
|
|
335
337
|
* Update an existing assistant.
|
|
338
|
+
* @returns AssistantUpdateResponse with optional validation results
|
|
336
339
|
*/
|
|
337
340
|
async update(assistantId, _params) {
|
|
338
341
|
const params = AssistantUpdateParamsSchema.parse(_params);
|