@airweave/sdk 0.1.17 → 0.1.19
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/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/search/client/Client.d.ts +6 -8
- package/api/resources/search/client/Client.js +36 -22
- package/api/resources/search/client/requests/SearchSearchObjectsGetRequest.d.ts +23 -0
- package/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.d.ts +31 -0
- package/api/resources/search/client/requests/index.d.ts +2 -2
- 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/SearchSummary.d.ts +11 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- 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/search/client/Client.d.ts +6 -8
- package/dist/api/resources/search/client/Client.js +36 -22
- package/dist/api/resources/search/client/requests/SearchSearchObjectsGetRequest.d.ts +23 -0
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.d.ts +31 -0
- package/dist/api/resources/search/client/requests/index.d.ts +2 -2
- 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/SearchSummary.d.ts +11 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/search/client/index.d.ts +0 -1
- package/dist/serialization/resources/search/client/index.js +1 -2
- package/dist/serialization/resources/search/client/search.d.ts +0 -5
- package/dist/serialization/resources/search/client/search.js +1 -3
- package/dist/serialization/types/SearchSummary.d.ts +14 -0
- package/dist/serialization/types/{MetadataSearchFilter.js → SearchSummary.js} +5 -5
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -5
- package/serialization/resources/search/client/index.d.ts +0 -1
- package/serialization/resources/search/client/index.js +1 -2
- package/serialization/resources/search/client/search.d.ts +0 -5
- package/serialization/resources/search/client/search.js +1 -3
- package/serialization/types/SearchSummary.d.ts +14 -0
- package/serialization/types/{MetadataSearchFilter.js → SearchSummary.js} +5 -5
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +0 -16
- package/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +0 -16
- package/api/types/MetadataSearchFilter.d.ts +0 -11
- package/dist/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +0 -16
- package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +0 -16
- package/dist/api/types/MetadataSearchFilter.d.ts +0 -11
- package/dist/serialization/resources/search/client/searchSummary.d.ts +0 -15
- package/dist/serialization/resources/search/client/searchSummary.js +0 -43
- package/dist/serialization/types/MetadataSearchFilter.d.ts +0 -14
- package/serialization/resources/search/client/searchSummary.d.ts +0 -15
- package/serialization/resources/search/client/searchSummary.js +0 -43
- package/serialization/types/MetadataSearchFilter.d.ts +0 -14
- /package/api/resources/search/client/requests/{SearchSearchObjectsPostRequest.js → SearchSearchObjectsGetRequest.js} +0 -0
- /package/api/resources/search/client/requests/{SearchSummarySearchSummaryPostRequest.js → SearchSummarySearchSummaryGetRequest.js} +0 -0
- /package/api/types/{MetadataSearchFilter.js → SearchSummary.js} +0 -0
- /package/dist/api/resources/search/client/requests/{SearchSearchObjectsPostRequest.js → SearchSearchObjectsGetRequest.js} +0 -0
- /package/dist/api/resources/search/client/requests/{SearchSummarySearchSummaryPostRequest.js → SearchSummarySearchSummaryGetRequest.js} +0 -0
- /package/dist/api/types/{MetadataSearchFilter.js → SearchSummary.js} +0 -0
|
@@ -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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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,
|
|
@@ -29,18 +29,17 @@ export declare class Search {
|
|
|
29
29
|
/**
|
|
30
30
|
* Search for summarized information.
|
|
31
31
|
*
|
|
32
|
-
* @param {AirweaveSDK.
|
|
32
|
+
* @param {AirweaveSDK.SearchSummarySearchSummaryGetRequest} request
|
|
33
33
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
34
|
*
|
|
35
35
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* await client.search.searchSummary({
|
|
39
|
-
* query: "query"
|
|
40
|
-
* body: undefined
|
|
39
|
+
* query: "query"
|
|
41
40
|
* })
|
|
42
41
|
*/
|
|
43
|
-
searchSummary(request: AirweaveSDK.
|
|
42
|
+
searchSummary(request: AirweaveSDK.SearchSummarySearchSummaryGetRequest, requestOptions?: Search.RequestOptions): Promise<AirweaveSDK.SearchSummary>;
|
|
44
43
|
/**
|
|
45
44
|
* Search for a specific item.
|
|
46
45
|
*
|
|
@@ -56,16 +55,15 @@ export declare class Search {
|
|
|
56
55
|
* -------
|
|
57
56
|
* list[SearchResult]: The search results.
|
|
58
57
|
*
|
|
59
|
-
* @param {AirweaveSDK.
|
|
58
|
+
* @param {AirweaveSDK.SearchSearchObjectsGetRequest} request
|
|
60
59
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
60
|
*
|
|
62
61
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
63
62
|
*
|
|
64
63
|
* @example
|
|
65
64
|
* await client.search.search({
|
|
66
|
-
* query: "query"
|
|
67
|
-
* body: undefined
|
|
65
|
+
* query: "query"
|
|
68
66
|
* })
|
|
69
67
|
*/
|
|
70
|
-
search(request: AirweaveSDK.
|
|
68
|
+
search(request: AirweaveSDK.SearchSearchObjectsGetRequest, requestOptions?: Search.RequestOptions): Promise<AirweaveSDK.SearchResult[]>;
|
|
71
69
|
}
|
|
@@ -52,8 +52,8 @@ exports.Search = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const AirweaveSDK = __importStar(require("../../../index"));
|
|
55
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
58
|
class Search {
|
|
59
59
|
constructor(_options = {}) {
|
|
@@ -62,44 +62,54 @@ class Search {
|
|
|
62
62
|
/**
|
|
63
63
|
* Search for summarized information.
|
|
64
64
|
*
|
|
65
|
-
* @param {AirweaveSDK.
|
|
65
|
+
* @param {AirweaveSDK.SearchSummarySearchSummaryGetRequest} request
|
|
66
66
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
67
|
*
|
|
68
68
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.search.searchSummary({
|
|
72
|
-
* query: "query"
|
|
73
|
-
* body: undefined
|
|
72
|
+
* query: "query"
|
|
74
73
|
* })
|
|
75
74
|
*/
|
|
76
75
|
searchSummary(request, requestOptions) {
|
|
77
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
77
|
var _a;
|
|
79
|
-
const { query, syncId,
|
|
78
|
+
const { query, topK, searchMethod, syncId, metaDataFilter } = request;
|
|
80
79
|
const _queryParams = {};
|
|
81
80
|
_queryParams["query"] = query;
|
|
81
|
+
if (topK != null) {
|
|
82
|
+
_queryParams["top_k"] = topK.toString();
|
|
83
|
+
}
|
|
84
|
+
if (searchMethod != null) {
|
|
85
|
+
_queryParams["search_method"] = searchMethod;
|
|
86
|
+
}
|
|
82
87
|
if (syncId != null) {
|
|
83
88
|
_queryParams["sync_id"] = syncId;
|
|
84
89
|
}
|
|
90
|
+
if (metaDataFilter != null) {
|
|
91
|
+
if (Array.isArray(metaDataFilter)) {
|
|
92
|
+
_queryParams["meta_data_filter"] = metaDataFilter.map((item) => item);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
_queryParams["meta_data_filter"] = metaDataFilter;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
85
98
|
const _response = yield core.fetcher({
|
|
86
99
|
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: "
|
|
100
|
+
method: "GET",
|
|
88
101
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
89
102
|
? 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.
|
|
103
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
104
|
contentType: "application/json",
|
|
92
105
|
queryParameters: _queryParams,
|
|
93
106
|
requestType: "json",
|
|
94
|
-
body: _body != null
|
|
95
|
-
? serializers.search.searchSummary.Request.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" })
|
|
96
|
-
: undefined,
|
|
97
107
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
98
108
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
99
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
100
110
|
});
|
|
101
111
|
if (_response.ok) {
|
|
102
|
-
return serializers.
|
|
112
|
+
return serializers.SearchSummary.parseOrThrow(_response.body, {
|
|
103
113
|
unrecognizedObjectKeys: "passthrough",
|
|
104
114
|
allowUnrecognizedUnionMembers: true,
|
|
105
115
|
allowUnrecognizedEnumValues: true,
|
|
@@ -129,7 +139,7 @@ class Search {
|
|
|
129
139
|
body: _response.error.rawBody,
|
|
130
140
|
});
|
|
131
141
|
case "timeout":
|
|
132
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling
|
|
142
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search/summary.");
|
|
133
143
|
case "unknown":
|
|
134
144
|
throw new errors.AirweaveSDKError({
|
|
135
145
|
message: _response.error.errorMessage,
|
|
@@ -152,38 +162,42 @@ class Search {
|
|
|
152
162
|
* -------
|
|
153
163
|
* list[SearchResult]: The search results.
|
|
154
164
|
*
|
|
155
|
-
* @param {AirweaveSDK.
|
|
165
|
+
* @param {AirweaveSDK.SearchSearchObjectsGetRequest} request
|
|
156
166
|
* @param {Search.RequestOptions} requestOptions - Request-specific configuration.
|
|
157
167
|
*
|
|
158
168
|
* @throws {@link AirweaveSDK.UnprocessableEntityError}
|
|
159
169
|
*
|
|
160
170
|
* @example
|
|
161
171
|
* await client.search.search({
|
|
162
|
-
* query: "query"
|
|
163
|
-
* body: undefined
|
|
172
|
+
* query: "query"
|
|
164
173
|
* })
|
|
165
174
|
*/
|
|
166
175
|
search(request, requestOptions) {
|
|
167
176
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
177
|
var _a;
|
|
169
|
-
const { query, syncId,
|
|
178
|
+
const { query, syncId, metadataFilter } = request;
|
|
170
179
|
const _queryParams = {};
|
|
171
180
|
_queryParams["query"] = query;
|
|
172
181
|
if (syncId != null) {
|
|
173
182
|
_queryParams["sync_id"] = syncId;
|
|
174
183
|
}
|
|
184
|
+
if (metadataFilter != null) {
|
|
185
|
+
if (Array.isArray(metadataFilter)) {
|
|
186
|
+
_queryParams["metadata_filter"] = metadataFilter.map((item) => item);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
_queryParams["metadata_filter"] = metadataFilter;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
175
192
|
const _response = yield core.fetcher({
|
|
176
193
|
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: "
|
|
194
|
+
method: "GET",
|
|
178
195
|
headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
|
|
179
196
|
? 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.
|
|
197
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
181
198
|
contentType: "application/json",
|
|
182
199
|
queryParameters: _queryParams,
|
|
183
200
|
requestType: "json",
|
|
184
|
-
body: _body != null
|
|
185
|
-
? serializers.search.search.Request.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" })
|
|
186
|
-
: undefined,
|
|
187
201
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
188
202
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
189
203
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -219,7 +233,7 @@ class Search {
|
|
|
219
233
|
body: _response.error.rawBody,
|
|
220
234
|
});
|
|
221
235
|
case "timeout":
|
|
222
|
-
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling
|
|
236
|
+
throw new errors.AirweaveSDKTimeoutError("Timeout exceeded when calling GET /search/objects.");
|
|
223
237
|
case "unknown":
|
|
224
238
|
throw new errors.AirweaveSDKError({
|
|
225
239
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface SearchSearchObjectsGetRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Query to search for
|
|
13
|
+
*/
|
|
14
|
+
query: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sync ID to filter by
|
|
17
|
+
*/
|
|
18
|
+
syncId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Metadata filters
|
|
21
|
+
*/
|
|
22
|
+
metadataFilter?: string | string[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface SearchSummarySearchSummaryGetRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Query to search for
|
|
13
|
+
*/
|
|
14
|
+
query: string;
|
|
15
|
+
/**
|
|
16
|
+
* Number of results to return
|
|
17
|
+
*/
|
|
18
|
+
topK?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Search method to use
|
|
21
|
+
*/
|
|
22
|
+
searchMethod?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Sync ID to filter by
|
|
25
|
+
*/
|
|
26
|
+
syncId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Metadata filters
|
|
29
|
+
*/
|
|
30
|
+
metaDataFilter?: string | string[];
|
|
31
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type
|
|
2
|
-
export { type
|
|
1
|
+
export { type SearchSummarySearchSummaryGetRequest } from "./SearchSummarySearchSummaryGetRequest";
|
|
2
|
+
export { type SearchSearchObjectsGetRequest } from "./SearchSearchObjectsGetRequest";
|
|
@@ -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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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.19", "User-Agent": "@airweave/sdk/0.1.19", "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,
|