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
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AgentSubagentEntry
20
+ */
21
+ export interface AgentSubagentEntry {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AgentSubagentEntry
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof AgentSubagentEntry
32
+ */
33
+ enabled: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AgentSubagentEntry interface.
38
+ */
39
+ export function instanceOfAgentSubagentEntry(value: object): value is AgentSubagentEntry {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AgentSubagentEntryFromJSON(json: any): AgentSubagentEntry {
46
+ return AgentSubagentEntryFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AgentSubagentEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSubagentEntry {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'enabled': json['enabled'],
57
+ };
58
+ }
59
+
60
+ export function AgentSubagentEntryToJSON(json: any): AgentSubagentEntry {
61
+ return AgentSubagentEntryToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AgentSubagentEntryToJSONTyped(value?: AgentSubagentEntry | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'enabled': value['enabled'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AgentVersionCreate
20
+ */
21
+ export interface AgentVersionCreate {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AgentVersionCreate
26
+ */
27
+ note?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AgentVersionCreate interface.
32
+ */
33
+ export function instanceOfAgentVersionCreate(value: object): value is AgentVersionCreate {
34
+ return true;
35
+ }
36
+
37
+ export function AgentVersionCreateFromJSON(json: any): AgentVersionCreate {
38
+ return AgentVersionCreateFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function AgentVersionCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionCreate {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'note': json['note'] == null ? undefined : json['note'],
48
+ };
49
+ }
50
+
51
+ export function AgentVersionCreateToJSON(json: any): AgentVersionCreate {
52
+ return AgentVersionCreateToJSONTyped(json, false);
53
+ }
54
+
55
+ export function AgentVersionCreateToJSONTyped(value?: AgentVersionCreate | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'note': value['note'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,154 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { AgentAttachmentDiff } from './AgentAttachmentDiff.js';
17
+ import {
18
+ AgentAttachmentDiffFromJSON,
19
+ AgentAttachmentDiffFromJSONTyped,
20
+ AgentAttachmentDiffToJSON,
21
+ AgentAttachmentDiffToJSONTyped,
22
+ } from './AgentAttachmentDiff.js';
23
+
24
+ /**
25
+ * What ``toVersion`` changes relative to ``fromVersion`` (-2 = draft).
26
+ * @export
27
+ * @interface AgentVersionDiffResource
28
+ */
29
+ export interface AgentVersionDiffResource {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AgentVersionDiffResource
34
+ */
35
+ fromVersion?: number | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AgentVersionDiffResource
40
+ */
41
+ toVersion: number;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof AgentVersionDiffResource
46
+ */
47
+ filesAdded: Array<string>;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof AgentVersionDiffResource
52
+ */
53
+ filesRemoved: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof AgentVersionDiffResource
58
+ */
59
+ filesChanged: Array<string>;
60
+ /**
61
+ *
62
+ * @type {AgentAttachmentDiff}
63
+ * @memberof AgentVersionDiffResource
64
+ */
65
+ skills: AgentAttachmentDiff;
66
+ /**
67
+ *
68
+ * @type {AgentAttachmentDiff}
69
+ * @memberof AgentVersionDiffResource
70
+ */
71
+ apps: AgentAttachmentDiff;
72
+ /**
73
+ *
74
+ * @type {AgentAttachmentDiff}
75
+ * @memberof AgentVersionDiffResource
76
+ */
77
+ collections: AgentAttachmentDiff;
78
+ /**
79
+ *
80
+ * @type {AgentAttachmentDiff}
81
+ * @memberof AgentVersionDiffResource
82
+ */
83
+ subagents: AgentAttachmentDiff;
84
+ /**
85
+ *
86
+ * @type {Array<string>}
87
+ * @memberof AgentVersionDiffResource
88
+ */
89
+ skillsUpdated: Array<string>;
90
+ }
91
+
92
+ /**
93
+ * Check if a given object implements the AgentVersionDiffResource interface.
94
+ */
95
+ export function instanceOfAgentVersionDiffResource(value: object): value is AgentVersionDiffResource {
96
+ if (!('toVersion' in value) || value['toVersion'] === undefined) return false;
97
+ if (!('filesAdded' in value) || value['filesAdded'] === undefined) return false;
98
+ if (!('filesRemoved' in value) || value['filesRemoved'] === undefined) return false;
99
+ if (!('filesChanged' in value) || value['filesChanged'] === undefined) return false;
100
+ if (!('skills' in value) || value['skills'] === undefined) return false;
101
+ if (!('apps' in value) || value['apps'] === undefined) return false;
102
+ if (!('collections' in value) || value['collections'] === undefined) return false;
103
+ if (!('subagents' in value) || value['subagents'] === undefined) return false;
104
+ if (!('skillsUpdated' in value) || value['skillsUpdated'] === undefined) return false;
105
+ return true;
106
+ }
107
+
108
+ export function AgentVersionDiffResourceFromJSON(json: any): AgentVersionDiffResource {
109
+ return AgentVersionDiffResourceFromJSONTyped(json, false);
110
+ }
111
+
112
+ export function AgentVersionDiffResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionDiffResource {
113
+ if (json == null) {
114
+ return json;
115
+ }
116
+ return {
117
+
118
+ 'fromVersion': json['fromVersion'] == null ? undefined : json['fromVersion'],
119
+ 'toVersion': json['toVersion'],
120
+ 'filesAdded': json['filesAdded'],
121
+ 'filesRemoved': json['filesRemoved'],
122
+ 'filesChanged': json['filesChanged'],
123
+ 'skills': AgentAttachmentDiffFromJSON(json['skills']),
124
+ 'apps': AgentAttachmentDiffFromJSON(json['apps']),
125
+ 'collections': AgentAttachmentDiffFromJSON(json['collections']),
126
+ 'subagents': AgentAttachmentDiffFromJSON(json['subagents']),
127
+ 'skillsUpdated': json['skillsUpdated'],
128
+ };
129
+ }
130
+
131
+ export function AgentVersionDiffResourceToJSON(json: any): AgentVersionDiffResource {
132
+ return AgentVersionDiffResourceToJSONTyped(json, false);
133
+ }
134
+
135
+ export function AgentVersionDiffResourceToJSONTyped(value?: AgentVersionDiffResource | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'fromVersion': value['fromVersion'],
143
+ 'toVersion': value['toVersion'],
144
+ 'filesAdded': value['filesAdded'],
145
+ 'filesRemoved': value['filesRemoved'],
146
+ 'filesChanged': value['filesChanged'],
147
+ 'skills': AgentAttachmentDiffToJSON(value['skills']),
148
+ 'apps': AgentAttachmentDiffToJSON(value['apps']),
149
+ 'collections': AgentAttachmentDiffToJSON(value['collections']),
150
+ 'subagents': AgentAttachmentDiffToJSON(value['subagents']),
151
+ 'skillsUpdated': value['skillsUpdated'],
152
+ };
153
+ }
154
+
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AgentVersionPick
20
+ */
21
+ export interface AgentVersionPick {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AgentVersionPick
26
+ */
27
+ version: number;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AgentVersionPick interface.
32
+ */
33
+ export function instanceOfAgentVersionPick(value: object): value is AgentVersionPick {
34
+ if (!('version' in value) || value['version'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AgentVersionPickFromJSON(json: any): AgentVersionPick {
39
+ return AgentVersionPickFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AgentVersionPickFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionPick {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'version': json['version'],
49
+ };
50
+ }
51
+
52
+ export function AgentVersionPickToJSON(json: any): AgentVersionPick {
53
+ return AgentVersionPickToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AgentVersionPickToJSONTyped(value?: AgentVersionPick | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'version': value['version'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AgentVersionResource
20
+ */
21
+ export interface AgentVersionResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof AgentVersionResource
26
+ */
27
+ version: number;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof AgentVersionResource
32
+ */
33
+ committedAt: Date;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AgentVersionResource
38
+ */
39
+ note: string;
40
+ /**
41
+ *
42
+ * @type {boolean}
43
+ * @memberof AgentVersionResource
44
+ */
45
+ everLive: boolean;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AgentVersionResource
50
+ */
51
+ createdBy?: string | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the AgentVersionResource interface.
56
+ */
57
+ export function instanceOfAgentVersionResource(value: object): value is AgentVersionResource {
58
+ if (!('version' in value) || value['version'] === undefined) return false;
59
+ if (!('committedAt' in value) || value['committedAt'] === undefined) return false;
60
+ if (!('note' in value) || value['note'] === undefined) return false;
61
+ if (!('everLive' in value) || value['everLive'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function AgentVersionResourceFromJSON(json: any): AgentVersionResource {
66
+ return AgentVersionResourceFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function AgentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionResource {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'version': json['version'],
76
+ 'committedAt': (new Date(json['committedAt'])),
77
+ 'note': json['note'],
78
+ 'everLive': json['everLive'],
79
+ 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
80
+ };
81
+ }
82
+
83
+ export function AgentVersionResourceToJSON(json: any): AgentVersionResource {
84
+ return AgentVersionResourceToJSONTyped(json, false);
85
+ }
86
+
87
+ export function AgentVersionResourceToJSONTyped(value?: AgentVersionResource | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'version': value['version'],
95
+ 'committedAt': ((value['committedAt']).toISOString()),
96
+ 'note': value['note'],
97
+ 'everLive': value['everLive'],
98
+ 'createdBy': value['createdBy'],
99
+ };
100
+ }
101
+
@@ -141,6 +141,18 @@ export interface AppResource {
141
141
  * @memberof AppResource
142
142
  */
143
143
  requiresConnection: boolean;
144
+ /**
145
+ *
146
+ * @type {string}
147
+ * @memberof AppResource
148
+ */
149
+ accountLabel?: string | null;
150
+ /**
151
+ *
152
+ * @type {string}
153
+ * @memberof AppResource
154
+ */
155
+ serverUrl?: string | null;
144
156
  /**
145
157
  *
146
158
  * @type {boolean}
@@ -290,6 +302,8 @@ export function AppResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
290
302
  'highlight': json['highlight'] == null ? undefined : ((json['highlight'] as Array<any>).map(FieldHighlightFromJSON)),
291
303
  'connected': json['connected'],
292
304
  'requiresConnection': json['requiresConnection'],
305
+ 'accountLabel': json['accountLabel'] == null ? undefined : json['accountLabel'],
306
+ 'serverUrl': json['serverUrl'] == null ? undefined : json['serverUrl'],
293
307
  'boundToAgent': json['boundToAgent'] == null ? undefined : json['boundToAgent'],
294
308
  'iconUrl': json['iconUrl'] == null ? undefined : json['iconUrl'],
295
309
  'category': json['category'] == null ? undefined : AppCategoryFromJSON(json['category']),
@@ -331,6 +345,8 @@ export function AppResourceToJSONTyped(value?: AppResource | null, ignoreDiscrim
331
345
  'highlight': value['highlight'] == null ? undefined : ((value['highlight'] as Array<any>).map(FieldHighlightToJSON)),
332
346
  'connected': value['connected'],
333
347
  'requiresConnection': value['requiresConnection'],
348
+ 'accountLabel': value['accountLabel'],
349
+ 'serverUrl': value['serverUrl'],
334
350
  'boundToAgent': value['boundToAgent'],
335
351
  'iconUrl': value['iconUrl'],
336
352
  'category': AppCategoryToJSON(value['category']),
@@ -81,6 +81,12 @@ export interface ResponseInput {
81
81
  * @memberof ResponseInput
82
82
  */
83
83
  endUserId?: string | null;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof ResponseInput
88
+ */
89
+ agentVersion?: number | null;
84
90
  }
85
91
 
86
92
 
@@ -125,6 +131,7 @@ export function ResponseInputFromJSONTyped(json: any, ignoreDiscriminator: boole
125
131
  'retryOf': json['retryOf'] == null ? undefined : json['retryOf'],
126
132
  'surface': json['surface'] == null ? undefined : json['surface'],
127
133
  'endUserId': json['endUserId'] == null ? undefined : json['endUserId'],
134
+ 'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
128
135
  };
129
136
  }
130
137
 
@@ -148,6 +155,7 @@ export function ResponseInputToJSONTyped(value?: ResponseInput | null, ignoreDis
148
155
  'retryOf': value['retryOf'],
149
156
  'surface': value['surface'],
150
157
  'endUserId': value['endUserId'],
158
+ 'agentVersion': value['agentVersion'],
151
159
  };
152
160
  }
153
161
 
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sarvam Agents API
5
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ * Contact: support@sarvam.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SkillUpdateResource
20
+ */
21
+ export interface SkillUpdateResource {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SkillUpdateResource
26
+ */
27
+ skillId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SkillUpdateResource
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the SkillUpdateResource interface.
38
+ */
39
+ export function instanceOfSkillUpdateResource(value: object): value is SkillUpdateResource {
40
+ if (!('skillId' in value) || value['skillId'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function SkillUpdateResourceFromJSON(json: any): SkillUpdateResource {
46
+ return SkillUpdateResourceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function SkillUpdateResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillUpdateResource {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'skillId': json['skillId'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function SkillUpdateResourceToJSON(json: any): SkillUpdateResource {
61
+ return SkillUpdateResourceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function SkillUpdateResourceToJSONTyped(value?: SkillUpdateResource | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'skillId': value['skillId'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -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';