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.
Files changed (136) hide show
  1. package/dist/apis/AgentConversationsApi.d.ts +2 -2
  2. package/dist/apis/AgentConversationsApi.js +2 -2
  3. package/dist/apis/AgentsApi.d.ts +195 -5
  4. package/dist/apis/AgentsApi.js +478 -5
  5. package/dist/apis/ArtifactsApi.d.ts +8 -4
  6. package/dist/apis/ArtifactsApi.js +8 -4
  7. package/dist/apis/ConversationsApi.d.ts +2 -0
  8. package/dist/apis/ConversationsApi.js +6 -0
  9. package/dist/compose/deploy.d.ts +33 -7
  10. package/dist/compose/deploy.js +97 -19
  11. package/dist/compose/errors.d.ts +1 -1
  12. package/dist/compose/errors.js +1 -1
  13. package/dist/compose/index.d.ts +1 -1
  14. package/dist/compose/index.js +2 -1
  15. package/dist/compose/run.d.ts +5 -1
  16. package/dist/compose/run.js +9 -9
  17. package/dist/compose/settingsTransport.d.ts +9 -0
  18. package/dist/compose/settingsTransport.js +82 -8
  19. package/dist/compose/transport.d.ts +11 -0
  20. package/dist/compose/transport.js +3 -0
  21. package/dist/esm/apis/AgentConversationsApi.d.ts +2 -2
  22. package/dist/esm/apis/AgentConversationsApi.js +2 -2
  23. package/dist/esm/apis/AgentsApi.d.ts +195 -5
  24. package/dist/esm/apis/AgentsApi.js +478 -5
  25. package/dist/esm/apis/ArtifactsApi.d.ts +8 -4
  26. package/dist/esm/apis/ArtifactsApi.js +8 -4
  27. package/dist/esm/apis/ConversationsApi.d.ts +2 -0
  28. package/dist/esm/apis/ConversationsApi.js +6 -0
  29. package/dist/esm/compose/deploy.d.ts +33 -7
  30. package/dist/esm/compose/deploy.js +97 -20
  31. package/dist/esm/compose/errors.d.ts +1 -1
  32. package/dist/esm/compose/errors.js +1 -1
  33. package/dist/esm/compose/index.d.ts +1 -1
  34. package/dist/esm/compose/index.js +1 -1
  35. package/dist/esm/compose/run.d.ts +5 -1
  36. package/dist/esm/compose/run.js +9 -9
  37. package/dist/esm/compose/settingsTransport.d.ts +9 -0
  38. package/dist/esm/compose/settingsTransport.js +82 -8
  39. package/dist/esm/compose/transport.d.ts +11 -0
  40. package/dist/esm/compose/transport.js +2 -1
  41. package/dist/esm/models/AgentAttachmentDiff.d.ts +50 -0
  42. package/dist/esm/models/AgentAttachmentDiff.js +55 -0
  43. package/dist/esm/models/AgentContentsResource.d.ts +71 -0
  44. package/dist/esm/models/AgentContentsResource.js +70 -0
  45. package/dist/esm/models/AgentDeploy.d.ts +33 -0
  46. package/dist/esm/models/AgentDeploy.js +41 -0
  47. package/dist/esm/models/AgentDraftResource.d.ts +51 -0
  48. package/dist/esm/models/AgentDraftResource.js +52 -0
  49. package/dist/esm/models/AgentFileContent.d.ts +38 -0
  50. package/dist/esm/models/AgentFileContent.js +47 -0
  51. package/dist/esm/models/AgentHistoryResource.d.ts +71 -0
  52. package/dist/esm/models/AgentHistoryResource.js +66 -0
  53. package/dist/esm/models/AgentResource.d.ts +21 -0
  54. package/dist/esm/models/AgentResource.js +12 -0
  55. package/dist/esm/models/AgentSkillFilePin.d.ts +44 -0
  56. package/dist/esm/models/AgentSkillFilePin.js +51 -0
  57. package/dist/esm/models/AgentSubagentEntry.d.ts +38 -0
  58. package/dist/esm/models/AgentSubagentEntry.js +47 -0
  59. package/dist/esm/models/AgentVersionCreate.d.ts +32 -0
  60. package/dist/esm/models/AgentVersionCreate.js +41 -0
  61. package/dist/esm/models/AgentVersionDiffResource.d.ts +87 -0
  62. package/dist/esm/models/AgentVersionDiffResource.js +78 -0
  63. package/dist/esm/models/AgentVersionPick.d.ts +32 -0
  64. package/dist/esm/models/AgentVersionPick.js +43 -0
  65. package/dist/esm/models/AgentVersionResource.d.ts +56 -0
  66. package/dist/esm/models/AgentVersionResource.js +57 -0
  67. package/dist/esm/models/AppResource.d.ts +12 -0
  68. package/dist/esm/models/AppResource.js +4 -0
  69. package/dist/esm/models/ResponseInput.d.ts +6 -0
  70. package/dist/esm/models/ResponseInput.js +2 -0
  71. package/dist/esm/models/SkillUpdateResource.d.ts +38 -0
  72. package/dist/esm/models/SkillUpdateResource.js +47 -0
  73. package/dist/esm/models/index.d.ts +13 -0
  74. package/dist/esm/models/index.js +13 -0
  75. package/dist/models/AgentAttachmentDiff.d.ts +50 -0
  76. package/dist/models/AgentAttachmentDiff.js +62 -0
  77. package/dist/models/AgentContentsResource.d.ts +71 -0
  78. package/dist/models/AgentContentsResource.js +77 -0
  79. package/dist/models/AgentDeploy.d.ts +33 -0
  80. package/dist/models/AgentDeploy.js +48 -0
  81. package/dist/models/AgentDraftResource.d.ts +51 -0
  82. package/dist/models/AgentDraftResource.js +59 -0
  83. package/dist/models/AgentFileContent.d.ts +38 -0
  84. package/dist/models/AgentFileContent.js +54 -0
  85. package/dist/models/AgentHistoryResource.d.ts +71 -0
  86. package/dist/models/AgentHistoryResource.js +74 -0
  87. package/dist/models/AgentResource.d.ts +21 -0
  88. package/dist/models/AgentResource.js +13 -1
  89. package/dist/models/AgentSkillFilePin.d.ts +44 -0
  90. package/dist/models/AgentSkillFilePin.js +58 -0
  91. package/dist/models/AgentSubagentEntry.d.ts +38 -0
  92. package/dist/models/AgentSubagentEntry.js +54 -0
  93. package/dist/models/AgentVersionCreate.d.ts +32 -0
  94. package/dist/models/AgentVersionCreate.js +48 -0
  95. package/dist/models/AgentVersionDiffResource.d.ts +87 -0
  96. package/dist/models/AgentVersionDiffResource.js +85 -0
  97. package/dist/models/AgentVersionPick.d.ts +32 -0
  98. package/dist/models/AgentVersionPick.js +50 -0
  99. package/dist/models/AgentVersionResource.d.ts +56 -0
  100. package/dist/models/AgentVersionResource.js +64 -0
  101. package/dist/models/AppResource.d.ts +12 -0
  102. package/dist/models/AppResource.js +4 -0
  103. package/dist/models/ResponseInput.d.ts +6 -0
  104. package/dist/models/ResponseInput.js +2 -0
  105. package/dist/models/SkillUpdateResource.d.ts +38 -0
  106. package/dist/models/SkillUpdateResource.js +54 -0
  107. package/dist/models/index.d.ts +13 -0
  108. package/dist/models/index.js +13 -0
  109. package/package.json +1 -1
  110. package/src/apis/AgentConversationsApi.ts +2 -2
  111. package/src/apis/AgentsApi.ts +737 -6
  112. package/src/apis/ArtifactsApi.ts +8 -4
  113. package/src/apis/ConversationsApi.ts +10 -0
  114. package/src/compose/deploy.ts +113 -20
  115. package/src/compose/errors.ts +1 -1
  116. package/src/compose/index.ts +1 -1
  117. package/src/compose/run.ts +6 -2
  118. package/src/compose/settingsTransport.ts +81 -9
  119. package/src/compose/transport.ts +12 -0
  120. package/src/models/AgentAttachmentDiff.ts +93 -0
  121. package/src/models/AgentContentsResource.ts +142 -0
  122. package/src/models/AgentDeploy.ts +66 -0
  123. package/src/models/AgentDraftResource.ts +99 -0
  124. package/src/models/AgentFileContent.ts +75 -0
  125. package/src/models/AgentHistoryResource.ts +121 -0
  126. package/src/models/AgentResource.ts +26 -0
  127. package/src/models/AgentSkillFilePin.ts +84 -0
  128. package/src/models/AgentSubagentEntry.ts +75 -0
  129. package/src/models/AgentVersionCreate.ts +65 -0
  130. package/src/models/AgentVersionDiffResource.ts +154 -0
  131. package/src/models/AgentVersionPick.ts +66 -0
  132. package/src/models/AgentVersionResource.ts +101 -0
  133. package/src/models/AppResource.ts +16 -0
  134. package/src/models/ResponseInput.ts +8 -0
  135. package/src/models/SkillUpdateResource.ts +75 -0
  136. package/src/models/index.ts +13 -0
