@airweave/sdk 0.1.12 → 0.1.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 (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,15 +1,10 @@
1
1
  export * as sync from "./sync";
2
2
  export * from "./sync/types";
3
- export * as health from "./health";
4
- export * as apiKeys from "./apiKeys";
5
3
  export * as sources from "./sources";
6
4
  export * as destinations from "./destinations";
7
5
  export * as embeddingModels from "./embeddingModels";
8
6
  export * as connections from "./connections";
9
7
  export * as whiteLabels from "./whiteLabels";
10
- export * as chat from "./chat";
11
- export * from "./apiKeys/client/requests";
12
8
  export * from "./connections/client/requests";
13
9
  export * from "./sync/client/requests";
14
10
  export * from "./whiteLabels/client/requests";
15
- export * from "./chat/client/requests";
@@ -36,19 +36,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.chat = exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.apiKeys = exports.health = exports.sync = void 0;
39
+ exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.sync = void 0;
40
40
  exports.sync = __importStar(require("./sync"));
41
41
  __exportStar(require("./sync/types"), exports);
42
- exports.health = __importStar(require("./health"));
43
- exports.apiKeys = __importStar(require("./apiKeys"));
44
42
  exports.sources = __importStar(require("./sources"));
45
43
  exports.destinations = __importStar(require("./destinations"));
46
44
  exports.embeddingModels = __importStar(require("./embeddingModels"));
47
45
  exports.connections = __importStar(require("./connections"));
48
46
  exports.whiteLabels = __importStar(require("./whiteLabels"));
49
- exports.chat = __importStar(require("./chat"));
50
- __exportStar(require("./apiKeys/client/requests"), exports);
51
47
  __exportStar(require("./connections/client/requests"), exports);
52
48
  __exportStar(require("./sync/client/requests"), exports);
53
49
  __exportStar(require("./whiteLabels/client/requests"), exports);
54
- __exportStar(require("./chat/client/requests"), exports);
@@ -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 AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ApiKeyCreate: core.serialization.ObjectSchema<serializers.ApiKeyCreate.Raw, AirweaveSDK.ApiKeyCreate>;
8
+ export declare namespace ApiKeyCreate {
9
+ interface Raw {
10
+ expiration_date?: string | null;
11
+ }
12
+ }
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ApiKeyCreate = void 0;
40
- const core = __importStar(require("../../../../../core"));
40
+ const core = __importStar(require("../../core"));
41
41
  exports.ApiKeyCreate = core.serialization.object({
42
42
  expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
43
43
  });
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "../../../../index";
5
- import * as AirweaveSDK from "../../../../../api/index";
6
- import * as core from "../../../../../core";
7
- export declare const ChatCreate: core.serialization.Schema<serializers.ChatCreate.Raw, AirweaveSDK.ChatCreate>;
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ChatCreate: core.serialization.ObjectSchema<serializers.ChatCreate.Raw, AirweaveSDK.ChatCreate>;
8
8
  export declare namespace ChatCreate {
9
9
  interface Raw {
10
10
  name: string;
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChatCreate = void 0;
40
- const core = __importStar(require("../../../../../core"));
40
+ const core = __importStar(require("../../core"));
41
41
  exports.ChatCreate = core.serialization.object({
42
42
  name: core.serialization.string(),
43
43
  syncId: core.serialization.property("sync_id", core.serialization.string()),
@@ -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 AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ChatMessageCreate: core.serialization.ObjectSchema<serializers.ChatMessageCreate.Raw, AirweaveSDK.ChatMessageCreate>;
8
+ export declare namespace ChatMessageCreate {
9
+ interface Raw {
10
+ content: string;
11
+ role?: string | null;
12
+ }
13
+ }
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChatMessageCreate = void 0;
40
- const core = __importStar(require("../../../../../core"));
40
+ const core = __importStar(require("../../core"));
41
41
  exports.ChatMessageCreate = core.serialization.object({
42
42
  content: core.serialization.string(),
43
43
  role: core.serialization.string().optional(),
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "../../../../index";
5
- import * as AirweaveSDK from "../../../../../api/index";
6
- import * as core from "../../../../../core";
7
- export declare const ChatUpdate: core.serialization.Schema<serializers.ChatUpdate.Raw, AirweaveSDK.ChatUpdate>;
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ChatUpdate: core.serialization.ObjectSchema<serializers.ChatUpdate.Raw, AirweaveSDK.ChatUpdate>;
8
8
  export declare namespace ChatUpdate {
9
9
  interface Raw {
10
10
  name?: string | null;
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChatUpdate = void 0;
40
- const core = __importStar(require("../../../../../core"));
40
+ const core = __importStar(require("../../core"));
41
41
  exports.ChatUpdate = core.serialization.object({
42
42
  name: core.serialization.string().optional(),
43
43
  description: core.serialization.string().optional(),
@@ -1,8 +1,12 @@
1
1
  export * from "./ApiKey";
2
+ export * from "./ApiKeyCreate";
2
3
  export * from "./ApiKeyWithPlainKey";
3
4
  export * from "./AuthType";
4
5
  export * from "./Chat";
6
+ export * from "./ChatCreate";
5
7
  export * from "./ChatMessage";
8
+ export * from "./ChatMessageCreate";
9
+ export * from "./ChatUpdate";
6
10
  export * from "./ConfigField";
7
11
  export * from "./Connection";
8
12
  export * from "./ConnectionStatus";
@@ -15,10 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApiKey"), exports);
18
+ __exportStar(require("./ApiKeyCreate"), exports);
18
19
  __exportStar(require("./ApiKeyWithPlainKey"), exports);
19
20
  __exportStar(require("./AuthType"), exports);
20
21
  __exportStar(require("./Chat"), exports);
22
+ __exportStar(require("./ChatCreate"), exports);
21
23
  __exportStar(require("./ChatMessage"), exports);
24
+ __exportStar(require("./ChatMessageCreate"), exports);
25
+ __exportStar(require("./ChatUpdate"), exports);
22
26
  __exportStar(require("./ConfigField"), exports);
23
27
  __exportStar(require("./Connection"), exports);
24
28
  __exportStar(require("./ConnectionStatus"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.12";
1
+ export declare const SDK_VERSION = "0.1.14";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.12";
4
+ exports.SDK_VERSION = "0.1.14";
@@ -1,131 +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
- import * as AirweaveSDK from "../../../index";
7
- export declare namespace ApiKeys {
8
- interface Options {
9
- environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
- /** Override the x-api-key header */
11
- apiKey?: core.Supplier<string | undefined>;
12
- }
13
- interface RequestOptions {
14
- /** The maximum time to wait for a response in seconds. */
15
- timeoutInSeconds?: number;
16
- /** The number of times to retry the request. Defaults to 2. */
17
- maxRetries?: number;
18
- /** A hook to abort the request. */
19
- abortSignal?: AbortSignal;
20
- /** Override the x-api-key header */
21
- apiKey?: string | undefined;
22
- /** Additional headers to include in the request. */
23
- headers?: Record<string, string>;
24
- }
25
- }
26
- export declare class ApiKeys {
27
- protected readonly _options: ApiKeys.Options;
28
- constructor(_options?: ApiKeys.Options);
29
- /**
30
- * Retrieve all API keys for the current user.
31
- *
32
- * Args:
33
- * ----
34
- * db (AsyncSession): The database session.
35
- * skip (int): Number of records to skip for pagination.
36
- * limit (int): Maximum number of records to return.
37
- * user (schemas.User): The current user.
38
- *
39
- * Returns:
40
- * -------
41
- * List[schemas.APIKey]: A list of API keys.
42
- *
43
- * @param {AirweaveSDK.ReadApiKeysApiKeysGetRequest} request
44
- * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
45
- *
46
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
47
- *
48
- * @example
49
- * await client.apiKeys.readApiKeys()
50
- */
51
- readApiKeys(request?: AirweaveSDK.ReadApiKeysApiKeysGetRequest, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKey[]>;
52
- /**
53
- * Create a new API key for the current user.
54
- *
55
- * Returns a temporary plain key for the user to store securely.
56
- * This is not stored in the database.
57
- *
58
- * Args:
59
- * ----
60
- * db (AsyncSession): The database session.
61
- * api_key_in (schemas.APIKeyCreate): The API key creation data.
62
- * user (schemas.User): The current user.
63
- *
64
- * Returns:
65
- * -------
66
- * schemas.APIKeyWithPlainKey: The created API key object, including the key.
67
- *
68
- * @param {AirweaveSDK.ApiKeyCreate} request
69
- * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
70
- *
71
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
72
- *
73
- * @example
74
- * await client.apiKeys.createApiKey()
75
- */
76
- createApiKey(request?: AirweaveSDK.ApiKeyCreate, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKeyWithPlainKey>;
77
- /**
78
- * Delete an API key.
79
- *
80
- * Args:
81
- * ----
82
- * db (AsyncSession): The database session.
83
- * id (UUID): The ID of the API key.
84
- * user (schemas.User): The current user.
85
- *
86
- * Returns:
87
- * -------
88
- * schemas.APIKey: The revoked API key object.
89
- *
90
- * Raises:
91
- * ------
92
- * HTTPException: If the API key is not found.
93
- *
94
- * @param {AirweaveSDK.DeleteApiKeyApiKeysDeleteRequest} request
95
- * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
96
- *
97
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
98
- *
99
- * @example
100
- * await client.apiKeys.deleteApiKey({
101
- * id: "id"
102
- * })
103
- */
104
- deleteApiKey(request: AirweaveSDK.DeleteApiKeyApiKeysDeleteRequest, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKey>;
105
- /**
106
- * Retrieve an API key by ID.
107
- *
108
- * Args:
109
- * ----
110
- * db (AsyncSession): The database session.
111
- * id (UUID): The ID of the API key.
112
- * user (schemas.User): The current user.
113
- *
114
- * Returns:
115
- * -------
116
- * schemas.APIKey: The API key object.
117
- *
118
- * Raises:
119
- * ------
120
- * HTTPException: If the API key is not found.
121
- *
122
- * @param {string} id
123
- * @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
124
- *
125
- * @throws {@link AirweaveSDK.UnprocessableEntityError}
126
- *
127
- * @example
128
- * await client.apiKeys.readApiKey("id")
129
- */
130
- readApiKey(id: string, requestOptions?: ApiKeys.RequestOptions): Promise<AirweaveSDK.ApiKey>;
131
- }