@credal/sdk 0.0.9 → 0.0.11

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 (224) hide show
  1. package/api/resources/common/types/Collaborator.d.ts +8 -0
  2. package/api/resources/common/types/Collaborator.js +5 -0
  3. package/api/resources/common/types/Role.d.ts +8 -0
  4. package/api/resources/common/types/Role.js +10 -0
  5. package/api/resources/common/types/index.d.ts +2 -0
  6. package/api/resources/common/types/index.js +2 -0
  7. package/api/resources/copilots/client/Client.d.ts +75 -1
  8. package/api/resources/copilots/client/Client.js +309 -4
  9. package/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +22 -0
  10. package/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +5 -0
  11. package/api/resources/copilots/client/requests/CreateConversationRequest.d.ts +2 -2
  12. package/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +32 -0
  13. package/api/resources/copilots/client/requests/CreateCopilotRequest.js +5 -0
  14. package/api/resources/copilots/client/requests/DeleteCopilotRequest.d.ts +13 -0
  15. package/api/resources/copilots/client/requests/DeleteCopilotRequest.js +5 -0
  16. package/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +2 -2
  17. package/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +22 -0
  18. package/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +5 -0
  19. package/api/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -2
  20. package/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +27 -0
  21. package/api/resources/copilots/client/requests/UpdateConfigurationRequest.js +5 -0
  22. package/api/resources/copilots/client/requests/index.d.ts +5 -0
  23. package/api/resources/copilots/types/AiEndpointConfiguration.d.ts +7 -0
  24. package/api/resources/copilots/types/AiEndpointConfiguration.js +5 -0
  25. package/api/resources/copilots/types/Configuration.d.ts +10 -0
  26. package/api/resources/copilots/types/Configuration.js +5 -0
  27. package/api/resources/copilots/types/CreateCopilotResponse.d.ts +6 -0
  28. package/api/resources/copilots/types/CreateCopilotResponse.js +5 -0
  29. package/api/resources/copilots/types/DeleteCopilotResponse.d.ts +6 -0
  30. package/api/resources/copilots/types/DeleteCopilotResponse.js +5 -0
  31. package/api/resources/copilots/types/index.d.ts +4 -0
  32. package/api/resources/copilots/types/index.js +4 -0
  33. package/api/resources/documentCatalog/client/Client.js +2 -2
  34. package/api/resources/documentCollections/client/Client.d.ts +51 -1
  35. package/api/resources/documentCollections/client/Client.js +193 -2
  36. package/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +1 -1
  37. package/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +32 -0
  38. package/api/resources/documentCollections/client/requests/CreateCollectionRequest.js +5 -0
  39. package/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.ts +12 -0
  40. package/api/resources/documentCollections/client/requests/DeleteCollectionRequest.js +5 -0
  41. package/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +28 -0
  42. package/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +5 -0
  43. package/api/resources/documentCollections/client/requests/index.d.ts +3 -0
  44. package/api/resources/documentCollections/index.d.ts +1 -0
  45. package/api/resources/documentCollections/index.js +1 -0
  46. package/api/resources/documentCollections/types/CreateCollectionResponse.d.ts +6 -0
  47. package/api/resources/documentCollections/types/CreateCollectionResponse.js +5 -0
  48. package/api/resources/documentCollections/types/DeleteCollectionResponse.d.ts +6 -0
  49. package/api/resources/documentCollections/types/DeleteCollectionResponse.js +5 -0
  50. package/api/resources/documentCollections/types/index.d.ts +2 -0
  51. package/api/resources/documentCollections/types/index.js +18 -0
  52. package/api/resources/index.d.ts +2 -1
  53. package/api/resources/index.js +3 -2
  54. package/api/resources/permissionsService/client/Client.js +3 -3
  55. package/api/resources/search/client/Client.js +1 -1
  56. package/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
  57. package/api/resources/users/client/Client.js +1 -1
  58. package/dist/api/resources/common/types/Collaborator.d.ts +8 -0
  59. package/dist/api/resources/common/types/Collaborator.js +5 -0
  60. package/dist/api/resources/common/types/Role.d.ts +8 -0
  61. package/dist/api/resources/common/types/Role.js +10 -0
  62. package/dist/api/resources/common/types/index.d.ts +2 -0
  63. package/dist/api/resources/common/types/index.js +2 -0
  64. package/dist/api/resources/copilots/client/Client.d.ts +75 -1
  65. package/dist/api/resources/copilots/client/Client.js +309 -4
  66. package/dist/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +22 -0
  67. package/dist/api/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +5 -0
  68. package/dist/api/resources/copilots/client/requests/CreateConversationRequest.d.ts +2 -2
  69. package/dist/api/resources/copilots/client/requests/CreateCopilotRequest.d.ts +32 -0
  70. package/dist/api/resources/copilots/client/requests/CreateCopilotRequest.js +5 -0
  71. package/dist/api/resources/copilots/client/requests/DeleteCopilotRequest.d.ts +13 -0
  72. package/dist/api/resources/copilots/client/requests/DeleteCopilotRequest.js +5 -0
  73. package/dist/api/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +2 -2
  74. package/dist/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +22 -0
  75. package/dist/api/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +5 -0
  76. package/dist/api/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -2
  77. package/dist/api/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +27 -0
  78. package/dist/api/resources/copilots/client/requests/UpdateConfigurationRequest.js +5 -0
  79. package/dist/api/resources/copilots/client/requests/index.d.ts +5 -0
  80. package/dist/api/resources/copilots/types/AiEndpointConfiguration.d.ts +7 -0
  81. package/dist/api/resources/copilots/types/AiEndpointConfiguration.js +5 -0
  82. package/dist/api/resources/copilots/types/Configuration.d.ts +10 -0
  83. package/dist/api/resources/copilots/types/Configuration.js +5 -0
  84. package/dist/api/resources/copilots/types/CreateCopilotResponse.d.ts +6 -0
  85. package/dist/api/resources/copilots/types/CreateCopilotResponse.js +5 -0
  86. package/dist/api/resources/copilots/types/DeleteCopilotResponse.d.ts +6 -0
  87. package/dist/api/resources/copilots/types/DeleteCopilotResponse.js +5 -0
  88. package/dist/api/resources/copilots/types/index.d.ts +4 -0
  89. package/dist/api/resources/copilots/types/index.js +4 -0
  90. package/dist/api/resources/documentCatalog/client/Client.js +2 -2
  91. package/dist/api/resources/documentCollections/client/Client.d.ts +51 -1
  92. package/dist/api/resources/documentCollections/client/Client.js +193 -2
  93. package/dist/api/resources/documentCollections/client/requests/AddDocumentsToCollectionRequest.d.ts +1 -1
  94. package/dist/api/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +32 -0
  95. package/dist/api/resources/documentCollections/client/requests/CreateCollectionRequest.js +5 -0
  96. package/dist/api/resources/documentCollections/client/requests/DeleteCollectionRequest.d.ts +12 -0
  97. package/dist/api/resources/documentCollections/client/requests/DeleteCollectionRequest.js +5 -0
  98. package/dist/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +28 -0
  99. package/dist/api/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +5 -0
  100. package/dist/api/resources/documentCollections/client/requests/index.d.ts +3 -0
  101. package/dist/api/resources/documentCollections/index.d.ts +1 -0
  102. package/dist/api/resources/documentCollections/index.js +1 -0
  103. package/dist/api/resources/documentCollections/types/CreateCollectionResponse.d.ts +6 -0
  104. package/dist/api/resources/documentCollections/types/CreateCollectionResponse.js +5 -0
  105. package/dist/api/resources/documentCollections/types/DeleteCollectionResponse.d.ts +6 -0
  106. package/dist/api/resources/documentCollections/types/DeleteCollectionResponse.js +5 -0
  107. package/dist/api/resources/documentCollections/types/index.d.ts +2 -0
  108. package/dist/api/resources/documentCollections/types/index.js +18 -0
  109. package/dist/api/resources/index.d.ts +2 -1
  110. package/dist/api/resources/index.js +3 -2
  111. package/dist/api/resources/permissionsService/client/Client.js +3 -3
  112. package/dist/api/resources/search/client/Client.js +1 -1
  113. package/dist/api/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
  114. package/dist/api/resources/users/client/Client.js +1 -1
  115. package/dist/serialization/resources/common/types/Collaborator.d.ts +14 -0
  116. package/dist/serialization/resources/common/types/Collaborator.js +35 -0
  117. package/dist/serialization/resources/common/types/Role.d.ts +10 -0
  118. package/dist/serialization/resources/common/types/Role.js +34 -0
  119. package/dist/serialization/resources/common/types/index.d.ts +2 -0
  120. package/dist/serialization/resources/common/types/index.js +2 -0
  121. package/dist/serialization/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +13 -0
  122. package/dist/serialization/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +34 -0
  123. package/dist/serialization/resources/copilots/client/requests/CreateConversationRequest.d.ts +1 -1
  124. package/dist/serialization/resources/copilots/client/requests/CreateConversationRequest.js +1 -1
  125. package/dist/serialization/resources/copilots/client/requests/CreateCopilotRequest.d.ts +15 -0
  126. package/dist/serialization/resources/copilots/client/requests/CreateCopilotRequest.js +36 -0
  127. package/dist/serialization/resources/copilots/client/requests/DeleteCopilotRequest.d.ts +12 -0
  128. package/dist/serialization/resources/copilots/client/requests/DeleteCopilotRequest.js +33 -0
  129. package/dist/serialization/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +1 -1
  130. package/dist/serialization/resources/copilots/client/requests/ProvideMessageFeedbackRequest.js +1 -1
  131. package/dist/serialization/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +13 -0
  132. package/dist/serialization/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +34 -0
  133. package/dist/serialization/resources/copilots/client/requests/SendMessageRequest.d.ts +1 -1
  134. package/dist/serialization/resources/copilots/client/requests/SendMessageRequest.js +1 -1
  135. package/dist/serialization/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +14 -0
  136. package/dist/serialization/resources/copilots/client/requests/UpdateConfigurationRequest.js +35 -0
  137. package/dist/serialization/resources/copilots/client/requests/index.d.ts +5 -0
  138. package/dist/serialization/resources/copilots/client/requests/index.js +11 -1
  139. package/dist/serialization/resources/copilots/types/AiEndpointConfiguration.d.ts +13 -0
  140. package/dist/serialization/resources/copilots/types/AiEndpointConfiguration.js +34 -0
  141. package/dist/serialization/resources/copilots/types/Configuration.d.ts +16 -0
  142. package/dist/serialization/resources/copilots/types/Configuration.js +37 -0
  143. package/dist/serialization/resources/copilots/types/CreateCopilotResponse.d.ts +12 -0
  144. package/dist/serialization/resources/copilots/types/CreateCopilotResponse.js +33 -0
  145. package/dist/serialization/resources/copilots/types/DeleteCopilotResponse.d.ts +12 -0
  146. package/dist/serialization/resources/copilots/types/DeleteCopilotResponse.js +33 -0
  147. package/dist/serialization/resources/copilots/types/index.d.ts +4 -0
  148. package/dist/serialization/resources/copilots/types/index.js +4 -0
  149. package/dist/serialization/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +15 -0
  150. package/dist/serialization/resources/documentCollections/client/requests/CreateCollectionRequest.js +36 -0
  151. package/dist/serialization/resources/documentCollections/client/requests/DeleteCollectionRequest.d.ts +12 -0
  152. package/dist/serialization/resources/documentCollections/client/requests/DeleteCollectionRequest.js +33 -0
  153. package/dist/serialization/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +14 -0
  154. package/dist/serialization/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +35 -0
  155. package/dist/serialization/resources/documentCollections/client/requests/index.d.ts +3 -0
  156. package/dist/serialization/resources/documentCollections/client/requests/index.js +7 -1
  157. package/dist/serialization/resources/documentCollections/index.d.ts +1 -0
  158. package/dist/serialization/resources/documentCollections/index.js +1 -0
  159. package/dist/serialization/resources/documentCollections/types/CreateCollectionResponse.d.ts +12 -0
  160. package/dist/serialization/resources/documentCollections/types/CreateCollectionResponse.js +33 -0
  161. package/dist/serialization/resources/documentCollections/types/DeleteCollectionResponse.d.ts +12 -0
  162. package/dist/serialization/resources/documentCollections/types/DeleteCollectionResponse.js +33 -0
  163. package/dist/serialization/resources/documentCollections/types/index.d.ts +2 -0
  164. package/dist/serialization/resources/documentCollections/types/index.js +18 -0
  165. package/dist/serialization/resources/index.d.ts +2 -1
  166. package/dist/serialization/resources/index.js +3 -2
  167. package/dist/serialization/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
  168. package/dist/serialization/resources/search/client/requests/SearchDocumentCollectionRequest.js +1 -1
  169. package/package.json +1 -1
  170. package/reference.md +757 -60
  171. package/serialization/resources/common/types/Collaborator.d.ts +14 -0
  172. package/serialization/resources/common/types/Collaborator.js +35 -0
  173. package/serialization/resources/common/types/Role.d.ts +10 -0
  174. package/serialization/resources/common/types/Role.js +34 -0
  175. package/serialization/resources/common/types/index.d.ts +2 -0
  176. package/serialization/resources/common/types/index.js +2 -0
  177. package/serialization/resources/copilots/client/requests/AddCollectionToCopilotRequest.d.ts +13 -0
  178. package/serialization/resources/copilots/client/requests/AddCollectionToCopilotRequest.js +34 -0
  179. package/serialization/resources/copilots/client/requests/CreateConversationRequest.d.ts +1 -1
  180. package/serialization/resources/copilots/client/requests/CreateConversationRequest.js +1 -1
  181. package/serialization/resources/copilots/client/requests/CreateCopilotRequest.d.ts +15 -0
  182. package/serialization/resources/copilots/client/requests/CreateCopilotRequest.js +36 -0
  183. package/serialization/resources/copilots/client/requests/DeleteCopilotRequest.d.ts +12 -0
  184. package/serialization/resources/copilots/client/requests/DeleteCopilotRequest.js +33 -0
  185. package/serialization/resources/copilots/client/requests/ProvideMessageFeedbackRequest.d.ts +1 -1
  186. package/serialization/resources/copilots/client/requests/ProvideMessageFeedbackRequest.js +1 -1
  187. package/serialization/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.d.ts +13 -0
  188. package/serialization/resources/copilots/client/requests/RemoveCollectionFromCopilotRequest.js +34 -0
  189. package/serialization/resources/copilots/client/requests/SendMessageRequest.d.ts +1 -1
  190. package/serialization/resources/copilots/client/requests/SendMessageRequest.js +1 -1
  191. package/serialization/resources/copilots/client/requests/UpdateConfigurationRequest.d.ts +14 -0
  192. package/serialization/resources/copilots/client/requests/UpdateConfigurationRequest.js +35 -0
  193. package/serialization/resources/copilots/client/requests/index.d.ts +5 -0
  194. package/serialization/resources/copilots/client/requests/index.js +11 -1
  195. package/serialization/resources/copilots/types/AiEndpointConfiguration.d.ts +13 -0
  196. package/serialization/resources/copilots/types/AiEndpointConfiguration.js +34 -0
  197. package/serialization/resources/copilots/types/Configuration.d.ts +16 -0
  198. package/serialization/resources/copilots/types/Configuration.js +37 -0
  199. package/serialization/resources/copilots/types/CreateCopilotResponse.d.ts +12 -0
  200. package/serialization/resources/copilots/types/CreateCopilotResponse.js +33 -0
  201. package/serialization/resources/copilots/types/DeleteCopilotResponse.d.ts +12 -0
  202. package/serialization/resources/copilots/types/DeleteCopilotResponse.js +33 -0
  203. package/serialization/resources/copilots/types/index.d.ts +4 -0
  204. package/serialization/resources/copilots/types/index.js +4 -0
  205. package/serialization/resources/documentCollections/client/requests/CreateCollectionRequest.d.ts +15 -0
  206. package/serialization/resources/documentCollections/client/requests/CreateCollectionRequest.js +36 -0
  207. package/serialization/resources/documentCollections/client/requests/DeleteCollectionRequest.d.ts +12 -0
  208. package/serialization/resources/documentCollections/client/requests/DeleteCollectionRequest.js +33 -0
  209. package/serialization/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.d.ts +14 -0
  210. package/serialization/resources/documentCollections/client/requests/RemoveDocumentsFromCollectionRequest.js +35 -0
  211. package/serialization/resources/documentCollections/client/requests/index.d.ts +3 -0
  212. package/serialization/resources/documentCollections/client/requests/index.js +7 -1
  213. package/serialization/resources/documentCollections/index.d.ts +1 -0
  214. package/serialization/resources/documentCollections/index.js +1 -0
  215. package/serialization/resources/documentCollections/types/CreateCollectionResponse.d.ts +12 -0
  216. package/serialization/resources/documentCollections/types/CreateCollectionResponse.js +33 -0
  217. package/serialization/resources/documentCollections/types/DeleteCollectionResponse.d.ts +12 -0
  218. package/serialization/resources/documentCollections/types/DeleteCollectionResponse.js +33 -0
  219. package/serialization/resources/documentCollections/types/index.d.ts +2 -0
  220. package/serialization/resources/documentCollections/types/index.js +18 -0
  221. package/serialization/resources/index.d.ts +2 -1
  222. package/serialization/resources/index.js +3 -2
  223. package/serialization/resources/search/client/requests/SearchDocumentCollectionRequest.d.ts +1 -1
  224. package/serialization/resources/search/client/requests/SearchDocumentCollectionRequest.js +1 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Credal from "../../../index";
