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,68 @@
|
|
|
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 AppResourceView
|
|
16
|
+
*/
|
|
17
|
+
export interface AppResourceView {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AppResourceView
|
|
22
|
+
*/
|
|
23
|
+
displayName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AppResourceView
|
|
28
|
+
*/
|
|
29
|
+
namespace: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AppResourceView
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AppResourceView
|
|
40
|
+
*/
|
|
41
|
+
_private: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AppResourceView
|
|
46
|
+
*/
|
|
47
|
+
resourceId: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AppResourceView
|
|
52
|
+
*/
|
|
53
|
+
ownerId: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AppResourceView
|
|
58
|
+
*/
|
|
59
|
+
accountId: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the AppResourceView interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfAppResourceView(value: object): value is AppResourceView;
|
|
65
|
+
export declare function AppResourceViewFromJSON(json: any): AppResourceView;
|
|
66
|
+
export declare function AppResourceViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppResourceView;
|
|
67
|
+
export declare function AppResourceViewToJSON(json: any): AppResourceView;
|
|
68
|
+
export declare function AppResourceViewToJSONTyped(value?: AppResourceView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 AppResourceView interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAppResourceView(value) {
|
|
18
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('namespace' in value) || value['namespace'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('_private' in value) || value['_private'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('resourceId' in value) || value['resourceId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function AppResourceViewFromJSON(json) {
|
|
35
|
+
return AppResourceViewFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AppResourceViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'displayName': json['displayName'],
|
|
43
|
+
'namespace': json['namespace'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'_private': json['private'],
|
|
46
|
+
'resourceId': json['resourceId'],
|
|
47
|
+
'ownerId': json['ownerId'],
|
|
48
|
+
'accountId': json['accountId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function AppResourceViewToJSON(json) {
|
|
52
|
+
return AppResourceViewToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function AppResourceViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'displayName': value['displayName'],
|
|
60
|
+
'namespace': value['namespace'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'private': value['_private'],
|
|
63
|
+
'resourceId': value['resourceId'],
|
|
64
|
+
'ownerId': value['ownerId'],
|
|
65
|
+
'accountId': value['accountId'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { AppResourceView } from './AppResourceView.js';
|
|
13
|
+
/**
|
|
14
|
+
* ``GET /v1/apps/{integration_id}/resources`` — resources in the caller's accounts.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AppResourcesView
|
|
17
|
+
*/
|
|
18
|
+
export interface AppResourcesView {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AppResourcesView
|
|
23
|
+
*/
|
|
24
|
+
connection: AppResourcesViewConnectionEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<AppResourceView>}
|
|
28
|
+
* @memberof AppResourcesView
|
|
29
|
+
*/
|
|
30
|
+
resources?: Array<AppResourceView>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof AppResourcesView
|
|
35
|
+
*/
|
|
36
|
+
truncated?: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const AppResourcesViewConnectionEnum: {
|
|
42
|
+
readonly Connected: "connected";
|
|
43
|
+
readonly NotConnected: "not_connected";
|
|
44
|
+
readonly ReconnectRequired: "reconnect_required";
|
|
45
|
+
};
|
|
46
|
+
export type AppResourcesViewConnectionEnum = typeof AppResourcesViewConnectionEnum[keyof typeof AppResourcesViewConnectionEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AppResourcesView interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAppResourcesView(value: object): value is AppResourcesView;
|
|
51
|
+
export declare function AppResourcesViewFromJSON(json: any): AppResourcesView;
|
|
52
|
+
export declare function AppResourcesViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppResourcesView;
|
|
53
|
+
export declare function AppResourcesViewToJSON(json: any): AppResourcesView;
|
|
54
|
+
export declare function AppResourcesViewToJSONTyped(value?: AppResourcesView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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 { AppResourceViewFromJSON, AppResourceViewToJSON, } from './AppResourceView.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const AppResourcesViewConnectionEnum = {
|
|
19
|
+
Connected: 'connected',
|
|
20
|
+
NotConnected: 'not_connected',
|
|
21
|
+
ReconnectRequired: 'reconnect_required'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AppResourcesView interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfAppResourcesView(value) {
|
|
27
|
+
if (!('connection' in value) || value['connection'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function AppResourcesViewFromJSON(json) {
|
|
32
|
+
return AppResourcesViewFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function AppResourcesViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'connection': json['connection'],
|
|
40
|
+
'resources': json['resources'] == null ? undefined : (json['resources'].map(AppResourceViewFromJSON)),
|
|
41
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function AppResourcesViewToJSON(json) {
|
|
45
|
+
return AppResourcesViewToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function AppResourcesViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'connection': value['connection'],
|
|
53
|
+
'resources': value['resources'] == null ? undefined : (value['resources'].map(AppResourceViewToJSON)),
|
|
54
|
+
'truncated': value['truncated'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -40,6 +40,20 @@ export interface AppToolsResponse {
|
|
|
40
40
|
* @memberof AppToolsResponse
|
|
41
41
|
*/
|
|
42
42
|
tools: Array<AppToolView>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {{ [key: string]: any; }}
|
|
46
|
+
* @memberof AppToolsResponse
|
|
47
|
+
*/
|
|
48
|
+
security?: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
} | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AppToolsResponse
|
|
55
|
+
*/
|
|
56
|
+
trust?: string | null;
|
|
43
57
|
}
|
|
44
58
|
/**
|
|
45
59
|
* @export
|
|
@@ -46,6 +46,8 @@ export function AppToolsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'name': json['name'],
|
|
47
47
|
'authStatus': json['authStatus'],
|
|
48
48
|
'tools': (json['tools'].map(AppToolViewFromJSON)),
|
|
49
|
+
'security': json['security'] == null ? undefined : json['security'],
|
|
50
|
+
'trust': json['trust'] == null ? undefined : json['trust'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
export function AppToolsResponseToJSON(json) {
|
|
@@ -60,5 +62,7 @@ export function AppToolsResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
60
62
|
'name': value['name'],
|
|
61
63
|
'authStatus': value['authStatus'],
|
|
62
64
|
'tools': (value['tools'].map(AppToolViewToJSON)),
|
|
65
|
+
'security': value['security'],
|
|
66
|
+
'trust': value['trust'],
|
|
63
67
|
};
|
|
64
68
|
}
|
|
@@ -82,6 +82,48 @@ export interface AppView {
|
|
|
82
82
|
* @memberof AppView
|
|
83
83
|
*/
|
|
84
84
|
authType: AppViewAuthTypeEnum;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof AppView
|
|
89
|
+
*/
|
|
90
|
+
setupRequired?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof AppView
|
|
95
|
+
*/
|
|
96
|
+
canEditSetup?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof AppView
|
|
101
|
+
*/
|
|
102
|
+
orgWide?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof AppView
|
|
107
|
+
*/
|
|
108
|
+
orgName?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof AppView
|
|
113
|
+
*/
|
|
114
|
+
alreadyUsingUrl?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof AppView
|
|
119
|
+
*/
|
|
120
|
+
isManagedConnector?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AppView
|
|
125
|
+
*/
|
|
126
|
+
connectorMode?: string | null;
|
|
85
127
|
}
|
|
86
128
|
/**
|
|
87
129
|
* @export
|
|
@@ -65,6 +65,13 @@ export function AppViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'iconUrl': json['iconUrl'],
|
|
66
66
|
'category': json['category'] == null ? undefined : AppCategoryFromJSON(json['category']),
|
|
67
67
|
'authType': json['authType'],
|
|
68
|
+
'setupRequired': json['setupRequired'] == null ? undefined : json['setupRequired'],
|
|
69
|
+
'canEditSetup': json['canEditSetup'] == null ? undefined : json['canEditSetup'],
|
|
70
|
+
'orgWide': json['orgWide'] == null ? undefined : json['orgWide'],
|
|
71
|
+
'orgName': json['orgName'] == null ? undefined : json['orgName'],
|
|
72
|
+
'alreadyUsingUrl': json['alreadyUsingUrl'] == null ? undefined : json['alreadyUsingUrl'],
|
|
73
|
+
'isManagedConnector': json['isManagedConnector'] == null ? undefined : json['isManagedConnector'],
|
|
74
|
+
'connectorMode': json['connectorMode'] == null ? undefined : json['connectorMode'],
|
|
68
75
|
};
|
|
69
76
|
}
|
|
70
77
|
export function AppViewToJSON(json) {
|
|
@@ -86,5 +93,12 @@ export function AppViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
93
|
'iconUrl': value['iconUrl'],
|
|
87
94
|
'category': AppCategoryToJSON(value['category']),
|
|
88
95
|
'authType': value['authType'],
|
|
96
|
+
'setupRequired': value['setupRequired'],
|
|
97
|
+
'canEditSetup': value['canEditSetup'],
|
|
98
|
+
'orgWide': value['orgWide'],
|
|
99
|
+
'orgName': value['orgName'],
|
|
100
|
+
'alreadyUsingUrl': value['alreadyUsingUrl'],
|
|
101
|
+
'isManagedConnector': value['isManagedConnector'],
|
|
102
|
+
'connectorMode': value['connectorMode'],
|
|
89
103
|
};
|
|
90
104
|
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 ArtifactVersionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ArtifactVersionResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ArtifactVersionResponse
|
|
22
|
+
*/
|
|
23
|
+
artifactId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ArtifactVersionResponse
|
|
28
|
+
*/
|
|
29
|
+
originalName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ArtifactVersionResponse
|
|
34
|
+
*/
|
|
35
|
+
mimeType: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ArtifactVersionResponse
|
|
40
|
+
*/
|
|
41
|
+
sizeBytes: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ArtifactVersionResponse
|
|
46
|
+
*/
|
|
47
|
+
origin: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ArtifactVersionResponse
|
|
52
|
+
*/
|
|
53
|
+
kind?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof ArtifactVersionResponse
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ArtifactVersionResponse
|
|
64
|
+
*/
|
|
65
|
+
version?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ArtifactVersionResponse
|
|
70
|
+
*/
|
|
71
|
+
htmlStage?: ArtifactVersionResponseHtmlStageEnum | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof ArtifactVersionResponse
|
|
76
|
+
*/
|
|
77
|
+
created: boolean;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const ArtifactVersionResponseHtmlStageEnum: {
|
|
83
|
+
readonly Deck: "deck";
|
|
84
|
+
readonly Doc: "doc";
|
|
85
|
+
};
|
|
86
|
+
export type ArtifactVersionResponseHtmlStageEnum = typeof ArtifactVersionResponseHtmlStageEnum[keyof typeof ArtifactVersionResponseHtmlStageEnum];
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the ArtifactVersionResponse interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfArtifactVersionResponse(value: object): value is ArtifactVersionResponse;
|
|
91
|
+
export declare function ArtifactVersionResponseFromJSON(json: any): ArtifactVersionResponse;
|
|
92
|
+
export declare function ArtifactVersionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ArtifactVersionResponse;
|
|
93
|
+
export declare function ArtifactVersionResponseToJSON(json: any): ArtifactVersionResponse;
|
|
94
|
+
export declare function ArtifactVersionResponseToJSONTyped(value?: ArtifactVersionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ArtifactVersionResponseHtmlStageEnum = {
|
|
18
|
+
Deck: 'deck',
|
|
19
|
+
Doc: 'doc'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ArtifactVersionResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfArtifactVersionResponse(value) {
|
|
25
|
+
if (!('artifactId' in value) || value['artifactId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('originalName' in value) || value['originalName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
export function ArtifactVersionResponseFromJSON(json) {
|
|
42
|
+
return ArtifactVersionResponseFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ArtifactVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'artifactId': json['artifactId'],
|
|
50
|
+
'originalName': json['originalName'],
|
|
51
|
+
'mimeType': json['mimeType'],
|
|
52
|
+
'sizeBytes': json['sizeBytes'],
|
|
53
|
+
'origin': json['origin'],
|
|
54
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
55
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
56
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
57
|
+
'htmlStage': json['htmlStage'] == null ? undefined : json['htmlStage'],
|
|
58
|
+
'created': json['created'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function ArtifactVersionResponseToJSON(json) {
|
|
62
|
+
return ArtifactVersionResponseToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
export function ArtifactVersionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'artifactId': value['artifactId'],
|
|
70
|
+
'originalName': value['originalName'],
|
|
71
|
+
'mimeType': value['mimeType'],
|
|
72
|
+
'sizeBytes': value['sizeBytes'],
|
|
73
|
+
'origin': value['origin'],
|
|
74
|
+
'kind': value['kind'],
|
|
75
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
76
|
+
'version': value['version'],
|
|
77
|
+
'htmlStage': value['htmlStage'],
|
|
78
|
+
'created': value['created'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -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 AttachedAgent
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachedAgent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AttachedAgent
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AttachedAgent
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AttachedAgent
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AttachedAgent interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAttachedAgent(value: object): value is AttachedAgent;
|
|
41
|
+
export declare function AttachedAgentFromJSON(json: any): AttachedAgent;
|
|
42
|
+
export declare function AttachedAgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachedAgent;
|
|
43
|
+
export declare function AttachedAgentToJSON(json: any): AttachedAgent;
|
|
44
|
+
export declare function AttachedAgentToJSONTyped(value?: AttachedAgent | 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 AttachedAgent interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAttachedAgent(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 AttachedAgentFromJSON(json) {
|
|
25
|
+
return AttachedAgentFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function AttachedAgentFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'id': json['id'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AttachedAgentToJSON(json) {
|
|
38
|
+
return AttachedAgentToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AttachedAgentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': value['id'],
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'description': value['description'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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 Auth
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export type Auth = {
|
|
21
|
+
type: 'basic';
|
|
22
|
+
} & CustomApiBasicAuth | {
|
|
23
|
+
type: 'bearer';
|
|
24
|
+
} & CustomApiBearerAuth | {
|
|
25
|
+
type: 'headers';
|
|
26
|
+
} & CustomApiHeadersAuth;
|
|
27
|
+
export declare function AuthFromJSON(json: any): Auth;
|
|
28
|
+
export declare function AuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): Auth;
|
|
29
|
+
export declare function AuthToJSON(json: any): any;
|
|
30
|
+
export declare function AuthToJSONTyped(value?: Auth | null, ignoreDiscriminator?: boolean): any;
|