@airweave/sdk 0.1.7 → 0.1.9

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 (36) hide show
  1. package/api/resources/apiKeys/client/Client.js +4 -4
  2. package/api/resources/chat/client/Client.d.ts +14 -0
  3. package/api/resources/chat/client/Client.js +73 -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/health/client/Client.js +1 -1
  8. package/api/resources/sources/client/Client.js +2 -2
  9. package/api/resources/sync/client/Client.js +8 -8
  10. package/api/resources/users/client/Client.js +1 -1
  11. package/api/resources/whiteLabels/client/Client.js +8 -8
  12. package/dist/api/resources/apiKeys/client/Client.js +4 -4
  13. package/dist/api/resources/chat/client/Client.d.ts +14 -0
  14. package/dist/api/resources/chat/client/Client.js +73 -7
  15. package/dist/api/resources/connections/client/Client.js +12 -12
  16. package/dist/api/resources/destinations/client/Client.js +2 -2
  17. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  18. package/dist/api/resources/health/client/Client.js +1 -1
  19. package/dist/api/resources/sources/client/Client.js +2 -2
  20. package/dist/api/resources/sync/client/Client.js +8 -8
  21. package/dist/api/resources/users/client/Client.js +1 -1
  22. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  23. package/dist/serialization/resources/chat/client/index.d.ts +1 -0
  24. package/dist/serialization/resources/chat/client/index.js +2 -1
  25. package/dist/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
  26. package/dist/serialization/resources/chat/client/openaiKeySet.js +41 -0
  27. package/dist/version.d.ts +1 -1
  28. package/dist/version.js +1 -1
  29. package/package.json +1 -1
  30. package/reference.md +58 -0
  31. package/serialization/resources/chat/client/index.d.ts +1 -0
  32. package/serialization/resources/chat/client/index.js +2 -1
  33. package/serialization/resources/chat/client/openaiKeySet.d.ts +9 -0
  34. package/serialization/resources/chat/client/openaiKeySet.js +41 -0
  35. package/version.d.ts +1 -1
  36. package/version.js +1 -1
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,41 @@
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();
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.7";
1
+ export declare const SDK_VERSION = "0.1.9";
package/dist/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.7";
4
+ exports.SDK_VERSION = "0.1.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airweave-ai/typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2714,6 +2714,64 @@ await client.whiteLabels.listWhiteLabelSyncs("white_label_id");
2714
2714
 
2715
2715
  ## Chat
2716
2716
 
2717
+ <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">openaiKeySet</a>() -> boolean</code></summary>
2718
+ <dl>
2719
+ <dd>
2720
+
2721
+ #### 📝 Description
2722
+
2723
+ <dl>
2724
+ <dd>
2725
+
2726
+ <dl>
2727
+ <dd>
2728
+
2729
+ Check if the OpenAI API key is set for the current user.
2730
+
2731
+ Returns:
2732
+ bool: True if the OpenAI API key is set, False otherwise.
2733
+
2734
+ </dd>
2735
+ </dl>
2736
+ </dd>
2737
+ </dl>
2738
+
2739
+ #### 🔌 Usage
2740
+
2741
+ <dl>
2742
+ <dd>
2743
+
2744
+ <dl>
2745
+ <dd>
2746
+
2747
+ ```typescript
2748
+ await client.chat.openaiKeySet();
2749
+ ```
2750
+
2751
+ </dd>
2752
+ </dl>
2753
+ </dd>
2754
+ </dl>
2755
+
2756
+ #### ⚙️ Parameters
2757
+
2758
+ <dl>
2759
+ <dd>
2760
+
2761
+ <dl>
2762
+ <dd>
2763
+
2764
+ **requestOptions:** `Chat.RequestOptions`
2765
+
2766
+ </dd>
2767
+ </dl>
2768
+ </dd>
2769
+ </dl>
2770
+
2771
+ </dd>
2772
+ </dl>
2773
+ </details>
2774
+
2717
2775
  <details><summary><code>client.chat.<a href="/src/api/resources/chat/client/Client.ts">listChats</a>({ ...params }) -> AirweaveSDK.Chat[]</code></summary>
2718
2776
  <dl>
2719
2777
  <dd>
@@ -1,2 +1,3 @@
1
+ export * as openaiKeySet from "./openaiKeySet";
1
2
  export * as listChats from "./listChats";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ 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.listChats = void 0;
39
+ exports.listChats = exports.openaiKeySet = void 0;
40
+ exports.openaiKeySet = __importStar(require("./openaiKeySet"));
40
41
  exports.listChats = __importStar(require("./listChats"));
41
42
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,41 @@
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();
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.7";
1
+ export declare const SDK_VERSION = "0.1.9";
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.7";
4
+ exports.SDK_VERSION = "0.1.9";