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
|
@@ -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,73 @@
|
|
|
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.instanceOfMcpSecurityView = instanceOfMcpSecurityView;
|
|
17
|
+
exports.McpSecurityViewFromJSON = McpSecurityViewFromJSON;
|
|
18
|
+
exports.McpSecurityViewFromJSONTyped = McpSecurityViewFromJSONTyped;
|
|
19
|
+
exports.McpSecurityViewToJSON = McpSecurityViewToJSON;
|
|
20
|
+
exports.McpSecurityViewToJSONTyped = McpSecurityViewToJSONTyped;
|
|
21
|
+
const McpSecurityAppealView_js_1 = require("./McpSecurityAppealView.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the McpSecurityView interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMcpSecurityView(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function McpSecurityViewFromJSON(json) {
|
|
29
|
+
return McpSecurityViewFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function McpSecurityViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
37
|
+
'progress': json['progress'] == null ? undefined : json['progress'],
|
|
38
|
+
'blocking': json['blocking'] == null ? undefined : json['blocking'],
|
|
39
|
+
'enforced': json['enforced'] == null ? undefined : json['enforced'],
|
|
40
|
+
'lastFailure': json['lastFailure'] == null ? undefined : json['lastFailure'],
|
|
41
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
42
|
+
'ownerActionRequired': json['ownerActionRequired'] == null ? undefined : json['ownerActionRequired'],
|
|
43
|
+
'unverifiable': json['unverifiable'] == null ? undefined : json['unverifiable'],
|
|
44
|
+
'auditAttempts': json['auditAttempts'] == null ? undefined : json['auditAttempts'],
|
|
45
|
+
'auditAttemptLimit': json['auditAttemptLimit'] == null ? undefined : json['auditAttemptLimit'],
|
|
46
|
+
'attemptsRemaining': json['attemptsRemaining'] == null ? undefined : json['attemptsRemaining'],
|
|
47
|
+
'lastHoldReasons': json['lastHoldReasons'] == null ? undefined : json['lastHoldReasons'],
|
|
48
|
+
'appeal': json['appeal'] == null ? undefined : (0, McpSecurityAppealView_js_1.McpSecurityAppealViewFromJSON)(json['appeal']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function McpSecurityViewToJSON(json) {
|
|
52
|
+
return McpSecurityViewToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function McpSecurityViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'state': value['state'],
|
|
60
|
+
'progress': value['progress'],
|
|
61
|
+
'blocking': value['blocking'],
|
|
62
|
+
'enforced': value['enforced'],
|
|
63
|
+
'lastFailure': value['lastFailure'],
|
|
64
|
+
'message': value['message'],
|
|
65
|
+
'ownerActionRequired': value['ownerActionRequired'],
|
|
66
|
+
'unverifiable': value['unverifiable'],
|
|
67
|
+
'auditAttempts': value['auditAttempts'],
|
|
68
|
+
'auditAttemptLimit': value['auditAttemptLimit'],
|
|
69
|
+
'attemptsRemaining': value['attemptsRemaining'],
|
|
70
|
+
'lastHoldReasons': value['lastHoldReasons'],
|
|
71
|
+
'appeal': (0, McpSecurityAppealView_js_1.McpSecurityAppealViewToJSON)(value['appeal']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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>}
|
|
@@ -46,6 +46,7 @@ function MessagesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
|
|
47
47
|
'activeResponseId': json['activeResponseId'] == null ? undefined : json['activeResponseId'],
|
|
48
48
|
'nextBeforeCursor': json['nextBeforeCursor'] == null ? undefined : json['nextBeforeCursor'],
|
|
49
|
+
'resumeCursor': json['resumeCursor'] == null ? undefined : json['resumeCursor'],
|
|
49
50
|
'queuedTurns': json['queuedTurns'] == null ? undefined : (json['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewFromJSON)),
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -65,6 +66,7 @@ function MessagesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
66
|
'nextCursor': value['nextCursor'],
|
|
66
67
|
'activeResponseId': value['activeResponseId'],
|
|
67
68
|
'nextBeforeCursor': value['nextBeforeCursor'],
|
|
69
|
+
'resumeCursor': value['resumeCursor'],
|
|
68
70
|
'queuedTurns': value['queuedTurns'] == null ? undefined : (value['queuedTurns'].map(QueuedTurnView_js_1.QueuedTurnViewToJSON)),
|
|
69
71
|
};
|
|
70
72
|
}
|
|
@@ -40,6 +40,18 @@ export interface QueueMessageInput {
|
|
|
40
40
|
* @memberof QueueMessageInput
|
|
41
41
|
*/
|
|
42
42
|
retryOf?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof QueueMessageInput
|
|
47
|
+
*/
|
|
48
|
+
surface?: QueueMessageInputSurfaceEnum | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof QueueMessageInput
|
|
53
|
+
*/
|
|
54
|
+
endUserId?: string | null;
|
|
43
55
|
}
|
|
44
56
|
/**
|
|
45
57
|
* @export
|
|
@@ -49,6 +61,17 @@ export declare const QueueMessageInputDeliveryEnum: {
|
|
|
49
61
|
readonly Now: "now";
|
|
50
62
|
};
|
|
51
63
|
export type QueueMessageInputDeliveryEnum = typeof QueueMessageInputDeliveryEnum[keyof typeof QueueMessageInputDeliveryEnum];
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export declare const QueueMessageInputSurfaceEnum: {
|
|
68
|
+
readonly Builder: "builder";
|
|
69
|
+
readonly Playground: "playground";
|
|
70
|
+
readonly Tests: "tests";
|
|
71
|
+
readonly Evals: "evals";
|
|
72
|
+
readonly Cowork: "cowork";
|
|
73
|
+
};
|
|
74
|
+
export type QueueMessageInputSurfaceEnum = typeof QueueMessageInputSurfaceEnum[keyof typeof QueueMessageInputSurfaceEnum];
|
|
52
75
|
/**
|
|
53
76
|
* Check if a given object implements the QueueMessageInput interface.
|
|
54
77
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.QueueMessageInputDeliveryEnum = void 0;
|
|
16
|
+
exports.QueueMessageInputSurfaceEnum = exports.QueueMessageInputDeliveryEnum = void 0;
|
|
17
17
|
exports.instanceOfQueueMessageInput = instanceOfQueueMessageInput;
|
|
18
18
|
exports.QueueMessageInputFromJSON = QueueMessageInputFromJSON;
|
|
19
19
|
exports.QueueMessageInputFromJSONTyped = QueueMessageInputFromJSONTyped;
|
|
@@ -27,6 +27,16 @@ exports.QueueMessageInputDeliveryEnum = {
|
|
|
27
27
|
Queue: 'queue',
|
|
28
28
|
Now: 'now'
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.QueueMessageInputSurfaceEnum = {
|
|
34
|
+
Builder: 'builder',
|
|
35
|
+
Playground: 'playground',
|
|
36
|
+
Tests: 'tests',
|
|
37
|
+
Evals: 'evals',
|
|
38
|
+
Cowork: 'cowork'
|
|
39
|
+
};
|
|
30
40
|
/**
|
|
31
41
|
* Check if a given object implements the QueueMessageInput interface.
|
|
32
42
|
*/
|
|
@@ -47,6 +57,8 @@ function QueueMessageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
57
|
'delivery': json['delivery'] == null ? undefined : json['delivery'],
|
|
48
58
|
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
49
59
|
'retryOf': json['retryOf'] == null ? undefined : json['retryOf'],
|
|
60
|
+
'surface': json['surface'] == null ? undefined : json['surface'],
|
|
61
|
+
'endUserId': json['endUserId'] == null ? undefined : json['endUserId'],
|
|
50
62
|
};
|
|
51
63
|
}
|
|
52
64
|
function QueueMessageInputToJSON(json) {
|
|
@@ -61,5 +73,7 @@ function QueueMessageInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
73
|
'delivery': value['delivery'],
|
|
62
74
|
'agentId': value['agentId'],
|
|
63
75
|
'retryOf': value['retryOf'],
|
|
76
|
+
'surface': value['surface'],
|
|
77
|
+
'endUserId': value['endUserId'],
|
|
64
78
|
};
|
|
65
79
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 function call the app must run before the turn can continue.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RequiredAction
|
|
16
|
+
*/
|
|
17
|
+
export interface RequiredAction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequiredAction
|
|
22
|
+
*/
|
|
23
|
+
type?: RequiredActionTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RequiredAction
|
|
28
|
+
*/
|
|
29
|
+
requestId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RequiredAction
|
|
34
|
+
*/
|
|
35
|
+
toolCallId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RequiredAction
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof RequiredAction
|
|
46
|
+
*/
|
|
47
|
+
arguments: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof RequiredAction
|
|
54
|
+
*/
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof RequiredAction
|
|
60
|
+
*/
|
|
61
|
+
expiresAt?: Date | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const RequiredActionTypeEnum: {
|
|
67
|
+
readonly FunctionCall: "function_call";
|
|
68
|
+
};
|
|
69
|
+
export type RequiredActionTypeEnum = typeof RequiredActionTypeEnum[keyof typeof RequiredActionTypeEnum];
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the RequiredAction interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfRequiredAction(value: object): value is RequiredAction;
|
|
74
|
+
export declare function RequiredActionFromJSON(json: any): RequiredAction;
|
|
75
|
+
export declare function RequiredActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequiredAction;
|
|
76
|
+
export declare function RequiredActionToJSON(json: any): RequiredAction;
|
|
77
|
+
export declare function RequiredActionToJSONTyped(value?: RequiredAction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.RequiredActionTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfRequiredAction = instanceOfRequiredAction;
|
|
18
|
+
exports.RequiredActionFromJSON = RequiredActionFromJSON;
|
|
19
|
+
exports.RequiredActionFromJSONTyped = RequiredActionFromJSONTyped;
|
|
20
|
+
exports.RequiredActionToJSON = RequiredActionToJSON;
|
|
21
|
+
exports.RequiredActionToJSONTyped = RequiredActionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RequiredActionTypeEnum = {
|
|
26
|
+
FunctionCall: 'function_call'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RequiredAction interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfRequiredAction(value) {
|
|
32
|
+
if (!('requestId' in value) || value['requestId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('toolCallId' in value) || value['toolCallId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('arguments' in value) || value['arguments'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function RequiredActionFromJSON(json) {
|
|
45
|
+
return RequiredActionFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RequiredActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
53
|
+
'requestId': json['requestId'],
|
|
54
|
+
'toolCallId': json['toolCallId'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'arguments': json['arguments'],
|
|
57
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
58
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function RequiredActionToJSON(json) {
|
|
62
|
+
return RequiredActionToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function RequiredActionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'type': value['type'],
|
|
70
|
+
'requestId': value['requestId'],
|
|
71
|
+
'toolCallId': value['toolCallId'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'arguments': value['arguments'],
|
|
74
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
75
|
+
'expiresAt': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -34,6 +34,46 @@ export interface ResponseDetail {
|
|
|
34
34
|
* @memberof ResponseDetail
|
|
35
35
|
*/
|
|
36
36
|
output: Array<UIMessage>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {{ [key: string]: any; }}
|
|
40
|
+
* @memberof ResponseDetail
|
|
41
|
+
*/
|
|
42
|
+
usage?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
} | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {any}
|
|
48
|
+
* @memberof ResponseDetail
|
|
49
|
+
*/
|
|
50
|
+
structuredOutput?: any | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof ResponseDetail
|
|
55
|
+
*/
|
|
56
|
+
outputErrors?: Array<string> | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
60
|
+
* @memberof ResponseDetail
|
|
61
|
+
*/
|
|
62
|
+
outputCitations?: Array<{
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}> | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ResponseDetail
|
|
69
|
+
*/
|
|
70
|
+
outputNote?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ResponseDetail
|
|
75
|
+
*/
|
|
76
|
+
outputSkipped?: string | null;
|
|
37
77
|
}
|
|
38
78
|
/**
|
|
39
79
|
* @export
|
|
@@ -52,6 +52,12 @@ function ResponseDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'responseId': json['responseId'],
|
|
53
53
|
'status': json['status'],
|
|
54
54
|
'output': (json['output'].map(UIMessage_js_1.UIMessageFromJSON)),
|
|
55
|
+
'usage': json['usage'] == null ? undefined : json['usage'],
|
|
56
|
+
'structuredOutput': json['structuredOutput'] == null ? undefined : json['structuredOutput'],
|
|
57
|
+
'outputErrors': json['outputErrors'] == null ? undefined : json['outputErrors'],
|
|
58
|
+
'outputCitations': json['outputCitations'] == null ? undefined : json['outputCitations'],
|
|
59
|
+
'outputNote': json['outputNote'] == null ? undefined : json['outputNote'],
|
|
60
|
+
'outputSkipped': json['outputSkipped'] == null ? undefined : json['outputSkipped'],
|
|
55
61
|
};
|
|
56
62
|
}
|
|
57
63
|
function ResponseDetailToJSON(json) {
|
|
@@ -65,5 +71,11 @@ function ResponseDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
71
|
'responseId': value['responseId'],
|
|
66
72
|
'status': value['status'],
|
|
67
73
|
'output': (value['output'].map(UIMessage_js_1.UIMessageToJSON)),
|
|
74
|
+
'usage': value['usage'],
|
|
75
|
+
'structuredOutput': value['structuredOutput'],
|
|
76
|
+
'outputErrors': value['outputErrors'],
|
|
77
|
+
'outputCitations': value['outputCitations'],
|
|
78
|
+
'outputNote': value['outputNote'],
|
|
79
|
+
'outputSkipped': value['outputSkipped'],
|
|
68
80
|
};
|
|
69
81
|
}
|
|
@@ -58,7 +58,30 @@ export interface ResponseInput {
|
|
|
58
58
|
* @memberof ResponseInput
|
|
59
59
|
*/
|
|
60
60
|
retryOf?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ResponseInput
|
|
65
|
+
*/
|
|
66
|
+
surface?: ResponseInputSurfaceEnum | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ResponseInput
|
|
71
|
+
*/
|
|
72
|
+
endUserId?: string | null;
|
|
61
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const ResponseInputSurfaceEnum: {
|
|
78
|
+
readonly Builder: "builder";
|
|
79
|
+
readonly Playground: "playground";
|
|
80
|
+
readonly Tests: "tests";
|
|
81
|
+
readonly Evals: "evals";
|
|
82
|
+
readonly Cowork: "cowork";
|
|
83
|
+
};
|
|
84
|
+
export type ResponseInputSurfaceEnum = typeof ResponseInputSurfaceEnum[keyof typeof ResponseInputSurfaceEnum];
|
|
62
85
|
/**
|
|
63
86
|
* Check if a given object implements the ResponseInput interface.
|
|
64
87
|
*/
|
|
@@ -13,12 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ResponseInputSurfaceEnum = void 0;
|
|
16
17
|
exports.instanceOfResponseInput = instanceOfResponseInput;
|
|
17
18
|
exports.ResponseInputFromJSON = ResponseInputFromJSON;
|
|
18
19
|
exports.ResponseInputFromJSONTyped = ResponseInputFromJSONTyped;
|
|
19
20
|
exports.ResponseInputToJSON = ResponseInputToJSON;
|
|
20
21
|
exports.ResponseInputToJSONTyped = ResponseInputToJSONTyped;
|
|
21
22
|
const InputMessage_js_1 = require("./InputMessage.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ResponseInputSurfaceEnum = {
|
|
27
|
+
Builder: 'builder',
|
|
28
|
+
Playground: 'playground',
|
|
29
|
+
Tests: 'tests',
|
|
30
|
+
Evals: 'evals',
|
|
31
|
+
Cowork: 'cowork'
|
|
32
|
+
};
|
|
22
33
|
/**
|
|
23
34
|
* Check if a given object implements the ResponseInput interface.
|
|
24
35
|
*/
|
|
@@ -44,6 +55,8 @@ function ResponseInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
55
|
'agentId': json['agentId'] == null ? undefined : json['agentId'],
|
|
45
56
|
'regenerateAfter': json['regenerateAfter'] == null ? undefined : json['regenerateAfter'],
|
|
46
57
|
'retryOf': json['retryOf'] == null ? undefined : json['retryOf'],
|
|
58
|
+
'surface': json['surface'] == null ? undefined : json['surface'],
|
|
59
|
+
'endUserId': json['endUserId'] == null ? undefined : json['endUserId'],
|
|
47
60
|
};
|
|
48
61
|
}
|
|
49
62
|
function ResponseInputToJSON(json) {
|
|
@@ -61,5 +74,7 @@ function ResponseInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
74
|
'agentId': value['agentId'],
|
|
62
75
|
'regenerateAfter': value['regenerateAfter'],
|
|
63
76
|
'retryOf': value['retryOf'],
|
|
77
|
+
'surface': value['surface'],
|
|
78
|
+
'endUserId': value['endUserId'],
|
|
64
79
|
};
|
|
65
80
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ToolResults200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolResults200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ToolResults200Response
|
|
22
|
+
*/
|
|
23
|
+
accepted: boolean | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ToolResults200Response
|
|
28
|
+
*/
|
|
29
|
+
duplicate: boolean | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ToolResults200Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfToolResults200Response(value: object): value is ToolResults200Response;
|
|
35
|
+
export declare function ToolResults200ResponseFromJSON(json: any): ToolResults200Response;
|
|
36
|
+
export declare function ToolResults200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolResults200Response;
|
|
37
|
+
export declare function ToolResults200ResponseToJSON(json: any): ToolResults200Response;
|
|
38
|
+
export declare function ToolResults200ResponseToJSONTyped(value?: ToolResults200Response | 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.instanceOfToolResults200Response = instanceOfToolResults200Response;
|
|
17
|
+
exports.ToolResults200ResponseFromJSON = ToolResults200ResponseFromJSON;
|
|
18
|
+
exports.ToolResults200ResponseFromJSONTyped = ToolResults200ResponseFromJSONTyped;
|
|
19
|
+
exports.ToolResults200ResponseToJSON = ToolResults200ResponseToJSON;
|
|
20
|
+
exports.ToolResults200ResponseToJSONTyped = ToolResults200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ToolResults200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfToolResults200Response(value) {
|
|
25
|
+
if (!('accepted' in value) || value['accepted'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('duplicate' in value) || value['duplicate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ToolResults200ResponseFromJSON(json) {
|
|
32
|
+
return ToolResults200ResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ToolResults200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'accepted': json['accepted'],
|
|
40
|
+
'duplicate': json['duplicate'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ToolResults200ResponseToJSON(json) {
|
|
44
|
+
return ToolResults200ResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ToolResults200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'accepted': value['accepted'],
|
|
52
|
+
'duplicate': value['duplicate'],
|
|
53
|
+
};
|
|
54
|
+
}
|