@airweave/sdk 0.1.16 → 0.1.17
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 +3 -0
- package/Client.js +5 -0
- 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 +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/search/client/Client.d.ts +71 -0
- package/api/resources/search/client/Client.js +231 -0
- package/api/resources/search/client/index.d.ts +1 -0
- package/api/resources/search/client/index.js +17 -0
- package/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +16 -0
- package/api/resources/search/client/requests/SearchSearchObjectsPostRequest.js +5 -0
- package/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +16 -0
- package/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.js +5 -0
- package/api/resources/search/client/requests/index.d.ts +2 -0
- package/api/resources/search/client/requests/index.js +2 -0
- package/api/resources/search/index.d.ts +1 -0
- package/api/resources/search/index.js +17 -0
- 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/types/MetadataSearchFilter.d.ts +11 -0
- package/api/types/MetadataSearchFilter.js +5 -0
- package/api/types/SearchResult.d.ts +11 -0
- package/api/types/SearchResult.js +5 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- 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 +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/search/client/Client.d.ts +71 -0
- package/dist/api/resources/search/client/Client.js +231 -0
- package/dist/api/resources/search/client/index.d.ts +1 -0
- package/dist/api/resources/search/client/index.js +17 -0
- package/dist/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +16 -0
- package/dist/api/resources/search/client/requests/SearchSearchObjectsPostRequest.js +5 -0
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +16 -0
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.js +5 -0
- package/dist/api/resources/search/client/requests/index.d.ts +2 -0
- package/dist/api/resources/search/client/requests/index.js +2 -0
- package/dist/api/resources/search/index.d.ts +1 -0
- package/dist/api/resources/search/index.js +17 -0
- 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/types/MetadataSearchFilter.d.ts +11 -0
- package/dist/api/types/MetadataSearchFilter.js +5 -0
- package/dist/api/types/SearchResult.d.ts +11 -0
- package/dist/api/types/SearchResult.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/search/client/index.d.ts +2 -0
- package/dist/serialization/resources/search/client/index.js +38 -0
- package/dist/serialization/resources/search/client/search.d.ts +16 -0
- package/dist/serialization/resources/search/client/search.js +44 -0
- package/dist/serialization/resources/search/client/searchSummary.d.ts +15 -0
- package/dist/serialization/resources/search/client/searchSummary.js +43 -0
- package/dist/serialization/resources/search/index.d.ts +1 -0
- package/dist/serialization/resources/search/index.js +17 -0
- package/dist/serialization/types/MetadataSearchFilter.d.ts +14 -0
- package/dist/serialization/types/MetadataSearchFilter.js +45 -0
- package/dist/serialization/types/SearchResult.d.ts +14 -0
- package/dist/serialization/types/SearchResult.js +45 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +146 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/search/client/index.d.ts +2 -0
- package/serialization/resources/search/client/index.js +38 -0
- package/serialization/resources/search/client/search.d.ts +16 -0
- package/serialization/resources/search/client/search.js +44 -0
- package/serialization/resources/search/client/searchSummary.d.ts +15 -0
- package/serialization/resources/search/client/searchSummary.js +43 -0
- package/serialization/resources/search/index.d.ts +1 -0
- package/serialization/resources/search/index.js +17 -0
- package/serialization/types/MetadataSearchFilter.d.ts +14 -0
- package/serialization/types/MetadataSearchFilter.js +45 -0
- package/serialization/types/SearchResult.d.ts +14 -0
- package/serialization/types/SearchResult.js +45 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ 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";
|
|
13
14
|
export declare namespace AirweaveSDKClient {
|
|
14
15
|
interface Options {
|
|
15
16
|
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
@@ -38,6 +39,7 @@ export declare class AirweaveSDKClient {
|
|
|
38
39
|
protected _connections: Connections | undefined;
|
|
39
40
|
protected _sync: Sync | undefined;
|
|
40
41
|
protected _whiteLabels: WhiteLabels | undefined;
|
|
42
|
+
protected _search: Search | undefined;
|
|
41
43
|
constructor(_options?: AirweaveSDKClient.Options);
|
|
42
44
|
get users(): Users;
|
|
43
45
|
get sources(): Sources;
|
|
@@ -46,4 +48,5 @@ export declare class AirweaveSDKClient {
|
|
|
46
48
|
get connections(): Connections;
|
|
47
49
|
get sync(): Sync;
|
|
48
50
|
get whiteLabels(): WhiteLabels;
|
|
51
|
+
get search(): Search;
|
|
49
52
|
}
|
package/Client.js
CHANGED
|
@@ -11,6 +11,7 @@ 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");
|
|
14
15
|
class AirweaveSDKClient {
|
|
15
16
|
constructor(_options = {}) {
|
|
16
17
|
this._options = _options;
|
|
@@ -43,5 +44,9 @@ class AirweaveSDKClient {
|
|
|
43
44
|
var _a;
|
|
44
45
|
return ((_a = this._whiteLabels) !== null && _a !== void 0 ? _a : (this._whiteLabels = new Client_7.WhiteLabels(this._options)));
|
|
45
46
|
}
|
|
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
|
+
}
|
|
46
51
|
}
|
|
47
52
|
exports.AirweaveSDKClient = AirweaveSDKClient;
|
|
@@ -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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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.17", "User-Agent": "@airweave/sdk/0.1.17", "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,6 +6,8 @@ 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";
|
|
9
10
|
export * from "./connections/client/requests";
|
|
10
11
|
export * from "./sync/client/requests";
|
|
11
12
|
export * from "./whiteLabels/client/requests";
|
|
13
|
+
export * from "./search/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.whiteLabels = exports.connections = exports.embeddingModels = exports.destinations = exports.sources = exports.users = exports.sync = void 0;
|
|
39
|
+
exports.search = 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
42
|
exports.users = __importStar(require("./users"));
|
|
@@ -45,6 +45,8 @@ exports.destinations = __importStar(require("./destinations"));
|
|
|
45
45
|
exports.embeddingModels = __importStar(require("./embeddingModels"));
|
|
46
46
|
exports.connections = __importStar(require("./connections"));
|
|
47
47
|
exports.whiteLabels = __importStar(require("./whiteLabels"));
|
|
48
|
+
exports.search = __importStar(require("./search"));
|
|
48
49
|
__exportStar(require("./connections/client/requests"), exports);
|
|
49
50
|
__exportStar(require("./sync/client/requests"), exports);
|
|
50
51
|
__exportStar(require("./whiteLabels/client/requests"), exports);
|
|
52
|
+
__exportStar(require("./search/client/requests"), exports);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as AirweaveSDK from "../../../index";
|
|
7
|
+
export declare namespace Search {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
|
|
10
|
+
/** Override the x-api-key header */
|
|
11
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
12
|
+
}
|
|
13
|
+
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
15
|
+
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
17
|
+
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
/** Override the x-api-key header */
|
|
21
|
+
apiKey?: string | undefined;
|
|
22
|
+
/** Additional headers to include in the request. */
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare class Search {
|
|
27
|
+
protected readonly _options: Search.Options;
|
|
28
|
+
constructor(_options?: Search.Options);
|
|
29
|
+
/**
|
|
30
|
+
* Search for summarized information.
|
|
31
|
+
*
|
|
32
|
+
* @param {AirweaveSDK.SearchSummarySearchSummaryPostRequest} request
|
|
33
|
+
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.search.searchSummary({
|
|
39
|
+
* query: "query",
|
|
40
|
+
* body: undefined
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
searchSummary(request: AirweaveSDK.SearchSummarySearchSummaryPostRequest, requestOptions?: Search.RequestOptions): Promise<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Search for a specific item.
|
|
46
|
+
*
|
|
47
|
+
* Args:
|
|
48
|
+
* ----
|
|
49
|
+
* db (AsyncSession): The database session.
|
|
50
|
+
* query (str): The query to search for.
|
|
51
|
+
* sync_id (Optional[UUID]): The sync ID to search for.
|
|
52
|
+
* metadata_filter (Optional[list[MetadataSearchFilter]]): The filter to search for.
|
|
53
|
+
* user (schemas.User): The user to search for.
|
|
54
|
+
*
|
|
55
|
+
* Returns:
|
|
56
|
+
* -------
|
|
57
|
+
* list[SearchResult]: The search results.
|
|
58
|
+
*
|
|
59
|
+
* @param {AirweaveSDK.SearchSearchObjectsPostRequest} request
|
|
60
|
+
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.search.search({
|
|
66
|
+
* query: "query",
|
|
67
|
+
* body: undefined
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
search(request: AirweaveSDK.SearchSearchObjectsPostRequest, requestOptions?: Search.RequestOptions): Promise<AirweaveSDK.SearchResult[]>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Search = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const AirweaveSDK = __importStar(require("../../../index"));
|
|
55
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Search {
|
|
59
|
+
constructor(_options = {}) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Search for summarized information.
|
|
64
|
+
*
|
|
65
|
+
* @param {AirweaveSDK.SearchSummarySearchSummaryPostRequest} request
|
|
66
|
+
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.search.searchSummary({
|
|
72
|
+
* query: "query",
|
|
73
|
+
* body: undefined
|
|
74
|
+
* })
|
|
75
|
+
*/
|
|
76
|
+
searchSummary(request, requestOptions) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
var _a;
|
|
79
|
+
const { query, syncId, body: _body } = request;
|
|
80
|
+
const _queryParams = {};
|
|
81
|
+
_queryParams["query"] = query;
|
|
82
|
+
if (syncId != null) {
|
|
83
|
+
_queryParams["sync_id"] = syncId;
|
|
84
|
+
}
|
|
85
|
+
const _response = yield core.fetcher({
|
|
86
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search/summary"),
|
|
87
|
+
method: "POST",
|
|
88
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
89
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
90
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
|
+
contentType: "application/json",
|
|
92
|
+
queryParameters: _queryParams,
|
|
93
|
+
requestType: "json",
|
|
94
|
+
body: _body != null
|
|
95
|
+
? serializers.search.searchSummary.Request.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" })
|
|
96
|
+
: undefined,
|
|
97
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
98
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
99
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
100
|
+
});
|
|
101
|
+
if (_response.ok) {
|
|
102
|
+
return serializers.search.searchSummary.Response.parseOrThrow(_response.body, {
|
|
103
|
+
unrecognizedObjectKeys: "passthrough",
|
|
104
|
+
allowUnrecognizedUnionMembers: true,
|
|
105
|
+
allowUnrecognizedEnumValues: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (_response.error.reason === "status-code") {
|
|
110
|
+
switch (_response.error.statusCode) {
|
|
111
|
+
case 422:
|
|
112
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
113
|
+
unrecognizedObjectKeys: "passthrough",
|
|
114
|
+
allowUnrecognizedUnionMembers: true,
|
|
115
|
+
allowUnrecognizedEnumValues: true,
|
|
116
|
+
breadcrumbsPrefix: ["response"],
|
|
117
|
+
}));
|
|
118
|
+
default:
|
|
119
|
+
throw new errors.AirweaveSDKError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.body,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
switch (_response.error.reason) {
|
|
126
|
+
case "non-json":
|
|
127
|
+
throw new errors.AirweaveSDKError({
|
|
128
|
+
statusCode: _response.error.statusCode,
|
|
129
|
+
body: _response.error.rawBody,
|
|
130
|
+
});
|
|
131
|
+
case "timeout":
|
|
132
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /search/summary.");
|
|
133
|
+
case "unknown":
|
|
134
|
+
throw new errors.AirweaveSDKError({
|
|
135
|
+
message: _response.error.errorMessage,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Search for a specific item.
|
|
142
|
+
*
|
|
143
|
+
* Args:
|
|
144
|
+
* ----
|
|
145
|
+
* db (AsyncSession): The database session.
|
|
146
|
+
* query (str): The query to search for.
|
|
147
|
+
* sync_id (Optional[UUID]): The sync ID to search for.
|
|
148
|
+
* metadata_filter (Optional[list[MetadataSearchFilter]]): The filter to search for.
|
|
149
|
+
* user (schemas.User): The user to search for.
|
|
150
|
+
*
|
|
151
|
+
* Returns:
|
|
152
|
+
* -------
|
|
153
|
+
* list[SearchResult]: The search results.
|
|
154
|
+
*
|
|
155
|
+
* @param {AirweaveSDK.SearchSearchObjectsPostRequest} request
|
|
156
|
+
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* await client.search.search({
|
|
162
|
+
* query: "query",
|
|
163
|
+
* body: undefined
|
|
164
|
+
* })
|
|
165
|
+
*/
|
|
166
|
+
search(request, requestOptions) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
var _a;
|
|
169
|
+
const { query, syncId, body: _body } = request;
|
|
170
|
+
const _queryParams = {};
|
|
171
|
+
_queryParams["query"] = query;
|
|
172
|
+
if (syncId != null) {
|
|
173
|
+
_queryParams["sync_id"] = syncId;
|
|
174
|
+
}
|
|
175
|
+
const _response = yield core.fetcher({
|
|
176
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search/objects"),
|
|
177
|
+
method: "POST",
|
|
178
|
+
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
179
|
+
? yield core.Supplier.get(this._options.apiKey)
|
|
180
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
181
|
+
contentType: "application/json",
|
|
182
|
+
queryParameters: _queryParams,
|
|
183
|
+
requestType: "json",
|
|
184
|
+
body: _body != null
|
|
185
|
+
? serializers.search.search.Request.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" })
|
|
186
|
+
: undefined,
|
|
187
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
188
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
189
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
190
|
+
});
|
|
191
|
+
if (_response.ok) {
|
|
192
|
+
return serializers.search.search.Response.parseOrThrow(_response.body, {
|
|
193
|
+
unrecognizedObjectKeys: "passthrough",
|
|
194
|
+
allowUnrecognizedUnionMembers: true,
|
|
195
|
+
allowUnrecognizedEnumValues: true,
|
|
196
|
+
breadcrumbsPrefix: ["response"],
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
if (_response.error.reason === "status-code") {
|
|
200
|
+
switch (_response.error.statusCode) {
|
|
201
|
+
case 422:
|
|
202
|
+
throw new AirweaveSDK.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
203
|
+
unrecognizedObjectKeys: "passthrough",
|
|
204
|
+
allowUnrecognizedUnionMembers: true,
|
|
205
|
+
allowUnrecognizedEnumValues: true,
|
|
206
|
+
breadcrumbsPrefix: ["response"],
|
|
207
|
+
}));
|
|
208
|
+
default:
|
|
209
|
+
throw new errors.AirweaveSDKError({
|
|
210
|
+
statusCode: _response.error.statusCode,
|
|
211
|
+
body: _response.error.body,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
switch (_response.error.reason) {
|
|
216
|
+
case "non-json":
|
|
217
|
+
throw new errors.AirweaveSDKError({
|
|
218
|
+
statusCode: _response.error.statusCode,
|
|
219
|
+
body: _response.error.rawBody,
|
|
220
|
+
});
|
|
221
|
+
case "timeout":
|
|
222
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling POST /search/objects.");
|
|
223
|
+
case "unknown":
|
|
224
|
+
throw new errors.AirweaveSDKError({
|
|
225
|
+
message: _response.error.errorMessage,
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.Search = Search;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* query: "query",
|
|
9
|
+
* body: undefined
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface SearchSearchObjectsPostRequest {
|
|
13
|
+
query: string;
|
|
14
|
+
syncId?: string;
|
|
15
|
+
body?: AirweaveSDK.MetadataSearchFilter[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* query: "query",
|
|
9
|
+
* body: undefined
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface SearchSummarySearchSummaryPostRequest {
|
|
13
|
+
query: string;
|
|
14
|
+
syncId?: string;
|
|
15
|
+
body?: AirweaveSDK.MetadataSearchFilter[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|