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.
Files changed (157) hide show
  1. package/README.md +36 -23
  2. package/dist/apis/AgentConversationsApi.d.ts +2 -2
  3. package/dist/apis/AgentConversationsApi.js +2 -2
  4. package/dist/apis/AgentsApi.d.ts +195 -5
  5. package/dist/apis/AgentsApi.js +478 -5
  6. package/dist/apis/ArtifactsApi.d.ts +8 -4
  7. package/dist/apis/ArtifactsApi.js +8 -4
  8. package/dist/apis/ConversationsApi.d.ts +2 -0
  9. package/dist/apis/ConversationsApi.js +6 -0
  10. package/dist/client.d.ts +16 -0
  11. package/dist/client.js +21 -0
  12. package/dist/compose/deploy.d.ts +37 -7
  13. package/dist/compose/deploy.js +105 -19
  14. package/dist/compose/errors.d.ts +1 -1
  15. package/dist/compose/errors.js +1 -1
  16. package/dist/compose/index.d.ts +1 -1
  17. package/dist/compose/index.js +2 -1
  18. package/dist/compose/run.d.ts +5 -1
  19. package/dist/compose/run.js +9 -9
  20. package/dist/compose/settingsTransport.d.ts +14 -0
  21. package/dist/compose/settingsTransport.js +151 -14
  22. package/dist/compose/transport.d.ts +14 -0
  23. package/dist/compose/transport.js +3 -0
  24. package/dist/compose/webhook.d.ts +18 -3
  25. package/dist/compose/webhook.js +59 -10
  26. package/dist/compose/webhookSecrets.d.ts +64 -0
  27. package/dist/compose/webhookSecrets.js +255 -0
  28. package/dist/esm/apis/AgentConversationsApi.d.ts +2 -2
  29. package/dist/esm/apis/AgentConversationsApi.js +2 -2
  30. package/dist/esm/apis/AgentsApi.d.ts +195 -5
  31. package/dist/esm/apis/AgentsApi.js +478 -5
  32. package/dist/esm/apis/ArtifactsApi.d.ts +8 -4
  33. package/dist/esm/apis/ArtifactsApi.js +8 -4
  34. package/dist/esm/apis/ConversationsApi.d.ts +2 -0
  35. package/dist/esm/apis/ConversationsApi.js +6 -0
  36. package/dist/esm/client.d.ts +16 -0
  37. package/dist/esm/client.js +17 -0
  38. package/dist/esm/compose/deploy.d.ts +37 -7
  39. package/dist/esm/compose/deploy.js +105 -20
  40. package/dist/esm/compose/errors.d.ts +1 -1
  41. package/dist/esm/compose/errors.js +1 -1
  42. package/dist/esm/compose/index.d.ts +1 -1
  43. package/dist/esm/compose/index.js +1 -1
  44. package/dist/esm/compose/run.d.ts +5 -1
  45. package/dist/esm/compose/run.js +9 -9
  46. package/dist/esm/compose/settingsTransport.d.ts +14 -0
  47. package/dist/esm/compose/settingsTransport.js +151 -14
  48. package/dist/esm/compose/transport.d.ts +14 -0
  49. package/dist/esm/compose/transport.js +2 -1
  50. package/dist/esm/compose/webhook.d.ts +18 -3
  51. package/dist/esm/compose/webhook.js +55 -9
  52. package/dist/esm/compose/webhookSecrets.d.ts +64 -0
  53. package/dist/esm/compose/webhookSecrets.js +250 -0
  54. package/dist/esm/index.d.ts +3 -0
  55. package/dist/esm/index.js +3 -0
  56. package/dist/esm/models/AgentAttachmentDiff.d.ts +50 -0
  57. package/dist/esm/models/AgentAttachmentDiff.js +55 -0
  58. package/dist/esm/models/AgentContentsResource.d.ts +71 -0
  59. package/dist/esm/models/AgentContentsResource.js +70 -0
  60. package/dist/esm/models/AgentDeploy.d.ts +33 -0
  61. package/dist/esm/models/AgentDeploy.js +41 -0
  62. package/dist/esm/models/AgentDraftResource.d.ts +51 -0
  63. package/dist/esm/models/AgentDraftResource.js +52 -0
  64. package/dist/esm/models/AgentFileContent.d.ts +38 -0
  65. package/dist/esm/models/AgentFileContent.js +47 -0
  66. package/dist/esm/models/AgentHistoryResource.d.ts +71 -0
  67. package/dist/esm/models/AgentHistoryResource.js +66 -0
  68. package/dist/esm/models/AgentResource.d.ts +21 -0
  69. package/dist/esm/models/AgentResource.js +12 -0
  70. package/dist/esm/models/AgentSkillFilePin.d.ts +44 -0
  71. package/dist/esm/models/AgentSkillFilePin.js +51 -0
  72. package/dist/esm/models/AgentSubagentEntry.d.ts +38 -0
  73. package/dist/esm/models/AgentSubagentEntry.js +47 -0
  74. package/dist/esm/models/AgentVersionCreate.d.ts +32 -0
  75. package/dist/esm/models/AgentVersionCreate.js +41 -0
  76. package/dist/esm/models/AgentVersionDiffResource.d.ts +87 -0
  77. package/dist/esm/models/AgentVersionDiffResource.js +78 -0
  78. package/dist/esm/models/AgentVersionPick.d.ts +32 -0
  79. package/dist/esm/models/AgentVersionPick.js +43 -0
  80. package/dist/esm/models/AgentVersionResource.d.ts +56 -0
  81. package/dist/esm/models/AgentVersionResource.js +57 -0
  82. package/dist/esm/models/AppResource.d.ts +12 -0
  83. package/dist/esm/models/AppResource.js +4 -0
  84. package/dist/esm/models/ResponseInput.d.ts +6 -0
  85. package/dist/esm/models/ResponseInput.js +2 -0
  86. package/dist/esm/models/SkillUpdateResource.d.ts +38 -0
  87. package/dist/esm/models/SkillUpdateResource.js +47 -0
  88. package/dist/esm/models/index.d.ts +13 -0
  89. package/dist/esm/models/index.js +13 -0
  90. package/dist/index.d.ts +3 -0
  91. package/dist/index.js +6 -0
  92. package/dist/models/AgentAttachmentDiff.d.ts +50 -0
  93. package/dist/models/AgentAttachmentDiff.js +62 -0
  94. package/dist/models/AgentContentsResource.d.ts +71 -0
  95. package/dist/models/AgentContentsResource.js +77 -0
  96. package/dist/models/AgentDeploy.d.ts +33 -0
  97. package/dist/models/AgentDeploy.js +48 -0
  98. package/dist/models/AgentDraftResource.d.ts +51 -0
  99. package/dist/models/AgentDraftResource.js +59 -0
  100. package/dist/models/AgentFileContent.d.ts +38 -0
  101. package/dist/models/AgentFileContent.js +54 -0
  102. package/dist/models/AgentHistoryResource.d.ts +71 -0
  103. package/dist/models/AgentHistoryResource.js +74 -0
  104. package/dist/models/AgentResource.d.ts +21 -0
  105. package/dist/models/AgentResource.js +13 -1
  106. package/dist/models/AgentSkillFilePin.d.ts +44 -0
  107. package/dist/models/AgentSkillFilePin.js +58 -0
  108. package/dist/models/AgentSubagentEntry.d.ts +38 -0
  109. package/dist/models/AgentSubagentEntry.js +54 -0
  110. package/dist/models/AgentVersionCreate.d.ts +32 -0
  111. package/dist/models/AgentVersionCreate.js +48 -0
  112. package/dist/models/AgentVersionDiffResource.d.ts +87 -0
  113. package/dist/models/AgentVersionDiffResource.js +85 -0
  114. package/dist/models/AgentVersionPick.d.ts +32 -0
  115. package/dist/models/AgentVersionPick.js +50 -0
  116. package/dist/models/AgentVersionResource.d.ts +56 -0
  117. package/dist/models/AgentVersionResource.js +64 -0
  118. package/dist/models/AppResource.d.ts +12 -0
  119. package/dist/models/AppResource.js +4 -0
  120. package/dist/models/ResponseInput.d.ts +6 -0
  121. package/dist/models/ResponseInput.js +2 -0
  122. package/dist/models/SkillUpdateResource.d.ts +38 -0
  123. package/dist/models/SkillUpdateResource.js +54 -0
  124. package/dist/models/index.d.ts +13 -0
  125. package/dist/models/index.js +13 -0
  126. package/package.json +1 -1
  127. package/src/apis/AgentConversationsApi.ts +2 -2
  128. package/src/apis/AgentsApi.ts +737 -6
  129. package/src/apis/ArtifactsApi.ts +8 -4
  130. package/src/apis/ConversationsApi.ts +10 -0
  131. package/src/client.ts +21 -0
  132. package/src/compose/deploy.ts +126 -20
  133. package/src/compose/errors.ts +1 -1
  134. package/src/compose/index.ts +1 -1
  135. package/src/compose/run.ts +6 -2
  136. package/src/compose/settingsTransport.ts +154 -16
  137. package/src/compose/transport.ts +15 -0
  138. package/src/compose/webhook.ts +64 -11
  139. package/src/compose/webhookSecrets.ts +257 -0
  140. package/src/index.ts +4 -0
  141. package/src/models/AgentAttachmentDiff.ts +93 -0
  142. package/src/models/AgentContentsResource.ts +142 -0
  143. package/src/models/AgentDeploy.ts +66 -0
  144. package/src/models/AgentDraftResource.ts +99 -0
  145. package/src/models/AgentFileContent.ts +75 -0
  146. package/src/models/AgentHistoryResource.ts +121 -0
  147. package/src/models/AgentResource.ts +26 -0
  148. package/src/models/AgentSkillFilePin.ts +84 -0
  149. package/src/models/AgentSubagentEntry.ts +75 -0
  150. package/src/models/AgentVersionCreate.ts +65 -0
  151. package/src/models/AgentVersionDiffResource.ts +154 -0
  152. package/src/models/AgentVersionPick.ts +66 -0
  153. package/src/models/AgentVersionResource.ts +101 -0
  154. package/src/models/AppResource.ts +16 -0
  155. package/src/models/ResponseInput.ts +8 -0
  156. package/src/models/SkillUpdateResource.ts +75 -0
  157. package/src/models/index.ts +13 -0
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AgentResourceDeployStateEnum = exports.AgentResourceAgentTypesEnum = exports.AgentResourceEntityTypeEnum = void 0;
16
+ exports.AgentResourceVersionStateEnum = exports.AgentResourceDeployStateEnum = exports.AgentResourceAgentTypesEnum = exports.AgentResourceEntityTypeEnum = void 0;
17
17
  exports.instanceOfAgentResource = instanceOfAgentResource;
