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,87 @@
|
|
|
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 { AgentAttachmentDiff } from './AgentAttachmentDiff.js';
|
|
13
|
+
/**
|
|
14
|
+
* What ``toVersion`` changes relative to ``fromVersion`` (-2 = draft).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentVersionDiffResource
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentVersionDiffResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AgentVersionDiffResource
|
|
23
|
+
*/
|
|
24
|
+
fromVersion?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AgentVersionDiffResource
|
|
29
|
+
*/
|
|
30
|
+
toVersion: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof AgentVersionDiffResource
|
|
35
|
+
*/
|
|
36
|
+
filesAdded: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof AgentVersionDiffResource
|
|
41
|
+
*/
|
|
42
|
+
filesRemoved: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof AgentVersionDiffResource
|
|
47
|
+
*/
|
|
48
|
+
filesChanged: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {AgentAttachmentDiff}
|
|
52
|
+
* @memberof AgentVersionDiffResource
|
|
53
|
+
*/
|
|
54
|
+
skills: AgentAttachmentDiff;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {AgentAttachmentDiff}
|
|
58
|
+
* @memberof AgentVersionDiffResource
|
|
59
|
+
*/
|
|
60
|
+
apps: AgentAttachmentDiff;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {AgentAttachmentDiff}
|
|
64
|
+
* @memberof AgentVersionDiffResource
|
|
65
|
+
*/
|
|
66
|
+
collections: AgentAttachmentDiff;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {AgentAttachmentDiff}
|
|
70
|
+
* @memberof AgentVersionDiffResource
|
|
71
|
+
*/
|
|
72
|
+
subagents: AgentAttachmentDiff;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<string>}
|
|
76
|
+
* @memberof AgentVersionDiffResource
|
|
77
|
+
*/
|
|
78
|
+
skillsUpdated: Array<string>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the AgentVersionDiffResource interface.
|
|
82
|
+
*/
|
|
83
|
+
export declare function instanceOfAgentVersionDiffResource(value: object): value is AgentVersionDiffResource;
|
|
84
|
+
export declare function AgentVersionDiffResourceFromJSON(json: any): AgentVersionDiffResource;
|
|
85
|
+
export declare function AgentVersionDiffResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionDiffResource;
|
|
86
|
+
export declare function AgentVersionDiffResourceToJSON(json: any): AgentVersionDiffResource;
|
|
87
|
+
export declare function AgentVersionDiffResourceToJSONTyped(value?: AgentVersionDiffResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AgentAttachmentDiffFromJSON, AgentAttachmentDiffToJSON, } from './AgentAttachmentDiff.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AgentVersionDiffResource interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAgentVersionDiffResource(value) {
|
|
19
|
+
if (!('toVersion' in value) || value['toVersion'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('filesAdded' in value) || value['filesAdded'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('filesRemoved' in value) || value['filesRemoved'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('filesChanged' in value) || value['filesChanged'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('skills' in value) || value['skills'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('apps' in value) || value['apps'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('collections' in value) || value['collections'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('subagents' in value) || value['subagents'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('skillsUpdated' in value) || value['skillsUpdated'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function AgentVersionDiffResourceFromJSON(json) {
|
|
40
|
+
return AgentVersionDiffResourceFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AgentVersionDiffResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'fromVersion': json['fromVersion'] == null ? undefined : json['fromVersion'],
|
|
48
|
+
'toVersion': json['toVersion'],
|
|
49
|
+
'filesAdded': json['filesAdded'],
|
|
50
|
+
'filesRemoved': json['filesRemoved'],
|
|
51
|
+
'filesChanged': json['filesChanged'],
|
|
52
|
+
'skills': AgentAttachmentDiffFromJSON(json['skills']),
|
|
53
|
+
'apps': AgentAttachmentDiffFromJSON(json['apps']),
|
|
54
|
+
'collections': AgentAttachmentDiffFromJSON(json['collections']),
|
|
55
|
+
'subagents': AgentAttachmentDiffFromJSON(json['subagents']),
|
|
56
|
+
'skillsUpdated': json['skillsUpdated'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
export function AgentVersionDiffResourceToJSON(json) {
|
|
60
|
+
return AgentVersionDiffResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function AgentVersionDiffResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'fromVersion': value['fromVersion'],
|
|
68
|
+
'toVersion': value['toVersion'],
|
|
69
|
+
'filesAdded': value['filesAdded'],
|
|
70
|
+
'filesRemoved': value['filesRemoved'],
|
|
71
|
+
'filesChanged': value['filesChanged'],
|
|
72
|
+
'skills': AgentAttachmentDiffToJSON(value['skills']),
|
|
73
|
+
'apps': AgentAttachmentDiffToJSON(value['apps']),
|
|
74
|
+
'collections': AgentAttachmentDiffToJSON(value['collections']),
|
|
75
|
+
'subagents': AgentAttachmentDiffToJSON(value['subagents']),
|
|
76
|
+
'skillsUpdated': value['skillsUpdated'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AgentVersionPick
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentVersionPick {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AgentVersionPick
|
|
22
|
+
*/
|
|
23
|
+
version: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AgentVersionPick interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAgentVersionPick(value: object): value is AgentVersionPick;
|
|
29
|
+
export declare function AgentVersionPickFromJSON(json: any): AgentVersionPick;
|
|
30
|
+
export declare function AgentVersionPickFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionPick;
|
|
31
|
+
export declare function AgentVersionPickToJSON(json: any): AgentVersionPick;
|
|
32
|
+
export declare function AgentVersionPickToJSONTyped(value?: AgentVersionPick | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 AgentVersionPick interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAgentVersionPick(value) {
|
|
18
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function AgentVersionPickFromJSON(json) {
|
|
23
|
+
return AgentVersionPickFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AgentVersionPickFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'version': json['version'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function AgentVersionPickToJSON(json) {
|
|
34
|
+
return AgentVersionPickToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function AgentVersionPickToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'version': value['version'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 AgentVersionResource
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentVersionResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AgentVersionResource
|
|
22
|
+
*/
|
|
23
|
+
version: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof AgentVersionResource
|
|
28
|
+
*/
|
|
29
|
+
committedAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AgentVersionResource
|
|
34
|
+
*/
|
|
35
|
+
note: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AgentVersionResource
|
|
40
|
+
*/
|
|
41
|
+
everLive: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AgentVersionResource
|
|
46
|
+
*/
|
|
47
|
+
createdBy?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AgentVersionResource interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAgentVersionResource(value: object): value is AgentVersionResource;
|
|
53
|
+
export declare function AgentVersionResourceFromJSON(json: any): AgentVersionResource;
|
|
54
|
+
export declare function AgentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionResource;
|
|
55
|
+
export declare function AgentVersionResourceToJSON(json: any): AgentVersionResource;
|
|
56
|
+
export declare function AgentVersionResourceToJSONTyped(value?: AgentVersionResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 AgentVersionResource interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAgentVersionResource(value) {
|
|
18
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('committedAt' in value) || value['committedAt'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('note' in value) || value['note'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('everLive' in value) || value['everLive'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function AgentVersionResourceFromJSON(json) {
|
|
29
|
+
return AgentVersionResourceFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function AgentVersionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'version': json['version'],
|
|
37
|
+
'committedAt': (new Date(json['committedAt'])),
|
|
38
|
+
'note': json['note'],
|
|
39
|
+
'everLive': json['everLive'],
|
|
40
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function AgentVersionResourceToJSON(json) {
|
|
44
|
+
return AgentVersionResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function AgentVersionResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'version': value['version'],
|
|
52
|
+
'committedAt': ((value['committedAt']).toISOString()),
|
|
53
|
+
'note': value['note'],
|
|
54
|
+
'everLive': value['everLive'],
|
|
55
|
+
'createdBy': value['createdBy'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,6 @@ export * from './runtime.js';
|
|
|
2
2
|
export * from './apis/index.js';
|
|
3
3
|
export * from './models/index.js';
|
|
4
4
|
export * from './streaming.js';
|
|
5
|
+
export { Client } from './client.js';
|
|
6
|
+
export { WebhookSecrets } from './compose/webhookSecrets.js';
|
|
7
|
+
export type { SecretStatus } from './compose/webhookSecrets.js';
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.WebhookSecrets = exports.Client = void 0;
|
|
17
18
|
/* tslint:disable */
|
|
18
19
|
/* eslint-disable */
|
|
19
20
|
// Hand-maintained entry point (listed in .openapi-generator-ignore): the generated exports plus the streaming helpers.
|
|
@@ -21,3 +22,8 @@ __exportStar(require("./runtime.js"), exports);
|
|
|
21
22
|
__exportStar(require("./apis/index.js"), exports);
|
|
22
23
|
__exportStar(require("./models/index.js"), exports);
|
|
23
24
|
__exportStar(require("./streaming.js"), exports);
|
|
25
|
+
// Hand-written: the high-level client (client.webhooks).
|
|
26
|
+
var client_js_1 = require("./client.js");
|
|
27
|
+
Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_js_1.Client; } });
|
|
28
|
+
var webhookSecrets_js_1 = require("./compose/webhookSecrets.js");
|
|
29
|
+
Object.defineProperty(exports, "WebhookSecrets", { enumerable: true, get: function () { return webhookSecrets_js_1.WebhookSecrets; } });
|
|
@@ -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;
|