sarvam-agents-client 0.2.3 → 0.3.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 +16 -1
- 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/FunctionToolsApi.d.ts +33 -0
- package/dist/apis/FunctionToolsApi.js +65 -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/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/compose/agent.d.ts +26 -6
- package/dist/compose/agent.js +84 -7
- package/dist/compose/deploy.d.ts +3 -2
- package/dist/compose/errors.d.ts +22 -1
- package/dist/compose/errors.js +21 -1
- package/dist/compose/events.d.ts +38 -0
- package/dist/compose/events.js +59 -2
- package/dist/compose/functionTool.d.ts +101 -0
- package/dist/compose/functionTool.js +420 -0
- package/dist/compose/index.d.ts +7 -3
- package/dist/compose/index.js +3 -1
- package/dist/compose/output.d.ts +40 -0
- package/dist/compose/output.js +476 -0
- package/dist/compose/run.d.ts +44 -15
- package/dist/compose/run.js +164 -21
- package/dist/compose/runState.d.ts +28 -2
- package/dist/compose/runState.js +30 -0
- package/dist/compose/settingsTransport.d.ts +23 -3
- package/dist/compose/settingsTransport.js +295 -3
- package/dist/compose/transport.d.ts +21 -3
- 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/FunctionToolsApi.d.ts +33 -0
- package/dist/esm/apis/FunctionToolsApi.js +61 -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/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/compose/agent.d.ts +26 -6
- package/dist/esm/compose/agent.js +84 -7
- package/dist/esm/compose/deploy.d.ts +3 -2
- package/dist/esm/compose/errors.d.ts +22 -1
- package/dist/esm/compose/errors.js +21 -1
- package/dist/esm/compose/events.d.ts +38 -0
- package/dist/esm/compose/events.js +58 -2
- package/dist/esm/compose/functionTool.d.ts +101 -0
- package/dist/esm/compose/functionTool.js +406 -0
- package/dist/esm/compose/index.d.ts +7 -3
- package/dist/esm/compose/index.js +1 -0
- package/dist/esm/compose/output.d.ts +40 -0
- package/dist/esm/compose/output.js +466 -0
- package/dist/esm/compose/run.d.ts +44 -15
- package/dist/esm/compose/run.js +165 -22
- package/dist/esm/compose/runState.d.ts +28 -2
- package/dist/esm/compose/runState.js +31 -1
- package/dist/esm/compose/settingsTransport.d.ts +23 -3
- package/dist/esm/compose/settingsTransport.js +298 -7
- package/dist/esm/compose/transport.d.ts +21 -3
- package/dist/esm/models/AgentConversationDetail.d.ts +7 -0
- package/dist/esm/models/AgentConversationDetail.js +3 -0
- 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/ClarifyBody.d.ts +6 -0
- package/dist/esm/models/ClarifyBody.js +2 -0
- package/dist/esm/models/ConversationDetail.d.ts +7 -0
- package/dist/esm/models/ConversationDetail.js +3 -0
- package/dist/esm/models/ErrorDetail.d.ts +1 -0
- package/dist/esm/models/ErrorDetail.js +2 -1
- package/dist/esm/models/FunctionResultBody.d.ts +44 -0
- package/dist/esm/models/FunctionResultBody.js +49 -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/QueueMessageInput.d.ts +23 -0
- package/dist/esm/models/QueueMessageInput.js +14 -0
- package/dist/esm/models/RequiredAction.d.ts +77 -0
- package/dist/esm/models/RequiredAction.js +69 -0
- package/dist/esm/models/ResponseDetail.d.ts +40 -0
- package/dist/esm/models/ResponseDetail.js +12 -0
- package/dist/esm/models/ResponseInput.d.ts +23 -0
- package/dist/esm/models/ResponseInput.js +14 -0
- package/dist/esm/models/ToolResults200Response.d.ts +38 -0
- package/dist/esm/models/ToolResults200Response.js +47 -0
- package/dist/esm/models/ToolResultsBody.d.ts +39 -0
- package/dist/esm/models/ToolResultsBody.js +48 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/streaming.d.ts +14 -2
- package/dist/esm/streaming.js +26 -4
- package/dist/models/AgentConversationDetail.d.ts +7 -0
- package/dist/models/AgentConversationDetail.js +3 -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/ClarifyBody.d.ts +6 -0
- package/dist/models/ClarifyBody.js +2 -0
- package/dist/models/ConversationDetail.d.ts +7 -0
- package/dist/models/ConversationDetail.js +3 -0
- package/dist/models/ErrorDetail.d.ts +1 -0
- package/dist/models/ErrorDetail.js +2 -1
- package/dist/models/FunctionResultBody.d.ts +44 -0
- package/dist/models/FunctionResultBody.js +56 -0
- 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/QueueMessageInput.d.ts +23 -0
- package/dist/models/QueueMessageInput.js +15 -1
- package/dist/models/RequiredAction.d.ts +77 -0
- package/dist/models/RequiredAction.js +77 -0
- package/dist/models/ResponseDetail.d.ts +40 -0
- package/dist/models/ResponseDetail.js +12 -0
- package/dist/models/ResponseInput.d.ts +23 -0
- package/dist/models/ResponseInput.js +15 -0
- package/dist/models/ToolResults200Response.d.ts +38 -0
- package/dist/models/ToolResults200Response.js +54 -0
- package/dist/models/ToolResultsBody.d.ts +39 -0
- package/dist/models/ToolResultsBody.js +55 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/streaming.d.ts +14 -2
- package/dist/streaming.js +27 -4
- package/package.json +4 -3
- package/src/apis/AgentsApi.ts +4 -4
- package/src/apis/AppsApi.ts +5 -0
- package/src/apis/FunctionToolsApi.ts +102 -0
- package/src/apis/QueueApi.ts +5 -0
- package/src/apis/ResponsesApi.ts +10 -0
- package/src/apis/index.ts +1 -0
- package/src/compose/agent.ts +108 -15
- package/src/compose/deploy.ts +6 -5
- package/src/compose/errors.ts +35 -2
- package/src/compose/events.ts +79 -1
- package/src/compose/functionTool.ts +441 -0
- package/src/compose/index.ts +7 -3
- package/src/compose/output.ts +436 -0
- package/src/compose/run.ts +208 -39
- package/src/compose/runState.ts +46 -6
- package/src/compose/settingsTransport.ts +297 -10
- package/src/compose/transport.ts +27 -3
- package/src/models/AgentConversationDetail.ts +15 -0
- package/src/models/AppResource.ts +42 -0
- package/src/models/AppToolsResponse.ts +11 -4
- package/src/models/AppView.ts +73 -0
- package/src/models/ClarifyBody.ts +8 -0
- package/src/models/ConversationDetail.ts +15 -0
- package/src/models/ErrorDetail.ts +2 -1
- package/src/models/FunctionResultBody.ts +83 -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/QueueMessageInput.ts +28 -0
- package/src/models/RequiredAction.ts +128 -0
- package/src/models/ResponseDetail.ts +48 -0
- package/src/models/ResponseInput.ts +30 -0
- package/src/models/ToolResults200Response.ts +75 -0
- package/src/models/ToolResultsBody.ts +83 -0
- package/src/models/index.ts +6 -0
- package/src/streaming.ts +39 -3
|
@@ -20,6 +20,7 @@ exports.AgentConversationDetailToJSON = AgentConversationDetailToJSON;
|
|
|
20
20
|
exports.AgentConversationDetailToJSONTyped = AgentConversationDetailToJSONTyped;
|
|
21
21
|
const UIMessage_js_1 = require("./UIMessage.js");
|
|
22
22
|
const FieldHighlight_js_1 = require("./FieldHighlight.js");
|
|
23
|
+
const RequiredAction_js_1 = require("./RequiredAction.js");
|
|
23
24
|
const QueuedTurnView_js_1 = require("./QueuedTurnView.js");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the AgentConversationDetail interface.
|
|
@@ -86,6 +87,7 @@ function AgentConversationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
87
|
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
|
|
87
88
|
'nextBeforeCursor': json['nextBeforeCursor'] == null ? undefined : json['nextBeforeCursor'],
|
|
88
89
|
'queuedTurns': json['queuedTurns'] == null ? undefined : (json['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewFromJSON)),
|
|
90
|
+
'requiredActions': json['requiredActions'] == null ? undefined : (json['requiredActions'].map(RequiredAction_js_1.RequiredActionFromJSON)),
|
|
89
91
|
'isMine': json['isMine'] == null ? undefined : json['isMine'],
|
|
90
92
|
'panjaWsId': json['panjaWsId'],
|
|
91
93
|
'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
|
|
@@ -119,6 +121,7 @@ function AgentConversationDetailToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
119
121
|
'hasMore': value['hasMore'],
|
|
120
122
|
'nextBeforeCursor': value['nextBeforeCursor'],
|
|
121
123
|
'queuedTurns': value['queuedTurns'] == null ? undefined : (value['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewToJSON)),
|
|
124
|
+
'requiredActions': value['requiredActions'] == null ? undefined : (value['requiredActions'].map(RequiredAction_js_1.RequiredActionToJSON)),
|
|
122
125
|
'isMine': value['isMine'],
|
|
123
126
|
'panjaWsId': value['panjaWsId'],
|
|
124
127
|
'readOnly': value['readOnly'],
|
|
@@ -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
|
*/
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AppResourceAuthTypeEnum = exports.AppResourceEntityTypeEnum = void 0;
|
|
16
|
+
exports.AppResourceAuthKindEnum = exports.AppResourceAuthTypeEnum = exports.AppResourceEntityTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfAppResource = instanceOfAppResource;
|
|
18
18
|
exports.AppResourceFromJSON = AppResourceFromJSON;
|
|
19
19
|
exports.AppResourceFromJSONTyped = AppResourceFromJSONTyped;
|
|
20
20
|
exports.AppResourceToJSON = AppResourceToJSON;
|
|
21
21
|
exports.AppResourceToJSONTyped = AppResourceToJSONTyped;
|
|
22
|
+
const McpSecurityView_js_1 = require("./McpSecurityView.js");
|
|
22
23
|
const Scope_js_1 = require("./Scope.js");
|
|
23
24
|
const Capabilities_js_1 = require("./Capabilities.js");
|
|
24
25
|
const FieldHighlight_js_1 = require("./FieldHighlight.js");
|
|
@@ -37,6 +38,15 @@ exports.AppResourceAuthTypeEnum = {
|
|
|
37
38
|
ApiKey: 'api_key',
|
|
38
39
|
None: 'none'
|
|
39
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
exports.AppResourceAuthKindEnum = {
|
|
45
|
+
Oauth: 'oauth',
|
|
46
|
+
ApiKey: 'api_key',
|
|
47
|
+
SharedKey: 'shared_key',
|
|
48
|
+
None: 'none'
|
|
49
|
+
};
|
|
40
50
|
/**
|
|
41
51
|
* Check if a given object implements the AppResource interface.
|
|
42
52
|
*/
|
|
@@ -89,6 +99,9 @@ function AppResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
99
|
'orgName': json['orgName'] == null ? undefined : json['orgName'],
|
|
90
100
|
'isManagedConnector': json['isManagedConnector'] == null ? undefined : json['isManagedConnector'],
|
|
91
101
|
'connectorMode': json['connectorMode'] == null ? undefined : json['connectorMode'],
|
|
102
|
+
'isCustom': json['isCustom'] == null ? undefined : json['isCustom'],
|
|
103
|
+
'authKind': json['authKind'] == null ? undefined : json['authKind'],
|
|
104
|
+
'security': json['security'] == null ? undefined : (0, McpSecurityView_js_1.McpSecurityViewFromJSON)(json['security']),
|
|
92
105
|
};
|
|
93
106
|
}
|
|
94
107
|
function AppResourceToJSON(json) {
|
|
@@ -123,5 +136,8 @@ function AppResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
123
136
|
'orgName': value['orgName'],
|
|
124
137
|
'isManagedConnector': value['isManagedConnector'],
|
|
125
138
|
'connectorMode': value['connectorMode'],
|
|
139
|
+
'isCustom': value['isCustom'],
|
|
140
|
+
'authKind': value['authKind'],
|
|
141
|
+
'security': (0, McpSecurityView_js_1.McpSecurityViewToJSON)(value['security']),
|
|
126
142
|
};
|
|
127
143
|
}
|
|
@@ -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}
|
|
@@ -20,6 +20,7 @@ exports.AppToolsResponseFromJSONTyped = AppToolsResponseFromJSONTyped;
|
|
|
20
20
|
exports.AppToolsResponseToJSON = AppToolsResponseToJSON;
|
|
21
21
|
exports.AppToolsResponseToJSONTyped = AppToolsResponseToJSONTyped;
|
|
22
22
|
const AppToolView_js_1 = require("./AppToolView.js");
|
|
23
|
+
const McpSecurityView_js_1 = require("./McpSecurityView.js");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -54,7 +55,7 @@ function AppToolsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
55
|
'name': json['name'],
|
|
55
56
|
'authStatus': json['authStatus'],
|
|
56
57
|
'tools': (json['tools'].map(AppToolView_js_1.AppToolViewFromJSON)),
|
|
57
|
-
'security': json['security'] == null ? undefined : json['security'],
|
|
58
|
+
'security': json['security'] == null ? undefined : (0, McpSecurityView_js_1.McpSecurityViewFromJSON)(json['security']),
|
|
58
59
|
'trust': json['trust'] == null ? undefined : json['trust'],
|
|
59
60
|
};
|
|
60
61
|
}
|
|
@@ -70,7 +71,7 @@ function AppToolsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
71
|
'name': value['name'],
|
|
71
72
|
'authStatus': value['authStatus'],
|
|
72
73
|
'tools': (value['tools'].map(AppToolView_js_1.AppToolViewToJSON)),
|
|
73
|
-
'security': value['security'],
|
|
74
|
+
'security': (0, McpSecurityView_js_1.McpSecurityViewToJSON)(value['security']),
|
|
74
75
|
'trust': value['trust'],
|
|
75
76
|
};
|
|
76
77
|
}
|
package/dist/models/AppView.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/models/AppView.js
CHANGED
|
@@ -13,12 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AppViewAuthTypeEnum = void 0;
|
|
16
|
+
exports.AppViewAuthKindEnum = exports.AppViewAuthTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfAppView = instanceOfAppView;
|
|
18
18
|
exports.AppViewFromJSON = AppViewFromJSON;
|
|
19
19
|
exports.AppViewFromJSONTyped = AppViewFromJSONTyped;
|
|
20
20
|
exports.AppViewToJSON = AppViewToJSON;
|
|
21
21
|
exports.AppViewToJSONTyped = AppViewToJSONTyped;
|
|
22
|
+
const McpSecurityView_js_1 = require("./McpSecurityView.js");
|
|
23
|
+
const Scope_js_1 = require("./Scope.js");
|
|
22
24
|
const AppCategory_js_1 = require("./AppCategory.js");
|
|
23
25
|
/**
|
|
24
26
|
* @export
|
|
@@ -28,6 +30,15 @@ exports.AppViewAuthTypeEnum = {
|
|
|
28
30
|
ApiKey: 'api_key',
|
|
29
31
|
None: 'none'
|
|
30
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.AppViewAuthKindEnum = {
|
|
37
|
+
Oauth: 'oauth',
|
|
38
|
+
ApiKey: 'api_key',
|
|
39
|
+
SharedKey: 'shared_key',
|
|
40
|
+
None: 'none'
|
|
41
|
+
};
|
|
31
42
|
/**
|
|
32
43
|
* Check if a given object implements the AppView interface.
|
|
33
44
|
*/
|
|
@@ -80,6 +91,12 @@ function AppViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
91
|
'alreadyUsingUrl': json['alreadyUsingUrl'] == null ? undefined : json['alreadyUsingUrl'],
|
|
81
92
|
'isManagedConnector': json['isManagedConnector'] == null ? undefined : json['isManagedConnector'],
|
|
82
93
|
'connectorMode': json['connectorMode'] == null ? undefined : json['connectorMode'],
|
|
94
|
+
'isCustom': json['isCustom'] == null ? undefined : json['isCustom'],
|
|
95
|
+
'isOwnedByMe': json['isOwnedByMe'] == null ? undefined : json['isOwnedByMe'],
|
|
96
|
+
'scope': json['scope'] == null ? undefined : (0, Scope_js_1.ScopeFromJSON)(json['scope']),
|
|
97
|
+
'createdByName': json['createdByName'] == null ? undefined : json['createdByName'],
|
|
98
|
+
'authKind': json['authKind'] == null ? undefined : json['authKind'],
|
|
99
|
+
'security': json['security'] == null ? undefined : (0, McpSecurityView_js_1.McpSecurityViewFromJSON)(json['security']),
|
|
83
100
|
};
|
|
84
101
|
}
|
|
85
102
|
function AppViewToJSON(json) {
|
|
@@ -108,5 +125,11 @@ function AppViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
108
125
|
'alreadyUsingUrl': value['alreadyUsingUrl'],
|
|
109
126
|
'isManagedConnector': value['isManagedConnector'],
|
|
110
127
|
'connectorMode': value['connectorMode'],
|
|
128
|
+
'isCustom': value['isCustom'],
|
|
129
|
+
'isOwnedByMe': value['isOwnedByMe'],
|
|
130
|
+
'scope': (0, Scope_js_1.ScopeToJSON)(value['scope']),
|
|
131
|
+
'createdByName': value['createdByName'],
|
|
132
|
+
'authKind': value['authKind'],
|
|
133
|
+
'security': (0, McpSecurityView_js_1.McpSecurityViewToJSON)(value['security']),
|
|
111
134
|
};
|
|
112
135
|
}
|
|
@@ -37,6 +37,7 @@ function ClarifyBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'requestId': json['requestId'],
|
|
38
38
|
'action': json['action'] == null ? undefined : json['action'],
|
|
39
39
|
'answers': json['answers'] == null ? undefined : json['answers'],
|
|
40
|
+
'endUserId': json['endUserId'] == null ? undefined : json['endUserId'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
function ClarifyBodyToJSON(json) {
|
|
@@ -50,5 +51,6 @@ function ClarifyBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
51
|
'requestId': value['requestId'],
|
|
51
52
|
'action': value['action'],
|
|
52
53
|
'answers': value['answers'],
|
|
54
|
+
'endUserId': value['endUserId'],
|
|
53
55
|
};
|
|
54
56
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { UIMessage } from './UIMessage.js';
|
|
13
13
|
import type { FieldHighlight } from './FieldHighlight.js';
|
|
14
|
+
import type { RequiredAction } from './RequiredAction.js';
|
|
14
15
|
import type { QueuedTurnView } from './QueuedTurnView.js';
|
|
15
16
|
/**
|
|
16
17
|
* GET /conversations/{id} — the list view plus the projected history and
|
|
@@ -135,6 +136,12 @@ export interface ConversationDetail {
|
|
|
135
136
|
* @memberof ConversationDetail
|
|
136
137
|
*/
|
|
137
138
|
queuedTurns?: Array<QueuedTurnView>;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {Array<RequiredAction>}
|
|
142
|
+
* @memberof ConversationDetail
|
|
143
|
+
*/
|
|
144
|
+
requiredActions?: Array<RequiredAction>;
|
|
138
145
|
}
|
|
139
146
|
/**
|
|
140
147
|
* Check if a given object implements the ConversationDetail interface.
|
|
@@ -20,6 +20,7 @@ exports.ConversationDetailToJSON = ConversationDetailToJSON;
|
|
|
20
20
|
exports.ConversationDetailToJSONTyped = ConversationDetailToJSONTyped;
|
|
21
21
|
const UIMessage_js_1 = require("./UIMessage.js");
|
|
22
22
|
const FieldHighlight_js_1 = require("./FieldHighlight.js");
|
|
23
|
+
const RequiredAction_js_1 = require("./RequiredAction.js");
|
|
23
24
|
const QueuedTurnView_js_1 = require("./QueuedTurnView.js");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the ConversationDetail interface.
|
|
@@ -84,6 +85,7 @@ function ConversationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
85
|
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
|
|
85
86
|
'nextBeforeCursor': json['nextBeforeCursor'] == null ? undefined : json['nextBeforeCursor'],
|
|
86
87
|
'queuedTurns': json['queuedTurns'] == null ? undefined : (json['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewFromJSON)),
|
|
88
|
+
'requiredActions': json['requiredActions'] == null ? undefined : (json['requiredActions'].map(RequiredAction_js_1.RequiredActionFromJSON)),
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
91
|
function ConversationDetailToJSON(json) {
|
|
@@ -113,5 +115,6 @@ function ConversationDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
113
115
|
'hasMore': value['hasMore'],
|
|
114
116
|
'nextBeforeCursor': value['nextBeforeCursor'],
|
|
115
117
|
'queuedTurns': value['queuedTurns'] == null ? undefined : (value['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewToJSON)),
|
|
118
|
+
'requiredActions': value['requiredActions'] == null ? undefined : (value['requiredActions'].map(RequiredAction_js_1.RequiredActionToJSON)),
|
|
116
119
|
};
|
|
117
120
|
}
|
|
@@ -58,6 +58,7 @@ export declare const ErrorDetailCodeEnum: {
|
|
|
58
58
|
readonly Unavailable: "CHAT_UNAVAILABLE";
|
|
59
59
|
readonly Upstream: "CHAT_UPSTREAM";
|
|
60
60
|
readonly Internal: "CHAT_INTERNAL";
|
|
61
|
+
readonly BalanceExhausted: "CHAT_BALANCE_EXHAUSTED";
|
|
61
62
|
};
|
|
62
63
|
export type ErrorDetailCodeEnum = typeof ErrorDetailCodeEnum[keyof typeof ErrorDetailCodeEnum];
|
|
63
64
|
/**
|
|
@@ -33,7 +33,8 @@ exports.ErrorDetailCodeEnum = {
|
|
|
33
33
|
RateLimit: 'CHAT_RATE_LIMIT',
|
|
34
34
|
Unavailable: 'CHAT_UNAVAILABLE',
|
|
35
35
|
Upstream: 'CHAT_UPSTREAM',
|
|
36
|
-
Internal: 'CHAT_INTERNAL'
|
|
36
|
+
Internal: 'CHAT_INTERNAL',
|
|
37
|
+
BalanceExhausted: 'CHAT_BALANCE_EXHAUSTED'
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
40
|
* Check if a given object implements the ErrorDetail interface.
|
|
@@ -0,0 +1,44 @@
|
|
|
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 call's result, as the app ran it.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FunctionResultBody
|
|
16
|
+
*/
|
|
17
|
+
export interface FunctionResultBody {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FunctionResultBody
|
|
22
|
+
*/
|
|
23
|
+
toolCallId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FunctionResultBody
|
|
28
|
+
*/
|
|
29
|
+
output: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof FunctionResultBody
|
|
34
|
+
*/
|
|
35
|
+
isError?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the FunctionResultBody interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfFunctionResultBody(value: object): value is FunctionResultBody;
|
|
41
|
+
export declare function FunctionResultBodyFromJSON(json: any): FunctionResultBody;
|
|
42
|
+
export declare function FunctionResultBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionResultBody;
|
|
43
|
+
export declare function FunctionResultBodyToJSON(json: any): FunctionResultBody;
|
|
44
|
+
export declare function FunctionResultBodyToJSONTyped(value?: FunctionResultBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfFunctionResultBody = instanceOfFunctionResultBody;
|
|
17
|
+
exports.FunctionResultBodyFromJSON = FunctionResultBodyFromJSON;
|
|
18
|
+
exports.FunctionResultBodyFromJSONTyped = FunctionResultBodyFromJSONTyped;
|
|
19
|
+
exports.FunctionResultBodyToJSON = FunctionResultBodyToJSON;
|
|
20
|
+
exports.FunctionResultBodyToJSONTyped = FunctionResultBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FunctionResultBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFunctionResultBody(value) {
|
|
25
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('output' in value) || value['output'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function FunctionResultBodyFromJSON(json) {
|
|
32
|
+
return FunctionResultBodyFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function FunctionResultBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'toolCallId': json['toolCallId'],
|
|
40
|
+
'output': json['output'],
|
|
41
|
+
'isError': json['isError'] == null ? undefined : json['isError'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function FunctionResultBodyToJSON(json) {
|
|
45
|
+
return FunctionResultBodyToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FunctionResultBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'toolCallId': value['toolCallId'],
|
|
53
|
+
'output': value['output'],
|
|
54
|
+
'isError': value['isError'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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,54 @@
|
|
|
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.instanceOfMcpSecurityAppealView = instanceOfMcpSecurityAppealView;
|
|
17
|
+
exports.McpSecurityAppealViewFromJSON = McpSecurityAppealViewFromJSON;
|
|
18
|
+
exports.McpSecurityAppealViewFromJSONTyped = McpSecurityAppealViewFromJSONTyped;
|
|
19
|
+
exports.McpSecurityAppealViewToJSON = McpSecurityAppealViewToJSON;
|
|
20
|
+
exports.McpSecurityAppealViewToJSONTyped = McpSecurityAppealViewToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the McpSecurityAppealView interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMcpSecurityAppealView(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function McpSecurityAppealViewFromJSON(json) {
|
|
28
|
+
return McpSecurityAppealViewFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function McpSecurityAppealViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
36
|
+
'contactEmail': json['contactEmail'] == null ? undefined : json['contactEmail'],
|
|
37
|
+
'contactPhone': json['contactPhone'] == null ? undefined : json['contactPhone'],
|
|
38
|
+
'denialReason': json['denialReason'] == null ? undefined : json['denialReason'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function McpSecurityAppealViewToJSON(json) {
|
|
42
|
+
return McpSecurityAppealViewToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function McpSecurityAppealViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': value['status'],
|
|
50
|
+
'contactEmail': value['contactEmail'],
|
|
51
|
+
'contactPhone': value['contactPhone'],
|
|
52
|
+
'denialReason': value['denialReason'],
|
|
53
|
+
};
|
|
54
|
+
}
|