@airweave/sdk 0.9.23 → 0.9.25

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 (35) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/types/BrowseNode.d.ts +15 -0
  3. package/dist/cjs/api/types/BrowseNode.js +5 -0
  4. package/dist/cjs/api/types/BrowseTreeResponse.d.ts +12 -0
  5. package/dist/cjs/api/types/BrowseTreeResponse.js +5 -0
  6. package/dist/cjs/api/types/NodeSelectionData.d.ts +12 -0
  7. package/dist/cjs/api/types/NodeSelectionData.js +5 -0
  8. package/dist/cjs/api/types/NodeSelectionRequest.d.ts +10 -0
  9. package/dist/cjs/api/types/NodeSelectionRequest.js +5 -0
  10. package/dist/cjs/api/types/NodeSelectionResponse.d.ts +14 -0
  11. package/dist/cjs/api/types/NodeSelectionResponse.js +5 -0
  12. package/dist/cjs/api/types/SearchRequest.d.ts +2 -0
  13. package/dist/cjs/api/types/Source.d.ts +2 -0
  14. package/dist/cjs/api/types/index.d.ts +5 -0
  15. package/dist/cjs/api/types/index.js +5 -0
  16. package/dist/cjs/version.d.ts +1 -1
  17. package/dist/cjs/version.js +1 -1
  18. package/dist/esm/Client.mjs +2 -2
  19. package/dist/esm/api/types/BrowseNode.d.mts +15 -0
  20. package/dist/esm/api/types/BrowseNode.mjs +4 -0
  21. package/dist/esm/api/types/BrowseTreeResponse.d.mts +12 -0
  22. package/dist/esm/api/types/BrowseTreeResponse.mjs +4 -0
  23. package/dist/esm/api/types/NodeSelectionData.d.mts +12 -0
  24. package/dist/esm/api/types/NodeSelectionData.mjs +4 -0
  25. package/dist/esm/api/types/NodeSelectionRequest.d.mts +10 -0
  26. package/dist/esm/api/types/NodeSelectionRequest.mjs +4 -0
  27. package/dist/esm/api/types/NodeSelectionResponse.d.mts +14 -0
  28. package/dist/esm/api/types/NodeSelectionResponse.mjs +4 -0
  29. package/dist/esm/api/types/SearchRequest.d.mts +2 -0
  30. package/dist/esm/api/types/Source.d.mts +2 -0
  31. package/dist/esm/api/types/index.d.mts +5 -0
  32. package/dist/esm/api/types/index.mjs +5 -0
  33. package/dist/esm/version.d.mts +1 -1
  34. package/dist/esm/version.mjs +1 -1
  35. 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.9.23",
