@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.
@@ -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.50",
52
- "User-Agent": "@airweave/sdk/v0.9.50",
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) });
@@ -13,4 +13,5 @@ export interface ConfigField {
13
13
  items_type?: string;
14
14
  feature_flag?: string;
15
15
  is_secret?: boolean;
16
+ enum_values?: string[];
16
17
  }
@@ -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
  };
@@ -9,6 +9,7 @@ exports.SourceConnectionStatus = {
9
9
  PendingAuth: "pending_auth",
10
10
  Syncing: "syncing",
11
11
  Error: "error",
12
+ NeedsReauth: "needs_reauth",
12
13
  Inactive: "inactive",
13
14
  PendingSync: "pending_sync",
14
15
  };
@@ -16,4 +16,5 @@ export interface SyncJobDetails {
16
16
  entities_deleted?: number;
17
17
  entities_failed?: number;
18
18
  error?: string;
19
+ error_category?: AirweaveSDK.SourceConnectionErrorCategory;
19
20
  }
@@ -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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.9.50";
1
+ export declare const SDK_VERSION = "v0.9.52";
@@ -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.50";
4
+ exports.SDK_VERSION = "v0.9.52";
@@ -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.50",
16
- "User-Agent": "@airweave/sdk/v0.9.50",
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) });
@@ -13,4 +13,5 @@ export interface ConfigField {
13
13
  items_type?: string;
14
14
  feature_flag?: string;
15
15
  is_secret?: boolean;
16
+ enum_values?: string[];
16
17
  }
@@ -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
  };
@@ -6,6 +6,7 @@ export const SourceConnectionStatus = {
6
6
  PendingAuth: "pending_auth",
7
7
  Syncing: "syncing",
8
8
  Error: "error",
9
+ NeedsReauth: "needs_reauth",
9
10
  Inactive: "inactive",
10
11
  PendingSync: "pending_sync",
11
12
  };
@@ -16,4 +16,5 @@ export interface SyncJobDetails {
16
16
  entities_deleted?: number;
17
17
  entities_failed?: number;
18
18
  error?: string;
19
+ error_category?: AirweaveSDK.SourceConnectionErrorCategory;
19
20
  }
@@ -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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.9.50";
1
+ export declare const SDK_VERSION = "v0.9.52";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.9.50";
1
+ export const SDK_VERSION = "v0.9.52";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.9.50",
3
+ "version": "v0.9.52",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",
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: "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);