@@ -111,6 +111,18 @@ export interface AgentResource {
111
111
  * @memberof AgentResource
112
112
  */
113
113
  deployedAt?: Date | null;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof AgentResource
118
+ */
119
+ versionState?: AgentResourceVersionStateEnum | null;
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof AgentResource
124
+ */
125
+ liveVersion?: number | null;
114
126
  /**
115
127
  *
116
128
  * @type {string}
@@ -205,6 +217,15 @@ export declare const AgentResourceDeployStateEnum: {
205
217
  readonly Deployed: "deployed";
206
218
  };
207
219
  export type AgentResourceDeployStateEnum = typeof AgentResourceDeployStateEnum[keyof typeof AgentResourceDeployStateEnum];
220
+ /**
221
+ * @export
222
+ */
223
+ export declare const AgentResourceVersionStateEnum: {
224
+ readonly Live: "live";
225
+ readonly Paused: "paused";
226
+ readonly NotLive: "not_live";
227
+ };
228
+ export type AgentResourceVersionStateEnum = typeof AgentResourceVersionStateEnum[keyof typeof AgentResourceVersionStateEnum];
208
229
  /**
209
230
  * Check if a given object implements the AgentResource interface.
210
231
  */
@@ -37,6 +37,14 @@ export const AgentResourceDeployStateEnum = {
37
37
  Draft: 'draft',
38
38
  Deployed: 'deployed'
39
39
  };
40
+ /**
41
+ * @export
42
+ */
43
+ export const AgentResourceVersionStateEnum = {
44
+ Live: 'live',
45
+ Paused: 'paused',
46
+ NotLive: 'not_live'
47
+ };
40
48
  /**
41
49
  * Check if a given object implements the AgentResource interface.
42
50
  */
@@ -80,6 +88,8 @@ export function AgentResourceFromJSONTyped(json, ignoreDiscriminator) {
80
88
  'agentTypes': json['agentTypes'] == null ? undefined : json['agentTypes'],
81
89
  'deployState': json['deployState'] == null ? undefined : json['deployState'],
82
90
  'deployedAt': json['deployedAt'] == null ? undefined : (new Date(json['deployedAt'])),
91
+ 'versionState': json['versionState'] == null ? undefined : json['versionState'],
92
+ 'liveVersion': json['liveVersion'] == null ? undefined : json['liveVersion'],
83
93
  'clonedFromAgentId': json['clonedFromAgentId'] == null ? undefined : json['clonedFromAgentId'],
84
94
  'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
85
95
  'settings': json['settings'] == null ? undefined : json['settings'],
@@ -116,6 +126,8 @@ export function AgentResourceToJSONTyped(value, ignoreDiscriminator = false) {
116
126
  'agentTypes': value['agentTypes'],
117
127
  'deployState': value['deployState'],
118
128
  'deployedAt': value['deployedAt'] == null ? undefined : (value['deployedAt'].toISOString()),
129
+ 'versionState': value['versionState'],
130
+ 'liveVersion': value['liveVersion'],
119
131
  'clonedFromAgentId': value['clonedFromAgentId'],
120
132
  'isDefault': value['isDefault'],
121
133
  'settings': value['settings'],
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Sarvam Agents API
3
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ * Contact: support@sarvam.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AgentSkillFilePin
16
+ */
17
+ export interface AgentSkillFilePin {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentSkillFilePin
22
+ */
23
+ skillId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentSkillFilePin
28
+ */
29
+ path: string;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof AgentSkillFilePin
34
+ */
35
+ createdAt: Date;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AgentSkillFilePin interface.
39
+ */
40
+ export declare function instanceOfAgentSkillFilePin(value: object): value is AgentSkillFilePin;
41
+ export declare function AgentSkillFilePinFromJSON(json: any): AgentSkillFilePin;
42
+ export declare function AgentSkillFilePinFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSkillFilePin;
43
+ export declare function AgentSkillFilePinToJSON(json: any): AgentSkillFilePin;
44
+ export declare function AgentSkillFilePinToJSONTyped(value?: AgentSkillFilePin | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 AgentSkillFilePin interface.
16
+ */
17
+ export function instanceOfAgentSkillFilePin(value) {
18
+ if (!('skillId' in value) || value['skillId'] === undefined)
19
+ return false;
20
+ if (!('path' in value) || value['path'] === undefined)
21
+ return false;
22
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function AgentSkillFilePinFromJSON(json) {
27
+ return AgentSkillFilePinFromJSONTyped(json, false);
28
+ }
29
+ export function AgentSkillFilePinFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'skillId': json['skillId'],
35
+ 'path': json['path'],
36
+ 'createdAt': (new Date(json['createdAt'])),
37
+ };
38
+ }
39
+ export function AgentSkillFilePinToJSON(json) {
40
+ return AgentSkillFilePinToJSONTyped(json, false);
41
+ }
42
+ export function AgentSkillFilePinToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'skillId': value['skillId'],
48
+ 'path': value['path'],
49
+ 'createdAt': ((value['createdAt']).toISOString()),
50
+ };
51
+ }
@@ -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 AgentSubagentEntry
16
+ */
17
+ export interface AgentSubagentEntry {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentSubagentEntry
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof AgentSubagentEntry
28
+ */
29
+ enabled: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AgentSubagentEntry interface.
33
+ */
34
+ export declare function instanceOfAgentSubagentEntry(value: object): value is AgentSubagentEntry;
35
+ export declare function AgentSubagentEntryFromJSON(json: any): AgentSubagentEntry;
36
+ export declare function AgentSubagentEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSubagentEntry;
37
+ export declare function AgentSubagentEntryToJSON(json: any): AgentSubagentEntry;
38
+ export declare function AgentSubagentEntryToJSONTyped(value?: AgentSubagentEntry | 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 AgentSubagentEntry interface.
16
+ */
17
+ export function instanceOfAgentSubagentEntry(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('enabled' in value) || value['enabled'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function AgentSubagentEntryFromJSON(json) {
25
+ return AgentSubagentEntryFromJSONTyped(json, false);
26
+ }
27
+ export function AgentSubagentEntryFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'enabled': json['enabled'],
34
+ };
35
+ }
36
+ export function AgentSubagentEntryToJSON(json) {
37
+ return AgentSubagentEntryToJSONTyped(json, false);
38
+ }
39
+ export function AgentSubagentEntryToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'enabled': value['enabled'],
46
+ };
47
+ }
@@ -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 AgentVersionCreate
16
+ */
17
+ export interface AgentVersionCreate {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentVersionCreate
22
+ */
23
+ note?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AgentVersionCreate interface.
27
+ */
28
+ export declare function instanceOfAgentVersionCreate(value: object): value is AgentVersionCreate;
29
+ export declare function AgentVersionCreateFromJSON(json: any): AgentVersionCreate;
30
+ export declare function AgentVersionCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionCreate;
31
+ export declare function AgentVersionCreateToJSON(json: any): AgentVersionCreate;
32
+ export declare function AgentVersionCreateToJSONTyped(value?: AgentVersionCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
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 AgentVersionCreate interface.
16
+ */
17
+ export function instanceOfAgentVersionCreate(value) {
18
+ return true;
19
+ }
20
+ export function AgentVersionCreateFromJSON(json) {
21
+ return AgentVersionCreateFromJSONTyped(json, false);
22
+ }
23
+ export function AgentVersionCreateFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'note': json['note'] == null ? undefined : json['note'],
29
+ };
30
+ }
31
+ export function AgentVersionCreateToJSON(json) {
32
+ return AgentVersionCreateToJSONTyped(json, false);
33
+ }
34
+ export function AgentVersionCreateToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'note': value['note'],
40
+ };
41
+ }
@@ -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
+ }