sarvam-agents-client 0.1.2 → 0.2.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.
- 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 +40 -0
- package/dist/compose/agent.js +191 -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 +29 -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 +40 -0
- package/dist/esm/compose/agent.js +187 -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 +19 -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 +223 -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 +27 -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
|
@@ -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,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SettingsIssueViewFromJSON, SettingsIssueViewToJSON, } from './SettingsIssueView.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AgentSettingsResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAgentSettingsResponse(value) {
|
|
19
|
+
if (!('settings' in value) || value['settings'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('warnings' in value) || value['warnings'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AgentSettingsResponseFromJSON(json) {
|
|
26
|
+
return AgentSettingsResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AgentSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'settings': json['settings'],
|
|
34
|
+
'warnings': (json['warnings'].map(SettingsIssueViewFromJSON)),
|
|
35
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
36
|
+
'previousVersion': json['previousVersion'] == null ? undefined : json['previousVersion'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function AgentSettingsResponseToJSON(json) {
|
|
40
|
+
return AgentSettingsResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AgentSettingsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'settings': value['settings'],
|
|
48
|
+
'warnings': (value['warnings'].map(SettingsIssueViewToJSON)),
|
|
49
|
+
'version': value['version'],
|
|
50
|
+
'previousVersion': value['previousVersion'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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.
|
|
@@ -31,6 +31,7 @@ export function AgentUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'description': json['description'] == null ? undefined : json['description'],
|
|
32
32
|
'appearance': json['appearance'] == null ? undefined : json['appearance'],
|
|
33
33
|
'llmConfig': json['llmConfig'] == null ? undefined : json['llmConfig'],
|
|
34
|
+
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
export function AgentUpdateToJSON(json) {
|
|
@@ -46,5 +47,6 @@ export function AgentUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
47
|
'description': value['description'],
|
|
47
48
|
'appearance': value['appearance'],
|
|
48
49
|
'llmConfig': value['llmConfig'],
|
|
50
|
+
'settings': value['settings'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One linked account the caller can reach.
|
|
14
|
+
*
|
|
15
|
+
* ``id`` is the join key for ``AppResourceView.account_id`` and
|
|
16
|
+
* ``AppResourceCheckView.account_id``. ``owner_id`` / ``owner_login``
|
|
17
|
+
* are the provider's user/org, matching ``AppResourceView.owner_id``.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AppAccountView
|
|
20
|
+
*/
|
|
21
|
+
export interface AppAccountView {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AppAccountView
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AppAccountView
|
|
32
|
+
*/
|
|
33
|
+
ownerLogin: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AppAccountView
|
|
38
|
+
*/
|
|
39
|
+
ownerId: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AppAccountView
|
|
44
|
+
*/
|
|
45
|
+
accountType: AppAccountViewAccountTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AppAccountView
|
|
50
|
+
*/
|
|
51
|
+
selection: AppAccountViewSelectionEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof AppAccountView
|
|
56
|
+
*/
|
|
57
|
+
suspended: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof AppAccountView
|
|
62
|
+
*/
|
|
63
|
+
manageUrl?: string | null;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export declare const AppAccountViewAccountTypeEnum: {
|
|
69
|
+
readonly User: "user";
|
|
70
|
+
readonly Organization: "organization";
|
|
71
|
+
};
|
|
72
|
+
export type AppAccountViewAccountTypeEnum = typeof AppAccountViewAccountTypeEnum[keyof typeof AppAccountViewAccountTypeEnum];
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const AppAccountViewSelectionEnum: {
|
|
77
|
+
readonly All: "all";
|
|
78
|
+
readonly Selected: "selected";
|
|
79
|
+
};
|
|
80
|
+
export type AppAccountViewSelectionEnum = typeof AppAccountViewSelectionEnum[keyof typeof AppAccountViewSelectionEnum];
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the AppAccountView interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfAppAccountView(value: object): value is AppAccountView;
|
|
85
|
+
export declare function AppAccountViewFromJSON(json: any): AppAccountView;
|
|
86
|
+
export declare function AppAccountViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppAccountView;
|
|
87
|
+
export declare function AppAccountViewToJSON(json: any): AppAccountView;
|
|
88
|
+
export declare function AppAccountViewToJSONTyped(value?: AppAccountView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const AppAccountViewAccountTypeEnum = {
|
|
18
|
+
User: 'user',
|
|
19
|
+
Organization: 'organization'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const AppAccountViewSelectionEnum = {
|
|
25
|
+
All: 'all',
|
|
26
|
+
Selected: 'selected'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AppAccountView interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfAppAccountView(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('ownerLogin' in value) || value['ownerLogin'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('accountType' in value) || value['accountType'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('selection' in value) || value['selection'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('suspended' in value) || value['suspended'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function AppAccountViewFromJSON(json) {
|
|
47
|
+
return AppAccountViewFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function AppAccountViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'ownerLogin': json['ownerLogin'],
|
|
56
|
+
'ownerId': json['ownerId'],
|
|
57
|
+
'accountType': json['accountType'],
|
|
58
|
+
'selection': json['selection'],
|
|
59
|
+
'suspended': json['suspended'],
|
|
60
|
+
'manageUrl': json['manageUrl'] == null ? undefined : json['manageUrl'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export function AppAccountViewToJSON(json) {
|
|
64
|
+
return AppAccountViewToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
export function AppAccountViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'ownerLogin': value['ownerLogin'],
|
|
73
|
+
'ownerId': value['ownerId'],
|
|
74
|
+
'accountType': value['accountType'],
|
|
75
|
+
'selection': value['selection'],
|
|
76
|
+
'suspended': value['suspended'],
|
|
77
|
+
'manageUrl': value['manageUrl'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { AppAccountView } from './AppAccountView.js';
|
|
13
|
+
/**
|
|
14
|
+
* ``GET /v1/apps/{integration_id}/accounts`` — identity + linked accounts.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AppAccountsView
|
|
17
|
+
*/
|
|
18
|
+
export interface AppAccountsView {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AppAccountsView
|
|
23
|
+
*/
|
|
24
|
+
connection: AppAccountsViewConnectionEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AppAccountsView
|
|
29
|
+
*/
|
|
30
|
+
login?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AppAccountsView
|
|
35
|
+
*/
|
|
36
|
+
addAccountUrl?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<AppAccountView>}
|
|
40
|
+
* @memberof AppAccountsView
|
|
41
|
+
*/
|
|
42
|
+
accounts?: Array<AppAccountView>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof AppAccountsView
|
|
47
|
+
*/
|
|
48
|
+
truncated?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const AppAccountsViewConnectionEnum: {
|
|
54
|
+
readonly Connected: "connected";
|
|
55
|
+
readonly NotConnected: "not_connected";
|
|
56
|
+
readonly ReconnectRequired: "reconnect_required";
|
|
57
|
+
};
|
|
58
|
+
export type AppAccountsViewConnectionEnum = typeof AppAccountsViewConnectionEnum[keyof typeof AppAccountsViewConnectionEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the AppAccountsView interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfAppAccountsView(value: object): value is AppAccountsView;
|
|
63
|
+
export declare function AppAccountsViewFromJSON(json: any): AppAccountsView;
|
|
64
|
+
export declare function AppAccountsViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppAccountsView;
|
|
65
|
+
export declare function AppAccountsViewToJSON(json: any): AppAccountsView;
|
|
66
|
+
export declare function AppAccountsViewToJSONTyped(value?: AppAccountsView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AppAccountViewFromJSON, AppAccountViewToJSON, } from './AppAccountView.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const AppAccountsViewConnectionEnum = {
|
|
19
|
+
Connected: 'connected',
|
|
20
|
+
NotConnected: 'not_connected',
|
|
21
|
+
ReconnectRequired: 'reconnect_required'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AppAccountsView interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfAppAccountsView(value) {
|
|
27
|
+
if (!('connection' in value) || value['connection'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function AppAccountsViewFromJSON(json) {
|
|
32
|
+
return AppAccountsViewFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function AppAccountsViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'connection': json['connection'],
|
|
40
|
+
'login': json['login'] == null ? undefined : json['login'],
|
|
41
|
+
'addAccountUrl': json['addAccountUrl'] == null ? undefined : json['addAccountUrl'],
|
|
42
|
+
'accounts': json['accounts'] == null ? undefined : (json['accounts'].map(AppAccountViewFromJSON)),
|
|
43
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function AppAccountsViewToJSON(json) {
|
|
47
|
+
return AppAccountsViewToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function AppAccountsViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'connection': value['connection'],
|
|
55
|
+
'login': value['login'],
|
|
56
|
+
'addAccountUrl': value['addAccountUrl'],
|
|
57
|
+
'accounts': value['accounts'] == null ? undefined : (value['accounts'].map(AppAccountViewToJSON)),
|
|
58
|
+
'truncated': value['truncated'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -129,6 +129,42 @@ export interface AppResource {
|
|
|
129
129
|
* @memberof AppResource
|
|
130
130
|
*/
|
|
131
131
|
authType: AppResourceAuthTypeEnum;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @memberof AppResource
|
|
136
|
+
*/
|
|
137
|
+
setupRequired?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {boolean}
|
|
141
|
+
* @memberof AppResource
|
|
142
|
+
*/
|
|
143
|
+
canEditSetup?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {boolean}
|
|
147
|
+
* @memberof AppResource
|
|
148
|
+
*/
|
|
149
|
+
orgWide?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof AppResource
|
|
154
|
+
*/
|
|
155
|
+
orgName?: string | null;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {boolean}
|
|
159
|
+
* @memberof AppResource
|
|
160
|
+
*/
|
|
161
|
+
isManagedConnector?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof AppResource
|
|
166
|
+
*/
|
|
167
|
+
connectorMode?: string | null;
|
|
132
168
|
}
|
|
133
169
|
/**
|
|
134
170
|
* @export
|
|
@@ -75,6 +75,12 @@ export function AppResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
75
|
'iconUrl': json['iconUrl'] == null ? undefined : json['iconUrl'],
|
|
76
76
|
'category': json['category'] == null ? undefined : AppCategoryFromJSON(json['category']),
|
|
77
77
|
'authType': json['authType'],
|
|
78
|
+
'setupRequired': json['setupRequired'] == null ? undefined : json['setupRequired'],
|
|
79
|
+
'canEditSetup': json['canEditSetup'] == null ? undefined : json['canEditSetup'],
|
|
80
|
+
'orgWide': json['orgWide'] == null ? undefined : json['orgWide'],
|
|
81
|
+
'orgName': json['orgName'] == null ? undefined : json['orgName'],
|
|
82
|
+
'isManagedConnector': json['isManagedConnector'] == null ? undefined : json['isManagedConnector'],
|
|
83
|
+
'connectorMode': json['connectorMode'] == null ? undefined : json['connectorMode'],
|
|
78
84
|
};
|
|
79
85
|
}
|
|
80
86
|
export function AppResourceToJSON(json) {
|
|
@@ -103,5 +109,11 @@ export function AppResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
103
109
|
'iconUrl': value['iconUrl'],
|
|
104
110
|
'category': AppCategoryToJSON(value['category']),
|
|
105
111
|
'authType': value['authType'],
|
|
112
|
+
'setupRequired': value['setupRequired'],
|
|
113
|
+
'canEditSetup': value['canEditSetup'],
|
|
114
|
+
'orgWide': value['orgWide'],
|
|
115
|
+
'orgName': value['orgName'],
|
|
116
|
+
'isManagedConnector': value['isManagedConnector'],
|
|
117
|
+
'connectorMode': value['connectorMode'],
|
|
106
118
|
};
|
|
107
119
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* ``GET /v1/apps/{integration_id}/resources/{namespace}/{name}``.
|
|
14
|
+
*
|
|
15
|
+
* ``state``: ``has_access`` (in a linked account), ``read_only`` (public,
|
|
16
|
+
* no account), ``not_selected`` (the owner's account does not include
|
|
17
|
+
* it), ``not_installed`` (no account on the owner), ``not_visible``
|
|
18
|
+
* (the provider hides it from this user), ``suspended`` (the owner's
|
|
19
|
+
* account is suspended), ``unknown`` (the listing cap was hit first,
|
|
20
|
+
* or the account's resource list was hidden while the resource itself
|
|
21
|
+
* is visible), ``not_connected`` / ``reconnect_required`` (no usable
|
|
22
|
+
* connection).
|
|
23
|
+
* @export
|
|
24
|
+
* @interface AppResourceCheckView
|
|
25
|
+
*/
|
|
26
|
+
export interface AppResourceCheckView {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof AppResourceCheckView
|
|
31
|
+
*/
|
|
32
|
+
state: AppResourceCheckViewStateEnum;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof AppResourceCheckView
|
|
37
|
+
*/
|
|
38
|
+
accountId?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof AppResourceCheckView
|
|
43
|
+
*/
|
|
44
|
+
actionUrl?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof AppResourceCheckView
|
|
49
|
+
*/
|
|
50
|
+
truncated?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const AppResourceCheckViewStateEnum: {
|
|
56
|
+
readonly HasAccess: "has_access";
|
|
57
|
+
readonly ReadOnly: "read_only";
|
|
58
|
+
readonly NotSelected: "not_selected";
|
|
59
|
+
readonly NotInstalled: "not_installed";
|
|
60
|
+
readonly NotVisible: "not_visible";
|
|
61
|
+
readonly Suspended: "suspended";
|
|
62
|
+
readonly Unknown: "unknown";
|
|
63
|
+
readonly NotConnected: "not_connected";
|
|
64
|
+
readonly ReconnectRequired: "reconnect_required";
|
|
65
|
+
};
|
|
66
|
+
export type AppResourceCheckViewStateEnum = typeof AppResourceCheckViewStateEnum[keyof typeof AppResourceCheckViewStateEnum];
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the AppResourceCheckView interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfAppResourceCheckView(value: object): value is AppResourceCheckView;
|
|
71
|
+
export declare function AppResourceCheckViewFromJSON(json: any): AppResourceCheckView;
|
|
72
|
+
export declare function AppResourceCheckViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppResourceCheckView;
|
|
73
|
+
export declare function AppResourceCheckViewToJSON(json: any): AppResourceCheckView;
|
|
74
|
+
export declare function AppResourceCheckViewToJSONTyped(value?: AppResourceCheckView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const AppResourceCheckViewStateEnum = {
|
|
18
|
+
HasAccess: 'has_access',
|
|
19
|
+
ReadOnly: 'read_only',
|
|
20
|
+
NotSelected: 'not_selected',
|
|
21
|
+
NotInstalled: 'not_installed',
|
|
22
|
+
NotVisible: 'not_visible',
|
|
23
|
+
Suspended: 'suspended',
|
|
24
|
+
Unknown: 'unknown',
|
|
25
|
+
NotConnected: 'not_connected',
|
|
26
|
+
ReconnectRequired: 'reconnect_required'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the AppResourceCheckView interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfAppResourceCheckView(value) {
|
|
32
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function AppResourceCheckViewFromJSON(json) {
|
|
37
|
+
return AppResourceCheckViewFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AppResourceCheckViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'state': json['state'],
|
|
45
|
+
'accountId': json['accountId'] == null ? undefined : json['accountId'],
|
|
46
|
+
'actionUrl': json['actionUrl'] == null ? undefined : json['actionUrl'],
|
|
47
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function AppResourceCheckViewToJSON(json) {
|
|
51
|
+
return AppResourceCheckViewToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function AppResourceCheckViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'state': value['state'],
|
|
59
|
+
'accountId': value['accountId'],
|
|
60
|
+
'actionUrl': value['actionUrl'],
|
|
61
|
+
'truncated': value['truncated'],
|
|
62
|
+
};
|
|
63
|
+
}
|