@credal/sdk 0.0.13 → 0.0.14

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 (202) hide show
  1. package/api/resources/common/types/index.d.ts +1 -0
  2. package/api/resources/common/types/index.js +1 -0
  3. package/api/resources/copilots/client/Client.d.ts +12 -1
  4. package/api/resources/copilots/client/Client.js +79 -9
  5. package/api/resources/copilots/client/requests/SendMessageRequest.d.ts +14 -1
  6. package/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +60 -0
  7. package/api/resources/copilots/client/requests/StreamMessageRequest.js +5 -0
  8. package/api/resources/copilots/client/requests/index.d.ts +1 -0
  9. package/api/resources/copilots/types/BlockedChunk.d.ts +10 -0
  10. package/api/resources/copilots/types/BlockedChunk.js +5 -0
  11. package/api/resources/copilots/types/BooleanFieldSchema.d.ts +8 -0
  12. package/api/resources/copilots/types/BooleanFieldSchema.js +5 -0
  13. package/api/resources/copilots/types/CollectionFilteredData.d.ts +9 -0
  14. package/api/resources/copilots/types/CollectionFilteredData.js +5 -0
  15. package/api/resources/copilots/types/DataChunk.d.ts +6 -0
  16. package/api/resources/copilots/types/DataChunk.js +5 -0
  17. package/api/resources/copilots/types/DataFilter.d.ts +9 -0
  18. package/api/resources/copilots/types/DataFilter.js +5 -0
  19. package/api/resources/copilots/types/DatetimeFieldSchema.d.ts +9 -0
  20. package/api/resources/copilots/types/DatetimeFieldSchema.js +5 -0
  21. package/api/resources/copilots/types/Filter.d.ts +19 -0
  22. package/api/resources/copilots/types/Filter.js +5 -0
  23. package/api/resources/copilots/types/FinalChunk.d.ts +7 -0
  24. package/api/resources/copilots/types/FinalChunk.js +5 -0
  25. package/api/resources/copilots/types/InitialChunk.d.ts +10 -0
  26. package/api/resources/copilots/types/InitialChunk.js +5 -0
  27. package/api/resources/copilots/types/InputVariable.d.ts +7 -0
  28. package/api/resources/copilots/types/InputVariable.js +5 -0
  29. package/api/resources/copilots/types/MessageReply.d.ts +1 -0
  30. package/api/resources/copilots/types/NumberFieldSchema.d.ts +9 -0
  31. package/api/resources/copilots/types/NumberFieldSchema.js +5 -0
  32. package/api/resources/copilots/types/StreamingChunk.d.ts +5 -0
  33. package/api/resources/copilots/types/StreamingChunk.js +5 -0
  34. package/api/resources/copilots/types/StringFieldSchema.d.ts +9 -0
  35. package/api/resources/copilots/types/StringFieldSchema.js +5 -0
  36. package/api/resources/copilots/types/WebSearchResult.d.ts +8 -0
  37. package/api/resources/copilots/types/WebSearchResult.js +5 -0
  38. package/api/resources/copilots/types/index.d.ts +14 -0
  39. package/api/resources/copilots/types/index.js +14 -0
  40. package/api/resources/documentCatalog/client/Client.js +2 -2
  41. package/api/resources/documentCollections/client/Client.js +6 -6
  42. package/api/resources/permissionsService/client/Client.js +3 -3
  43. package/api/resources/search/client/Client.js +1 -1
  44. package/api/resources/search/types/index.d.ts +0 -1
  45. package/api/resources/search/types/index.js +0 -1
  46. package/api/resources/users/client/Client.js +1 -1
  47. package/core/index.d.ts +1 -0
  48. package/core/index.js +1 -0
  49. package/core/streaming-fetcher/Stream.d.ts +48 -0
  50. package/core/streaming-fetcher/Stream.js +170 -0
  51. package/core/streaming-fetcher/index.d.ts +1 -0
  52. package/core/streaming-fetcher/index.js +5 -0
  53. package/dist/api/resources/common/types/index.d.ts +1 -0
  54. package/dist/api/resources/common/types/index.js +1 -0
  55. package/dist/api/resources/copilots/client/Client.d.ts +12 -1
  56. package/dist/api/resources/copilots/client/Client.js +79 -9
  57. package/dist/api/resources/copilots/client/requests/SendMessageRequest.d.ts +14 -1
  58. package/dist/api/resources/copilots/client/requests/StreamMessageRequest.d.ts +60 -0
  59. package/dist/api/resources/copilots/client/requests/StreamMessageRequest.js +5 -0
  60. package/dist/api/resources/copilots/client/requests/index.d.ts +1 -0
  61. package/dist/api/resources/copilots/types/BlockedChunk.d.ts +10 -0
  62. package/dist/api/resources/copilots/types/BlockedChunk.js +5 -0
  63. package/dist/api/resources/copilots/types/BooleanFieldSchema.d.ts +8 -0
  64. package/dist/api/resources/copilots/types/BooleanFieldSchema.js +5 -0
  65. package/dist/api/resources/copilots/types/CollectionFilteredData.d.ts +9 -0
  66. package/dist/api/resources/copilots/types/CollectionFilteredData.js +5 -0
  67. package/dist/api/resources/copilots/types/DataChunk.d.ts +6 -0
  68. package/dist/api/resources/copilots/types/DataChunk.js +5 -0
  69. package/dist/api/resources/copilots/types/DataFilter.d.ts +9 -0
  70. package/dist/api/resources/copilots/types/DataFilter.js +5 -0
  71. package/dist/api/resources/copilots/types/DatetimeFieldSchema.d.ts +9 -0
  72. package/dist/api/resources/copilots/types/DatetimeFieldSchema.js +5 -0
  73. package/dist/api/resources/copilots/types/Filter.d.ts +19 -0
  74. package/dist/api/resources/copilots/types/Filter.js +5 -0
  75. package/dist/api/resources/copilots/types/FinalChunk.d.ts +7 -0
  76. package/dist/api/resources/copilots/types/FinalChunk.js +5 -0
  77. package/dist/api/resources/copilots/types/InitialChunk.d.ts +10 -0
  78. package/dist/api/resources/copilots/types/InitialChunk.js +5 -0
  79. package/dist/api/resources/copilots/types/InputVariable.d.ts +7 -0
  80. package/dist/api/resources/copilots/types/InputVariable.js +5 -0
  81. package/dist/api/resources/copilots/types/MessageReply.d.ts +1 -0
  82. package/dist/api/resources/copilots/types/NumberFieldSchema.d.ts +9 -0
  83. package/dist/api/resources/copilots/types/NumberFieldSchema.js +5 -0
  84. package/dist/api/resources/copilots/types/StreamingChunk.d.ts +5 -0
  85. package/dist/api/resources/copilots/types/StreamingChunk.js +5 -0
  86. package/dist/api/resources/copilots/types/StringFieldSchema.d.ts +9 -0
  87. package/dist/api/resources/copilots/types/StringFieldSchema.js +5 -0
  88. package/dist/api/resources/copilots/types/WebSearchResult.d.ts +8 -0
  89. package/dist/api/resources/copilots/types/WebSearchResult.js +5 -0
  90. package/dist/api/resources/copilots/types/index.d.ts +14 -0
  91. package/dist/api/resources/copilots/types/index.js +14 -0
  92. package/dist/api/resources/documentCatalog/client/Client.js +2 -2
  93. package/dist/api/resources/documentCollections/client/Client.js +6 -6
  94. package/dist/api/resources/permissionsService/client/Client.js +3 -3
  95. package/dist/api/resources/search/client/Client.js +1 -1
  96. package/dist/api/resources/search/types/index.d.ts +0 -1
  97. package/dist/api/resources/search/types/index.js +0 -1
  98. package/dist/api/resources/users/client/Client.js +1 -1
  99. package/dist/core/index.d.ts +1 -0
  100. package/dist/core/index.js +1 -0
  101. package/dist/core/streaming-fetcher/Stream.d.ts +48 -0
  102. package/dist/core/streaming-fetcher/Stream.js +170 -0
  103. package/dist/core/streaming-fetcher/index.d.ts +1 -0
  104. package/dist/core/streaming-fetcher/index.js +5 -0
  105. package/dist/serialization/resources/common/types/index.d.ts +1 -0
  106. package/dist/serialization/resources/common/types/index.js +1 -0
  107. package/dist/serialization/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -0
  108. package/dist/serialization/resources/copilots/client/requests/SendMessageRequest.js +2 -0
  109. package/dist/serialization/resources/copilots/client/requests/StreamMessageRequest.d.ts +17 -0
  110. package/dist/serialization/resources/copilots/client/requests/StreamMessageRequest.js +38 -0
  111. package/dist/serialization/resources/copilots/client/requests/index.d.ts +1 -0
  112. package/dist/serialization/resources/copilots/client/requests/index.js +3 -1
  113. package/dist/serialization/resources/copilots/types/BlockedChunk.d.ts +16 -0
  114. package/dist/serialization/resources/copilots/types/BlockedChunk.js +37 -0
  115. package/dist/serialization/resources/copilots/types/BooleanFieldSchema.d.ts +14 -0
  116. package/dist/serialization/resources/copilots/types/BooleanFieldSchema.js +35 -0
  117. package/dist/serialization/resources/copilots/types/CollectionFilteredData.d.ts +15 -0
  118. package/dist/serialization/resources/copilots/types/CollectionFilteredData.js +36 -0
  119. package/dist/serialization/resources/copilots/types/DataChunk.d.ts +12 -0
  120. package/dist/serialization/resources/copilots/types/DataChunk.js +33 -0
  121. package/dist/serialization/resources/copilots/types/DataFilter.d.ts +15 -0
  122. package/dist/serialization/resources/copilots/types/DataFilter.js +36 -0
  123. package/dist/serialization/resources/copilots/types/DatetimeFieldSchema.d.ts +15 -0
  124. package/dist/serialization/resources/copilots/types/DatetimeFieldSchema.js +36 -0
  125. package/dist/serialization/resources/copilots/types/Filter.d.ts +26 -0
  126. package/dist/serialization/resources/copilots/types/Filter.js +45 -0
  127. package/dist/serialization/resources/copilots/types/FinalChunk.d.ts +13 -0
  128. package/dist/serialization/resources/copilots/types/FinalChunk.js +34 -0
  129. package/dist/serialization/resources/copilots/types/InitialChunk.d.ts +17 -0
  130. package/dist/serialization/resources/copilots/types/InitialChunk.js +38 -0
  131. package/dist/serialization/resources/copilots/types/InputVariable.d.ts +13 -0
  132. package/dist/serialization/resources/copilots/types/InputVariable.js +34 -0
  133. package/dist/serialization/resources/copilots/types/MessageReply.d.ts +2 -0
  134. package/dist/serialization/resources/copilots/types/MessageReply.js +2 -0
  135. package/dist/serialization/resources/copilots/types/NumberFieldSchema.d.ts +15 -0
  136. package/dist/serialization/resources/copilots/types/NumberFieldSchema.js +36 -0
  137. package/dist/serialization/resources/copilots/types/StreamingChunk.d.ts +14 -0
  138. package/dist/serialization/resources/copilots/types/StreamingChunk.js +35 -0
  139. package/dist/serialization/resources/copilots/types/StringFieldSchema.d.ts +15 -0
  140. package/dist/serialization/resources/copilots/types/StringFieldSchema.js +36 -0
  141. package/dist/serialization/resources/copilots/types/WebSearchResult.d.ts +14 -0
  142. package/dist/serialization/resources/copilots/types/WebSearchResult.js +35 -0
  143. package/dist/serialization/resources/copilots/types/index.d.ts +14 -0
  144. package/dist/serialization/resources/copilots/types/index.js +14 -0
  145. package/dist/serialization/resources/search/types/SingleFieldFilter.d.ts +1 -1
  146. package/dist/serialization/resources/search/types/SingleFieldFilter.js +1 -1
  147. package/dist/serialization/resources/search/types/index.d.ts +0 -1
  148. package/dist/serialization/resources/search/types/index.js +0 -1
  149. package/package.json +1 -1
  150. package/reference.md +71 -0
  151. package/serialization/resources/common/types/index.d.ts +1 -0
  152. package/serialization/resources/common/types/index.js +1 -0
  153. package/serialization/resources/copilots/client/requests/SendMessageRequest.d.ts +2 -0
  154. package/serialization/resources/copilots/client/requests/SendMessageRequest.js +2 -0
  155. package/serialization/resources/copilots/client/requests/StreamMessageRequest.d.ts +17 -0
  156. package/serialization/resources/copilots/client/requests/StreamMessageRequest.js +38 -0
  157. package/serialization/resources/copilots/client/requests/index.d.ts +1 -0
  158. package/serialization/resources/copilots/client/requests/index.js +3 -1
  159. package/serialization/resources/copilots/types/BlockedChunk.d.ts +16 -0
  160. package/serialization/resources/copilots/types/BlockedChunk.js +37 -0
  161. package/serialization/resources/copilots/types/BooleanFieldSchema.d.ts +14 -0
  162. package/serialization/resources/copilots/types/BooleanFieldSchema.js +35 -0
  163. package/serialization/resources/copilots/types/CollectionFilteredData.d.ts +15 -0
  164. package/serialization/resources/copilots/types/CollectionFilteredData.js +36 -0
  165. package/serialization/resources/copilots/types/DataChunk.d.ts +12 -0
  166. package/serialization/resources/copilots/types/DataChunk.js +33 -0
  167. package/serialization/resources/copilots/types/DataFilter.d.ts +15 -0
  168. package/serialization/resources/copilots/types/DataFilter.js +36 -0
  169. package/serialization/resources/copilots/types/DatetimeFieldSchema.d.ts +15 -0
  170. package/serialization/resources/copilots/types/DatetimeFieldSchema.js +36 -0
  171. package/serialization/resources/copilots/types/Filter.d.ts +26 -0
  172. package/serialization/resources/copilots/types/Filter.js +45 -0
  173. package/serialization/resources/copilots/types/FinalChunk.d.ts +13 -0
  174. package/serialization/resources/copilots/types/FinalChunk.js +34 -0
  175. package/serialization/resources/copilots/types/InitialChunk.d.ts +17 -0
  176. package/serialization/resources/copilots/types/InitialChunk.js +38 -0
  177. package/serialization/resources/copilots/types/InputVariable.d.ts +13 -0
  178. package/serialization/resources/copilots/types/InputVariable.js +34 -0
  179. package/serialization/resources/copilots/types/MessageReply.d.ts +2 -0
  180. package/serialization/resources/copilots/types/MessageReply.js +2 -0
  181. package/serialization/resources/copilots/types/NumberFieldSchema.d.ts +15 -0
  182. package/serialization/resources/copilots/types/NumberFieldSchema.js +36 -0
  183. package/serialization/resources/copilots/types/StreamingChunk.d.ts +14 -0
  184. package/serialization/resources/copilots/types/StreamingChunk.js +35 -0
  185. package/serialization/resources/copilots/types/StringFieldSchema.d.ts +15 -0
  186. package/serialization/resources/copilots/types/StringFieldSchema.js +36 -0
  187. package/serialization/resources/copilots/types/WebSearchResult.d.ts +14 -0
  188. package/serialization/resources/copilots/types/WebSearchResult.js +35 -0
  189. package/serialization/resources/copilots/types/index.d.ts +14 -0
  190. package/serialization/resources/copilots/types/index.js +14 -0
  191. package/serialization/resources/search/types/SingleFieldFilter.d.ts +1 -1
  192. package/serialization/resources/search/types/SingleFieldFilter.js +1 -1
  193. package/serialization/resources/search/types/index.d.ts +0 -1
  194. package/serialization/resources/search/types/index.js +0 -1
  195. /package/api/resources/{search → common}/types/Operator.d.ts +0 -0
  196. /package/api/resources/{search → common}/types/Operator.js +0 -0
  197. /package/dist/api/resources/{search → common}/types/Operator.d.ts +0 -0
  198. /package/dist/api/resources/{search → common}/types/Operator.js +0 -0
  199. /package/dist/serialization/resources/{search → common}/types/Operator.d.ts +0 -0
  200. /package/dist/serialization/resources/{search → common}/types/Operator.js +0 -0
  201. /package/serialization/resources/{search → common}/types/Operator.d.ts +0 -0
  202. /package/serialization/resources/{search → common}/types/Operator.js +0 -0
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Credal from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { InputVariable } from "../../types/InputVariable";
7
8
  export declare const SendMessageRequest: core.serialization.Schema<serializers.SendMessageRequest.Raw, Credal.SendMessageRequest>;
