sarvam-agents-client 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/apis/AgentsApi.d.ts +4 -4
  2. package/dist/apis/AgentsApi.js +4 -4
  3. package/dist/apis/AppsApi.d.ts +1 -0
  4. package/dist/apis/AppsApi.js +3 -0
  5. package/dist/apis/QueueApi.d.ts +1 -0
  6. package/dist/apis/QueueApi.js +3 -0
  7. package/dist/apis/ResponsesApi.d.ts +2 -0
  8. package/dist/apis/ResponsesApi.js +6 -0
  9. package/dist/compose/agent.d.ts +10 -3
  10. package/dist/compose/agent.js +8 -0
  11. package/dist/compose/deploy.d.ts +3 -2
  12. package/dist/compose/errors.d.ts +17 -0
  13. package/dist/compose/errors.js +17 -0
  14. package/dist/compose/events.d.ts +34 -0
  15. package/dist/compose/events.js +25 -2
  16. package/dist/compose/index.d.ts +2 -1
  17. package/dist/compose/output.d.ts +29 -0
  18. package/dist/compose/output.js +451 -0
  19. package/dist/compose/run.d.ts +39 -14
  20. package/dist/compose/run.js +53 -3
  21. package/dist/compose/runState.d.ts +2 -1
  22. package/dist/compose/settingsTransport.d.ts +3 -2
  23. package/dist/compose/transport.d.ts +3 -2
  24. package/dist/esm/apis/AgentsApi.d.ts +4 -4
  25. package/dist/esm/apis/AgentsApi.js +4 -4
  26. package/dist/esm/apis/AppsApi.d.ts +1 -0
  27. package/dist/esm/apis/AppsApi.js +3 -0
  28. package/dist/esm/apis/QueueApi.d.ts +1 -0
  29. package/dist/esm/apis/QueueApi.js +3 -0
  30. package/dist/esm/apis/ResponsesApi.d.ts +2 -0
  31. package/dist/esm/apis/ResponsesApi.js +6 -0
  32. package/dist/esm/compose/agent.d.ts +10 -3
  33. package/dist/esm/compose/agent.js +8 -0
  34. package/dist/esm/compose/deploy.d.ts +3 -2
  35. package/dist/esm/compose/errors.d.ts +17 -0
  36. package/dist/esm/compose/errors.js +17 -0
  37. package/dist/esm/compose/events.d.ts +34 -0
  38. package/dist/esm/compose/events.js +25 -2
  39. package/dist/esm/compose/index.d.ts +2 -1
  40. package/dist/esm/compose/output.d.ts +29 -0
  41. package/dist/esm/compose/output.js +445 -0
  42. package/dist/esm/compose/run.d.ts +39 -14
  43. package/dist/esm/compose/run.js +54 -4
  44. package/dist/esm/compose/runState.d.ts +2 -1
  45. package/dist/esm/compose/settingsTransport.d.ts +3 -2
  46. package/dist/esm/compose/transport.d.ts +3 -2
  47. package/dist/esm/models/AppResource.d.ts +29 -0
  48. package/dist/esm/models/AppResource.js +16 -0
  49. package/dist/esm/models/AppToolsResponse.d.ts +3 -4
  50. package/dist/esm/models/AppToolsResponse.js +3 -2
  51. package/dist/esm/models/AppView.d.ts +48 -0
  52. package/dist/esm/models/AppView.js +23 -0
  53. package/dist/esm/models/McpSecurityAppealView.d.ts +50 -0
  54. package/dist/esm/models/McpSecurityAppealView.js +47 -0
  55. package/dist/esm/models/McpSecurityView.d.ts +105 -0
  56. package/dist/esm/models/McpSecurityView.js +66 -0
  57. package/dist/esm/models/MessagesResponse.d.ts +6 -0
  58. package/dist/esm/models/MessagesResponse.js +2 -0
  59. package/dist/esm/models/ResponseDetail.d.ts +32 -0
  60. package/dist/esm/models/ResponseDetail.js +10 -0
  61. package/dist/esm/models/index.d.ts +2 -0
  62. package/dist/esm/models/index.js +2 -0
  63. package/dist/models/AppResource.d.ts +29 -0
  64. package/dist/models/AppResource.js +17 -1
  65. package/dist/models/AppToolsResponse.d.ts +3 -4
  66. package/dist/models/AppToolsResponse.js +3 -2
  67. package/dist/models/AppView.d.ts +48 -0
  68. package/dist/models/AppView.js +24 -1
  69. package/dist/models/McpSecurityAppealView.d.ts +50 -0
  70. package/dist/models/McpSecurityAppealView.js +54 -0
  71. package/dist/models/McpSecurityView.d.ts +105 -0
  72. package/dist/models/McpSecurityView.js +73 -0
  73. package/dist/models/MessagesResponse.d.ts +6 -0
  74. package/dist/models/MessagesResponse.js +2 -0
  75. package/dist/models/ResponseDetail.d.ts +32 -0
  76. package/dist/models/ResponseDetail.js +10 -0
  77. package/dist/models/index.d.ts +2 -0
  78. package/dist/models/index.js +2 -0
  79. package/package.json +4 -3
  80. package/src/apis/AgentsApi.ts +4 -4
  81. package/src/apis/AppsApi.ts +5 -0
  82. package/src/apis/QueueApi.ts +5 -0
  83. package/src/apis/ResponsesApi.ts +10 -0
  84. package/src/compose/agent.ts +21 -6
  85. package/src/compose/deploy.ts +6 -5
  86. package/src/compose/errors.ts +28 -1
  87. package/src/compose/events.ts +49 -1
  88. package/src/compose/index.ts +2 -1
  89. package/src/compose/output.ts +415 -0
  90. package/src/compose/run.ts +93 -21
  91. package/src/compose/runState.ts +2 -1
  92. package/src/compose/settingsTransport.ts +4 -3
  93. package/src/compose/transport.ts +3 -2
  94. package/src/models/AppResource.ts +42 -0
  95. package/src/models/AppToolsResponse.ts +11 -4
  96. package/src/models/AppView.ts +73 -0
  97. package/src/models/McpSecurityAppealView.ts +89 -0
  98. package/src/models/McpSecurityView.ts +169 -0
  99. package/src/models/MessagesResponse.ts +8 -0
  100. package/src/models/ResponseDetail.ts +40 -0
  101. package/src/models/index.ts +2 -0
