@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/types/BrowseNode.d.ts +15 -0
- package/dist/cjs/api/types/BrowseNode.js +5 -0
- package/dist/cjs/api/types/BrowseTreeResponse.d.ts +12 -0
- package/dist/cjs/api/types/BrowseTreeResponse.js +5 -0
- package/dist/cjs/api/types/NodeSelectionData.d.ts +12 -0
- package/dist/cjs/api/types/NodeSelectionData.js +5 -0
- package/dist/cjs/api/types/NodeSelectionRequest.d.ts +10 -0
- package/dist/cjs/api/types/NodeSelectionRequest.js +5 -0
- package/dist/cjs/api/types/NodeSelectionResponse.d.ts +14 -0
- package/dist/cjs/api/types/NodeSelectionResponse.js +5 -0
- package/dist/cjs/api/types/SearchRequest.d.ts +2 -0
- package/dist/cjs/api/types/Source.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/types/BrowseNode.d.mts +15 -0
- package/dist/esm/api/types/BrowseNode.mjs +4 -0
- package/dist/esm/api/types/BrowseTreeResponse.d.mts +12 -0
- package/dist/esm/api/types/BrowseTreeResponse.mjs +4 -0
- package/dist/esm/api/types/NodeSelectionData.d.mts +12 -0
- package/dist/esm/api/types/NodeSelectionData.mjs +4 -0
- package/dist/esm/api/types/NodeSelectionRequest.d.mts +10 -0
- package/dist/esm/api/types/NodeSelectionRequest.mjs +4 -0
- package/dist/esm/api/types/NodeSelectionResponse.d.mts +14 -0
- package/dist/esm/api/types/NodeSelectionResponse.mjs +4 -0
- package/dist/esm/api/types/SearchRequest.d.mts +2 -0
- package/dist/esm/api/types/Source.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -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.
|
|
52
|
-
"User-Agent": "@airweave/sdk/v0.9.
|
|
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,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,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,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
|
+
}
|
|
@@ -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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.9.
|
|
1
|
+
export declare const SDK_VERSION = "v0.9.25";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
16
|
-
"User-Agent": "@airweave/sdk/v0.9.
|
|
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,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,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,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
|
+
}
|
|
@@ -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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.9.
|
|
1
|
+
export declare const SDK_VERSION = "v0.9.25";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.9.
|
|
1
|
+
export const SDK_VERSION = "v0.9.25";
|