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
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { AgentSkillFilePin } from './AgentSkillFilePin.js';
|
|
17
|
+
import {
|
|
18
|
+
AgentSkillFilePinFromJSON,
|
|
19
|
+
AgentSkillFilePinFromJSONTyped,
|
|
20
|
+
AgentSkillFilePinToJSON,
|
|
21
|
+
AgentSkillFilePinToJSONTyped,
|
|
22
|
+
} from './AgentSkillFilePin.js';
|
|
23
|
+
import type { AgentFileContent } from './AgentFileContent.js';
|
|
24
|
+
import {
|
|
25
|
+
AgentFileContentFromJSON,
|
|
26
|
+
AgentFileContentFromJSONTyped,
|
|
27
|
+
AgentFileContentToJSON,
|
|
28
|
+
AgentFileContentToJSONTyped,
|
|
29
|
+
} from './AgentFileContent.js';
|
|
30
|
+
import type { AgentSubagentEntry } from './AgentSubagentEntry.js';
|
|
31
|
+
import {
|
|
32
|
+
AgentSubagentEntryFromJSON,
|
|
33
|
+
AgentSubagentEntryFromJSONTyped,
|
|
34
|
+
AgentSubagentEntryToJSON,
|
|
35
|
+
AgentSubagentEntryToJSONTyped,
|
|
36
|
+
} from './AgentSubagentEntry.js';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A saved version (``version >= 1``) or the draft (``version = -2``).
|
|
40
|
+
* @export
|
|
41
|
+
* @interface AgentContentsResource
|
|
42
|
+
*/
|
|
43
|
+
export interface AgentContentsResource {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof AgentContentsResource
|
|
48
|
+
*/
|
|
49
|
+
version: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<AgentFileContent>}
|
|
53
|
+
* @memberof AgentContentsResource
|
|
54
|
+
*/
|
|
55
|
+
files: Array<AgentFileContent>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof AgentContentsResource
|
|
60
|
+
*/
|
|
61
|
+
skillIds: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof AgentContentsResource
|
|
66
|
+
*/
|
|
67
|
+
appIds: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<string>}
|
|
71
|
+
* @memberof AgentContentsResource
|
|
72
|
+
*/
|
|
73
|
+
collectionIds: Array<string>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<AgentSubagentEntry>}
|
|
77
|
+
* @memberof AgentContentsResource
|
|
78
|
+
*/
|
|
79
|
+
subagents: Array<AgentSubagentEntry>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<AgentSkillFilePin>}
|
|
83
|
+
* @memberof AgentContentsResource
|
|
84
|
+
*/
|
|
85
|
+
skillFiles: Array<AgentSkillFilePin>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the AgentContentsResource interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfAgentContentsResource(value: object): value is AgentContentsResource {
|
|
92
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
93
|
+
if (!('files' in value) || value['files'] === undefined) return false;
|
|
94
|
+
if (!('skillIds' in value) || value['skillIds'] === undefined) return false;
|
|
95
|
+
if (!('appIds' in value) || value['appIds'] === undefined) return false;
|
|
96
|
+
if (!('collectionIds' in value) || value['collectionIds'] === undefined) return false;
|
|
97
|
+
if (!('subagents' in value) || value['subagents'] === undefined) return false;
|
|
98
|
+
if (!('skillFiles' in value) || value['skillFiles'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function AgentContentsResourceFromJSON(json: any): AgentContentsResource {
|
|
103
|
+
return AgentContentsResourceFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function AgentContentsResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentContentsResource {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'version': json['version'],
|
|
113
|
+
'files': ((json['files'] as Array<any>).map(AgentFileContentFromJSON)),
|
|
114
|
+
'skillIds': json['skillIds'],
|
|
115
|
+
'appIds': json['appIds'],
|
|
116
|
+
'collectionIds': json['collectionIds'],
|
|
117
|
+
'subagents': ((json['subagents'] as Array<any>).map(AgentSubagentEntryFromJSON)),
|
|
118
|
+
'skillFiles': ((json['skillFiles'] as Array<any>).map(AgentSkillFilePinFromJSON)),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function AgentContentsResourceToJSON(json: any): AgentContentsResource {
|
|
123
|
+
return AgentContentsResourceToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function AgentContentsResourceToJSONTyped(value?: AgentContentsResource | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
+
if (value == null) {
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'version': value['version'],
|
|
134
|
+
'files': ((value['files'] as Array<any>).map(AgentFileContentToJSON)),
|
|
135
|
+
'skillIds': value['skillIds'],
|
|
136
|
+
'appIds': value['appIds'],
|
|
137
|
+
'collectionIds': value['collectionIds'],
|
|
138
|
+
'subagents': ((value['subagents'] as Array<any>).map(AgentSubagentEntryToJSON)),
|
|
139
|
+
'skillFiles': ((value['skillFiles'] as Array<any>).map(AgentSkillFilePinToJSON)),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Body of ``POST /v2/agents/{id}/deploy``; omitted (or no body) deploys
|
|
18
|
+
* the newest saved version.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AgentDeploy
|
|
21
|
+
*/
|
|
22
|
+
export interface AgentDeploy {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof AgentDeploy
|
|
27
|
+
*/
|
|
28
|
+
version?: number | null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AgentDeploy interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfAgentDeploy(value: object): value is AgentDeploy {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AgentDeployFromJSON(json: any): AgentDeploy {
|
|
39
|
+
return AgentDeployFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AgentDeployFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDeploy {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AgentDeployToJSON(json: any): AgentDeploy {
|
|
53
|
+
return AgentDeployToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AgentDeployToJSONTyped(value?: AgentDeploy | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'version': value['version'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { AgentContentsResource } from './AgentContentsResource.js';
|
|
17
|
+
import {
|
|
18
|
+
AgentContentsResourceFromJSON,
|
|
19
|
+
AgentContentsResourceFromJSONTyped,
|
|
20
|
+
AgentContentsResourceToJSON,
|
|
21
|
+
AgentContentsResourceToJSONTyped,
|
|
22
|
+
} from './AgentContentsResource.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AgentDraftResource
|
|
28
|
+
*/
|
|
29
|
+
export interface AgentDraftResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {AgentContentsResource}
|
|
33
|
+
* @memberof AgentDraftResource
|
|
34
|
+
*/
|
|
35
|
+
contents: AgentContentsResource;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AgentDraftResource
|
|
40
|
+
*/
|
|
41
|
+
hasChanges: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AgentDraftResource
|
|
46
|
+
*/
|
|
47
|
+
basedOnVersion?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AgentDraftResource
|
|
52
|
+
*/
|
|
53
|
+
nextVersion?: number | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AgentDraftResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAgentDraftResource(value: object): value is AgentDraftResource {
|
|
60
|
+
if (!('contents' in value) || value['contents'] === undefined) return false;
|
|
61
|
+
if (!('hasChanges' in value) || value['hasChanges'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function AgentDraftResourceFromJSON(json: any): AgentDraftResource {
|
|
66
|
+
return AgentDraftResourceFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function AgentDraftResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDraftResource {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'contents': AgentContentsResourceFromJSON(json['contents']),
|
|
76
|
+
'hasChanges': json['hasChanges'],
|
|
77
|
+
'basedOnVersion': json['basedOnVersion'] == null ? undefined : json['basedOnVersion'],
|
|
78
|
+
'nextVersion': json['nextVersion'] == null ? undefined : json['nextVersion'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AgentDraftResourceToJSON(json: any): AgentDraftResource {
|
|
83
|
+
return AgentDraftResourceToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function AgentDraftResourceToJSONTyped(value?: AgentDraftResource | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'contents': AgentContentsResourceToJSON(value['contents']),
|
|
94
|
+
'hasChanges': value['hasChanges'],
|
|
95
|
+
'basedOnVersion': value['basedOnVersion'],
|
|
96
|
+
'nextVersion': value['nextVersion'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentFileContent
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentFileContent {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentFileContent
|
|
26
|
+
*/
|
|
27
|
+
path: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgentFileContent
|
|
32
|
+
*/
|
|
33
|
+
data: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AgentFileContent interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAgentFileContent(value: object): value is AgentFileContent {
|
|
40
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
41
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AgentFileContentFromJSON(json: any): AgentFileContent {
|
|
46
|
+
return AgentFileContentFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AgentFileContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentFileContent {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'path': json['path'],
|
|
56
|
+
'data': json['data'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AgentFileContentToJSON(json: any): AgentFileContent {
|
|
61
|
+
return AgentFileContentToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AgentFileContentToJSONTyped(value?: AgentFileContent | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'path': value['path'],
|
|
72
|
+
'data': value['data'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* One deploy, rollback, pause or resume; ``validTo`` null is what end
|
|
18
|
+
* users get now.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AgentHistoryResource
|
|
21
|
+
*/
|
|
22
|
+
export interface AgentHistoryResource {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AgentHistoryResource
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof AgentHistoryResource
|
|
33
|
+
*/
|
|
34
|
+
version: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AgentHistoryResource
|
|
39
|
+
*/
|
|
40
|
+
state: AgentHistoryResourceStateEnum;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Date}
|
|
44
|
+
* @memberof AgentHistoryResource
|
|
45
|
+
*/
|
|
46
|
+
validFrom: Date;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Date}
|
|
50
|
+
* @memberof AgentHistoryResource
|
|
51
|
+
*/
|
|
52
|
+
validTo?: Date | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AgentHistoryResource
|
|
57
|
+
*/
|
|
58
|
+
createdBy?: string | null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const AgentHistoryResourceStateEnum = {
|
|
66
|
+
Live: 'live',
|
|
67
|
+
Paused: 'paused'
|
|
68
|
+
} as const;
|
|
69
|
+
export type AgentHistoryResourceStateEnum = typeof AgentHistoryResourceStateEnum[keyof typeof AgentHistoryResourceStateEnum];
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the AgentHistoryResource interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfAgentHistoryResource(value: object): value is AgentHistoryResource {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
78
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
79
|
+
if (!('validFrom' in value) || value['validFrom'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function AgentHistoryResourceFromJSON(json: any): AgentHistoryResource {
|
|
84
|
+
return AgentHistoryResourceFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function AgentHistoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentHistoryResource {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'id': json['id'],
|
|
94
|
+
'version': json['version'],
|
|
95
|
+
'state': json['state'],
|
|
96
|
+
'validFrom': (new Date(json['validFrom'])),
|
|
97
|
+
'validTo': json['validTo'] == null ? undefined : (new Date(json['validTo'])),
|
|
98
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function AgentHistoryResourceToJSON(json: any): AgentHistoryResource {
|
|
103
|
+
return AgentHistoryResourceToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function AgentHistoryResourceToJSONTyped(value?: AgentHistoryResource | null, ignoreDiscriminator: boolean = false): any {
|
|
107
|
+
if (value == null) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'id': value['id'],
|
|
114
|
+
'version': value['version'],
|
|
115
|
+
'state': value['state'],
|
|
116
|
+
'validFrom': ((value['validFrom']).toISOString()),
|
|
117
|
+
'validTo': value['validTo'] == null ? undefined : ((value['validTo'] as any).toISOString()),
|
|
118
|
+
'createdBy': value['createdBy'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -152,6 +152,18 @@ export interface AgentResource {
|
|
|
152
152
|
* @memberof AgentResource
|
|
153
153
|
*/
|
|
154
154
|
deployedAt?: Date | null;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof AgentResource
|
|
159
|
+
*/
|
|
160
|
+
versionState?: AgentResourceVersionStateEnum | null;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {number}
|
|
164
|
+
* @memberof AgentResource
|
|
165
|
+
*/
|
|
166
|
+
liveVersion?: number | null;
|
|
155
167
|
/**
|
|
156
168
|
*
|
|
157
169
|
* @type {string}
|
|
@@ -247,6 +259,16 @@ export const AgentResourceDeployStateEnum = {
|
|
|
247
259
|
} as const;
|
|
248
260
|
export type AgentResourceDeployStateEnum = typeof AgentResourceDeployStateEnum[keyof typeof AgentResourceDeployStateEnum];
|
|
249
261
|
|
|
262
|
+
/**
|
|
263
|
+
* @export
|
|
264
|
+
*/
|
|
265
|
+
export const AgentResourceVersionStateEnum = {
|
|
266
|
+
Live: 'live',
|
|
267
|
+
Paused: 'paused',
|
|
268
|
+
NotLive: 'not_live'
|
|
269
|
+
} as const;
|
|
270
|
+
export type AgentResourceVersionStateEnum = typeof AgentResourceVersionStateEnum[keyof typeof AgentResourceVersionStateEnum];
|
|
271
|
+
|
|
250
272
|
|
|
251
273
|
/**
|
|
252
274
|
* Check if a given object implements the AgentResource interface.
|
|
@@ -287,6 +309,8 @@ export function AgentResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
287
309
|
'agentTypes': json['agentTypes'] == null ? undefined : json['agentTypes'],
|
|
288
310
|
'deployState': json['deployState'] == null ? undefined : json['deployState'],
|
|
289
311
|
'deployedAt': json['deployedAt'] == null ? undefined : (new Date(json['deployedAt'])),
|
|
312
|
+
'versionState': json['versionState'] == null ? undefined : json['versionState'],
|
|
313
|
+
'liveVersion': json['liveVersion'] == null ? undefined : json['liveVersion'],
|
|
290
314
|
'clonedFromAgentId': json['clonedFromAgentId'] == null ? undefined : json['clonedFromAgentId'],
|
|
291
315
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
292
316
|
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
@@ -327,6 +351,8 @@ export function AgentResourceToJSONTyped(value?: AgentResource | null, ignoreDis
|
|
|
327
351
|
'agentTypes': value['agentTypes'],
|
|
328
352
|
'deployState': value['deployState'],
|
|
329
353
|
'deployedAt': value['deployedAt'] == null ? undefined : ((value['deployedAt'] as any).toISOString()),
|
|
354
|
+
'versionState': value['versionState'],
|
|
355
|
+
'liveVersion': value['liveVersion'],
|
|
330
356
|
'clonedFromAgentId': value['clonedFromAgentId'],
|
|
331
357
|
'isDefault': value['isDefault'],
|
|
332
358
|
'settings': value['settings'],
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentSkillFilePin
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentSkillFilePin {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentSkillFilePin
|
|
26
|
+
*/
|
|
27
|
+
skillId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgentSkillFilePin
|
|
32
|
+
*/
|
|
33
|
+
path: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof AgentSkillFilePin
|
|
38
|
+
*/
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AgentSkillFilePin interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAgentSkillFilePin(value: object): value is AgentSkillFilePin {
|
|
46
|
+
if (!('skillId' in value) || value['skillId'] === undefined) return false;
|
|
47
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
48
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AgentSkillFilePinFromJSON(json: any): AgentSkillFilePin {
|
|
53
|
+
return AgentSkillFilePinFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AgentSkillFilePinFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSkillFilePin {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'skillId': json['skillId'],
|
|
63
|
+
'path': json['path'],
|
|
64
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AgentSkillFilePinToJSON(json: any): AgentSkillFilePin {
|
|
69
|
+
return AgentSkillFilePinToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AgentSkillFilePinToJSONTyped(value?: AgentSkillFilePin | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'skillId': value['skillId'],
|
|
80
|
+
'path': value['path'],
|
|
81
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|