@@ -106,6 +106,8 @@ export * from './InputMessage.js';
106
106
  export * from './InstructionsBody.js';
107
107
  export * from './InstructionsResponse.js';
108
108
  export * from './ListModels403Response.js';
109
+ export * from './McpSecurityAppealView.js';
110
+ export * from './McpSecurityView.js';
109
111
  export * from './MessagePart.js';
110
112
  export * from './MessagesResponse.js';
111
113
  export * from './MintUploadUrl403Response.js';
@@ -108,6 +108,8 @@ export * from './InputMessage.js';
108
108
  export * from './InstructionsBody.js';
109
109
  export * from './InstructionsResponse.js';
110
110
  export * from './ListModels403Response.js';
111
+ export * from './McpSecurityAppealView.js';
112
+ export * from './McpSecurityView.js';
111
113
  export * from './MessagePart.js';
112
114
  export * from './MessagesResponse.js';
113
115
  export * from './MintUploadUrl403Response.js';
@@ -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 {{ [key: string]: any; }}
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
  }
@@ -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
  */
@@ -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
  }
@@ -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
+ }
@@ -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
  }
@@ -34,6 +34,38 @@ export interface ResponseDetail {
34
34
  * @memberof ResponseDetail
35
35
  */
36
36
  output: Array<UIMessage>;
37
+ /**
38
+ *
39
+ * @type {any}
40
+ * @memberof ResponseDetail
41
+ */
42
+ structuredOutput?: any | null;
43
+ /**
44
+ *
45
+ * @type {Array<string>}
46
+ * @memberof ResponseDetail
47
+ */
48
+ outputErrors?: Array<string> | null;
49
+ /**
50
+ *
51
+ * @type {Array<{ [key: string]: any; }>}
52
+ * @memberof ResponseDetail
53
+ */
54
+ outputCitations?: Array<{
55
+ [key: string]: any;
56
+ }> | null;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof ResponseDetail
61
+ */
62
+ outputNote?: string | null;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof ResponseDetail
67
+ */
68
+ outputSkipped?: string | null;
37
69
  }
38
70
  /**
39
71
  * @export
@@ -52,6 +52,11 @@ 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
+ 'structuredOutput': json['structuredOutput'] == null ? undefined : json['structuredOutput'],
56
+ 'outputErrors': json['outputErrors'] == null ? undefined : json['outputErrors'],
57
+ 'outputCitations': json['outputCitations'] == null ? undefined : json['outputCitations'],
58
+ 'outputNote': json['outputNote'] == null ? undefined : json['outputNote'],
59
+ 'outputSkipped': json['outputSkipped'] == null ? undefined : json['outputSkipped'],
55
60
  };
56
61
  }
57
62
  function ResponseDetailToJSON(json) {
@@ -65,5 +70,10 @@ function ResponseDetailToJSONTyped(value, ignoreDiscriminator = false) {
65
70
  'responseId': value['responseId'],
66
71
  'status': value['status'],
67
72
  'output': (value['output'].map(UIMessage_js_1.UIMessageToJSON)),
73
+ 'structuredOutput': value['structuredOutput'],
74
+ 'outputErrors': value['outputErrors'],
75
+ 'outputCitations': value['outputCitations'],
76
+ 'outputNote': value['outputNote'],
77
+ 'outputSkipped': value['outputSkipped'],
68
78
  };
69
79
  }