@airweave/sdk 0.1.12 → 0.1.13

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 (181) hide show
  1. package/Client.d.ts +0 -9
  2. package/Client.js +14 -29
  3. package/README.md +11 -7
  4. package/api/resources/connections/client/Client.js +12 -12
  5. package/api/resources/destinations/client/Client.js +2 -2
  6. package/api/resources/embeddingModels/client/Client.js +2 -2
  7. package/api/resources/index.d.ts +0 -5
  8. package/api/resources/index.js +1 -6
  9. package/api/resources/sources/client/Client.js +2 -2
  10. package/api/resources/sync/client/Client.js +8 -8
  11. package/api/resources/users/client/Client.js +1 -1
  12. package/api/resources/whiteLabels/client/Client.js +8 -8
  13. package/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +1 -2
  14. package/{dist/api/resources/chat/client/requests → api/types}/ChatCreate.d.ts +1 -5
  15. package/{dist/api/resources/chat/client/requests → api/types}/ChatMessageCreate.d.ts +1 -4
  16. package/api/{resources/chat/client/requests → types}/ChatUpdate.d.ts +1 -2
  17. package/api/types/index.d.ts +4 -0
  18. package/api/types/index.js +4 -0
  19. package/dist/Client.d.ts +0 -9
  20. package/dist/Client.js +14 -29
  21. package/dist/api/resources/connections/client/Client.js +12 -12
  22. package/dist/api/resources/destinations/client/Client.js +2 -2
  23. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  24. package/dist/api/resources/index.d.ts +0 -5
  25. package/dist/api/resources/index.js +1 -6
  26. package/dist/api/resources/sources/client/Client.js +2 -2
  27. package/dist/api/resources/sync/client/Client.js +8 -8
  28. package/dist/api/resources/users/client/Client.js +1 -1
  29. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  30. package/dist/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +1 -2
  31. package/{api/resources/chat/client/requests → dist/api/types}/ChatCreate.d.ts +1 -5
  32. package/{api/resources/chat/client/requests → dist/api/types}/ChatMessageCreate.d.ts +1 -4
  33. package/dist/api/{resources/chat/client/requests → types}/ChatUpdate.d.ts +1 -2
  34. package/dist/api/types/index.d.ts +4 -0
  35. package/dist/api/types/index.js +4 -0
  36. package/dist/serialization/resources/index.d.ts +0 -5
  37. package/dist/serialization/resources/index.js +1 -6
  38. package/dist/serialization/types/ApiKeyCreate.d.ts +12 -0
  39. package/{serialization/resources/apiKeys/client/requests → dist/serialization/types}/ApiKeyCreate.js +1 -1
  40. package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatCreate.d.ts +4 -4
  41. package/dist/serialization/{resources/chat/client/requests → types}/ChatCreate.js +1 -1
  42. package/dist/serialization/types/ChatMessageCreate.d.ts +13 -0
  43. package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatMessageCreate.js +1 -1
  44. package/dist/serialization/{resources/chat/client/requests → types}/ChatUpdate.d.ts +4 -4
  45. package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatUpdate.js +1 -1
  46. package/dist/serialization/types/index.d.ts +4 -0
  47. package/dist/serialization/types/index.js +4 -0
  48. package/dist/version.d.ts +1 -1
  49. package/dist/version.js +1 -1
  50. package/package.json +1 -1
  51. package/reference.md +310 -1200
  52. package/serialization/resources/index.d.ts +0 -5
  53. package/serialization/resources/index.js +1 -6
  54. package/serialization/types/ApiKeyCreate.d.ts +12 -0
  55. package/{dist/serialization/resources/apiKeys/client/requests → serialization/types}/ApiKeyCreate.js +1 -1
  56. package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatCreate.d.ts +4 -4
  57. package/serialization/{resources/chat/client/requests → types}/ChatCreate.js +1 -1
  58. package/serialization/types/ChatMessageCreate.d.ts +13 -0
  59. package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatMessageCreate.js +1 -1
  60. package/serialization/{resources/chat/client/requests → types}/ChatUpdate.d.ts +4 -4
  61. package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatUpdate.js +1 -1
  62. package/serialization/types/index.d.ts +4 -0
  63. package/serialization/types/index.js +4 -0
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
  66. package/api/resources/apiKeys/client/Client.d.ts +0 -131
  67. package/api/resources/apiKeys/client/Client.js +0 -391
  68. package/api/resources/apiKeys/client/index.d.ts +0 -1
  69. package/api/resources/apiKeys/client/index.js +0 -17
  70. package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
  71. package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +0 -5
  72. package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +0 -11
  73. package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +0 -5
  74. package/api/resources/apiKeys/client/requests/index.d.ts +0 -3
  75. package/api/resources/apiKeys/client/requests/index.js +0 -2
  76. package/api/resources/apiKeys/index.d.ts +0 -1
  77. package/api/resources/apiKeys/index.js +0 -17
  78. package/api/resources/chat/client/Client.d.ts +0 -134
  79. package/api/resources/chat/client/Client.js +0 -594
  80. package/api/resources/chat/client/index.d.ts +0 -1
  81. package/api/resources/chat/client/index.js +0 -17
  82. package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +0 -11
  83. package/api/resources/chat/client/requests/ListChatsChatGetRequest.js +0 -5
  84. package/api/resources/chat/client/requests/index.d.ts +0 -4
  85. package/api/resources/chat/client/requests/index.js +0 -2
  86. package/api/resources/chat/index.d.ts +0 -1
  87. package/api/resources/chat/index.js +0 -17
  88. package/api/resources/health/client/Client.d.ts +0 -40
  89. package/api/resources/health/client/Client.js +0 -117
  90. package/api/resources/health/client/index.d.ts +0 -1
  91. package/api/resources/health/client/index.js +0 -2
  92. package/api/resources/health/index.d.ts +0 -1
  93. package/api/resources/health/index.js +0 -17
  94. package/dist/api/resources/apiKeys/client/Client.d.ts +0 -131
  95. package/dist/api/resources/apiKeys/client/Client.js +0 -391
  96. package/dist/api/resources/apiKeys/client/index.d.ts +0 -1
  97. package/dist/api/resources/apiKeys/client/index.js +0 -17
  98. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
  99. package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +0 -5
  100. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +0 -11
  101. package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +0 -5
  102. package/dist/api/resources/apiKeys/client/requests/index.d.ts +0 -3
  103. package/dist/api/resources/apiKeys/client/requests/index.js +0 -2
  104. package/dist/api/resources/apiKeys/index.d.ts +0 -1
  105. package/dist/api/resources/apiKeys/index.js +0 -17
  106. package/dist/api/resources/chat/client/Client.d.ts +0 -134
  107. package/dist/api/resources/chat/client/Client.js +0 -594
  108. package/dist/api/resources/chat/client/index.d.ts +0 -1
  109. package/dist/api/resources/chat/client/index.js +0 -17
  110. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +0 -11
  111. package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js +0 -5
  112. package/dist/api/resources/chat/client/requests/index.d.ts +0 -4
  113. package/dist/api/resources/chat/client/requests/index.js +0 -2
  114. package/dist/api/resources/chat/index.d.ts +0 -1
  115. package/dist/api/resources/chat/index.js +0 -17
  116. package/dist/api/resources/health/client/Client.d.ts +0 -40
  117. package/dist/api/resources/health/client/Client.js +0 -117
  118. package/dist/api/resources/health/client/index.d.ts +0 -1
  119. package/dist/api/resources/health/client/index.js +0 -2
  120. package/dist/api/resources/health/index.d.ts +0 -1
  121. package/dist/api/resources/health/index.js +0 -17
  122. package/dist/serialization/resources/apiKeys/client/index.d.ts +0 -2
  123. package/dist/serialization/resources/apiKeys/client/index.js +0 -41
  124. package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +0 -11
  125. package/dist/serialization/resources/apiKeys/client/readApiKeys.js +0 -42
  126. package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +0 -12
  127. package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
  128. package/dist/serialization/resources/apiKeys/client/requests/index.js +0 -5
  129. package/dist/serialization/resources/apiKeys/index.d.ts +0 -1
  130. package/dist/serialization/resources/apiKeys/index.js +0 -17
  131. package/dist/serialization/resources/chat/client/index.d.ts +0 -3
  132. package/dist/serialization/resources/chat/client/index.js +0 -42
  133. package/dist/serialization/resources/chat/client/listChats.d.ts +0 -11
  134. package/dist/serialization/resources/chat/client/listChats.js +0 -42
  135. package/dist/serialization/resources/chat/client/openaiKeySet.d.ts +0 -9
  136. package/dist/serialization/resources/chat/client/openaiKeySet.js +0 -41
  137. package/dist/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +0 -13
  138. package/dist/serialization/resources/chat/client/requests/index.d.ts +0 -3
  139. package/dist/serialization/resources/chat/client/requests/index.js +0 -9
  140. package/dist/serialization/resources/chat/index.d.ts +0 -1
  141. package/dist/serialization/resources/chat/index.js +0 -17
  142. package/dist/serialization/resources/health/client/healthCheck.d.ts +0 -9
  143. package/dist/serialization/resources/health/client/healthCheck.js +0 -41
  144. package/dist/serialization/resources/health/client/index.d.ts +0 -1
  145. package/dist/serialization/resources/health/client/index.js +0 -37
  146. package/dist/serialization/resources/health/index.d.ts +0 -1
  147. package/dist/serialization/resources/health/index.js +0 -17
  148. package/serialization/resources/apiKeys/client/index.d.ts +0 -2
  149. package/serialization/resources/apiKeys/client/index.js +0 -41
  150. package/serialization/resources/apiKeys/client/readApiKeys.d.ts +0 -11
  151. package/serialization/resources/apiKeys/client/readApiKeys.js +0 -42
  152. package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +0 -12
  153. package/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
  154. package/serialization/resources/apiKeys/client/requests/index.js +0 -5
  155. package/serialization/resources/apiKeys/index.d.ts +0 -1
  156. package/serialization/resources/apiKeys/index.js +0 -17
  157. package/serialization/resources/chat/client/index.d.ts +0 -3
  158. package/serialization/resources/chat/client/index.js +0 -42
  159. package/serialization/resources/chat/client/listChats.d.ts +0 -11
  160. package/serialization/resources/chat/client/listChats.js +0 -42
  161. package/serialization/resources/chat/client/openaiKeySet.d.ts +0 -9
  162. package/serialization/resources/chat/client/openaiKeySet.js +0 -41
  163. package/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +0 -13
  164. package/serialization/resources/chat/client/requests/index.d.ts +0 -3
  165. package/serialization/resources/chat/client/requests/index.js +0 -9
  166. package/serialization/resources/chat/index.d.ts +0 -1
  167. package/serialization/resources/chat/index.js +0 -17
  168. package/serialization/resources/health/client/healthCheck.d.ts +0 -9
  169. package/serialization/resources/health/client/healthCheck.js +0 -41
  170. package/serialization/resources/health/client/index.d.ts +0 -1
  171. package/serialization/resources/health/client/index.js +0 -37
  172. package/serialization/resources/health/index.d.ts +0 -1
  173. package/serialization/resources/health/index.js +0 -17
  174. /package/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.js +0 -0
  175. /package/api/{resources/chat/client/requests → types}/ChatCreate.js +0 -0
  176. /package/api/{resources/chat/client/requests → types}/ChatMessageCreate.js +0 -0
  177. /package/api/{resources/chat/client/requests → types}/ChatUpdate.js +0 -0
  178. /package/dist/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.js +0 -0
  179. /package/dist/api/{resources/chat/client/requests → types}/ChatCreate.js +0 -0
  180. /package/dist/api/{resources/chat/client/requests → types}/ChatMessageCreate.js +0 -0
  181. /package/dist/api/{resources/chat/client/requests → types}/ChatUpdate.js +0 -0
