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.
Files changed (174) hide show
  1. package/README.md +52 -29
  2. package/dist/apis/AgentsApi.d.ts +96 -11
  3. package/dist/apis/AgentsApi.js +229 -9
  4. package/dist/apis/ConversationsApi.d.ts +5 -2
  5. package/dist/apis/ConversationsApi.js +7 -2
  6. package/dist/client.d.ts +3 -2
  7. package/dist/client.js +2 -1
  8. package/dist/compat/core/agents.d.ts +6 -1
  9. package/dist/compat/core/agents.js +237 -27
  10. package/dist/compat/core/customApis.d.ts +76 -0
  11. package/dist/compat/core/customApis.js +424 -0
  12. package/dist/compat/core/data.js +1 -1
  13. package/dist/compat/openai/client.d.ts +3 -0
  14. package/dist/compat/openai/client.js +5 -1
  15. package/dist/compat/openai/index.d.ts +1 -0
  16. package/dist/compat/openai/index.js +0 -1
  17. package/dist/compat/openai/resources/agents.js +8 -1
  18. package/dist/compat/openai/resources/sarvam.d.ts +26 -0
  19. package/dist/compat/openai/resources/sarvam.js +56 -0
  20. package/dist/compose/deploy.d.ts +14 -3
  21. package/dist/compose/deploy.js +60 -7
  22. package/dist/compose/errors.d.ts +4 -0
  23. package/dist/compose/errors.js +6 -1
  24. package/dist/compose/settingsTransport.d.ts +18 -13
  25. package/dist/compose/settingsTransport.js +78 -130
  26. package/dist/compose/transport.d.ts +12 -2
  27. package/dist/compose/webhook.d.ts +10 -13
  28. package/dist/compose/webhook.js +48 -45
  29. package/dist/compose/webhookSecrets.d.ts +79 -49
  30. package/dist/compose/webhookSecrets.js +244 -195
  31. package/dist/esm/apis/AgentsApi.d.ts +96 -11
  32. package/dist/esm/apis/AgentsApi.js +230 -10
  33. package/dist/esm/apis/ConversationsApi.d.ts +5 -2
  34. package/dist/esm/apis/ConversationsApi.js +7 -2
  35. package/dist/esm/client.d.ts +3 -2
  36. package/dist/esm/client.js +2 -1
  37. package/dist/esm/compat/core/agents.d.ts +6 -1
  38. package/dist/esm/compat/core/agents.js +237 -27
  39. package/dist/esm/compat/core/customApis.d.ts +76 -0
  40. package/dist/esm/compat/core/customApis.js +419 -0
  41. package/dist/esm/compat/core/data.js +1 -1
  42. package/dist/esm/compat/openai/client.d.ts +3 -0
  43. package/dist/esm/compat/openai/client.js +5 -1
  44. package/dist/esm/compat/openai/index.d.ts +1 -0
  45. package/dist/esm/compat/openai/index.js +0 -1
  46. package/dist/esm/compat/openai/resources/agents.js +8 -1
  47. package/dist/esm/compat/openai/resources/sarvam.d.ts +26 -0
  48. package/dist/esm/compat/openai/resources/sarvam.js +51 -0
  49. package/dist/esm/compose/deploy.d.ts +14 -3
  50. package/dist/esm/compose/deploy.js +60 -7
  51. package/dist/esm/compose/errors.d.ts +4 -0
  52. package/dist/esm/compose/errors.js +4 -0
  53. package/dist/esm/compose/settingsTransport.d.ts +18 -13
  54. package/dist/esm/compose/settingsTransport.js +80 -132
  55. package/dist/esm/compose/transport.d.ts +12 -2
  56. package/dist/esm/compose/webhook.d.ts +10 -13
  57. package/dist/esm/compose/webhook.js +45 -42
  58. package/dist/esm/compose/webhookSecrets.d.ts +79 -49
  59. package/dist/esm/compose/webhookSecrets.js +241 -193
  60. package/dist/esm/index.d.ts +2 -1
  61. package/dist/esm/index.js +2 -1
  62. package/dist/esm/models/AgentConversationDetail.d.ts +12 -0
  63. package/dist/esm/models/AgentConversationDetail.js +4 -0
  64. package/dist/esm/models/AgentConversationView.d.ts +12 -0
  65. package/dist/esm/models/AgentConversationView.js +4 -0
  66. package/dist/esm/models/AgentResource.d.ts +7 -0
  67. package/dist/esm/models/AgentResource.js +3 -0
  68. package/dist/esm/models/AgentVersionSavedResource.d.ts +65 -0
  69. package/dist/esm/models/AgentVersionSavedResource.js +60 -0
  70. package/dist/esm/models/AgentWebhookList.d.ts +33 -0
  71. package/dist/esm/models/AgentWebhookList.js +44 -0
  72. package/dist/esm/models/AgentWebhookView.d.ts +76 -0
  73. package/dist/esm/models/AgentWebhookView.js +70 -0
  74. package/dist/esm/models/ConversationDetail.d.ts +6 -0
  75. package/dist/esm/models/ConversationDetail.js +2 -0
  76. package/dist/esm/models/ConversationView.d.ts +6 -0
  77. package/dist/esm/models/ConversationView.js +2 -0
  78. package/dist/esm/models/ErrorDetailItem.d.ts +3 -0
  79. package/dist/esm/models/FileNodeView.d.ts +7 -0
  80. package/dist/esm/models/FileNodeView.js +3 -0
  81. package/dist/esm/models/QueueMessageInput.d.ts +6 -0
  82. package/dist/esm/models/QueueMessageInput.js +2 -0
  83. package/dist/esm/models/RotatedWebhookSecretView.d.ts +58 -0
  84. package/dist/esm/models/RotatedWebhookSecretView.js +61 -0
  85. package/dist/esm/models/SaveWarningView.d.ts +44 -0
  86. package/dist/esm/models/SaveWarningView.js +51 -0
  87. package/dist/esm/models/ShareSkippedResource.d.ts +41 -0
  88. package/dist/esm/models/ShareSkippedResource.js +47 -0
  89. package/dist/esm/models/WebhookSecretPutBody.d.ts +32 -0
  90. package/dist/esm/models/WebhookSecretPutBody.js +43 -0
  91. package/dist/esm/models/WebhookSecretStateView.d.ts +52 -0
  92. package/dist/esm/models/WebhookSecretStateView.js +56 -0
  93. package/dist/esm/models/WebhookSecretValueView.d.ts +32 -0
  94. package/dist/esm/models/WebhookSecretValueView.js +44 -0
  95. package/dist/esm/models/WebhookWarning.d.ts +44 -0
  96. package/dist/esm/models/WebhookWarning.js +51 -0
  97. package/dist/esm/models/index.d.ts +10 -0
  98. package/dist/esm/models/index.js +10 -0
  99. package/dist/index.d.ts +2 -1
  100. package/dist/index.js +4 -1
  101. package/dist/models/AgentConversationDetail.d.ts +12 -0
  102. package/dist/models/AgentConversationDetail.js +4 -0
  103. package/dist/models/AgentConversationView.d.ts +12 -0
  104. package/dist/models/AgentConversationView.js +4 -0
  105. package/dist/models/AgentResource.d.ts +7 -0
  106. package/dist/models/AgentResource.js +3 -0
  107. package/dist/models/AgentVersionSavedResource.d.ts +65 -0
  108. package/dist/models/AgentVersionSavedResource.js +67 -0
  109. package/dist/models/AgentWebhookList.d.ts +33 -0
  110. package/dist/models/AgentWebhookList.js +51 -0
  111. package/dist/models/AgentWebhookView.d.ts +76 -0
  112. package/dist/models/AgentWebhookView.js +78 -0
  113. package/dist/models/ConversationDetail.d.ts +6 -0
  114. package/dist/models/ConversationDetail.js +2 -0
  115. package/dist/models/ConversationView.d.ts +6 -0
  116. package/dist/models/ConversationView.js +2 -0
  117. package/dist/models/ErrorDetailItem.d.ts +3 -0
  118. package/dist/models/FileNodeView.d.ts +7 -0
  119. package/dist/models/FileNodeView.js +3 -0
  120. package/dist/models/QueueMessageInput.d.ts +6 -0
  121. package/dist/models/QueueMessageInput.js +2 -0
  122. package/dist/models/RotatedWebhookSecretView.d.ts +58 -0
  123. package/dist/models/RotatedWebhookSecretView.js +69 -0
  124. package/dist/models/SaveWarningView.d.ts +44 -0
  125. package/dist/models/SaveWarningView.js +58 -0
  126. package/dist/models/ShareSkippedResource.d.ts +41 -0
  127. package/dist/models/ShareSkippedResource.js +54 -0
  128. package/dist/models/WebhookSecretPutBody.d.ts +32 -0
  129. package/dist/models/WebhookSecretPutBody.js +50 -0
  130. package/dist/models/WebhookSecretStateView.d.ts +52 -0
  131. package/dist/models/WebhookSecretStateView.js +64 -0
  132. package/dist/models/WebhookSecretValueView.d.ts +32 -0
  133. package/dist/models/WebhookSecretValueView.js +51 -0
  134. package/dist/models/WebhookWarning.d.ts +44 -0
  135. package/dist/models/WebhookWarning.js +58 -0
  136. package/dist/models/index.d.ts +10 -0
  137. package/dist/models/index.js +10 -0
  138. package/package.json +1 -1
  139. package/src/apis/AgentsApi.ts +366 -11
  140. package/src/apis/ConversationsApi.ts +9 -2
  141. package/src/client.ts +3 -2
  142. package/src/compat/core/agents.ts +265 -36
  143. package/src/compat/core/customApis.ts +506 -0
  144. package/src/compat/core/data.ts +1 -1
  145. package/src/compat/openai/client.ts +7 -1
  146. package/src/compat/openai/index.ts +9 -0
  147. package/src/compat/openai/resources/agents.ts +9 -1
  148. package/src/compat/openai/resources/sarvam.ts +94 -0
  149. package/src/compose/deploy.ts +71 -10
  150. package/src/compose/errors.ts +4 -0
  151. package/src/compose/settingsTransport.ts +78 -131
  152. package/src/compose/transport.ts +10 -2
  153. package/src/compose/webhook.ts +49 -45
  154. package/src/compose/webhookSecrets.ts +227 -179
  155. package/src/index.ts +2 -1
  156. package/src/models/AgentConversationDetail.ts +16 -0
  157. package/src/models/AgentConversationView.ts +16 -0
  158. package/src/models/AgentResource.ts +15 -0
  159. package/src/models/AgentVersionSavedResource.ts +119 -0
  160. package/src/models/AgentWebhookList.ts +74 -0
  161. package/src/models/AgentWebhookView.ts +129 -0
  162. package/src/models/ConversationDetail.ts +8 -0
  163. package/src/models/ConversationView.ts +8 -0
  164. package/src/models/ErrorDetailItem.ts +3 -0
  165. package/src/models/FileNodeView.ts +16 -0
  166. package/src/models/QueueMessageInput.ts +8 -0
  167. package/src/models/RotatedWebhookSecretView.ts +103 -0
  168. package/src/models/SaveWarningView.ts +84 -0
  169. package/src/models/ShareSkippedResource.ts +78 -0
  170. package/src/models/WebhookSecretPutBody.ts +66 -0
  171. package/src/models/WebhookSecretStateView.ts +94 -0
  172. package/src/models/WebhookSecretValueView.ts +66 -0
  173. package/src/models/WebhookWarning.ts +84 -0
  174. package/src/models/index.ts +10 -0
