sarvam-agents-client 0.1.2 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/apis/AgentConversationsApi.d.ts +44 -1
- package/dist/apis/AgentConversationsApi.js +104 -1
- package/dist/apis/AgentsApi.d.ts +77 -5
- package/dist/apis/AgentsApi.js +163 -5
- package/dist/apis/AppsApi.d.ts +43 -1
- package/dist/apis/AppsApi.js +108 -0
- package/dist/apis/ArtifactsApi.d.ts +31 -1
- package/dist/apis/ArtifactsApi.js +82 -0
- package/dist/apis/CustomAPIsApi.d.ts +124 -0
- package/dist/apis/CustomAPIsApi.js +305 -0
- package/dist/apis/ModelsApi.d.ts +26 -0
- package/dist/apis/ModelsApi.js +52 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/compose/agent.d.ts +44 -0
- package/dist/compose/agent.js +222 -0
- package/dist/compose/builtins.d.ts +4 -0
- package/dist/compose/builtins.js +22 -0
- package/dist/compose/deploy.d.ts +30 -0
- package/dist/compose/deploy.js +146 -0
- package/dist/compose/errors.d.ts +48 -0
- package/dist/compose/errors.js +68 -0
- package/dist/compose/events.d.ts +63 -0
- package/dist/compose/events.js +100 -0
- package/dist/compose/fingerprint.d.ts +6 -0
- package/dist/compose/fingerprint.js +83 -0
- package/dist/compose/index.d.ts +13 -0
- package/dist/compose/index.js +33 -0
- package/dist/compose/run.d.ts +100 -0
- package/dist/compose/run.js +536 -0
- package/dist/compose/runState.d.ts +26 -0
- package/dist/compose/runState.js +79 -0
- package/dist/compose/settingsTransport.d.ts +24 -0
- package/dist/compose/settingsTransport.js +280 -0
- package/dist/compose/tools.d.ts +17 -0
- package/dist/compose/tools.js +44 -0
- package/dist/compose/transport.d.ts +34 -0
- package/dist/compose/transport.js +2 -0
- package/dist/esm/apis/AgentConversationsApi.d.ts +44 -1
- package/dist/esm/apis/AgentConversationsApi.js +104 -1
- package/dist/esm/apis/AgentsApi.d.ts +77 -5
- package/dist/esm/apis/AgentsApi.js +163 -5
- package/dist/esm/apis/AppsApi.d.ts +43 -1
- package/dist/esm/apis/AppsApi.js +109 -1
- package/dist/esm/apis/ArtifactsApi.d.ts +31 -1
- package/dist/esm/apis/ArtifactsApi.js +83 -1
- package/dist/esm/apis/CustomAPIsApi.d.ts +124 -0
- package/dist/esm/apis/CustomAPIsApi.js +301 -0
- package/dist/esm/apis/ModelsApi.d.ts +26 -0
- package/dist/esm/apis/ModelsApi.js +48 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/compose/agent.d.ts +44 -0
- package/dist/esm/compose/agent.js +218 -0
- package/dist/esm/compose/builtins.d.ts +4 -0
- package/dist/esm/compose/builtins.js +18 -0
- package/dist/esm/compose/deploy.d.ts +30 -0
- package/dist/esm/compose/deploy.js +137 -0
- package/dist/esm/compose/errors.d.ts +48 -0
- package/dist/esm/compose/errors.js +53 -0
- package/dist/esm/compose/events.d.ts +63 -0
- package/dist/esm/compose/events.js +97 -0
- package/dist/esm/compose/fingerprint.d.ts +6 -0
- package/dist/esm/compose/fingerprint.js +78 -0
- package/dist/esm/compose/index.d.ts +13 -0
- package/dist/esm/compose/index.js +8 -0
- package/dist/esm/compose/run.d.ts +100 -0
- package/dist/esm/compose/run.js +530 -0
- package/dist/esm/compose/runState.d.ts +26 -0
- package/dist/esm/compose/runState.js +75 -0
- package/dist/esm/compose/settingsTransport.d.ts +24 -0
- package/dist/esm/compose/settingsTransport.js +276 -0
- package/dist/esm/compose/tools.d.ts +17 -0
- package/dist/esm/compose/tools.js +34 -0
- package/dist/esm/compose/transport.d.ts +34 -0
- package/dist/esm/compose/transport.js +1 -0
- package/dist/esm/models/AgentChannelRef.d.ts +1 -0
- package/dist/esm/models/AgentChannelRef.js +2 -1
- package/dist/esm/models/AgentConversationDetail.d.ts +15 -2
- package/dist/esm/models/AgentConversationDetail.js +6 -4
- package/dist/esm/models/AgentConversationView.d.ts +11 -5
- package/dist/esm/models/AgentConversationView.js +4 -4
- package/dist/esm/models/AgentCreate.d.ts +8 -0
- package/dist/esm/models/AgentCreate.js +2 -0
- package/dist/esm/models/AgentCustomApiList.d.ts +33 -0
- package/dist/esm/models/AgentCustomApiList.js +44 -0
- package/dist/esm/models/AgentResource.d.ts +14 -0
- package/dist/esm/models/AgentResource.js +4 -0
- package/dist/esm/models/AgentSettingsResponse.d.ts +53 -0
- package/dist/esm/models/AgentSettingsResponse.js +52 -0
- package/dist/esm/models/AgentUpdate.d.ts +8 -0
- package/dist/esm/models/AgentUpdate.js +2 -0
- package/dist/esm/models/AppAccountView.d.ts +88 -0
- package/dist/esm/models/AppAccountView.js +79 -0
- package/dist/esm/models/AppAccountsView.d.ts +66 -0
- package/dist/esm/models/AppAccountsView.js +60 -0
- package/dist/esm/models/AppResource.d.ts +36 -0
- package/dist/esm/models/AppResource.js +12 -0
- package/dist/esm/models/AppResourceCheckView.d.ts +74 -0
- package/dist/esm/models/AppResourceCheckView.js +63 -0
- package/dist/esm/models/AppResourceView.d.ts +68 -0
- package/dist/esm/models/AppResourceView.js +67 -0
- package/dist/esm/models/AppResourcesView.d.ts +54 -0
- package/dist/esm/models/AppResourcesView.js +56 -0
- package/dist/esm/models/AppToolsResponse.d.ts +14 -0
- package/dist/esm/models/AppToolsResponse.js +4 -0
- package/dist/esm/models/AppView.d.ts +42 -0
- package/dist/esm/models/AppView.js +14 -0
- package/dist/esm/models/ArtifactVersionResponse.d.ts +94 -0
- package/dist/esm/models/ArtifactVersionResponse.js +80 -0
- package/dist/esm/models/AttachedAgent.d.ts +44 -0
- package/dist/esm/models/AttachedAgent.js +49 -0
- package/dist/esm/models/Auth.d.ts +30 -0
- package/dist/esm/models/Auth.js +52 -0
- package/dist/esm/models/BindCustomApiBody.d.ts +32 -0
- package/dist/esm/models/BindCustomApiBody.js +43 -0
- package/dist/esm/models/ConversationArtifact.d.ts +14 -0
- package/dist/esm/models/ConversationArtifact.js +9 -0
- package/dist/esm/models/CustomApi.d.ts +102 -0
- package/dist/esm/models/CustomApi.js +90 -0
- package/dist/esm/models/CustomApiBasicAuth.d.ts +51 -0
- package/dist/esm/models/CustomApiBasicAuth.js +57 -0
- package/dist/esm/models/CustomApiBearerAuth.d.ts +45 -0
- package/dist/esm/models/CustomApiBearerAuth.js +53 -0
- package/dist/esm/models/CustomApiCreate.d.ts +57 -0
- package/dist/esm/models/CustomApiCreate.js +56 -0
- package/dist/esm/models/CustomApiHeader.d.ts +44 -0
- package/dist/esm/models/CustomApiHeader.js +47 -0
- package/dist/esm/models/CustomApiHeadersAuth.d.ts +46 -0
- package/dist/esm/models/CustomApiHeadersAuth.js +54 -0
- package/dist/esm/models/CustomApiList.d.ts +64 -0
- package/dist/esm/models/CustomApiList.js +64 -0
- package/dist/esm/models/CustomApiName.d.ts +44 -0
- package/dist/esm/models/CustomApiName.js +49 -0
- package/dist/esm/models/CustomApiUpdate.d.ts +58 -0
- package/dist/esm/models/CustomApiUpdate.js +50 -0
- package/dist/esm/models/CustomApiUpdateAuth.d.ts +30 -0
- package/dist/esm/models/CustomApiUpdateAuth.js +52 -0
- package/dist/esm/models/ErrorDetailItem.d.ts +5 -0
- package/dist/esm/models/ListModels403Response.d.ts +23 -0
- package/dist/esm/models/ListModels403Response.js +45 -0
- package/dist/esm/models/ModelEndpointView.d.ts +38 -0
- package/dist/esm/models/ModelEndpointView.js +45 -0
- package/dist/esm/models/ModelView.d.ts +69 -0
- package/dist/esm/models/ModelView.js +56 -0
- package/dist/esm/models/ModelsResponse.d.ts +33 -0
- package/dist/esm/models/ModelsResponse.js +44 -0
- package/dist/esm/models/SettingsIssueView.d.ts +44 -0
- package/dist/esm/models/SettingsIssueView.js +51 -0
- package/dist/esm/models/VersionCommitBody.d.ts +44 -0
- package/dist/esm/models/VersionCommitBody.js +51 -0
- package/dist/esm/models/VersionUploadUrlBody.d.ts +32 -0
- package/dist/esm/models/VersionUploadUrlBody.js +43 -0
- package/dist/esm/models/index.d.ts +28 -0
- package/dist/esm/models/index.js +28 -0
- package/dist/models/AgentChannelRef.d.ts +1 -0
- package/dist/models/AgentChannelRef.js +2 -1
- package/dist/models/AgentConversationDetail.d.ts +15 -2
- package/dist/models/AgentConversationDetail.js +6 -4
- package/dist/models/AgentConversationView.d.ts +11 -5
- package/dist/models/AgentConversationView.js +4 -4
- package/dist/models/AgentCreate.d.ts +8 -0
- package/dist/models/AgentCreate.js +2 -0
- package/dist/models/AgentCustomApiList.d.ts +33 -0
- package/dist/models/AgentCustomApiList.js +51 -0
- package/dist/models/AgentResource.d.ts +14 -0
- package/dist/models/AgentResource.js +4 -0
- package/dist/models/AgentSettingsResponse.d.ts +53 -0
- package/dist/models/AgentSettingsResponse.js +59 -0
- package/dist/models/AgentUpdate.d.ts +8 -0
- package/dist/models/AgentUpdate.js +2 -0
- package/dist/models/AppAccountView.d.ts +88 -0
- package/dist/models/AppAccountView.js +87 -0
- package/dist/models/AppAccountsView.d.ts +66 -0
- package/dist/models/AppAccountsView.js +68 -0
- package/dist/models/AppResource.d.ts +36 -0
- package/dist/models/AppResource.js +12 -0
- package/dist/models/AppResourceCheckView.d.ts +74 -0
- package/dist/models/AppResourceCheckView.js +71 -0
- package/dist/models/AppResourceView.d.ts +68 -0
- package/dist/models/AppResourceView.js +74 -0
- package/dist/models/AppResourcesView.d.ts +54 -0
- package/dist/models/AppResourcesView.js +64 -0
- package/dist/models/AppToolsResponse.d.ts +14 -0
- package/dist/models/AppToolsResponse.js +4 -0
- package/dist/models/AppView.d.ts +42 -0
- package/dist/models/AppView.js +14 -0
- package/dist/models/ArtifactVersionResponse.d.ts +94 -0
- package/dist/models/ArtifactVersionResponse.js +88 -0
- package/dist/models/AttachedAgent.d.ts +44 -0
- package/dist/models/AttachedAgent.js +56 -0
- package/dist/models/Auth.d.ts +30 -0
- package/dist/models/Auth.js +58 -0
- package/dist/models/BindCustomApiBody.d.ts +32 -0
- package/dist/models/BindCustomApiBody.js +50 -0
- package/dist/models/ConversationArtifact.d.ts +14 -0
- package/dist/models/ConversationArtifact.js +10 -0
- package/dist/models/CustomApi.d.ts +102 -0
- package/dist/models/CustomApi.js +98 -0
- package/dist/models/CustomApiBasicAuth.d.ts +51 -0
- package/dist/models/CustomApiBasicAuth.js +65 -0
- package/dist/models/CustomApiBearerAuth.d.ts +45 -0
- package/dist/models/CustomApiBearerAuth.js +61 -0
- package/dist/models/CustomApiCreate.d.ts +57 -0
- package/dist/models/CustomApiCreate.js +63 -0
- package/dist/models/CustomApiHeader.d.ts +44 -0
- package/dist/models/CustomApiHeader.js +54 -0
- package/dist/models/CustomApiHeadersAuth.d.ts +46 -0
- package/dist/models/CustomApiHeadersAuth.js +62 -0
- package/dist/models/CustomApiList.d.ts +64 -0
- package/dist/models/CustomApiList.js +71 -0
- package/dist/models/CustomApiName.d.ts +44 -0
- package/dist/models/CustomApiName.js +56 -0
- package/dist/models/CustomApiUpdate.d.ts +58 -0
- package/dist/models/CustomApiUpdate.js +57 -0
- package/dist/models/CustomApiUpdateAuth.d.ts +30 -0
- package/dist/models/CustomApiUpdateAuth.js +58 -0
- package/dist/models/ErrorDetailItem.d.ts +5 -0
- package/dist/models/ListModels403Response.d.ts +23 -0
- package/dist/models/ListModels403Response.js +51 -0
- package/dist/models/ModelEndpointView.d.ts +38 -0
- package/dist/models/ModelEndpointView.js +52 -0
- package/dist/models/ModelView.d.ts +69 -0
- package/dist/models/ModelView.js +63 -0
- package/dist/models/ModelsResponse.d.ts +33 -0
- package/dist/models/ModelsResponse.js +51 -0
- package/dist/models/SettingsIssueView.d.ts +44 -0
- package/dist/models/SettingsIssueView.js +58 -0
- package/dist/models/VersionCommitBody.d.ts +44 -0
- package/dist/models/VersionCommitBody.js +58 -0
- package/dist/models/VersionUploadUrlBody.d.ts +32 -0
- package/dist/models/VersionUploadUrlBody.js +50 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +28 -0
- package/package.json +15 -2
- package/src/apis/AgentConversationsApi.ts +172 -3
- package/src/apis/AgentsApi.ts +242 -7
- package/src/apis/AppsApi.ts +174 -3
- package/src/apis/ArtifactsApi.ts +144 -0
- package/src/apis/ClarifyApi.ts +3 -3
- package/src/apis/CollectionsApi.ts +3 -3
- package/src/apis/ConversationsApi.ts +3 -3
- package/src/apis/CronsApi.ts +3 -3
- package/src/apis/CustomAPIsApi.ts +471 -0
- package/src/apis/MessagesApi.ts +3 -3
- package/src/apis/ModelsApi.ts +70 -0
- package/src/apis/QueueApi.ts +3 -3
- package/src/apis/ResponsesApi.ts +3 -3
- package/src/apis/SkillsApi.ts +3 -3
- package/src/apis/index.ts +2 -0
- package/src/compose/agent.ts +254 -0
- package/src/compose/builtins.ts +19 -0
- package/src/compose/deploy.ts +168 -0
- package/src/compose/errors.ts +66 -0
- package/src/compose/events.ts +122 -0
- package/src/compose/fingerprint.ts +74 -0
- package/src/compose/index.ts +13 -0
- package/src/compose/run.ts +601 -0
- package/src/compose/runState.ts +95 -0
- package/src/compose/settingsTransport.ts +299 -0
- package/src/compose/tools.ts +42 -0
- package/src/compose/transport.ts +48 -0
- package/src/models/AgentChannelRef.ts +2 -1
- package/src/models/AgentConversationDetail.ts +21 -5
- package/src/models/AgentConversationView.ts +15 -8
- package/src/models/AgentCreate.ts +8 -0
- package/src/models/AgentCustomApiList.ts +74 -0
- package/src/models/AgentResource.ts +16 -0
- package/src/models/AgentSettingsResponse.ts +99 -0
- package/src/models/AgentUpdate.ts +8 -0
- package/src/models/AppAccountView.ts +143 -0
- package/src/models/AppAccountsView.ts +118 -0
- package/src/models/AppResource.ts +48 -0
- package/src/models/AppResourceCheckView.ts +117 -0
- package/src/models/AppResourceView.ts +120 -0
- package/src/models/AppResourcesView.ts +102 -0
- package/src/models/AppToolsResponse.ts +16 -0
- package/src/models/AppView.ts +56 -0
- package/src/models/ArtifactVersionResponse.ts +155 -0
- package/src/models/AttachedAgent.ts +83 -0
- package/src/models/Auth.ts +84 -0
- package/src/models/BindCustomApiBody.ts +66 -0
- package/src/models/ConversationArtifact.ts +19 -0
- package/src/models/CustomApi.ts +175 -0
- package/src/models/CustomApiBasicAuth.ts +94 -0
- package/src/models/CustomApiBearerAuth.ts +85 -0
- package/src/models/CustomApiCreate.ts +108 -0
- package/src/models/CustomApiHeader.ts +82 -0
- package/src/models/CustomApiHeadersAuth.ts +93 -0
- package/src/models/CustomApiList.ts +120 -0
- package/src/models/CustomApiName.ts +83 -0
- package/src/models/CustomApiUpdate.ts +106 -0
- package/src/models/CustomApiUpdateAuth.ts +84 -0
- package/src/models/ErrorDetailItem.ts +5 -0
- package/src/models/ListModels403Response.ts +73 -0
- package/src/models/ModelEndpointView.ts +74 -0
- package/src/models/ModelView.ts +122 -0
- package/src/models/ModelsResponse.ts +74 -0
- package/src/models/SettingsIssueView.ts +84 -0
- package/src/models/VersionCommitBody.ts +84 -0
- package/src/models/VersionUploadUrlBody.ts +66 -0
- package/src/models/index.ts +28 -0
|
@@ -4,19 +4,30 @@ export * from './AgentChannelRef.js';
|
|
|
4
4
|
export * from './AgentConversationDetail.js';
|
|
5
5
|
export * from './AgentConversationView.js';
|
|
6
6
|
export * from './AgentCreate.js';
|
|
7
|
+
export * from './AgentCustomApiList.js';
|
|
7
8
|
export * from './AgentResource.js';
|
|
8
9
|
export * from './AgentSearchChannel.js';
|
|
10
|
+
export * from './AgentSettingsResponse.js';
|
|
9
11
|
export * from './AgentTemplateResource.js';
|
|
10
12
|
export * from './AgentUpdate.js';
|
|
11
13
|
export * from './ApiKeyBody.js';
|
|
14
|
+
export * from './AppAccountView.js';
|
|
15
|
+
export * from './AppAccountsView.js';
|
|
12
16
|
export * from './AppCategory.js';
|
|
13
17
|
export * from './AppConnectResponse.js';
|
|
14
18
|
export * from './AppResource.js';
|
|
19
|
+
export * from './AppResourceCheckView.js';
|
|
20
|
+
export * from './AppResourceView.js';
|
|
21
|
+
export * from './AppResourcesView.js';
|
|
15
22
|
export * from './AppToolView.js';
|
|
16
23
|
export * from './AppToolsResponse.js';
|
|
17
24
|
export * from './AppView.js';
|
|
18
25
|
export * from './ArtifactResponse.js';
|
|
26
|
+
export * from './ArtifactVersionResponse.js';
|
|
27
|
+
export * from './AttachedAgent.js';
|
|
28
|
+
export * from './Auth.js';
|
|
19
29
|
export * from './BindCollectionBody.js';
|
|
30
|
+
export * from './BindCustomApiBody.js';
|
|
20
31
|
export * from './Body.js';
|
|
21
32
|
export * from './Capabilities.js';
|
|
22
33
|
export * from './ChatError.js';
|
|
@@ -45,6 +56,16 @@ export * from './CronResource.js';
|
|
|
45
56
|
export * from './CronRunRead.js';
|
|
46
57
|
export * from './CronUpdate.js';
|
|
47
58
|
export * from './Currentscope.js';
|
|
59
|
+
export * from './CustomApi.js';
|
|
60
|
+
export * from './CustomApiBasicAuth.js';
|
|
61
|
+
export * from './CustomApiBearerAuth.js';
|
|
62
|
+
export * from './CustomApiCreate.js';
|
|
63
|
+
export * from './CustomApiHeader.js';
|
|
64
|
+
export * from './CustomApiHeadersAuth.js';
|
|
65
|
+
export * from './CustomApiList.js';
|
|
66
|
+
export * from './CustomApiName.js';
|
|
67
|
+
export * from './CustomApiUpdate.js';
|
|
68
|
+
export * from './CustomApiUpdateAuth.js';
|
|
48
69
|
export * from './DeliveryTarget.js';
|
|
49
70
|
export * from './DownloadUrlResponse.js';
|
|
50
71
|
export * from './EditQueuedInput.js';
|
|
@@ -84,9 +105,13 @@ export * from './InlineCreateSkillBody.js';
|
|
|
84
105
|
export * from './InputMessage.js';
|
|
85
106
|
export * from './InstructionsBody.js';
|
|
86
107
|
export * from './InstructionsResponse.js';
|
|
108
|
+
export * from './ListModels403Response.js';
|
|
87
109
|
export * from './MessagePart.js';
|
|
88
110
|
export * from './MessagesResponse.js';
|
|
89
111
|
export * from './MintUploadUrl403Response.js';
|
|
112
|
+
export * from './ModelEndpointView.js';
|
|
113
|
+
export * from './ModelView.js';
|
|
114
|
+
export * from './ModelsResponse.js';
|
|
90
115
|
export * from './PageAgentConversationView.js';
|
|
91
116
|
export * from './PageAppView.js';
|
|
92
117
|
export * from './PageCollectionBindingView.js';
|
|
@@ -113,6 +138,7 @@ export * from './SearchResult.js';
|
|
|
113
138
|
export * from './ServerSideIngestError.js';
|
|
114
139
|
export * from './ServerSideIngestFile.js';
|
|
115
140
|
export * from './ServerSideIngestResponse.js';
|
|
141
|
+
export * from './SettingsIssueView.js';
|
|
116
142
|
export * from './SkillDetailView.js';
|
|
117
143
|
export * from './SkillResource.js';
|
|
118
144
|
export * from './SkillUpdate.js';
|
|
@@ -133,3 +159,5 @@ export * from './UploadUrlBody.js';
|
|
|
133
159
|
export * from './UploadUrlResponse.js';
|
|
134
160
|
export * from './ValidationError.js';
|
|
135
161
|
export * from './ValidationErrorLocInner.js';
|
|
162
|
+
export * from './VersionCommitBody.js';
|
|
163
|
+
export * from './VersionUploadUrlBody.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -6,19 +6,30 @@ export * from './AgentChannelRef.js';
|
|
|
6
6
|
export * from './AgentConversationDetail.js';
|
|
7
7
|
export * from './AgentConversationView.js';
|
|
8
8
|
export * from './AgentCreate.js';
|
|
9
|
+
export * from './AgentCustomApiList.js';
|
|
9
10
|
export * from './AgentResource.js';
|
|
10
11
|
export * from './AgentSearchChannel.js';
|
|
12
|
+
export * from './AgentSettingsResponse.js';
|
|
11
13
|
export * from './AgentTemplateResource.js';
|
|
12
14
|
export * from './AgentUpdate.js';
|
|
13
15
|
export * from './ApiKeyBody.js';
|
|
16
|
+
export * from './AppAccountView.js';
|
|
17
|
+
export * from './AppAccountsView.js';
|
|
14
18
|
export * from './AppCategory.js';
|
|
15
19
|
export * from './AppConnectResponse.js';
|
|
16
20
|
export * from './AppResource.js';
|
|
21
|
+
export * from './AppResourceCheckView.js';
|
|
22
|
+
export * from './AppResourceView.js';
|
|
23
|
+
export * from './AppResourcesView.js';
|
|
17
24
|
export * from './AppToolView.js';
|
|
18
25
|
export * from './AppToolsResponse.js';
|
|
19
26
|
export * from './AppView.js';
|
|
20
27
|
export * from './ArtifactResponse.js';
|
|
28
|
+
export * from './ArtifactVersionResponse.js';
|
|
29
|
+
export * from './AttachedAgent.js';
|
|
30
|
+
export * from './Auth.js';
|
|
21
31
|
export * from './BindCollectionBody.js';
|
|
32
|
+
export * from './BindCustomApiBody.js';
|
|
22
33
|
export * from './Body.js';
|
|
23
34
|
export * from './Capabilities.js';
|
|
24
35
|
export * from './ChatError.js';
|
|
@@ -47,6 +58,16 @@ export * from './CronResource.js';
|
|
|
47
58
|
export * from './CronRunRead.js';
|
|
48
59
|
export * from './CronUpdate.js';
|
|
49
60
|
export * from './Currentscope.js';
|
|
61
|
+
export * from './CustomApi.js';
|
|
62
|
+
export * from './CustomApiBasicAuth.js';
|
|
63
|
+
export * from './CustomApiBearerAuth.js';
|
|
64
|
+
export * from './CustomApiCreate.js';
|
|
65
|
+
export * from './CustomApiHeader.js';
|
|
66
|
+
export * from './CustomApiHeadersAuth.js';
|
|
67
|
+
export * from './CustomApiList.js';
|
|
68
|
+
export * from './CustomApiName.js';
|
|
69
|
+
export * from './CustomApiUpdate.js';
|
|
70
|
+
export * from './CustomApiUpdateAuth.js';
|
|
50
71
|
export * from './DeliveryTarget.js';
|
|
51
72
|
export * from './DownloadUrlResponse.js';
|
|
52
73
|
export * from './EditQueuedInput.js';
|
|
@@ -86,9 +107,13 @@ export * from './InlineCreateSkillBody.js';
|
|
|
86
107
|
export * from './InputMessage.js';
|
|
87
108
|
export * from './InstructionsBody.js';
|
|
88
109
|
export * from './InstructionsResponse.js';
|
|
110
|
+
export * from './ListModels403Response.js';
|
|
89
111
|
export * from './MessagePart.js';
|
|
90
112
|
export * from './MessagesResponse.js';
|
|
91
113
|
export * from './MintUploadUrl403Response.js';
|
|
114
|
+
export * from './ModelEndpointView.js';
|
|
115
|
+
export * from './ModelView.js';
|
|
116
|
+
export * from './ModelsResponse.js';
|
|
92
117
|
export * from './PageAgentConversationView.js';
|
|
93
118
|
export * from './PageAppView.js';
|
|
94
119
|
export * from './PageCollectionBindingView.js';
|
|
@@ -115,6 +140,7 @@ export * from './SearchResult.js';
|
|
|
115
140
|
export * from './ServerSideIngestError.js';
|
|
116
141
|
export * from './ServerSideIngestFile.js';
|
|
117
142
|
export * from './ServerSideIngestResponse.js';
|
|
143
|
+
export * from './SettingsIssueView.js';
|
|
118
144
|
export * from './SkillDetailView.js';
|
|
119
145
|
export * from './SkillResource.js';
|
|
120
146
|
export * from './SkillUpdate.js';
|
|
@@ -135,3 +161,5 @@ export * from './UploadUrlBody.js';
|
|
|
135
161
|
export * from './UploadUrlResponse.js';
|
|
136
162
|
export * from './ValidationError.js';
|
|
137
163
|
export * from './ValidationErrorLocInner.js';
|
|
164
|
+
export * from './VersionCommitBody.js';
|
|
165
|
+
export * from './VersionUploadUrlBody.js';
|
|
@@ -49,6 +49,7 @@ export declare const AgentChannelRefTypeEnum: {
|
|
|
49
49
|
readonly Slack: "slack";
|
|
50
50
|
readonly Whatsapp: "whatsapp";
|
|
51
51
|
readonly Cli: "cli";
|
|
52
|
+
readonly Teams: "teams";
|
|
52
53
|
};
|
|
53
54
|
export type AgentChannelRefTypeEnum = typeof AgentChannelRefTypeEnum[keyof typeof AgentChannelRefTypeEnum];
|
|
54
55
|
/**
|
|
@@ -136,16 +136,29 @@ export interface AgentConversationDetail {
|
|
|
136
136
|
queuedTurns?: Array<QueuedTurnView>;
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
|
-
* @type {
|
|
139
|
+
* @type {boolean}
|
|
140
140
|
* @memberof AgentConversationDetail
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
isMine?: boolean;
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
145
|
* @type {string}
|
|
146
146
|
* @memberof AgentConversationDetail
|
|
147
147
|
*/
|
|
148
148
|
panjaWsId: string | null;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {boolean}
|
|
152
|
+
* @memberof AgentConversationDetail
|
|
153
|
+
*/
|
|
154
|
+
readOnly?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Deprecated: the server no longer sends this field, so it is always undefined. Use isMine.
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof AgentConversationDetail
|
|
159
|
+
* @deprecated
|
|
160
|
+
*/
|
|
161
|
+
panjaUserId?: string;
|
|
149
162
|
}
|
|
150
163
|
/**
|
|
151
164
|
* Check if a given object implements the AgentConversationDetail interface.
|
|
@@ -55,8 +55,6 @@ function instanceOfAgentConversationDetail(value) {
|
|
|
55
55
|
return false;
|
|
56
56
|
if (!('lastEventId' in value) || value['lastEventId'] === undefined)
|
|
57
57
|
return false;
|
|
58
|
-
if (!('panjaUserId' in value) || value['panjaUserId'] === undefined)
|
|
59
|
-
return false;
|
|
60
58
|
if (!('panjaWsId' in value) || value['panjaWsId'] === undefined)
|
|
61
59
|
return false;
|
|
62
60
|
return true;
|
|
@@ -88,8 +86,10 @@ function AgentConversationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
86
|
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
|
|
89
87
|
'nextBeforeCursor': json['nextBeforeCursor'] == null ? undefined : json['nextBeforeCursor'],
|
|
90
88
|
'queuedTurns': json['queuedTurns'] == null ? undefined : (json['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewFromJSON)),
|
|
91
|
-
'
|
|
89
|
+
'isMine': json['isMine'] == null ? undefined : json['isMine'],
|
|
92
90
|
'panjaWsId': json['panjaWsId'],
|
|
91
|
+
'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
|
|
92
|
+
'panjaUserId': json['panjaUserId'] == null ? undefined : json['panjaUserId'],
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
function AgentConversationDetailToJSON(json) {
|
|
@@ -119,7 +119,9 @@ function AgentConversationDetailToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
119
119
|
'hasMore': value['hasMore'],
|
|
120
120
|
'nextBeforeCursor': value['nextBeforeCursor'],
|
|
121
121
|
'queuedTurns': value['queuedTurns'] == null ? undefined : (value['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewToJSON)),
|
|
122
|
-
'
|
|
122
|
+
'isMine': value['isMine'],
|
|
123
123
|
'panjaWsId': value['panjaWsId'],
|
|
124
|
+
'readOnly': value['readOnly'],
|
|
125
|
+
'panjaUserId': value['panjaUserId'],
|
|
124
126
|
};
|
|
125
127
|
}
|
|
@@ -11,9 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { FieldHighlight } from './FieldHighlight.js';
|
|
13
13
|
/**
|
|
14
|
-
* One session-log row: the inbox view
|
|
15
|
-
*
|
|
16
|
-
* table ever needs them.
|
|
14
|
+
* One session-log row: the inbox view, anonymised (see module doc), plus
|
|
15
|
+
* whether it is the caller's own and which workspace it lives in.
|
|
17
16
|
* @export
|
|
18
17
|
* @interface AgentConversationView
|
|
19
18
|
*/
|
|
@@ -106,16 +105,23 @@ export interface AgentConversationView {
|
|
|
106
105
|
highlight?: Array<FieldHighlight>;
|
|
107
106
|
/**
|
|
108
107
|
*
|
|
109
|
-
* @type {
|
|
108
|
+
* @type {boolean}
|
|
110
109
|
* @memberof AgentConversationView
|
|
111
110
|
*/
|
|
112
|
-
|
|
111
|
+
isMine?: boolean;
|
|
113
112
|
/**
|
|
114
113
|
*
|
|
115
114
|
* @type {string}
|
|
116
115
|
* @memberof AgentConversationView
|
|
117
116
|
*/
|
|
118
117
|
panjaWsId: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Deprecated: the server no longer sends this field, so it is always undefined. Use isMine.
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof AgentConversationView
|
|
122
|
+
* @deprecated
|
|
123
|
+
*/
|
|
124
|
+
panjaUserId?: string;
|
|
119
125
|
}
|
|
120
126
|
/**
|
|
121
127
|
* Check if a given object implements the AgentConversationView interface.
|
|
@@ -49,8 +49,6 @@ function instanceOfAgentConversationView(value) {
|
|
|
49
49
|
return false;
|
|
50
50
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
51
51
|
return false;
|
|
52
|
-
if (!('panjaUserId' in value) || value['panjaUserId'] === undefined)
|
|
53
|
-
return false;
|
|
54
52
|
if (!('panjaWsId' in value) || value['panjaWsId'] === undefined)
|
|
55
53
|
return false;
|
|
56
54
|
return true;
|
|
@@ -77,8 +75,9 @@ function AgentConversationViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
75
|
'lastReadAt': (json['lastReadAt'] == null ? null : new Date(json['lastReadAt'])),
|
|
78
76
|
'createdAt': (new Date(json['createdAt'])),
|
|
79
77
|
'highlight': json['highlight'] == null ? undefined : (json['highlight'].map(FieldHighlight_js_1.FieldHighlightFromJSON)),
|
|
80
|
-
'
|
|
78
|
+
'isMine': json['isMine'] == null ? undefined : json['isMine'],
|
|
81
79
|
'panjaWsId': json['panjaWsId'],
|
|
80
|
+
'panjaUserId': json['panjaUserId'] == null ? undefined : json['panjaUserId'],
|
|
82
81
|
};
|
|
83
82
|
}
|
|
84
83
|
function AgentConversationViewToJSON(json) {
|
|
@@ -103,7 +102,8 @@ function AgentConversationViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
103
102
|
'lastReadAt': (value['lastReadAt'] == null ? null : value['lastReadAt'].toISOString()),
|
|
104
103
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
105
104
|
'highlight': value['highlight'] == null ? undefined : (value['highlight'].map(FieldHighlight_js_1.FieldHighlightToJSON)),
|
|
106
|
-
'
|
|
105
|
+
'isMine': value['isMine'],
|
|
107
106
|
'panjaWsId': value['panjaWsId'],
|
|
107
|
+
'panjaUserId': value['panjaUserId'],
|
|
108
108
|
};
|
|
109
109
|
}
|
|
@@ -49,6 +49,14 @@ export interface AgentCreate {
|
|
|
49
49
|
llmConfig?: {
|
|
50
50
|
[key: string]: any;
|
|
51
51
|
} | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: any; }}
|
|
55
|
+
* @memberof AgentCreate
|
|
56
|
+
*/
|
|
57
|
+
settings?: {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
} | null;
|
|
52
60
|
}
|
|
53
61
|
/**
|
|
54
62
|
* Check if a given object implements the AgentCreate interface.
|
|
@@ -37,6 +37,7 @@ function AgentCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'instructions': json['instructions'] == null ? undefined : json['instructions'],
|
|
38
38
|
'appearance': json['appearance'] == null ? undefined : json['appearance'],
|
|
39
39
|
'llmConfig': json['llmConfig'] == null ? undefined : json['llmConfig'],
|
|
40
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function AgentCreateToJSON(json) {
|
|
@@ -52,5 +53,6 @@ function AgentCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
53
|
'instructions': value['instructions'],
|
|
53
54
|
'appearance': value['appearance'],
|
|
54
55
|
'llmConfig': value['llmConfig'],
|
|
56
|
+
'settings': value['settings'],
|
|
55
57
|
};
|
|
56
58
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { CustomApiName } from './CustomApiName.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentCustomApiList
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentCustomApiList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<CustomApiName>}
|
|
22
|
+
* @memberof AgentCustomApiList
|
|
23
|
+
*/
|
|
24
|
+
data: Array<CustomApiName>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AgentCustomApiList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAgentCustomApiList(value: object): value is AgentCustomApiList;
|
|
30
|
+
export declare function AgentCustomApiListFromJSON(json: any): AgentCustomApiList;
|
|
31
|
+
export declare function AgentCustomApiListFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentCustomApiList;
|
|
32
|
+
export declare function AgentCustomApiListToJSON(json: any): AgentCustomApiList;
|
|
33
|
+
export declare function AgentCustomApiListToJSONTyped(value?: AgentCustomApiList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAgentCustomApiList = instanceOfAgentCustomApiList;
|
|
17
|
+
exports.AgentCustomApiListFromJSON = AgentCustomApiListFromJSON;
|
|
18
|
+
exports.AgentCustomApiListFromJSONTyped = AgentCustomApiListFromJSONTyped;
|
|
19
|
+
exports.AgentCustomApiListToJSON = AgentCustomApiListToJSON;
|
|
20
|
+
exports.AgentCustomApiListToJSONTyped = AgentCustomApiListToJSONTyped;
|
|
21
|
+
const CustomApiName_js_1 = require("./CustomApiName.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AgentCustomApiList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAgentCustomApiList(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AgentCustomApiListFromJSON(json) {
|
|
31
|
+
return AgentCustomApiListFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AgentCustomApiListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'data': (json['data'].map(CustomApiName_js_1.CustomApiNameFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AgentCustomApiListToJSON(json) {
|
|
42
|
+
return AgentCustomApiListToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AgentCustomApiListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'data': (value['data'].map(CustomApiName_js_1.CustomApiNameToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -105,6 +105,12 @@ export interface AgentResource {
|
|
|
105
105
|
* @memberof AgentResource
|
|
106
106
|
*/
|
|
107
107
|
deployState?: AgentResourceDeployStateEnum | null;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Date}
|
|
111
|
+
* @memberof AgentResource
|
|
112
|
+
*/
|
|
113
|
+
deployedAt?: Date | null;
|
|
108
114
|
/**
|
|
109
115
|
*
|
|
110
116
|
* @type {string}
|
|
@@ -117,6 +123,14 @@ export interface AgentResource {
|
|
|
117
123
|
* @memberof AgentResource
|
|
118
124
|
*/
|
|
119
125
|
isDefault?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {{ [key: string]: any; }}
|
|
129
|
+
* @memberof AgentResource
|
|
130
|
+
*/
|
|
131
|
+
settings?: {
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
} | null;
|
|
120
134
|
/**
|
|
121
135
|
*
|
|
122
136
|
* @type {number}
|
|
@@ -87,8 +87,10 @@ function AgentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
87
|
'highlight': json['highlight'] == null ? undefined : (json['highlight'].map(FieldHighlight_js_1.FieldHighlightFromJSON)),
|
|
88
88
|
'agentTypes': json['agentTypes'] == null ? undefined : json['agentTypes'],
|
|
89
89
|
'deployState': json['deployState'] == null ? undefined : json['deployState'],
|
|
90
|
+
'deployedAt': json['deployedAt'] == null ? undefined : (new Date(json['deployedAt'])),
|
|
90
91
|
'clonedFromAgentId': json['clonedFromAgentId'] == null ? undefined : json['clonedFromAgentId'],
|
|
91
92
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
93
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
92
94
|
'interactionCount': json['interactionCount'] == null ? undefined : json['interactionCount'],
|
|
93
95
|
'slackChannelName': json['slackChannelName'] == null ? undefined : json['slackChannelName'],
|
|
94
96
|
'slackUrl': json['slackUrl'] == null ? undefined : json['slackUrl'],
|
|
@@ -121,8 +123,10 @@ function AgentResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
121
123
|
'highlight': value['highlight'] == null ? undefined : (value['highlight'].map(FieldHighlight_js_1.FieldHighlightToJSON)),
|
|
122
124
|
'agentTypes': value['agentTypes'],
|
|
123
125
|
'deployState': value['deployState'],
|
|
126
|
+
'deployedAt': value['deployedAt'] == null ? undefined : (value['deployedAt'].toISOString()),
|
|
124
127
|
'clonedFromAgentId': value['clonedFromAgentId'],
|
|
125
128
|
'isDefault': value['isDefault'],
|
|
129
|
+
'settings': value['settings'],
|
|
126
130
|
'interactionCount': value['interactionCount'],
|
|
127
131
|
'slackChannelName': value['slackChannelName'],
|
|
128
132
|
'slackUrl': value['slackUrl'],
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { SettingsIssueView } from './SettingsIssueView.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentSettingsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentSettingsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {{ [key: string]: any; }}
|
|
22
|
+
* @memberof AgentSettingsResponse
|
|
23
|
+
*/
|
|
24
|
+
settings: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<SettingsIssueView>}
|
|
30
|
+
* @memberof AgentSettingsResponse
|
|
31
|
+
*/
|
|
32
|
+
warnings: Array<SettingsIssueView>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof AgentSettingsResponse
|
|
37
|
+
*/
|
|
38
|
+
version?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof AgentSettingsResponse
|
|
43
|
+
*/
|
|
44
|
+
previousVersion?: number | null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the AgentSettingsResponse interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAgentSettingsResponse(value: object): value is AgentSettingsResponse;
|
|
50
|
+
export declare function AgentSettingsResponseFromJSON(json: any): AgentSettingsResponse;
|
|
51
|
+
export declare function AgentSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSettingsResponse;
|
|
52
|
+
export declare function AgentSettingsResponseToJSON(json: any): AgentSettingsResponse;
|
|
53
|
+
export declare function AgentSettingsResponseToJSONTyped(value?: AgentSettingsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfAgentSettingsResponse = instanceOfAgentSettingsResponse;
|
|
17
|
+
exports.AgentSettingsResponseFromJSON = AgentSettingsResponseFromJSON;
|
|
18
|
+
exports.AgentSettingsResponseFromJSONTyped = AgentSettingsResponseFromJSONTyped;
|
|
19
|
+
exports.AgentSettingsResponseToJSON = AgentSettingsResponseToJSON;
|
|
20
|
+
exports.AgentSettingsResponseToJSONTyped = AgentSettingsResponseToJSONTyped;
|
|
21
|
+
const SettingsIssueView_js_1 = require("./SettingsIssueView.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AgentSettingsResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAgentSettingsResponse(value) {
|
|
26
|
+
if (!('settings' in value) || value['settings'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('warnings' in value) || value['warnings'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AgentSettingsResponseFromJSON(json) {
|
|
33
|
+
return AgentSettingsResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AgentSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'settings': json['settings'],
|
|
41
|
+
'warnings': (json['warnings'].map(SettingsIssueView_js_1.SettingsIssueViewFromJSON)),
|
|
42
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
43
|
+
'previousVersion': json['previousVersion'] == null ? undefined : json['previousVersion'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function AgentSettingsResponseToJSON(json) {
|
|
47
|
+
return AgentSettingsResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AgentSettingsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'settings': value['settings'],
|
|
55
|
+
'warnings': (value['warnings'].map(SettingsIssueView_js_1.SettingsIssueViewToJSON)),
|
|
56
|
+
'version': value['version'],
|
|
57
|
+
'previousVersion': value['previousVersion'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -50,6 +50,14 @@ export interface AgentUpdate {
|
|
|
50
50
|
llmConfig?: {
|
|
51
51
|
[key: string]: any;
|
|
52
52
|
} | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {{ [key: string]: any; }}
|
|
56
|
+
* @memberof AgentUpdate
|
|
57
|
+
*/
|
|
58
|
+
settings?: {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
} | null;
|
|
53
61
|
}
|
|
54
62
|
/**
|
|
55
63
|
* Check if a given object implements the AgentUpdate interface.
|
|
@@ -38,6 +38,7 @@ function AgentUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'description': json['description'] == null ? undefined : json['description'],
|
|
39
39
|
'appearance': json['appearance'] == null ? undefined : json['appearance'],
|
|
40
40
|
'llmConfig': json['llmConfig'] == null ? undefined : json['llmConfig'],
|
|
41
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function AgentUpdateToJSON(json) {
|
|
@@ -53,5 +54,6 @@ function AgentUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
54
|
'description': value['description'],
|
|
54
55
|
'appearance': value['appearance'],
|
|
55
56
|
'llmConfig': value['llmConfig'],
|
|
57
|
+
'settings': value['settings'],
|
|
56
58
|
};
|
|
57
59
|
}
|