@iblai/iblai-api 4.6.2-dev1-ai-plus → 4.7.0-ai-plus
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.js +94 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +94 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +94 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/models/MaskedIntegrationCredential.d.ts +8 -0
- package/dist/types/models/MaskedLLMCredential.d.ts +8 -0
- package/dist/types/models/ToolCategory.d.ts +5 -0
- package/dist/types/models/ToolResponse.d.ts +4 -1
- package/dist/types/services/AiAccountService.d.ts +54 -0
- package/dist/types/services/AiMentorService.d.ts +17 -2
- package/package.json +1 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +3 -0
- package/src/models/MaskedIntegrationCredential.ts +13 -0
- package/src/models/MaskedLLMCredential.ts +13 -0
- package/src/models/ToolCategory.ts +10 -0
- package/src/models/ToolResponse.ts +4 -1
- package/src/services/AiAccountService.ts +82 -0
- package/src/services/AiMentorService.ts +36 -0
|
@@ -9,6 +9,8 @@ import type { IntegrationCredentialSchema } from '../models/IntegrationCredentia
|
|
|
9
9
|
import type { LLMCredentialRequest } from '../models/LLMCredentialRequest';
|
|
10
10
|
import type { LLMCredentialResponse } from '../models/LLMCredentialResponse';
|
|
11
11
|
import type { LLMCredentialSchema } from '../models/LLMCredentialSchema';
|
|
12
|
+
import type { MaskedIntegrationCredential } from '../models/MaskedIntegrationCredential';
|
|
13
|
+
import type { MaskedLLMCredential } from '../models/MaskedLLMCredential';
|
|
12
14
|
import type { OAuthStartResponse } from '../models/OAuthStartResponse';
|
|
13
15
|
import type { PatchedCredentialRequest } from '../models/PatchedCredentialRequest';
|
|
14
16
|
import type { PatchedLLMCredentialRequest } from '../models/PatchedLLMCredentialRequest';
|
|
@@ -540,6 +542,86 @@ export class AiAccountService {
|
|
|
540
542
|
},
|
|
541
543
|
});
|
|
542
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* Retrieve masked integration credentials for an organization.
|
|
547
|
+
*
|
|
548
|
+
* Query Parameters:
|
|
549
|
+
* name (optional): Filter results by integration service name
|
|
550
|
+
*
|
|
551
|
+
* Args:
|
|
552
|
+
* request: The HTTP request
|
|
553
|
+
* org: Organization key identifier
|
|
554
|
+
*
|
|
555
|
+
* Returns:
|
|
556
|
+
* Response: List of integration credentials for the organization
|
|
557
|
+
*
|
|
558
|
+
* Raises:
|
|
559
|
+
* NotFound: When organization is not found or when no credentials match the filters
|
|
560
|
+
* ValidationError: When query parameters are invalid
|
|
561
|
+
* @returns MaskedIntegrationCredential
|
|
562
|
+
* @throws ApiError
|
|
563
|
+
*/
|
|
564
|
+
public static aiAccountOrgsMaskedIntegrationCredentialList({
|
|
565
|
+
org,
|
|
566
|
+
name,
|
|
567
|
+
}: {
|
|
568
|
+
org: string,
|
|
569
|
+
/**
|
|
570
|
+
* Filter credentials by provider name (e.g., 'openai', 'google')
|
|
571
|
+
*/
|
|
572
|
+
name?: string,
|
|
573
|
+
}): CancelablePromise<Array<MaskedIntegrationCredential>> {
|
|
574
|
+
return __request(OpenAPI, {
|
|
575
|
+
method: 'GET',
|
|
576
|
+
url: '/api/ai-account/orgs/{org}/masked-integration-credential/',
|
|
577
|
+
path: {
|
|
578
|
+
'org': org,
|
|
579
|
+
},
|
|
580
|
+
query: {
|
|
581
|
+
'name': name,
|
|
582
|
+
},
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Retrieve LLM credentials for an organization with the value entries masked.
|
|
587
|
+
*
|
|
588
|
+
* Query Parameters:
|
|
589
|
+
* name (optional): Filter results by LLM provider name
|
|
590
|
+
*
|
|
591
|
+
* Args:
|
|
592
|
+
* request: The HTTP request
|
|
593
|
+
* org: Organization key identifier
|
|
594
|
+
*
|
|
595
|
+
* Returns:
|
|
596
|
+
* Response: List of LLM credentials for the organization
|
|
597
|
+
*
|
|
598
|
+
* Raises:
|
|
599
|
+
* NotFound: When organization is not found or when no credentials match the filters
|
|
600
|
+
* ValidationError: When query parameters are invalid
|
|
601
|
+
* @returns MaskedLLMCredential
|
|
602
|
+
* @throws ApiError
|
|
603
|
+
*/
|
|
604
|
+
public static aiAccountOrgsMaskedLlmCredentialRetrieve({
|
|
605
|
+
org,
|
|
606
|
+
name,
|
|
607
|
+
}: {
|
|
608
|
+
org: string,
|
|
609
|
+
/**
|
|
610
|
+
* Filter credentials by provider name (e.g., 'openai', 'google')
|
|
611
|
+
*/
|
|
612
|
+
name?: string,
|
|
613
|
+
}): CancelablePromise<MaskedLLMCredential> {
|
|
614
|
+
return __request(OpenAPI, {
|
|
615
|
+
method: 'GET',
|
|
616
|
+
url: '/api/ai-account/orgs/{org}/masked-llm-credential/',
|
|
617
|
+
path: {
|
|
618
|
+
'org': org,
|
|
619
|
+
},
|
|
620
|
+
query: {
|
|
621
|
+
'name': name,
|
|
622
|
+
},
|
|
623
|
+
});
|
|
624
|
+
}
|
|
543
625
|
/**
|
|
544
626
|
* Enable or disable the use of main LLM credentials for an organization.
|
|
545
627
|
*
|
|
@@ -127,6 +127,7 @@ import type { SubSection } from '../models/SubSection';
|
|
|
127
127
|
import type { TaskView } from '../models/TaskView';
|
|
128
128
|
import type { TemplateMentor } from '../models/TemplateMentor';
|
|
129
129
|
import type { TicketMessage } from '../models/TicketMessage';
|
|
130
|
+
import type { ToolCategory } from '../models/ToolCategory';
|
|
130
131
|
import type { ToolResponse } from '../models/ToolResponse';
|
|
131
132
|
import type { TriggerRequest } from '../models/TriggerRequest';
|
|
132
133
|
import type { TriggerResponse } from '../models/TriggerResponse';
|
|
@@ -5816,10 +5817,20 @@ export class AiMentorService {
|
|
|
5816
5817
|
mentor,
|
|
5817
5818
|
org,
|
|
5818
5819
|
userId,
|
|
5820
|
+
ordering,
|
|
5821
|
+
search,
|
|
5819
5822
|
}: {
|
|
5820
5823
|
mentor: string,
|
|
5821
5824
|
org: string,
|
|
5822
5825
|
userId: string,
|
|
5826
|
+
/**
|
|
5827
|
+
* Which field to use when ordering the results.
|
|
5828
|
+
*/
|
|
5829
|
+
ordering?: string,
|
|
5830
|
+
/**
|
|
5831
|
+
* A search term.
|
|
5832
|
+
*/
|
|
5833
|
+
search?: string,
|
|
5823
5834
|
}): CancelablePromise<Array<ToolResponse>> {
|
|
5824
5835
|
return __request(OpenAPI, {
|
|
5825
5836
|
method: 'GET',
|
|
@@ -5829,6 +5840,10 @@ export class AiMentorService {
|
|
|
5829
5840
|
'org': org,
|
|
5830
5841
|
'user_id': userId,
|
|
5831
5842
|
},
|
|
5843
|
+
query: {
|
|
5844
|
+
'ordering': ordering,
|
|
5845
|
+
'search': search,
|
|
5846
|
+
},
|
|
5832
5847
|
});
|
|
5833
5848
|
}
|
|
5834
5849
|
/**
|
|
@@ -9858,6 +9873,27 @@ export class AiMentorService {
|
|
|
9858
9873
|
mediaType: 'application/json',
|
|
9859
9874
|
});
|
|
9860
9875
|
}
|
|
9876
|
+
/**
|
|
9877
|
+
* Retrieve Tool Categories
|
|
9878
|
+
* @returns ToolCategory
|
|
9879
|
+
* @throws ApiError
|
|
9880
|
+
*/
|
|
9881
|
+
public static aiMentorOrgsUsersToolCategoriesList({
|
|
9882
|
+
org,
|
|
9883
|
+
userId,
|
|
9884
|
+
}: {
|
|
9885
|
+
org: string,
|
|
9886
|
+
userId: string,
|
|
9887
|
+
}): CancelablePromise<Array<ToolCategory>> {
|
|
9888
|
+
return __request(OpenAPI, {
|
|
9889
|
+
method: 'GET',
|
|
9890
|
+
url: '/api/ai-mentor/orgs/{org}/users/{user_id}/tool-categories/',
|
|
9891
|
+
path: {
|
|
9892
|
+
'org': org,
|
|
9893
|
+
'user_id': userId,
|
|
9894
|
+
},
|
|
9895
|
+
});
|
|
9896
|
+
}
|
|
9861
9897
|
/**
|
|
9862
9898
|
* Retrieve a list of available voice options.
|
|
9863
9899
|
*
|