@@ -0,0 +1,58 @@
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
+ * The new secret: the only time it is shown. Give it to your receiver.
14
+ * @export
15
+ * @interface RotatedWebhookSecretView
16
+ */
17
+ export interface RotatedWebhookSecretView {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RotatedWebhookSecretView
22
+ */
23
+ secretStatus: RotatedWebhookSecretViewSecretStatusEnum;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof RotatedWebhookSecretView
28
+ */
29
+ updatedAt: Date;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof RotatedWebhookSecretView
34
+ */
35
+ previousExpiresAt?: Date | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof RotatedWebhookSecretView
40
+ */
41
+ secret: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const RotatedWebhookSecretViewSecretStatusEnum: {
47
+ readonly Set: "set";
48
+ readonly Missing: "missing";
49
+ };
50
+ export type RotatedWebhookSecretViewSecretStatusEnum = typeof RotatedWebhookSecretViewSecretStatusEnum[keyof typeof RotatedWebhookSecretViewSecretStatusEnum];
51
+ /**
52
+ * Check if a given object implements the RotatedWebhookSecretView interface.
53
+ */
54
+ export declare function instanceOfRotatedWebhookSecretView(value: object): value is RotatedWebhookSecretView;
55
+ export declare function RotatedWebhookSecretViewFromJSON(json: any): RotatedWebhookSecretView;
56
+ export declare function RotatedWebhookSecretViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): RotatedWebhookSecretView;
57
+ export declare function RotatedWebhookSecretViewToJSON(json: any): RotatedWebhookSecretView;
58
+ export declare function RotatedWebhookSecretViewToJSONTyped(value?: RotatedWebhookSecretView | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.RotatedWebhookSecretViewSecretStatusEnum = void 0;
17
+ exports.instanceOfRotatedWebhookSecretView = instanceOfRotatedWebhookSecretView;
18
+ exports.RotatedWebhookSecretViewFromJSON = RotatedWebhookSecretViewFromJSON;
19
+ exports.RotatedWebhookSecretViewFromJSONTyped = RotatedWebhookSecretViewFromJSONTyped;
20
+ exports.RotatedWebhookSecretViewToJSON = RotatedWebhookSecretViewToJSON;
21
+ exports.RotatedWebhookSecretViewToJSONTyped = RotatedWebhookSecretViewToJSONTyped;
22
+ const runtime_js_1 = require("../runtime.js"); // sarvam: hide-secret-import
23
+ /**
24
+ * @export
25
+ */
26
+ exports.RotatedWebhookSecretViewSecretStatusEnum = {
27
+ Set: 'set',
28
+ Missing: 'missing'
29
+ };
30
+ /**
31
+ * Check if a given object implements the RotatedWebhookSecretView interface.
32
+ */
33
+ function instanceOfRotatedWebhookSecretView(value) {
34
+ if (!('secretStatus' in value) || value['secretStatus'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ if (!('secret' in value) || value['secret'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function RotatedWebhookSecretViewFromJSON(json) {
43
+ return RotatedWebhookSecretViewFromJSONTyped(json, false);
44
+ }
45
+ function RotatedWebhookSecretViewFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return (0, runtime_js_1.hideSecret)({
50
+ 'secretStatus': json['secretStatus'],
51
+ 'updatedAt': (new Date(json['updatedAt'])),
52
+ 'previousExpiresAt': json['previousExpiresAt'] == null ? undefined : (new Date(json['previousExpiresAt'])),
53
+ 'secret': json['secret'],
54
+ }, 'secret');
55
+ }
56
+ function RotatedWebhookSecretViewToJSON(json) {
57
+ return RotatedWebhookSecretViewToJSONTyped(json, false);
58
+ }
59
+ function RotatedWebhookSecretViewToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'secretStatus': value['secretStatus'],
65
+ 'updatedAt': ((value['updatedAt']).toISOString()),
66
+ 'previousExpiresAt': value['previousExpiresAt'] == null ? undefined : (value['previousExpiresAt'].toISOString()),
67
+ 'secret': value['secret'],
68
+ };
69
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Sarvam Agents API
3
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ * Contact: support@sarvam.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SaveWarningView
16
+ */
17
+ export interface SaveWarningView {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SaveWarningView
22
+ */
23
+ code: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SaveWarningView
28
+ */
29
+ path: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SaveWarningView
34
+ */
35
+ message: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SaveWarningView interface.
39
+ */
40
+ export declare function instanceOfSaveWarningView(value: object): value is SaveWarningView;
41
+ export declare function SaveWarningViewFromJSON(json: any): SaveWarningView;
42
+ export declare function SaveWarningViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveWarningView;
43
+ export declare function SaveWarningViewToJSON(json: any): SaveWarningView;
44
+ export declare function SaveWarningViewToJSONTyped(value?: SaveWarningView | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfSaveWarningView = instanceOfSaveWarningView;
17
+ exports.SaveWarningViewFromJSON = SaveWarningViewFromJSON;
18
+ exports.SaveWarningViewFromJSONTyped = SaveWarningViewFromJSONTyped;
19
+ exports.SaveWarningViewToJSON = SaveWarningViewToJSON;
20
+ exports.SaveWarningViewToJSONTyped = SaveWarningViewToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SaveWarningView interface.
23
+ */
24
+ function instanceOfSaveWarningView(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ if (!('path' in value) || value['path'] === undefined)
28
+ return false;
29
+ if (!('message' in value) || value['message'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function SaveWarningViewFromJSON(json) {
34
+ return SaveWarningViewFromJSONTyped(json, false);
35
+ }
36
+ function SaveWarningViewFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'code': json['code'],
42
+ 'path': json['path'],
43
+ 'message': json['message'],
44
+ };
45
+ }
46
+ function SaveWarningViewToJSON(json) {
47
+ return SaveWarningViewToJSONTyped(json, false);
48
+ }
49
+ function SaveWarningViewToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'code': value['code'],
55
+ 'path': value['path'],
56
+ 'message': value['message'],
57
+ };
58
+ }
@@ -0,0 +1,41 @@
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
+ * Why saving did not share the agent with its workspace. ``code`` is
14
+ * the one ``POST /v2/agents/{id}/publish`` would return
15
+ * (``publish_cascade_blocked``, a BYO MCP security code, ``agent_no_workspace``);
16
+ * ``message`` is safe to show the owner.
17
+ * @export
18
+ * @interface ShareSkippedResource
19
+ */
20
+ export interface ShareSkippedResource {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof ShareSkippedResource
25
+ */
26
+ code: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof ShareSkippedResource
31
+ */
32
+ message: string;
33
+ }
34
+ /**
35
+ * Check if a given object implements the ShareSkippedResource interface.
36
+ */
37
+ export declare function instanceOfShareSkippedResource(value: object): value is ShareSkippedResource;
38
+ export declare function ShareSkippedResourceFromJSON(json: any): ShareSkippedResource;
39
+ export declare function ShareSkippedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareSkippedResource;
40
+ export declare function ShareSkippedResourceToJSON(json: any): ShareSkippedResource;
41
+ export declare function ShareSkippedResourceToJSONTyped(value?: ShareSkippedResource | 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.instanceOfShareSkippedResource = instanceOfShareSkippedResource;
17
+ exports.ShareSkippedResourceFromJSON = ShareSkippedResourceFromJSON;
18
+ exports.ShareSkippedResourceFromJSONTyped = ShareSkippedResourceFromJSONTyped;
19
+ exports.ShareSkippedResourceToJSON = ShareSkippedResourceToJSON;
20
+ exports.ShareSkippedResourceToJSONTyped = ShareSkippedResourceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ShareSkippedResource interface.
23
+ */
24
+ function instanceOfShareSkippedResource(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ if (!('message' in value) || value['message'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ShareSkippedResourceFromJSON(json) {
32
+ return ShareSkippedResourceFromJSONTyped(json, false);
33
+ }
34
+ function ShareSkippedResourceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'code': json['code'],
40
+ 'message': json['message'],
41
+ };
42
+ }
43
+ function ShareSkippedResourceToJSON(json) {
44
+ return ShareSkippedResourceToJSONTyped(json, false);
45
+ }
46
+ function ShareSkippedResourceToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'code': value['code'],
52
+ 'message': value['message'],
53
+ };
54
+ }
@@ -0,0 +1,32 @@
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
+ * A ``whsec_`` secret you made (base64 of 24 to 64 bytes).
14
+ * @export
15
+ * @interface WebhookSecretPutBody
16
+ */
17
+ export interface WebhookSecretPutBody {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebhookSecretPutBody
22
+ */
23
+ secret: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the WebhookSecretPutBody interface.
27
+ */
28
+ export declare function instanceOfWebhookSecretPutBody(value: object): value is WebhookSecretPutBody;
29
+ export declare function WebhookSecretPutBodyFromJSON(json: any): WebhookSecretPutBody;
30
+ export declare function WebhookSecretPutBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSecretPutBody;
31
+ export declare function WebhookSecretPutBodyToJSON(json: any): WebhookSecretPutBody;
32
+ export declare function WebhookSecretPutBodyToJSONTyped(value?: WebhookSecretPutBody | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfWebhookSecretPutBody = instanceOfWebhookSecretPutBody;
17
+ exports.WebhookSecretPutBodyFromJSON = WebhookSecretPutBodyFromJSON;
18
+ exports.WebhookSecretPutBodyFromJSONTyped = WebhookSecretPutBodyFromJSONTyped;
19
+ exports.WebhookSecretPutBodyToJSON = WebhookSecretPutBodyToJSON;
20
+ exports.WebhookSecretPutBodyToJSONTyped = WebhookSecretPutBodyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the WebhookSecretPutBody interface.
23
+ */
24
+ function instanceOfWebhookSecretPutBody(value) {
25
+ if (!('secret' in value) || value['secret'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function WebhookSecretPutBodyFromJSON(json) {
30
+ return WebhookSecretPutBodyFromJSONTyped(json, false);
31
+ }
32
+ function WebhookSecretPutBodyFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'secret': json['secret'],
38
+ };
39
+ }
40
+ function WebhookSecretPutBodyToJSON(json) {
41
+ return WebhookSecretPutBodyToJSONTyped(json, false);
42
+ }
43
+ function WebhookSecretPutBodyToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'secret': value['secret'],
49
+ };
50
+ }
@@ -0,0 +1,52 @@
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
+ * What a secret write did; never the secret.
14
+ * @export
15
+ * @interface WebhookSecretStateView
16
+ */
17
+ export interface WebhookSecretStateView {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebhookSecretStateView
22
+ */
23
+ secretStatus: WebhookSecretStateViewSecretStatusEnum;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof WebhookSecretStateView
28
+ */
29
+ updatedAt: Date;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof WebhookSecretStateView
34
+ */
35
+ previousExpiresAt?: Date | null;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const WebhookSecretStateViewSecretStatusEnum: {
41
+ readonly Set: "set";
42
+ readonly Missing: "missing";
43
+ };
44
+ export type WebhookSecretStateViewSecretStatusEnum = typeof WebhookSecretStateViewSecretStatusEnum[keyof typeof WebhookSecretStateViewSecretStatusEnum];
45
+ /**
46
+ * Check if a given object implements the WebhookSecretStateView interface.
47
+ */
48
+ export declare function instanceOfWebhookSecretStateView(value: object): value is WebhookSecretStateView;
49
+ export declare function WebhookSecretStateViewFromJSON(json: any): WebhookSecretStateView;
50
+ export declare function WebhookSecretStateViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSecretStateView;
51
+ export declare function WebhookSecretStateViewToJSON(json: any): WebhookSecretStateView;
52
+ export declare function WebhookSecretStateViewToJSONTyped(value?: WebhookSecretStateView | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.WebhookSecretStateViewSecretStatusEnum = void 0;
17
+ exports.instanceOfWebhookSecretStateView = instanceOfWebhookSecretStateView;
18
+ exports.WebhookSecretStateViewFromJSON = WebhookSecretStateViewFromJSON;
19
+ exports.WebhookSecretStateViewFromJSONTyped = WebhookSecretStateViewFromJSONTyped;
20
+ exports.WebhookSecretStateViewToJSON = WebhookSecretStateViewToJSON;
21
+ exports.WebhookSecretStateViewToJSONTyped = WebhookSecretStateViewToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.WebhookSecretStateViewSecretStatusEnum = {
26
+ Set: 'set',
27
+ Missing: 'missing'
28
+ };
29
+ /**
30
+ * Check if a given object implements the WebhookSecretStateView interface.
31
+ */
32
+ function instanceOfWebhookSecretStateView(value) {
33
+ if (!('secretStatus' in value) || value['secretStatus'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function WebhookSecretStateViewFromJSON(json) {
40
+ return WebhookSecretStateViewFromJSONTyped(json, false);
41
+ }
42
+ function WebhookSecretStateViewFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'secretStatus': json['secretStatus'],
48
+ 'updatedAt': (new Date(json['updatedAt'])),
49
+ 'previousExpiresAt': json['previousExpiresAt'] == null ? undefined : (new Date(json['previousExpiresAt'])),
50
+ };
51
+ }
52
+ function WebhookSecretStateViewToJSON(json) {
53
+ return WebhookSecretStateViewToJSONTyped(json, false);
54
+ }
55
+ function WebhookSecretStateViewToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'secretStatus': value['secretStatus'],
61
+ 'updatedAt': ((value['updatedAt']).toISOString()),
62
+ 'previousExpiresAt': value['previousExpiresAt'] == null ? undefined : (value['previousExpiresAt'].toISOString()),
63
+ };
64
+ }
@@ -0,0 +1,32 @@
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
+ * The webhook's current secret. Never logged.
14
+ * @export
15
+ * @interface WebhookSecretValueView
16
+ */
17
+ export interface WebhookSecretValueView {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebhookSecretValueView
22
+ */
23
+ secret: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the WebhookSecretValueView interface.
27
+ */
28
+ export declare function instanceOfWebhookSecretValueView(value: object): value is WebhookSecretValueView;
29
+ export declare function WebhookSecretValueViewFromJSON(json: any): WebhookSecretValueView;
30
+ export declare function WebhookSecretValueViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSecretValueView;
31
+ export declare function WebhookSecretValueViewToJSON(json: any): WebhookSecretValueView;
32
+ export declare function WebhookSecretValueViewToJSONTyped(value?: WebhookSecretValueView | 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.instanceOfWebhookSecretValueView = instanceOfWebhookSecretValueView;
17
+ exports.WebhookSecretValueViewFromJSON = WebhookSecretValueViewFromJSON;
18
+ exports.WebhookSecretValueViewFromJSONTyped = WebhookSecretValueViewFromJSONTyped;
19
+ exports.WebhookSecretValueViewToJSON = WebhookSecretValueViewToJSON;
20
+ exports.WebhookSecretValueViewToJSONTyped = WebhookSecretValueViewToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js"); // sarvam: hide-secret-import
22
+ /**
23
+ * Check if a given object implements the WebhookSecretValueView interface.
24
+ */
25
+ function instanceOfWebhookSecretValueView(value) {
26
+ if (!('secret' in value) || value['secret'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function WebhookSecretValueViewFromJSON(json) {
31
+ return WebhookSecretValueViewFromJSONTyped(json, false);
32
+ }
33
+ function WebhookSecretValueViewFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return (0, runtime_js_1.hideSecret)({
38
+ 'secret': json['secret'],
39
+ }, 'secret');
40
+ }
41
+ function WebhookSecretValueViewToJSON(json) {
42
+ return WebhookSecretValueViewToJSONTyped(json, false);
43
+ }
44
+ function WebhookSecretValueViewToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'secret': value['secret'],
50
+ };
51
+ }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Sarvam Agents API
3
+ * Chat with a Sarvam agent, exchange files with it, and set it up (instructions, skills, knowledge bases, connectors, deploy) from your own code. Authenticate with a service token sent as a Bearer token, and send the header X-Panja-Origin: managed_agents on every request.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ * Contact: support@sarvam.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface WebhookWarning
16
+ */
17
+ export interface WebhookWarning {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebhookWarning
22
+ */
23
+ code: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WebhookWarning
28
+ */
29
+ path: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WebhookWarning
34
+ */
35
+ message: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the WebhookWarning interface.
39
+ */
40
+ export declare function instanceOfWebhookWarning(value: object): value is WebhookWarning;
41
+ export declare function WebhookWarningFromJSON(json: any): WebhookWarning;
42
+ export declare function WebhookWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookWarning;
43
+ export declare function WebhookWarningToJSON(json: any): WebhookWarning;
44
+ export declare function WebhookWarningToJSONTyped(value?: WebhookWarning | null, ignoreDiscriminator?: boolean): any;