@airweave/sdk 0.1.19 → 0.1.20
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 -3
- package/Client.js +0 -5
- package/api/resources/connections/client/Client.d.ts +86 -5
- package/api/resources/connections/client/Client.js +98 -17
- package/api/resources/destinations/client/Client.d.ts +19 -0
- package/api/resources/destinations/client/Client.js +21 -2
- package/api/resources/embeddingModels/client/Client.js +2 -2
- package/api/resources/index.d.ts +0 -2
- package/api/resources/index.js +1 -3
- package/api/resources/sources/client/Client.d.ts +6 -1
- package/api/resources/sources/client/Client.js +8 -3
- package/api/resources/sync/client/Client.d.ts +85 -0
- package/api/resources/sync/client/Client.js +93 -8
- package/api/resources/users/client/Client.js +1 -1
- package/api/resources/whiteLabels/client/Client.d.ts +81 -0
- package/api/resources/whiteLabels/client/Client.js +89 -8
- package/api/types/index.d.ts +0 -2
- package/api/types/index.js +0 -2
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +0 -5
- package/dist/api/resources/connections/client/Client.d.ts +86 -5
- package/dist/api/resources/connections/client/Client.js +98 -17
- package/dist/api/resources/destinations/client/Client.d.ts +19 -0
- package/dist/api/resources/destinations/client/Client.js +21 -2
- package/dist/api/resources/embeddingModels/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +0 -2
- package/dist/api/resources/index.js +1 -3
- package/dist/api/resources/sources/client/Client.d.ts +6 -1
- package/dist/api/resources/sources/client/Client.js +8 -3
- package/dist/api/resources/sync/client/Client.d.ts +85 -0
- package/dist/api/resources/sync/client/Client.js +93 -8
- package/dist/api/resources/users/client/Client.js +1 -1
- package/dist/api/resources/whiteLabels/client/Client.d.ts +81 -0
- package/dist/api/resources/whiteLabels/client/Client.js +89 -8
- package/dist/api/types/index.d.ts +0 -2
- package/dist/api/types/index.js +0 -2
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +1 -2
- package/dist/serialization/types/index.d.ts +0 -2
- package/dist/serialization/types/index.js +0 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +304 -176
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +1 -2
- package/serialization/types/index.d.ts +0 -2
- package/serialization/types/index.js +0 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/search/client/Client.d.ts +0 -69
- package/api/resources/search/client/Client.js +0 -245
- package/api/resources/search/client/index.d.ts +0 -1
- package/api/resources/search/client/index.js +0 -17
- package/api/resources/search/client/requests/SearchSearchObjectsGetRequest.d.ts +0 -23
- package/api/resources/search/client/requests/SearchSearchObjectsGetRequest.js +0 -5
- package/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.d.ts +0 -31
- package/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.js +0 -5
- package/api/resources/search/client/requests/index.d.ts +0 -2
- package/api/resources/search/client/requests/index.js +0 -2
- package/api/resources/search/index.d.ts +0 -1
- package/api/resources/search/index.js +0 -17
- package/api/types/SearchResult.d.ts +0 -11
- package/api/types/SearchResult.js +0 -5
- package/api/types/SearchSummary.d.ts +0 -11
- package/api/types/SearchSummary.js +0 -5
- package/dist/api/resources/search/client/Client.d.ts +0 -69
- package/dist/api/resources/search/client/Client.js +0 -245
- package/dist/api/resources/search/client/index.d.ts +0 -1
- package/dist/api/resources/search/client/index.js +0 -17
- package/dist/api/resources/search/client/requests/SearchSearchObjectsGetRequest.d.ts +0 -23
- package/dist/api/resources/search/client/requests/SearchSearchObjectsGetRequest.js +0 -5
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.d.ts +0 -31
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.js +0 -5
- package/dist/api/resources/search/client/requests/index.d.ts +0 -2
- package/dist/api/resources/search/client/requests/index.js +0 -2
- package/dist/api/resources/search/index.d.ts +0 -1
- package/dist/api/resources/search/index.js +0 -17
- package/dist/api/types/SearchResult.d.ts +0 -11
- package/dist/api/types/SearchResult.js +0 -5
- package/dist/api/types/SearchSummary.d.ts +0 -11
- package/dist/api/types/SearchSummary.js +0 -5
- package/dist/serialization/resources/search/client/index.d.ts +0 -1
- package/dist/serialization/resources/search/client/index.js +0 -37
- package/dist/serialization/resources/search/client/search.d.ts +0 -11
- package/dist/serialization/resources/search/client/search.js +0 -42
- package/dist/serialization/resources/search/index.d.ts +0 -1
- package/dist/serialization/resources/search/index.js +0 -17
- package/dist/serialization/types/SearchResult.d.ts +0 -14
- package/dist/serialization/types/SearchResult.js +0 -45
- package/dist/serialization/types/SearchSummary.d.ts +0 -14
- package/dist/serialization/types/SearchSummary.js +0 -45
- package/serialization/resources/search/client/index.d.ts +0 -1
- package/serialization/resources/search/client/index.js +0 -37
- package/serialization/resources/search/client/search.d.ts +0 -11
- package/serialization/resources/search/client/search.js +0 -42
- package/serialization/resources/search/index.d.ts +0 -1
- package/serialization/resources/search/index.js +0 -17
- package/serialization/types/SearchResult.d.ts +0 -14
- package/serialization/types/SearchResult.js +0 -45
- package/serialization/types/SearchSummary.d.ts +0 -14
- package/serialization/types/SearchSummary.js +0 -45
package/Client.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { EmbeddingModels } from "./api/resources/embeddingModels/client/Client";
|
|
|
10
10
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
11
11
|
import { Sync } from "./api/resources/sync/client/Client";
|
|
12
12
|
import { WhiteLabels } from "./api/resources/whiteLabels/client/Client";
|
|
13
|
-
import { Search } from "./api/resources/search/client/Client";
|
|
14
13
|
export declare namespace AirweaveSDKClient {
|
|
15
14
|
interface Options {
|
|
16
15
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
@@ -39,7 +38,6 @@ export declare class AirweaveSDKClient {
|
|
|
39
38
|
protected _connections: Connections | undefined;
|
|
40
39
|
protected _sync: Sync | undefined;
|
|
41
40
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
42
|
-
protected _search: Search | undefined;
|
|
43
41
|
constructor(_options?: AirweaveSDKClient.Options);
|
|
44
42
|
get users(): Users;
|
|
45
43
|
get sources(): Sources;
|
|
@@ -48,5 +46,4 @@ export declare class AirweaveSDKClient {
|
|
|
48
46
|
get connections(): Connections;
|
|
49
47
|
get sync(): Sync;
|
|
50
48
|
get whiteLabels(): WhiteLabels;
|
|
51
|
-
get search(): Search;
|
|
52
49
|
}
|
package/Client.js
CHANGED
|
@@ -11,7 +11,6 @@ const Client_4 = require("./api/resources/embeddingModels/client/Client");
|
|
|
11
11
|
const Client_5 = require("./api/resources/connections/client/Client");
|
|
12
12
|
const Client_6 = require("./api/resources/sync/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/whiteLabels/client/Client");
|
|
14
|
-
const Client_8 = require("./api/resources/search/client/Client");
|
|
15
14
|
class AirweaveSDKClient {
|
|
16
15
|
constructor(_options = {}) {
|
|
17
16
|
this._options = _options;
|
|
@@ -44,9 +43,5 @@ class AirweaveSDKClient {
|
|
|
44
43
|
var _a;
|
|
45
44
|
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_7.WhiteLabels(this._options)));
|
|
46
45
|
}
|
|
47
|
-
get search() {
|
|
48
|
-
var _a;
|
|
49
|
-
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_8.Search(this._options)));
|
|
50
|
-
}
|
|
51
46
|
}
|
|
52
47
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
|
@@ -29,6 +29,16 @@ export declare class Connections {
|
|
|
29
29
|
/**
|
|
30
30
|
* Get a specific connection.
|
|
31
31
|
*
|
|
32
|
+
* Args:
|
|
33
|
+
* -----
|
|
34
|
+
* connection_id: The ID of the connection to get.
|
|
35
|
+
* db: The database session.
|
|
36
|
+
* user: The current user.
|
|
37
|
+
*
|
|
38
|
+
* Returns:
|
|
39
|
+
* -------
|
|
40
|
+
* schemas.Connection: The connection.
|
|
41
|
+
*
|
|
32
42
|
* @param {string} connectionId
|
|
33
43
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
44
|
*
|
|
@@ -41,6 +51,15 @@ export declare class Connections {
|
|
|
41
51
|
/**
|
|
42
52
|
* Get all active connections for the current user across all integration types.
|
|
43
53
|
*
|
|
54
|
+
* Args:
|
|
55
|
+
* -----
|
|
56
|
+
* db: The database session.
|
|
57
|
+
* user: The current user.
|
|
58
|
+
*
|
|
59
|
+
* Returns:
|
|
60
|
+
* -------
|
|
61
|
+
* list[schemas.Connection]: The list of connections.
|
|
62
|
+
*
|
|
44
63
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
64
|
*
|
|
46
65
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
@@ -53,11 +72,13 @@ export declare class Connections {
|
|
|
53
72
|
* Get all integrations of specified type connected to the current user.
|
|
54
73
|
*
|
|
55
74
|
* Args:
|
|
75
|
+
* -----
|
|
56
76
|
* integration_type (IntegrationType): The type of integration to get connections for.
|
|
57
77
|
* db (AsyncSession): The database session.
|
|
58
78
|
* user (schemas.User): The current user.
|
|
59
79
|
*
|
|
60
80
|
* Returns:
|
|
81
|
+
* -------
|
|
61
82
|
* list[schemas.Connection]: The list of connections.
|
|
62
83
|
*
|
|
63
84
|
* @param {AirweaveSDK.IntegrationType} integrationType
|
|
@@ -80,6 +101,19 @@ export declare class Connections {
|
|
|
80
101
|
* }
|
|
81
102
|
* ```
|
|
82
103
|
*
|
|
104
|
+
* Args:
|
|
105
|
+
* -----
|
|
106
|
+
* db: The database session.
|
|
107
|
+
* integration_type: The type of integration to connect to.
|
|
108
|
+
* short_name: The short name of the integration to connect to.
|
|
109
|
+
* name: The name of the connection.
|
|
110
|
+
* config_fields: The config fields for the integration.
|
|
111
|
+
* user: The current user.
|
|
112
|
+
*
|
|
113
|
+
* Returns:
|
|
114
|
+
* -------
|
|
115
|
+
* schemas.Connection: The connection.
|
|
116
|
+
*
|
|
83
117
|
* @param {AirweaveSDK.IntegrationType} integrationType
|
|
84
118
|
* @param {string} shortName
|
|
85
119
|
* @param {AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost} request
|
|
@@ -99,12 +133,14 @@ export declare class Connections {
|
|
|
99
133
|
* Get the credentials for a connection.
|
|
100
134
|
*
|
|
101
135
|
* Args:
|
|
136
|
+
* -----
|
|
102
137
|
* connection_id (UUID): The ID of the connection to get credentials for
|
|
103
138
|
* db (AsyncSession): The database session
|
|
104
139
|
* user (schemas.User): The current user
|
|
105
140
|
*
|
|
106
141
|
* Returns:
|
|
107
|
-
*
|
|
142
|
+
* -------
|
|
143
|
+
* decrypted_credentials (dict): The credentials for the connection
|
|
108
144
|
*
|
|
109
145
|
* @param {string} connectionId
|
|
110
146
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -121,13 +157,14 @@ export declare class Connections {
|
|
|
121
157
|
* Deletes the connection and integration credential.
|
|
122
158
|
*
|
|
123
159
|
* Args:
|
|
160
|
+
* -----
|
|
124
161
|
* db (AsyncSession): The database session
|
|
125
162
|
* connection_id (UUID): The ID of the connection to delete
|
|
126
|
-
* delete_syncs_and_data (bool): Whether to delete the associated syncs and data
|
|
127
163
|
* user (schemas.User): The current user
|
|
128
164
|
*
|
|
129
165
|
* Returns:
|
|
130
|
-
*
|
|
166
|
+
* --------
|
|
167
|
+
* connection (schemas.Connection): The deleted connection
|
|
131
168
|
*
|
|
132
169
|
* @param {string} connectionId
|
|
133
170
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -142,11 +179,14 @@ export declare class Connections {
|
|
|
142
179
|
* Disconnect from a source connection.
|
|
143
180
|
*
|
|
144
181
|
* Args:
|
|
182
|
+
* -----
|
|
145
183
|
* db (AsyncSession): The database session
|
|
146
184
|
* connection_id (UUID): The ID of the connection to disconnect
|
|
147
185
|
* user (schemas.User): The current user
|
|
186
|
+
*
|
|
148
187
|
* Returns:
|
|
149
|
-
*
|
|
188
|
+
* --------
|
|
189
|
+
* connection_schema (schemas.Connection): The disconnected connection
|
|
150
190
|
*
|
|
151
191
|
* @param {string} connectionId
|
|
152
192
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -161,12 +201,14 @@ export declare class Connections {
|
|
|
161
201
|
* Disconnect from a destination connection.
|
|
162
202
|
*
|
|
163
203
|
* Args:
|
|
204
|
+
* -----
|
|
164
205
|
* db (AsyncSession): The database session
|
|
165
206
|
* connection_id (UUID): The ID of the connection to disconnect
|
|
166
207
|
* user (schemas.User): The current user
|
|
167
208
|
*
|
|
168
209
|
* Returns:
|
|
169
|
-
*
|
|
210
|
+
* --------
|
|
211
|
+
* connection_schema (schemas.Connection): The disconnected connection
|
|
170
212
|
*
|
|
171
213
|
* @param {string} connectionId
|
|
172
214
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -180,6 +222,12 @@ export declare class Connections {
|
|
|
180
222
|
/**
|
|
181
223
|
* Get the OAuth2 authorization URL for a source.
|
|
182
224
|
*
|
|
225
|
+
* Args:
|
|
226
|
+
* -----
|
|
227
|
+
* db: The database session
|
|
228
|
+
* short_name: The short name of the source
|
|
229
|
+
* user: The current user
|
|
230
|
+
*
|
|
183
231
|
* @param {AirweaveSDK.GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest} request
|
|
184
232
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
185
233
|
*
|
|
@@ -199,6 +247,17 @@ export declare class Connections {
|
|
|
199
247
|
* 2. Exchange the authorization code for a token
|
|
200
248
|
* 3. Create an integration credential with the token
|
|
201
249
|
*
|
|
250
|
+
* Args:
|
|
251
|
+
* -----
|
|
252
|
+
* db: The database session
|
|
253
|
+
* short_name: The short name of the source
|
|
254
|
+
* code: The authorization code
|
|
255
|
+
* user: The current user
|
|
256
|
+
*
|
|
257
|
+
* Returns:
|
|
258
|
+
* --------
|
|
259
|
+
* connection (schemas.Connection): The created connection
|
|
260
|
+
*
|
|
202
261
|
* @param {AirweaveSDK.BodySendOauth2CodeConnectionsOauth2SourceCodePost} request
|
|
203
262
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
204
263
|
*
|
|
@@ -214,6 +273,18 @@ export declare class Connections {
|
|
|
214
273
|
/**
|
|
215
274
|
* Exchange the OAuth2 authorization code for a white label integration.
|
|
216
275
|
*
|
|
276
|
+
* Args:
|
|
277
|
+
* -----
|
|
278
|
+
* db: The database session
|
|
279
|
+
* white_label_id: The ID of the white label integration
|
|
280
|
+
* code: The authorization code
|
|
281
|
+
* user: The current user
|
|
282
|
+
* background_tasks: The background tasks
|
|
283
|
+
*
|
|
284
|
+
* Returns:
|
|
285
|
+
* --------
|
|
286
|
+
* connection (schemas.Connection): The created connection
|
|
287
|
+
*
|
|
217
288
|
* @param {string} whiteLabelId
|
|
218
289
|
* @param {string} request
|
|
219
290
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -227,6 +298,16 @@ export declare class Connections {
|
|
|
227
298
|
/**
|
|
228
299
|
* Get the OAuth2 authorization URL for a white label integration.
|
|
229
300
|
*
|
|
301
|
+
* Args:
|
|
302
|
+
* -----
|
|
303
|
+
* db: The database session
|
|
304
|
+
* white_label_id: The ID of the white label integration
|
|
305
|
+
* user: The current user
|
|
306
|
+
*
|
|
307
|
+
* Returns:
|
|
308
|
+
* --------
|
|
309
|
+
* str: The OAuth2 authorization URL
|
|
310
|
+
*
|
|
230
311
|
* @param {string} whiteLabelId
|
|
231
312
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
232
313
|
*
|
|
@@ -62,6 +62,16 @@ class Connections {
|
|
|
62
62
|
/**
|
|
63
63
|
* Get a specific connection.
|
|
64
64
|
*
|
|
65
|
+
* Args:
|
|
66
|
+
* -----
|
|
67
|
+
* connection_id: The ID of the connection to get.
|
|
68
|
+
* db: The database session.
|
|
69
|
+
* user: The current user.
|
|
70
|
+
*
|
|
71
|
+
* Returns:
|
|
72
|
+
* -------
|
|
73
|
+
* schemas.Connection: The connection.
|
|
74
|
+
*
|
|
65
75
|
* @param {string} connectionId
|
|
66
76
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
77
|
*
|
|
@@ -78,7 +88,7 @@ class Connections {
|
|
|
78
88
|
method: "GET",
|
|
79
89
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
80
90
|
? 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.
|
|
91
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
92
|
contentType: "application/json",
|
|
83
93
|
requestType: "json",
|
|
84
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -127,6 +137,15 @@ class Connections {
|
|
|
127
137
|
/**
|
|
128
138
|
* Get all active connections for the current user across all integration types.
|
|
129
139
|
*
|
|
140
|
+
* Args:
|
|
141
|
+
* -----
|
|
142
|
+
* db: The database session.
|
|
143
|
+
* user: The current user.
|
|
144
|
+
*
|
|
145
|
+
* Returns:
|
|
146
|
+
* -------
|
|
147
|
+
* list[schemas.Connection]: The list of connections.
|
|
148
|
+
*
|
|
130
149
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
150
|
*
|
|
132
151
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
@@ -142,7 +161,7 @@ class Connections {
|
|
|
142
161
|
method: "GET",
|
|
143
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
144
163
|
? 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.
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
146
165
|
contentType: "application/json",
|
|
147
166
|
requestType: "json",
|
|
148
167
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -192,11 +211,13 @@ class Connections {
|
|
|
192
211
|
* Get all integrations of specified type connected to the current user.
|
|
193
212
|
*
|
|
194
213
|
* Args:
|
|
214
|
+
* -----
|
|
195
215
|
* integration_type (IntegrationType): The type of integration to get connections for.
|
|
196
216
|
* db (AsyncSession): The database session.
|
|
197
217
|
* user (schemas.User): The current user.
|
|
198
218
|
*
|
|
199
219
|
* Returns:
|
|
220
|
+
* -------
|
|
200
221
|
* list[schemas.Connection]: The list of connections.
|
|
201
222
|
*
|
|
202
223
|
* @param {AirweaveSDK.IntegrationType} integrationType
|
|
@@ -215,7 +236,7 @@ class Connections {
|
|
|
215
236
|
method: "GET",
|
|
216
237
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
217
238
|
? 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.
|
|
239
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
219
240
|
contentType: "application/json",
|
|
220
241
|
requestType: "json",
|
|
221
242
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -272,6 +293,19 @@ class Connections {
|
|
|
272
293
|
* }
|
|
273
294
|
* ```
|
|
274
295
|
*
|
|
296
|
+
* Args:
|
|
297
|
+
* -----
|
|
298
|
+
* db: The database session.
|
|
299
|
+
* integration_type: The type of integration to connect to.
|
|
300
|
+
* short_name: The short name of the integration to connect to.
|
|
301
|
+
* name: The name of the connection.
|
|
302
|
+
* config_fields: The config fields for the integration.
|
|
303
|
+
* user: The current user.
|
|
304
|
+
*
|
|
305
|
+
* Returns:
|
|
306
|
+
* -------
|
|
307
|
+
* schemas.Connection: The connection.
|
|
308
|
+
*
|
|
275
309
|
* @param {AirweaveSDK.IntegrationType} integrationType
|
|
276
310
|
* @param {string} shortName
|
|
277
311
|
* @param {AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost} request
|
|
@@ -294,7 +328,7 @@ class Connections {
|
|
|
294
328
|
method: "POST",
|
|
295
329
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
296
330
|
? 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.
|
|
331
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
298
332
|
contentType: "application/json",
|
|
299
333
|
requestType: "json",
|
|
300
334
|
body: serializers.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -345,12 +379,14 @@ class Connections {
|
|
|
345
379
|
* Get the credentials for a connection.
|
|
346
380
|
*
|
|
347
381
|
* Args:
|
|
382
|
+
* -----
|
|
348
383
|
* connection_id (UUID): The ID of the connection to get credentials for
|
|
349
384
|
* db (AsyncSession): The database session
|
|
350
385
|
* user (schemas.User): The current user
|
|
351
386
|
*
|
|
352
387
|
* Returns:
|
|
353
|
-
*
|
|
388
|
+
* -------
|
|
389
|
+
* decrypted_credentials (dict): The credentials for the connection
|
|
354
390
|
*
|
|
355
391
|
* @param {string} connectionId
|
|
356
392
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -368,7 +404,7 @@ class Connections {
|
|
|
368
404
|
method: "GET",
|
|
369
405
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
370
406
|
? 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.
|
|
407
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
372
408
|
contentType: "application/json",
|
|
373
409
|
requestType: "json",
|
|
374
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -420,13 +456,14 @@ class Connections {
|
|
|
420
456
|
* Deletes the connection and integration credential.
|
|
421
457
|
*
|
|
422
458
|
* Args:
|
|
459
|
+
* -----
|
|
423
460
|
* db (AsyncSession): The database session
|
|
424
461
|
* connection_id (UUID): The ID of the connection to delete
|
|
425
|
-
* delete_syncs_and_data (bool): Whether to delete the associated syncs and data
|
|
426
462
|
* user (schemas.User): The current user
|
|
427
463
|
*
|
|
428
464
|
* Returns:
|
|
429
|
-
*
|
|
465
|
+
* --------
|
|
466
|
+
* connection (schemas.Connection): The deleted connection
|
|
430
467
|
*
|
|
431
468
|
* @param {string} connectionId
|
|
432
469
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -444,7 +481,7 @@ class Connections {
|
|
|
444
481
|
method: "DELETE",
|
|
445
482
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
446
483
|
? 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.
|
|
484
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
448
485
|
contentType: "application/json",
|
|
449
486
|
requestType: "json",
|
|
450
487
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -494,11 +531,14 @@ class Connections {
|
|
|
494
531
|
* Disconnect from a source connection.
|
|
495
532
|
*
|
|
496
533
|
* Args:
|
|
534
|
+
* -----
|
|
497
535
|
* db (AsyncSession): The database session
|
|
498
536
|
* connection_id (UUID): The ID of the connection to disconnect
|
|
499
537
|
* user (schemas.User): The current user
|
|
538
|
+
*
|
|
500
539
|
* Returns:
|
|
501
|
-
*
|
|
540
|
+
* --------
|
|
541
|
+
* connection_schema (schemas.Connection): The disconnected connection
|
|
502
542
|
*
|
|
503
543
|
* @param {string} connectionId
|
|
504
544
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -516,7 +556,7 @@ class Connections {
|
|
|
516
556
|
method: "PUT",
|
|
517
557
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
518
558
|
? 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.
|
|
559
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
520
560
|
contentType: "application/json",
|
|
521
561
|
requestType: "json",
|
|
522
562
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -566,12 +606,14 @@ class Connections {
|
|
|
566
606
|
* Disconnect from a destination connection.
|
|
567
607
|
*
|
|
568
608
|
* Args:
|
|
609
|
+
* -----
|
|
569
610
|
* db (AsyncSession): The database session
|
|
570
611
|
* connection_id (UUID): The ID of the connection to disconnect
|
|
571
612
|
* user (schemas.User): The current user
|
|
572
613
|
*
|
|
573
614
|
* Returns:
|
|
574
|
-
*
|
|
615
|
+
* --------
|
|
616
|
+
* connection_schema (schemas.Connection): The disconnected connection
|
|
575
617
|
*
|
|
576
618
|
* @param {string} connectionId
|
|
577
619
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -589,7 +631,7 @@ class Connections {
|
|
|
589
631
|
method: "PUT",
|
|
590
632
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
591
633
|
? 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.
|
|
634
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
593
635
|
contentType: "application/json",
|
|
594
636
|
requestType: "json",
|
|
595
637
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -638,6 +680,12 @@ class Connections {
|
|
|
638
680
|
/**
|
|
639
681
|
* Get the OAuth2 authorization URL for a source.
|
|
640
682
|
*
|
|
683
|
+
* Args:
|
|
684
|
+
* -----
|
|
685
|
+
* db: The database session
|
|
686
|
+
* short_name: The short name of the source
|
|
687
|
+
* user: The current user
|
|
688
|
+
*
|
|
641
689
|
* @param {AirweaveSDK.GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest} request
|
|
642
690
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
643
691
|
*
|
|
@@ -659,7 +707,7 @@ class Connections {
|
|
|
659
707
|
method: "GET",
|
|
660
708
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
661
709
|
? 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.
|
|
710
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
663
711
|
contentType: "application/json",
|
|
664
712
|
queryParameters: _queryParams,
|
|
665
713
|
requestType: "json",
|
|
@@ -714,6 +762,17 @@ class Connections {
|
|
|
714
762
|
* 2. Exchange the authorization code for a token
|
|
715
763
|
* 3. Create an integration credential with the token
|
|
716
764
|
*
|
|
765
|
+
* Args:
|
|
766
|
+
* -----
|
|
767
|
+
* db: The database session
|
|
768
|
+
* short_name: The short name of the source
|
|
769
|
+
* code: The authorization code
|
|
770
|
+
* user: The current user
|
|
771
|
+
*
|
|
772
|
+
* Returns:
|
|
773
|
+
* --------
|
|
774
|
+
* connection (schemas.Connection): The created connection
|
|
775
|
+
*
|
|
717
776
|
* @param {AirweaveSDK.BodySendOauth2CodeConnectionsOauth2SourceCodePost} request
|
|
718
777
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
719
778
|
*
|
|
@@ -733,7 +792,7 @@ class Connections {
|
|
|
733
792
|
method: "POST",
|
|
734
793
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
735
794
|
? 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.
|
|
795
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
737
796
|
contentType: "application/json",
|
|
738
797
|
requestType: "json",
|
|
739
798
|
body: serializers.BodySendOauth2CodeConnectionsOauth2SourceCodePost.jsonOrThrow(request, {
|
|
@@ -785,6 +844,18 @@ class Connections {
|
|
|
785
844
|
/**
|
|
786
845
|
* Exchange the OAuth2 authorization code for a white label integration.
|
|
787
846
|
*
|
|
847
|
+
* Args:
|
|
848
|
+
* -----
|
|
849
|
+
* db: The database session
|
|
850
|
+
* white_label_id: The ID of the white label integration
|
|
851
|
+
* code: The authorization code
|
|
852
|
+
* user: The current user
|
|
853
|
+
* background_tasks: The background tasks
|
|
854
|
+
*
|
|
855
|
+
* Returns:
|
|
856
|
+
* --------
|
|
857
|
+
* connection (schemas.Connection): The created connection
|
|
858
|
+
*
|
|
788
859
|
* @param {string} whiteLabelId
|
|
789
860
|
* @param {string} request
|
|
790
861
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -802,7 +873,7 @@ class Connections {
|
|
|
802
873
|
method: "POST",
|
|
803
874
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
804
875
|
? 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.
|
|
876
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
806
877
|
contentType: "application/json",
|
|
807
878
|
requestType: "json",
|
|
808
879
|
body: serializers.connections.sendOauth2WhiteLabelCode.Request.jsonOrThrow(request, {
|
|
@@ -854,6 +925,16 @@ class Connections {
|
|
|
854
925
|
/**
|
|
855
926
|
* Get the OAuth2 authorization URL for a white label integration.
|
|
856
927
|
*
|
|
928
|
+
* Args:
|
|
929
|
+
* -----
|
|
930
|
+
* db: The database session
|
|
931
|
+
* white_label_id: The ID of the white label integration
|
|
932
|
+
* user: The current user
|
|
933
|
+
*
|
|
934
|
+
* Returns:
|
|
935
|
+
* --------
|
|
936
|
+
* str: The OAuth2 authorization URL
|
|
937
|
+
*
|
|
857
938
|
* @param {string} whiteLabelId
|
|
858
939
|
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
859
940
|
*
|
|
@@ -870,7 +951,7 @@ class Connections {
|
|
|
870
951
|
method: "GET",
|
|
871
952
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
872
953
|
? 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.
|
|
954
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
874
955
|
contentType: "application/json",
|
|
875
956
|
requestType: "json",
|
|
876
957
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -29,6 +29,15 @@ export declare class Destinations {
|
|
|
29
29
|
/**
|
|
30
30
|
* Get all available destinations.
|
|
31
31
|
*
|
|
32
|
+
* Args:
|
|
33
|
+
* -----
|
|
34
|
+
* db: The database session
|
|
35
|
+
* user: The current user
|
|
36
|
+
*
|
|
37
|
+
* Returns:
|
|
38
|
+
* --------
|
|
39
|
+
* List[schemas.Destination]: A list of destinations
|
|
40
|
+
*
|
|
32
41
|
* @param {Destinations.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
42
|
*
|
|
34
43
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
@@ -40,6 +49,16 @@ export declare class Destinations {
|
|
|
40
49
|
/**
|
|
41
50
|
* Get destination by short name.
|
|
42
51
|
*
|
|
52
|
+
* Args:
|
|
53
|
+
* -----
|
|
54
|
+
* db: The database session
|
|
55
|
+
* short_name: The short name of the destination
|
|
56
|
+
* user: The current user
|
|
57
|
+
*
|
|
58
|
+
* Returns:
|
|
59
|
+
* --------
|
|
60
|
+
* destination (schemas.Destination): The destination
|
|
61
|
+
*
|
|
43
62
|
* @param {string} shortName
|
|
44
63
|
* @param {Destinations.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
64
|
*
|
|
@@ -62,6 +62,15 @@ class Destinations {
|
|
|
62
62
|
/**
|
|
63
63
|
* Get all available destinations.
|
|
64
64
|
*
|
|
65
|
+
* Args:
|
|
66
|
+
* -----
|
|
67
|
+
* db: The database session
|
|
68
|
+
* user: The current user
|
|
69
|
+
*
|
|
70
|
+
* Returns:
|
|
71
|
+
* --------
|
|
72
|
+
* List[schemas.Destination]: A list of destinations
|
|
73
|
+
*
|
|
65
74
|
* @param {Destinations.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
75
|
*
|
|
67
76
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
@@ -77,7 +86,7 @@ class Destinations {
|
|
|
77
86
|
method: "GET",
|
|
78
87
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
79
88
|
? 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.
|
|
89
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
90
|
contentType: "application/json",
|
|
82
91
|
requestType: "json",
|
|
83
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -126,6 +135,16 @@ class Destinations {
|
|
|
126
135
|
/**
|
|
127
136
|
* Get destination by short name.
|
|
128
137
|
*
|
|
138
|
+
* Args:
|
|
139
|
+
* -----
|
|
140
|
+
* db: The database session
|
|
141
|
+
* short_name: The short name of the destination
|
|
142
|
+
* user: The current user
|
|
143
|
+
*
|
|
144
|
+
* Returns:
|
|
145
|
+
* --------
|
|
146
|
+
* destination (schemas.Destination): The destination
|
|
147
|
+
*
|
|
129
148
|
* @param {string} shortName
|
|
130
149
|
* @param {Destinations.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
150
|
*
|
|
@@ -142,7 +161,7 @@ class Destinations {
|
|
|
142
161
|
method: "GET",
|
|
143
162
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
144
163
|
? 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.
|
|
164
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.20", "User-Agent": "@airweave/sdk/0.1.20", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
146
165
|
contentType: "application/json",
|
|
147
166
|
requestType: "json",
|
|
148
167
|
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.20", "User-Agent": "@airweave/sdk/0.1.20", "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.20", "User-Agent": "@airweave/sdk/0.1.20", "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
|
@@ -6,8 +6,6 @@ export * as destinations from "./destinations";
|
|
|
6
6
|
export * as embeddingModels from "./embeddingModels";
|
|
7
7
|
export * as connections from "./connections";
|
|
8
8
|
export * as whiteLabels from "./whiteLabels";
|
|
9
|
-
export * as search from "./search";
|
|
10
9
|
export * from "./connections/client/requests";
|
|
11
10
|
export * from "./sync/client/requests";
|
|
12
11
|
export * from "./whiteLabels/client/requests";
|
|
13
|
-
export * from "./search/client/requests";
|