@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.
Files changed (70) hide show
  1. package/api/resources/connections/client/Client.js +12 -12
  2. package/api/resources/destinations/client/Client.js +2 -2
  3. package/api/resources/embeddingModels/client/Client.js +2 -2
  4. package/api/resources/search/client/Client.d.ts +6 -8
  5. package/api/resources/search/client/Client.js +36 -22
  6. package/api/resources/search/client/requests/SearchSearchObjectsGetRequest.d.ts +23 -0
  7. package/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.d.ts +31 -0
  8. package/api/resources/search/client/requests/index.d.ts +2 -2
  9. package/api/resources/sources/client/Client.js +2 -2
  10. package/api/resources/sync/client/Client.js +8 -8
  11. package/api/resources/users/client/Client.js +1 -1
  12. package/api/resources/whiteLabels/client/Client.js +8 -8
  13. package/api/types/SearchSummary.d.ts +11 -0
  14. package/api/types/index.d.ts +1 -1
  15. package/api/types/index.js +1 -1
  16. package/dist/api/resources/connections/client/Client.js +12 -12
  17. package/dist/api/resources/destinations/client/Client.js +2 -2
  18. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  19. package/dist/api/resources/search/client/Client.d.ts +6 -8
  20. package/dist/api/resources/search/client/Client.js +36 -22
  21. package/dist/api/resources/search/client/requests/SearchSearchObjectsGetRequest.d.ts +23 -0
  22. package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryGetRequest.d.ts +31 -0
  23. package/dist/api/resources/search/client/requests/index.d.ts +2 -2
  24. package/dist/api/resources/sources/client/Client.js +2 -2
  25. package/dist/api/resources/sync/client/Client.js +8 -8
  26. package/dist/api/resources/users/client/Client.js +1 -1
  27. package/dist/api/resources/whiteLabels/client/Client.js +8 -8
  28. package/dist/api/types/SearchSummary.d.ts +11 -0
  29. package/dist/api/types/index.d.ts +1 -1
  30. package/dist/api/types/index.js +1 -1
  31. package/dist/serialization/resources/search/client/index.d.ts +0 -1
  32. package/dist/serialization/resources/search/client/index.js +1 -2
  33. package/dist/serialization/resources/search/client/search.d.ts +0 -5
  34. package/dist/serialization/resources/search/client/search.js +1 -3
  35. package/dist/serialization/types/SearchSummary.d.ts +14 -0
  36. package/dist/serialization/types/{MetadataSearchFilter.js → SearchSummary.js} +5 -5
  37. package/dist/serialization/types/index.d.ts +1 -1
  38. package/dist/serialization/types/index.js +1 -1
  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 -5
  43. package/serialization/resources/search/client/index.d.ts +0 -1
  44. package/serialization/resources/search/client/index.js +1 -2
  45. package/serialization/resources/search/client/search.d.ts +0 -5
  46. package/serialization/resources/search/client/search.js +1 -3
  47. package/serialization/types/SearchSummary.d.ts +14 -0
  48. package/serialization/types/{MetadataSearchFilter.js → SearchSummary.js} +5 -5
  49. package/serialization/types/index.d.ts +1 -1
  50. package/serialization/types/index.js +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +0 -16
  54. package/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +0 -16
  55. package/api/types/MetadataSearchFilter.d.ts +0 -11
  56. package/dist/api/resources/search/client/requests/SearchSearchObjectsPostRequest.d.ts +0 -16
  57. package/dist/api/resources/search/client/requests/SearchSummarySearchSummaryPostRequest.d.ts +0 -16
  58. package/dist/api/types/MetadataSearchFilter.d.ts +0 -11
  59. package/dist/serialization/resources/search/client/searchSummary.d.ts +0 -15
  60. package/dist/serialization/resources/search/client/searchSummary.js +0 -43
  61. package/dist/serialization/types/MetadataSearchFilter.d.ts +0 -14
  62. package/serialization/resources/search/client/searchSummary.d.ts +0 -15
  63. package/serialization/resources/search/client/searchSummary.js +0 -43
  64. package/serialization/types/MetadataSearchFilter.d.ts +0 -14
  65. /package/api/resources/search/client/requests/{SearchSearchObjectsPostRequest.js → SearchSearchObjectsGetRequest.js} +0 -0
  66. /package/api/resources/search/client/requests/{SearchSummarySearchSummaryPostRequest.js → SearchSummarySearchSummaryGetRequest.js} +0 -0
  67. /package/api/types/{MetadataSearchFilter.js → SearchSummary.js} +0 -0
  68. /package/dist/api/resources/search/client/requests/{SearchSearchObjectsPostRequest.js → SearchSearchObjectsGetRequest.js} +0 -0
  69. /package/dist/api/resources/search/client/requests/{SearchSummarySearchSummaryPostRequest.js → SearchSummarySearchSummaryGetRequest.js} +0 -0
  70. /package/dist/api/types/{MetadataSearchFilter.js → SearchSummary.js} +0 -0
