sarvam-agents-client 0.1.2 → 0.2.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 +15 -0
- package/dist/apis/AgentConversationsApi.d.ts +44 -1
- package/dist/apis/AgentConversationsApi.js +104 -1
- package/dist/apis/AgentsApi.d.ts +77 -5
- package/dist/apis/AgentsApi.js +163 -5
- package/dist/apis/AppsApi.d.ts +43 -1
- package/dist/apis/AppsApi.js +108 -0
- package/dist/apis/ArtifactsApi.d.ts +31 -1
- package/dist/apis/ArtifactsApi.js +82 -0
- package/dist/apis/CustomAPIsApi.d.ts +124 -0
- package/dist/apis/CustomAPIsApi.js +305 -0
- package/dist/apis/ModelsApi.d.ts +26 -0
- package/dist/apis/ModelsApi.js +52 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/compose/agent.d.ts +40 -0
- package/dist/compose/agent.js +191 -0
- package/dist/compose/deploy.d.ts +30 -0
- package/dist/compose/deploy.js +146 -0
- package/dist/compose/errors.d.ts +48 -0
- package/dist/compose/errors.js +68 -0
- package/dist/compose/events.d.ts +63 -0
- package/dist/compose/events.js +100 -0
- package/dist/compose/fingerprint.d.ts +6 -0
- package/dist/compose/fingerprint.js +83 -0
- package/dist/compose/index.d.ts +13 -0
- package/dist/compose/index.js +33 -0
- package/dist/compose/run.d.ts +100 -0
- package/dist/compose/run.js +536 -0
- package/dist/compose/runState.d.ts +26 -0
- package/dist/compose/runState.js +79 -0
- package/dist/compose/settingsTransport.d.ts +24 -0
- package/dist/compose/settingsTransport.js +280 -0
- package/dist/compose/tools.d.ts +17 -0
- package/dist/compose/tools.js +29 -0
- package/dist/compose/transport.d.ts +34 -0
- package/dist/compose/transport.js +2 -0
- package/dist/esm/apis/AgentConversationsApi.d.ts +44 -1
- package/dist/esm/apis/AgentConversationsApi.js +104 -1
- package/dist/esm/apis/AgentsApi.d.ts +77 -5
- package/dist/esm/apis/AgentsApi.js +163 -5
- package/dist/esm/apis/AppsApi.d.ts +43 -1
- package/dist/esm/apis/AppsApi.js +109 -1
- package/dist/esm/apis/ArtifactsApi.d.ts +31 -1
- package/dist/esm/apis/ArtifactsApi.js +83 -1
- package/dist/esm/apis/CustomAPIsApi.d.ts +124 -0
- package/dist/esm/apis/CustomAPIsApi.js +301 -0
- package/dist/esm/apis/ModelsApi.d.ts +26 -0
- package/dist/esm/apis/ModelsApi.js +48 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/compose/agent.d.ts +40 -0
- package/dist/esm/compose/agent.js +187 -0
- package/dist/esm/compose/deploy.d.ts +30 -0
- package/dist/esm/compose/deploy.js +137 -0
- package/dist/esm/compose/errors.d.ts +48 -0
- package/dist/esm/compose/errors.js +53 -0
- package/dist/esm/compose/events.d.ts +63 -0
- package/dist/esm/compose/events.js +97 -0
- package/dist/esm/compose/fingerprint.d.ts +6 -0
- package/dist/esm/compose/fingerprint.js +78 -0
- package/dist/esm/compose/index.d.ts +13 -0
- package/dist/esm/compose/index.js +8 -0
- package/dist/esm/compose/run.d.ts +100 -0
- package/dist/esm/compose/run.js +530 -0
- package/dist/esm/compose/runState.d.ts +26 -0
- package/dist/esm/compose/runState.js +75 -0
- package/dist/esm/compose/settingsTransport.d.ts +24 -0
- package/dist/esm/compose/settingsTransport.js +276 -0
- package/dist/esm/compose/tools.d.ts +17 -0
- package/dist/esm/compose/tools.js +19 -0
- package/dist/esm/compose/transport.d.ts +34 -0
- package/dist/esm/compose/transport.js +1 -0
- package/dist/esm/models/AgentChannelRef.d.ts +1 -0
- package/dist/esm/models/AgentChannelRef.js +2 -1
- package/dist/esm/models/AgentConversationDetail.d.ts +15 -2
- package/dist/esm/models/AgentConversationDetail.js +6 -4
- package/dist/esm/models/AgentConversationView.d.ts +11 -5
- package/dist/esm/models/AgentConversationView.js +4 -4
- package/dist/esm/models/AgentCreate.d.ts +8 -0
- package/dist/esm/models/AgentCreate.js +2 -0
- package/dist/esm/models/AgentCustomApiList.d.ts +33 -0
- package/dist/esm/models/AgentCustomApiList.js +44 -0
- package/dist/esm/models/AgentResource.d.ts +14 -0
- package/dist/esm/models/AgentResource.js +4 -0
- package/dist/esm/models/AgentSettingsResponse.d.ts +53 -0
- package/dist/esm/models/AgentSettingsResponse.js +52 -0
- package/dist/esm/models/AgentUpdate.d.ts +8 -0
- package/dist/esm/models/AgentUpdate.js +2 -0
- package/dist/esm/models/AppAccountView.d.ts +88 -0
- package/dist/esm/models/AppAccountView.js +79 -0
- package/dist/esm/models/AppAccountsView.d.ts +66 -0
- package/dist/esm/models/AppAccountsView.js +60 -0
- package/dist/esm/models/AppResource.d.ts +36 -0
- package/dist/esm/models/AppResource.js +12 -0
- package/dist/esm/models/AppResourceCheckView.d.ts +74 -0
- package/dist/esm/models/AppResourceCheckView.js +63 -0
- package/dist/esm/models/AppResourceView.d.ts +68 -0
- package/dist/esm/models/AppResourceView.js +67 -0
- package/dist/esm/models/AppResourcesView.d.ts +54 -0
- package/dist/esm/models/AppResourcesView.js +56 -0
- package/dist/esm/models/AppToolsResponse.d.ts +14 -0
- package/dist/esm/models/AppToolsResponse.js +4 -0
- package/dist/esm/models/AppView.d.ts +42 -0
- package/dist/esm/models/AppView.js +14 -0
- package/dist/esm/models/ArtifactVersionResponse.d.ts +94 -0
- package/dist/esm/models/ArtifactVersionResponse.js +80 -0
- package/dist/esm/models/AttachedAgent.d.ts +44 -0
- package/dist/esm/models/AttachedAgent.js +49 -0
- package/dist/esm/models/Auth.d.ts +30 -0
- package/dist/esm/models/Auth.js +52 -0
- package/dist/esm/models/BindCustomApiBody.d.ts +32 -0
- package/dist/esm/models/BindCustomApiBody.js +43 -0
- package/dist/esm/models/ConversationArtifact.d.ts +14 -0
- package/dist/esm/models/ConversationArtifact.js +9 -0
- package/dist/esm/models/CustomApi.d.ts +102 -0
- package/dist/esm/models/CustomApi.js +90 -0
- package/dist/esm/models/CustomApiBasicAuth.d.ts +51 -0
- package/dist/esm/models/CustomApiBasicAuth.js +57 -0
- package/dist/esm/models/CustomApiBearerAuth.d.ts +45 -0
- package/dist/esm/models/CustomApiBearerAuth.js +53 -0
- package/dist/esm/models/CustomApiCreate.d.ts +57 -0
- package/dist/esm/models/CustomApiCreate.js +56 -0
- package/dist/esm/models/CustomApiHeader.d.ts +44 -0
- package/dist/esm/models/CustomApiHeader.js +47 -0
- package/dist/esm/models/CustomApiHeadersAuth.d.ts +46 -0
- package/dist/esm/models/CustomApiHeadersAuth.js +54 -0
- package/dist/esm/models/CustomApiList.d.ts +64 -0
- package/dist/esm/models/CustomApiList.js +64 -0
- package/dist/esm/models/CustomApiName.d.ts +44 -0
- package/dist/esm/models/CustomApiName.js +49 -0
- package/dist/esm/models/CustomApiUpdate.d.ts +58 -0
- package/dist/esm/models/CustomApiUpdate.js +50 -0
- package/dist/esm/models/CustomApiUpdateAuth.d.ts +30 -0
- package/dist/esm/models/CustomApiUpdateAuth.js +52 -0
- package/dist/esm/models/ErrorDetailItem.d.ts +5 -0
- package/dist/esm/models/ListModels403Response.d.ts +23 -0
- package/dist/esm/models/ListModels403Response.js +45 -0
- package/dist/esm/models/ModelEndpointView.d.ts +38 -0
- package/dist/esm/models/ModelEndpointView.js +45 -0
- package/dist/esm/models/ModelView.d.ts +69 -0
- package/dist/esm/models/ModelView.js +56 -0
- package/dist/esm/models/ModelsResponse.d.ts +33 -0
- package/dist/esm/models/ModelsResponse.js +44 -0
- package/dist/esm/models/SettingsIssueView.d.ts +44 -0
- package/dist/esm/models/SettingsIssueView.js +51 -0
- package/dist/esm/models/VersionCommitBody.d.ts +44 -0
- package/dist/esm/models/VersionCommitBody.js +51 -0
- package/dist/esm/models/VersionUploadUrlBody.d.ts +32 -0
- package/dist/esm/models/VersionUploadUrlBody.js +43 -0
- package/dist/esm/models/index.d.ts +28 -0
- package/dist/esm/models/index.js +28 -0
- package/dist/models/AgentChannelRef.d.ts +1 -0
- package/dist/models/AgentChannelRef.js +2 -1
- package/dist/models/AgentConversationDetail.d.ts +15 -2
- package/dist/models/AgentConversationDetail.js +6 -4
- package/dist/models/AgentConversationView.d.ts +11 -5
- package/dist/models/AgentConversationView.js +4 -4
- package/dist/models/AgentCreate.d.ts +8 -0
- package/dist/models/AgentCreate.js +2 -0
- package/dist/models/AgentCustomApiList.d.ts +33 -0
- package/dist/models/AgentCustomApiList.js +51 -0
- package/dist/models/AgentResource.d.ts +14 -0
- package/dist/models/AgentResource.js +4 -0
- package/dist/models/AgentSettingsResponse.d.ts +53 -0
- package/dist/models/AgentSettingsResponse.js +59 -0
- package/dist/models/AgentUpdate.d.ts +8 -0
- package/dist/models/AgentUpdate.js +2 -0
- package/dist/models/AppAccountView.d.ts +88 -0
- package/dist/models/AppAccountView.js +87 -0
- package/dist/models/AppAccountsView.d.ts +66 -0
- package/dist/models/AppAccountsView.js +68 -0
- package/dist/models/AppResource.d.ts +36 -0
- package/dist/models/AppResource.js +12 -0
- package/dist/models/AppResourceCheckView.d.ts +74 -0
- package/dist/models/AppResourceCheckView.js +71 -0
- package/dist/models/AppResourceView.d.ts +68 -0
- package/dist/models/AppResourceView.js +74 -0
- package/dist/models/AppResourcesView.d.ts +54 -0
- package/dist/models/AppResourcesView.js +64 -0
- package/dist/models/AppToolsResponse.d.ts +14 -0
- package/dist/models/AppToolsResponse.js +4 -0
- package/dist/models/AppView.d.ts +42 -0
- package/dist/models/AppView.js +14 -0
- package/dist/models/ArtifactVersionResponse.d.ts +94 -0
- package/dist/models/ArtifactVersionResponse.js +88 -0
- package/dist/models/AttachedAgent.d.ts +44 -0
- package/dist/models/AttachedAgent.js +56 -0
- package/dist/models/Auth.d.ts +30 -0
- package/dist/models/Auth.js +58 -0
- package/dist/models/BindCustomApiBody.d.ts +32 -0
- package/dist/models/BindCustomApiBody.js +50 -0
- package/dist/models/ConversationArtifact.d.ts +14 -0
- package/dist/models/ConversationArtifact.js +10 -0
- package/dist/models/CustomApi.d.ts +102 -0
- package/dist/models/CustomApi.js +98 -0
- package/dist/models/CustomApiBasicAuth.d.ts +51 -0
- package/dist/models/CustomApiBasicAuth.js +65 -0
- package/dist/models/CustomApiBearerAuth.d.ts +45 -0
- package/dist/models/CustomApiBearerAuth.js +61 -0
- package/dist/models/CustomApiCreate.d.ts +57 -0
- package/dist/models/CustomApiCreate.js +63 -0
- package/dist/models/CustomApiHeader.d.ts +44 -0
- package/dist/models/CustomApiHeader.js +54 -0
- package/dist/models/CustomApiHeadersAuth.d.ts +46 -0
- package/dist/models/CustomApiHeadersAuth.js +62 -0
- package/dist/models/CustomApiList.d.ts +64 -0
- package/dist/models/CustomApiList.js +71 -0
- package/dist/models/CustomApiName.d.ts +44 -0
- package/dist/models/CustomApiName.js +56 -0
- package/dist/models/CustomApiUpdate.d.ts +58 -0
- package/dist/models/CustomApiUpdate.js +57 -0
- package/dist/models/CustomApiUpdateAuth.d.ts +30 -0
- package/dist/models/CustomApiUpdateAuth.js +58 -0
- package/dist/models/ErrorDetailItem.d.ts +5 -0
- package/dist/models/ListModels403Response.d.ts +23 -0
- package/dist/models/ListModels403Response.js +51 -0
- package/dist/models/ModelEndpointView.d.ts +38 -0
- package/dist/models/ModelEndpointView.js +52 -0
- package/dist/models/ModelView.d.ts +69 -0
- package/dist/models/ModelView.js +63 -0
- package/dist/models/ModelsResponse.d.ts +33 -0
- package/dist/models/ModelsResponse.js +51 -0
- package/dist/models/SettingsIssueView.d.ts +44 -0
- package/dist/models/SettingsIssueView.js +58 -0
- package/dist/models/VersionCommitBody.d.ts +44 -0
- package/dist/models/VersionCommitBody.js +58 -0
- package/dist/models/VersionUploadUrlBody.d.ts +32 -0
- package/dist/models/VersionUploadUrlBody.js +50 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +28 -0
- package/package.json +15 -2
- package/src/apis/AgentConversationsApi.ts +172 -3
- package/src/apis/AgentsApi.ts +242 -7
- package/src/apis/AppsApi.ts +174 -3
- package/src/apis/ArtifactsApi.ts +144 -0
- package/src/apis/ClarifyApi.ts +3 -3
- package/src/apis/CollectionsApi.ts +3 -3
- package/src/apis/ConversationsApi.ts +3 -3
- package/src/apis/CronsApi.ts +3 -3
- package/src/apis/CustomAPIsApi.ts +471 -0
- package/src/apis/MessagesApi.ts +3 -3
- package/src/apis/ModelsApi.ts +70 -0
- package/src/apis/QueueApi.ts +3 -3
- package/src/apis/ResponsesApi.ts +3 -3
- package/src/apis/SkillsApi.ts +3 -3
- package/src/apis/index.ts +2 -0
- package/src/compose/agent.ts +223 -0
- package/src/compose/deploy.ts +168 -0
- package/src/compose/errors.ts +66 -0
- package/src/compose/events.ts +122 -0
- package/src/compose/fingerprint.ts +74 -0
- package/src/compose/index.ts +13 -0
- package/src/compose/run.ts +601 -0
- package/src/compose/runState.ts +95 -0
- package/src/compose/settingsTransport.ts +299 -0
- package/src/compose/tools.ts +27 -0
- package/src/compose/transport.ts +48 -0
- package/src/models/AgentChannelRef.ts +2 -1
- package/src/models/AgentConversationDetail.ts +21 -5
- package/src/models/AgentConversationView.ts +15 -8
- package/src/models/AgentCreate.ts +8 -0
- package/src/models/AgentCustomApiList.ts +74 -0
- package/src/models/AgentResource.ts +16 -0
- package/src/models/AgentSettingsResponse.ts +99 -0
- package/src/models/AgentUpdate.ts +8 -0
- package/src/models/AppAccountView.ts +143 -0
- package/src/models/AppAccountsView.ts +118 -0
- package/src/models/AppResource.ts +48 -0
- package/src/models/AppResourceCheckView.ts +117 -0
- package/src/models/AppResourceView.ts +120 -0
- package/src/models/AppResourcesView.ts +102 -0
- package/src/models/AppToolsResponse.ts +16 -0
- package/src/models/AppView.ts +56 -0
- package/src/models/ArtifactVersionResponse.ts +155 -0
- package/src/models/AttachedAgent.ts +83 -0
- package/src/models/Auth.ts +84 -0
- package/src/models/BindCustomApiBody.ts +66 -0
- package/src/models/ConversationArtifact.ts +19 -0
- package/src/models/CustomApi.ts +175 -0
- package/src/models/CustomApiBasicAuth.ts +94 -0
- package/src/models/CustomApiBearerAuth.ts +85 -0
- package/src/models/CustomApiCreate.ts +108 -0
- package/src/models/CustomApiHeader.ts +82 -0
- package/src/models/CustomApiHeadersAuth.ts +93 -0
- package/src/models/CustomApiList.ts +120 -0
- package/src/models/CustomApiName.ts +83 -0
- package/src/models/CustomApiUpdate.ts +106 -0
- package/src/models/CustomApiUpdateAuth.ts +84 -0
- package/src/models/ErrorDetailItem.ts +5 -0
- package/src/models/ListModels403Response.ts +73 -0
- package/src/models/ModelEndpointView.ts +74 -0
- package/src/models/ModelView.ts +122 -0
- package/src/models/ModelsResponse.ts +74 -0
- package/src/models/SettingsIssueView.ts +84 -0
- package/src/models/VersionCommitBody.ts +84 -0
- package/src/models/VersionUploadUrlBody.ts +66 -0
- package/src/models/index.ts +28 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AuthFromJSON, AuthToJSON, } from './Auth.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CustomApiCreate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCustomApiCreate(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('host' in value) || value['host'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('auth' in value) || value['auth'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function CustomApiCreateFromJSON(json) {
|
|
28
|
+
return CustomApiCreateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function CustomApiCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'host': json['host'],
|
|
38
|
+
'auth': AuthFromJSON(json['auth']),
|
|
39
|
+
'enabledForChats': json['enabledForChats'] == null ? undefined : json['enabledForChats'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function CustomApiCreateToJSON(json) {
|
|
43
|
+
return CustomApiCreateToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function CustomApiCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
'host': value['host'],
|
|
53
|
+
'auth': AuthToJSON(value['auth']),
|
|
54
|
+
'enabledForChats': value['enabledForChats'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CustomApiHeader
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomApiHeader {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomApiHeader
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomApiHeader
|
|
28
|
+
*/
|
|
29
|
+
value?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomApiHeader
|
|
34
|
+
*/
|
|
35
|
+
previousName?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CustomApiHeader interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCustomApiHeader(value: object): value is CustomApiHeader;
|
|
41
|
+
export declare function CustomApiHeaderFromJSON(json: any): CustomApiHeader;
|
|
42
|
+
export declare function CustomApiHeaderFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiHeader;
|
|
43
|
+
export declare function CustomApiHeaderToJSON(json: any): CustomApiHeader;
|
|
44
|
+
export declare function CustomApiHeaderToJSONTyped(value?: CustomApiHeader | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the CustomApiHeader interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCustomApiHeader(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CustomApiHeaderFromJSON(json) {
|
|
23
|
+
return CustomApiHeaderFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CustomApiHeaderFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
32
|
+
'previousName': json['previousName'] == null ? undefined : json['previousName'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function CustomApiHeaderToJSON(json) {
|
|
36
|
+
return CustomApiHeaderToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function CustomApiHeaderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': value['name'],
|
|
44
|
+
'value': value['value'],
|
|
45
|
+
'previousName': value['previousName'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CustomApiHeader } from './CustomApiHeader.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CustomApiHeadersAuth
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomApiHeadersAuth {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CustomApiHeadersAuth
|
|
23
|
+
*/
|
|
24
|
+
type: CustomApiHeadersAuthTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<CustomApiHeader>}
|
|
28
|
+
* @memberof CustomApiHeadersAuth
|
|
29
|
+
*/
|
|
30
|
+
headers: Array<CustomApiHeader>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const CustomApiHeadersAuthTypeEnum: {
|
|
36
|
+
readonly Headers: "headers";
|
|
37
|
+
};
|
|
38
|
+
export type CustomApiHeadersAuthTypeEnum = typeof CustomApiHeadersAuthTypeEnum[keyof typeof CustomApiHeadersAuthTypeEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CustomApiHeadersAuth interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCustomApiHeadersAuth(value: object): value is CustomApiHeadersAuth;
|
|
43
|
+
export declare function CustomApiHeadersAuthFromJSON(json: any): CustomApiHeadersAuth;
|
|
44
|
+
export declare function CustomApiHeadersAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiHeadersAuth;
|
|
45
|
+
export declare function CustomApiHeadersAuthToJSON(json: any): CustomApiHeadersAuth;
|
|
46
|
+
export declare function CustomApiHeadersAuthToJSONTyped(value?: CustomApiHeadersAuth | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CustomApiHeaderFromJSON, CustomApiHeaderToJSON, } from './CustomApiHeader.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const CustomApiHeadersAuthTypeEnum = {
|
|
19
|
+
Headers: 'headers'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CustomApiHeadersAuth interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfCustomApiHeadersAuth(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('headers' in value) || value['headers'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function CustomApiHeadersAuthFromJSON(json) {
|
|
32
|
+
return CustomApiHeadersAuthFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function CustomApiHeadersAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'headers': (json['headers'].map(CustomApiHeaderFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function CustomApiHeadersAuthToJSON(json) {
|
|
44
|
+
return CustomApiHeadersAuthToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function CustomApiHeadersAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': value['type'],
|
|
52
|
+
'headers': (value['headers'].map(CustomApiHeaderToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CustomApi } from './CustomApi.js';
|
|
13
|
+
/**
|
|
14
|
+
* One page, in the v2 list envelope (``EntityList`` without
|
|
15
|
+
* ``entityType``: Custom APIs are not a catalog entity).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CustomApiList
|
|
18
|
+
*/
|
|
19
|
+
export interface CustomApiList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CustomApi>}
|
|
23
|
+
* @memberof CustomApiList
|
|
24
|
+
*/
|
|
25
|
+
data: Array<CustomApi>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof CustomApiList
|
|
30
|
+
*/
|
|
31
|
+
total: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof CustomApiList
|
|
36
|
+
*/
|
|
37
|
+
limit: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof CustomApiList
|
|
42
|
+
*/
|
|
43
|
+
offset: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof CustomApiList
|
|
48
|
+
*/
|
|
49
|
+
hasMore: boolean;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof CustomApiList
|
|
54
|
+
*/
|
|
55
|
+
enabledCount: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the CustomApiList interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfCustomApiList(value: object): value is CustomApiList;
|
|
61
|
+
export declare function CustomApiListFromJSON(json: any): CustomApiList;
|
|
62
|
+
export declare function CustomApiListFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiList;
|
|
63
|
+
export declare function CustomApiListToJSON(json: any): CustomApiList;
|
|
64
|
+
export declare function CustomApiListToJSONTyped(value?: CustomApiList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CustomApiFromJSON, CustomApiToJSON, } from './CustomApi.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CustomApiList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCustomApiList(value) {
|
|
19
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('enabledCount' in value) || value['enabledCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function CustomApiListFromJSON(json) {
|
|
34
|
+
return CustomApiListFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CustomApiListFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(CustomApiFromJSON)),
|
|
42
|
+
'total': json['total'],
|
|
43
|
+
'limit': json['limit'],
|
|
44
|
+
'offset': json['offset'],
|
|
45
|
+
'hasMore': json['hasMore'],
|
|
46
|
+
'enabledCount': json['enabledCount'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function CustomApiListToJSON(json) {
|
|
50
|
+
return CustomApiListToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function CustomApiListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'data': (value['data'].map(CustomApiToJSON)),
|
|
58
|
+
'total': value['total'],
|
|
59
|
+
'limit': value['limit'],
|
|
60
|
+
'offset': value['offset'],
|
|
61
|
+
'hasMore': value['hasMore'],
|
|
62
|
+
'enabledCount': value['enabledCount'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* What an agent's viewers see of an attached API: its name, nothing else.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CustomApiName
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomApiName {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomApiName
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomApiName
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomApiName
|
|
34
|
+
*/
|
|
35
|
+
host?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CustomApiName interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCustomApiName(value: object): value is CustomApiName;
|
|
41
|
+
export declare function CustomApiNameFromJSON(json: any): CustomApiName;
|
|
42
|
+
export declare function CustomApiNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiName;
|
|
43
|
+
export declare function CustomApiNameToJSON(json: any): CustomApiName;
|
|
44
|
+
export declare function CustomApiNameToJSONTyped(value?: CustomApiName | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the CustomApiName interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCustomApiName(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CustomApiNameFromJSON(json) {
|
|
25
|
+
return CustomApiNameFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CustomApiNameFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function CustomApiNameToJSON(json) {
|
|
38
|
+
return CustomApiNameToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function CustomApiNameToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value['id'],
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'host': value['host'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CustomApiUpdateAuth } from './CustomApiUpdateAuth.js';
|
|
13
|
+
/**
|
|
14
|
+
* Every field optional. ``auth`` replaces the credentials (and the auth
|
|
15
|
+
* type) whole; omit it to keep them. Attachments are kept either way.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CustomApiUpdate
|
|
18
|
+
*/
|
|
19
|
+
export interface CustomApiUpdate {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CustomApiUpdate
|
|
24
|
+
*/
|
|
25
|
+
name?: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CustomApiUpdate
|
|
30
|
+
*/
|
|
31
|
+
description?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CustomApiUpdate
|
|
36
|
+
*/
|
|
37
|
+
host?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {CustomApiUpdateAuth}
|
|
41
|
+
* @memberof CustomApiUpdate
|
|
42
|
+
*/
|
|
43
|
+
auth?: CustomApiUpdateAuth | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof CustomApiUpdate
|
|
48
|
+
*/
|
|
49
|
+
enabledForChats?: boolean | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the CustomApiUpdate interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfCustomApiUpdate(value: object): value is CustomApiUpdate;
|
|
55
|
+
export declare function CustomApiUpdateFromJSON(json: any): CustomApiUpdate;
|
|
56
|
+
export declare function CustomApiUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiUpdate;
|
|
57
|
+
export declare function CustomApiUpdateToJSON(json: any): CustomApiUpdate;
|
|
58
|
+
export declare function CustomApiUpdateToJSONTyped(value?: CustomApiUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CustomApiUpdateAuthFromJSON, CustomApiUpdateAuthToJSON, } from './CustomApiUpdateAuth.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CustomApiUpdate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCustomApiUpdate(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function CustomApiUpdateFromJSON(json) {
|
|
22
|
+
return CustomApiUpdateFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function CustomApiUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
31
|
+
'host': json['host'] == null ? undefined : json['host'],
|
|
32
|
+
'auth': json['auth'] == null ? undefined : CustomApiUpdateAuthFromJSON(json['auth']),
|
|
33
|
+
'enabledForChats': json['enabledForChats'] == null ? undefined : json['enabledForChats'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CustomApiUpdateToJSON(json) {
|
|
37
|
+
return CustomApiUpdateToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CustomApiUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'description': value['description'],
|
|
46
|
+
'host': value['host'],
|
|
47
|
+
'auth': CustomApiUpdateAuthToJSON(value['auth']),
|
|
48
|
+
'enabledForChats': value['enabledForChats'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CustomApiBasicAuth } from './CustomApiBasicAuth.js';
|
|
13
|
+
import type { CustomApiBearerAuth } from './CustomApiBearerAuth.js';
|
|
14
|
+
import type { CustomApiHeadersAuth } from './CustomApiHeadersAuth.js';
|
|
15
|
+
/**
|
|
16
|
+
* @type CustomApiUpdateAuth
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export type CustomApiUpdateAuth = {
|
|
21
|
+
type: 'basic';
|
|
22
|
+
} & CustomApiBasicAuth | {
|
|
23
|
+
type: 'bearer';
|
|
24
|
+
} & CustomApiBearerAuth | {
|
|
25
|
+
type: 'headers';
|
|
26
|
+
} & CustomApiHeadersAuth;
|
|
27
|
+
export declare function CustomApiUpdateAuthFromJSON(json: any): CustomApiUpdateAuth;
|
|
28
|
+
export declare function CustomApiUpdateAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiUpdateAuth;
|
|
29
|
+
export declare function CustomApiUpdateAuthToJSON(json: any): any;
|
|
30
|
+
export declare function CustomApiUpdateAuthToJSONTyped(value?: CustomApiUpdateAuth | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { CustomApiBasicAuthFromJSONTyped, CustomApiBasicAuthToJSON, } from './CustomApiBasicAuth.js';
|
|
15
|
+
import { CustomApiBearerAuthFromJSONTyped, CustomApiBearerAuthToJSON, } from './CustomApiBearerAuth.js';
|
|
16
|
+
import { CustomApiHeadersAuthFromJSONTyped, CustomApiHeadersAuthToJSON, } from './CustomApiHeadersAuth.js';
|
|
17
|
+
export function CustomApiUpdateAuthFromJSON(json) {
|
|
18
|
+
return CustomApiUpdateAuthFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function CustomApiUpdateAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if (json == null) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
switch (json['type']) {
|
|
25
|
+
case 'basic':
|
|
26
|
+
return Object.assign({}, CustomApiBasicAuthFromJSONTyped(json, true), { type: 'basic' });
|
|
27
|
+
case 'bearer':
|
|
28
|
+
return Object.assign({}, CustomApiBearerAuthFromJSONTyped(json, true), { type: 'bearer' });
|
|
29
|
+
case 'headers':
|
|
30
|
+
return Object.assign({}, CustomApiHeadersAuthFromJSONTyped(json, true), { type: 'headers' });
|
|
31
|
+
default:
|
|
32
|
+
throw new Error(`No variant of CustomApiUpdateAuth exists with 'type=${json['type']}'`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export function CustomApiUpdateAuthToJSON(json) {
|
|
36
|
+
return CustomApiUpdateAuthToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function CustomApiUpdateAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
switch (value['type']) {
|
|
43
|
+
case 'basic':
|
|
44
|
+
return Object.assign({}, CustomApiBasicAuthToJSON(value), { type: 'basic' });
|
|
45
|
+
case 'bearer':
|
|
46
|
+
return Object.assign({}, CustomApiBearerAuthToJSON(value), { type: 'bearer' });
|
|
47
|
+
case 'headers':
|
|
48
|
+
return Object.assign({}, CustomApiHeadersAuthToJSON(value), { type: 'headers' });
|
|
49
|
+
default:
|
|
50
|
+
throw new Error(`No variant of CustomApiUpdateAuth exists with 'type=${value['type']}'`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -21,6 +21,11 @@ import type { Reason } from './Reason.js';
|
|
|
21
21
|
* (EntityType vocab: skill|app|collection), ``currentScope`` and
|
|
22
22
|
* ``requiredScope`` (FE scope vocab) — drive the publish-first-then-attach
|
|
23
23
|
* flow.
|
|
24
|
+
* - ``AGENT_NOT_DEPLOYED`` (409 on an ``origin=managed_agents`` conversation
|
|
25
|
+
* or turn): carries ``agentId``.
|
|
26
|
+
* - ``SERVICE_TOKEN_EXISTS`` (409 on ``POST /v1/service-tokens``): carries
|
|
27
|
+
* ``tokenId`` and ``tokenPrefix`` of the caller's live token, when it still
|
|
28
|
+
* exists at the time of the read.
|
|
24
29
|
*
|
|
25
30
|
* ``extra="allow"``: entries from other producers (request-validation
|
|
26
31
|
* errors, quota facts) ride in the same list with their own keys, so every
|