sarvam-agents-client 0.3.2 → 0.4.1
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 +36 -23
- 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/client.d.ts +16 -0
- package/dist/client.js +21 -0
- package/dist/compose/deploy.d.ts +37 -7
- package/dist/compose/deploy.js +105 -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 +14 -0
- package/dist/compose/settingsTransport.js +151 -14
- package/dist/compose/transport.d.ts +14 -0
- package/dist/compose/transport.js +3 -0
- package/dist/compose/webhook.d.ts +18 -3
- package/dist/compose/webhook.js +59 -10
- package/dist/compose/webhookSecrets.d.ts +64 -0
- package/dist/compose/webhookSecrets.js +255 -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/client.d.ts +16 -0
- package/dist/esm/client.js +17 -0
- package/dist/esm/compose/deploy.d.ts +37 -7
- package/dist/esm/compose/deploy.js +105 -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 +14 -0
- package/dist/esm/compose/settingsTransport.js +151 -14
- package/dist/esm/compose/transport.d.ts +14 -0
- package/dist/esm/compose/transport.js +2 -1
- package/dist/esm/compose/webhook.d.ts +18 -3
- package/dist/esm/compose/webhook.js +55 -9
- package/dist/esm/compose/webhookSecrets.d.ts +64 -0
- package/dist/esm/compose/webhookSecrets.js +250 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +3 -0
- 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/index.d.ts +3 -0
- package/dist/index.js +6 -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/client.ts +21 -0
- package/src/compose/deploy.ts +126 -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 +154 -16
- package/src/compose/transport.ts +15 -0
- package/src/compose/webhook.ts +64 -11
- package/src/compose/webhookSecrets.ts +257 -0
- package/src/index.ts +4 -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,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
|
+
|
|
@@ -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 AgentSubagentEntry
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentSubagentEntry {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentSubagentEntry
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof AgentSubagentEntry
|
|
32
|
+
*/
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AgentSubagentEntry interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAgentSubagentEntry(value: object): value is AgentSubagentEntry {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AgentSubagentEntryFromJSON(json: any): AgentSubagentEntry {
|
|
46
|
+
return AgentSubagentEntryFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AgentSubagentEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSubagentEntry {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'enabled': json['enabled'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AgentSubagentEntryToJSON(json: any): AgentSubagentEntry {
|
|
61
|
+
return AgentSubagentEntryToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AgentSubagentEntryToJSONTyped(value?: AgentSubagentEntry | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'enabled': value['enabled'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 AgentVersionCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentVersionCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentVersionCreate
|
|
26
|
+
*/
|
|
27
|
+
note?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AgentVersionCreate interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAgentVersionCreate(value: object): value is AgentVersionCreate {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AgentVersionCreateFromJSON(json: any): AgentVersionCreate {
|
|
38
|
+
return AgentVersionCreateFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AgentVersionCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionCreate {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'note': json['note'] == null ? undefined : json['note'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AgentVersionCreateToJSON(json: any): AgentVersionCreate {
|
|
52
|
+
return AgentVersionCreateToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AgentVersionCreateToJSONTyped(value?: AgentVersionCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'note': value['note'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
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 { AgentAttachmentDiff } from './AgentAttachmentDiff.js';
|
|
17
|
+
import {
|
|
18
|
+
AgentAttachmentDiffFromJSON,
|
|
19
|
+
AgentAttachmentDiffFromJSONTyped,
|
|
20
|
+
AgentAttachmentDiffToJSON,
|
|
21
|
+
AgentAttachmentDiffToJSONTyped,
|
|
22
|
+
} from './AgentAttachmentDiff.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* What ``toVersion`` changes relative to ``fromVersion`` (-2 = draft).
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AgentVersionDiffResource
|
|
28
|
+
*/
|
|
29
|
+
export interface AgentVersionDiffResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AgentVersionDiffResource
|
|
34
|
+
*/
|
|
35
|
+
fromVersion?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AgentVersionDiffResource
|
|
40
|
+
*/
|
|
41
|
+
toVersion: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof AgentVersionDiffResource
|
|
46
|
+
*/
|
|
47
|
+
filesAdded: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof AgentVersionDiffResource
|
|
52
|
+
*/
|
|
53
|
+
filesRemoved: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof AgentVersionDiffResource
|
|
58
|
+
*/
|
|
59
|
+
filesChanged: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {AgentAttachmentDiff}
|
|
63
|
+
* @memberof AgentVersionDiffResource
|
|
64
|
+
*/
|
|
65
|
+
skills: AgentAttachmentDiff;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {AgentAttachmentDiff}
|
|
69
|
+
* @memberof AgentVersionDiffResource
|
|
70
|
+
*/
|
|
71
|
+
apps: AgentAttachmentDiff;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {AgentAttachmentDiff}
|
|
75
|
+
* @memberof AgentVersionDiffResource
|
|
76
|
+
*/
|
|
77
|
+
collections: AgentAttachmentDiff;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {AgentAttachmentDiff}
|
|
81
|
+
* @memberof AgentVersionDiffResource
|
|
82
|
+
*/
|
|
83
|
+
subagents: AgentAttachmentDiff;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof AgentVersionDiffResource
|
|
88
|
+
*/
|
|
89
|
+
skillsUpdated: Array<string>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the AgentVersionDiffResource interface.
|
|
94
|
+
*/
|
|
95
|
+
export function instanceOfAgentVersionDiffResource(value: object): value is AgentVersionDiffResource {
|
|
96
|
+
if (!('toVersion' in value) || value['toVersion'] === undefined) return false;
|
|
97
|
+
if (!('filesAdded' in value) || value['filesAdded'] === undefined) return false;
|
|
98
|
+
if (!('filesRemoved' in value) || value['filesRemoved'] === undefined) return false;
|
|
99
|
+
if (!('filesChanged' in value) || value['filesChanged'] === undefined) return false;
|
|
100
|
+
if (!('skills' in value) || value['skills'] === undefined) return false;
|
|
101
|
+
if (!('apps' in value) || value['apps'] === undefined) return false;
|
|
102
|
+
if (!('collections' in value) || value['collections'] === undefined) return false;
|
|
103
|
+
if (!('subagents' in value) || value['subagents'] === undefined) return false;
|
|
104
|
+
if (!('skillsUpdated' in value) || value['skillsUpdated'] === undefined) return false;
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function AgentVersionDiffResourceFromJSON(json: any): AgentVersionDiffResource {
|
|
109
|
+
return AgentVersionDiffResourceFromJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function AgentVersionDiffResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionDiffResource {
|
|
113
|
+
if (json == null) {
|
|
114
|
+
return json;
|
|
115
|
+
}
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'fromVersion': json['fromVersion'] == null ? undefined : json['fromVersion'],
|
|
119
|
+
'toVersion': json['toVersion'],
|
|
120
|
+
'filesAdded': json['filesAdded'],
|
|
121
|
+
'filesRemoved': json['filesRemoved'],
|
|
122
|
+
'filesChanged': json['filesChanged'],
|
|
123
|
+
'skills': AgentAttachmentDiffFromJSON(json['skills']),
|
|
124
|
+
'apps': AgentAttachmentDiffFromJSON(json['apps']),
|
|
125
|
+
'collections': AgentAttachmentDiffFromJSON(json['collections']),
|
|
126
|
+
'subagents': AgentAttachmentDiffFromJSON(json['subagents']),
|
|
127
|
+
'skillsUpdated': json['skillsUpdated'],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function AgentVersionDiffResourceToJSON(json: any): AgentVersionDiffResource {
|
|
132
|
+
return AgentVersionDiffResourceToJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function AgentVersionDiffResourceToJSONTyped(value?: AgentVersionDiffResource | null, ignoreDiscriminator: boolean = false): any {
|
|
136
|
+
if (value == null) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'fromVersion': value['fromVersion'],
|
|
143
|
+
'toVersion': value['toVersion'],
|
|
144
|
+
'filesAdded': value['filesAdded'],
|
|
145
|
+
'filesRemoved': value['filesRemoved'],
|
|
146
|
+
'filesChanged': value['filesChanged'],
|
|
147
|
+
'skills': AgentAttachmentDiffToJSON(value['skills']),
|
|
148
|
+
'apps': AgentAttachmentDiffToJSON(value['apps']),
|
|
149
|
+
'collections': AgentAttachmentDiffToJSON(value['collections']),
|
|
150
|
+
'subagents': AgentAttachmentDiffToJSON(value['subagents']),
|
|
151
|
+
'skillsUpdated': value['skillsUpdated'],
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentVersionPick
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentVersionPick {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AgentVersionPick
|
|
26
|
+
*/
|
|
27
|
+
version: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AgentVersionPick interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAgentVersionPick(value: object): value is AgentVersionPick {
|
|
34
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AgentVersionPickFromJSON(json: any): AgentVersionPick {
|
|
39
|
+
return AgentVersionPickFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AgentVersionPickFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionPick {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'version': json['version'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AgentVersionPickToJSON(json: any): AgentVersionPick {
|
|
53
|
+
return AgentVersionPickToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AgentVersionPickToJSONTyped(value?: AgentVersionPick | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'version': value['version'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|