sarvam-agents-client 0.2.3 → 0.3.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/dist/apis/AgentsApi.d.ts +4 -4
- package/dist/apis/AgentsApi.js +4 -4
- package/dist/apis/AppsApi.d.ts +1 -0
- package/dist/apis/AppsApi.js +3 -0
- package/dist/apis/QueueApi.d.ts +1 -0
- package/dist/apis/QueueApi.js +3 -0
- package/dist/apis/ResponsesApi.d.ts +2 -0
- package/dist/apis/ResponsesApi.js +6 -0
- package/dist/compose/agent.d.ts +10 -3
- package/dist/compose/agent.js +8 -0
- package/dist/compose/deploy.d.ts +3 -2
- package/dist/compose/errors.d.ts +17 -0
- package/dist/compose/errors.js +17 -0
- package/dist/compose/events.d.ts +34 -0
- package/dist/compose/events.js +25 -2
- package/dist/compose/index.d.ts +2 -1
- package/dist/compose/output.d.ts +29 -0
- package/dist/compose/output.js +451 -0
- package/dist/compose/run.d.ts +39 -14
- package/dist/compose/run.js +53 -3
- package/dist/compose/runState.d.ts +2 -1
- package/dist/compose/settingsTransport.d.ts +3 -2
- package/dist/compose/transport.d.ts +3 -2
- package/dist/esm/apis/AgentsApi.d.ts +4 -4
- package/dist/esm/apis/AgentsApi.js +4 -4
- package/dist/esm/apis/AppsApi.d.ts +1 -0
- package/dist/esm/apis/AppsApi.js +3 -0
- package/dist/esm/apis/QueueApi.d.ts +1 -0
- package/dist/esm/apis/QueueApi.js +3 -0
- package/dist/esm/apis/ResponsesApi.d.ts +2 -0
- package/dist/esm/apis/ResponsesApi.js +6 -0
- package/dist/esm/compose/agent.d.ts +10 -3
- package/dist/esm/compose/agent.js +8 -0
- package/dist/esm/compose/deploy.d.ts +3 -2
- package/dist/esm/compose/errors.d.ts +17 -0
- package/dist/esm/compose/errors.js +17 -0
- package/dist/esm/compose/events.d.ts +34 -0
- package/dist/esm/compose/events.js +25 -2
- package/dist/esm/compose/index.d.ts +2 -1
- package/dist/esm/compose/output.d.ts +29 -0
- package/dist/esm/compose/output.js +445 -0
- package/dist/esm/compose/run.d.ts +39 -14
- package/dist/esm/compose/run.js +54 -4
- package/dist/esm/compose/runState.d.ts +2 -1
- package/dist/esm/compose/settingsTransport.d.ts +3 -2
- package/dist/esm/compose/transport.d.ts +3 -2
- package/dist/esm/models/AppResource.d.ts +29 -0
- package/dist/esm/models/AppResource.js +16 -0
- package/dist/esm/models/AppToolsResponse.d.ts +3 -4
- package/dist/esm/models/AppToolsResponse.js +3 -2
- package/dist/esm/models/AppView.d.ts +48 -0
- package/dist/esm/models/AppView.js +23 -0
- package/dist/esm/models/McpSecurityAppealView.d.ts +50 -0
- package/dist/esm/models/McpSecurityAppealView.js +47 -0
- package/dist/esm/models/McpSecurityView.d.ts +105 -0
- package/dist/esm/models/McpSecurityView.js +66 -0
- package/dist/esm/models/MessagesResponse.d.ts +6 -0
- package/dist/esm/models/MessagesResponse.js +2 -0
- package/dist/esm/models/ResponseDetail.d.ts +32 -0
- package/dist/esm/models/ResponseDetail.js +10 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AppResource.d.ts +29 -0
- package/dist/models/AppResource.js +17 -1
- package/dist/models/AppToolsResponse.d.ts +3 -4
- package/dist/models/AppToolsResponse.js +3 -2
- package/dist/models/AppView.d.ts +48 -0
- package/dist/models/AppView.js +24 -1
- package/dist/models/McpSecurityAppealView.d.ts +50 -0
- package/dist/models/McpSecurityAppealView.js +54 -0
- package/dist/models/McpSecurityView.d.ts +105 -0
- package/dist/models/McpSecurityView.js +73 -0
- package/dist/models/MessagesResponse.d.ts +6 -0
- package/dist/models/MessagesResponse.js +2 -0
- package/dist/models/ResponseDetail.d.ts +32 -0
- package/dist/models/ResponseDetail.js +10 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +4 -3
- package/src/apis/AgentsApi.ts +4 -4
- package/src/apis/AppsApi.ts +5 -0
- package/src/apis/QueueApi.ts +5 -0
- package/src/apis/ResponsesApi.ts +10 -0
- package/src/compose/agent.ts +21 -6
- package/src/compose/deploy.ts +6 -5
- package/src/compose/errors.ts +28 -1
- package/src/compose/events.ts +49 -1
- package/src/compose/index.ts +2 -1
- package/src/compose/output.ts +415 -0
- package/src/compose/run.ts +93 -21
- package/src/compose/runState.ts +2 -1
- package/src/compose/settingsTransport.ts +4 -3
- package/src/compose/transport.ts +3 -2
- package/src/models/AppResource.ts +42 -0
- package/src/models/AppToolsResponse.ts +11 -4
- package/src/models/AppView.ts +73 -0
- package/src/models/McpSecurityAppealView.ts +89 -0
- package/src/models/McpSecurityView.ts +169 -0
- package/src/models/MessagesResponse.ts +8 -0
- package/src/models/ResponseDetail.ts +40 -0
- package/src/models/index.ts +2 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** RunState: what a paused run needs to continue (conversation, pending interruptions and the caller's answers). */
|
|
2
2
|
import type { Agent } from "./agent.js";
|
|
3
|
+
import type { OutputType } from "./output.js";
|
|
3
4
|
import type { ClarifyQuestion } from "./events.js";
|
|
4
5
|
export interface Interruption {
|
|
5
6
|
kind: "clarify";
|
|
@@ -22,5 +23,5 @@ export declare class RunState {
|
|
|
22
23
|
/** JSON in the format Python's `RunState.to_json()` writes. */
|
|
23
24
|
toString(): string;
|
|
24
25
|
/** Read a state written by `toString()` (or by Python's `to_json()`). */
|
|
25
|
-
static fromString(agent: Agent
|
|
26
|
+
static fromString(agent: Agent<OutputType | undefined>, s: string): Promise<RunState>;
|
|
26
27
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Configuration } from "../runtime.js";
|
|
2
2
|
import type { Agent } from "./agent.js";
|
|
3
|
+
import type { OutputType } from "./output.js";
|
|
3
4
|
import type { RemoteAgent, Transport, TurnStream } from "./transport.js";
|
|
4
5
|
export declare class SettingsTransport implements Transport {
|
|
5
6
|
private readonly config;
|
|
@@ -10,8 +11,8 @@ export declare class SettingsTransport implements Transport {
|
|
|
10
11
|
constructor(config: Configuration);
|
|
11
12
|
findAgents(sdkName: string): Promise<RemoteAgent[]>;
|
|
12
13
|
readAgent(agentId: string): Promise<RemoteAgent>;
|
|
13
|
-
createAgent(agent: Agent): Promise<RemoteAgent>;
|
|
14
|
-
updateAgent(agentId: string, agent: Agent): Promise<RemoteAgent>;
|
|
14
|
+
createAgent(agent: Agent<OutputType | undefined>): Promise<RemoteAgent>;
|
|
15
|
+
updateAgent(agentId: string, agent: Agent<OutputType | undefined>): Promise<RemoteAgent>;
|
|
15
16
|
deleteAgent(agentId: string): Promise<void>;
|
|
16
17
|
startTurn(agentId: string, conversationId: string | null, text: string, signal?: AbortSignal): Promise<TurnStream>;
|
|
17
18
|
answerClarify(conversationId: string, requestId: string, answers: Record<string, unknown>, signal?: AbortSignal): Promise<TurnStream>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Transport interface: the seam between the compose layer and the server. */
|
|
2
2
|
import type { Agent } from "./agent.js";
|
|
3
|
+
import type { OutputType } from "./output.js";
|
|
3
4
|
import type { Event } from "./events.js";
|
|
4
5
|
export interface SettingsWarning {
|
|
5
6
|
code: string;
|
|
@@ -24,8 +25,8 @@ export interface Transport {
|
|
|
24
25
|
readonly kind: "settings";
|
|
25
26
|
findAgents(sdkName: string): Promise<RemoteAgent[]>;
|
|
26
27
|
readAgent(agentId: string): Promise<RemoteAgent>;
|
|
27
|
-
createAgent(agent: Agent): Promise<RemoteAgent>;
|
|
28
|
-
updateAgent(agentId: string, agent: Agent): Promise<RemoteAgent>;
|
|
28
|
+
createAgent(agent: Agent<OutputType | undefined>): Promise<RemoteAgent>;
|
|
29
|
+
updateAgent(agentId: string, agent: Agent<OutputType | undefined>): Promise<RemoteAgent>;
|
|
29
30
|
deleteAgent(agentId: string): Promise<void>;
|
|
30
31
|
startTurn(agentId: string, conversationId: string | null, text: string, signal?: AbortSignal): Promise<TurnStream>;
|
|
31
32
|
answerClarify(conversationId: string, requestId: string, answers: Record<string, unknown>, signal?: AbortSignal): Promise<TurnStream>;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { McpSecurityView } from './McpSecurityView.js';
|
|
12
13
|
import type { Scope } from './Scope.js';
|
|
13
14
|
import type { Capabilities } from './Capabilities.js';
|
|
14
15
|
import type { FieldHighlight } from './FieldHighlight.js';
|
|
@@ -165,6 +166,24 @@ export interface AppResource {
|
|
|
165
166
|
* @memberof AppResource
|
|
166
167
|
*/
|
|
167
168
|
connectorMode?: string | null;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {boolean}
|
|
172
|
+
* @memberof AppResource
|
|
173
|
+
*/
|
|
174
|
+
isCustom?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof AppResource
|
|
179
|
+
*/
|
|
180
|
+
authKind?: AppResourceAuthKindEnum | null;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {McpSecurityView}
|
|
184
|
+
* @memberof AppResource
|
|
185
|
+
*/
|
|
186
|
+
security?: McpSecurityView | null;
|
|
168
187
|
}
|
|
169
188
|
/**
|
|
170
189
|
* @export
|
|
@@ -182,6 +201,16 @@ export declare const AppResourceAuthTypeEnum: {
|
|
|
182
201
|
readonly None: "none";
|
|
183
202
|
};
|
|
184
203
|
export type AppResourceAuthTypeEnum = typeof AppResourceAuthTypeEnum[keyof typeof AppResourceAuthTypeEnum];
|
|
204
|
+
/**
|
|
205
|
+
* @export
|
|
206
|
+
*/
|
|
207
|
+
export declare const AppResourceAuthKindEnum: {
|
|
208
|
+
readonly Oauth: "oauth";
|
|
209
|
+
readonly ApiKey: "api_key";
|
|
210
|
+
readonly SharedKey: "shared_key";
|
|
211
|
+
readonly None: "none";
|
|
212
|
+
};
|
|
213
|
+
export type AppResourceAuthKindEnum = typeof AppResourceAuthKindEnum[keyof typeof AppResourceAuthKindEnum];
|
|
185
214
|
/**
|
|
186
215
|
* Check if a given object implements the AppResource interface.
|
|
187
216
|
*/
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { McpSecurityViewFromJSON, McpSecurityViewToJSON, } from './McpSecurityView.js';
|
|
14
15
|
import { ScopeFromJSON, ScopeToJSON, } from './Scope.js';
|
|
15
16
|
import { CapabilitiesFromJSON, CapabilitiesToJSON, } from './Capabilities.js';
|
|
16
17
|
import { FieldHighlightFromJSON, FieldHighlightToJSON, } from './FieldHighlight.js';
|
|
@@ -29,6 +30,15 @@ export const AppResourceAuthTypeEnum = {
|
|
|
29
30
|
ApiKey: 'api_key',
|
|
30
31
|
None: 'none'
|
|
31
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export const AppResourceAuthKindEnum = {
|
|
37
|
+
Oauth: 'oauth',
|
|
38
|
+
ApiKey: 'api_key',
|
|
39
|
+
SharedKey: 'shared_key',
|
|
40
|
+
None: 'none'
|
|
41
|
+
};
|
|
32
42
|
/**
|
|
33
43
|
* Check if a given object implements the AppResource interface.
|
|
34
44
|
*/
|
|
@@ -81,6 +91,9 @@ export function AppResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
91
|
'orgName': json['orgName'] == null ? undefined : json['orgName'],
|
|
82
92
|
'isManagedConnector': json['isManagedConnector'] == null ? undefined : json['isManagedConnector'],
|
|
83
93
|
'connectorMode': json['connectorMode'] == null ? undefined : json['connectorMode'],
|
|
94
|
+
'isCustom': json['isCustom'] == null ? undefined : json['isCustom'],
|
|
95
|
+
'authKind': json['authKind'] == null ? undefined : json['authKind'],
|
|
96
|
+
'security': json['security'] == null ? undefined : McpSecurityViewFromJSON(json['security']),
|
|
84
97
|
};
|
|
85
98
|
}
|
|
86
99
|
export function AppResourceToJSON(json) {
|
|
@@ -115,5 +128,8 @@ export function AppResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
115
128
|
'orgName': value['orgName'],
|
|
116
129
|
'isManagedConnector': value['isManagedConnector'],
|
|
117
130
|
'connectorMode': value['connectorMode'],
|
|
131
|
+
'isCustom': value['isCustom'],
|
|
132
|
+
'authKind': value['authKind'],
|
|
133
|
+
'security': McpSecurityViewToJSON(value['security']),
|
|
118
134
|
};
|
|
119
135
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AppToolView } from './AppToolView.js';
|
|
13
|
+
import type { McpSecurityView } from './McpSecurityView.js';
|
|
13
14
|
/**
|
|
14
15
|
* FE dialog payload for ``GET /v1/apps/{integration_id}/tools``.
|
|
15
16
|
* @export
|
|
@@ -42,12 +43,10 @@ export interface AppToolsResponse {
|
|
|
42
43
|
tools: Array<AppToolView>;
|
|
43
44
|
/**
|
|
44
45
|
*
|
|
45
|
-
* @type {
|
|
46
|
+
* @type {McpSecurityView}
|
|
46
47
|
* @memberof AppToolsResponse
|
|
47
48
|
*/
|
|
48
|
-
security?:
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
} | null;
|
|
49
|
+
security?: McpSecurityView | null;
|
|
51
50
|
/**
|
|
52
51
|
*
|
|
53
52
|
* @type {string}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { AppToolViewFromJSON, AppToolViewToJSON, } from './AppToolView.js';
|
|
15
|
+
import { McpSecurityViewFromJSON, McpSecurityViewToJSON, } from './McpSecurityView.js';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
17
18
|
*/
|
|
@@ -46,7 +47,7 @@ export function AppToolsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
47
|
'name': json['name'],
|
|
47
48
|
'authStatus': json['authStatus'],
|
|
48
49
|
'tools': (json['tools'].map(AppToolViewFromJSON)),
|
|
49
|
-
'security': json['security'] == null ? undefined : json['security'],
|
|
50
|
+
'security': json['security'] == null ? undefined : McpSecurityViewFromJSON(json['security']),
|
|
50
51
|
'trust': json['trust'] == null ? undefined : json['trust'],
|
|
51
52
|
};
|
|
52
53
|
}
|
|
@@ -62,7 +63,7 @@ export function AppToolsResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
62
63
|
'name': value['name'],
|
|
63
64
|
'authStatus': value['authStatus'],
|
|
64
65
|
'tools': (value['tools'].map(AppToolViewToJSON)),
|
|
65
|
-
'security': value['security'],
|
|
66
|
+
'security': McpSecurityViewToJSON(value['security']),
|
|
66
67
|
'trust': value['trust'],
|
|
67
68
|
};
|
|
68
69
|
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { McpSecurityView } from './McpSecurityView.js';
|
|
13
|
+
import type { Scope } from './Scope.js';
|
|
12
14
|
import type { AppCategory } from './AppCategory.js';
|
|
13
15
|
/**
|
|
14
16
|
*
|
|
@@ -124,6 +126,42 @@ export interface AppView {
|
|
|
124
126
|
* @memberof AppView
|
|
125
127
|
*/
|
|
126
128
|
connectorMode?: string | null;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {boolean}
|
|
132
|
+
* @memberof AppView
|
|
133
|
+
*/
|
|
134
|
+
isCustom?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {boolean}
|
|
138
|
+
* @memberof AppView
|
|
139
|
+
*/
|
|
140
|
+
isOwnedByMe?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {Scope}
|
|
144
|
+
* @memberof AppView
|
|
145
|
+
*/
|
|
146
|
+
scope?: Scope | null;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof AppView
|
|
151
|
+
*/
|
|
152
|
+
createdByName?: string | null;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof AppView
|
|
157
|
+
*/
|
|
158
|
+
authKind?: AppViewAuthKindEnum | null;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {McpSecurityView}
|
|
162
|
+
* @memberof AppView
|
|
163
|
+
*/
|
|
164
|
+
security?: McpSecurityView | null;
|
|
127
165
|
}
|
|
128
166
|
/**
|
|
129
167
|
* @export
|
|
@@ -134,6 +172,16 @@ export declare const AppViewAuthTypeEnum: {
|
|
|
134
172
|
readonly None: "none";
|
|
135
173
|
};
|
|
136
174
|
export type AppViewAuthTypeEnum = typeof AppViewAuthTypeEnum[keyof typeof AppViewAuthTypeEnum];
|
|
175
|
+
/**
|
|
176
|
+
* @export
|
|
177
|
+
*/
|
|
178
|
+
export declare const AppViewAuthKindEnum: {
|
|
179
|
+
readonly Oauth: "oauth";
|
|
180
|
+
readonly ApiKey: "api_key";
|
|
181
|
+
readonly SharedKey: "shared_key";
|
|
182
|
+
readonly None: "none";
|
|
183
|
+
};
|
|
184
|
+
export type AppViewAuthKindEnum = typeof AppViewAuthKindEnum[keyof typeof AppViewAuthKindEnum];
|
|
137
185
|
/**
|
|
138
186
|
* Check if a given object implements the AppView interface.
|
|
139
187
|
*/
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { McpSecurityViewFromJSON, McpSecurityViewToJSON, } from './McpSecurityView.js';
|
|
15
|
+
import { ScopeFromJSON, ScopeToJSON, } from './Scope.js';
|
|
14
16
|
import { AppCategoryFromJSON, AppCategoryToJSON, } from './AppCategory.js';
|
|
15
17
|
/**
|
|
16
18
|
* @export
|
|
@@ -20,6 +22,15 @@ export const AppViewAuthTypeEnum = {
|
|
|
20
22
|
ApiKey: 'api_key',
|
|
21
23
|
None: 'none'
|
|
22
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const AppViewAuthKindEnum = {
|
|
29
|
+
Oauth: 'oauth',
|
|
30
|
+
ApiKey: 'api_key',
|
|
31
|
+
SharedKey: 'shared_key',
|
|
32
|
+
None: 'none'
|
|
33
|
+
};
|
|
23
34
|
/**
|
|
24
35
|
* Check if a given object implements the AppView interface.
|
|
25
36
|
*/
|
|
@@ -72,6 +83,12 @@ export function AppViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
83
|
'alreadyUsingUrl': json['alreadyUsingUrl'] == null ? undefined : json['alreadyUsingUrl'],
|
|
73
84
|
'isManagedConnector': json['isManagedConnector'] == null ? undefined : json['isManagedConnector'],
|
|
74
85
|
'connectorMode': json['connectorMode'] == null ? undefined : json['connectorMode'],
|
|
86
|
+
'isCustom': json['isCustom'] == null ? undefined : json['isCustom'],
|
|
87
|
+
'isOwnedByMe': json['isOwnedByMe'] == null ? undefined : json['isOwnedByMe'],
|
|
88
|
+
'scope': json['scope'] == null ? undefined : ScopeFromJSON(json['scope']),
|
|
89
|
+
'createdByName': json['createdByName'] == null ? undefined : json['createdByName'],
|
|
90
|
+
'authKind': json['authKind'] == null ? undefined : json['authKind'],
|
|
91
|
+
'security': json['security'] == null ? undefined : McpSecurityViewFromJSON(json['security']),
|
|
75
92
|
};
|
|
76
93
|
}
|
|
77
94
|
export function AppViewToJSON(json) {
|
|
@@ -100,5 +117,11 @@ export function AppViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
100
117
|
'alreadyUsingUrl': value['alreadyUsingUrl'],
|
|
101
118
|
'isManagedConnector': value['isManagedConnector'],
|
|
102
119
|
'connectorMode': value['connectorMode'],
|
|
120
|
+
'isCustom': value['isCustom'],
|
|
121
|
+
'isOwnedByMe': value['isOwnedByMe'],
|
|
122
|
+
'scope': ScopeToJSON(value['scope']),
|
|
123
|
+
'createdByName': value['createdByName'],
|
|
124
|
+
'authKind': value['authKind'],
|
|
125
|
+
'security': McpSecurityViewToJSON(value['security']),
|
|
103
126
|
};
|
|
104
127
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Appeal metadata on a BYO security projection. Status ``none`` when idle.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface McpSecurityAppealView
|
|
16
|
+
*/
|
|
17
|
+
export interface McpSecurityAppealView {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof McpSecurityAppealView
|
|
22
|
+
*/
|
|
23
|
+
status?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof McpSecurityAppealView
|
|
28
|
+
*/
|
|
29
|
+
contactEmail?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof McpSecurityAppealView
|
|
34
|
+
*/
|
|
35
|
+
contactPhone?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof McpSecurityAppealView
|
|
40
|
+
*/
|
|
41
|
+
denialReason?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the McpSecurityAppealView interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfMcpSecurityAppealView(value: object): value is McpSecurityAppealView;
|
|
47
|
+
export declare function McpSecurityAppealViewFromJSON(json: any): McpSecurityAppealView;
|
|
48
|
+
export declare function McpSecurityAppealViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpSecurityAppealView;
|
|
49
|
+
export declare function McpSecurityAppealViewToJSON(json: any): McpSecurityAppealView;
|
|
50
|
+
export declare function McpSecurityAppealViewToJSONTyped(value?: McpSecurityAppealView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the McpSecurityAppealView interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMcpSecurityAppealView(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function McpSecurityAppealViewFromJSON(json) {
|
|
21
|
+
return McpSecurityAppealViewFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function McpSecurityAppealViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
29
|
+
'contactEmail': json['contactEmail'] == null ? undefined : json['contactEmail'],
|
|
30
|
+
'contactPhone': json['contactPhone'] == null ? undefined : json['contactPhone'],
|
|
31
|
+
'denialReason': json['denialReason'] == null ? undefined : json['denialReason'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function McpSecurityAppealViewToJSON(json) {
|
|
35
|
+
return McpSecurityAppealViewToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function McpSecurityAppealViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'status': value['status'],
|
|
43
|
+
'contactEmail': value['contactEmail'],
|
|
44
|
+
'contactPhone': value['contactPhone'],
|
|
45
|
+
'denialReason': value['denialReason'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { McpSecurityAppealView } from './McpSecurityAppealView.js';
|
|
13
|
+
/**
|
|
14
|
+
* Card-facing BYO security object (list, agent-bound apps, catalog, tools).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface McpSecurityView
|
|
17
|
+
*/
|
|
18
|
+
export interface McpSecurityView {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof McpSecurityView
|
|
23
|
+
*/
|
|
24
|
+
state?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof McpSecurityView
|
|
29
|
+
*/
|
|
30
|
+
progress?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof McpSecurityView
|
|
35
|
+
*/
|
|
36
|
+
blocking?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof McpSecurityView
|
|
41
|
+
*/
|
|
42
|
+
enforced?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof McpSecurityView
|
|
47
|
+
*/
|
|
48
|
+
lastFailure?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof McpSecurityView
|
|
53
|
+
*/
|
|
54
|
+
message?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof McpSecurityView
|
|
59
|
+
*/
|
|
60
|
+
ownerActionRequired?: boolean | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof McpSecurityView
|
|
65
|
+
*/
|
|
66
|
+
unverifiable?: boolean | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof McpSecurityView
|
|
71
|
+
*/
|
|
72
|
+
auditAttempts?: number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof McpSecurityView
|
|
77
|
+
*/
|
|
78
|
+
auditAttemptLimit?: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof McpSecurityView
|
|
83
|
+
*/
|
|
84
|
+
attemptsRemaining?: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<string>}
|
|
88
|
+
* @memberof McpSecurityView
|
|
89
|
+
*/
|
|
90
|
+
lastHoldReasons?: Array<string>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {McpSecurityAppealView}
|
|
94
|
+
* @memberof McpSecurityView
|
|
95
|
+
*/
|
|
96
|
+
appeal?: McpSecurityAppealView | null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the McpSecurityView interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfMcpSecurityView(value: object): value is McpSecurityView;
|
|
102
|
+
export declare function McpSecurityViewFromJSON(json: any): McpSecurityView;
|
|
103
|
+
export declare function McpSecurityViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): McpSecurityView;
|
|
104
|
+
export declare function McpSecurityViewToJSON(json: any): McpSecurityView;
|
|
105
|
+
export declare function McpSecurityViewToJSONTyped(value?: McpSecurityView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sarvam Agents API
|
|
5
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
* Contact: support@sarvam.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { McpSecurityAppealViewFromJSON, McpSecurityAppealViewToJSON, } from './McpSecurityAppealView.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the McpSecurityView interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfMcpSecurityView(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function McpSecurityViewFromJSON(json) {
|
|
22
|
+
return McpSecurityViewFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function McpSecurityViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
30
|
+
'progress': json['progress'] == null ? undefined : json['progress'],
|
|
31
|
+
'blocking': json['blocking'] == null ? undefined : json['blocking'],
|
|
32
|
+
'enforced': json['enforced'] == null ? undefined : json['enforced'],
|
|
33
|
+
'lastFailure': json['lastFailure'] == null ? undefined : json['lastFailure'],
|
|
34
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
35
|
+
'ownerActionRequired': json['ownerActionRequired'] == null ? undefined : json['ownerActionRequired'],
|
|
36
|
+
'unverifiable': json['unverifiable'] == null ? undefined : json['unverifiable'],
|
|
37
|
+
'auditAttempts': json['auditAttempts'] == null ? undefined : json['auditAttempts'],
|
|
38
|
+
'auditAttemptLimit': json['auditAttemptLimit'] == null ? undefined : json['auditAttemptLimit'],
|
|
39
|
+
'attemptsRemaining': json['attemptsRemaining'] == null ? undefined : json['attemptsRemaining'],
|
|
40
|
+
'lastHoldReasons': json['lastHoldReasons'] == null ? undefined : json['lastHoldReasons'],
|
|
41
|
+
'appeal': json['appeal'] == null ? undefined : McpSecurityAppealViewFromJSON(json['appeal']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function McpSecurityViewToJSON(json) {
|
|
45
|
+
return McpSecurityViewToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function McpSecurityViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'state': value['state'],
|
|
53
|
+
'progress': value['progress'],
|
|
54
|
+
'blocking': value['blocking'],
|
|
55
|
+
'enforced': value['enforced'],
|
|
56
|
+
'lastFailure': value['lastFailure'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'ownerActionRequired': value['ownerActionRequired'],
|
|
59
|
+
'unverifiable': value['unverifiable'],
|
|
60
|
+
'auditAttempts': value['auditAttempts'],
|
|
61
|
+
'auditAttemptLimit': value['auditAttemptLimit'],
|
|
62
|
+
'attemptsRemaining': value['attemptsRemaining'],
|
|
63
|
+
'lastHoldReasons': value['lastHoldReasons'],
|
|
64
|
+
'appeal': McpSecurityAppealViewToJSON(value['appeal']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -65,6 +65,12 @@ export interface MessagesResponse {
|
|
|
65
65
|
* @memberof MessagesResponse
|
|
66
66
|
*/
|
|
67
67
|
nextBeforeCursor?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof MessagesResponse
|
|
72
|
+
*/
|
|
73
|
+
resumeCursor?: string | null;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
76
|
* @type {Array<QueuedTurnView>}
|
|
@@ -39,6 +39,7 @@ export function MessagesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
|
|
40
40
|
'activeResponseId': json['activeResponseId'] == null ? undefined : json['activeResponseId'],
|
|
41
41
|
'nextBeforeCursor': json['nextBeforeCursor'] == null ? undefined : json['nextBeforeCursor'],
|
|
42
|
+
'resumeCursor': json['resumeCursor'] == null ? undefined : json['resumeCursor'],
|
|
42
43
|
'queuedTurns': json['queuedTurns'] == null ? undefined : (json['queuedTurns'].map(QueuedTurnViewFromJSON)),
|
|
43
44
|
};
|
|
44
45
|
}
|
|
@@ -58,6 +59,7 @@ export function MessagesResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
58
59
|
'nextCursor': value['nextCursor'],
|
|
59
60
|
'activeResponseId': value['activeResponseId'],
|
|
60
61
|
'nextBeforeCursor': value['nextBeforeCursor'],
|
|
62
|
+
'resumeCursor': value['resumeCursor'],
|
|
61
63
|
'queuedTurns': value['queuedTurns'] == null ? undefined : (value['queuedTurns'].map(QueuedTurnViewToJSON)),
|
|
62
64
|
};
|
|
63
65
|
}
|
|
@@ -34,6 +34,38 @@ export interface ResponseDetail {
|
|
|
34
34
|
* @memberof ResponseDetail
|
|
35
35
|
*/
|
|
36
36
|
output: Array<UIMessage>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {any}
|
|
40
|
+
* @memberof ResponseDetail
|
|
41
|
+
*/
|
|
42
|
+
structuredOutput?: any | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<string>}
|
|
46
|
+
* @memberof ResponseDetail
|
|
47
|
+
*/
|
|
48
|
+
outputErrors?: Array<string> | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
52
|
+
* @memberof ResponseDetail
|
|
53
|
+
*/
|
|
54
|
+
outputCitations?: Array<{
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}> | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ResponseDetail
|
|
61
|
+
*/
|
|
62
|
+
outputNote?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ResponseDetail
|
|
67
|
+
*/
|
|
68
|
+
outputSkipped?: string | null;
|
|
37
69
|
}
|
|
38
70
|
/**
|
|
39
71
|
* @export
|
|
@@ -44,6 +44,11 @@ export function ResponseDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'responseId': json['responseId'],
|
|
45
45
|
'status': json['status'],
|
|
46
46
|
'output': (json['output'].map(UIMessageFromJSON)),
|
|
47
|
+
'structuredOutput': json['structuredOutput'] == null ? undefined : json['structuredOutput'],
|
|
48
|
+
'outputErrors': json['outputErrors'] == null ? undefined : json['outputErrors'],
|
|
49
|
+
'outputCitations': json['outputCitations'] == null ? undefined : json['outputCitations'],
|
|
50
|
+
'outputNote': json['outputNote'] == null ? undefined : json['outputNote'],
|
|
51
|
+
'outputSkipped': json['outputSkipped'] == null ? undefined : json['outputSkipped'],
|
|
47
52
|
};
|
|
48
53
|
}
|
|
49
54
|
export function ResponseDetailToJSON(json) {
|
|
@@ -57,5 +62,10 @@ export function ResponseDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
62
|
'responseId': value['responseId'],
|
|
58
63
|
'status': value['status'],
|
|
59
64
|
'output': (value['output'].map(UIMessageToJSON)),
|
|
65
|
+
'structuredOutput': value['structuredOutput'],
|
|
66
|
+
'outputErrors': value['outputErrors'],
|
|
67
|
+
'outputCitations': value['outputCitations'],
|
|
68
|
+
'outputNote': value['outputNote'],
|
|
69
|
+
'outputSkipped': value['outputSkipped'],
|
|
60
70
|
};
|
|
61
71
|
}
|