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
@@ -43,12 +43,12 @@ export interface ListAgentConversationsRequest {
43
43
  */
44
44
  export declare class AgentConversationsApi extends runtime.BaseAPI {
45
45
  /**
46
- * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign through the owner-identity route the share links use. The gateway still checks the ids against the artifact\'s real owner.
46
+ * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign with the owner\'s identity, as share links do. The artifact service still checks the ids against the artifact\'s real owner. The URL is a presigned S3 URL while the file is plaintext; clients that can follow file-gateway URLs use the v2 route.
47
47
  * Agent Conversation Artifact Download Url Route
48
48
  */
49
49
  agentConversationArtifactDownloadUrlRaw(requestParameters: AgentConversationArtifactDownloadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DownloadUrlResponse>>;
50
50
  /**
51
- * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign through the owner-identity route the share links use. The gateway still checks the ids against the artifact\'s real owner.
51
+ * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign with the owner\'s identity, as share links do. The artifact service still checks the ids against the artifact\'s real owner. The URL is a presigned S3 URL while the file is plaintext; clients that can follow file-gateway URLs use the v2 route.
52
52
  * Agent Conversation Artifact Download Url Route
53
53
  */
54
54
  agentConversationArtifactDownloadUrl(requestParameters: AgentConversationArtifactDownloadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DownloadUrlResponse>;
@@ -21,7 +21,7 @@ const index_js_1 = require("../models/index.js");
21
21
  */
22
22
  class AgentConversationsApi extends runtime.BaseAPI {
23
23
  /**
24
- * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign through the owner-identity route the share links use. The gateway still checks the ids against the artifact\'s real owner.
24
+ * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign with the owner\'s identity, as share links do. The artifact service still checks the ids against the artifact\'s real owner. The URL is a presigned S3 URL while the file is plaintext; clients that can follow file-gateway URLs use the v2 route.
25
25
  * Agent Conversation Artifact Download Url Route
26
26
  */
27
27
  async agentConversationArtifactDownloadUrlRaw(requestParameters, initOverrides) {
@@ -58,7 +58,7 @@ class AgentConversationsApi extends runtime.BaseAPI {
58
58
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.DownloadUrlResponseFromJSON)(jsonValue));
59
59
  }
60
60
  /**
61
- * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign through the owner-identity route the share links use. The gateway still checks the ids against the artifact\'s real owner.
61
+ * Presign one file of a session from the log, signed on each click. The file belongs to the session\'s user, not to the caller, so the in-app presign (scoped to the caller) would 404. Instead: 1. List the session\'s artifacts as its owner and require ``artifact_id`` among them. Without this check, an agent owner could presign any file of that user by guessing an id, not just this session\'s. 2. Presign with the owner\'s identity, as share links do. The artifact service still checks the ids against the artifact\'s real owner. The URL is a presigned S3 URL while the file is plaintext; clients that can follow file-gateway URLs use the v2 route.
62
62
  * Agent Conversation Artifact Download Url Route
63
63
  */
64
64
  async agentConversationArtifactDownloadUrl(requestParameters, initOverrides) {
@@ -10,12 +10,25 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { AgentCreate, AgentResource, AgentSearchChannel, AgentSettingsResponse, AgentTemplateResource, AgentUpdate, EntityCategory, EntityListAgentResource, EntityListAgentTemplateResource, FileNodeView, FileWriteBody, InstructionsBody, InstructionsResponse, PageFileNodeView, PublishRequest, Scope } from '../models/index.js';
13
+ import type { AgentContentsResource, AgentCreate, AgentDeploy, AgentDraftResource, AgentHistoryResource, AgentResource, AgentSearchChannel, AgentSettingsResponse, AgentTemplateResource, AgentUpdate, AgentVersionCreate, AgentVersionDiffResource, AgentVersionPick, AgentVersionResource, EntityCategory, EntityListAgentResource, EntityListAgentTemplateResource, FileNodeView, FileWriteBody, InstructionsBody, InstructionsResponse, PageFileNodeView, PublishRequest, Scope, SkillUpdateResource } from '../models/index.js';
14
+ export interface AcceptSkillUpdateRequest {
15
+ agentId: string;
16
+ skillId: string;
17
+ }
18
+ export interface BranchFromVersionRequest {
19
+ agentId: string;
20
+ agentVersionPick: AgentVersionPick;
21
+ }
14
22
  export interface CloneAgentRequest {
15
23
  agentId: string;
16
24
  origin?: CloneAgentOriginEnum;
17
25
  xPanjaOrigin?: CloneAgentXPanjaOriginEnum;
18
26
  }
27
+ export interface CompareVersionsRequest {
28
+ agentId: string;
29
+ fromVersion?: number | null;
30
+ toVersion?: number | null;
31
+ }
19
32
  export interface CreateAgentRequest {
20
33
  agentCreate: AgentCreate;
21
34
  origin?: CreateAgentOriginEnum;
@@ -24,8 +37,13 @@ export interface CreateAgentRequest {
24
37
  export interface DeleteAgentRequest {
25
38
  agentId: string;
26
39
  }
40
+ export interface DeleteVersionRequest {
41
+ agentId: string;
42
+ version: number;
43
+ }
27
44
  export interface DeployAgentRequest {
28
45
  agentId: string;
46
+ agentDeploy?: AgentDeploy;
29
47
  }
30
48
  export interface GetAgentRequest {
31
49
  agentId: string;
@@ -45,9 +63,16 @@ export interface GetAgentSettingsSchemaRequest {
45
63
  export interface GetAgentTemplateRequest {
46
64
  templateId: string;
47
65
  }
66
+ export interface GetDraftRequest {
67
+ agentId: string;
68
+ }
48
69
  export interface GetInstructionsRequest {
49
70
  agentId: string;
50
71
  }
72
+ export interface GetVersionRequest {
73
+ agentId: string;
74
+ version: number;
75
+ }
51
76
  export interface ListAgentFileHistoryRequest {
52
77
  agentId: string;
53
78
  filePath: string;
@@ -76,6 +101,15 @@ export interface ListAgentsRequest {
76
101
  origin?: ListAgentsOriginEnum;
77
102
  xPanjaOrigin?: ListAgentsXPanjaOriginEnum;
78
103
  }
104
+ export interface ListHistoryRequest {
105
+ agentId: string;
106
+ }
107
+ export interface ListSkillUpdatesRequest {
108
+ agentId: string;
109
+ }
110
+ export interface ListVersionsRequest {
111
+ agentId: string;
112
+ }
79
113
  export interface PatchAgentSettingsRequest {
80
114
  agentId: string;
81
115
  body: object;
@@ -97,9 +131,25 @@ export interface PutInstructionsRequest {
97
131
  agentId: string;
98
132
  instructionsBody: InstructionsBody;
99
133
  }
134
+ export interface ResumeAgentRequest {
135
+ agentId: string;
136
+ }
137
+ export interface SaveVersionRequest {
138
+ agentId: string;
139
+ agentVersionCreate: AgentVersionCreate;
140
+ }
100
141
  export interface UndeployAgentRequest {
101
142
  agentId: string;
102
143
  }
144
+ export interface UndoAttachmentEditRequest {
145
+ agentId: string;
146
+ kind: UndoAttachmentEditKindEnum;
147
+ targetId: string;
148
+ }
149
+ export interface UndoFileEditRequest {
150
+ agentId: string;
151
+ path: string;
152
+ }
103
153
  export interface UnpublishAgentRequest {
104
154
  agentId: string;
105
155
  publishRequest?: PublishRequest;
@@ -112,6 +162,26 @@ export interface UpdateAgentRequest {
112
162
  *
113
163
  */
114
164
  export declare class AgentsApi extends runtime.BaseAPI {
165
+ /**
166
+ * Move the whole skill to its current files in the draft.
167
+ * Accept Skill Update
168
+ */
169
+ acceptSkillUpdateRaw(requestParameters: AcceptSkillUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentDraftResource>>;
170
+ /**
171
+ * Move the whole skill to its current files in the draft.
172
+ * Accept Skill Update
173
+ */
174
+ acceptSkillUpdate(requestParameters: AcceptSkillUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentDraftResource>;
175
+ /**
176
+ * Replace the draft so it reads as ``version`` (\"Edit from vN\").
177
+ * Branch From Version
178
+ */
179
+ branchFromVersionRaw(requestParameters: BranchFromVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentDraftResource>>;
180
+ /**
181
+ * Replace the draft so it reads as ``version`` (\"Edit from vN\").
182
+ * Branch From Version
183
+ */
184
+ branchFromVersion(requestParameters: BranchFromVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentDraftResource>;
115
185
  /**
116
186
  * Clone any agent the caller can *see* into a fresh private copy they own (no ownership required — clone is the non-owner\'s path to editing). Panja deep-clones skills + copies MCP/collection bindings; the clone is born ``user``-scoped. With ``origin=managed_agents`` the clone is tagged as a managed agent in ``draft`` (deploy state is never copied).
117
187
  * Clone Agent
@@ -122,6 +192,16 @@ export declare class AgentsApi extends runtime.BaseAPI {
122
192
  * Clone Agent
123
193
  */
124
194
  cloneAgent(requestParameters: CloneAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentResource>;
195
+ /**
196
+ * What ``toVersion`` changes relative to ``fromVersion``. Omitted ``fromVersion`` is the live version (the deploy screen); omitted ``toVersion`` is the draft (the save dialog).
197
+ * Compare Versions
198
+ */
199
+ compareVersionsRaw(requestParameters: CompareVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentVersionDiffResource>>;
200
+ /**
201
+ * What ``toVersion`` changes relative to ``fromVersion``. Omitted ``fromVersion`` is the live version (the deploy screen); omitted ``toVersion`` is the draft (the save dialog).
202
+ * Compare Versions
203
+ */
204
+ compareVersions(requestParameters: CompareVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentVersionDiffResource>;
125
205
  /**
126
206
  * Create an agent, born ``user``-scoped and owned by the caller. ``llm_config`` is deployment-gated (ACCEPT_AGENT_LLM_CONFIG, same rule as v1): where disabled a non-null value is a 400, and the server stamps the fleet default so a fresh agent runs out of the box. ``instructions``, if given, is written as the initial ``AGENT.md``. ``origin=managed_agents`` also tags the new agent as a managed agent (``draft``) once the gateway create has succeeded; the gateway call itself is unchanged.
127
207
  * Create Agent
@@ -143,12 +223,22 @@ export declare class AgentsApi extends runtime.BaseAPI {
143
223
  */
144
224
  deleteAgent(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
145
225
  /**
146
- * Move a managed agent from ``draft`` to ``deployed`` so managed-agent API sessions (``origin=managed_agents``) can run against it. Idempotent. The UI labels this *Publish*; the API noun is ``deploy`` because ``/publish`` already means widening the agent\'s audience (scope), which deploying does not change.
226
+ * Delete a never-live version; 409 ``VERSION_WAS_LIVE`` otherwise.
227
+ * Delete Version
228
+ */
229
+ deleteVersionRaw(requestParameters: DeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
230
+ /**
231
+ * Delete a never-live version; 409 ``VERSION_WAS_LIVE`` otherwise.
232
+ * Delete Version
233
+ */
234
+ deleteVersion(requestParameters: DeleteVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
235
+ /**
236
+ * Make a saved version what end users get, on every surface. With ``version``, that version goes live (newer or older: a rollback is a deploy of an older one); 409 ``MISSING_DEPENDENCIES`` names anything it uses that was deleted. Without a body, the newest saved version goes live (idempotent), as before versions. The UI labels this *Publish*; the API noun is ``deploy`` because ``/publish`` already means widening the agent\'s audience (scope), which deploying does not change.
147
237
  * Deploy Agent
148
238
  */
149
239
  deployAgentRaw(requestParameters: DeployAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentResource>>;
150
240
  /**
151
- * Move a managed agent from ``draft`` to ``deployed`` so managed-agent API sessions (``origin=managed_agents``) can run against it. Idempotent. The UI labels this *Publish*; the API noun is ``deploy`` because ``/publish`` already means widening the agent\'s audience (scope), which deploying does not change.
241
+ * Make a saved version what end users get, on every surface. With ``version``, that version goes live (newer or older: a rollback is a deploy of an older one); 409 ``MISSING_DEPENDENCIES`` names anything it uses that was deleted. Without a body, the newest saved version goes live (idempotent), as before versions. The UI labels this *Publish*; the API noun is ``deploy`` because ``/publish`` already means widening the agent\'s audience (scope), which deploying does not change.
152
242
  * Deploy Agent
153
243
  */
154
244
  deployAgent(requestParameters: DeployAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentResource>;
@@ -202,6 +292,16 @@ export declare class AgentsApi extends runtime.BaseAPI {
202
292
  * Get Agent Template
203
293
  */
204
294
  getAgentTemplate(requestParameters: GetAgentTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentTemplateResource>;
295
+ /**
296
+ * The draft (what Preview runs) and whether it has unsaved changes.
297
+ * Get Draft
298
+ */
299
+ getDraftRaw(requestParameters: GetDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentDraftResource>>;
300
+ /**
301
+ * The draft (what Preview runs) and whether it has unsaved changes.
302
+ * Get Draft
303
+ */
304
+ getDraft(requestParameters: GetDraftRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentDraftResource>;
205
305
  /**
206
306
  * Get Instructions
207
307
  */
@@ -210,6 +310,16 @@ export declare class AgentsApi extends runtime.BaseAPI {
210
310
  * Get Instructions
211
311
  */
212
312
  getInstructions(requestParameters: GetInstructionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InstructionsResponse>;
313
+ /**
314
+ * What a saved version is made of (read-only).
315
+ * Get Version
316
+ */
317
+ getVersionRaw(requestParameters: GetVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentContentsResource>>;
318
+ /**
319
+ * What a saved version is made of (read-only).
320
+ * Get Version
321
+ */
322
+ getVersion(requestParameters: GetVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentContentsResource>;
213
323
  /**
214
324
  * List Agent File History Route
215
325
  */
@@ -246,6 +356,36 @@ export declare class AgentsApi extends runtime.BaseAPI {
246
356
  * List Agents
247
357
  */
248
358
  listAgents(requestParameters?: ListAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EntityListAgentResource>;
359
+ /**
360
+ * Every deploy, rollback, pause and resume, newest first.
361
+ * List History
362
+ */
363
+ listHistoryRaw(requestParameters: ListHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentHistoryResource>>>;
364
+ /**
365
+ * Every deploy, rollback, pause and resume, newest first.
366
+ * List History
367
+ */
368
+ listHistory(requestParameters: ListHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentHistoryResource>>;
369
+ /**
370
+ * Skills whose files changed since the agent pinned them.
371
+ * List Skill Updates
372
+ */
373
+ listSkillUpdatesRaw(requestParameters: ListSkillUpdatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SkillUpdateResource>>>;
374
+ /**
375
+ * Skills whose files changed since the agent pinned them.
376
+ * List Skill Updates
377
+ */
378
+ listSkillUpdates(requestParameters: ListSkillUpdatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SkillUpdateResource>>;
379
+ /**
380
+ * Saved versions, newest first (deleted ones left out).
381
+ * List Versions
382
+ */
383
+ listVersionsRaw(requestParameters: ListVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentVersionResource>>>;
384
+ /**
385
+ * Saved versions, newest first (deleted ones left out).
386
+ * List Versions
387
+ */
388
+ listVersions(requestParameters: ListVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentVersionResource>>;
249
389
  /**
250
390
  * JSON Merge Patch (RFC 7396) onto the latest settings; ``null`` removes a key.
251
391
  * Patch Agent Settings
@@ -293,15 +433,55 @@ export declare class AgentsApi extends runtime.BaseAPI {
293
433
  */
294
434
  putInstructions(requestParameters: PutInstructionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InstructionsResponse>;
295
435
  /**
296
- * Move a managed agent back to ``draft``. New API sessions and the next turn of existing ones get 409 ``AGENT_NOT_DEPLOYED``; the builder and Playground keep working. Idempotent.
436
+ * Bring the paused version back live; 409 ``NOT_PAUSED`` otherwise.
437
+ * Resume Agent
438
+ */
439
+ resumeAgentRaw(requestParameters: ResumeAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentResource>>;
440
+ /**
441
+ * Bring the paused version back live; 409 ``NOT_PAUSED`` otherwise.
442
+ * Resume Agent
443
+ */
444
+ resumeAgent(requestParameters: ResumeAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentResource>;
445
+ /**
446
+ * Save the draft as the next version; 409 ``NO_CHANGES`` on an empty draft. Nothing is deployed.
447
+ * Save Version
448
+ */
449
+ saveVersionRaw(requestParameters: SaveVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentVersionResource>>;
450
+ /**
451
+ * Save the draft as the next version; 409 ``NO_CHANGES`` on an empty draft. Nothing is deployed.
452
+ * Save Version
453
+ */
454
+ saveVersion(requestParameters: SaveVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentVersionResource>;
455
+ /**
456
+ * Pause the live version: every surface stops answering (API sessions get 409 ``AGENT_NOT_DEPLOYED`` on their next turn) and ``/resume`` brings the same version back. The builder and Playground keep working. Idempotent: a no-op when nothing is live.
297
457
  * Undeploy Agent
298
458
  */
299
459
  undeployAgentRaw(requestParameters: UndeployAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentResource>>;
300
460
  /**
301
- * Move a managed agent back to ``draft``. New API sessions and the next turn of existing ones get 409 ``AGENT_NOT_DEPLOYED``; the builder and Playground keep working. Idempotent.
461
+ * Pause the live version: every surface stops answering (API sessions get 409 ``AGENT_NOT_DEPLOYED`` on their next turn) and ``/resume`` brings the same version back. The builder and Playground keep working. Idempotent: a no-op when nothing is live.
302
462
  * Undeploy Agent
303
463
  */
304
464
  undeployAgent(requestParameters: UndeployAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentResource>;
465
+ /**
466
+ * Undo the draft\'s attach or detach of one skill / app / knowledge base / sub-agent.
467
+ * Undo Attachment Edit
468
+ */
469
+ undoAttachmentEditRaw(requestParameters: UndoAttachmentEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentDraftResource>>;
470
+ /**
471
+ * Undo the draft\'s attach or detach of one skill / app / knowledge base / sub-agent.
472
+ * Undo Attachment Edit
473
+ */
474
+ undoAttachmentEdit(requestParameters: UndoAttachmentEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentDraftResource>;
475
+ /**
476
+ * Undo the draft\'s edit or removal of one file.
477
+ * Undo File Edit
478
+ */
479
+ undoFileEditRaw(requestParameters: UndoFileEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentDraftResource>>;
480
+ /**
481
+ * Undo the draft\'s edit or removal of one file.
482
+ * Undo File Edit
483
+ */
484
+ undoFileEdit(requestParameters: UndoFileEditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentDraftResource>;
305
485
  /**
306
486
  * Narrow the agent back to the owner\'s private (``user``) scope in one move. Owner-only; a gateway 409 (a shared channel/default would be left dangling) surfaces as ``CHAT_CONFLICT``.
307
487
  * Unpublish Agent
@@ -379,3 +559,13 @@ export declare const ListAgentsXPanjaOriginEnum: {
379
559
  readonly ManagedAgents: "managed_agents";
380
560
  };
381
561
  export type ListAgentsXPanjaOriginEnum = typeof ListAgentsXPanjaOriginEnum[keyof typeof ListAgentsXPanjaOriginEnum];
562
+ /**
563
+ * @export
564
+ */
565
+ export declare const UndoAttachmentEditKindEnum: {
566
+ readonly Skill: "skill";
567
+ readonly App: "app";
568
+ readonly Collection: "collection";
569
+ readonly Subagent: "subagent";
570
+ };
571
+ export type UndoAttachmentEditKindEnum = typeof UndoAttachmentEditKindEnum[keyof typeof UndoAttachmentEditKindEnum];