18
18
  exports.AgentResourceFromJSON = AgentResourceFromJSON;
19
19
  exports.AgentResourceFromJSONTyped = AgentResourceFromJSONTyped;
@@ -45,6 +45,14 @@ exports.AgentResourceDeployStateEnum = {
45
45
  Draft: 'draft',
46
46
  Deployed: 'deployed'
47
47
  };
48
+ /**
49
+ * @export
50
+ */
51
+ exports.AgentResourceVersionStateEnum = {
52
+ Live: 'live',
53
+ Paused: 'paused',
54
+ NotLive: 'not_live'
55
+ };
48
56
  /**
49
57
  * Check if a given object implements the AgentResource interface.
50
58
  */
@@ -88,6 +96,8 @@ function AgentResourceFromJSONTyped(json, ignoreDiscriminator) {
88
96
  'agentTypes': json['agentTypes'] == null ? undefined : json['agentTypes'],
89
97
  'deployState': json['deployState'] == null ? undefined : json['deployState'],
90
98
  'deployedAt': json['deployedAt'] == null ? undefined : (new Date(json['deployedAt'])),
99
+ 'versionState': json['versionState'] == null ? undefined : json['versionState'],
100
+ 'liveVersion': json['liveVersion'] == null ? undefined : json['liveVersion'],
91
101
  'clonedFromAgentId': json['clonedFromAgentId'] == null ? undefined : json['clonedFromAgentId'],
92
102
  'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
93
103
  'settings': json['settings'] == null ? undefined : json['settings'],
@@ -124,6 +134,8 @@ function AgentResourceToJSONTyped(value, ignoreDiscriminator = false) {
124
134
  'agentTypes': value['agentTypes'],
125
135
  'deployState': value['deployState'],
126
136
  'deployedAt': value['deployedAt'] == null ? undefined : (value['deployedAt'].toISOString()),
137
+ 'versionState': value['versionState'],
138
+ 'liveVersion': value['liveVersion'],
127
139
  'clonedFromAgentId': value['clonedFromAgentId'],
128
140
  'isDefault': value['isDefault'],
129
141
  '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,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sarvam Agents API
6
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: support@sarvam.ai
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentSkillFilePin = instanceOfAgentSkillFilePin;
17
+ exports.AgentSkillFilePinFromJSON = AgentSkillFilePinFromJSON;
18
+ exports.AgentSkillFilePinFromJSONTyped = AgentSkillFilePinFromJSONTyped;
19
+ exports.AgentSkillFilePinToJSON = AgentSkillFilePinToJSON;
20
+ exports.AgentSkillFilePinToJSONTyped = AgentSkillFilePinToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentSkillFilePin interface.
23
+ */
24
+ function instanceOfAgentSkillFilePin(value) {
25
+ if (!('skillId' in value) || value['skillId'] === undefined)
26
+ return false;
27
+ if (!('path' in value) || value['path'] === undefined)
28
+ return false;
29
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function AgentSkillFilePinFromJSON(json) {
34
+ return AgentSkillFilePinFromJSONTyped(json, false);
35
+ }
36
+ function AgentSkillFilePinFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'skillId': json['skillId'],
42
+ 'path': json['path'],
43
+ 'createdAt': (new Date(json['createdAt'])),
44
+ };
45
+ }
46
+ function AgentSkillFilePinToJSON(json) {
47
+ return AgentSkillFilePinToJSONTyped(json, false);
48
+ }
49
+ function AgentSkillFilePinToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'skillId': value['skillId'],
55
+ 'path': value['path'],
56
+ 'createdAt': ((value['createdAt']).toISOString()),
57
+ };
58
+ }
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sarvam Agents API
6
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: support@sarvam.ai
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentSubagentEntry = instanceOfAgentSubagentEntry;
17
+ exports.AgentSubagentEntryFromJSON = AgentSubagentEntryFromJSON;
18
+ exports.AgentSubagentEntryFromJSONTyped = AgentSubagentEntryFromJSONTyped;
19
+ exports.AgentSubagentEntryToJSON = AgentSubagentEntryToJSON;
20
+ exports.AgentSubagentEntryToJSONTyped = AgentSubagentEntryToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentSubagentEntry interface.
23
+ */
24
+ function instanceOfAgentSubagentEntry(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('enabled' in value) || value['enabled'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AgentSubagentEntryFromJSON(json) {
32
+ return AgentSubagentEntryFromJSONTyped(json, false);
33
+ }
34
+ function AgentSubagentEntryFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'enabled': json['enabled'],
41
+ };
42
+ }
43
+ function AgentSubagentEntryToJSON(json) {
44
+ return AgentSubagentEntryToJSONTyped(json, false);
45
+ }
46
+ function AgentSubagentEntryToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'enabled': value['enabled'],
53
+ };
54
+ }
@@ -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,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sarvam Agents API
6
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: support@sarvam.ai
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentVersionCreate = instanceOfAgentVersionCreate;
17
+ exports.AgentVersionCreateFromJSON = AgentVersionCreateFromJSON;
18
+ exports.AgentVersionCreateFromJSONTyped = AgentVersionCreateFromJSONTyped;
19
+ exports.AgentVersionCreateToJSON = AgentVersionCreateToJSON;
20
+ exports.AgentVersionCreateToJSONTyped = AgentVersionCreateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentVersionCreate interface.
23
+ */
24
+ function instanceOfAgentVersionCreate(value) {
25
+ return true;
26
+ }
27
+ function AgentVersionCreateFromJSON(json) {
28
+ return AgentVersionCreateFromJSONTyped(json, false);
29
+ }
30
+ function AgentVersionCreateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'note': json['note'] == null ? undefined : json['note'],
36
+ };
37
+ }
38
+ function AgentVersionCreateToJSON(json) {
39
+ return AgentVersionCreateToJSONTyped(json, false);
40
+ }
41
+ function AgentVersionCreateToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'note': value['note'],
47
+ };
48
+ }
@@ -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,85 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sarvam Agents API
6
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: support@sarvam.ai
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentVersionDiffResource = instanceOfAgentVersionDiffResource;
17
+ exports.AgentVersionDiffResourceFromJSON = AgentVersionDiffResourceFromJSON;
18
+ exports.AgentVersionDiffResourceFromJSONTyped = AgentVersionDiffResourceFromJSONTyped;
19
+ exports.AgentVersionDiffResourceToJSON = AgentVersionDiffResourceToJSON;
20
+ exports.AgentVersionDiffResourceToJSONTyped = AgentVersionDiffResourceToJSONTyped;
21
+ const AgentAttachmentDiff_js_1 = require("./AgentAttachmentDiff.js");
22
+ /**
23
+ * Check if a given object implements the AgentVersionDiffResource interface.
24
+ */
25
+ function instanceOfAgentVersionDiffResource(value) {
26
+ if (!('toVersion' in value) || value['toVersion'] === undefined)
27
+ return false;
28
+ if (!('filesAdded' in value) || value['filesAdded'] === undefined)
29
+ return false;
30
+ if (!('filesRemoved' in value) || value['filesRemoved'] === undefined)
31
+ return false;
32
+ if (!('filesChanged' in value) || value['filesChanged'] === undefined)
33
+ return false;
34
+ if (!('skills' in value) || value['skills'] === undefined)
35
+ return false;
36
+ if (!('apps' in value) || value['apps'] === undefined)
37
+ return false;
38
+ if (!('collections' in value) || value['collections'] === undefined)
39
+ return false;
40
+ if (!('subagents' in value) || value['subagents'] === undefined)
41
+ return false;
42
+ if (!('skillsUpdated' in value) || value['skillsUpdated'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function AgentVersionDiffResourceFromJSON(json) {
47
+ return AgentVersionDiffResourceFromJSONTyped(json, false);
48
+ }
49
+ function AgentVersionDiffResourceFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'fromVersion': json['fromVersion'] == null ? undefined : json['fromVersion'],
55
+ 'toVersion': json['toVersion'],
56
+ 'filesAdded': json['filesAdded'],
57
+ 'filesRemoved': json['filesRemoved'],
58
+ 'filesChanged': json['filesChanged'],
59
+ 'skills': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffFromJSON)(json['skills']),
60
+ 'apps': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffFromJSON)(json['apps']),
61
+ 'collections': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffFromJSON)(json['collections']),
62
+ 'subagents': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffFromJSON)(json['subagents']),
63
+ 'skillsUpdated': json['skillsUpdated'],
64
+ };
65
+ }
66
+ function AgentVersionDiffResourceToJSON(json) {
67
+ return AgentVersionDiffResourceToJSONTyped(json, false);
68
+ }
69
+ function AgentVersionDiffResourceToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'fromVersion': value['fromVersion'],
75
+ 'toVersion': value['toVersion'],
76
+ 'filesAdded': value['filesAdded'],
77
+ 'filesRemoved': value['filesRemoved'],
78
+ 'filesChanged': value['filesChanged'],
79
+ 'skills': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffToJSON)(value['skills']),
80
+ 'apps': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffToJSON)(value['apps']),
81
+ 'collections': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffToJSON)(value['collections']),
82
+ 'subagents': (0, AgentAttachmentDiff_js_1.AgentAttachmentDiffToJSON)(value['subagents']),
83
+ 'skillsUpdated': value['skillsUpdated'],
84
+ };
85
+ }
@@ -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,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Sarvam Agents API
6
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ * Contact: support@sarvam.ai
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentVersionPick = instanceOfAgentVersionPick;
17
+ exports.AgentVersionPickFromJSON = AgentVersionPickFromJSON;
18
+ exports.AgentVersionPickFromJSONTyped = AgentVersionPickFromJSONTyped;
19
+ exports.AgentVersionPickToJSON = AgentVersionPickToJSON;
20
+ exports.AgentVersionPickToJSONTyped = AgentVersionPickToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentVersionPick interface.
23
+ */
24
+ function instanceOfAgentVersionPick(value) {
25
+ if (!('version' in value) || value['version'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AgentVersionPickFromJSON(json) {
30
+ return AgentVersionPickFromJSONTyped(json, false);
31
+ }
32
+ function AgentVersionPickFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'version': json['version'],
38
+ };
39
+ }
40
+ function AgentVersionPickToJSON(json) {
41
+ return AgentVersionPickToJSONTyped(json, false);
42
+ }
43
+ function AgentVersionPickToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'version': value['version'],
49
+ };
50
+ }
@@ -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;