52
- "User-Agent": "@airweave/sdk/v0.9.23",
51
+ "X-Fern-SDK-Version": "v0.9.25",
52
+ "User-Agent": "@airweave/sdk/v0.9.25",
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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Source-agnostic browse tree node returned by source.get_browse_children().
6
+ */
7
+ export interface BrowseNode {
8
+ source_node_id: string;
9
+ node_type: string;
10
+ title: string;
11
+ description?: string;
12
+ item_count?: number;
13
+ has_children?: boolean;
14
+ node_metadata?: Record<string, unknown>;
15
+ }
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * API response for browse tree.
7
+ */
8
+ export interface BrowseTreeResponse {
9
+ nodes: AirweaveSDK.BrowseNode[];
10
+ parent_node_id?: string;
11
+ total: number;
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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Typed representation of a node selection loaded for targeted sync.
6
+ */
7
+ export interface NodeSelectionData {
8
+ source_node_id: string;
9
+ node_type: string;
10
+ node_title?: string;
11
+ node_metadata?: Record<string, unknown>;
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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request body for selecting nodes.
6
+ */
7
+ export interface NodeSelectionRequest {
8
+ /** Source node IDs to select */
9
+ source_node_ids: 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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response after submitting node selections and triggering sync.
6
+ */
7
+ export interface NodeSelectionResponse {
8
+ /** Source connection ID */
9
+ source_connection_id: string;
10
+ selections_count: number;
11
+ /** ID of the triggered sync job */
12
+ sync_job_id: string;
13
+ message?: 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 });
@@ -19,6 +19,8 @@ export interface SearchRequest {
19
19
  offset?: number;
20
20
  /** Maximum number of results to return (default: 1000) */
21
21
  limit?: number;
22
+ /** Limit search to specific source connections within the collection. */
23
+ source_connection_ids?: string[];
22
24
  /** DEPRECATED: This field is accepted for backwards compatibility but ignored. Temporal relevance has been removed. */
23
25
  temporal_relevance?: number;
24
26
  /** Generate query variations to improve recall (default: true) */
@@ -42,6 +42,8 @@ export interface Source {
42
42
  rate_limit_level?: string;
43
43
  /** Feature flag required to access this source. If set, only organizations with this feature enabled can see/use this source. */
44
44
  feature_flag?: string;
45
+ /** Whether this source supports lazy-loaded browse tree for selective node syncing. */
46
+ supports_browse_tree?: boolean;
45
47
  /** Schema definition for authentication fields required to connect to this source. Only present for sources using DIRECT authentication. OAuth sources handle authentication through browser flows. */
46
48
  auth_fields?: AirweaveSDK.Fields;
47
49
  /** Schema definition for configuration fields required to customize this source. Describes field types, validation rules, and user interface hints. */
@@ -33,6 +33,8 @@ export * from "./BillingStatus.js";
33
33
  export * from "./BillingTransition.js";
34
34
  export * from "./BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.js";
35
35
  export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js";
36
+ export * from "./BrowseNode.js";
37
+ export * from "./BrowseTreeResponse.js";
36
38
  export * from "./CheckStatus.js";
37
39
  export * from "./CheckoutSessionRequest.js";
38
40
  export * from "./CheckoutSessionResponse.js";
@@ -65,6 +67,9 @@ export * from "./LegacySearchResponse.js";
65
67
  export * from "./LivenessResponse.js";
66
68
  export * from "./MemberResponse.js";
67
69
  export * from "./MessageResponse.js";
70
+ export * from "./NodeSelectionData.js";
71
+ export * from "./NodeSelectionRequest.js";
72
+ export * from "./NodeSelectionResponse.js";
68
73
  export * from "./NotFoundErrorResponse.js";
69
74
  export * from "./OAuthBrowserAuthentication.js";
70
75
  export * from "./OAuthTokenAuthentication.js";
@@ -49,6 +49,8 @@ __exportStar(require("./BillingStatus.js"), exports);
49
49
  __exportStar(require("./BillingTransition.js"), exports);
50
50
  __exportStar(require("./BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.js"), exports);
51
51
  __exportStar(require("./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.js"), exports);
52
+ __exportStar(require("./BrowseNode.js"), exports);
53
+ __exportStar(require("./BrowseTreeResponse.js"), exports);
52
54
  __exportStar(require("./CheckStatus.js"), exports);
53
55
  __exportStar(require("./CheckoutSessionRequest.js"), exports);
54
56
  __exportStar(require("./CheckoutSessionResponse.js"), exports);
@@ -81,6 +83,9 @@ __exportStar(require("./LegacySearchResponse.js"), exports);
81
83
  __exportStar(require("./LivenessResponse.js"), exports);
82
84
  __exportStar(require("./MemberResponse.js"), exports);
83
85
  __exportStar(require("./MessageResponse.js"), exports);
86
+ __exportStar(require("./NodeSelectionData.js"), exports);
87
+ __exportStar(require("./NodeSelectionRequest.js"), exports);
88
+ __exportStar(require("./NodeSelectionResponse.js"), exports);
84
89
  __exportStar(require("./NotFoundErrorResponse.js"), exports);
85
90
  __exportStar(require("./OAuthBrowserAuthentication.js"), exports);
86
91
  __exportStar(require("./OAuthTokenAuthentication.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.9.23";
1
+ export declare const SDK_VERSION = "v0.9.25";
@@ -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.9.23";
4
+ exports.SDK_VERSION = "v0.9.25";
@@ -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.9.23",
16
- "User-Agent": "@airweave/sdk/v0.9.23",
15
+ "X-Fern-SDK-Version": "v0.9.25",
16
+ "User-Agent": "@airweave/sdk/v0.9.25",
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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Source-agnostic browse tree node returned by source.get_browse_children().
6
+ */
7
+ export interface BrowseNode {
8
+ source_node_id: string;
9
+ node_type: string;
10
+ title: string;
11
+ description?: string;
12
+ item_count?: number;
13
+ has_children?: boolean;
14
+ node_metadata?: Record<string, unknown>;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.mjs";
5
+ /**
6
+ * API response for browse tree.
7
+ */
8
+ export interface BrowseTreeResponse {
9
+ nodes: AirweaveSDK.BrowseNode[];
10
+ parent_node_id?: string;
11
+ total: number;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Typed representation of a node selection loaded for targeted sync.
6
+ */
7
+ export interface NodeSelectionData {
8
+ source_node_id: string;
9
+ node_type: string;
10
+ node_title?: string;
11
+ node_metadata?: Record<string, unknown>;
12
+ }
@@ -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
+ * Request body for selecting nodes.
6
+ */
7
+ export interface NodeSelectionRequest {
8
+ /** Source node IDs to select */
9
+ source_node_ids: 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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response after submitting node selections and triggering sync.
6
+ */
7
+ export interface NodeSelectionResponse {
8
+ /** Source connection ID */
9
+ source_connection_id: string;
10
+ selections_count: number;
11
+ /** ID of the triggered sync job */
12
+ sync_job_id: string;
13
+ message?: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -19,6 +19,8 @@ export interface SearchRequest {
19
19
  offset?: number;
20
20
  /** Maximum number of results to return (default: 1000) */
21
21
  limit?: number;
22
+ /** Limit search to specific source connections within the collection. */
23
+ source_connection_ids?: string[];
22
24
  /** DEPRECATED: This field is accepted for backwards compatibility but ignored. Temporal relevance has been removed. */
23
25
  temporal_relevance?: number;
24
26
  /** Generate query variations to improve recall (default: true) */
@@ -42,6 +42,8 @@ export interface Source {
42
42
  rate_limit_level?: string;
43
43
  /** Feature flag required to access this source. If set, only organizations with this feature enabled can see/use this source. */
44
44
  feature_flag?: string;
45
+ /** Whether this source supports lazy-loaded browse tree for selective node syncing. */
46
+ supports_browse_tree?: boolean;
45
47
  /** Schema definition for authentication fields required to connect to this source. Only present for sources using DIRECT authentication. OAuth sources handle authentication through browser flows. */
46
48
  auth_fields?: AirweaveSDK.Fields;
47
49
  /** Schema definition for configuration fields required to customize this source. Describes field types, validation rules, and user interface hints. */
@@ -33,6 +33,8 @@ export * from "./BillingStatus.mjs";
33
33
  export * from "./BillingTransition.mjs";
34
34
  export * from "./BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.mjs";
35
35
  export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs";
36
+ export * from "./BrowseNode.mjs";
37
+ export * from "./BrowseTreeResponse.mjs";
36
38
  export * from "./CheckStatus.mjs";
37
39
  export * from "./CheckoutSessionRequest.mjs";
38
40
  export * from "./CheckoutSessionResponse.mjs";
@@ -65,6 +67,9 @@ export * from "./LegacySearchResponse.mjs";
65
67
  export * from "./LivenessResponse.mjs";
66
68
  export * from "./MemberResponse.mjs";
67
69
  export * from "./MessageResponse.mjs";
70
+ export * from "./NodeSelectionData.mjs";
71
+ export * from "./NodeSelectionRequest.mjs";
72
+ export * from "./NodeSelectionResponse.mjs";
68
73
  export * from "./NotFoundErrorResponse.mjs";
69
74
  export * from "./OAuthBrowserAuthentication.mjs";
70
75
  export * from "./OAuthTokenAuthentication.mjs";
@@ -33,6 +33,8 @@ export * from "./BillingStatus.mjs";
33
33
  export * from "./BillingTransition.mjs";
34
34
  export * from "./BodyChangeMemberRoleOrganizationsOrganizationIdMembersUserIdPatch.mjs";
35
35
  export * from "./BodyResyncWithExecutionConfigAdminResyncSyncIdPost.mjs";
36
+ export * from "./BrowseNode.mjs";
37
+ export * from "./BrowseTreeResponse.mjs";
36
38
  export * from "./CheckStatus.mjs";
37
39
  export * from "./CheckoutSessionRequest.mjs";
38
40
  export * from "./CheckoutSessionResponse.mjs";
@@ -65,6 +67,9 @@ export * from "./LegacySearchResponse.mjs";
65
67
  export * from "./LivenessResponse.mjs";
66
68
  export * from "./MemberResponse.mjs";
67
69
  export * from "./MessageResponse.mjs";
70
+ export * from "./NodeSelectionData.mjs";
71
+ export * from "./NodeSelectionRequest.mjs";
72
+ export * from "./NodeSelectionResponse.mjs";
68
73
  export * from "./NotFoundErrorResponse.mjs";
69
74
  export * from "./OAuthBrowserAuthentication.mjs";
70
75
  export * from "./OAuthTokenAuthentication.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.9.23";
1
+ export declare const SDK_VERSION = "v0.9.25";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.9.23";
1
+ export const SDK_VERSION = "v0.9.25";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.9.23",
3
+ "version": "v0.9.25",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",