@@ -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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.17", "User-Agent": "@airweave/sdk/0.1.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The summary of the search.
6
+ */
7
+ export interface SearchSummary {
8
+ summary: string;
9
+ foundEntityIds: string[];
10
+ searchMetadata: Record<string, unknown>;
11
+ }
@@ -17,8 +17,8 @@ export * from "./EmbeddingModelWithConfigFields";
17
17
  export * from "./Fields";
18
18
  export * from "./HttpValidationError";
19
19
  export * from "./IntegrationType";
20
- export * from "./MetadataSearchFilter";
21
20
  export * from "./SearchResult";
21
+ export * from "./SearchSummary";
22
22
  export * from "./Source";
23
23
  export * from "./SourceWithConfigFields";
24
24
  export * from "./Sync";
@@ -33,8 +33,8 @@ __exportStar(require("./EmbeddingModelWithConfigFields"), exports);
33
33
  __exportStar(require("./Fields"), exports);
34
34
  __exportStar(require("./HttpValidationError"), exports);
35
35
  __exportStar(require("./IntegrationType"), exports);
36
- __exportStar(require("./MetadataSearchFilter"), exports);
37
36
  __exportStar(require("./SearchResult"), exports);
37
+ __exportStar(require("./SearchSummary"), exports);
38
38
  __exportStar(require("./Source"), exports);
39
39
  __exportStar(require("./SourceWithConfigFields"), exports);
40
40
  __exportStar(require("./Sync"), exports);
@@ -1,2 +1 @@
1
- export * as searchSummary from "./searchSummary";
2
1
  export * as search from "./search";
@@ -33,6 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.search = exports.searchSummary = void 0;
37
- exports.searchSummary = __importStar(require("./searchSummary"));
36
+ exports.search = void 0;
38
37
  exports.search = __importStar(require("./search"));
@@ -4,12 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as AirweaveSDK from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { MetadataSearchFilter } from "../../../types/MetadataSearchFilter";
8
7
  import { SearchResult } from "../../../types/SearchResult";
9
- export declare const Request: core.serialization.Schema<serializers.search.search.Request.Raw, AirweaveSDK.MetadataSearchFilter[] | undefined>;
10
- export declare namespace Request {
11
- type Raw = MetadataSearchFilter.Raw[] | null | undefined;
12
- }
13
8
  export declare const Response: core.serialization.Schema<serializers.search.search.Response.Raw, AirweaveSDK.SearchResult[]>;
