@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.
- package/Client.d.ts +0 -9
- package/Client.js +14 -29
- package/README.md +11 -7
- package/api/resources/connections/client/Client.js +12 -12
- package/api/resources/destinations/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/index.d.ts +0 -5
- package/api/resources/index.js +1 -6
- package/api/resources/sources/client/Client.js +2 -2
- package/api/resources/sync/client/Client.js +8 -8
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.js +8 -8
- package/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +1 -2
- package/{dist/api/resources/chat/client/requests → api/types}/ChatCreate.d.ts +1 -5
- package/{dist/api/resources/chat/client/requests → api/types}/ChatMessageCreate.d.ts +1 -4
- package/api/{resources/chat/client/requests → types}/ChatUpdate.d.ts +1 -2
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +0 -9
- package/dist/Client.js +14 -29
- package/dist/api/resources/connections/client/Client.js +12 -12
- package/dist/api/resources/destinations/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +0 -5
- package/dist/api/resources/index.js +1 -6
- package/dist/api/resources/sources/client/Client.js +2 -2
- package/dist/api/resources/sync/client/Client.js +8 -8
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.js +8 -8
- package/dist/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.d.ts +1 -2
- package/{api/resources/chat/client/requests → dist/api/types}/ChatCreate.d.ts +1 -5
- package/{api/resources/chat/client/requests → dist/api/types}/ChatMessageCreate.d.ts +1 -4
- package/dist/api/{resources/chat/client/requests → types}/ChatUpdate.d.ts +1 -2
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/index.d.ts +0 -5
- package/dist/serialization/resources/index.js +1 -6
- package/dist/serialization/types/ApiKeyCreate.d.ts +12 -0
- package/{serialization/resources/apiKeys/client/requests → dist/serialization/types}/ApiKeyCreate.js +1 -1
- package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatCreate.d.ts +4 -4
- package/dist/serialization/{resources/chat/client/requests → types}/ChatCreate.js +1 -1
- package/dist/serialization/types/ChatMessageCreate.d.ts +13 -0
- package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatMessageCreate.js +1 -1
- package/dist/serialization/{resources/chat/client/requests → types}/ChatUpdate.d.ts +4 -4
- package/{serialization/resources/chat/client/requests → dist/serialization/types}/ChatUpdate.js +1 -1
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +310 -1200
- package/serialization/resources/index.d.ts +0 -5
- package/serialization/resources/index.js +1 -6
- package/serialization/types/ApiKeyCreate.d.ts +12 -0
- package/{dist/serialization/resources/apiKeys/client/requests → serialization/types}/ApiKeyCreate.js +1 -1
- package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatCreate.d.ts +4 -4
- package/serialization/{resources/chat/client/requests → types}/ChatCreate.js +1 -1
- package/serialization/types/ChatMessageCreate.d.ts +13 -0
- package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatMessageCreate.js +1 -1
- package/serialization/{resources/chat/client/requests → types}/ChatUpdate.d.ts +4 -4
- package/{dist/serialization/resources/chat/client/requests → serialization/types}/ChatUpdate.js +1 -1
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/apiKeys/client/Client.d.ts +0 -131
- package/api/resources/apiKeys/client/Client.js +0 -391
- package/api/resources/apiKeys/client/index.d.ts +0 -1
- package/api/resources/apiKeys/client/index.js +0 -17
- package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
- package/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +0 -5
- package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +0 -11
- package/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +0 -5
- package/api/resources/apiKeys/client/requests/index.d.ts +0 -3
- package/api/resources/apiKeys/client/requests/index.js +0 -2
- package/api/resources/apiKeys/index.d.ts +0 -1
- package/api/resources/apiKeys/index.js +0 -17
- package/api/resources/chat/client/Client.d.ts +0 -134
- package/api/resources/chat/client/Client.js +0 -594
- package/api/resources/chat/client/index.d.ts +0 -1
- package/api/resources/chat/client/index.js +0 -17
- package/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +0 -11
- package/api/resources/chat/client/requests/ListChatsChatGetRequest.js +0 -5
- package/api/resources/chat/client/requests/index.d.ts +0 -4
- package/api/resources/chat/client/requests/index.js +0 -2
- package/api/resources/chat/index.d.ts +0 -1
- package/api/resources/chat/index.js +0 -17
- package/api/resources/health/client/Client.d.ts +0 -40
- package/api/resources/health/client/Client.js +0 -117
- package/api/resources/health/client/index.d.ts +0 -1
- package/api/resources/health/client/index.js +0 -2
- package/api/resources/health/index.d.ts +0 -1
- package/api/resources/health/index.js +0 -17
- package/dist/api/resources/apiKeys/client/Client.d.ts +0 -131
- package/dist/api/resources/apiKeys/client/Client.js +0 -391
- package/dist/api/resources/apiKeys/client/index.d.ts +0 -1
- package/dist/api/resources/apiKeys/client/index.js +0 -17
- package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.d.ts +0 -12
- package/dist/api/resources/apiKeys/client/requests/DeleteApiKeyApiKeysDeleteRequest.js +0 -5
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.d.ts +0 -11
- package/dist/api/resources/apiKeys/client/requests/ReadApiKeysApiKeysGetRequest.js +0 -5
- package/dist/api/resources/apiKeys/client/requests/index.d.ts +0 -3
- package/dist/api/resources/apiKeys/client/requests/index.js +0 -2
- package/dist/api/resources/apiKeys/index.d.ts +0 -1
- package/dist/api/resources/apiKeys/index.js +0 -17
- package/dist/api/resources/chat/client/Client.d.ts +0 -134
- package/dist/api/resources/chat/client/Client.js +0 -594
- package/dist/api/resources/chat/client/index.d.ts +0 -1
- package/dist/api/resources/chat/client/index.js +0 -17
- package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.d.ts +0 -11
- package/dist/api/resources/chat/client/requests/ListChatsChatGetRequest.js +0 -5
- package/dist/api/resources/chat/client/requests/index.d.ts +0 -4
- package/dist/api/resources/chat/client/requests/index.js +0 -2
- package/dist/api/resources/chat/index.d.ts +0 -1
- package/dist/api/resources/chat/index.js +0 -17
- package/dist/api/resources/health/client/Client.d.ts +0 -40
- package/dist/api/resources/health/client/Client.js +0 -117
- package/dist/api/resources/health/client/index.d.ts +0 -1
- package/dist/api/resources/health/client/index.js +0 -2
- package/dist/api/resources/health/index.d.ts +0 -1
- package/dist/api/resources/health/index.js +0 -17
- package/dist/serialization/resources/apiKeys/client/index.d.ts +0 -2
- package/dist/serialization/resources/apiKeys/client/index.js +0 -41
- package/dist/serialization/resources/apiKeys/client/readApiKeys.d.ts +0 -11
- package/dist/serialization/resources/apiKeys/client/readApiKeys.js +0 -42
- package/dist/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +0 -12
- package/dist/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/apiKeys/client/requests/index.js +0 -5
- package/dist/serialization/resources/apiKeys/index.d.ts +0 -1
- package/dist/serialization/resources/apiKeys/index.js +0 -17
- package/dist/serialization/resources/chat/client/index.d.ts +0 -3
- package/dist/serialization/resources/chat/client/index.js +0 -42
- package/dist/serialization/resources/chat/client/listChats.d.ts +0 -11
- package/dist/serialization/resources/chat/client/listChats.js +0 -42
- package/dist/serialization/resources/chat/client/openaiKeySet.d.ts +0 -9
- package/dist/serialization/resources/chat/client/openaiKeySet.js +0 -41
- package/dist/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +0 -13
- package/dist/serialization/resources/chat/client/requests/index.d.ts +0 -3
- package/dist/serialization/resources/chat/client/requests/index.js +0 -9
- package/dist/serialization/resources/chat/index.d.ts +0 -1
- package/dist/serialization/resources/chat/index.js +0 -17
- package/dist/serialization/resources/health/client/healthCheck.d.ts +0 -9
- package/dist/serialization/resources/health/client/healthCheck.js +0 -41
- package/dist/serialization/resources/health/client/index.d.ts +0 -1
- package/dist/serialization/resources/health/client/index.js +0 -37
- package/dist/serialization/resources/health/index.d.ts +0 -1
- package/dist/serialization/resources/health/index.js +0 -17
- package/serialization/resources/apiKeys/client/index.d.ts +0 -2
- package/serialization/resources/apiKeys/client/index.js +0 -41
- package/serialization/resources/apiKeys/client/readApiKeys.d.ts +0 -11
- package/serialization/resources/apiKeys/client/readApiKeys.js +0 -42
- package/serialization/resources/apiKeys/client/requests/ApiKeyCreate.d.ts +0 -12
- package/serialization/resources/apiKeys/client/requests/index.d.ts +0 -1
- package/serialization/resources/apiKeys/client/requests/index.js +0 -5
- package/serialization/resources/apiKeys/index.d.ts +0 -1
- package/serialization/resources/apiKeys/index.js +0 -17
- package/serialization/resources/chat/client/index.d.ts +0 -3
- package/serialization/resources/chat/client/index.js +0 -42
- package/serialization/resources/chat/client/listChats.d.ts +0 -11
- package/serialization/resources/chat/client/listChats.js +0 -42
- package/serialization/resources/chat/client/openaiKeySet.d.ts +0 -9
- package/serialization/resources/chat/client/openaiKeySet.js +0 -41
- package/serialization/resources/chat/client/requests/ChatMessageCreate.d.ts +0 -13
- package/serialization/resources/chat/client/requests/index.d.ts +0 -3
- package/serialization/resources/chat/client/requests/index.js +0 -9
- package/serialization/resources/chat/index.d.ts +0 -1
- package/serialization/resources/chat/index.js +0 -17
- package/serialization/resources/health/client/healthCheck.d.ts +0 -9
- package/serialization/resources/health/client/healthCheck.js +0 -41
- package/serialization/resources/health/client/index.d.ts +0 -1
- package/serialization/resources/health/client/index.js +0 -37
- package/serialization/resources/health/index.d.ts +0 -1
- package/serialization/resources/health/index.js +0 -17
- /package/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.js +0 -0
- /package/api/{resources/chat/client/requests → types}/ChatCreate.js +0 -0
- /package/api/{resources/chat/client/requests → types}/ChatMessageCreate.js +0 -0
- /package/api/{resources/chat/client/requests → types}/ChatUpdate.js +0 -0
- /package/dist/api/{resources/apiKeys/client/requests → types}/ApiKeyCreate.js +0 -0
- /package/dist/api/{resources/chat/client/requests → types}/ChatCreate.js +0 -0
- /package/dist/api/{resources/chat/client/requests → types}/ChatMessageCreate.js +0 -0
- /package/dist/api/{resources/chat/client/requests → types}/ChatUpdate.js +0 -0
package/Client.d.ts
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
-
import { Health } from "./api/resources/health/client/Client";
|
|
7
|
-
import { ApiKeys } from "./api/resources/apiKeys/client/Client";
|
|
8
6
|
import { Users } from "./api/resources/users/client/Client";
|
|
9
7
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
10
8
|
import { Destinations } from "./api/resources/destinations/client/Client";
|
|
@@ -12,7 +10,6 @@ import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
|
|
|
12
10
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
13
11
|
import { Sync } from "./api/resources/sync/client/Client";
|
|
14
12
|
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
15
|
-
import { Chat } from "./api/resources/chat/client/Client";
|
|
16
13
|
export declare namespace AirweaveSDKClient {
|
|
17
14
|
interface Options {
|
|
18
15
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
@@ -34,8 +31,6 @@ export declare namespace AirweaveSDKClient {
|
|
|
34
31
|
}
|
|
35
32
|
export declare class AirweaveSDKClient {
|
|
36
33
|
protected readonly _options: AirweaveSDKClient.Options;
|
|
37
|
-
protected _health: Health | undefined;
|
|
38
|
-
protected _apiKeys: ApiKeys | undefined;
|
|
39
34
|
protected _users: Users | undefined;
|
|
40
35
|
protected _sources: Sources | undefined;
|
|
41
36
|
protected _destinations: Destinations | undefined;
|
|
@@ -43,10 +38,7 @@ export declare class AirweaveSDKClient {
|
|
|
43
38
|
protected _connections: Connections | undefined;
|
|
44
39
|
protected _sync: Sync | undefined;
|
|
45
40
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
46
|
-
protected _chat: Chat | undefined;
|
|
47
41
|
constructor(_options?: AirweaveSDKClient.Options);
|
|
48
|
-
get health(): Health;
|
|
49
|
-
get apiKeys(): ApiKeys;
|
|
50
42
|
get users(): Users;
|
|
51
43
|
get sources(): Sources;
|
|
52
44
|
get destinations(): Destinations;
|
|
@@ -54,5 +46,4 @@ export declare class AirweaveSDKClient {
|
|
|
54
46
|
get connections(): Connections;
|
|
55
47
|
get sync(): Sync;
|
|
56
48
|
get whiteLabels(): WhiteLabels;
|
|
57
|
-
get chat(): Chat;
|
|
58
49
|
}
|
package/Client.js
CHANGED
|
@@ -4,59 +4,44 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AirweaveSDKClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/sync/client/Client");
|
|
15
|
-
const Client_9 = require("./api/resources/whiteLabels/client/Client");
|
|
16
|
-
const Client_10 = require("./api/resources/chat/client/Client");
|
|
7
|
+
const Client_1 = require("./api/resources/users/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/sources/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/destinations/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/embeddingModels/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/connections/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/sync/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/whiteLabels/client/Client");
|
|
17
14
|
class AirweaveSDKClient {
|
|
18
15
|
constructor(_options = {}) {
|
|
19
16
|
this._options = _options;
|
|
20
17
|
}
|
|
21
|
-
get health() {
|
|
22
|
-
var _a;
|
|
23
|
-
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_1.Health(this._options)));
|
|
24
|
-
}
|
|
25
|
-
get apiKeys() {
|
|
26
|
-
var _a;
|
|
27
|
-
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_2.ApiKeys(this._options)));
|
|
28
|
-
}
|
|
29
18
|
get users() {
|
|
30
19
|
var _a;
|
|
31
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
20
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_1.Users(this._options)));
|
|
32
21
|
}
|
|
33
22
|
get sources() {
|
|
34
23
|
var _a;
|
|
35
|
-
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new
|
|
24
|
+
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new Client_2.Sources(this._options)));
|
|
36
25
|
}
|
|
37
26
|
get destinations() {
|
|
38
27
|
var _a;
|
|
39
|
-
return ((_a = this._destinations) !== null && _a !== void 0 ? _a : (this._destinations = new
|
|
28
|
+
return ((_a = this._destinations) !== null && _a !== void 0 ? _a : (this._destinations = new Client_3.Destinations(this._options)));
|
|
40
29
|
}
|
|
41
30
|
get embeddingModels() {
|
|
42
31
|
var _a;
|
|
43
|
-
return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new
|
|
32
|
+
return ((_a = this._embeddingModels) !== null && _a !== void 0 ? _a : (this._embeddingModels = new Client_4.EmbeddingModels(this._options)));
|
|
44
33
|
}
|
|
45
34
|
get connections() {
|
|
46
35
|
var _a;
|
|
47
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
36
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_5.Connections(this._options)));
|
|
48
37
|
}
|
|
49
38
|
get sync() {
|
|
50
39
|
var _a;
|
|
51
|
-
return ((_a = this._sync) !== null && _a !== void 0 ? _a : (this._sync = new
|
|
40
|
+
return ((_a = this._sync) !== null && _a !== void 0 ? _a : (this._sync = new Client_6.Sync(this._options)));
|
|
52
41
|
}
|
|
53
42
|
get whiteLabels() {
|
|
54
43
|
var _a;
|
|
55
|
-
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new
|
|
56
|
-
}
|
|
57
|
-
get chat() {
|
|
58
|
-
var _a;
|
|
59
|
-
return ((_a = this._chat) !== null && _a !== void 0 ? _a : (this._chat = new Client_10.Chat(this._options)));
|
|
44
|
+
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_7.WhiteLabels(this._options)));
|
|
60
45
|
}
|
|
61
46
|
}
|
|
62
47
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
package/README.md
CHANGED
|
@@ -23,7 +23,11 @@ Instantiate and use the client with the following:
|
|
|
23
23
|
import { AirweaveSDKClient } from "@airweave/sdk";
|
|
24
24
|
|
|
25
25
|
const client = new AirweaveSDKClient({ apiKey: "YOUR_API_KEY" });
|
|
26
|
-
await client.
|
|
26
|
+
await client.connections.connectIntegration("source", "short_name", {
|
|
27
|
+
configFields: {
|
|
28
|
+
key: "value",
|
|
29
|
+
},
|
|
30
|
+
});
|
|
27
31
|
```
|
|
28
32
|
|
|
29
33
|
## Request And Response Types
|
|
@@ -34,7 +38,7 @@ following namespace:
|
|
|
34
38
|
```typescript
|
|
35
39
|
import { AirweaveSDK } from "@airweave/sdk";
|
|
36
40
|
|
|
37
|
-
const request: AirweaveSDK.
|
|
41
|
+
const request: AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost = {
|
|
38
42
|
...
|
|
39
43
|
};
|
|
40
44
|
```
|
|
@@ -48,7 +52,7 @@ will be thrown.
|
|
|
48
52
|
import { AirweaveSDKError } from "@airweave/sdk";
|
|
49
53
|
|
|
50
54
|
try {
|
|
51
|
-
await client.
|
|
55
|
+
await client.connections.connectIntegration(...);
|
|
52
56
|
} catch (err) {
|
|
53
57
|
if (err instanceof AirweaveSDKError) {
|
|
54
58
|
console.log(err.statusCode);
|
|
@@ -65,7 +69,7 @@ try {
|
|
|
65
69
|
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
66
70
|
|
|
67
71
|
```typescript
|
|
68
|
-
const response = await client.
|
|
72
|
+
const response = await client.connections.connectIntegration(..., {
|
|
69
73
|
headers: {
|
|
70
74
|
'X-Custom-Header': 'custom value'
|
|
71
75
|
}
|
|
@@ -87,7 +91,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
|
|
|
87
91
|
Use the `maxRetries` request option to configure this behavior.
|
|
88
92
|
|
|
89
93
|
```typescript
|
|
90
|
-
const response = await client.
|
|
94
|
+
const response = await client.connections.connectIntegration(..., {
|
|
91
95
|
maxRetries: 0 // override maxRetries at the request level
|
|
92
96
|
});
|
|
93
97
|
```
|
|
@@ -97,7 +101,7 @@ const response = await client.apiKeys.createApiKey(..., {
|
|
|
97
101
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
98
102
|
|
|
99
103
|
```typescript
|
|
100
|
-
const response = await client.
|
|
104
|
+
const response = await client.connections.connectIntegration(..., {
|
|
101
105
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
102
106
|
});
|
|
103
107
|
```
|
|
@@ -108,7 +112,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
108
112
|
|
|
109
113
|
```typescript
|
|
110
114
|
const controller = new AbortController();
|
|
111
|
-
const response = await client.
|
|
115
|
+
const response = await client.connections.connectIntegration(..., {
|
|
112
116
|
abortSignal: controller.signal
|
|
113
117
|
});
|
|
114
118
|
controller.abort(); // aborts the request
|
|
@@ -78,7 +78,7 @@ class Connections {
|
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
80
80
|
? yield core.Supplier.get(this._options.apiKey)
|
|
81
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
81
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -142,7 +142,7 @@ class Connections {
|
|
|
142
142
|
method: "GET",
|
|
143
143
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
144
144
|
? yield core.Supplier.get(this._options.apiKey)
|
|
145
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
145
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -215,7 +215,7 @@ class Connections {
|
|
|
215
215
|
method: "GET",
|
|
216
216
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
217
217
|
? yield core.Supplier.get(this._options.apiKey)
|
|
218
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
218
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
219
219
|
contentType: "application/json",
|
|
220
220
|
requestType: "json",
|
|
221
221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -294,7 +294,7 @@ class Connections {
|
|
|
294
294
|
method: "POST",
|
|
295
295
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
296
296
|
? yield core.Supplier.get(this._options.apiKey)
|
|
297
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
297
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
298
298
|
contentType: "application/json",
|
|
299
299
|
requestType: "json",
|
|
300
300
|
body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -368,7 +368,7 @@ class Connections {
|
|
|
368
368
|
method: "GET",
|
|
369
369
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
370
370
|
? yield core.Supplier.get(this._options.apiKey)
|
|
371
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
371
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
372
372
|
contentType: "application/json",
|
|
373
373
|
requestType: "json",
|
|
374
374
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -444,7 +444,7 @@ class Connections {
|
|
|
444
444
|
method: "DELETE",
|
|
445
445
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
446
446
|
? yield core.Supplier.get(this._options.apiKey)
|
|
447
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
447
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
448
448
|
contentType: "application/json",
|
|
449
449
|
requestType: "json",
|
|
450
450
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -516,7 +516,7 @@ class Connections {
|
|
|
516
516
|
method: "PUT",
|
|
517
517
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
518
518
|
? yield core.Supplier.get(this._options.apiKey)
|
|
519
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
519
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
520
520
|
contentType: "application/json",
|
|
521
521
|
requestType: "json",
|
|
522
522
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -589,7 +589,7 @@ class Connections {
|
|
|
589
589
|
method: "PUT",
|
|
590
590
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
591
591
|
? yield core.Supplier.get(this._options.apiKey)
|
|
592
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
592
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
593
593
|
contentType: "application/json",
|
|
594
594
|
requestType: "json",
|
|
595
595
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -659,7 +659,7 @@ class Connections {
|
|
|
659
659
|
method: "GET",
|
|
660
660
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
661
661
|
? yield core.Supplier.get(this._options.apiKey)
|
|
662
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
662
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
663
663
|
contentType: "application/json",
|
|
664
664
|
queryParameters: _queryParams,
|
|
665
665
|
requestType: "json",
|
|
@@ -733,7 +733,7 @@ class Connections {
|
|
|
733
733
|
method: "POST",
|
|
734
734
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
735
735
|
? yield core.Supplier.get(this._options.apiKey)
|
|
736
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
736
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
737
737
|
contentType: "application/json",
|
|
738
738
|
requestType: "json",
|
|
739
739
|
body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(request, {
|
|
@@ -802,7 +802,7 @@ class Connections {
|
|
|
802
802
|
method: "POST",
|
|
803
803
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
804
804
|
? yield core.Supplier.get(this._options.apiKey)
|
|
805
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
805
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
806
806
|
contentType: "application/json",
|
|
807
807
|
requestType: "json",
|
|
808
808
|
body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
|
|
@@ -870,7 +870,7 @@ class Connections {
|
|
|
870
870
|
method: "GET",
|
|
871
871
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
872
872
|
? yield core.Supplier.get(this._options.apiKey)
|
|
873
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
873
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
874
874
|
contentType: "application/json",
|
|
875
875
|
requestType: "json",
|
|
876
876
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class Destinations {
|
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
79
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.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -142,7 +142,7 @@ class Destinations {
|
|
|
142
142
|
method: "GET",
|
|
143
143
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
144
144
|
? yield core.Supplier.get(this._options.apiKey)
|
|
145
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
145
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -88,7 +88,7 @@ class EmbeddingModels {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -161,7 +161,7 @@ class EmbeddingModels {
|
|
|
161
161
|
method: "GET",
|
|
162
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
163
163
|
? yield core.Supplier.get(this._options.apiKey)
|
|
164
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
165
165
|
contentType: "application/json",
|
|
166
166
|
requestType: "json",
|
|
167
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
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 users from "./users";
|
|
6
4
|
export * as sources from "./sources";
|
|
7
5
|
export * as destinations from "./destinations";
|
|
8
6
|
export * as embeddingModels from "./embeddingModels";
|
|
9
7
|
export * as connections from "./connections";
|
|
10
8
|
export * as whiteLabels from "./whiteLabels";
|
|
11
|
-
export * as chat from "./chat";
|
|
12
|
-
export * from "./apiKeys/client/requests";
|
|
13
9
|
export * from "./connections/client/requests";
|
|
14
10
|
export * from "./sync/client/requests";
|
|
15
11
|
export * from "./whiteLabels/client/requests";
|
|
16
|
-
export * from "./chat/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -36,20 +36,15 @@ 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.
|
|
39
|
+
exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = 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.users = __importStar(require("./users"));
|
|
45
43
|
exports.sources = __importStar(require("./sources"));
|
|
46
44
|
exports.destinations = __importStar(require("./destinations"));
|
|
47
45
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
48
46
|
exports.connections = __importStar(require("./connections"));
|
|
49
47
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
50
|
-
exports.chat = __importStar(require("./chat"));
|
|
51
|
-
__exportStar(require("./apiKeys/client/requests"), exports);
|
|
52
48
|
__exportStar(require("./connections/client/requests"), exports);
|
|
53
49
|
__exportStar(require("./sync/client/requests"), exports);
|
|
54
50
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|
|
55
|
-
__exportStar(require("./chat/client/requests"), exports);
|
|
@@ -88,7 +88,7 @@ class Sources {
|
|
|
88
88
|
method: "GET",
|
|
89
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
90
90
|
? yield core.Supplier.get(this._options.apiKey)
|
|
91
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -156,7 +156,7 @@ class Sources {
|
|
|
156
156
|
method: "GET",
|
|
157
157
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
158
158
|
? yield core.Supplier.get(this._options.apiKey)
|
|
159
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
159
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
160
160
|
contentType: "application/json",
|
|
161
161
|
requestType: "json",
|
|
162
162
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -89,7 +89,7 @@ class Sync {
|
|
|
89
89
|
method: "GET",
|
|
90
90
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
91
91
|
? yield core.Supplier.get(this._options.apiKey)
|
|
92
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
92
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -158,7 +158,7 @@ class Sync {
|
|
|
158
158
|
method: "POST",
|
|
159
159
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
160
160
|
? yield core.Supplier.get(this._options.apiKey)
|
|
161
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
161
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
162
|
contentType: "application/json",
|
|
163
163
|
requestType: "json",
|
|
164
164
|
body: serializers.SyncCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -224,7 +224,7 @@ class Sync {
|
|
|
224
224
|
method: "GET",
|
|
225
225
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
226
226
|
? yield core.Supplier.get(this._options.apiKey)
|
|
227
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
227
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
228
|
contentType: "application/json",
|
|
229
229
|
requestType: "json",
|
|
230
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -295,7 +295,7 @@ class Sync {
|
|
|
295
295
|
method: "DELETE",
|
|
296
296
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
297
297
|
? yield core.Supplier.get(this._options.apiKey)
|
|
298
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
298
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
299
299
|
contentType: "application/json",
|
|
300
300
|
queryParameters: _queryParams,
|
|
301
301
|
requestType: "json",
|
|
@@ -361,7 +361,7 @@ class Sync {
|
|
|
361
361
|
method: "POST",
|
|
362
362
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
363
363
|
? yield core.Supplier.get(this._options.apiKey)
|
|
364
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
364
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
365
365
|
contentType: "application/json",
|
|
366
366
|
requestType: "json",
|
|
367
367
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -426,7 +426,7 @@ class Sync {
|
|
|
426
426
|
method: "GET",
|
|
427
427
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
428
428
|
? yield core.Supplier.get(this._options.apiKey)
|
|
429
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
429
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
430
430
|
contentType: "application/json",
|
|
431
431
|
requestType: "json",
|
|
432
432
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -497,7 +497,7 @@ class Sync {
|
|
|
497
497
|
method: "GET",
|
|
498
498
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
499
499
|
? yield core.Supplier.get(this._options.apiKey)
|
|
500
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
500
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
501
501
|
contentType: "application/json",
|
|
502
502
|
queryParameters: _queryParams,
|
|
503
503
|
requestType: "json",
|
|
@@ -563,7 +563,7 @@ class Sync {
|
|
|
563
563
|
method: "GET",
|
|
564
564
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
565
565
|
? yield core.Supplier.get(this._options.apiKey)
|
|
566
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
566
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
567
567
|
contentType: "application/json",
|
|
568
568
|
requestType: "json",
|
|
569
569
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -85,7 +85,7 @@ class Users {
|
|
|
85
85
|
method: "GET",
|
|
86
86
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
87
87
|
? yield core.Supplier.get(this._options.apiKey)
|
|
88
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
88
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
requestType: "json",
|
|
91
91
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class WhiteLabels {
|
|
|
77
77
|
method: "GET",
|
|
78
78
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
79
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.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -148,7 +148,7 @@ class WhiteLabels {
|
|
|
148
148
|
method: "POST",
|
|
149
149
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
150
150
|
? yield core.Supplier.get(this._options.apiKey)
|
|
151
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
151
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
152
152
|
contentType: "application/json",
|
|
153
153
|
requestType: "json",
|
|
154
154
|
body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -214,7 +214,7 @@ class WhiteLabels {
|
|
|
214
214
|
method: "GET",
|
|
215
215
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
216
216
|
? yield core.Supplier.get(this._options.apiKey)
|
|
217
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
217
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
218
218
|
contentType: "application/json",
|
|
219
219
|
requestType: "json",
|
|
220
220
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -280,7 +280,7 @@ class WhiteLabels {
|
|
|
280
280
|
method: "PUT",
|
|
281
281
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
282
282
|
? yield core.Supplier.get(this._options.apiKey)
|
|
283
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
283
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
284
284
|
contentType: "application/json",
|
|
285
285
|
requestType: "json",
|
|
286
286
|
body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -346,7 +346,7 @@ class WhiteLabels {
|
|
|
346
346
|
method: "DELETE",
|
|
347
347
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
348
348
|
? yield core.Supplier.get(this._options.apiKey)
|
|
349
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -411,7 +411,7 @@ class WhiteLabels {
|
|
|
411
411
|
method: "GET",
|
|
412
412
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
413
413
|
? yield core.Supplier.get(this._options.apiKey)
|
|
414
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
414
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
415
415
|
contentType: "application/json",
|
|
416
416
|
requestType: "json",
|
|
417
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -477,7 +477,7 @@ class WhiteLabels {
|
|
|
477
477
|
method: "POST",
|
|
478
478
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
479
479
|
? yield core.Supplier.get(this._options.apiKey)
|
|
480
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
480
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
481
481
|
contentType: "application/json",
|
|
482
482
|
requestType: "json",
|
|
483
483
|
body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
|
|
@@ -545,7 +545,7 @@ class WhiteLabels {
|
|
|
545
545
|
method: "GET",
|
|
546
546
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
547
547
|
? yield core.Supplier.get(this._options.apiKey)
|
|
548
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.
|
|
548
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.13", "User-Agent": "@airweave/sdk/0.1.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
549
549
|
contentType: "application/json",
|
|
550
550
|
requestType: "json",
|
|
551
551
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|