@@ -1,40 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments";
5
- import * as core from "../../../../core";
6
- export declare namespace Health {
7
- interface Options {
8
- environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
9
- /** Override the x-api-key header */
10
- apiKey?: core.Supplier<string | undefined>;
11
- }
12
- interface RequestOptions {
13
- /** The maximum time to wait for a response in seconds. */
14
- timeoutInSeconds?: number;
15
- /** The number of times to retry the request. Defaults to 2. */
16
- maxRetries?: number;
17
- /** A hook to abort the request. */
18
- abortSignal?: AbortSignal;
19
- /** Override the x-api-key header */
20
- apiKey?: string | undefined;
21
- /** Additional headers to include in the request. */
22
- headers?: Record<string, string>;
23
- }
24
- }
25
- export declare class Health {
26
- protected readonly _options: Health.Options;
27
- constructor(_options?: Health.Options);
28
- /**
29
- * Check if the API is healthy.
30
- *
31
- * Returns:
32
- * dict: A dictionary containing the status of the API.
33
- *
34
- * @param {Health.RequestOptions} requestOptions - Request-specific configuration.
35
- *
36
- * @example
37
- * await client.health.healthCheck()
38
- */
39
- healthCheck(requestOptions?: Health.RequestOptions): Promise<Record<string, string>>;
40
- }
@@ -1,117 +0,0 @@
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 () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
- return new (P || (P = Promise))(function (resolve, reject) {
41
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
- step((generator = generator.apply(thisArg, _arguments || [])).next());
45
- });
46
- };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.Health = void 0;
52
- const environments = __importStar(require("../../../../environments"));
53
- const core = __importStar(require("../../../../core"));
54
- const url_join_1 = __importDefault(require("url-join"));
55
- const serializers = __importStar(require("../../../../serialization/index"));
56
- const errors = __importStar(require("../../../../errors/index"));
57
- class Health {
58
- constructor(_options = {}) {
59
- this._options = _options;
60
- }
61
- /**
62
- * Check if the API is healthy.
63
- *
64
- * Returns:
65
- * dict: A dictionary containing the status of the API.
66
- *
67
- * @param {Health.RequestOptions} requestOptions - Request-specific configuration.
68
- *
69
- * @example
70
- * await client.health.healthCheck()
71
- */
72
- healthCheck(requestOptions) {
73
- return __awaiter(this, void 0, void 0, function* () {
74
- var _a;
75
- const _response = yield core.fetcher({
76
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "health"),
77
- method: "GET",
78
- headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
79
- ? yield core.Supplier.get(this._options.apiKey)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@airweave/sdk/0.1.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
- contentType: "application/json",
82
- requestType: "json",
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 serializers.health.healthCheck.Response.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.AirweaveSDKError({
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.AirweaveSDKError({
104
- statusCode: _response.error.statusCode,
105
- body: _response.error.rawBody,
106
- });
107
- case "timeout":
108
- throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /health.");
109
- case "unknown":
110
- throw new errors.AirweaveSDKError({
111
- message: _response.error.errorMessage,
112
- });
113
- }
114
- });
115
- }
116
- }
117
- exports.Health = Health;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,2 +0,0 @@
1
- export * as readApiKeys from "./readApiKeys";
2
- export * from "./requests";
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.readApiKeys = void 0;
40
- exports.readApiKeys = __importStar(require("./readApiKeys"));
41
- __exportStar(require("./requests"), exports);
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as AirweaveSDK from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { ApiKey } from "../../../types/ApiKey";
8
- export declare const Response: core.serialization.Schema<serializers.apiKeys.readApiKeys.Response.Raw, AirweaveSDK.ApiKey[]>;
9
- export declare namespace Response {
10
- type Raw = ApiKey.Raw[];
11
- }
@@ -1,42 +0,0 @@
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 () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- const ApiKey_1 = require("../../../types/ApiKey");
42
- exports.Response = core.serialization.list(ApiKey_1.ApiKey);
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../index";
5
- import * as AirweaveSDK from "../../../../../api/index";
6
- import * as core from "../../../../../core";
7
- export declare const ApiKeyCreate: core.serialization.Schema<serializers.ApiKeyCreate.Raw, AirweaveSDK.ApiKeyCreate>;
8
- export declare namespace ApiKeyCreate {
9
- interface Raw {
10
- expiration_date?: string | null;
11
- }
12
- }
@@ -1 +0,0 @@
1
- export { ApiKeyCreate } from "./ApiKeyCreate";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiKeyCreate = void 0;
4
- var ApiKeyCreate_1 = require("./ApiKeyCreate");
5
- Object.defineProperty(exports, "ApiKeyCreate", { enumerable: true, get: function () { return ApiKeyCreate_1.ApiKeyCreate; } });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,3 +0,0 @@
1
- export * as openaiKeySet from "./openaiKeySet";
2
- export * as listChats from "./listChats";
3
- export * from "./requests";
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.listChats = exports.openaiKeySet = void 0;
40
- exports.openaiKeySet = __importStar(require("./openaiKeySet"));
41
- exports.listChats = __importStar(require("./listChats"));
42
- __exportStar(require("./requests"), exports);
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as AirweaveSDK from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { Chat } from "../../../types/Chat";
8
- export declare const Response: core.serialization.Schema<serializers.chat.listChats.Response.Raw, AirweaveSDK.Chat[]>;
9
- export declare namespace Response {
10
- type Raw = Chat.Raw[];
11
- }
@@ -1,42 +0,0 @@
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 () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- const Chat_1 = require("../../../types/Chat");
42
- exports.Response = core.serialization.list(Chat_1.Chat);
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as core from "../../../../core";
6
- export declare const Response: core.serialization.Schema<serializers.chat.openaiKeySet.Response.Raw, boolean>;
7
- export declare namespace Response {
8
- type Raw = boolean;
9
- }
@@ -1,41 +0,0 @@
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 () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- exports.Response = core.serialization.boolean();
@@ -1,13 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../../index";
5
- import * as AirweaveSDK from "../../../../../api/index";
6
- import * as core from "../../../../../core";
7
- export declare const ChatMessageCreate: core.serialization.Schema<serializers.ChatMessageCreate.Raw, AirweaveSDK.ChatMessageCreate>;
8
- export declare namespace ChatMessageCreate {
9
- interface Raw {
10
- content: string;
11
- role?: string | null;
12
- }
13
- }
@@ -1,3 +0,0 @@
1
- export { ChatCreate } from "./ChatCreate";
2
- export { ChatUpdate } from "./ChatUpdate";
3
- export { ChatMessageCreate } from "./ChatMessageCreate";
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatMessageCreate = exports.ChatUpdate = exports.ChatCreate = void 0;
4
- var ChatCreate_1 = require("./ChatCreate");
5
- Object.defineProperty(exports, "ChatCreate", { enumerable: true, get: function () { return ChatCreate_1.ChatCreate; } });
6
- var ChatUpdate_1 = require("./ChatUpdate");
7
- Object.defineProperty(exports, "ChatUpdate", { enumerable: true, get: function () { return ChatUpdate_1.ChatUpdate; } });
8
- var ChatMessageCreate_1 = require("./ChatMessageCreate");
9
- Object.defineProperty(exports, "ChatMessageCreate", { enumerable: true, get: function () { return ChatMessageCreate_1.ChatMessageCreate; } });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as core from "../../../../core";
6
- export declare const Response: core.serialization.Schema<serializers.health.healthCheck.Response.Raw, Record<string, string>>;
7
- export declare namespace Response {
8
- type Raw = Record<string, string>;
9
- }
@@ -1,41 +0,0 @@
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 () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- exports.Response = core.serialization.record(core.serialization.string(), core.serialization.string());
@@ -1 +0,0 @@
1
- export * as healthCheck from "./healthCheck";
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.healthCheck = void 0;
37
- exports.healthCheck = __importStar(require("./healthCheck"));
@@ -1 +0,0 @@
1
- export * from "./client";