sarvam-agents-client 0.3.2 → 0.4.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/dist/apis/AgentConversationsApi.d.ts +2 -2
- package/dist/apis/AgentConversationsApi.js +2 -2
- package/dist/apis/AgentsApi.d.ts +195 -5
- package/dist/apis/AgentsApi.js +478 -5
- package/dist/apis/ArtifactsApi.d.ts +8 -4
- package/dist/apis/ArtifactsApi.js +8 -4
- package/dist/apis/ConversationsApi.d.ts +2 -0
- package/dist/apis/ConversationsApi.js +6 -0
- package/dist/compose/deploy.d.ts +33 -7
- package/dist/compose/deploy.js +97 -19
- package/dist/compose/errors.d.ts +1 -1
- package/dist/compose/errors.js +1 -1
- package/dist/compose/index.d.ts +1 -1
- package/dist/compose/index.js +2 -1
- package/dist/compose/run.d.ts +5 -1
- package/dist/compose/run.js +9 -9
- package/dist/compose/settingsTransport.d.ts +9 -0
- package/dist/compose/settingsTransport.js +82 -8
- package/dist/compose/transport.d.ts +11 -0
- package/dist/compose/transport.js +3 -0
- package/dist/esm/apis/AgentConversationsApi.d.ts +2 -2
- package/dist/esm/apis/AgentConversationsApi.js +2 -2
- package/dist/esm/apis/AgentsApi.d.ts +195 -5
- package/dist/esm/apis/AgentsApi.js +478 -5
- package/dist/esm/apis/ArtifactsApi.d.ts +8 -4
- package/dist/esm/apis/ArtifactsApi.js +8 -4
- package/dist/esm/apis/ConversationsApi.d.ts +2 -0
- package/dist/esm/apis/ConversationsApi.js +6 -0
- package/dist/esm/compose/deploy.d.ts +33 -7
- package/dist/esm/compose/deploy.js +97 -20
- package/dist/esm/compose/errors.d.ts +1 -1
- package/dist/esm/compose/errors.js +1 -1
- package/dist/esm/compose/index.d.ts +1 -1
- package/dist/esm/compose/index.js +1 -1
- package/dist/esm/compose/run.d.ts +5 -1
- package/dist/esm/compose/run.js +9 -9
- package/dist/esm/compose/settingsTransport.d.ts +9 -0
- package/dist/esm/compose/settingsTransport.js +82 -8
- package/dist/esm/compose/transport.d.ts +11 -0
- package/dist/esm/compose/transport.js +2 -1
- package/dist/esm/models/AgentAttachmentDiff.d.ts +50 -0
- package/dist/esm/models/AgentAttachmentDiff.js +55 -0
- package/dist/esm/models/AgentContentsResource.d.ts +71 -0
- package/dist/esm/models/AgentContentsResource.js +70 -0
- package/dist/esm/models/AgentDeploy.d.ts +33 -0
- package/dist/esm/models/AgentDeploy.js +41 -0
- package/dist/esm/models/AgentDraftResource.d.ts +51 -0
- package/dist/esm/models/AgentDraftResource.js +52 -0
- package/dist/esm/models/AgentFileContent.d.ts +38 -0
- package/dist/esm/models/AgentFileContent.js +47 -0
- package/dist/esm/models/AgentHistoryResource.d.ts +71 -0
- package/dist/esm/models/AgentHistoryResource.js +66 -0
- package/dist/esm/models/AgentResource.d.ts +21 -0
- package/dist/esm/models/AgentResource.js +12 -0
- package/dist/esm/models/AgentSkillFilePin.d.ts +44 -0
- package/dist/esm/models/AgentSkillFilePin.js +51 -0
- package/dist/esm/models/AgentSubagentEntry.d.ts +38 -0
- package/dist/esm/models/AgentSubagentEntry.js +47 -0
- package/dist/esm/models/AgentVersionCreate.d.ts +32 -0
- package/dist/esm/models/AgentVersionCreate.js +41 -0
- package/dist/esm/models/AgentVersionDiffResource.d.ts +87 -0
- package/dist/esm/models/AgentVersionDiffResource.js +78 -0
- package/dist/esm/models/AgentVersionPick.d.ts +32 -0
- package/dist/esm/models/AgentVersionPick.js +43 -0
- package/dist/esm/models/AgentVersionResource.d.ts +56 -0
- package/dist/esm/models/AgentVersionResource.js +57 -0
- package/dist/esm/models/AppResource.d.ts +12 -0
- package/dist/esm/models/AppResource.js +4 -0
- package/dist/esm/models/ResponseInput.d.ts +6 -0
- package/dist/esm/models/ResponseInput.js +2 -0
- package/dist/esm/models/SkillUpdateResource.d.ts +38 -0
- package/dist/esm/models/SkillUpdateResource.js +47 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/models/AgentAttachmentDiff.d.ts +50 -0
- package/dist/models/AgentAttachmentDiff.js +62 -0
- package/dist/models/AgentContentsResource.d.ts +71 -0
- package/dist/models/AgentContentsResource.js +77 -0
- package/dist/models/AgentDeploy.d.ts +33 -0
- package/dist/models/AgentDeploy.js +48 -0
- package/dist/models/AgentDraftResource.d.ts +51 -0
- package/dist/models/AgentDraftResource.js +59 -0
- package/dist/models/AgentFileContent.d.ts +38 -0
- package/dist/models/AgentFileContent.js +54 -0
- package/dist/models/AgentHistoryResource.d.ts +71 -0
- package/dist/models/AgentHistoryResource.js +74 -0
- package/dist/models/AgentResource.d.ts +21 -0
- package/dist/models/AgentResource.js +13 -1
- package/dist/models/AgentSkillFilePin.d.ts +44 -0
- package/dist/models/AgentSkillFilePin.js +58 -0
- package/dist/models/AgentSubagentEntry.d.ts +38 -0
- package/dist/models/AgentSubagentEntry.js +54 -0
- package/dist/models/AgentVersionCreate.d.ts +32 -0
- package/dist/models/AgentVersionCreate.js +48 -0
- package/dist/models/AgentVersionDiffResource.d.ts +87 -0
- package/dist/models/AgentVersionDiffResource.js +85 -0
- package/dist/models/AgentVersionPick.d.ts +32 -0
- package/dist/models/AgentVersionPick.js +50 -0
- package/dist/models/AgentVersionResource.d.ts +56 -0
- package/dist/models/AgentVersionResource.js +64 -0
- package/dist/models/AppResource.d.ts +12 -0
- package/dist/models/AppResource.js +4 -0
- package/dist/models/ResponseInput.d.ts +6 -0
- package/dist/models/ResponseInput.js +2 -0
- package/dist/models/SkillUpdateResource.d.ts +38 -0
- package/dist/models/SkillUpdateResource.js +54 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/AgentConversationsApi.ts +2 -2
- package/src/apis/AgentsApi.ts +737 -6
- package/src/apis/ArtifactsApi.ts +8 -4
- package/src/apis/ConversationsApi.ts +10 -0
- package/src/compose/deploy.ts +113 -20
- package/src/compose/errors.ts +1 -1
- package/src/compose/index.ts +1 -1
- package/src/compose/run.ts +6 -2
- package/src/compose/settingsTransport.ts +81 -9
- package/src/compose/transport.ts +12 -0
- package/src/models/AgentAttachmentDiff.ts +93 -0
- package/src/models/AgentContentsResource.ts +142 -0
- package/src/models/AgentDeploy.ts +66 -0
- package/src/models/AgentDraftResource.ts +99 -0
- package/src/models/AgentFileContent.ts +75 -0
- package/src/models/AgentHistoryResource.ts +121 -0
- package/src/models/AgentResource.ts +26 -0
- package/src/models/AgentSkillFilePin.ts +84 -0
- package/src/models/AgentSubagentEntry.ts +75 -0
- package/src/models/AgentVersionCreate.ts +65 -0
- package/src/models/AgentVersionDiffResource.ts +154 -0
- package/src/models/AgentVersionPick.ts +66 -0
- package/src/models/AgentVersionResource.ts +101 -0
- package/src/models/AppResource.ts +16 -0
- package/src/models/ResponseInput.ts +8 -0
- package/src/models/SkillUpdateResource.ts +75 -0
- package/src/models/index.ts +13 -0
|
@@ -106,6 +106,18 @@ export interface AppResource {
|
|
|
106
106
|
* @memberof AppResource
|
|
107
107
|
*/
|
|
108
108
|
requiresConnection: boolean;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof AppResource
|
|
113
|
+
*/
|
|
114
|
+
accountLabel?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof AppResource
|
|
119
|
+
*/
|
|
120
|
+
serverUrl?: string | null;
|
|
109
121
|
/**
|
|
110
122
|
*
|
|
111
123
|
* @type {boolean}
|
|
@@ -81,6 +81,8 @@ export function AppResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
81
|
'highlight': json['highlight'] == null ? undefined : (json['highlight'].map(FieldHighlightFromJSON)),
|
|
82
82
|
'connected': json['connected'],
|
|
83
83
|
'requiresConnection': json['requiresConnection'],
|
|
84
|
+
'accountLabel': json['accountLabel'] == null ? undefined : json['accountLabel'],
|
|
85
|
+
'serverUrl': json['serverUrl'] == null ? undefined : json['serverUrl'],
|
|
84
86
|
'boundToAgent': json['boundToAgent'] == null ? undefined : json['boundToAgent'],
|
|
85
87
|
'iconUrl': json['iconUrl'] == null ? undefined : json['iconUrl'],
|
|
86
88
|
'category': json['category'] == null ? undefined : AppCategoryFromJSON(json['category']),
|
|
@@ -118,6 +120,8 @@ export function AppResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
118
120
|
'highlight': value['highlight'] == null ? undefined : (value['highlight'].map(FieldHighlightToJSON)),
|
|
119
121
|
'connected': value['connected'],
|
|
120
122
|
'requiresConnection': value['requiresConnection'],
|
|
123
|
+
'accountLabel': value['accountLabel'],
|
|
124
|
+
'serverUrl': value['serverUrl'],
|
|
121
125
|
'boundToAgent': value['boundToAgent'],
|
|
122
126
|
'iconUrl': value['iconUrl'],
|
|
123
127
|
'category': AppCategoryToJSON(value['category']),
|
|
@@ -49,6 +49,7 @@ export function ResponseInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'retryOf': json['retryOf'] == null ? undefined : json['retryOf'],
|
|
50
50
|
'surface': json['surface'] == null ? undefined : json['surface'],
|
|
51
51
|
'endUserId': json['endUserId'] == null ? undefined : json['endUserId'],
|
|
52
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
export function ResponseInputToJSON(json) {
|
|
@@ -68,5 +69,6 @@ export function ResponseInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
69
|
'retryOf': value['retryOf'],
|
|
69
70
|
'surface': value['surface'],
|
|
70
71
|
'endUserId': value['endUserId'],
|
|
72
|
+
'agentVersion': value['agentVersion'],
|
|
71
73
|
};
|
|
72
74
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 SkillUpdateResource
|
|
16
|
+
*/
|
|
17
|
+
export interface SkillUpdateResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SkillUpdateResource
|
|
22
|
+
*/
|
|
23
|
+
skillId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SkillUpdateResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SkillUpdateResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSkillUpdateResource(value: object): value is SkillUpdateResource;
|
|
35
|
+
export declare function SkillUpdateResourceFromJSON(json: any): SkillUpdateResource;
|
|
36
|
+
export declare function SkillUpdateResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillUpdateResource;
|
|
37
|
+
export declare function SkillUpdateResourceToJSON(json: any): SkillUpdateResource;
|
|
38
|
+
export declare function SkillUpdateResourceToJSONTyped(value?: SkillUpdateResource | 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 SkillUpdateResource interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSkillUpdateResource(value) {
|
|
18
|
+
if (!('skillId' in value) || value['skillId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function SkillUpdateResourceFromJSON(json) {
|
|
25
|
+
return SkillUpdateResourceFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function SkillUpdateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'skillId': json['skillId'],
|
|
33
|
+
'name': json['name'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function SkillUpdateResourceToJSON(json) {
|
|
37
|
+
return SkillUpdateResourceToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function SkillUpdateResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'skillId': value['skillId'],
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
export * from './AddMessageBody.js';
|
|
2
2
|
export * from './AddMessageBodyPartsInner.js';
|
|
3
|
+
export * from './AgentAttachmentDiff.js';
|
|
3
4
|
export * from './AgentChannelRef.js';
|
|
5
|
+
export * from './AgentContentsResource.js';
|
|
4
6
|
export * from './AgentConversationDetail.js';
|
|
5
7
|
export * from './AgentConversationView.js';
|
|
6
8
|
export * from './AgentCreate.js';
|
|
7
9
|
export * from './AgentCustomApiList.js';
|
|
10
|
+
export * from './AgentDeploy.js';
|
|
11
|
+
export * from './AgentDraftResource.js';
|
|
12
|
+
export * from './AgentFileContent.js';
|
|
13
|
+
export * from './AgentHistoryResource.js';
|
|
8
14
|
export * from './AgentResource.js';
|
|
9
15
|
export * from './AgentSearchChannel.js';
|
|
10
16
|
export * from './AgentSettingsResponse.js';
|
|
17
|
+
export * from './AgentSkillFilePin.js';
|
|
18
|
+
export * from './AgentSubagentEntry.js';
|
|
11
19
|
export * from './AgentTemplateResource.js';
|
|
12
20
|
export * from './AgentUpdate.js';
|
|
21
|
+
export * from './AgentVersionCreate.js';
|
|
22
|
+
export * from './AgentVersionDiffResource.js';
|
|
23
|
+
export * from './AgentVersionPick.js';
|
|
24
|
+
export * from './AgentVersionResource.js';
|
|
13
25
|
export * from './ApiKeyBody.js';
|
|
14
26
|
export * from './AppAccountView.js';
|
|
15
27
|
export * from './AppAccountsView.js';
|
|
@@ -146,6 +158,7 @@ export * from './SettingsIssueView.js';
|
|
|
146
158
|
export * from './SkillDetailView.js';
|
|
147
159
|
export * from './SkillResource.js';
|
|
148
160
|
export * from './SkillUpdate.js';
|
|
161
|
+
export * from './SkillUpdateResource.js';
|
|
149
162
|
export * from './SkillUploadDescriptor.js';
|
|
150
163
|
export * from './SkillUploadResponse.js';
|
|
151
164
|
export * from './SkillView.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -2,16 +2,28 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AddMessageBody.js';
|
|
4
4
|
export * from './AddMessageBodyPartsInner.js';
|
|
5
|
+
export * from './AgentAttachmentDiff.js';
|
|
5
6
|
export * from './AgentChannelRef.js';
|
|
7
|
+
export * from './AgentContentsResource.js';
|
|
6
8
|
export * from './AgentConversationDetail.js';
|
|
7
9
|
export * from './AgentConversationView.js';
|
|
8
10
|
export * from './AgentCreate.js';
|
|
9
11
|
export * from './AgentCustomApiList.js';
|
|
12
|
+
export * from './AgentDeploy.js';
|
|
13
|
+
export * from './AgentDraftResource.js';
|
|
14
|
+
export * from './AgentFileContent.js';
|
|
15
|
+
export * from './AgentHistoryResource.js';
|
|
10
16
|
export * from './AgentResource.js';
|
|
11
17
|
export * from './AgentSearchChannel.js';
|
|
12
18
|
export * from './AgentSettingsResponse.js';
|
|
19
|
+
export * from './AgentSkillFilePin.js';
|
|
20
|
+
export * from './AgentSubagentEntry.js';
|
|
13
21
|
export * from './AgentTemplateResource.js';
|
|
14
22
|
export * from './AgentUpdate.js';
|
|
23
|
+
export * from './AgentVersionCreate.js';
|
|
24
|
+
export * from './AgentVersionDiffResource.js';
|
|
25
|
+
export * from './AgentVersionPick.js';
|
|
26
|
+
export * from './AgentVersionResource.js';
|
|
15
27
|
export * from './ApiKeyBody.js';
|
|
16
28
|
export * from './AppAccountView.js';
|
|
17
29
|
export * from './AppAccountsView.js';
|
|
@@ -148,6 +160,7 @@ export * from './SettingsIssueView.js';
|
|
|
148
160
|
export * from './SkillDetailView.js';
|
|
149
161
|
export * from './SkillResource.js';
|
|
150
162
|
export * from './SkillUpdate.js';
|
|
163
|
+
export * from './SkillUpdateResource.js';
|
|
151
164
|
export * from './SkillUploadDescriptor.js';
|
|
152
165
|
export * from './SkillUploadResponse.js';
|
|
153
166
|
export * from './SkillView.js';
|
|
@@ -0,0 +1,50 @@
|
|
|
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 AgentAttachmentDiff
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentAttachmentDiff {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof AgentAttachmentDiff
|
|
22
|
+
*/
|
|
23
|
+
added: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AgentAttachmentDiff
|
|
28
|
+
*/
|
|
29
|
+
removed: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof AgentAttachmentDiff
|
|
34
|
+
*/
|
|
35
|
+
switchedOn: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof AgentAttachmentDiff
|
|
40
|
+
*/
|
|
41
|
+
switchedOff: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AgentAttachmentDiff interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAgentAttachmentDiff(value: object): value is AgentAttachmentDiff;
|
|
47
|
+
export declare function AgentAttachmentDiffFromJSON(json: any): AgentAttachmentDiff;
|
|
48
|
+
export declare function AgentAttachmentDiffFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAttachmentDiff;
|
|
49
|
+
export declare function AgentAttachmentDiffToJSON(json: any): AgentAttachmentDiff;
|
|
50
|
+
export declare function AgentAttachmentDiffToJSONTyped(value?: AgentAttachmentDiff | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfAgentAttachmentDiff = instanceOfAgentAttachmentDiff;
|
|
17
|
+
exports.AgentAttachmentDiffFromJSON = AgentAttachmentDiffFromJSON;
|
|
18
|
+
exports.AgentAttachmentDiffFromJSONTyped = AgentAttachmentDiffFromJSONTyped;
|
|
19
|
+
exports.AgentAttachmentDiffToJSON = AgentAttachmentDiffToJSON;
|
|
20
|
+
exports.AgentAttachmentDiffToJSONTyped = AgentAttachmentDiffToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentAttachmentDiff interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentAttachmentDiff(value) {
|
|
25
|
+
if (!('added' in value) || value['added'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('removed' in value) || value['removed'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('switchedOn' in value) || value['switchedOn'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('switchedOff' in value) || value['switchedOff'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AgentAttachmentDiffFromJSON(json) {
|
|
36
|
+
return AgentAttachmentDiffFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AgentAttachmentDiffFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'added': json['added'],
|
|
44
|
+
'removed': json['removed'],
|
|
45
|
+
'switchedOn': json['switchedOn'],
|
|
46
|
+
'switchedOff': json['switchedOff'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AgentAttachmentDiffToJSON(json) {
|
|
50
|
+
return AgentAttachmentDiffToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AgentAttachmentDiffToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'added': value['added'],
|
|
58
|
+
'removed': value['removed'],
|
|
59
|
+
'switchedOn': value['switchedOn'],
|
|
60
|
+
'switchedOff': value['switchedOff'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { AgentSkillFilePin } from './AgentSkillFilePin.js';
|
|
13
|
+
import type { AgentFileContent } from './AgentFileContent.js';
|
|
14
|
+
import type { AgentSubagentEntry } from './AgentSubagentEntry.js';
|
|
15
|
+
/**
|
|
16
|
+
* A saved version (``version >= 1``) or the draft (``version = -2``).
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AgentContentsResource
|
|
19
|
+
*/
|
|
20
|
+
export interface AgentContentsResource {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof AgentContentsResource
|
|
25
|
+
*/
|
|
26
|
+
version: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<AgentFileContent>}
|
|
30
|
+
* @memberof AgentContentsResource
|
|
31
|
+
*/
|
|
32
|
+
files: Array<AgentFileContent>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<string>}
|
|
36
|
+
* @memberof AgentContentsResource
|
|
37
|
+
*/
|
|
38
|
+
skillIds: Array<string>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<string>}
|
|
42
|
+
* @memberof AgentContentsResource
|
|
43
|
+
*/
|
|
44
|
+
appIds: Array<string>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<string>}
|
|
48
|
+
* @memberof AgentContentsResource
|
|
49
|
+
*/
|
|
50
|
+
collectionIds: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<AgentSubagentEntry>}
|
|
54
|
+
* @memberof AgentContentsResource
|
|
55
|
+
*/
|
|
56
|
+
subagents: Array<AgentSubagentEntry>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<AgentSkillFilePin>}
|
|
60
|
+
* @memberof AgentContentsResource
|
|
61
|
+
*/
|
|
62
|
+
skillFiles: Array<AgentSkillFilePin>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the AgentContentsResource interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfAgentContentsResource(value: object): value is AgentContentsResource;
|
|
68
|
+
export declare function AgentContentsResourceFromJSON(json: any): AgentContentsResource;
|
|
69
|
+
export declare function AgentContentsResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentContentsResource;
|
|
70
|
+
export declare function AgentContentsResourceToJSON(json: any): AgentContentsResource;
|
|
71
|
+
export declare function AgentContentsResourceToJSONTyped(value?: AgentContentsResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.instanceOfAgentContentsResource = instanceOfAgentContentsResource;
|
|
17
|
+
exports.AgentContentsResourceFromJSON = AgentContentsResourceFromJSON;
|
|
18
|
+
exports.AgentContentsResourceFromJSONTyped = AgentContentsResourceFromJSONTyped;
|
|
19
|
+
exports.AgentContentsResourceToJSON = AgentContentsResourceToJSON;
|
|
20
|
+
exports.AgentContentsResourceToJSONTyped = AgentContentsResourceToJSONTyped;
|
|
21
|
+
const AgentSkillFilePin_js_1 = require("./AgentSkillFilePin.js");
|
|
22
|
+
const AgentFileContent_js_1 = require("./AgentFileContent.js");
|
|
23
|
+
const AgentSubagentEntry_js_1 = require("./AgentSubagentEntry.js");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AgentContentsResource interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfAgentContentsResource(value) {
|
|
28
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('skillIds' in value) || value['skillIds'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('appIds' in value) || value['appIds'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('collectionIds' in value) || value['collectionIds'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('subagents' in value) || value['subagents'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('skillFiles' in value) || value['skillFiles'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function AgentContentsResourceFromJSON(json) {
|
|
45
|
+
return AgentContentsResourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AgentContentsResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'version': json['version'],
|
|
53
|
+
'files': (json['files'].map(AgentFileContent_js_1.AgentFileContentFromJSON)),
|
|
54
|
+
'skillIds': json['skillIds'],
|
|
55
|
+
'appIds': json['appIds'],
|
|
56
|
+
'collectionIds': json['collectionIds'],
|
|
57
|
+
'subagents': (json['subagents'].map(AgentSubagentEntry_js_1.AgentSubagentEntryFromJSON)),
|
|
58
|
+
'skillFiles': (json['skillFiles'].map(AgentSkillFilePin_js_1.AgentSkillFilePinFromJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function AgentContentsResourceToJSON(json) {
|
|
62
|
+
return AgentContentsResourceToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function AgentContentsResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'version': value['version'],
|
|
70
|
+
'files': (value['files'].map(AgentFileContent_js_1.AgentFileContentToJSON)),
|
|
71
|
+
'skillIds': value['skillIds'],
|
|
72
|
+
'appIds': value['appIds'],
|
|
73
|
+
'collectionIds': value['collectionIds'],
|
|
74
|
+
'subagents': (value['subagents'].map(AgentSubagentEntry_js_1.AgentSubagentEntryToJSON)),
|
|
75
|
+
'skillFiles': (value['skillFiles'].map(AgentSkillFilePin_js_1.AgentSkillFilePinToJSON)),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
* Body of ``POST /v2/agents/{id}/deploy``; omitted (or no body) deploys
|
|
14
|
+
* the newest saved version.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentDeploy
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentDeploy {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AgentDeploy
|
|
23
|
+
*/
|
|
24
|
+
version?: number | null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AgentDeploy interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAgentDeploy(value: object): value is AgentDeploy;
|
|
30
|
+
export declare function AgentDeployFromJSON(json: any): AgentDeploy;
|
|
31
|
+
export declare function AgentDeployFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDeploy;
|
|
32
|
+
export declare function AgentDeployToJSON(json: any): AgentDeploy;
|
|
33
|
+
export declare function AgentDeployToJSONTyped(value?: AgentDeploy | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfAgentDeploy = instanceOfAgentDeploy;
|
|
17
|
+
exports.AgentDeployFromJSON = AgentDeployFromJSON;
|
|
18
|
+
exports.AgentDeployFromJSONTyped = AgentDeployFromJSONTyped;
|
|
19
|
+
exports.AgentDeployToJSON = AgentDeployToJSON;
|
|
20
|
+
exports.AgentDeployToJSONTyped = AgentDeployToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentDeploy interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentDeploy(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AgentDeployFromJSON(json) {
|
|
28
|
+
return AgentDeployFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AgentDeployFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function AgentDeployToJSON(json) {
|
|
39
|
+
return AgentDeployToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AgentDeployToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'version': value['version'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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
|
+
import type { AgentContentsResource } from './AgentContentsResource.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentDraftResource
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentDraftResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AgentContentsResource}
|
|
22
|
+
* @memberof AgentDraftResource
|
|
23
|
+
*/
|
|
24
|
+
contents: AgentContentsResource;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof AgentDraftResource
|
|
29
|
+
*/
|
|
30
|
+
hasChanges: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AgentDraftResource
|
|
35
|
+
*/
|
|
36
|
+
basedOnVersion?: number | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AgentDraftResource
|
|
41
|
+
*/
|
|
42
|
+
nextVersion?: number | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AgentDraftResource interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAgentDraftResource(value: object): value is AgentDraftResource;
|
|
48
|
+
export declare function AgentDraftResourceFromJSON(json: any): AgentDraftResource;
|
|
49
|
+
export declare function AgentDraftResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDraftResource;
|
|
50
|
+
export declare function AgentDraftResourceToJSON(json: any): AgentDraftResource;
|
|
51
|
+
export declare function AgentDraftResourceToJSONTyped(value?: AgentDraftResource | null, ignoreDiscriminator?: boolean): any;
|