@airweave/sdk 0.8.89 → 0.8.90

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 (67) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/types/AgenticSearchAccessControl.d.ts +12 -0
  3. package/dist/cjs/api/types/AgenticSearchAccessControl.js +5 -0
  4. package/dist/cjs/api/types/AgenticSearchAnswer.d.ts +13 -0
  5. package/dist/cjs/api/types/AgenticSearchAnswer.js +5 -0
  6. package/dist/cjs/api/types/AgenticSearchBreadcrumb.d.ts +14 -0
  7. package/dist/cjs/api/types/AgenticSearchBreadcrumb.js +5 -0
  8. package/dist/cjs/api/types/AgenticSearchCitation.d.ts +10 -0
  9. package/dist/cjs/api/types/AgenticSearchCitation.js +5 -0
  10. package/dist/cjs/api/types/AgenticSearchFilterCondition.d.ts +36 -0
  11. package/dist/cjs/api/types/AgenticSearchFilterCondition.js +5 -0
  12. package/dist/cjs/api/types/AgenticSearchFilterGroup.d.ts +37 -0
  13. package/dist/cjs/api/types/AgenticSearchFilterGroup.js +5 -0
  14. package/dist/cjs/api/types/AgenticSearchFilterOperator.d.ts +18 -0
  15. package/dist/cjs/api/types/AgenticSearchFilterOperator.js +17 -0
  16. package/dist/cjs/api/types/AgenticSearchFilterableField.d.ts +25 -0
  17. package/dist/cjs/api/types/AgenticSearchFilterableField.js +21 -0
  18. package/dist/cjs/api/types/AgenticSearchMode.d.ts +14 -0
  19. package/dist/cjs/api/types/AgenticSearchMode.js +10 -0
  20. package/dist/cjs/api/types/AgenticSearchRequest.d.ts +17 -0
  21. package/dist/cjs/api/types/AgenticSearchRequest.js +5 -0
  22. package/dist/cjs/api/types/AgenticSearchResponse.d.ts +11 -0
  23. package/dist/cjs/api/types/AgenticSearchResponse.js +5 -0
  24. package/dist/cjs/api/types/AgenticSearchResult.d.ts +33 -0
  25. package/dist/cjs/api/types/AgenticSearchResult.js +5 -0
  26. package/dist/cjs/api/types/AgenticSearchSystemMetadata.d.ts +20 -0
  27. package/dist/cjs/api/types/AgenticSearchSystemMetadata.js +5 -0
  28. package/dist/cjs/api/types/FeatureFlag.d.ts +2 -1
  29. package/dist/cjs/api/types/FeatureFlag.js +1 -0
  30. package/dist/cjs/api/types/index.d.ts +13 -0
  31. package/dist/cjs/api/types/index.js +13 -0
  32. package/dist/cjs/version.d.ts +1 -1
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/esm/Client.mjs +2 -2
  35. package/dist/esm/api/types/AgenticSearchAccessControl.d.mts +12 -0
  36. package/dist/esm/api/types/AgenticSearchAccessControl.mjs +4 -0
  37. package/dist/esm/api/types/AgenticSearchAnswer.d.mts +13 -0
  38. package/dist/esm/api/types/AgenticSearchAnswer.mjs +4 -0
  39. package/dist/esm/api/types/AgenticSearchBreadcrumb.d.mts +14 -0
  40. package/dist/esm/api/types/AgenticSearchBreadcrumb.mjs +4 -0
  41. package/dist/esm/api/types/AgenticSearchCitation.d.mts +10 -0
  42. package/dist/esm/api/types/AgenticSearchCitation.mjs +4 -0
  43. package/dist/esm/api/types/AgenticSearchFilterCondition.d.mts +36 -0
  44. package/dist/esm/api/types/AgenticSearchFilterCondition.mjs +4 -0
  45. package/dist/esm/api/types/AgenticSearchFilterGroup.d.mts +37 -0
  46. package/dist/esm/api/types/AgenticSearchFilterGroup.mjs +4 -0
  47. package/dist/esm/api/types/AgenticSearchFilterOperator.d.mts +18 -0
  48. package/dist/esm/api/types/AgenticSearchFilterOperator.mjs +14 -0
  49. package/dist/esm/api/types/AgenticSearchFilterableField.d.mts +25 -0
  50. package/dist/esm/api/types/AgenticSearchFilterableField.mjs +18 -0
  51. package/dist/esm/api/types/AgenticSearchMode.d.mts +14 -0
  52. package/dist/esm/api/types/AgenticSearchMode.mjs +7 -0
  53. package/dist/esm/api/types/AgenticSearchRequest.d.mts +17 -0
  54. package/dist/esm/api/types/AgenticSearchRequest.mjs +4 -0
  55. package/dist/esm/api/types/AgenticSearchResponse.d.mts +11 -0
  56. package/dist/esm/api/types/AgenticSearchResponse.mjs +4 -0
  57. package/dist/esm/api/types/AgenticSearchResult.d.mts +33 -0
  58. package/dist/esm/api/types/AgenticSearchResult.mjs +4 -0
  59. package/dist/esm/api/types/AgenticSearchSystemMetadata.d.mts +20 -0
  60. package/dist/esm/api/types/AgenticSearchSystemMetadata.mjs +4 -0
  61. package/dist/esm/api/types/FeatureFlag.d.mts +2 -1
  62. package/dist/esm/api/types/FeatureFlag.mjs +1 -0
  63. package/dist/esm/api/types/index.d.mts +13 -0
  64. package/dist/esm/api/types/index.mjs +13 -0
  65. package/dist/esm/version.d.mts +1 -1
  66. package/dist/esm/version.mjs +1 -1
  67. package/package.json +1 -1
