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,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sarvam Agents API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: support@sarvam.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBindCustomApiBody = instanceOfBindCustomApiBody;
|
|
17
|
+
exports.BindCustomApiBodyFromJSON = BindCustomApiBodyFromJSON;
|
|
18
|
+
exports.BindCustomApiBodyFromJSONTyped = BindCustomApiBodyFromJSONTyped;
|
|
19
|
+
exports.BindCustomApiBodyToJSON = BindCustomApiBodyToJSON;
|
|
20
|
+
exports.BindCustomApiBodyToJSONTyped = BindCustomApiBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BindCustomApiBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBindCustomApiBody(value) {
|
|
25
|
+
if (!('customApiId' in value) || value['customApiId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function BindCustomApiBodyFromJSON(json) {
|
|
30
|
+
return BindCustomApiBodyFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function BindCustomApiBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'customApiId': json['customApiId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function BindCustomApiBodyToJSON(json) {
|
|
41
|
+
return BindCustomApiBodyToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function BindCustomApiBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'customApiId': value['customApiId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -63,7 +63,21 @@ export interface ConversationArtifact {
|
|
|
63
63
|
* @memberof ConversationArtifact
|
|
64
64
|
*/
|
|
65
65
|
version?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ConversationArtifact
|
|
70
|
+
*/
|
|
71
|
+
htmlStage?: ConversationArtifactHtmlStageEnum | null;
|
|
66
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const ConversationArtifactHtmlStageEnum: {
|
|
77
|
+
readonly Deck: "deck";
|
|
78
|
+
readonly Doc: "doc";
|
|
79
|
+
};
|
|
80
|
+
export type ConversationArtifactHtmlStageEnum = typeof ConversationArtifactHtmlStageEnum[keyof typeof ConversationArtifactHtmlStageEnum];
|
|
67
81
|
/**
|
|
68
82
|
* Check if a given object implements the ConversationArtifact interface.
|
|
69
83
|
*/
|
|
@@ -13,11 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ConversationArtifactHtmlStageEnum = void 0;
|
|
16
17
|
exports.instanceOfConversationArtifact = instanceOfConversationArtifact;
|
|
17
18
|
exports.ConversationArtifactFromJSON = ConversationArtifactFromJSON;
|
|
18
19
|
exports.ConversationArtifactFromJSONTyped = ConversationArtifactFromJSONTyped;
|
|
19
20
|
exports.ConversationArtifactToJSON = ConversationArtifactToJSON;
|
|
20
21
|
exports.ConversationArtifactToJSONTyped = ConversationArtifactToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ConversationArtifactHtmlStageEnum = {
|
|
26
|
+
Deck: 'deck',
|
|
27
|
+
Doc: 'doc'
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Check if a given object implements the ConversationArtifact interface.
|
|
23
31
|
*/
|
|
@@ -52,6 +60,7 @@ function ConversationArtifactFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
60
|
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
53
61
|
'createdAt': (new Date(json['createdAt'])),
|
|
54
62
|
'version': json['version'] == null ? undefined : json['version'],
|
|
63
|
+
'htmlStage': json['htmlStage'] == null ? undefined : json['htmlStage'],
|
|
55
64
|
};
|
|
56
65
|
}
|
|
57
66
|
function ConversationArtifactToJSON(json) {
|
|
@@ -70,5 +79,6 @@ function ConversationArtifactToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
79
|
'kind': value['kind'],
|
|
71
80
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
72
81
|
'version': value['version'],
|
|
82
|
+
'htmlStage': value['htmlStage'],
|
|
73
83
|
};
|
|
74
84
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 { AttachedAgent } from './AttachedAgent.js';
|
|
13
|
+
/**
|
|
14
|
+
* A Custom API as its owner sees it. Never carries a secret.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CustomApi
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomApi {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CustomApi
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CustomApi
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CustomApi
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CustomApi
|
|
41
|
+
*/
|
|
42
|
+
host: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CustomApi
|
|
47
|
+
*/
|
|
48
|
+
authType: CustomApiAuthTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<string>}
|
|
52
|
+
* @memberof CustomApi
|
|
53
|
+
*/
|
|
54
|
+
headerNames: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof CustomApi
|
|
59
|
+
*/
|
|
60
|
+
enabledForChats: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<AttachedAgent>}
|
|
64
|
+
* @memberof CustomApi
|
|
65
|
+
*/
|
|
66
|
+
agents: Array<AttachedAgent>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof CustomApi
|
|
71
|
+
*/
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof CustomApi
|
|
77
|
+
*/
|
|
78
|
+
credentialsUpdatedAt: Date;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CustomApi
|
|
83
|
+
*/
|
|
84
|
+
enabledForChatsError?: string | null;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @export
|
|
88
|
+
*/
|
|
89
|
+
export declare const CustomApiAuthTypeEnum: {
|
|
90
|
+
readonly Bearer: "bearer";
|
|
91
|
+
readonly Basic: "basic";
|
|
92
|
+
readonly Headers: "headers";
|
|
93
|
+
};
|
|
94
|
+
export type CustomApiAuthTypeEnum = typeof CustomApiAuthTypeEnum[keyof typeof CustomApiAuthTypeEnum];
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the CustomApi interface.
|
|
97
|
+
*/
|
|
98
|
+
export declare function instanceOfCustomApi(value: object): value is CustomApi;
|
|
99
|
+
export declare function CustomApiFromJSON(json: any): CustomApi;
|
|
100
|
+
export declare function CustomApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApi;
|
|
101
|
+
export declare function CustomApiToJSON(json: any): CustomApi;
|
|
102
|
+
export declare function CustomApiToJSONTyped(value?: CustomApi | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sarvam Agents API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: support@sarvam.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomApiAuthTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCustomApi = instanceOfCustomApi;
|
|
18
|
+
exports.CustomApiFromJSON = CustomApiFromJSON;
|
|
19
|
+
exports.CustomApiFromJSONTyped = CustomApiFromJSONTyped;
|
|
20
|
+
exports.CustomApiToJSON = CustomApiToJSON;
|
|
21
|
+
exports.CustomApiToJSONTyped = CustomApiToJSONTyped;
|
|
22
|
+
const AttachedAgent_js_1 = require("./AttachedAgent.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.CustomApiAuthTypeEnum = {
|
|
27
|
+
Bearer: 'bearer',
|
|
28
|
+
Basic: 'basic',
|
|
29
|
+
Headers: 'headers'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CustomApi interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfCustomApi(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('host' in value) || value['host'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('authType' in value) || value['authType'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('headerNames' in value) || value['headerNames'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('enabledForChats' in value) || value['enabledForChats'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('agents' in value) || value['agents'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('credentialsUpdatedAt' in value) || value['credentialsUpdatedAt'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
function CustomApiFromJSON(json) {
|
|
58
|
+
return CustomApiFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function CustomApiFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': json['id'],
|
|
66
|
+
'name': json['name'],
|
|
67
|
+
'description': json['description'],
|
|
68
|
+
'host': json['host'],
|
|
69
|
+
'authType': json['authType'],
|
|
70
|
+
'headerNames': json['headerNames'],
|
|
71
|
+
'enabledForChats': json['enabledForChats'],
|
|
72
|
+
'agents': (json['agents'].map(AttachedAgent_js_1.AttachedAgentFromJSON)),
|
|
73
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
74
|
+
'credentialsUpdatedAt': (new Date(json['credentialsUpdatedAt'])),
|
|
75
|
+
'enabledForChatsError': json['enabledForChatsError'] == null ? undefined : json['enabledForChatsError'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function CustomApiToJSON(json) {
|
|
79
|
+
return CustomApiToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function CustomApiToJSONTyped(value, ignoreDiscriminator = false) {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'description': value['description'],
|
|
89
|
+
'host': value['host'],
|
|
90
|
+
'authType': value['authType'],
|
|
91
|
+
'headerNames': value['headerNames'],
|
|
92
|
+
'enabledForChats': value['enabledForChats'],
|
|
93
|
+
'agents': (value['agents'].map(AttachedAgent_js_1.AttachedAgentToJSON)),
|
|
94
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
95
|
+
'credentialsUpdatedAt': ((value['credentialsUpdatedAt']).toISOString()),
|
|
96
|
+
'enabledForChatsError': value['enabledForChatsError'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 CustomApiBasicAuth
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomApiBasicAuth {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomApiBasicAuth
|
|
22
|
+
*/
|
|
23
|
+
type: CustomApiBasicAuthTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomApiBasicAuth
|
|
28
|
+
*/
|
|
29
|
+
username: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomApiBasicAuth
|
|
34
|
+
*/
|
|
35
|
+
password: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const CustomApiBasicAuthTypeEnum: {
|
|
41
|
+
readonly Basic: "basic";
|
|
42
|
+
};
|
|
43
|
+
export type CustomApiBasicAuthTypeEnum = typeof CustomApiBasicAuthTypeEnum[keyof typeof CustomApiBasicAuthTypeEnum];
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the CustomApiBasicAuth interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfCustomApiBasicAuth(value: object): value is CustomApiBasicAuth;
|
|
48
|
+
export declare function CustomApiBasicAuthFromJSON(json: any): CustomApiBasicAuth;
|
|
49
|
+
export declare function CustomApiBasicAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiBasicAuth;
|
|
50
|
+
export declare function CustomApiBasicAuthToJSON(json: any): CustomApiBasicAuth;
|
|
51
|
+
export declare function CustomApiBasicAuthToJSONTyped(value?: CustomApiBasicAuth | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sarvam Agents API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: support@sarvam.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomApiBasicAuthTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCustomApiBasicAuth = instanceOfCustomApiBasicAuth;
|
|
18
|
+
exports.CustomApiBasicAuthFromJSON = CustomApiBasicAuthFromJSON;
|
|
19
|
+
exports.CustomApiBasicAuthFromJSONTyped = CustomApiBasicAuthFromJSONTyped;
|
|
20
|
+
exports.CustomApiBasicAuthToJSON = CustomApiBasicAuthToJSON;
|
|
21
|
+
exports.CustomApiBasicAuthToJSONTyped = CustomApiBasicAuthToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CustomApiBasicAuthTypeEnum = {
|
|
26
|
+
Basic: 'basic'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CustomApiBasicAuth interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfCustomApiBasicAuth(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function CustomApiBasicAuthFromJSON(json) {
|
|
41
|
+
return CustomApiBasicAuthFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CustomApiBasicAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'type': json['type'],
|
|
49
|
+
'username': json['username'],
|
|
50
|
+
'password': json['password'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function CustomApiBasicAuthToJSON(json) {
|
|
54
|
+
return CustomApiBasicAuthToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function CustomApiBasicAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'type': value['type'],
|
|
62
|
+
'username': value['username'],
|
|
63
|
+
'password': value['password'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 CustomApiBearerAuth
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomApiBearerAuth {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomApiBearerAuth
|
|
22
|
+
*/
|
|
23
|
+
type: CustomApiBearerAuthTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomApiBearerAuth
|
|
28
|
+
*/
|
|
29
|
+
token: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const CustomApiBearerAuthTypeEnum: {
|
|
35
|
+
readonly Bearer: "bearer";
|
|
36
|
+
};
|
|
37
|
+
export type CustomApiBearerAuthTypeEnum = typeof CustomApiBearerAuthTypeEnum[keyof typeof CustomApiBearerAuthTypeEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CustomApiBearerAuth interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfCustomApiBearerAuth(value: object): value is CustomApiBearerAuth;
|
|
42
|
+
export declare function CustomApiBearerAuthFromJSON(json: any): CustomApiBearerAuth;
|
|
43
|
+
export declare function CustomApiBearerAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiBearerAuth;
|
|
44
|
+
export declare function CustomApiBearerAuthToJSON(json: any): CustomApiBearerAuth;
|
|
45
|
+
export declare function CustomApiBearerAuthToJSONTyped(value?: CustomApiBearerAuth | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sarvam Agents API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: support@sarvam.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomApiBearerAuthTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfCustomApiBearerAuth = instanceOfCustomApiBearerAuth;
|
|
18
|
+
exports.CustomApiBearerAuthFromJSON = CustomApiBearerAuthFromJSON;
|
|
19
|
+
exports.CustomApiBearerAuthFromJSONTyped = CustomApiBearerAuthFromJSONTyped;
|
|
20
|
+
exports.CustomApiBearerAuthToJSON = CustomApiBearerAuthToJSON;
|
|
21
|
+
exports.CustomApiBearerAuthToJSONTyped = CustomApiBearerAuthToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CustomApiBearerAuthTypeEnum = {
|
|
26
|
+
Bearer: 'bearer'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CustomApiBearerAuth interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfCustomApiBearerAuth(value) {
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function CustomApiBearerAuthFromJSON(json) {
|
|
39
|
+
return CustomApiBearerAuthFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CustomApiBearerAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'type': json['type'],
|
|
47
|
+
'token': json['token'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function CustomApiBearerAuthToJSON(json) {
|
|
51
|
+
return CustomApiBearerAuthToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function CustomApiBearerAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'type': value['type'],
|
|
59
|
+
'token': value['token'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { Auth } from './Auth.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CustomApiCreate
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomApiCreate {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CustomApiCreate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CustomApiCreate
|
|
29
|
+
*/
|
|
30
|
+
description?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CustomApiCreate
|
|
35
|
+
*/
|
|
36
|
+
host: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Auth}
|
|
40
|
+
* @memberof CustomApiCreate
|
|
41
|
+
*/
|
|
42
|
+
auth: Auth;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof CustomApiCreate
|
|
47
|
+
*/
|
|
48
|
+
enabledForChats?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the CustomApiCreate interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfCustomApiCreate(value: object): value is CustomApiCreate;
|
|
54
|
+
export declare function CustomApiCreateFromJSON(json: any): CustomApiCreate;
|
|
55
|
+
export declare function CustomApiCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomApiCreate;
|
|
56
|
+
export declare function CustomApiCreateToJSON(json: any): CustomApiCreate;
|
|
57
|
+
export declare function CustomApiCreateToJSONTyped(value?: CustomApiCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sarvam Agents API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: support@sarvam.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCustomApiCreate = instanceOfCustomApiCreate;
|
|
17
|
+
exports.CustomApiCreateFromJSON = CustomApiCreateFromJSON;
|
|
18
|
+
exports.CustomApiCreateFromJSONTyped = CustomApiCreateFromJSONTyped;
|
|
19
|
+
exports.CustomApiCreateToJSON = CustomApiCreateToJSON;
|
|
20
|
+
exports.CustomApiCreateToJSONTyped = CustomApiCreateToJSONTyped;
|
|
21
|
+
const Auth_js_1 = require("./Auth.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CustomApiCreate interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCustomApiCreate(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('host' in value) || value['host'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('auth' in value) || value['auth'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function CustomApiCreateFromJSON(json) {
|
|
35
|
+
return CustomApiCreateFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function CustomApiCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
44
|
+
'host': json['host'],
|
|
45
|
+
'auth': (0, Auth_js_1.AuthFromJSON)(json['auth']),
|
|
46
|
+
'enabledForChats': json['enabledForChats'] == null ? undefined : json['enabledForChats'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function CustomApiCreateToJSON(json) {
|
|
50
|
+
return CustomApiCreateToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function CustomApiCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'description': value['description'],
|
|
59
|
+
'host': value['host'],
|
|
60
|
+
'auth': (0, Auth_js_1.AuthToJSON)(value['auth']),
|
|
61
|
+
'enabledForChats': value['enabledForChats'],
|
|
62
|
+
};
|
|
63
|
+
}
|