@airweave/sdk 0.9.50 → 0.9.52
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/ConfigField.d.ts +1 -0
- package/dist/cjs/api/types/SourceConnection.d.ts +8 -0
- package/dist/cjs/api/types/SourceConnectionErrorCategory.d.ts +13 -0
- package/dist/cjs/api/types/SourceConnectionErrorCategory.js +12 -0
- package/dist/cjs/api/types/SourceConnectionJob.d.ts +2 -0
- package/dist/cjs/api/types/SourceConnectionStatus.d.ts +2 -1
- package/dist/cjs/api/types/SourceConnectionStatus.js +1 -0
- package/dist/cjs/api/types/SyncJobDetails.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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/ConfigField.d.mts +1 -0
- package/dist/esm/api/types/SourceConnection.d.mts +8 -0
- package/dist/esm/api/types/SourceConnectionErrorCategory.d.mts +13 -0
- package/dist/esm/api/types/SourceConnectionErrorCategory.mjs +9 -0
- package/dist/esm/api/types/SourceConnectionJob.d.mts +2 -0
- package/dist/esm/api/types/SourceConnectionStatus.d.mts +2 -1
- package/dist/esm/api/types/SourceConnectionStatus.mjs +1 -0
- package/dist/esm/api/types/SyncJobDetails.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2 -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.52",
|
|
52
|
+
"User-Agent": "@airweave/sdk/v0.9.52",
|
|
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) });
|
|
@@ -39,6 +39,14 @@ export interface SourceConnection {
|
|
|
39
39
|
sync_id?: string;
|
|
40
40
|
/** Summary of synced entities by type */
|
|
41
41
|
entities?: AirweaveSDK.EntitySummary;
|
|
42
|
+
/** Error category when status is needs_reauth (e.g. oauth_credentials_expired) */
|
|
43
|
+
error_category?: AirweaveSDK.SourceConnectionErrorCategory;
|
|
44
|
+
/** Human-readable error message when status is needs_reauth */
|
|
45
|
+
error_message?: string;
|
|
46
|
+
/** URL to the auth provider's settings dashboard (for auth_provider errors) */
|
|
47
|
+
provider_settings_url?: string;
|
|
48
|
+
/** Auth provider short_name (e.g. 'composio', 'pipedream') for display */
|
|
49
|
+
provider_short_name?: string;
|
|
42
50
|
/** Whether this source uses federated (real-time) search instead of syncing */
|
|
43
51
|
federated_search?: boolean;
|
|
44
52
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Error categories for credential/auth failures on source connections.
|
|
6
|
+
*/
|
|
7
|
+
export type SourceConnectionErrorCategory = "oauth_credentials_expired" | "api_key_invalid" | "auth_provider_account_gone" | "auth_provider_credentials_invalid";
|
|
8
|
+
export declare const SourceConnectionErrorCategory: {
|
|
9
|
+
readonly OauthCredentialsExpired: "oauth_credentials_expired";
|
|
10
|
+
readonly ApiKeyInvalid: "api_key_invalid";
|
|
11
|
+
readonly AuthProviderAccountGone: "auth_provider_account_gone";
|
|
12
|
+
readonly AuthProviderCredentialsInvalid: "auth_provider_credentials_invalid";
|
|
13
|
+
};
|
|
@@ -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.SourceConnectionErrorCategory = void 0;
|
|
7
|
+
exports.SourceConnectionErrorCategory = {
|
|
8
|
+
OauthCredentialsExpired: "oauth_credentials_expired",
|
|
9
|
+
ApiKeyInvalid: "api_key_invalid",
|
|
10
|
+
AuthProviderAccountGone: "auth_provider_account_gone",
|
|
11
|
+
AuthProviderCredentialsInvalid: "auth_provider_credentials_invalid",
|
|
12
|
+
};
|
|
@@ -31,6 +31,8 @@ export interface SourceConnectionJob {
|
|
|
31
31
|
entities_failed?: number;
|
|
32
32
|
/** Error message if the job failed */
|
|
33
33
|
error?: string;
|
|
34
|
+
/** Error category for credential errors (e.g. oauth_credentials_expired) */
|
|
35
|
+
error_category?: AirweaveSDK.SourceConnectionErrorCategory;
|
|
34
36
|
/** Additional error context for debugging */
|
|
35
37
|
error_details?: Record<string, unknown>;
|
|
36
38
|
}
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Source connection status enum - represents overall connection state.
|
|
6
6
|
*/
|
|
7
|
-
export type SourceConnectionStatus = "active" | "pending_auth" | "syncing" | "error" | "inactive" | "pending_sync";
|
|
7
|
+
export type SourceConnectionStatus = "active" | "pending_auth" | "syncing" | "error" | "needs_reauth" | "inactive" | "pending_sync";
|
|
8
8
|
export declare const SourceConnectionStatus: {
|
|
9
9
|
readonly Active: "active";
|
|
10
10
|
readonly PendingAuth: "pending_auth";
|
|
11
11
|
readonly Syncing: "syncing";
|
|
12
12
|
readonly Error: "error";
|
|
13
|
+
readonly NeedsReauth: "needs_reauth";
|
|
13
14
|
readonly Inactive: "inactive";
|
|
14
15
|
readonly PendingSync: "pending_sync";
|
|
15
16
|
};
|
|
@@ -36,6 +36,7 @@ export * from "./SearchSystemMetadata.js";
|
|
|
36
36
|
export * from "./SearchV2Response.js";
|
|
37
37
|
export * from "./Source.js";
|
|
38
38
|
export * from "./SourceConnection.js";
|
|
39
|
+
export * from "./SourceConnectionErrorCategory.js";
|
|
39
40
|
export * from "./SourceConnectionJob.js";
|
|
40
41
|
export * from "./SourceConnectionListItem.js";
|
|
41
42
|
export * from "./SourceConnectionStatus.js";
|
|
@@ -52,6 +52,7 @@ __exportStar(require("./SearchSystemMetadata.js"), exports);
|
|
|
52
52
|
__exportStar(require("./SearchV2Response.js"), exports);
|
|
53
53
|
__exportStar(require("./Source.js"), exports);
|
|
54
54
|
__exportStar(require("./SourceConnection.js"), exports);
|
|
55
|
+
__exportStar(require("./SourceConnectionErrorCategory.js"), exports);
|
|
55
56
|
__exportStar(require("./SourceConnectionJob.js"), exports);
|
|
56
57
|
__exportStar(require("./SourceConnectionListItem.js"), exports);
|
|
57
58
|
__exportStar(require("./SourceConnectionStatus.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.52";
|
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.52",
|
|
16
|
+
"User-Agent": "@airweave/sdk/v0.9.52",
|
|
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) });
|
|
@@ -39,6 +39,14 @@ export interface SourceConnection {
|
|
|
39
39
|
sync_id?: string;
|
|
40
40
|
/** Summary of synced entities by type */
|
|
41
41
|
entities?: AirweaveSDK.EntitySummary;
|
|
42
|
+
/** Error category when status is needs_reauth (e.g. oauth_credentials_expired) */
|
|
43
|
+
error_category?: AirweaveSDK.SourceConnectionErrorCategory;
|
|
44
|
+
/** Human-readable error message when status is needs_reauth */
|
|
45
|
+
error_message?: string;
|
|
46
|
+
/** URL to the auth provider's settings dashboard (for auth_provider errors) */
|
|
47
|
+
provider_settings_url?: string;
|
|
48
|
+
/** Auth provider short_name (e.g. 'composio', 'pipedream') for display */
|
|
49
|
+
provider_short_name?: string;
|
|
42
50
|
/** Whether this source uses federated (real-time) search instead of syncing */
|
|
43
51
|
federated_search?: boolean;
|
|
44
52
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Error categories for credential/auth failures on source connections.
|
|
6
|
+
*/
|
|
7
|
+
export type SourceConnectionErrorCategory = "oauth_credentials_expired" | "api_key_invalid" | "auth_provider_account_gone" | "auth_provider_credentials_invalid";
|
|
8
|
+
export declare const SourceConnectionErrorCategory: {
|
|
9
|
+
readonly OauthCredentialsExpired: "oauth_credentials_expired";
|
|
10
|
+
readonly ApiKeyInvalid: "api_key_invalid";
|
|
11
|
+
readonly AuthProviderAccountGone: "auth_provider_account_gone";
|
|
12
|
+
readonly AuthProviderCredentialsInvalid: "auth_provider_credentials_invalid";
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export const SourceConnectionErrorCategory = {
|
|
5
|
+
OauthCredentialsExpired: "oauth_credentials_expired",
|
|
6
|
+
ApiKeyInvalid: "api_key_invalid",
|
|
7
|
+
AuthProviderAccountGone: "auth_provider_account_gone",
|
|
8
|
+
AuthProviderCredentialsInvalid: "auth_provider_credentials_invalid",
|
|
9
|
+
};
|
|
@@ -31,6 +31,8 @@ export interface SourceConnectionJob {
|
|
|
31
31
|
entities_failed?: number;
|
|
32
32
|
/** Error message if the job failed */
|
|
33
33
|
error?: string;
|
|
34
|
+
/** Error category for credential errors (e.g. oauth_credentials_expired) */
|
|
35
|
+
error_category?: AirweaveSDK.SourceConnectionErrorCategory;
|
|
34
36
|
/** Additional error context for debugging */
|
|
35
37
|
error_details?: Record<string, unknown>;
|
|
36
38
|
}
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Source connection status enum - represents overall connection state.
|
|
6
6
|
*/
|
|
7
|
-
export type SourceConnectionStatus = "active" | "pending_auth" | "syncing" | "error" | "inactive" | "pending_sync";
|
|
7
|
+
export type SourceConnectionStatus = "active" | "pending_auth" | "syncing" | "error" | "needs_reauth" | "inactive" | "pending_sync";
|
|
8
8
|
export declare const SourceConnectionStatus: {
|
|
9
9
|
readonly Active: "active";
|
|
10
10
|
readonly PendingAuth: "pending_auth";
|
|
11
11
|
readonly Syncing: "syncing";
|
|
12
12
|
readonly Error: "error";
|
|
13
|
+
readonly NeedsReauth: "needs_reauth";
|
|
13
14
|
readonly Inactive: "inactive";
|
|
14
15
|
readonly PendingSync: "pending_sync";
|
|
15
16
|
};
|
|
@@ -36,6 +36,7 @@ export * from "./SearchSystemMetadata.mjs";
|
|
|
36
36
|
export * from "./SearchV2Response.mjs";
|
|
37
37
|
export * from "./Source.mjs";
|
|
38
38
|
export * from "./SourceConnection.mjs";
|
|
39
|
+
export * from "./SourceConnectionErrorCategory.mjs";
|
|
39
40
|
export * from "./SourceConnectionJob.mjs";
|
|
40
41
|
export * from "./SourceConnectionListItem.mjs";
|
|
41
42
|
export * from "./SourceConnectionStatus.mjs";
|
|
@@ -36,6 +36,7 @@ export * from "./SearchSystemMetadata.mjs";
|
|
|
36
36
|
export * from "./SearchV2Response.mjs";
|
|
37
37
|
export * from "./Source.mjs";
|
|
38
38
|
export * from "./SourceConnection.mjs";
|
|
39
|
+
export * from "./SourceConnectionErrorCategory.mjs";
|
|
39
40
|
export * from "./SourceConnectionJob.mjs";
|
|
40
41
|
export * from "./SourceConnectionListItem.mjs";
|
|
41
42
|
export * from "./SourceConnectionStatus.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.52";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.9.
|
|
1
|
+
export const SDK_VERSION = "v0.9.52";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1999,7 +1999,8 @@ Streaming agentic search via Server-Sent Events. Returns real-time events as the
|
|
|
1999
1999
|
|
|
2000
2000
|
```typescript
|
|
2001
2001
|
const response = await client.collections.search.streamAgentic("readable_id", {
|
|
2002
|
-
query: "
|
|
2002
|
+
query: "find all deployment-related docs from last month",
|
|
2003
|
+
thinking: true,
|
|
2003
2004
|
});
|
|
2004
2005
|
for await (const item of response) {
|
|
2005
2006
|
console.log(item);
|