@airweave/sdk 0.2.13 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/api/resources/connections/client/Client.js +10 -10
  2. package/api/resources/destinations/client/Client.js +2 -2
  3. package/api/resources/embeddingModels/client/Client.js +2 -2
  4. package/api/resources/entities/client/Client.js +8 -8
  5. package/api/resources/search/client/Client.d.ts +3 -2
  6. package/api/resources/search/client/Client.js +7 -3
  7. package/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +5 -0
  8. package/api/resources/sources/client/Client.js +2 -2
  9. package/api/resources/sync/client/Client.js +11 -11
  10. package/api/resources/transformers/client/Client.js +3 -3
  11. package/api/resources/users/client/Client.js +2 -2
  12. package/api/resources/whiteLabels/client/Client.js +8 -8
  13. package/api/types/ResponseType.d.ts +11 -0
  14. package/api/types/ResponseType.js +10 -0
  15. package/api/types/index.d.ts +1 -0
  16. package/api/types/index.js +1 -0
  17. package/dist/api/resources/connections/client/Client.js +10 -10
  18. package/dist/api/resources/destinations/client/Client.js +2 -2
  19. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  20. package/dist/api/resources/entities/client/Client.js +8 -8
  21. package/dist/api/resources/search/client/Client.d.ts +3 -2
  22. package/dist/api/resources/search/client/Client.js +7 -3
  23. package/dist/api/resources/search/client/requests/SearchSearchGetRequest.d.ts +5 -0
  24. package/dist/api/resources/sources/client/Client.js +2 -2
  25. package/dist/api/resources/sync/client/Client.js +11 -11
  26. package/dist/api/resources/transformers/client/Client.js +3 -3
  27. package/dist/api/resources/users/client/Client.js +2 -2
  28. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  29. package/dist/api/types/ResponseType.d.ts +11 -0
  30. package/dist/api/types/ResponseType.js +10 -0
  31. package/dist/api/types/index.d.ts +1 -0
  32. package/dist/api/types/index.js +1 -0
  33. package/dist/serialization/resources/search/client/search.d.ts +2 -2
  34. package/dist/serialization/resources/search/client/search.js +1 -1
  35. package/dist/serialization/types/ResponseType.d.ts +10 -0
  36. package/dist/serialization/types/ResponseType.js +41 -0
  37. package/dist/serialization/types/index.d.ts +1 -0
  38. package/dist/serialization/types/index.js +1 -0
  39. package/dist/version.d.ts +1 -1
  40. package/dist/version.js +1 -1
  41. package/package.json +1 -1
  42. package/reference.md +3 -2
  43. package/serialization/resources/search/client/search.d.ts +2 -2
  44. package/serialization/resources/search/client/search.js +1 -1
  45. package/serialization/types/ResponseType.d.ts +10 -0
  46. package/serialization/types/ResponseType.js +41 -0
  47. package/serialization/types/index.d.ts +1 -0
  48. package/serialization/types/index.js +1 -0
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
@@ -105,7 +105,7 @@ class Connections {
105
105
  method: "GET",
106
106
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
107
107
  ? yield core.Supplier.get(this._options.apiKey)
108
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -185,7 +185,7 @@ class Connections {
185
185
  method: "GET",
186
186
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
187
187
  ? yield core.Supplier.get(this._options.apiKey)
188
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
188
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
189
189
  contentType: "application/json",
190
190
  queryParameters: _queryParams,
191
191
  requestType: "json",
@@ -267,7 +267,7 @@ class Connections {
267
267
  method: "GET",
268
268
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
269
269
  ? yield core.Supplier.get(this._options.apiKey)
270
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
271
  contentType: "application/json",
272
272
  queryParameters: _queryParams,
273
273
  requestType: "json",
@@ -367,7 +367,7 @@ class Connections {
367
367
  method: "POST",
368
368
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
369
369
  ? yield core.Supplier.get(this._options.apiKey)
370
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
370
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
371
371
  contentType: "application/json",
372
372
  queryParameters: _queryParams,
373
373
  requestType: "json",
@@ -452,7 +452,7 @@ class Connections {
452
452
  method: "GET",
453
453
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
454
454
  ? yield core.Supplier.get(this._options.apiKey)
455
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
455
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
456
456
  contentType: "application/json",
457
457
  queryParameters: _queryParams,
458
458
  requestType: "json",
@@ -536,7 +536,7 @@ class Connections {
536
536
  method: "DELETE",
537
537
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
538
538
  ? yield core.Supplier.get(this._options.apiKey)
539
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
539
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
540
540
  contentType: "application/json",
541
541
  queryParameters: _queryParams,
542
542
  requestType: "json",
@@ -618,7 +618,7 @@ class Connections {
618
618
  method: "PUT",
619
619
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
620
620
  ? yield core.Supplier.get(this._options.apiKey)
621
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
621
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
622
622
  contentType: "application/json",
623
623
  queryParameters: _queryParams,
624
624
  requestType: "json",
@@ -707,7 +707,7 @@ class Connections {
707
707
  method: "POST",
708
708
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
709
709
  ? yield core.Supplier.get(this._options.apiKey)
710
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
710
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
711
711
  contentType: "application/json",
712
712
  queryParameters: _queryParams,
713
713
  requestType: "json",
@@ -795,7 +795,7 @@ class Connections {
795
795
  method: "POST",
796
796
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
797
797
  ? yield core.Supplier.get(this._options.apiKey)
798
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
798
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
799
799
  contentType: "application/json",
800
800
  queryParameters: _queryParams,
801
801
  requestType: "json",
@@ -880,7 +880,7 @@ class Connections {
880
880
  method: "GET",
881
881
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
882
882
  ? yield core.Supplier.get(this._options.apiKey)
883
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
883
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
884
884
  contentType: "application/json",
885
885
  queryParameters: _queryParams,
886
886
  requestType: "json",
@@ -92,7 +92,7 @@ class Destinations {
92
92
  method: "GET",
93
93
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
94
94
  ? yield core.Supplier.get(this._options.apiKey)
95
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -174,7 +174,7 @@ class Destinations {
174
174
  method: "GET",
175
175
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
176
176
  ? yield core.Supplier.get(this._options.apiKey)
177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  queryParameters: _queryParams,
180
180
  requestType: "json",
@@ -94,7 +94,7 @@ class EmbeddingModels {
94
94
  method: "GET",
95
95
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
96
96
  ? yield core.Supplier.get(this._options.apiKey)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -174,7 +174,7 @@ class EmbeddingModels {
174
174
  method: "GET",
175
175
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
176
176
  ? yield core.Supplier.get(this._options.apiKey)
177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  queryParameters: _queryParams,
180
180
  requestType: "json",
@@ -94,7 +94,7 @@ class Entities {
94
94
  method: "GET",
95
95
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
96
96
  ? yield core.Supplier.get(this._options.apiKey)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -172,7 +172,7 @@ class Entities {
172
172
  method: "POST",
173
173
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
174
174
  ? yield core.Supplier.get(this._options.apiKey)
175
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
176
  contentType: "application/json",
177
177
  queryParameters: _queryParams,
178
178
  requestType: "json",
@@ -252,7 +252,7 @@ class Entities {
252
252
  method: "PUT",
253
253
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
254
254
  ? yield core.Supplier.get(this._options.apiKey)
255
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
255
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
256
256
  contentType: "application/json",
257
257
  queryParameters: _queryParams,
258
258
  requestType: "json",
@@ -324,7 +324,7 @@ class Entities {
324
324
  method: "GET",
325
325
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
326
326
  ? yield core.Supplier.get(this._options.apiKey)
327
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
327
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
328
  contentType: "application/json",
329
329
  queryParameters: _queryParams,
330
330
  requestType: "json",
@@ -399,7 +399,7 @@ class Entities {
399
399
  method: "POST",
400
400
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
401
401
  ? yield core.Supplier.get(this._options.apiKey)
402
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
402
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
403
403
  contentType: "application/json",
404
404
  queryParameters: _queryParams,
405
405
  requestType: "json",
@@ -476,7 +476,7 @@ class Entities {
476
476
  method: "PUT",
477
477
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
478
478
  ? yield core.Supplier.get(this._options.apiKey)
479
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
479
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
480
480
  contentType: "application/json",
481
481
  queryParameters: _queryParams,
482
482
  requestType: "json",
@@ -557,7 +557,7 @@ class Entities {
557
557
  method: "POST",
558
558
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
559
559
  ? yield core.Supplier.get(this._options.apiKey)
560
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
560
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
561
561
  contentType: "application/json",
562
562
  queryParameters: _queryParams,
563
563
  requestType: "json",
@@ -633,7 +633,7 @@ class Entities {
633
633
  method: "GET",
634
634
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
635
635
  ? yield core.Supplier.get(this._options.apiKey)
636
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
636
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
637
637
  contentType: "application/json",
638
638
  queryParameters: _queryParams,
639
639
  requestType: "json",
@@ -34,11 +34,12 @@ export declare class Search {
34
34
  * db: The database session
35
35
  * sync_id: The ID of the sync to search within
36
36
  * query: The search query text
37
+ * response_type: Type of response (raw results or AI completion)
37
38
  * user: The current user
38
39
  *
39
40
  * Returns:
40
41
  * --------
41
- * list[dict]: A list of search results
42
+ * dict: A dictionary containing search results or AI completion
42
43
  *
43
44
  * @param {AirweaveSDK.SearchSearchGetRequest} request
44
45
  * @param {Search.RequestOptions} requestOptions - Request-specific configuration.
@@ -52,5 +53,5 @@ export declare class Search {
52
53
  * creds: "creds"
53
54
  * })
54
55
  */
55
- search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown>[]>;
56
+ search(request: AirweaveSDK.SearchSearchGetRequest, requestOptions?: Search.RequestOptions): Promise<Record<string, unknown>>;
56
57
  }
@@ -67,11 +67,12 @@ class Search {
67
67
  * db: The database session
68
68
  * sync_id: The ID of the sync to search within
69
69
  * query: The search query text
70
+ * response_type: Type of response (raw results or AI completion)
70
71
  * user: The current user
71
72
  *
72
73
  * Returns:
73
74
  * --------
74
- * list[dict]: A list of search results
75
+ * dict: A dictionary containing search results or AI completion
75
76
  *
76
77
  * @param {AirweaveSDK.SearchSearchGetRequest} request
77
78
  * @param {Search.RequestOptions} requestOptions - Request-specific configuration.
@@ -88,17 +89,20 @@ class Search {
88
89
  search(request, requestOptions) {
89
90
  return __awaiter(this, void 0, void 0, function* () {
90
91
  var _a;
91
- const { syncId, query, creds } = request;
92
+ const { syncId, query, responseType, creds } = request;
92
93
  const _queryParams = {};
93
94
  _queryParams["sync_id"] = syncId;
94
95
  _queryParams["query"] = query;
96
+ if (responseType != null) {
97
+ _queryParams["response_type"] = responseType;
98
+ }
95
99
  _queryParams["creds"] = creds;
96
100
  const _response = yield core.fetcher({
97
101
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.AirweaveSDKEnvironment.Production, "search/"),
98
102
  method: "GET",
99
103
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
100
104
  ? yield core.Supplier.get(this._options.apiKey)
101
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
106
  contentType: "application/json",
103
107
  queryParameters: _queryParams,
104
108
  requestType: "json",
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as AirweaveSDK from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -18,5 +19,9 @@ export interface SearchSearchGetRequest {
18
19
  * Search query text
19
20
  */
20
21
  query: string;
22
+ /**
23
+ * Type of response: raw search results or AI completion
24
+ */
25
+ responseType?: AirweaveSDK.ResponseType;
21
26
  creds: string;
22
27
  }
@@ -94,7 +94,7 @@ class Sources {
94
94
  method: "GET",
95
95
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
96
96
  ? yield core.Supplier.get(this._options.apiKey)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -174,7 +174,7 @@ class Sources {
174
174
  method: "GET",
175
175
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
176
176
  ? yield core.Supplier.get(this._options.apiKey)
177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
178
  contentType: "application/json",
179
179
  queryParameters: _queryParams,
180
180
  requestType: "json",
@@ -115,7 +115,7 @@ class Sync {
115
115
  method: "GET",
116
116
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
117
117
  ? yield core.Supplier.get(this._options.apiKey)
118
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
119
  contentType: "application/json",
120
120
  queryParameters: _queryParams,
121
121
  requestType: "json",
@@ -209,7 +209,7 @@ class Sync {
209
209
  method: "POST",
210
210
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
211
211
  ? yield core.Supplier.get(this._options.apiKey)
212
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  queryParameters: _queryParams,
215
215
  requestType: "json",
@@ -298,7 +298,7 @@ class Sync {
298
298
  method: "GET",
299
299
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
300
300
  ? yield core.Supplier.get(this._options.apiKey)
301
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
302
  contentType: "application/json",
303
303
  queryParameters: _queryParams,
304
304
  requestType: "json",
@@ -380,7 +380,7 @@ class Sync {
380
380
  method: "GET",
381
381
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
382
382
  ? yield core.Supplier.get(this._options.apiKey)
383
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
383
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
384
384
  contentType: "application/json",
385
385
  queryParameters: _queryParams,
386
386
  requestType: "json",
@@ -466,7 +466,7 @@ class Sync {
466
466
  method: "DELETE",
467
467
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
468
468
  ? yield core.Supplier.get(this._options.apiKey)
469
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
469
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
470
470
  contentType: "application/json",
471
471
  queryParameters: _queryParams,
472
472
  requestType: "json",
@@ -556,7 +556,7 @@ class Sync {
556
556
  method: "PATCH",
557
557
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
558
558
  ? yield core.Supplier.get(this._options.apiKey)
559
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
559
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
560
560
  contentType: "application/json",
561
561
  queryParameters: _queryParams,
562
562
  requestType: "json",
@@ -640,7 +640,7 @@ class Sync {
640
640
  method: "POST",
641
641
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
642
642
  ? yield core.Supplier.get(this._options.apiKey)
643
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
643
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
644
644
  contentType: "application/json",
645
645
  queryParameters: _queryParams,
646
646
  requestType: "json",
@@ -722,7 +722,7 @@ class Sync {
722
722
  method: "GET",
723
723
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
724
724
  ? yield core.Supplier.get(this._options.apiKey)
725
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
725
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
726
726
  contentType: "application/json",
727
727
  queryParameters: _queryParams,
728
728
  requestType: "json",
@@ -806,7 +806,7 @@ class Sync {
806
806
  method: "GET",
807
807
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
808
808
  ? yield core.Supplier.get(this._options.apiKey)
809
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
809
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
810
810
  contentType: "application/json",
811
811
  queryParameters: _queryParams,
812
812
  requestType: "json",
@@ -882,7 +882,7 @@ class Sync {
882
882
  method: "GET",
883
883
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
884
884
  ? yield core.Supplier.get(this._options.apiKey)
885
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
885
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
886
886
  contentType: "application/json",
887
887
  requestType: "json",
888
888
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -948,7 +948,7 @@ class Sync {
948
948
  method: "GET",
949
949
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
950
950
  ? yield core.Supplier.get(this._options.apiKey)
951
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
951
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
952
952
  contentType: "application/json",
953
953
  queryParameters: _queryParams,
954
954
  requestType: "json",
@@ -94,7 +94,7 @@ class Transformers {
94
94
  method: "GET",
95
95
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
96
96
  ? yield core.Supplier.get(this._options.apiKey)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -172,7 +172,7 @@ class Transformers {
172
172
  method: "POST",
173
173
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
174
174
  ? yield core.Supplier.get(this._options.apiKey)
175
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
175
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
176
176
  contentType: "application/json",
177
177
  queryParameters: _queryParams,
178
178
  requestType: "json",
@@ -252,7 +252,7 @@ class Transformers {
252
252
  method: "PUT",
253
253
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
254
254
  ? yield core.Supplier.get(this._options.apiKey)
255
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
255
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
256
256
  contentType: "application/json",
257
257
  queryParameters: _queryParams,
258
258
  requestType: "json",
@@ -102,7 +102,7 @@ class Users {
102
102
  method: "GET",
103
103
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
104
104
  ? yield core.Supplier.get(this._options.apiKey)
105
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
106
  contentType: "application/json",
107
107
  queryParameters: _queryParams,
108
108
  requestType: "json",
@@ -189,7 +189,7 @@ class Users {
189
189
  method: "POST",
190
190
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
191
191
  ? yield core.Supplier.get(this._options.apiKey)
192
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
193
  contentType: "application/json",
194
194
  queryParameters: _queryParams,
195
195
  requestType: "json",
@@ -103,7 +103,7 @@ class WhiteLabels {
103
103
  method: "GET",
104
104
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
105
105
  ? yield core.Supplier.get(this._options.apiKey)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -189,7 +189,7 @@ class WhiteLabels {
189
189
  method: "POST",
190
190
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
191
191
  ? yield core.Supplier.get(this._options.apiKey)
192
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
193
  contentType: "application/json",
194
194
  queryParameters: _queryParams,
195
195
  requestType: "json",
@@ -272,7 +272,7 @@ class WhiteLabels {
272
272
  method: "GET",
273
273
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
274
274
  ? yield core.Supplier.get(this._options.apiKey)
275
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
275
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -359,7 +359,7 @@ class WhiteLabels {
359
359
  method: "PUT",
360
360
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
361
361
  ? yield core.Supplier.get(this._options.apiKey)
362
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
363
  contentType: "application/json",
364
364
  queryParameters: _queryParams,
365
365
  requestType: "json",
@@ -442,7 +442,7 @@ class WhiteLabels {
442
442
  method: "DELETE",
443
443
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
444
444
  ? yield core.Supplier.get(this._options.apiKey)
445
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
445
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
446
446
  contentType: "application/json",
447
447
  queryParameters: _queryParams,
448
448
  requestType: "json",
@@ -524,7 +524,7 @@ class WhiteLabels {
524
524
  method: "GET",
525
525
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
526
526
  ? yield core.Supplier.get(this._options.apiKey)
527
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
527
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
528
528
  contentType: "application/json",
529
529
  queryParameters: _queryParams,
530
530
  requestType: "json",
@@ -608,7 +608,7 @@ class WhiteLabels {
608
608
  method: "POST",
609
609
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
610
610
  ? yield core.Supplier.get(this._options.apiKey)
611
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
611
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
612
612
  contentType: "application/json",
613
613
  queryParameters: _queryParams,
614
614
  requestType: "json",
@@ -693,7 +693,7 @@ class WhiteLabels {
693
693
  method: "GET",
694
694
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
695
695
  ? yield core.Supplier.get(this._options.apiKey)
696
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.13", "User-Agent": "@airweave/sdk/v0.2.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
696
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "v0.2.15", "User-Agent": "@airweave/sdk/v0.2.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
697
697
  contentType: "application/json",
698
698
  queryParameters: _queryParams,
699
699
  requestType: "json",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response type for search results.
6
+ */
7
+ export type ResponseType = "raw" | "completion";
8
+ export declare const ResponseType: {
9
+ readonly Raw: "raw";
10
+ readonly Completion: "completion";
11
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ResponseType = void 0;
7
+ exports.ResponseType = {
8
+ Raw: "raw",
9
+ Completion: "completion",
10
+ };
@@ -27,6 +27,7 @@ export * from "./Fields";
27
27
  export * from "./HttpValidationError";
28
28
  export * from "./IntegrationType";
29
29
  export * from "./NodeType";
30
+ export * from "./ResponseType";
30
31
  export * from "./Source";
31
32
  export * from "./SourceWithConfigFields";
32
33
  export * from "./Sync";