@airweave/sdk 0.9.23 → 0.9.26
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/ConnectSessionContext.d.ts +26 -0
- package/dist/cjs/api/types/ConnectSessionContext.js +5 -0
- package/dist/cjs/api/types/ConnectSessionCreate.d.ts +20 -0
- package/dist/cjs/api/types/ConnectSessionCreate.js +5 -0
- package/dist/cjs/api/types/ConnectSessionMode.d.ts +18 -0
- package/dist/cjs/api/types/ConnectSessionMode.js +12 -0
- package/dist/cjs/api/types/ConnectSessionResponse.d.ts +16 -0
- package/dist/cjs/api/types/ConnectSessionResponse.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 +9 -7
- package/dist/cjs/api/types/index.d.ts +9 -0
- package/dist/cjs/api/types/index.js +9 -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/ConnectSessionContext.d.mts +26 -0
- package/dist/esm/api/types/ConnectSessionContext.mjs +4 -0
- package/dist/esm/api/types/ConnectSessionCreate.d.mts +20 -0
- package/dist/esm/api/types/ConnectSessionCreate.mjs +4 -0
- package/dist/esm/api/types/ConnectSessionMode.d.mts +18 -0
- package/dist/esm/api/types/ConnectSessionMode.mjs +9 -0
- package/dist/esm/api/types/ConnectSessionResponse.d.mts +16 -0
- package/dist/esm/api/types/ConnectSessionResponse.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 +9 -7
- package/dist/esm/api/types/index.d.mts +9 -0
- package/dist/esm/api/types/index.mjs +9 -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.26",
|
|
52
|
+
"User-Agent": "@airweave/sdk/v0.9.26",
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Decoded session context from a validated token.
|
|
7
|
+
*
|
|
8
|
+
* This is returned by GET /connect/sessions and used internally
|
|
9
|
+
* for authorization in session-authenticated endpoints.
|
|
10
|
+
*/
|
|
11
|
+
export interface ConnectSessionContext {
|
|
12
|
+
/** Unique identifier for this session */
|
|
13
|
+
session_id: string;
|
|
14
|
+
/** Organization that owns this session */
|
|
15
|
+
organization_id: string;
|
|
16
|
+
/** Readable collection ID this session grants access to */
|
|
17
|
+
collection_id: string;
|
|
18
|
+
/** List of allowed integration short_names, or None for all */
|
|
19
|
+
allowed_integrations?: string[];
|
|
20
|
+
/** Session mode determining allowed operations */
|
|
21
|
+
mode: AirweaveSDK.ConnectSessionMode;
|
|
22
|
+
/** End user identifier from your system, if provided during session creation */
|
|
23
|
+
end_user_id?: string;
|
|
24
|
+
/** Timestamp when this session expires */
|
|
25
|
+
expires_at: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for creating a new connect session.
|
|
7
|
+
*
|
|
8
|
+
* The session token grants temporary access to manage source connections
|
|
9
|
+
* within a specific collection.
|
|
10
|
+
*/
|
|
11
|
+
export interface ConnectSessionCreate {
|
|
12
|
+
/** The readable ID of the collection to grant access to */
|
|
13
|
+
readable_collection_id: string;
|
|
14
|
+
/** Optional list of source short_names to restrict which integrations can be connected. If not provided, all integrations are allowed. */
|
|
15
|
+
allowed_integrations?: string[];
|
|
16
|
+
/** Session mode determining allowed operations */
|
|
17
|
+
mode?: AirweaveSDK.ConnectSessionMode;
|
|
18
|
+
/** Optional identifier for the end user in your system. This is included in the session token and can be used for audit tracking and filtering. */
|
|
19
|
+
end_user_id?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Mode for connect session determining allowed operations.
|
|
6
|
+
*
|
|
7
|
+
* - ALL: Can perform all operations (connect, manage, reauth)
|
|
8
|
+
* - CONNECT: Can only add new connections
|
|
9
|
+
* - MANAGE: Can only view/delete existing connections
|
|
10
|
+
* - REAUTH: Can only re-authenticate existing connections
|
|
11
|
+
*/
|
|
12
|
+
export type ConnectSessionMode = "all" | "connect" | "manage" | "reauth";
|
|
13
|
+
export declare const ConnectSessionMode: {
|
|
14
|
+
readonly All: "all";
|
|
15
|
+
readonly Connect: "connect";
|
|
16
|
+
readonly Manage: "manage";
|
|
17
|
+
readonly Reauth: "reauth";
|
|
18
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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.ConnectSessionMode = void 0;
|
|
7
|
+
exports.ConnectSessionMode = {
|
|
8
|
+
All: "all",
|
|
9
|
+
Connect: "connect",
|
|
10
|
+
Manage: "manage",
|
|
11
|
+
Reauth: "reauth",
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Response returned when creating a connect session.
|
|
6
|
+
*
|
|
7
|
+
* Contains the session token that should be passed to the frontend SDK.
|
|
8
|
+
*/
|
|
9
|
+
export interface ConnectSessionResponse {
|
|
10
|
+
/** Unique identifier for this session */
|
|
11
|
+
session_id: string;
|
|
12
|
+
/** HMAC-signed token to use for authentication in subsequent requests */
|
|
13
|
+
session_token: string;
|
|
14
|
+
/** Timestamp when this session expires (typically 10 minutes) */
|
|
15
|
+
expires_at: string;
|
|
16
|
+
}
|
|
@@ -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) */
|
|
@@ -30,22 +30,24 @@ export interface Source {
|
|
|
30
30
|
output_entity_definitions?: string[];
|
|
31
31
|
/** Categorization tags to help users discover and filter sources by domain or use case. */
|
|
32
32
|
labels?: string[];
|
|
33
|
-
/** Whether this source supports cursor-based continuous syncing for incremental data extraction.
|
|
33
|
+
/** Whether this source supports cursor-based continuous syncing for incremental data extraction. */
|
|
34
34
|
supports_continuous?: boolean;
|
|
35
|
-
/** Whether this source uses federated search instead of traditional syncing.
|
|
35
|
+
/** Whether this source uses federated search instead of traditional syncing. */
|
|
36
36
|
federated_search?: boolean;
|
|
37
|
-
/** Whether this source's entities have timestamps that enable recency-based ranking.
|
|
37
|
+
/** Whether this source's entities have timestamps that enable recency-based ranking. */
|
|
38
38
|
supports_temporal_relevance?: boolean;
|
|
39
|
-
/** Whether this source supports document-level access control.
|
|
39
|
+
/** Whether this source supports document-level access control. */
|
|
40
40
|
supports_access_control?: boolean;
|
|
41
41
|
/** Rate limiting level for this source: 'org' (organization-wide), 'connection' (per-connection/per-user), or None (no rate limiting). */
|
|
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
|
-
/**
|
|
45
|
+
/** Whether this source supports lazy-loaded browse tree for selective node syncing. */
|
|
46
|
+
supports_browse_tree?: boolean;
|
|
47
|
+
/** Schema definition for authentication fields required to connect to this source. */
|
|
46
48
|
auth_fields?: AirweaveSDK.Fields;
|
|
47
|
-
/** Schema definition for configuration fields required to customize this source.
|
|
49
|
+
/** Schema definition for configuration fields required to customize this source. */
|
|
48
50
|
config_fields: AirweaveSDK.Fields;
|
|
49
|
-
/** List of auth provider short names that support this source
|
|
51
|
+
/** List of auth provider short names that support this source. */
|
|
50
52
|
supported_auth_providers?: string[];
|
|
51
53
|
}
|
|
@@ -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";
|
|
@@ -41,6 +43,10 @@ export * from "./CollectionStatus.js";
|
|
|
41
43
|
export * from "./ConfigField.js";
|
|
42
44
|
export * from "./ConfigValues.js";
|
|
43
45
|
export * from "./ConflictErrorResponse.js";
|
|
46
|
+
export * from "./ConnectSessionContext.js";
|
|
47
|
+
export * from "./ConnectSessionCreate.js";
|
|
48
|
+
export * from "./ConnectSessionMode.js";
|
|
49
|
+
export * from "./ConnectSessionResponse.js";
|
|
44
50
|
export * from "./CursorConfig.js";
|
|
45
51
|
export * from "./CustomerPortalRequest.js";
|
|
46
52
|
export * from "./CustomerPortalResponse.js";
|
|
@@ -65,6 +71,9 @@ export * from "./LegacySearchResponse.js";
|
|
|
65
71
|
export * from "./LivenessResponse.js";
|
|
66
72
|
export * from "./MemberResponse.js";
|
|
67
73
|
export * from "./MessageResponse.js";
|
|
74
|
+
export * from "./NodeSelectionData.js";
|
|
75
|
+
export * from "./NodeSelectionRequest.js";
|
|
76
|
+
export * from "./NodeSelectionResponse.js";
|
|
68
77
|
export * from "./NotFoundErrorResponse.js";
|
|
69
78
|
export * from "./OAuthBrowserAuthentication.js";
|
|
70
79
|
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);
|
|
@@ -57,6 +59,10 @@ __exportStar(require("./CollectionStatus.js"), exports);
|
|
|
57
59
|
__exportStar(require("./ConfigField.js"), exports);
|
|
58
60
|
__exportStar(require("./ConfigValues.js"), exports);
|
|
59
61
|
__exportStar(require("./ConflictErrorResponse.js"), exports);
|
|
62
|
+
__exportStar(require("./ConnectSessionContext.js"), exports);
|
|
63
|
+
__exportStar(require("./ConnectSessionCreate.js"), exports);
|
|
64
|
+
__exportStar(require("./ConnectSessionMode.js"), exports);
|
|
65
|
+
__exportStar(require("./ConnectSessionResponse.js"), exports);
|
|
60
66
|
__exportStar(require("./CursorConfig.js"), exports);
|
|
61
67
|
__exportStar(require("./CustomerPortalRequest.js"), exports);
|
|
62
68
|
__exportStar(require("./CustomerPortalResponse.js"), exports);
|
|
@@ -81,6 +87,9 @@ __exportStar(require("./LegacySearchResponse.js"), exports);
|
|
|
81
87
|
__exportStar(require("./LivenessResponse.js"), exports);
|
|
82
88
|
__exportStar(require("./MemberResponse.js"), exports);
|
|
83
89
|
__exportStar(require("./MessageResponse.js"), exports);
|
|
90
|
+
__exportStar(require("./NodeSelectionData.js"), exports);
|
|
91
|
+
__exportStar(require("./NodeSelectionRequest.js"), exports);
|
|
92
|
+
__exportStar(require("./NodeSelectionResponse.js"), exports);
|
|
84
93
|
__exportStar(require("./NotFoundErrorResponse.js"), exports);
|
|
85
94
|
__exportStar(require("./OAuthBrowserAuthentication.js"), exports);
|
|
86
95
|
__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.26";
|
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.26",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.9.26",
|
|
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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Decoded session context from a validated token.
|
|
7
|
+
*
|
|
8
|
+
* This is returned by GET /connect/sessions and used internally
|
|
9
|
+
* for authorization in session-authenticated endpoints.
|
|
10
|
+
*/
|
|
11
|
+
export interface ConnectSessionContext {
|
|
12
|
+
/** Unique identifier for this session */
|
|
13
|
+
session_id: string;
|
|
14
|
+
/** Organization that owns this session */
|
|
15
|
+
organization_id: string;
|
|
16
|
+
/** Readable collection ID this session grants access to */
|
|
17
|
+
collection_id: string;
|
|
18
|
+
/** List of allowed integration short_names, or None for all */
|
|
19
|
+
allowed_integrations?: string[];
|
|
20
|
+
/** Session mode determining allowed operations */
|
|
21
|
+
mode: AirweaveSDK.ConnectSessionMode;
|
|
22
|
+
/** End user identifier from your system, if provided during session creation */
|
|
23
|
+
end_user_id?: string;
|
|
24
|
+
/** Timestamp when this session expires */
|
|
25
|
+
expires_at: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Schema for creating a new connect session.
|
|
7
|
+
*
|
|
8
|
+
* The session token grants temporary access to manage source connections
|
|
9
|
+
* within a specific collection.
|
|
10
|
+
*/
|
|
11
|
+
export interface ConnectSessionCreate {
|
|
12
|
+
/** The readable ID of the collection to grant access to */
|
|
13
|
+
readable_collection_id: string;
|
|
14
|
+
/** Optional list of source short_names to restrict which integrations can be connected. If not provided, all integrations are allowed. */
|
|
15
|
+
allowed_integrations?: string[];
|
|
16
|
+
/** Session mode determining allowed operations */
|
|
17
|
+
mode?: AirweaveSDK.ConnectSessionMode;
|
|
18
|
+
/** Optional identifier for the end user in your system. This is included in the session token and can be used for audit tracking and filtering. */
|
|
19
|
+
end_user_id?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Mode for connect session determining allowed operations.
|
|
6
|
+
*
|
|
7
|
+
* - ALL: Can perform all operations (connect, manage, reauth)
|
|
8
|
+
* - CONNECT: Can only add new connections
|
|
9
|
+
* - MANAGE: Can only view/delete existing connections
|
|
10
|
+
* - REAUTH: Can only re-authenticate existing connections
|
|
11
|
+
*/
|
|
12
|
+
export type ConnectSessionMode = "all" | "connect" | "manage" | "reauth";
|
|
13
|
+
export declare const ConnectSessionMode: {
|
|
14
|
+
readonly All: "all";
|
|
15
|
+
readonly Connect: "connect";
|
|
16
|
+
readonly Manage: "manage";
|
|
17
|
+
readonly Reauth: "reauth";
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Response returned when creating a connect session.
|
|
6
|
+
*
|
|
7
|
+
* Contains the session token that should be passed to the frontend SDK.
|
|
8
|
+
*/
|
|
9
|
+
export interface ConnectSessionResponse {
|
|
10
|
+
/** Unique identifier for this session */
|
|
11
|
+
session_id: string;
|
|
12
|
+
/** HMAC-signed token to use for authentication in subsequent requests */
|
|
13
|
+
session_token: string;
|
|
14
|
+
/** Timestamp when this session expires (typically 10 minutes) */
|
|
15
|
+
expires_at: string;
|
|
16
|
+
}
|
|
@@ -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) */
|
|
@@ -30,22 +30,24 @@ export interface Source {
|
|
|
30
30
|
output_entity_definitions?: string[];
|
|
31
31
|
/** Categorization tags to help users discover and filter sources by domain or use case. */
|
|
32
32
|
labels?: string[];
|
|
33
|
-
/** Whether this source supports cursor-based continuous syncing for incremental data extraction.
|
|
33
|
+
/** Whether this source supports cursor-based continuous syncing for incremental data extraction. */
|
|
34
34
|
supports_continuous?: boolean;
|
|
35
|
-
/** Whether this source uses federated search instead of traditional syncing.
|
|
35
|
+
/** Whether this source uses federated search instead of traditional syncing. */
|
|
36
36
|
federated_search?: boolean;
|
|
37
|
-
/** Whether this source's entities have timestamps that enable recency-based ranking.
|
|
37
|
+
/** Whether this source's entities have timestamps that enable recency-based ranking. */
|
|
38
38
|
supports_temporal_relevance?: boolean;
|
|
39
|
-
/** Whether this source supports document-level access control.
|
|
39
|
+
/** Whether this source supports document-level access control. */
|
|
40
40
|
supports_access_control?: boolean;
|
|
41
41
|
/** Rate limiting level for this source: 'org' (organization-wide), 'connection' (per-connection/per-user), or None (no rate limiting). */
|
|
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
|
-
/**
|
|
45
|
+
/** Whether this source supports lazy-loaded browse tree for selective node syncing. */
|
|
46
|
+
supports_browse_tree?: boolean;
|
|
47
|
+
/** Schema definition for authentication fields required to connect to this source. */
|
|
46
48
|
auth_fields?: AirweaveSDK.Fields;
|
|
47
|
-
/** Schema definition for configuration fields required to customize this source.
|
|
49
|
+
/** Schema definition for configuration fields required to customize this source. */
|
|
48
50
|
config_fields: AirweaveSDK.Fields;
|
|
49
|
-
/** List of auth provider short names that support this source
|
|
51
|
+
/** List of auth provider short names that support this source. */
|
|
50
52
|
supported_auth_providers?: string[];
|
|
51
53
|
}
|
|
@@ -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";
|
|
@@ -41,6 +43,10 @@ export * from "./CollectionStatus.mjs";
|
|
|
41
43
|
export * from "./ConfigField.mjs";
|
|
42
44
|
export * from "./ConfigValues.mjs";
|
|
43
45
|
export * from "./ConflictErrorResponse.mjs";
|
|
46
|
+
export * from "./ConnectSessionContext.mjs";
|
|
47
|
+
export * from "./ConnectSessionCreate.mjs";
|
|
48
|
+
export * from "./ConnectSessionMode.mjs";
|
|
49
|
+
export * from "./ConnectSessionResponse.mjs";
|
|
44
50
|
export * from "./CursorConfig.mjs";
|
|
45
51
|
export * from "./CustomerPortalRequest.mjs";
|
|
46
52
|
export * from "./CustomerPortalResponse.mjs";
|
|
@@ -65,6 +71,9 @@ export * from "./LegacySearchResponse.mjs";
|
|
|
65
71
|
export * from "./LivenessResponse.mjs";
|
|
66
72
|
export * from "./MemberResponse.mjs";
|
|
67
73
|
export * from "./MessageResponse.mjs";
|
|
74
|
+
export * from "./NodeSelectionData.mjs";
|
|
75
|
+
export * from "./NodeSelectionRequest.mjs";
|
|
76
|
+
export * from "./NodeSelectionResponse.mjs";
|
|
68
77
|
export * from "./NotFoundErrorResponse.mjs";
|
|
69
78
|
export * from "./OAuthBrowserAuthentication.mjs";
|
|
70
79
|
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";
|
|
@@ -41,6 +43,10 @@ export * from "./CollectionStatus.mjs";
|
|
|
41
43
|
export * from "./ConfigField.mjs";
|
|
42
44
|
export * from "./ConfigValues.mjs";
|
|
43
45
|
export * from "./ConflictErrorResponse.mjs";
|
|
46
|
+
export * from "./ConnectSessionContext.mjs";
|
|
47
|
+
export * from "./ConnectSessionCreate.mjs";
|
|
48
|
+
export * from "./ConnectSessionMode.mjs";
|
|
49
|
+
export * from "./ConnectSessionResponse.mjs";
|
|
44
50
|
export * from "./CursorConfig.mjs";
|
|
45
51
|
export * from "./CustomerPortalRequest.mjs";
|
|
46
52
|
export * from "./CustomerPortalResponse.mjs";
|
|
@@ -65,6 +71,9 @@ export * from "./LegacySearchResponse.mjs";
|
|
|
65
71
|
export * from "./LivenessResponse.mjs";
|
|
66
72
|
export * from "./MemberResponse.mjs";
|
|
67
73
|
export * from "./MessageResponse.mjs";
|
|
74
|
+
export * from "./NodeSelectionData.mjs";
|
|
75
|
+
export * from "./NodeSelectionRequest.mjs";
|
|
76
|
+
export * from "./NodeSelectionResponse.mjs";
|
|
68
77
|
export * from "./NotFoundErrorResponse.mjs";
|
|
69
78
|
export * from "./OAuthBrowserAuthentication.mjs";
|
|
70
79
|
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.26";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.9.
|
|
1
|
+
export const SDK_VERSION = "v0.9.26";
|