@@ -48,8 +48,8 @@ class AirweaveSDKClient {
48
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "@airweave/sdk",
51
- "X-Fern-SDK-Version": "v0.8.89",
52
- "User-Agent": "@airweave/sdk/v0.8.89",
51
+ "X-Fern-SDK-Version": "v0.8.90",
52
+ "User-Agent": "@airweave/sdk/v0.8.90",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Access control in agentic search result.
6
+ */
7
+ export interface AgenticSearchAccessControl {
8
+ /** Principal IDs who can view this entity. None if unknown. */
9
+ viewers?: string[];
10
+ /** Whether this entity is publicly accessible. None if unknown. */
11
+ is_public?: boolean;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Answer generated from search results.
7
+ */
8
+ export interface AgenticSearchAnswer {
9
+ /** The answer text. Should be clear and well-structured. */
10
+ text: string;
11
+ /** List of entity_ids from search results used to compose the answer. */
12
+ citations: AirweaveSDK.AgenticSearchCitation[];
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Breadcrumb in agentic search result.
6
+ */
7
+ export interface AgenticSearchBreadcrumb {
8
+ /** ID of the entity in the source. */
9
+ entity_id: string;
10
+ /** Display name of the entity. */
11
+ name: string;
12
+ /** Entity class name (e.g., 'AsanaProjectEntity'). */
13
+ entity_type: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Citation for a source used in the answer.
6
+ */
7
+ export interface AgenticSearchCitation {
8
+ /** The entity ID of a search result used in the answer */
9
+ entity_id: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * A single filter condition.
7
+ *
8
+ * Pydantic validates that:
9
+ * - ``field`` is a valid AgenticSearchFilterableField enum value
10
+ * - ``operator`` is a valid AgenticSearchFilterOperator enum value
11
+ * - ``value`` matches the expected types
12
+ * - The combination of field + operator + value is semantically valid
13
+ *
14
+ * Invalid filters raise ``pydantic.ValidationError`` automatically.
15
+ *
16
+ * Examples:
17
+ * {"field": "airweave_system_metadata.source_name", "operator": "equals",
18
+ * "value": "notion"}
19
+ * {"field": "created_at", "operator": "greater_than",
20
+ * "value": "2024-01-01T00:00:00Z"}
21
+ * {"field": "breadcrumbs.name", "operator": "contains", "value": "Engineering"}
22
+ */
23
+ export interface AgenticSearchFilterCondition {
24
+ /** Field to filter on (use dot notation for nested fields). */
25
+ field: AirweaveSDK.AgenticSearchFilterableField;
26
+ /** The comparison operator to use. */
27
+ operator: AirweaveSDK.AgenticSearchFilterOperator;
28
+ /** Value to compare against. Use a list for 'in' and 'not_in' operators. */
29
+ value: AgenticSearchFilterCondition.Value;
30
+ }
31
+ export declare namespace AgenticSearchFilterCondition {
32
+ /**
33
+ * Value to compare against. Use a list for 'in' and 'not_in' operators.
34
+ */
35
+ type Value = string | number | number | boolean | string[] | number[];
36
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * A group of filter conditions combined with AND.
7
+ *
8
+ * Multiple filter groups are combined with OR, allowing expressions like:
9
+ * (A AND B) OR (C AND D)
10
+ *
11
+ * Examples:
12
+ * Single group (AND):
13
+ * {"conditions": [
14
+ * {"field": "airweave_system_metadata.source_name",
15
+ * "operator": "equals", "value": "slack"},
16
+ * {"field": "airweave_system_metadata.entity_type",
17
+ * "operator": "equals", "value": "SlackMessageEntity"}
18
+ * ]}
19
+ *
20
+ * Multiple groups (OR between groups, AND within):
21
+ * [
22
+ * {"conditions": [{"field": "name", "operator": "equals",
23
+ * "value": "doc1"}]},
24
+ * {"conditions": [{"field": "name", "operator": "equals",
25
+ * "value": "doc2"}]}
26
+ * ]
27
+ *
28
+ * Breadcrumb filtering:
29
+ * {"conditions": [
30
+ * {"field": "breadcrumbs.name", "operator": "contains",
31
+ * "value": "Engineering"}
32
+ * ]}
33
+ */
34
+ export interface AgenticSearchFilterGroup {
35
+ /** Filter conditions within this group, combined with AND */
36
+ conditions: AirweaveSDK.AgenticSearchFilterCondition[];
37
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Supported filter operators.
6
+ */
7
+ export type AgenticSearchFilterOperator = "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in";
8
+ export declare const AgenticSearchFilterOperator: {
9
+ readonly Equals: "equals";
10
+ readonly NotEquals: "not_equals";
11
+ readonly Contains: "contains";
12
+ readonly GreaterThan: "greater_than";
13
+ readonly LessThan: "less_than";
14
+ readonly GreaterThanOrEqual: "greater_than_or_equal";
15
+ readonly LessThanOrEqual: "less_than_or_equal";
16
+ readonly In: "in";
17
+ readonly NotIn: "not_in";
18
+ };
@@ -0,0 +1,17 @@
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.AgenticSearchFilterOperator = void 0;
7
+ exports.AgenticSearchFilterOperator = {
8
+ Equals: "equals",
9
+ NotEquals: "not_equals",
10
+ Contains: "contains",
11
+ GreaterThan: "greater_than",
12
+ LessThan: "less_than",
13
+ GreaterThanOrEqual: "greater_than_or_equal",
14
+ LessThanOrEqual: "less_than_or_equal",
15
+ In: "in",
16
+ NotIn: "not_in",
17
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Filterable fields in agentic search.
6
+ *
7
+ * Uses dot notation for nested fields (e.g., breadcrumbs.name,
8
+ * airweave_system_metadata.source_name).
9
+ */
10
+ export type AgenticSearchFilterableField = "entity_id" | "name" | "created_at" | "updated_at" | "breadcrumbs.entity_id" | "breadcrumbs.name" | "breadcrumbs.entity_type" | "airweave_system_metadata.entity_type" | "airweave_system_metadata.source_name" | "airweave_system_metadata.original_entity_id" | "airweave_system_metadata.chunk_index" | "airweave_system_metadata.sync_id" | "airweave_system_metadata.sync_job_id";
11
+ export declare const AgenticSearchFilterableField: {
12
+ readonly EntityId: "entity_id";
13
+ readonly Name: "name";
14
+ readonly CreatedAt: "created_at";
15
+ readonly UpdatedAt: "updated_at";
16
+ readonly BreadcrumbsEntityId: "breadcrumbs.entity_id";
17
+ readonly BreadcrumbsName: "breadcrumbs.name";
18
+ readonly BreadcrumbsEntityType: "breadcrumbs.entity_type";
19
+ readonly AirweaveSystemMetadataEntityType: "airweave_system_metadata.entity_type";
20
+ readonly AirweaveSystemMetadataSourceName: "airweave_system_metadata.source_name";
21
+ readonly AirweaveSystemMetadataOriginalEntityId: "airweave_system_metadata.original_entity_id";
22
+ readonly AirweaveSystemMetadataChunkIndex: "airweave_system_metadata.chunk_index";
23
+ readonly AirweaveSystemMetadataSyncId: "airweave_system_metadata.sync_id";
24
+ readonly AirweaveSystemMetadataSyncJobId: "airweave_system_metadata.sync_job_id";
25
+ };
@@ -0,0 +1,21 @@
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.AgenticSearchFilterableField = void 0;
7
+ exports.AgenticSearchFilterableField = {
8
+ EntityId: "entity_id",
9
+ Name: "name",
10
+ CreatedAt: "created_at",
11
+ UpdatedAt: "updated_at",
12
+ BreadcrumbsEntityId: "breadcrumbs.entity_id",
13
+ BreadcrumbsName: "breadcrumbs.name",
14
+ BreadcrumbsEntityType: "breadcrumbs.entity_type",
15
+ AirweaveSystemMetadataEntityType: "airweave_system_metadata.entity_type",
16
+ AirweaveSystemMetadataSourceName: "airweave_system_metadata.source_name",
17
+ AirweaveSystemMetadataOriginalEntityId: "airweave_system_metadata.original_entity_id",
18
+ AirweaveSystemMetadataChunkIndex: "airweave_system_metadata.chunk_index",
19
+ AirweaveSystemMetadataSyncId: "airweave_system_metadata.sync_id",
20
+ AirweaveSystemMetadataSyncJobId: "airweave_system_metadata.sync_job_id",
21
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Search execution mode.
6
+ *
7
+ * - FAST: Performs a single search pass.
8
+ * - THINKING: Performs an intelligent multi-step search to find the best results.
9
+ */
10
+ export type AgenticSearchMode = "fast" | "thinking";
11
+ export declare const AgenticSearchMode: {
12
+ readonly Fast: "fast";
13
+ readonly Thinking: "thinking";
14
+ };
@@ -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.AgenticSearchMode = void 0;
7
+ exports.AgenticSearchMode = {
8
+ Fast: "fast",
9
+ Thinking: "thinking",
10
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Request schema for agentic search.
7
+ */
8
+ export interface AgenticSearchRequest {
9
+ /** The natural language search query. */
10
+ query: string;
11
+ /** Filter groups that are always applied to search results. Conditions within a group are combined with AND. Multiple groups are combined with OR. Leave empty for no filtering. */
12
+ filter?: AirweaveSDK.AgenticSearchFilterGroup[];
13
+ /** The search mode. 'fast' performs a single search pass. 'thinking' performs an intelligent multi-step search to find the best results (may take longer). Defaults to 'thinking'. */
14
+ mode?: AirweaveSDK.AgenticSearchMode;
15
+ /** Maximum number of results to return. The response will contain at most this many results, but the agent can decide to return fewer. When not set, all results are returned. */
16
+ limit?: number;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Response schema for agentic search.
7
+ */
8
+ export interface AgenticSearchResponse {
9
+ results: AirweaveSDK.AgenticSearchResult[];
10
+ answer: AirweaveSDK.AgenticSearchAnswer;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Agentic search result.
7
+ */
8
+ export interface AgenticSearchResult {
9
+ /** Original entity ID. */
10
+ entity_id: string;
11
+ /** Entity display name. */
12
+ name: string;
13
+ /** Relevance score from the search engine. */
14
+ relevance_score: number;
15
+ /** Breadcrumbs showing entity hierarchy. */
16
+ breadcrumbs: AirweaveSDK.AgenticSearchBreadcrumb[];
17
+ /** When the entity was created. */
18
+ created_at?: string;
19
+ /** When the entity was last updated. */
20
+ updated_at?: string;
21
+ /** Semantically searchable text content */
22
+ textual_representation: string;
23
+ /** System metadata */
24
+ airweave_system_metadata: AirweaveSDK.AgenticSearchSystemMetadata;
25
+ /** Access control */
26
+ access: AirweaveSDK.AgenticSearchAccessControl;
27
+ /** URL to view the entity in its source application (e.g., Notion, Asana). */
28
+ web_url: string;
29
+ /** Download URL for file entities. Only present for FileEntity types. */
30
+ url?: string;
31
+ /** All source-specific fields. */
32
+ raw_source_fields: Record<string, unknown>;
33
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * System metadata in agentic search result.
6
+ */
7
+ export interface AgenticSearchSystemMetadata {
8
+ /** Name of the source this entity belongs to. */
9
+ source_name: string;
10
+ /** Type of the entity this entity represents in the source. */
11
+ entity_type: string;
12
+ /** ID of the sync this entity belongs to. */
13
+ sync_id: string;
14
+ /** ID of the sync job this entity belongs to. */
15
+ sync_job_id: string;
16
+ /** Index of the chunk in the file. */
17
+ chunk_index: number;
18
+ /** Original entity ID */
19
+ original_entity_id: string;
20
+ }
@@ -0,0 +1,5 @@
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,12 +6,13 @@
6
6
  *
7
7
  * Add new flags here to enable feature gating at the organization level.
8
8
  */
9
- export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting" | "zephyr_scale" | "sharepoint_2019_v2" | "api_key_admin_sync";
9
+ export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting" | "zephyr_scale" | "sharepoint_2019_v2" | "agentic_search" | "api_key_admin_sync";
10
10
  export declare const FeatureFlag: {
11
11
  readonly S3Destination: "s3_destination";
12
12
  readonly PrioritySupport: "priority_support";
13
13
  readonly SourceRateLimiting: "source_rate_limiting";
14
14
  readonly ZephyrScale: "zephyr_scale";
15
15
  readonly Sharepoint2019V2: "sharepoint_2019_v2";
16
+ readonly AgenticSearch: "agentic_search";
16
17
  readonly ApiKeyAdminSync: "api_key_admin_sync";
17
18
  };
@@ -10,5 +10,6 @@ exports.FeatureFlag = {
10
10
  SourceRateLimiting: "source_rate_limiting",
11
11
  ZephyrScale: "zephyr_scale",
12
12
  Sharepoint2019V2: "sharepoint_2019_v2",
13
+ AgenticSearch: "agentic_search",
13
14
  ApiKeyAdminSync: "api_key_admin_sync",
14
15
  };
@@ -4,6 +4,19 @@ export * from "./ActionCheckRequest.js";
4
4
  export * from "./ActionCheckResponse.js";
5
5
  export * from "./AdminSearchDestination.js";
6
6
  export * from "./AdminSyncInfo.js";
7
+ export * from "./AgenticSearchAccessControl.js";
8
+ export * from "./AgenticSearchAnswer.js";
9
+ export * from "./AgenticSearchBreadcrumb.js";
10
+ export * from "./AgenticSearchCitation.js";
11
+ export * from "./AgenticSearchFilterCondition.js";
12
+ export * from "./AgenticSearchFilterGroup.js";
13
+ export * from "./AgenticSearchFilterOperator.js";
14
+ export * from "./AgenticSearchFilterableField.js";
15
+ export * from "./AgenticSearchMode.js";
16
+ export * from "./AgenticSearchRequest.js";
17
+ export * from "./AgenticSearchResponse.js";
18
+ export * from "./AgenticSearchResult.js";
19
+ export * from "./AgenticSearchSystemMetadata.js";
7
20
  export * from "./AuthProvider.js";
8
21
  export * from "./AuthProviderAuthentication.js";
9
22
  export * from "./AuthProviderConnection.js";
@@ -20,6 +20,19 @@ __exportStar(require("./ActionCheckRequest.js"), exports);
20
20
  __exportStar(require("./ActionCheckResponse.js"), exports);
21
21
  __exportStar(require("./AdminSearchDestination.js"), exports);
22
22
  __exportStar(require("./AdminSyncInfo.js"), exports);
23
+ __exportStar(require("./AgenticSearchAccessControl.js"), exports);
24
+ __exportStar(require("./AgenticSearchAnswer.js"), exports);
25
+ __exportStar(require("./AgenticSearchBreadcrumb.js"), exports);
26
+ __exportStar(require("./AgenticSearchCitation.js"), exports);
27
+ __exportStar(require("./AgenticSearchFilterCondition.js"), exports);
28
+ __exportStar(require("./AgenticSearchFilterGroup.js"), exports);
29
+ __exportStar(require("./AgenticSearchFilterOperator.js"), exports);
30
+ __exportStar(require("./AgenticSearchFilterableField.js"), exports);
31
+ __exportStar(require("./AgenticSearchMode.js"), exports);
32
+ __exportStar(require("./AgenticSearchRequest.js"), exports);
33
+ __exportStar(require("./AgenticSearchResponse.js"), exports);
34
+ __exportStar(require("./AgenticSearchResult.js"), exports);
35
+ __exportStar(require("./AgenticSearchSystemMetadata.js"), exports);
23
36
  __exportStar(require("./AuthProvider.js"), exports);
24
37
  __exportStar(require("./AuthProviderAuthentication.js"), exports);
25
38
  __exportStar(require("./AuthProviderConnection.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.8.89";
1
+ export declare const SDK_VERSION = "v0.8.90";
@@ -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 = "v0.8.89";
4
+ exports.SDK_VERSION = "v0.8.90";
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
12
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
13
13
  "X-Fern-Language": "JavaScript",
14
14
  "X-Fern-SDK-Name": "@airweave/sdk",
15
- "X-Fern-SDK-Version": "v0.8.89",
16
- "User-Agent": "@airweave/sdk/v0.8.89",
15
+ "X-Fern-SDK-Version": "v0.8.90",
16
+ "User-Agent": "@airweave/sdk/v0.8.90",
17
17
  "X-Fern-Runtime": core.RUNTIME.type,
18
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
19
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Access control in agentic search result.
6
+ */
7
+ export interface AgenticSearchAccessControl {
8
+ /** Principal IDs who can view this entity. None if unknown. */
9
+ viewers?: string[];
10
+ /** Whether this entity is publicly accessible. None if unknown. */
11
+ is_public?: boolean;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.mjs";
5
+ /**
6
+ * Answer generated from search results.
7
+ */
8
+ export interface AgenticSearchAnswer {
9
+ /** The answer text. Should be clear and well-structured. */
10
+ text: string;
11
+ /** List of entity_ids from search results used to compose the answer. */
12
+ citations: AirweaveSDK.AgenticSearchCitation[];
13
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Breadcrumb in agentic search result.
6
+ */
7
+ export interface AgenticSearchBreadcrumb {
8
+ /** ID of the entity in the source. */
9
+ entity_id: string;
10
+ /** Display name of the entity. */
11
+ name: string;
12
+ /** Entity class name (e.g., 'AsanaProjectEntity'). */
13
+ entity_type: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Citation for a source used in the answer.
6
+ */
7
+ export interface AgenticSearchCitation {
8
+ /** The entity ID of a search result used in the answer */
9
+ entity_id: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.mjs";
5
+ /**
6
+ * A single filter condition.
7
+ *
8
+ * Pydantic validates that:
9
+ * - ``field`` is a valid AgenticSearchFilterableField enum value
10
+ * - ``operator`` is a valid AgenticSearchFilterOperator enum value
11
+ * - ``value`` matches the expected types
12
+ * - The combination of field + operator + value is semantically valid
13
+ *
14
+ * Invalid filters raise ``pydantic.ValidationError`` automatically.
15
+ *
16
+ * Examples:
17
+ * {"field": "airweave_system_metadata.source_name", "operator": "equals",
18
+ * "value": "notion"}
19
+ * {"field": "created_at", "operator": "greater_than",
20
+ * "value": "2024-01-01T00:00:00Z"}
21
+ * {"field": "breadcrumbs.name", "operator": "contains", "value": "Engineering"}
22
+ */
23
+ export interface AgenticSearchFilterCondition {
24
+ /** Field to filter on (use dot notation for nested fields). */
25
+ field: AirweaveSDK.AgenticSearchFilterableField;
26
+ /** The comparison operator to use. */
27
+ operator: AirweaveSDK.AgenticSearchFilterOperator;
28
+ /** Value to compare against. Use a list for 'in' and 'not_in' operators. */
29
+ value: AgenticSearchFilterCondition.Value;
30
+ }
31
+ export declare namespace AgenticSearchFilterCondition {
32
+ /**
33
+ * Value to compare against. Use a list for 'in' and 'not_in' operators.
34
+ */
35
+ type Value = string | number | number | boolean | string[] | number[];
36
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.mjs";
5
+ /**
6
+ * A group of filter conditions combined with AND.
7
+ *
8
+ * Multiple filter groups are combined with OR, allowing expressions like:
9
+ * (A AND B) OR (C AND D)
10
+ *
11
+ * Examples:
12
+ * Single group (AND):
13
+ * {"conditions": [
14
+ * {"field": "airweave_system_metadata.source_name",
15
+ * "operator": "equals", "value": "slack"},
16
+ * {"field": "airweave_system_metadata.entity_type",
17
+ * "operator": "equals", "value": "SlackMessageEntity"}
18
+ * ]}
19
+ *
20
+ * Multiple groups (OR between groups, AND within):
21
+ * [
22
+ * {"conditions": [{"field": "name", "operator": "equals",
23
+ * "value": "doc1"}]},
24
+ * {"conditions": [{"field": "name", "operator": "equals",
25
+ * "value": "doc2"}]}
26
+ * ]
27
+ *
28
+ * Breadcrumb filtering:
29
+ * {"conditions": [
30
+ * {"field": "breadcrumbs.name", "operator": "contains",
31
+ * "value": "Engineering"}
32
+ * ]}
33
+ */
34
+ export interface AgenticSearchFilterGroup {
35
+ /** Filter conditions within this group, combined with AND */
36
+ conditions: AirweaveSDK.AgenticSearchFilterCondition[];
37
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Supported filter operators.
6
+ */
7
+ export type AgenticSearchFilterOperator = "equals" | "not_equals" | "contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "in" | "not_in";
8
+ export declare const AgenticSearchFilterOperator: {
9
+ readonly Equals: "equals";
10
+ readonly NotEquals: "not_equals";
11
+ readonly Contains: "contains";
12
+ readonly GreaterThan: "greater_than";
13
+ readonly LessThan: "less_than";
14
+ readonly GreaterThanOrEqual: "greater_than_or_equal";
15
+ readonly LessThanOrEqual: "less_than_or_equal";
16
+ readonly In: "in";
17
+ readonly NotIn: "not_in";
18
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const AgenticSearchFilterOperator = {
5
+ Equals: "equals",
6
+ NotEquals: "not_equals",
7
+ Contains: "contains",
8
+ GreaterThan: "greater_than",
9
+ LessThan: "less_than",
10
+ GreaterThanOrEqual: "greater_than_or_equal",
11
+ LessThanOrEqual: "less_than_or_equal",
12
+ In: "in",
13
+ NotIn: "not_in",
14
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Filterable fields in agentic search.
6
+ *
7
+ * Uses dot notation for nested fields (e.g., breadcrumbs.name,
8
+ * airweave_system_metadata.source_name).
9
+ */
10
+ export type AgenticSearchFilterableField = "entity_id" | "name" | "created_at" | "updated_at" | "breadcrumbs.entity_id" | "breadcrumbs.name" | "breadcrumbs.entity_type" | "airweave_system_metadata.entity_type" | "airweave_system_metadata.source_name" | "airweave_system_metadata.original_entity_id" | "airweave_system_metadata.chunk_index" | "airweave_system_metadata.sync_id" | "airweave_system_metadata.sync_job_id";
11
+ export declare const AgenticSearchFilterableField: {
12
+ readonly EntityId: "entity_id";
13
+ readonly Name: "name";
14
+ readonly CreatedAt: "created_at";
15
+ readonly UpdatedAt: "updated_at";
16
+ readonly BreadcrumbsEntityId: "breadcrumbs.entity_id";
17
+ readonly BreadcrumbsName: "breadcrumbs.name";
18
+ readonly BreadcrumbsEntityType: "breadcrumbs.entity_type";
19
+ readonly AirweaveSystemMetadataEntityType: "airweave_system_metadata.entity_type";
20
+ readonly AirweaveSystemMetadataSourceName: "airweave_system_metadata.source_name";
21
+ readonly AirweaveSystemMetadataOriginalEntityId: "airweave_system_metadata.original_entity_id";
22
+ readonly AirweaveSystemMetadataChunkIndex: "airweave_system_metadata.chunk_index";
23
+ readonly AirweaveSystemMetadataSyncId: "airweave_system_metadata.sync_id";
24
+ readonly AirweaveSystemMetadataSyncJobId: "airweave_system_metadata.sync_job_id";
25
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const AgenticSearchFilterableField = {
5
+ EntityId: "entity_id",
6
+ Name: "name",
7
+ CreatedAt: "created_at",
8
+ UpdatedAt: "updated_at",
9
+ BreadcrumbsEntityId: "breadcrumbs.entity_id",
10
+ BreadcrumbsName: "breadcrumbs.name",
11
+ BreadcrumbsEntityType: "breadcrumbs.entity_type",
12
+ AirweaveSystemMetadataEntityType: "airweave_system_metadata.entity_type",
13
+ AirweaveSystemMetadataSourceName: "airweave_system_metadata.source_name",
14
+ AirweaveSystemMetadataOriginalEntityId: "airweave_system_metadata.original_entity_id",
15
+ AirweaveSystemMetadataChunkIndex: "airweave_system_metadata.chunk_index",
16
+ AirweaveSystemMetadataSyncId: "airweave_system_metadata.sync_id",
17
+ AirweaveSystemMetadataSyncJobId: "airweave_system_metadata.sync_job_id",
18
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Search execution mode.
6
+ *
7
+ * - FAST: Performs a single search pass.
8
+ * - THINKING: Performs an intelligent multi-step search to find the best results.
9
+ */
10
+ export type AgenticSearchMode = "fast" | "thinking";
11
+ export declare const AgenticSearchMode: {
12
+ readonly Fast: "fast";
13
+ readonly Thinking: "thinking";
14
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const AgenticSearchMode = {
5
+ Fast: "fast",
6
+ Thinking: "thinking",
7
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.mjs";
5
+ /**
6
+ * Request schema for agentic search.
7
+ */
8
+ export interface AgenticSearchRequest {
9
+ /** The natural language search query. */
10
+ query: string;
11
+ /** Filter groups that are always applied to search results. Conditions within a group are combined with AND. Multiple groups are combined with OR. Leave empty for no filtering. */
12
+ filter?: AirweaveSDK.AgenticSearchFilterGroup[];
13
+ /** The search mode. 'fast' performs a single search pass. 'thinking' performs an intelligent multi-step search to find the best results (may take longer). Defaults to 'thinking'. */
14
+ mode?: AirweaveSDK.AgenticSearchMode;
15
+ /** Maximum number of results to return. The response will contain at most this many results, but the agent can decide to return fewer. When not set, all results are returned. */
16
+ limit?: number;
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.mjs";
5
+ /**
6
+ * Response schema for agentic search.
7
+ */
8
+ export interface AgenticSearchResponse {
9
+ results: AirweaveSDK.AgenticSearchResult[];
10
+ answer: AirweaveSDK.AgenticSearchAnswer;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.mjs";
5
+ /**
6
+ * Agentic search result.
7
+ */
8
+ export interface AgenticSearchResult {
9
+ /** Original entity ID. */
10
+ entity_id: string;
11
+ /** Entity display name. */
12
+ name: string;
13
+ /** Relevance score from the search engine. */
14
+ relevance_score: number;
15
+ /** Breadcrumbs showing entity hierarchy. */
16
+ breadcrumbs: AirweaveSDK.AgenticSearchBreadcrumb[];
17
+ /** When the entity was created. */
18
+ created_at?: string;
19
+ /** When the entity was last updated. */
20
+ updated_at?: string;
21
+ /** Semantically searchable text content */
22
+ textual_representation: string;
23
+ /** System metadata */
24
+ airweave_system_metadata: AirweaveSDK.AgenticSearchSystemMetadata;
25
+ /** Access control */
26
+ access: AirweaveSDK.AgenticSearchAccessControl;
27
+ /** URL to view the entity in its source application (e.g., Notion, Asana). */
28
+ web_url: string;
29
+ /** Download URL for file entities. Only present for FileEntity types. */
30
+ url?: string;
31
+ /** All source-specific fields. */
32
+ raw_source_fields: Record<string, unknown>;
33
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * System metadata in agentic search result.
6
+ */
7
+ export interface AgenticSearchSystemMetadata {
8
+ /** Name of the source this entity belongs to. */
9
+ source_name: string;
10
+ /** Type of the entity this entity represents in the source. */
11
+ entity_type: string;
12
+ /** ID of the sync this entity belongs to. */
13
+ sync_id: string;
14
+ /** ID of the sync job this entity belongs to. */
15
+ sync_job_id: string;
16
+ /** Index of the chunk in the file. */
17
+ chunk_index: number;
18
+ /** Original entity ID */
19
+ original_entity_id: string;
20
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -6,12 +6,13 @@
6
6
  *
7
7
  * Add new flags here to enable feature gating at the organization level.
8
8
  */
9
- export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting" | "zephyr_scale" | "sharepoint_2019_v2" | "api_key_admin_sync";
9
+ export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting" | "zephyr_scale" | "sharepoint_2019_v2" | "agentic_search" | "api_key_admin_sync";
10
10
  export declare const FeatureFlag: {
11
11
  readonly S3Destination: "s3_destination";
12
12
  readonly PrioritySupport: "priority_support";
13
13
  readonly SourceRateLimiting: "source_rate_limiting";
14
14
  readonly ZephyrScale: "zephyr_scale";
15
15
  readonly Sharepoint2019V2: "sharepoint_2019_v2";
16
+ readonly AgenticSearch: "agentic_search";
16
17
  readonly ApiKeyAdminSync: "api_key_admin_sync";
17
18
  };
@@ -7,5 +7,6 @@ export const FeatureFlag = {
7
7
  SourceRateLimiting: "source_rate_limiting",
8
8
  ZephyrScale: "zephyr_scale",
9
9
  Sharepoint2019V2: "sharepoint_2019_v2",
10
+ AgenticSearch: "agentic_search",
10
11
  ApiKeyAdminSync: "api_key_admin_sync",
11
12
  };
@@ -4,6 +4,19 @@ export * from "./ActionCheckRequest.mjs";
4
4
  export * from "./ActionCheckResponse.mjs";
5
5
  export * from "./AdminSearchDestination.mjs";
6
6
  export * from "./AdminSyncInfo.mjs";
7
+ export * from "./AgenticSearchAccessControl.mjs";
8
+ export * from "./AgenticSearchAnswer.mjs";
9
+ export * from "./AgenticSearchBreadcrumb.mjs";
10
+ export * from "./AgenticSearchCitation.mjs";
11
+ export * from "./AgenticSearchFilterCondition.mjs";
12
+ export * from "./AgenticSearchFilterGroup.mjs";
13
+ export * from "./AgenticSearchFilterOperator.mjs";
14
+ export * from "./AgenticSearchFilterableField.mjs";
15
+ export * from "./AgenticSearchMode.mjs";
16
+ export * from "./AgenticSearchRequest.mjs";
17
+ export * from "./AgenticSearchResponse.mjs";
18
+ export * from "./AgenticSearchResult.mjs";
19
+ export * from "./AgenticSearchSystemMetadata.mjs";
7
20
  export * from "./AuthProvider.mjs";
8
21
  export * from "./AuthProviderAuthentication.mjs";
9
22
  export * from "./AuthProviderConnection.mjs";
@@ -4,6 +4,19 @@ export * from "./ActionCheckRequest.mjs";
4
4
  export * from "./ActionCheckResponse.mjs";
5
5
  export * from "./AdminSearchDestination.mjs";
6
6
  export * from "./AdminSyncInfo.mjs";
7
+ export * from "./AgenticSearchAccessControl.mjs";
8
+ export * from "./AgenticSearchAnswer.mjs";
9
+ export * from "./AgenticSearchBreadcrumb.mjs";
10
+ export * from "./AgenticSearchCitation.mjs";
11
+ export * from "./AgenticSearchFilterCondition.mjs";
12
+ export * from "./AgenticSearchFilterGroup.mjs";
13
+ export * from "./AgenticSearchFilterOperator.mjs";
14
+ export * from "./AgenticSearchFilterableField.mjs";
15
+ export * from "./AgenticSearchMode.mjs";
16
+ export * from "./AgenticSearchRequest.mjs";
17
+ export * from "./AgenticSearchResponse.mjs";
18
+ export * from "./AgenticSearchResult.mjs";
19
+ export * from "./AgenticSearchSystemMetadata.mjs";
7
20
  export * from "./AuthProvider.mjs";
8
21
  export * from "./AuthProviderAuthentication.mjs";
9
22
  export * from "./AuthProviderConnection.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.8.89";
1
+ export declare const SDK_VERSION = "v0.8.90";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.8.89";
1
+ export const SDK_VERSION = "v0.8.90";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.8.89",
3
+ "version": "v0.8.90",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",