sarvam-agents-client 0.5.2 → 0.5.4
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 +52 -29
- package/dist/apis/AgentsApi.d.ts +96 -11
- package/dist/apis/AgentsApi.js +229 -9
- package/dist/apis/ConversationsApi.d.ts +5 -2
- package/dist/apis/ConversationsApi.js +7 -2
- package/dist/client.d.ts +3 -2
- package/dist/client.js +2 -1
- package/dist/compat/core/agents.d.ts +6 -1
- package/dist/compat/core/agents.js +237 -27
- package/dist/compat/core/customApis.d.ts +76 -0
- package/dist/compat/core/customApis.js +424 -0
- package/dist/compat/core/data.js +1 -1
- package/dist/compat/openai/client.d.ts +3 -0
- package/dist/compat/openai/client.js +5 -1
- package/dist/compat/openai/index.d.ts +1 -0
- package/dist/compat/openai/index.js +0 -1
- package/dist/compat/openai/resources/agents.js +8 -1
- package/dist/compat/openai/resources/sarvam.d.ts +26 -0
- package/dist/compat/openai/resources/sarvam.js +56 -0
- package/dist/compose/deploy.d.ts +14 -3
- package/dist/compose/deploy.js +60 -7
- package/dist/compose/errors.d.ts +4 -0
- package/dist/compose/errors.js +6 -1
- package/dist/compose/settingsTransport.d.ts +18 -13
- package/dist/compose/settingsTransport.js +78 -130
- package/dist/compose/transport.d.ts +12 -2
- package/dist/compose/webhook.d.ts +10 -13
- package/dist/compose/webhook.js +48 -45
- package/dist/compose/webhookSecrets.d.ts +79 -49
- package/dist/compose/webhookSecrets.js +244 -195
- package/dist/esm/apis/AgentsApi.d.ts +96 -11
- package/dist/esm/apis/AgentsApi.js +230 -10
- package/dist/esm/apis/ConversationsApi.d.ts +5 -2
- package/dist/esm/apis/ConversationsApi.js +7 -2
- package/dist/esm/client.d.ts +3 -2
- package/dist/esm/client.js +2 -1
- package/dist/esm/compat/core/agents.d.ts +6 -1
- package/dist/esm/compat/core/agents.js +237 -27
- package/dist/esm/compat/core/customApis.d.ts +76 -0
- package/dist/esm/compat/core/customApis.js +419 -0
- package/dist/esm/compat/core/data.js +1 -1
- package/dist/esm/compat/openai/client.d.ts +3 -0
- package/dist/esm/compat/openai/client.js +5 -1
- package/dist/esm/compat/openai/index.d.ts +1 -0
- package/dist/esm/compat/openai/index.js +0 -1
- package/dist/esm/compat/openai/resources/agents.js +8 -1
- package/dist/esm/compat/openai/resources/sarvam.d.ts +26 -0
- package/dist/esm/compat/openai/resources/sarvam.js +51 -0
- package/dist/esm/compose/deploy.d.ts +14 -3
- package/dist/esm/compose/deploy.js +60 -7
- package/dist/esm/compose/errors.d.ts +4 -0
- package/dist/esm/compose/errors.js +4 -0
- package/dist/esm/compose/settingsTransport.d.ts +18 -13
- package/dist/esm/compose/settingsTransport.js +80 -132
- package/dist/esm/compose/transport.d.ts +12 -2
- package/dist/esm/compose/webhook.d.ts +10 -13
- package/dist/esm/compose/webhook.js +45 -42
- package/dist/esm/compose/webhookSecrets.d.ts +79 -49
- package/dist/esm/compose/webhookSecrets.js +241 -193
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/models/AgentConversationDetail.d.ts +12 -0
- package/dist/esm/models/AgentConversationDetail.js +4 -0
- package/dist/esm/models/AgentConversationView.d.ts +12 -0
- package/dist/esm/models/AgentConversationView.js +4 -0
- package/dist/esm/models/AgentResource.d.ts +7 -0
- package/dist/esm/models/AgentResource.js +3 -0
- package/dist/esm/models/AgentVersionSavedResource.d.ts +65 -0
- package/dist/esm/models/AgentVersionSavedResource.js +60 -0
- package/dist/esm/models/AgentWebhookList.d.ts +33 -0
- package/dist/esm/models/AgentWebhookList.js +44 -0
- package/dist/esm/models/AgentWebhookView.d.ts +76 -0
- package/dist/esm/models/AgentWebhookView.js +70 -0
- package/dist/esm/models/ConversationDetail.d.ts +6 -0
- package/dist/esm/models/ConversationDetail.js +2 -0
- package/dist/esm/models/ConversationView.d.ts +6 -0
- package/dist/esm/models/ConversationView.js +2 -0
- package/dist/esm/models/ErrorDetailItem.d.ts +3 -0
- package/dist/esm/models/FileNodeView.d.ts +7 -0
- package/dist/esm/models/FileNodeView.js +3 -0
- package/dist/esm/models/QueueMessageInput.d.ts +6 -0
- package/dist/esm/models/QueueMessageInput.js +2 -0
- package/dist/esm/models/RotatedWebhookSecretView.d.ts +58 -0
- package/dist/esm/models/RotatedWebhookSecretView.js +61 -0
- package/dist/esm/models/SaveWarningView.d.ts +44 -0
- package/dist/esm/models/SaveWarningView.js +51 -0
- package/dist/esm/models/ShareSkippedResource.d.ts +41 -0
- package/dist/esm/models/ShareSkippedResource.js +47 -0
- package/dist/esm/models/WebhookSecretPutBody.d.ts +32 -0
- package/dist/esm/models/WebhookSecretPutBody.js +43 -0
- package/dist/esm/models/WebhookSecretStateView.d.ts +52 -0
- package/dist/esm/models/WebhookSecretStateView.js +56 -0
- package/dist/esm/models/WebhookSecretValueView.d.ts +32 -0
- package/dist/esm/models/WebhookSecretValueView.js +44 -0
- package/dist/esm/models/WebhookWarning.d.ts +44 -0
- package/dist/esm/models/WebhookWarning.js +51 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/dist/models/AgentConversationDetail.d.ts +12 -0
- package/dist/models/AgentConversationDetail.js +4 -0
- package/dist/models/AgentConversationView.d.ts +12 -0
- package/dist/models/AgentConversationView.js +4 -0
- package/dist/models/AgentResource.d.ts +7 -0
- package/dist/models/AgentResource.js +3 -0
- package/dist/models/AgentVersionSavedResource.d.ts +65 -0
- package/dist/models/AgentVersionSavedResource.js +67 -0
- package/dist/models/AgentWebhookList.d.ts +33 -0
- package/dist/models/AgentWebhookList.js +51 -0
- package/dist/models/AgentWebhookView.d.ts +76 -0
- package/dist/models/AgentWebhookView.js +78 -0
- package/dist/models/ConversationDetail.d.ts +6 -0
- package/dist/models/ConversationDetail.js +2 -0
- package/dist/models/ConversationView.d.ts +6 -0
- package/dist/models/ConversationView.js +2 -0
- package/dist/models/ErrorDetailItem.d.ts +3 -0
- package/dist/models/FileNodeView.d.ts +7 -0
- package/dist/models/FileNodeView.js +3 -0
- package/dist/models/QueueMessageInput.d.ts +6 -0
- package/dist/models/QueueMessageInput.js +2 -0
- package/dist/models/RotatedWebhookSecretView.d.ts +58 -0
- package/dist/models/RotatedWebhookSecretView.js +69 -0
- package/dist/models/SaveWarningView.d.ts +44 -0
- package/dist/models/SaveWarningView.js +58 -0
- package/dist/models/ShareSkippedResource.d.ts +41 -0
- package/dist/models/ShareSkippedResource.js +54 -0
- package/dist/models/WebhookSecretPutBody.d.ts +32 -0
- package/dist/models/WebhookSecretPutBody.js +50 -0
- package/dist/models/WebhookSecretStateView.d.ts +52 -0
- package/dist/models/WebhookSecretStateView.js +64 -0
- package/dist/models/WebhookSecretValueView.d.ts +32 -0
- package/dist/models/WebhookSecretValueView.js +51 -0
- package/dist/models/WebhookWarning.d.ts +44 -0
- package/dist/models/WebhookWarning.js +58 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/AgentsApi.ts +366 -11
- package/src/apis/ConversationsApi.ts +9 -2
- package/src/client.ts +3 -2
- package/src/compat/core/agents.ts +265 -36
- package/src/compat/core/customApis.ts +506 -0
- package/src/compat/core/data.ts +1 -1
- package/src/compat/openai/client.ts +7 -1
- package/src/compat/openai/index.ts +9 -0
- package/src/compat/openai/resources/agents.ts +9 -1
- package/src/compat/openai/resources/sarvam.ts +94 -0
- package/src/compose/deploy.ts +71 -10
- package/src/compose/errors.ts +4 -0
- package/src/compose/settingsTransport.ts +78 -131
- package/src/compose/transport.ts +10 -2
- package/src/compose/webhook.ts +49 -45
- package/src/compose/webhookSecrets.ts +227 -179
- package/src/index.ts +2 -1
- package/src/models/AgentConversationDetail.ts +16 -0
- package/src/models/AgentConversationView.ts +16 -0
- package/src/models/AgentResource.ts +15 -0
- package/src/models/AgentVersionSavedResource.ts +119 -0
- package/src/models/AgentWebhookList.ts +74 -0
- package/src/models/AgentWebhookView.ts +129 -0
- package/src/models/ConversationDetail.ts +8 -0
- package/src/models/ConversationView.ts +8 -0
- package/src/models/ErrorDetailItem.ts +3 -0
- package/src/models/FileNodeView.ts +16 -0
- package/src/models/QueueMessageInput.ts +8 -0
- package/src/models/RotatedWebhookSecretView.ts +103 -0
- package/src/models/SaveWarningView.ts +84 -0
- package/src/models/ShareSkippedResource.ts +78 -0
- package/src/models/WebhookSecretPutBody.ts +66 -0
- package/src/models/WebhookSecretStateView.ts +94 -0
- package/src/models/WebhookSecretValueView.ts +66 -0
- package/src/models/WebhookWarning.ts +84 -0
- package/src/models/index.ts +10 -0
|
@@ -81,6 +81,7 @@ function AgentConversationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
81
|
'lastActiveAt': (new Date(json['lastActiveAt'])),
|
|
82
82
|
'lastReadAt': (json['lastReadAt'] == null ? null : new Date(json['lastReadAt'])),
|
|
83
83
|
'createdAt': (new Date(json['createdAt'])),
|
|
84
|
+
'lastAgentVersion': json['lastAgentVersion'] == null ? undefined : json['lastAgentVersion'],
|
|
84
85
|
'highlight': json['highlight'] == null ? undefined : (json['highlight'].map(FieldHighlight_js_1.FieldHighlightFromJSON)),
|
|
85
86
|
'messages': (json['messages'].map(UIMessage_js_1.UIMessageFromJSON)),
|
|
86
87
|
'lastEventId': json['lastEventId'],
|
|
@@ -90,6 +91,7 @@ function AgentConversationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
91
|
'requiredActions': json['requiredActions'] == null ? undefined : (json['requiredActions'].map(RequiredAction_js_1.RequiredActionFromJSON)),
|
|
91
92
|
'isMine': json['isMine'] == null ? undefined : json['isMine'],
|
|
92
93
|
'panjaWsId': json['panjaWsId'],
|
|
94
|
+
'startedByName': json['startedByName'] == null ? undefined : json['startedByName'],
|
|
93
95
|
'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
|
|
94
96
|
'panjaUserId': json['panjaUserId'] == null ? undefined : json['panjaUserId'],
|
|
95
97
|
};
|
|
@@ -115,6 +117,7 @@ function AgentConversationDetailToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
115
117
|
'lastActiveAt': ((value['lastActiveAt']).toISOString()),
|
|
116
118
|
'lastReadAt': (value['lastReadAt'] == null ? null : value['lastReadAt'].toISOString()),
|
|
117
119
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
120
|
+
'lastAgentVersion': value['lastAgentVersion'],
|
|
118
121
|
'highlight': value['highlight'] == null ? undefined : (value['highlight'].map(FieldHighlight_js_1.FieldHighlightToJSON)),
|
|
119
122
|
'messages': (value['messages'].map(UIMessage_js_1.UIMessageToJSON)),
|
|
120
123
|
'lastEventId': value['lastEventId'],
|
|
@@ -124,6 +127,7 @@ function AgentConversationDetailToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
124
127
|
'requiredActions': value['requiredActions'] == null ? undefined : (value['requiredActions'].map(RequiredAction_js_1.RequiredActionToJSON)),
|
|
125
128
|
'isMine': value['isMine'],
|
|
126
129
|
'panjaWsId': value['panjaWsId'],
|
|
130
|
+
'startedByName': value['startedByName'],
|
|
127
131
|
'readOnly': value['readOnly'],
|
|
128
132
|
'panjaUserId': value['panjaUserId'],
|
|
129
133
|
};
|
|
@@ -97,6 +97,12 @@ export interface AgentConversationView {
|
|
|
97
97
|
* @memberof AgentConversationView
|
|
98
98
|
*/
|
|
99
99
|
createdAt: Date;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof AgentConversationView
|
|
104
|
+
*/
|
|
105
|
+
lastAgentVersion?: number | null;
|
|
100
106
|
/**
|
|
101
107
|
*
|
|
102
108
|
* @type {Array<FieldHighlight>}
|
|
@@ -115,6 +121,12 @@ export interface AgentConversationView {
|
|
|
115
121
|
* @memberof AgentConversationView
|
|
116
122
|
*/
|
|
117
123
|
panjaWsId: string | null;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof AgentConversationView
|
|
128
|
+
*/
|
|
129
|
+
startedByName?: string | null;
|
|
118
130
|
/**
|
|
119
131
|
* Deprecated: the server no longer sends this field, so it is always undefined. Use isMine.
|
|
120
132
|
* @type {string}
|
|
@@ -74,9 +74,11 @@ function AgentConversationViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
74
|
'lastActiveAt': (new Date(json['lastActiveAt'])),
|
|
75
75
|
'lastReadAt': (json['lastReadAt'] == null ? null : new Date(json['lastReadAt'])),
|
|
76
76
|
'createdAt': (new Date(json['createdAt'])),
|
|
77
|
+
'lastAgentVersion': json['lastAgentVersion'] == null ? undefined : json['lastAgentVersion'],
|
|
77
78
|
'highlight': json['highlight'] == null ? undefined : (json['highlight'].map(FieldHighlight_js_1.FieldHighlightFromJSON)),
|
|
78
79
|
'isMine': json['isMine'] == null ? undefined : json['isMine'],
|
|
79
80
|
'panjaWsId': json['panjaWsId'],
|
|
81
|
+
'startedByName': json['startedByName'] == null ? undefined : json['startedByName'],
|
|
80
82
|
'panjaUserId': json['panjaUserId'] == null ? undefined : json['panjaUserId'],
|
|
81
83
|
};
|
|
82
84
|
}
|
|
@@ -101,9 +103,11 @@ function AgentConversationViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
101
103
|
'lastActiveAt': ((value['lastActiveAt']).toISOString()),
|
|
102
104
|
'lastReadAt': (value['lastReadAt'] == null ? null : value['lastReadAt'].toISOString()),
|
|
103
105
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
106
|
+
'lastAgentVersion': value['lastAgentVersion'],
|
|
104
107
|
'highlight': value['highlight'] == null ? undefined : (value['highlight'].map(FieldHighlight_js_1.FieldHighlightToJSON)),
|
|
105
108
|
'isMine': value['isMine'],
|
|
106
109
|
'panjaWsId': value['panjaWsId'],
|
|
110
|
+
'startedByName': value['startedByName'],
|
|
107
111
|
'panjaUserId': value['panjaUserId'],
|
|
108
112
|
};
|
|
109
113
|
}
|
|
@@ -16,6 +16,7 @@ import type { TriggerToken } from './TriggerToken.js';
|
|
|
16
16
|
import type { Capabilities } from './Capabilities.js';
|
|
17
17
|
import type { FieldHighlight } from './FieldHighlight.js';
|
|
18
18
|
import type { EntityCategory } from './EntityCategory.js';
|
|
19
|
+
import type { WebhookWarning } from './WebhookWarning.js';
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
22
|
* @export
|
|
@@ -156,6 +157,12 @@ export interface AgentResource {
|
|
|
156
157
|
* @memberof AgentResource
|
|
157
158
|
*/
|
|
158
159
|
triggerTokens?: Array<TriggerToken> | null;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {Array<WebhookWarning>}
|
|
163
|
+
* @memberof AgentResource
|
|
164
|
+
*/
|
|
165
|
+
webhookWarnings?: Array<WebhookWarning> | null;
|
|
159
166
|
/**
|
|
160
167
|
*
|
|
161
168
|
* @type {string}
|
|
@@ -26,6 +26,7 @@ const TriggerToken_js_1 = require("./TriggerToken.js");
|
|
|
26
26
|
const Capabilities_js_1 = require("./Capabilities.js");
|
|
27
27
|
const FieldHighlight_js_1 = require("./FieldHighlight.js");
|
|
28
28
|
const EntityCategory_js_1 = require("./EntityCategory.js");
|
|
29
|
+
const WebhookWarning_js_1 = require("./WebhookWarning.js");
|
|
29
30
|
/**
|
|
30
31
|
* @export
|
|
31
32
|
*/
|
|
@@ -104,6 +105,7 @@ function AgentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
105
|
'settings': json['settings'] == null ? undefined : json['settings'],
|
|
105
106
|
'interactionCount': json['interactionCount'] == null ? undefined : json['interactionCount'],
|
|
106
107
|
'triggerTokens': json['triggerTokens'] == null ? undefined : (json['triggerTokens'].map(TriggerToken_js_1.TriggerTokenFromJSON)),
|
|
108
|
+
'webhookWarnings': json['webhookWarnings'] == null ? undefined : (json['webhookWarnings'].map(WebhookWarning_js_1.WebhookWarningFromJSON)),
|
|
107
109
|
'slackChannelName': json['slackChannelName'] == null ? undefined : json['slackChannelName'],
|
|
108
110
|
'slackUrl': json['slackUrl'] == null ? undefined : json['slackUrl'],
|
|
109
111
|
'slackWorkspaceName': json['slackWorkspaceName'] == null ? undefined : json['slackWorkspaceName'],
|
|
@@ -143,6 +145,7 @@ function AgentResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
143
145
|
'settings': value['settings'],
|
|
144
146
|
'interactionCount': value['interactionCount'],
|
|
145
147
|
'triggerTokens': value['triggerTokens'] == null ? undefined : (value['triggerTokens'].map(TriggerToken_js_1.TriggerTokenToJSON)),
|
|
148
|
+
'webhookWarnings': value['webhookWarnings'] == null ? undefined : (value['webhookWarnings'].map(WebhookWarning_js_1.WebhookWarningToJSON)),
|
|
146
149
|
'slackChannelName': value['slackChannelName'],
|
|
147
150
|
'slackUrl': value['slackUrl'],
|
|
148
151
|
'slackWorkspaceName': value['slackWorkspaceName'],
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { ShareSkippedResource } from './ShareSkippedResource.js';
|
|
13
|
+
/**
|
|
14
|
+
* A saved version. ``shareSkipped`` is set when the agent is still
|
|
15
|
+
* private because its automatic workspace share was refused; null once it
|
|
16
|
+
* is shared. The next save tries the share again.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AgentVersionSavedResource
|
|
19
|
+
*/
|
|
20
|
+
export interface AgentVersionSavedResource {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof AgentVersionSavedResource
|
|
25
|
+
*/
|
|
26
|
+
version: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Date}
|
|
30
|
+
* @memberof AgentVersionSavedResource
|
|
31
|
+
*/
|
|
32
|
+
committedAt: Date;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof AgentVersionSavedResource
|
|
37
|
+
*/
|
|
38
|
+
note: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof AgentVersionSavedResource
|
|
43
|
+
*/
|
|
44
|
+
everLive: boolean;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof AgentVersionSavedResource
|
|
49
|
+
*/
|
|
50
|
+
createdBy?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {ShareSkippedResource}
|
|
54
|
+
* @memberof AgentVersionSavedResource
|
|
55
|
+
*/
|
|
56
|
+
shareSkipped?: ShareSkippedResource | null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the AgentVersionSavedResource interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfAgentVersionSavedResource(value: object): value is AgentVersionSavedResource;
|
|
62
|
+
export declare function AgentVersionSavedResourceFromJSON(json: any): AgentVersionSavedResource;
|
|
63
|
+
export declare function AgentVersionSavedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentVersionSavedResource;
|
|
64
|
+
export declare function AgentVersionSavedResourceToJSON(json: any): AgentVersionSavedResource;
|
|
65
|
+
export declare function AgentVersionSavedResourceToJSONTyped(value?: AgentVersionSavedResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfAgentVersionSavedResource = instanceOfAgentVersionSavedResource;
|
|
17
|
+
exports.AgentVersionSavedResourceFromJSON = AgentVersionSavedResourceFromJSON;
|
|
18
|
+
exports.AgentVersionSavedResourceFromJSONTyped = AgentVersionSavedResourceFromJSONTyped;
|
|
19
|
+
exports.AgentVersionSavedResourceToJSON = AgentVersionSavedResourceToJSON;
|
|
20
|
+
exports.AgentVersionSavedResourceToJSONTyped = AgentVersionSavedResourceToJSONTyped;
|
|
21
|
+
const ShareSkippedResource_js_1 = require("./ShareSkippedResource.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AgentVersionSavedResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAgentVersionSavedResource(value) {
|
|
26
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('committedAt' in value) || value['committedAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('note' in value) || value['note'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('everLive' in value) || value['everLive'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function AgentVersionSavedResourceFromJSON(json) {
|
|
37
|
+
return AgentVersionSavedResourceFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function AgentVersionSavedResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'version': json['version'],
|
|
45
|
+
'committedAt': (new Date(json['committedAt'])),
|
|
46
|
+
'note': json['note'],
|
|
47
|
+
'everLive': json['everLive'],
|
|
48
|
+
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
|
|
49
|
+
'shareSkipped': json['shareSkipped'] == null ? undefined : (0, ShareSkippedResource_js_1.ShareSkippedResourceFromJSON)(json['shareSkipped']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AgentVersionSavedResourceToJSON(json) {
|
|
53
|
+
return AgentVersionSavedResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AgentVersionSavedResourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'version': value['version'],
|
|
61
|
+
'committedAt': ((value['committedAt']).toISOString()),
|
|
62
|
+
'note': value['note'],
|
|
63
|
+
'everLive': value['everLive'],
|
|
64
|
+
'createdBy': value['createdBy'],
|
|
65
|
+
'shareSkipped': (0, ShareSkippedResource_js_1.ShareSkippedResourceToJSON)(value['shareSkipped']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sarvam Agents API
|
|
3
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
* Contact: support@sarvam.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AgentWebhookView } from './AgentWebhookView.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentWebhookList
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentWebhookList {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AgentWebhookView>}
|
|
22
|
+
* @memberof AgentWebhookList
|
|
23
|
+
*/
|
|
24
|
+
items: Array<AgentWebhookView>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AgentWebhookList interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAgentWebhookList(value: object): value is AgentWebhookList;
|
|
30
|
+
export declare function AgentWebhookListFromJSON(json: any): AgentWebhookList;
|
|
31
|
+
export declare function AgentWebhookListFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentWebhookList;
|
|
32
|
+
export declare function AgentWebhookListToJSON(json: any): AgentWebhookList;
|
|
33
|
+
export declare function AgentWebhookListToJSONTyped(value?: AgentWebhookList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Sarvam Agents API
|
|
6
|
+
* Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
* Contact: support@sarvam.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAgentWebhookList = instanceOfAgentWebhookList;
|
|
17
|
+
exports.AgentWebhookListFromJSON = AgentWebhookListFromJSON;
|
|
18
|
+
exports.AgentWebhookListFromJSONTyped = AgentWebhookListFromJSONTyped;
|
|
19
|
+
exports.AgentWebhookListToJSON = AgentWebhookListToJSON;
|
|
20
|
+
exports.AgentWebhookListToJSONTyped = AgentWebhookListToJSONTyped;
|
|
21
|
+
const AgentWebhookView_js_1 = require("./AgentWebhookView.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AgentWebhookList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAgentWebhookList(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AgentWebhookListFromJSON(json) {
|
|
31
|
+
return AgentWebhookListFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AgentWebhookListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'items': (json['items'].map(AgentWebhookView_js_1.AgentWebhookViewFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AgentWebhookListToJSON(json) {
|
|
42
|
+
return AgentWebhookListToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AgentWebhookListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'items': (value['items'].map(AgentWebhookView_js_1.AgentWebhookViewToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 AgentWebhookView
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentWebhookView {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AgentWebhookView
|
|
22
|
+
*/
|
|
23
|
+
webhookKey: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AgentWebhookView
|
|
28
|
+
*/
|
|
29
|
+
url: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof AgentWebhookView
|
|
34
|
+
*/
|
|
35
|
+
events: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof AgentWebhookView
|
|
40
|
+
*/
|
|
41
|
+
inAgentJson: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AgentWebhookView
|
|
46
|
+
*/
|
|
47
|
+
secretStatus: AgentWebhookViewSecretStatusEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof AgentWebhookView
|
|
52
|
+
*/
|
|
53
|
+
secretUpdatedAt?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof AgentWebhookView
|
|
58
|
+
*/
|
|
59
|
+
previousExpiresAt?: Date | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const AgentWebhookViewSecretStatusEnum: {
|
|
65
|
+
readonly Set: "set";
|
|
66
|
+
readonly Missing: "missing";
|
|
67
|
+
};
|
|
68
|
+
export type AgentWebhookViewSecretStatusEnum = typeof AgentWebhookViewSecretStatusEnum[keyof typeof AgentWebhookViewSecretStatusEnum];
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the AgentWebhookView interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfAgentWebhookView(value: object): value is AgentWebhookView;
|
|
73
|
+
export declare function AgentWebhookViewFromJSON(json: any): AgentWebhookView;
|
|
74
|
+
export declare function AgentWebhookViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentWebhookView;
|
|
75
|
+
export declare function AgentWebhookViewToJSON(json: any): AgentWebhookView;
|
|
76
|
+
export declare function AgentWebhookViewToJSONTyped(value?: AgentWebhookView | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.AgentWebhookViewSecretStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAgentWebhookView = instanceOfAgentWebhookView;
|
|
18
|
+
exports.AgentWebhookViewFromJSON = AgentWebhookViewFromJSON;
|
|
19
|
+
exports.AgentWebhookViewFromJSONTyped = AgentWebhookViewFromJSONTyped;
|
|
20
|
+
exports.AgentWebhookViewToJSON = AgentWebhookViewToJSON;
|
|
21
|
+
exports.AgentWebhookViewToJSONTyped = AgentWebhookViewToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AgentWebhookViewSecretStatusEnum = {
|
|
26
|
+
Set: 'set',
|
|
27
|
+
Missing: 'missing'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AgentWebhookView interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAgentWebhookView(value) {
|
|
33
|
+
if (!('webhookKey' in value) || value['webhookKey'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('events' in value) || value['events'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('inAgentJson' in value) || value['inAgentJson'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('secretStatus' in value) || value['secretStatus'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function AgentWebhookViewFromJSON(json) {
|
|
46
|
+
return AgentWebhookViewFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AgentWebhookViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'webhookKey': json['webhookKey'],
|
|
54
|
+
'url': json['url'],
|
|
55
|
+
'events': json['events'],
|
|
56
|
+
'inAgentJson': json['inAgentJson'],
|
|
57
|
+
'secretStatus': json['secretStatus'],
|
|
58
|
+
'secretUpdatedAt': json['secretUpdatedAt'] == null ? undefined : (new Date(json['secretUpdatedAt'])),
|
|
59
|
+
'previousExpiresAt': json['previousExpiresAt'] == null ? undefined : (new Date(json['previousExpiresAt'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function AgentWebhookViewToJSON(json) {
|
|
63
|
+
return AgentWebhookViewToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function AgentWebhookViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'webhookKey': value['webhookKey'],
|
|
71
|
+
'url': value['url'],
|
|
72
|
+
'events': value['events'],
|
|
73
|
+
'inAgentJson': value['inAgentJson'],
|
|
74
|
+
'secretStatus': value['secretStatus'],
|
|
75
|
+
'secretUpdatedAt': value['secretUpdatedAt'] == null ? undefined : (value['secretUpdatedAt'].toISOString()),
|
|
76
|
+
'previousExpiresAt': value['previousExpiresAt'] == null ? undefined : (value['previousExpiresAt'].toISOString()),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -100,6 +100,12 @@ export interface ConversationDetail {
|
|
|
100
100
|
* @memberof ConversationDetail
|
|
101
101
|
*/
|
|
102
102
|
createdAt: Date;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof ConversationDetail
|
|
107
|
+
*/
|
|
108
|
+
lastAgentVersion?: number | null;
|
|
103
109
|
/**
|
|
104
110
|
*
|
|
105
111
|
* @type {Array<FieldHighlight>}
|
|
@@ -79,6 +79,7 @@ function ConversationDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'lastActiveAt': (new Date(json['lastActiveAt'])),
|
|
80
80
|
'lastReadAt': (json['lastReadAt'] == null ? null : new Date(json['lastReadAt'])),
|
|
81
81
|
'createdAt': (new Date(json['createdAt'])),
|
|
82
|
+
'lastAgentVersion': json['lastAgentVersion'] == null ? undefined : json['lastAgentVersion'],
|
|
82
83
|
'highlight': json['highlight'] == null ? undefined : (json['highlight'].map(FieldHighlight_js_1.FieldHighlightFromJSON)),
|
|
83
84
|
'messages': (json['messages'].map(UIMessage_js_1.UIMessageFromJSON)),
|
|
84
85
|
'lastEventId': json['lastEventId'],
|
|
@@ -109,6 +110,7 @@ function ConversationDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
109
110
|
'lastActiveAt': ((value['lastActiveAt']).toISOString()),
|
|
110
111
|
'lastReadAt': (value['lastReadAt'] == null ? null : value['lastReadAt'].toISOString()),
|
|
111
112
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
113
|
+
'lastAgentVersion': value['lastAgentVersion'],
|
|
112
114
|
'highlight': value['highlight'] == null ? undefined : (value['highlight'].map(FieldHighlight_js_1.FieldHighlightToJSON)),
|
|
113
115
|
'messages': (value['messages'].map(UIMessage_js_1.UIMessageToJSON)),
|
|
114
116
|
'lastEventId': value['lastEventId'],
|
|
@@ -96,6 +96,12 @@ export interface ConversationView {
|
|
|
96
96
|
* @memberof ConversationView
|
|
97
97
|
*/
|
|
98
98
|
createdAt: Date;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof ConversationView
|
|
103
|
+
*/
|
|
104
|
+
lastAgentVersion?: number | null;
|
|
99
105
|
/**
|
|
100
106
|
*
|
|
101
107
|
* @type {Array<FieldHighlight>}
|
|
@@ -72,6 +72,7 @@ function ConversationViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
72
|
'lastActiveAt': (new Date(json['lastActiveAt'])),
|
|
73
73
|
'lastReadAt': (json['lastReadAt'] == null ? null : new Date(json['lastReadAt'])),
|
|
74
74
|
'createdAt': (new Date(json['createdAt'])),
|
|
75
|
+
'lastAgentVersion': json['lastAgentVersion'] == null ? undefined : json['lastAgentVersion'],
|
|
75
76
|
'highlight': json['highlight'] == null ? undefined : (json['highlight'].map(FieldHighlight_js_1.FieldHighlightFromJSON)),
|
|
76
77
|
};
|
|
77
78
|
}
|
|
@@ -96,6 +97,7 @@ function ConversationViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
96
97
|
'lastActiveAt': ((value['lastActiveAt']).toISOString()),
|
|
97
98
|
'lastReadAt': (value['lastReadAt'] == null ? null : value['lastReadAt'].toISOString()),
|
|
98
99
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
100
|
+
'lastAgentVersion': value['lastAgentVersion'],
|
|
99
101
|
'highlight': value['highlight'] == null ? undefined : (value['highlight'].map(FieldHighlight_js_1.FieldHighlightToJSON)),
|
|
100
102
|
};
|
|
101
103
|
}
|
|
@@ -23,6 +23,9 @@ import type { Reason } from './Reason.js';
|
|
|
23
23
|
* flow.
|
|
24
24
|
* - ``AGENT_NOT_DEPLOYED`` (409 on an ``origin=managed_agents`` conversation
|
|
25
25
|
* or turn): carries ``agentId``.
|
|
26
|
+
* - ``AGENT_VERSION_PINNED`` (409 on a Playground turn or queued message
|
|
27
|
+
* whose ``agentVersion`` differs from its chat's pinned version): carries
|
|
28
|
+
* ``pinnedVersion`` and ``pickedVersion``.
|
|
26
29
|
* - ``SERVICE_TOKEN_EXISTS`` (409 on ``POST /v1/service-tokens``): carries
|
|
27
30
|
* ``tokenId`` and ``tokenPrefix`` of the caller's live token, when it still
|
|
28
31
|
* exists at the time of the read.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SaveWarningView } from './SaveWarningView.js';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -51,6 +52,12 @@ export interface FileNodeView {
|
|
|
51
52
|
* @memberof FileNodeView
|
|
52
53
|
*/
|
|
53
54
|
isOwnedByMe?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<SaveWarningView>}
|
|
58
|
+
* @memberof FileNodeView
|
|
59
|
+
*/
|
|
60
|
+
warnings?: Array<SaveWarningView> | null;
|
|
54
61
|
}
|
|
55
62
|
/**
|
|
56
63
|
* Check if a given object implements the FileNodeView interface.
|
|
@@ -18,6 +18,7 @@ exports.FileNodeViewFromJSON = FileNodeViewFromJSON;
|
|
|
18
18
|
exports.FileNodeViewFromJSONTyped = FileNodeViewFromJSONTyped;
|
|
19
19
|
exports.FileNodeViewToJSON = FileNodeViewToJSON;
|
|
20
20
|
exports.FileNodeViewToJSONTyped = FileNodeViewToJSONTyped;
|
|
21
|
+
const SaveWarningView_js_1 = require("./SaveWarningView.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the FileNodeView interface.
|
|
23
24
|
*/
|
|
@@ -40,6 +41,7 @@ function FileNodeViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'previousVersion': json['previousVersion'] == null ? undefined : json['previousVersion'],
|
|
41
42
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
42
43
|
'isOwnedByMe': json['isOwnedByMe'] == null ? undefined : json['isOwnedByMe'],
|
|
44
|
+
'warnings': json['warnings'] == null ? undefined : (json['warnings'].map(SaveWarningView_js_1.SaveWarningViewFromJSON)),
|
|
43
45
|
};
|
|
44
46
|
}
|
|
45
47
|
function FileNodeViewToJSON(json) {
|
|
@@ -56,5 +58,6 @@ function FileNodeViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
58
|
'previousVersion': value['previousVersion'],
|
|
57
59
|
'createdAt': value['createdAt'] == null ? undefined : (value['createdAt'].toISOString()),
|
|
58
60
|
'isOwnedByMe': value['isOwnedByMe'],
|
|
61
|
+
'warnings': value['warnings'] == null ? undefined : (value['warnings'].map(SaveWarningView_js_1.SaveWarningViewToJSON)),
|
|
59
62
|
};
|
|
60
63
|
}
|
|
@@ -59,6 +59,7 @@ function QueueMessageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'retryOf': json['retryOf'] == null ? undefined : json['retryOf'],
|
|
60
60
|
'surface': json['surface'] == null ? undefined : json['surface'],
|
|
61
61
|
'endUserId': json['endUserId'] == null ? undefined : json['endUserId'],
|
|
62
|
+
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
65
|
function QueueMessageInputToJSON(json) {
|
|
@@ -75,5 +76,6 @@ function QueueMessageInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
75
76
|
'retryOf': value['retryOf'],
|
|
76
77
|
'surface': value['surface'],
|
|
77
78
|
'endUserId': value['endUserId'],
|
|
79
|
+
'agentVersion': value['agentVersion'],
|
|
78
80
|
};
|
|
79
81
|
}
|