8
9
  export declare namespace SendMessageRequest {
9
10
  interface Raw {
@@ -11,5 +12,6 @@ export declare namespace SendMessageRequest {
11
12
  message: string;
12
13
  userEmail: string;
13
14
  conversationId?: string | null;
15
+ inputVariables?: InputVariable.Raw[] | null;
14
16
  }
15
17
  }
@@ -28,9 +28,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SendMessageRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const InputVariable_1 = require("../../types/InputVariable");
31
32
  exports.SendMessageRequest = core.serialization.object({
32
33
  agentId: core.serialization.string(),
33
34
  message: core.serialization.string(),
34
35
  userEmail: core.serialization.string(),
35
36
  conversationId: core.serialization.string().optional(),
37
+ inputVariables: core.serialization.list(InputVariable_1.InputVariable).optional(),
36
38
  });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Credal from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { InputVariable } from "../../types/InputVariable";
8
+ export declare const StreamMessageRequest: core.serialization.Schema<serializers.StreamMessageRequest.Raw, Credal.StreamMessageRequest>;
9
+ export declare namespace StreamMessageRequest {
10
+ interface Raw {
11
+ copilotId: string;
12
+ message: string;
13
+ email: string;
14
+ conversationId?: string | null;
15
+ inputVariables?: InputVariable.Raw[] | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.StreamMessageRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const InputVariable_1 = require("../../types/InputVariable");
32
+ exports.StreamMessageRequest = core.serialization.object({
33
+ copilotId: core.serialization.string(),
34
+ message: core.serialization.string(),
35
+ email: core.serialization.string(),
36
+ conversationId: core.serialization.string().optional(),
37
+ inputVariables: core.serialization.list(InputVariable_1.InputVariable).optional(),
38
+ });
@@ -2,6 +2,7 @@ export { CreateCopilotRequest } from "./CreateCopilotRequest";
2
2
  export { CreateConversationRequest } from "./CreateConversationRequest";
3
3
  export { ProvideMessageFeedbackRequest } from "./ProvideMessageFeedbackRequest";
4
4
  export { SendMessageRequest } from "./SendMessageRequest";
5
+ export { StreamMessageRequest } from "./StreamMessageRequest";
5
6
  export { AddCollectionToCopilotRequest } from "./AddCollectionToCopilotRequest";
6
7
  export { RemoveCollectionFromCopilotRequest } from "./RemoveCollectionFromCopilotRequest";
7
8
  export { UpdateConfigurationRequest } from "./UpdateConfigurationRequest";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeleteCopilotRequest = exports.UpdateConfigurationRequest = exports.RemoveCollectionFromCopilotRequest = exports.AddCollectionToCopilotRequest = exports.SendMessageRequest = exports.ProvideMessageFeedbackRequest = exports.CreateConversationRequest = exports.CreateCopilotRequest = void 0;
3
+ exports.DeleteCopilotRequest = exports.UpdateConfigurationRequest = exports.RemoveCollectionFromCopilotRequest = exports.AddCollectionToCopilotRequest = exports.StreamMessageRequest = exports.SendMessageRequest = exports.ProvideMessageFeedbackRequest = exports.CreateConversationRequest = exports.CreateCopilotRequest = void 0;
4
4
  var CreateCopilotRequest_1 = require("./CreateCopilotRequest");
5
5
  Object.defineProperty(exports, "CreateCopilotRequest", { enumerable: true, get: function () { return CreateCopilotRequest_1.CreateCopilotRequest; } });
6
6
  var CreateConversationRequest_1 = require("./CreateConversationRequest");
@@ -9,6 +9,8 @@ var ProvideMessageFeedbackRequest_1 = require("./ProvideMessageFeedbackRequest")
9
9
  Object.defineProperty(exports, "ProvideMessageFeedbackRequest", { enumerable: true, get: function () { return ProvideMessageFeedbackRequest_1.ProvideMessageFeedbackRequest; } });
10
10
  var SendMessageRequest_1 = require("./SendMessageRequest");
11
11
  Object.defineProperty(exports, "SendMessageRequest", { enumerable: true, get: function () { return SendMessageRequest_1.SendMessageRequest; } });
12
+ var StreamMessageRequest_1 = require("./StreamMessageRequest");
13
+ Object.defineProperty(exports, "StreamMessageRequest", { enumerable: true, get: function () { return StreamMessageRequest_1.StreamMessageRequest; } });
12
14
  var AddCollectionToCopilotRequest_1 = require("./AddCollectionToCopilotRequest");
13
15
  Object.defineProperty(exports, "AddCollectionToCopilotRequest", { enumerable: true, get: function () { return AddCollectionToCopilotRequest_1.AddCollectionToCopilotRequest; } });
14
16
  var RemoveCollectionFromCopilotRequest_1 = require("./RemoveCollectionFromCopilotRequest");
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { PolicyTrigger } from "./PolicyTrigger";
8
+ export declare const BlockedChunk: core.serialization.ObjectSchema<serializers.BlockedChunk.Raw, Credal.BlockedChunk>;
9
+ export declare namespace BlockedChunk {
10
+ interface Raw {
11
+ conversationId: string;
12
+ warnings: string[];
13
+ blocks: string[];
14
+ policyTriggers: PolicyTrigger.Raw[];
15
+ }
16
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.BlockedChunk = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const PolicyTrigger_1 = require("./PolicyTrigger");
32
+ exports.BlockedChunk = core.serialization.object({
33
+ conversationId: core.serialization.string(),
34
+ warnings: core.serialization.list(core.serialization.string()),
35
+ blocks: core.serialization.list(core.serialization.string()),
36
+ policyTriggers: core.serialization.list(PolicyTrigger_1.PolicyTrigger),
37
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const BooleanFieldSchema: core.serialization.ObjectSchema<serializers.BooleanFieldSchema.Raw, Credal.BooleanFieldSchema>;
8
+ export declare namespace BooleanFieldSchema {
9
+ interface Raw {
10
+ field: string;
11
+ operator: "==";
12
+ value: boolean;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.BooleanFieldSchema = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.BooleanFieldSchema = core.serialization.object({
32
+ field: core.serialization.string(),
33
+ operator: core.serialization.stringLiteral("=="),
34
+ value: core.serialization.boolean(),
35
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { Filter } from "./Filter";
8
+ export declare const CollectionFilteredData: core.serialization.ObjectSchema<serializers.CollectionFilteredData.Raw, Credal.CollectionFilteredData>;
9
+ export declare namespace CollectionFilteredData {
10
+ interface Raw {
11
+ collectionId: string;
12
+ filteredDataIds: string[];
13
+ filters: Filter.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CollectionFilteredData = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const Filter_1 = require("./Filter");
32
+ exports.CollectionFilteredData = core.serialization.object({
33
+ collectionId: core.serialization.string(),
34
+ filteredDataIds: core.serialization.list(core.serialization.string()),
35
+ filters: core.serialization.list(Filter_1.Filter),
36
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DataChunk: core.serialization.ObjectSchema<serializers.DataChunk.Raw, Credal.DataChunk>;
8
+ export declare namespace DataChunk {
9
+ interface Raw {
10
+ chunk: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DataChunk = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.DataChunk = core.serialization.object({
32
+ chunk: core.serialization.string(),
33
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { CollectionFilteredData } from "./CollectionFilteredData";
8
+ export declare const DataFilter: core.serialization.ObjectSchema<serializers.DataFilter.Raw, Credal.DataFilter>;
9
+ export declare namespace DataFilter {
10
+ interface Raw {
11
+ semanticSearchTerms: string[];
12
+ webSearchResults: string[];
13
+ filteredDataSourcesPerCollection: CollectionFilteredData.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DataFilter = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const CollectionFilteredData_1 = require("./CollectionFilteredData");
32
+ exports.DataFilter = core.serialization.object({
33
+ semanticSearchTerms: core.serialization.list(core.serialization.string()),
34
+ webSearchResults: core.serialization.list(core.serialization.string()),
35
+ filteredDataSourcesPerCollection: core.serialization.list(CollectionFilteredData_1.CollectionFilteredData),
36
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { Operator } from "../../common/types/Operator";
8
+ export declare const DatetimeFieldSchema: core.serialization.ObjectSchema<serializers.DatetimeFieldSchema.Raw, Credal.DatetimeFieldSchema>;
9
+ export declare namespace DatetimeFieldSchema {
10
+ interface Raw {
11
+ field: string;
12
+ operator: Operator.Raw;
13
+ value: string;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DatetimeFieldSchema = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const Operator_1 = require("../../common/types/Operator");
32
+ exports.DatetimeFieldSchema = core.serialization.object({
33
+ field: core.serialization.string(),
34
+ operator: Operator_1.Operator,
35
+ value: core.serialization.string(),
36
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { StringFieldSchema } from "./StringFieldSchema";
8
+ import { NumberFieldSchema } from "./NumberFieldSchema";
9
+ import { BooleanFieldSchema } from "./BooleanFieldSchema";
10
+ import { DatetimeFieldSchema } from "./DatetimeFieldSchema";
11
+ export declare const Filter: core.serialization.Schema<serializers.Filter.Raw, Credal.Filter>;
12
+ export declare namespace Filter {
13
+ type Raw = Filter.String | Filter.Number | Filter.Boolean | Filter.Datetime;
14
+ interface String extends StringFieldSchema.Raw {
15
+ fieldType: "string";
16
+ }
17
+ interface Number extends NumberFieldSchema.Raw {
18
+ fieldType: "number";
19
+ }
20
+ interface Boolean extends BooleanFieldSchema.Raw {
21
+ fieldType: "boolean";
22
+ }
23
+ interface Datetime extends DatetimeFieldSchema.Raw {
24
+ fieldType: "datetime";
25
+ }
26
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Filter = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const StringFieldSchema_1 = require("./StringFieldSchema");
32
+ const NumberFieldSchema_1 = require("./NumberFieldSchema");
33
+ const BooleanFieldSchema_1 = require("./BooleanFieldSchema");
34
+ const DatetimeFieldSchema_1 = require("./DatetimeFieldSchema");
35
+ exports.Filter = core.serialization
36
+ .union("fieldType", {
37
+ string: StringFieldSchema_1.StringFieldSchema,
38
+ number: NumberFieldSchema_1.NumberFieldSchema,
39
+ boolean: BooleanFieldSchema_1.BooleanFieldSchema,
40
+ datetime: DatetimeFieldSchema_1.DatetimeFieldSchema,
41
+ })
42
+ .transform({
43
+ transform: (value) => value,
44
+ untransform: (value) => value,
45
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ReferencedSource } from "./ReferencedSource";
8
+ export declare const FinalChunk: core.serialization.ObjectSchema<serializers.FinalChunk.Raw, Credal.FinalChunk>;
9
+ export declare namespace FinalChunk {
10
+ interface Raw {
11
+ referencedSources: ReferencedSource.Raw[];
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FinalChunk = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ReferencedSource_1 = require("./ReferencedSource");
32
+ exports.FinalChunk = core.serialization.object({
33
+ referencedSources: core.serialization.list(ReferencedSource_1.ReferencedSource),
34
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { WebSearchResult } from "./WebSearchResult";
8
+ import { DataFilter } from "./DataFilter";
9
+ export declare const InitialChunk: core.serialization.ObjectSchema<serializers.InitialChunk.Raw, Credal.InitialChunk>;
10
+ export declare namespace InitialChunk {
11
+ interface Raw {
12
+ conversationId: string;
13
+ warnings: string[];
14
+ webSearchResults: WebSearchResult.Raw[];
15
+ dataFilters?: DataFilter.Raw | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.InitialChunk = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const WebSearchResult_1 = require("./WebSearchResult");
32
+ const DataFilter_1 = require("./DataFilter");
33
+ exports.InitialChunk = core.serialization.object({
34
+ conversationId: core.serialization.string(),
35
+ warnings: core.serialization.list(core.serialization.string()),
36
+ webSearchResults: core.serialization.list(WebSearchResult_1.WebSearchResult),
37
+ dataFilters: DataFilter_1.DataFilter.optional(),
38
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Credal from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const InputVariable: core.serialization.ObjectSchema<serializers.InputVariable.Raw, Credal.InputVariable>;
8
+ export declare namespace InputVariable {
9
+ interface Raw {
10
+ name: string;
11
+ urls: string[];
12
+ }
13
+ }