14
9
  export declare namespace Response {
15
10
  type Raw = SearchResult.Raw[];
@@ -36,9 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = exports.Request = void 0;
39
+ exports.Response = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const MetadataSearchFilter_1 = require("../../../types/MetadataSearchFilter");
42
41
  const SearchResult_1 = require("../../../types/SearchResult");
43
- exports.Request = core.serialization.list(MetadataSearchFilter_1.MetadataSearchFilter).optional();
44
42
  exports.Response = core.serialization.list(SearchResult_1.SearchResult);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const SearchSummary: core.serialization.ObjectSchema<serializers.SearchSummary.Raw, AirweaveSDK.SearchSummary>;
8
+ export declare namespace SearchSummary {
9
+ interface Raw {
10
+ summary: string;
11
+ found_entity_ids: string[];
12
+ search_metadata: Record<string, unknown>;
13
+ }
14
+ }
@@ -36,10 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.MetadataSearchFilter = void 0;
39
+ exports.SearchSummary = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.MetadataSearchFilter = core.serialization.object({
42
- key: core.serialization.string(),
43
- value: core.serialization.string(),
44
- operator: core.serialization.string(),
41
+ exports.SearchSummary = core.serialization.object({
42
+ summary: core.serialization.string(),
43
+ foundEntityIds: core.serialization.property("found_entity_ids", core.serialization.list(core.serialization.string())),
44
+ searchMetadata: core.serialization.property("search_metadata", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
45
45
  });
@@ -17,8 +17,8 @@ export * from "./EmbeddingModelWithConfigFields";
17
17
  export * from "./Fields";
18
18
  export * from "./HttpValidationError";
19
19
  export * from "./IntegrationType";
20
- export * from "./MetadataSearchFilter";
21
20
  export * from "./SearchResult";
21
+ export * from "./SearchSummary";
22
22
  export * from "./Source";
23
23
  export * from "./SourceWithConfigFields";
24
24
  export * from "./Sync";
@@ -33,8 +33,8 @@ __exportStar(require("./EmbeddingModelWithConfigFields"), exports);
33
33
  __exportStar(require("./Fields"), exports);
34
34
  __exportStar(require("./HttpValidationError"), exports);
35
35
  __exportStar(require("./IntegrationType"), exports);
36
- __exportStar(require("./MetadataSearchFilter"), exports);
37
36
  __exportStar(require("./SearchResult"), exports);
37
+ __exportStar(require("./SearchSummary"), exports);
38
38
  __exportStar(require("./Source"), exports);
39
39
  __exportStar(require("./SourceWithConfigFields"), exports);
40
40
  __exportStar(require("./Sync"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.17";
1
+ export declare const SDK_VERSION = "0.1.19";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.17";
4
+ exports.SDK_VERSION = "0.1.19";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "repository": "https://github.com/airweave-ai/typescript-sdk",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2346,7 +2346,7 @@ await client.whiteLabels.listWhiteLabelSyncs("white_label_id");
2346
2346
 
2347
2347
  ## Search
2348
2348
 
2349
- <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">searchSummary</a>({ ...params }) -> string</code></summary>
2349
+ <details><summary><code>client.search.<a href="/src/api/resources/search/client/Client.ts">searchSummary</a>({ ...params }) -> AirweaveSDK.SearchSummary</code></summary>
2350
2350
  <dl>
2351
2351
  <dd>
2352
2352
 
@@ -2376,7 +2376,6 @@ Search for summarized information.
2376
2376
  ```typescript
2377
2377
  await client.search.searchSummary({
2378
2378
  query: "query",
2379
- body: undefined,
2380
2379
  });
2381
2380
  ```
2382
2381
 
@@ -2393,7 +2392,7 @@ await client.search.searchSummary({
2393
2392
  <dl>
2394
2393
  <dd>
2395
2394
 
2396
- **request:** `AirweaveSDK.SearchSummarySearchSummaryPostRequest`
2395
+ **request:** `AirweaveSDK.SearchSummarySearchSummaryGetRequest`
2397
2396
 
2398
2397
  </dd>
2399
2398
  </dl>
@@ -2454,7 +2453,6 @@ Search for a specific item.
2454
2453
  ```typescript
2455
2454
  await client.search.search({
2456
2455
  query: "query",
2457
- body: undefined,
2458
2456
  });
2459
2457
  ```
2460
2458
 
@@ -2471,7 +2469,7 @@ await client.search.search({
2471
2469
  <dl>
2472
2470
  <dd>
2473
2471
 
2474
- **request:** `AirweaveSDK.SearchSearchObjectsPostRequest`
2472
+ **request:** `AirweaveSDK.SearchSearchObjectsGetRequest`
2475
2473
 
2476
2474
  </dd>
2477
2475
  </dl>
@@ -1,2 +1 @@
1
- export * as searchSummary from "./searchSummary";
2
1
  export * as search from "./search";
@@ -33,6 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.search = exports.searchSummary = void 0;
37
- exports.searchSummary = __importStar(require("./searchSummary"));
36
+ exports.search = void 0;
38
37
  exports.search = __importStar(require("./search"));
@@ -4,12 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as AirweaveSDK from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
- import { MetadataSearchFilter } from "../../../types/MetadataSearchFilter";
8
7
  import { SearchResult } from "../../../types/SearchResult";
9
- export declare const Request: core.serialization.Schema<serializers.search.search.Request.Raw, AirweaveSDK.MetadataSearchFilter[] | undefined>;
10
- export declare namespace Request {
11
- type Raw = MetadataSearchFilter.Raw[] | null | undefined;
12
- }
13
8
  export declare const Response: core.serialization.Schema<serializers.search.search.Response.Raw, AirweaveSDK.SearchResult[]>;
14
9
  export declare namespace Response {
15
10
  type Raw = SearchResult.Raw[];
@@ -36,9 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = exports.Request = void 0;
39
+ exports.Response = void 0;
40
40
  const core = __importStar(require("../../../../core"));
41
- const MetadataSearchFilter_1 = require("../../../types/MetadataSearchFilter");
42
41
  const SearchResult_1 = require("../../../types/SearchResult");
43
- exports.Request = core.serialization.list(MetadataSearchFilter_1.MetadataSearchFilter).optional();
44
42
  exports.Response = core.serialization.list(SearchResult_1.SearchResult);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as AirweaveSDK from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const SearchSummary: core.serialization.ObjectSchema<serializers.SearchSummary.Raw, AirweaveSDK.SearchSummary>;
8
+ export declare namespace SearchSummary {
9
+ interface Raw {
10
+ summary: string;
11
+ found_entity_ids: string[];
12
+ search_metadata: Record<string, unknown>;
13
+ }
14
+ }
@@ -36,10 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.MetadataSearchFilter = void 0;
39
+ exports.SearchSummary = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.MetadataSearchFilter = core.serialization.object({
42
- key: core.serialization.string(),
43
- value: core.serialization.string(),
44
- operator: core.serialization.string(),
41
+ exports.SearchSummary = core.serialization.object({
42
+ summary: core.serialization.string(),
43
+ foundEntityIds: core.serialization.property("found_entity_ids", core.serialization.list(core.serialization.string())),
44
+ searchMetadata: core.serialization.property("search_metadata", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
45
45
  });
@@ -17,8 +17,8 @@ export * from "./EmbeddingModelWithConfigFields";
17
17
  export * from "./Fields";
18
18
  export * from "./HttpValidationError";
19
19
  export * from "./IntegrationType";
20
- export * from "./MetadataSearchFilter";
21
20
  export * from "./SearchResult";
21
+ export * from "./SearchSummary";
22
22
  export * from "./Source";
23
23
  export * from "./SourceWithConfigFields";
24
24
  export * from "./Sync";
@@ -33,8 +33,8 @@ __exportStar(require("./EmbeddingModelWithConfigFields"), exports);
33
33
  __exportStar(require("./Fields"), exports);
34
34
  __exportStar(require("./HttpValidationError"), exports);
35
35
  __exportStar(require("./IntegrationType"), exports);
36
- __exportStar(require("./MetadataSearchFilter"), exports);
37
36
  __exportStar(require("./SearchResult"), exports);
37
+ __exportStar(require("./SearchSummary"), exports);
38
38
  __exportStar(require("./Source"), exports);
39
39
  __exportStar(require("./SourceWithConfigFields"), exports);
40
40
  __exportStar(require("./Sync"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.17";
1
+ export declare const SDK_VERSION = "0.1.19";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.17";
4
+ exports.SDK_VERSION = "0.1.19";
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * query: "query",
9
- * body: undefined
10
- * }
11
- */
12
- export interface SearchSearchObjectsPostRequest {
13
- query: string;
14
- syncId?: string;
15
- body?: AirweaveSDK.MetadataSearchFilter[];
16
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * query: "query",
9
- * body: undefined
10
- * }
11
- */
12
- export interface SearchSummarySearchSummaryPostRequest {
13
- query: string;
14
- syncId?: string;
15
- body?: AirweaveSDK.MetadataSearchFilter[];
16
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * The filter for the search.
6
- */
7
- export interface MetadataSearchFilter {
8
- key: string;
9
- value: string;
10
- operator: string;
11
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * query: "query",
9
- * body: undefined
10
- * }
11
- */
12
- export interface SearchSearchObjectsPostRequest {
13
- query: string;
14
- syncId?: string;
15
- body?: AirweaveSDK.MetadataSearchFilter[];
16
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as AirweaveSDK from "../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * query: "query",
9
- * body: undefined
10
- * }
11
- */
12
- export interface SearchSummarySearchSummaryPostRequest {
13
- query: string;
14
- syncId?: string;
15
- body?: AirweaveSDK.MetadataSearchFilter[];
16
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * The filter for the search.
6
- */
7
- export interface MetadataSearchFilter {
8
- key: string;
9
- value: string;
10
- operator: string;
11
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as AirweaveSDK from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { MetadataSearchFilter } from "../../../types/MetadataSearchFilter";
8
- export declare const Request: core.serialization.Schema<serializers.search.searchSummary.Request.Raw, AirweaveSDK.MetadataSearchFilter[] | undefined>;
9
- export declare namespace Request {
10
- type Raw = MetadataSearchFilter.Raw[] | null | undefined;
11
- }
12
- export declare const Response: core.serialization.Schema<serializers.search.searchSummary.Response.Raw, string>;
13
- export declare namespace Response {
14
- type Raw = string;
15
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = exports.Request = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- const MetadataSearchFilter_1 = require("../../../types/MetadataSearchFilter");
42
- exports.Request = core.serialization.list(MetadataSearchFilter_1.MetadataSearchFilter).optional();
43
- exports.Response = core.serialization.string();
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as AirweaveSDK from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const MetadataSearchFilter: core.serialization.ObjectSchema<serializers.MetadataSearchFilter.Raw, AirweaveSDK.MetadataSearchFilter>;
8
- export declare namespace MetadataSearchFilter {
9
- interface Raw {
10
- key: string;
11
- value: string;
12
- operator: string;
13
- }
14
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../../../index";
5
- import * as AirweaveSDK from "../../../../api/index";
6
- import * as core from "../../../../core";
7
- import { MetadataSearchFilter } from "../../../types/MetadataSearchFilter";
8
- export declare const Request: core.serialization.Schema<serializers.search.searchSummary.Request.Raw, AirweaveSDK.MetadataSearchFilter[] | undefined>;
9
- export declare namespace Request {
10
- type Raw = MetadataSearchFilter.Raw[] | null | undefined;
11
- }
12
- export declare const Response: core.serialization.Schema<serializers.search.searchSummary.Response.Raw, string>;
13
- export declare namespace Response {
14
- type Raw = string;
15
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Response = exports.Request = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- const MetadataSearchFilter_1 = require("../../../types/MetadataSearchFilter");
42
- exports.Request = core.serialization.list(MetadataSearchFilter_1.MetadataSearchFilter).optional();
43
- exports.Response = core.serialization.string();
@@ -1,14 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as serializers from "../index";
5
- import * as AirweaveSDK from "../../api/index";
6
- import * as core from "../../core";
7
- export declare const MetadataSearchFilter: core.serialization.ObjectSchema<serializers.MetadataSearchFilter.Raw, AirweaveSDK.MetadataSearchFilter>;
8
- export declare namespace MetadataSearchFilter {
9
- interface Raw {
10
- key: string;
11
- value: string;
12
- operator: string;
13
- }
14
- }