5
+ export interface Collaborator {
6
+ email: string;
7
+ role: Credal.Role;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type Role = "viewer" | "editor";
5
+ export declare const Role: {
6
+ readonly Viewer: "viewer";
7
+ readonly Editor: "editor";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Role = void 0;
7
+ exports.Role = {
8
+ Viewer: "viewer",
9
+ Editor: "editor",
10
+ };
@@ -2,3 +2,5 @@ export * from "./ResourceIdentifier";
2
2
  export * from "./ExternalResourceId";
3
3
  export * from "./Url";
4
4
  export * from "./ResourceType";
5
+ export * from "./Collaborator";
6
+ export * from "./Role";
@@ -18,3 +18,5 @@ __exportStar(require("./ResourceIdentifier"), exports);
18
18
  __exportStar(require("./ExternalResourceId"), exports);
19
19
  __exportStar(require("./Url"), exports);
20
20
  __exportStar(require("./ResourceType"), exports);
21
+ __exportStar(require("./Collaborator"), exports);
22
+ __exportStar(require("./Role"), exports);
@@ -20,7 +20,24 @@ export declare class Copilots {
20
20
  protected readonly _options: Copilots.Options;
21
21
  constructor(_options?: Copilots.Options);
22
22
  /**
23
- * OPTIONAL. Create a new conversation with the Copilot. The conversation ID can be used in the sendMessage endpoint. The sendMessage endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.
23
+ * Create a new copilot. The API key used will be added to the copilot for future Requests
24
+ *
25
+ * @param {Credal.CreateCopilotRequest} request
26
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @example
29
+ * await credal.copilots.createCopilot({
30
+ * name: "Customer Copilot",
31
+ * description: "This copilot is used to answer customer requests based on internal documentation.",
32
+ * collaborators: [{
33
+ * email: "test@gmail.com",
34
+ * role: Credal.Role.Editor
35
+ * }]
36
+ * })
37
+ */
38
+ createCopilot(request: Credal.CreateCopilotRequest, requestOptions?: Copilots.RequestOptions): Promise<Credal.CreateCopilotResponse>;
39
+ /**
40
+ * OPTIONAL. Create a new conversation with the Copilot. The conversation ID can be used in the `sendMessage` endpoint. The `sendMessage` endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.
24
41
  *
25
42
  * @param {Credal.CreateConversationRequest} request
26
43
  * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
@@ -60,5 +77,62 @@ export declare class Copilots {
60
77
  * })
61
78
  */
62
79
  sendMessage(request: Credal.SendMessageRequest, requestOptions?: Copilots.RequestOptions): Promise<Credal.SendAgentMessageResponse>;
80
+ /**
81
+ * Link a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
82
+ *
83
+ * @param {Credal.AddCollectionToCopilotRequest} request
84
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
85
+ *
86
+ * @example
87
+ * await credal.copilots.addCollectionToCopilot({
88
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
89
+ * collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
90
+ * })
91
+ */
92
+ addCollectionToCopilot(request: Credal.AddCollectionToCopilotRequest, requestOptions?: Copilots.RequestOptions): Promise<void>;
93
+ /**
94
+ * Unlink a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
95
+ *
96
+ * @param {Credal.RemoveCollectionFromCopilotRequest} request
97
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
98
+ *
99
+ * @example
100
+ * await credal.copilots.removeCollectionFromCopilot({
101
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
102
+ * collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
103
+ * })
104
+ */
105
+ removeCollectionFromCopilot(request: Credal.RemoveCollectionFromCopilotRequest, requestOptions?: Copilots.RequestOptions): Promise<void>;
106
+ /**
107
+ * Update the configuration for a copilot
108
+ *
109
+ * @param {Credal.UpdateConfigurationRequest} request
110
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
111
+ *
112
+ * @example
113
+ * await credal.copilots.updateConfiguration({
114
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
115
+ * configuration: {
116
+ * name: "Customer Copilot",
117
+ * description: "This copilot is used to answer customer requests based on internal documentation.",
118
+ * prompt: "You are a polite, helpful assistant used to answer customer requests.",
119
+ * aiEndpointConfiguration: {
120
+ * baseUrl: "https://api.openai.com/v1/",
121
+ * apiKey: "<YOUR_API_KEY_HERE>"
122
+ * }
123
+ * }
124
+ * })
125
+ */
126
+ updateConfiguration(request: Credal.UpdateConfigurationRequest, requestOptions?: Copilots.RequestOptions): Promise<void>;
127
+ /**
128
+ * @param {Credal.DeleteCopilotRequest} request
129
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
130
+ *
131
+ * @example
132
+ * await credal.copilots.deleteCopilot({
133
+ * id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
134
+ * })
135
+ */
136
+ deleteCopilot(request: Credal.DeleteCopilotRequest, requestOptions?: Copilots.RequestOptions): Promise<Credal.DeleteCopilotResponse>;
63
137
  protected _getAuthorizationHeader(): Promise<string>;
64
138
  }
@@ -49,7 +49,72 @@ class Copilots {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
52
- * OPTIONAL. Create a new conversation with the Copilot. The conversation ID can be used in the sendMessage endpoint. The sendMessage endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.
52
+ * Create a new copilot. The API key used will be added to the copilot for future Requests
53
+ *
54
+ * @param {Credal.CreateCopilotRequest} request
55
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @example
58
+ * await credal.copilots.createCopilot({
59
+ * name: "Customer Copilot",
60
+ * description: "This copilot is used to answer customer requests based on internal documentation.",
61
+ * collaborators: [{
62
+ * email: "test@gmail.com",
63
+ * role: Credal.Role.Editor
64
+ * }]
65
+ * })
66
+ */
67
+ createCopilot(request, requestOptions) {
68
+ var _a, _b;
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CredalEnvironment.Production, "/v0/copilots/createCopilot"),
72
+ method: "POST",
73
+ headers: {
74
+ Authorization: yield this._getAuthorizationHeader(),
75
+ "X-Fern-Language": "JavaScript",
76
+ "X-Fern-SDK-Name": "@credal/sdk",
77
+ "X-Fern-SDK-Version": "0.0.11",
78
+ "X-Fern-Runtime": core.RUNTIME.type,
79
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
80
+ },
81
+ contentType: "application/json",
82
+ body: yield serializers.CreateCopilotRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
83
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
84
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
85
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
+ });
87
+ if (_response.ok) {
88
+ return yield serializers.CreateCopilotResponse.parseOrThrow(_response.body, {
89
+ unrecognizedObjectKeys: "passthrough",
90
+ allowUnrecognizedUnionMembers: true,
91
+ allowUnrecognizedEnumValues: true,
92
+ breadcrumbsPrefix: ["response"],
93
+ });
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ throw new errors.CredalError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.body,
99
+ });
100
+ }
101
+ switch (_response.error.reason) {
102
+ case "non-json":
103
+ throw new errors.CredalError({
104
+ statusCode: _response.error.statusCode,
105
+ body: _response.error.rawBody,
106
+ });
107
+ case "timeout":
108
+ throw new errors.CredalTimeoutError();
109
+ case "unknown":
110
+ throw new errors.CredalError({
111
+ message: _response.error.errorMessage,
112
+ });
113
+ }
114
+ });
115
+ }
116
+ /**
117
+ * OPTIONAL. Create a new conversation with the Copilot. The conversation ID can be used in the `sendMessage` endpoint. The `sendMessage` endpoint automatically creates new conversations upon first request, but calling this endpoint can simplify certain use cases where it is helpful for the application to have the conversation ID before the first message is sent.
53
118
  *
54
119
  * @param {Credal.CreateConversationRequest} request
55
120
  * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
@@ -70,7 +135,7 @@ class Copilots {
70
135
  Authorization: yield this._getAuthorizationHeader(),
71
136
  "X-Fern-Language": "JavaScript",
72
137
  "X-Fern-SDK-Name": "@credal/sdk",
73
- "X-Fern-SDK-Version": "0.0.9",
138
+ "X-Fern-SDK-Version": "0.0.11",
74
139
  "X-Fern-Runtime": core.RUNTIME.type,
75
140
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
141
  },
@@ -134,7 +199,7 @@ class Copilots {
134
199
  Authorization: yield this._getAuthorizationHeader(),
135
200
  "X-Fern-Language": "JavaScript",
136
201
  "X-Fern-SDK-Name": "@credal/sdk",
137
- "X-Fern-SDK-Version": "0.0.9",
202
+ "X-Fern-SDK-Version": "0.0.11",
138
203
  "X-Fern-Runtime": core.RUNTIME.type,
139
204
  "X-Fern-Runtime-Version": core.RUNTIME.version,
140
205
  },
@@ -191,7 +256,7 @@ class Copilots {
191
256
  Authorization: yield this._getAuthorizationHeader(),
192
257
  "X-Fern-Language": "JavaScript",
193
258
  "X-Fern-SDK-Name": "@credal/sdk",
194
- "X-Fern-SDK-Version": "0.0.9",
259
+ "X-Fern-SDK-Version": "0.0.11",
195
260
  "X-Fern-Runtime": core.RUNTIME.type,
196
261
  "X-Fern-Runtime-Version": core.RUNTIME.version,
197
262
  },
@@ -230,6 +295,246 @@ class Copilots {
230
295
  }
231
296
  });
232
297
  }
298
+ /**
299
+ * Link a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
300
+ *
301
+ * @param {Credal.AddCollectionToCopilotRequest} request
302
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
303
+ *
304
+ * @example
305
+ * await credal.copilots.addCollectionToCopilot({
306
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
307
+ * collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
308
+ * })
309
+ */
310
+ addCollectionToCopilot(request, requestOptions) {
311
+ var _a, _b;
312
+ return __awaiter(this, void 0, void 0, function* () {
313
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
314
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CredalEnvironment.Production, "/v0/copilots/addCollectionToCopilot"),
315
+ method: "POST",
316
+ headers: {
317
+ Authorization: yield this._getAuthorizationHeader(),
318
+ "X-Fern-Language": "JavaScript",
319
+ "X-Fern-SDK-Name": "@credal/sdk",
320
+ "X-Fern-SDK-Version": "0.0.11",
321
+ "X-Fern-Runtime": core.RUNTIME.type,
322
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
323
+ },
324
+ contentType: "application/json",
325
+ body: yield serializers.AddCollectionToCopilotRequest.jsonOrThrow(request, {
326
+ unrecognizedObjectKeys: "strip",
327
+ }),
328
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
329
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
330
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
331
+ });
332
+ if (_response.ok) {
333
+ return;
334
+ }
335
+ if (_response.error.reason === "status-code") {
336
+ throw new errors.CredalError({
337
+ statusCode: _response.error.statusCode,
338
+ body: _response.error.body,
339
+ });
340
+ }
341
+ switch (_response.error.reason) {
342
+ case "non-json":
343
+ throw new errors.CredalError({
344
+ statusCode: _response.error.statusCode,
345
+ body: _response.error.rawBody,
346
+ });
347
+ case "timeout":
348
+ throw new errors.CredalTimeoutError();
349
+ case "unknown":
350
+ throw new errors.CredalError({
351
+ message: _response.error.errorMessage,
352
+ });
353
+ }
354
+ });
355
+ }
356
+ /**
357
+ * Unlink a collection with a copilot. The API Key used must be added to both the collection and the copilot beforehand.
358
+ *
359
+ * @param {Credal.RemoveCollectionFromCopilotRequest} request
360
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
361
+ *
362
+ * @example
363
+ * await credal.copilots.removeCollectionFromCopilot({
364
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
365
+ * collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
366
+ * })
367
+ */
368
+ removeCollectionFromCopilot(request, requestOptions) {
369
+ var _a, _b;
370
+ return __awaiter(this, void 0, void 0, function* () {
371
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
372
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CredalEnvironment.Production, "/v0/copilots/removeCollectionFromCopilot"),
373
+ method: "POST",
374
+ headers: {
375
+ Authorization: yield this._getAuthorizationHeader(),
376
+ "X-Fern-Language": "JavaScript",
377
+ "X-Fern-SDK-Name": "@credal/sdk",
378
+ "X-Fern-SDK-Version": "0.0.11",
379
+ "X-Fern-Runtime": core.RUNTIME.type,
380
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
381
+ },
382
+ contentType: "application/json",
383
+ body: yield serializers.RemoveCollectionFromCopilotRequest.jsonOrThrow(request, {
384
+ unrecognizedObjectKeys: "strip",
385
+ }),
386
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
387
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
388
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
389
+ });
390
+ if (_response.ok) {
391
+ return;
392
+ }
393
+ if (_response.error.reason === "status-code") {
394
+ throw new errors.CredalError({
395
+ statusCode: _response.error.statusCode,
396
+ body: _response.error.body,
397
+ });
398
+ }
399
+ switch (_response.error.reason) {
400
+ case "non-json":
401
+ throw new errors.CredalError({
402
+ statusCode: _response.error.statusCode,
403
+ body: _response.error.rawBody,
404
+ });
405
+ case "timeout":
406
+ throw new errors.CredalTimeoutError();
407
+ case "unknown":
408
+ throw new errors.CredalError({
409
+ message: _response.error.errorMessage,
410
+ });
411
+ }
412
+ });
413
+ }
414
+ /**
415
+ * Update the configuration for a copilot
416
+ *
417
+ * @param {Credal.UpdateConfigurationRequest} request
418
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
419
+ *
420
+ * @example
421
+ * await credal.copilots.updateConfiguration({
422
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
423
+ * configuration: {
424
+ * name: "Customer Copilot",
425
+ * description: "This copilot is used to answer customer requests based on internal documentation.",
426
+ * prompt: "You are a polite, helpful assistant used to answer customer requests.",
427
+ * aiEndpointConfiguration: {
428
+ * baseUrl: "https://api.openai.com/v1/",
429
+ * apiKey: "<YOUR_API_KEY_HERE>"
430
+ * }
431
+ * }
432
+ * })
433
+ */
434
+ updateConfiguration(request, requestOptions) {
435
+ var _a, _b;
436
+ return __awaiter(this, void 0, void 0, function* () {
437
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
438
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CredalEnvironment.Production, "/v0/copilots/updateConfiguration"),
439
+ method: "POST",
440
+ headers: {
441
+ Authorization: yield this._getAuthorizationHeader(),
442
+ "X-Fern-Language": "JavaScript",
443
+ "X-Fern-SDK-Name": "@credal/sdk",
444
+ "X-Fern-SDK-Version": "0.0.11",
445
+ "X-Fern-Runtime": core.RUNTIME.type,
446
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
447
+ },
448
+ contentType: "application/json",
449
+ body: yield serializers.UpdateConfigurationRequest.jsonOrThrow(request, {
450
+ unrecognizedObjectKeys: "strip",
451
+ }),
452
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
453
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
454
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
455
+ });
456
+ if (_response.ok) {
457
+ return;
458
+ }
459
+ if (_response.error.reason === "status-code") {
460
+ throw new errors.CredalError({
461
+ statusCode: _response.error.statusCode,
462
+ body: _response.error.body,
463
+ });
464
+ }
465
+ switch (_response.error.reason) {
466
+ case "non-json":
467
+ throw new errors.CredalError({
468
+ statusCode: _response.error.statusCode,
469
+ body: _response.error.rawBody,
470
+ });
471
+ case "timeout":
472
+ throw new errors.CredalTimeoutError();
473
+ case "unknown":
474
+ throw new errors.CredalError({
475
+ message: _response.error.errorMessage,
476
+ });
477
+ }
478
+ });
479
+ }
480
+ /**
481
+ * @param {Credal.DeleteCopilotRequest} request
482
+ * @param {Copilots.RequestOptions} requestOptions - Request-specific configuration.
483
+ *
484
+ * @example
485
+ * await credal.copilots.deleteCopilot({
486
+ * id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
487
+ * })
488
+ */
489
+ deleteCopilot(request, requestOptions) {
490
+ var _a, _b;
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
493
+ url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CredalEnvironment.Production, "/v0/copilots/deleteCopilot"),
494
+ method: "DELETE",
495
+ headers: {
496
+ Authorization: yield this._getAuthorizationHeader(),
497
+ "X-Fern-Language": "JavaScript",
498
+ "X-Fern-SDK-Name": "@credal/sdk",
499
+ "X-Fern-SDK-Version": "0.0.11",
500
+ "X-Fern-Runtime": core.RUNTIME.type,
501
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
502
+ },
503
+ contentType: "application/json",
504
+ body: yield serializers.DeleteCopilotRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
505
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
506
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
507
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
508
+ });
509
+ if (_response.ok) {
510
+ return yield serializers.DeleteCopilotResponse.parseOrThrow(_response.body, {
511
+ unrecognizedObjectKeys: "passthrough",
512
+ allowUnrecognizedUnionMembers: true,
513
+ allowUnrecognizedEnumValues: true,
514
+ breadcrumbsPrefix: ["response"],
515
+ });
516
+ }
517
+ if (_response.error.reason === "status-code") {
518
+ throw new errors.CredalError({
519
+ statusCode: _response.error.statusCode,
520
+ body: _response.error.body,
521
+ });
522
+ }
523
+ switch (_response.error.reason) {
524
+ case "non-json":
525
+ throw new errors.CredalError({
526
+ statusCode: _response.error.statusCode,
527
+ body: _response.error.rawBody,
528
+ });
529
+ case "timeout":
530
+ throw new errors.CredalTimeoutError();
531
+ case "unknown":
532
+ throw new errors.CredalError({
533
+ message: _response.error.errorMessage,
534
+ });
535
+ }
536
+ });
537
+ }
233
538
  _getAuthorizationHeader() {
234
539
  var _a;
235
540
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
8
+ * collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
9
+ * }
10
+ */
11
+ export interface AddCollectionToCopilotRequest {
12
+ /**
13
+ * Credal-generated copilot ID to add the collection to.
14
+ *
15
+ */
16
+ copilotId: string;
17
+ /**
18
+ * Credal-generated collection ID to add.
19
+ *
20
+ */
21
+ collectionId: string;
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,10 +10,10 @@
10
10
  */
11
11
  export interface CreateConversationRequest {
12
12
  /**
13
- * Credal-generated agent ID to specify which agent to route the request to. This is required for all new API keys going forward.
13
+ * Credal-generated Copilot ID to specify which agent to route the request to.
14
14
  *
15
15
  */
16
- agentId?: string;
16
+ agentId: string;
17
17
  /**
18
18
  * End-user for the conversation.
19
19
  *
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Credal from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * name: "Customer Copilot",
9
+ * description: "This copilot is used to answer customer requests based on internal documentation.",
10
+ * collaborators: [{
11
+ * email: "test@gmail.com",
12
+ * role: Credal.Role.Editor
13
+ * }]
14
+ * }
15
+ */
16
+ export interface CreateCopilotRequest {
17
+ /**
18
+ * A descriptive name for the copilot.
19
+ *
20
+ */
21
+ name: string;
22
+ /**
23
+ * An in depth name for the copilot's function. Useful for routing requests to the right copilot.
24
+ *
25
+ */
26
+ description: string;
27
+ /**
28
+ * A list of collaborator emails and roles that will have access to the copilot.
29
+ *
30
+ */
31
+ collaborators: Credal.Collaborator[];
32
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * id: "ac20e6ba-0bae-11ef-b25a-efca73df4c3a"
8
+ * }
9
+ */
10
+ export interface DeleteCopilotRequest {
11
+ /** Copilot ID */
12
+ id: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,10 +16,10 @@ import * as Credal from "../../../../index";
16
16
  */
17
17
  export interface ProvideMessageFeedbackRequest {
18
18
  /**
19
- * Credal-generated agent ID to specify which agent to route the request to. This is required for all new API keys going forward.
19
+ * Credal-generated Copilot ID to specify which agent to route the request to.
20
20
  *
21
21
  */
22
- agentId?: string;
22
+ agentId: string;
23
23
  /**
24
24
  * The user profile you want to use when providing feedback.
25
25
  *
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * copilotId: "82e4b12a-6990-45d4-8ebd-85c00e030c24",
8
+ * collectionId: "def1055f-83c5-43d6-b558-f7a38e7b299e"
9
+ * }
10
+ */
11
+ export interface RemoveCollectionFromCopilotRequest {
12
+ /**
13
+ * Credal-generated copilot ID to add the collection to.
14
+ *
15
+ */
16
+ copilotId: string;
17
+ /**
18
+ * Credal-generated collection ID to add.
19
+ *
20
+ */
21
+ collectionId: string;
22
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -11,10 +11,10 @@
11
11
  */
12
12
  export interface SendMessageRequest {
13
13
  /**
14
- * Credal-generated agent ID to specify which agent to route the request to. This is required for all new API keys going forward.
14
+ * Credal-generated Copilot ID to specify which agent to route the request to.
15
15
  *
16
16
  */
17
- agentId?: string;
17
+ agentId: string;
18
18
  /**
19
19
  * The message you want to send to your copilot.
20
20
  *