@airweave/sdk 0.6.32 → 0.6.34

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.
@@ -47,8 +47,8 @@ class AirweaveSDKClient {
47
47
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
48
48
  "X-Fern-Language": "JavaScript",
49
49
  "X-Fern-SDK-Name": "@airweave/sdk",
50
- "X-Fern-SDK-Version": "v0.6.32",
51
- "User-Agent": "@airweave/sdk/v0.6.32",
50
+ "X-Fern-SDK-Version": "v0.6.34",
51
+ "User-Agent": "@airweave/sdk/v0.6.34",
52
52
  "X-Fern-Runtime": core.RUNTIME.type,
53
53
  "X-Fern-Runtime-Version": core.RUNTIME.version,
54
54
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -25,6 +25,6 @@ export interface Collection {
25
25
  created_by_email?: string;
26
26
  /** Email address of the user who last modified this collection. */
27
27
  modified_by_email?: string;
28
- /** Current operational status of the collection:<br/>• **NEEDS_SOURCE**: Collection exists but has no source connections configured yet<br/>• **ACTIVE**: All source connections are healthy and data is being synced successfully<br/>• **PARTIAL_ERROR**: Some source connections are failing but others are working<br/>• **ERROR**: All source connections are failing or in error state */
28
+ /** Current operational status of the collection:<br/>• **NEEDS_SOURCE**: Collection has no authenticated connections, or connections exist but haven't synced yet<br/>• **ACTIVE**: At least one connection has completed a sync or is currently syncing<br/>• **ERROR**: All connections have failed their last sync */
29
29
  status?: AirweaveSDK.CollectionStatus;
30
30
  }
@@ -4,10 +4,9 @@
4
4
  /**
5
5
  * Collection status enum.
6
6
  */
7
- export type CollectionStatus = "ACTIVE" | "PARTIAL ERROR" | "NEEDS SOURCE" | "ERROR";
7
+ export type CollectionStatus = "ACTIVE" | "NEEDS SOURCE" | "ERROR";
8
8
  export declare const CollectionStatus: {
9
9
  readonly Active: "ACTIVE";
10
- readonly PartialError: "PARTIAL ERROR";
11
10
  readonly NeedsSource: "NEEDS SOURCE";
12
11
  readonly Error: "ERROR";
13
12
  };
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CollectionStatus = void 0;
7
7
  exports.CollectionStatus = {
8
8
  Active: "ACTIVE",
9
- PartialError: "PARTIAL ERROR",
10
9
  NeedsSource: "NEEDS SOURCE",
11
10
  Error: "ERROR",
12
11
  };
@@ -3,12 +3,20 @@
3
3
  */
4
4
  /**
5
5
  * OAuth authentication via browser flow.
6
+ *
7
+ * Supports both OAuth2 and OAuth1 BYOC (Bring Your Own Client):
8
+ * - OAuth2 BYOC: Provide client_id + client_secret
9
+ * - OAuth1 BYOC: Provide consumer_key + consumer_secret
6
10
  */
7
11
  export interface OAuthBrowserAuthentication {
8
12
  /** OAuth redirect URI */
9
13
  redirect_uri?: string;
10
- /** OAuth client ID (for custom apps) */
14
+ /** OAuth2 client ID (for custom apps) */
11
15
  client_id?: string;
12
- /** OAuth client secret (for custom apps) */
16
+ /** OAuth2 client secret (for custom apps) */
13
17
  client_secret?: string;
18
+ /** OAuth1 consumer key (for custom apps) */
19
+ consumer_key?: string;
20
+ /** OAuth1 consumer secret (for custom apps) */
21
+ consumer_secret?: string;
14
22
  }
@@ -4,8 +4,9 @@
4
4
  /**
5
5
  * OAuth token types for sources.
6
6
  */
7
- export type OAuthType = "access_only" | "with_refresh" | "with_rotating_refresh";
7
+ export type OAuthType = "oauth1" | "access_only" | "with_refresh" | "with_rotating_refresh";
8
8
  export declare const OAuthType: {
9
+ readonly Oauth1: "oauth1";
9
10
  readonly AccessOnly: "access_only";
10
11
  readonly WithRefresh: "with_refresh";
11
12
  readonly WithRotatingRefresh: "with_rotating_refresh";
@@ -5,6 +5,7 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.OAuthType = void 0;
7
7
  exports.OAuthType = {
8
+ Oauth1: "oauth1",
8
9
  AccessOnly: "access_only",
9
10
  WithRefresh: "with_refresh",
10
11
  WithRotatingRefresh: "with_rotating_refresh",
@@ -12,7 +12,6 @@ export interface SourceConnectionJob {
12
12
  started_at?: string;
13
13
  completed_at?: string;
14
14
  duration_seconds?: number;
15
- entities_processed?: number;
16
15
  entities_inserted?: number;
17
16
  entities_updated?: number;
18
17
  entities_deleted?: number;
@@ -11,7 +11,6 @@ export interface SyncJobDetails {
11
11
  started_at?: string;
12
12
  completed_at?: string;
13
13
  duration_seconds?: number;
14
- entities_processed?: number;
15
14
  entities_inserted?: number;
16
15
  entities_updated?: number;
17
16
  entities_deleted?: number;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.6.32";
1
+ export declare const SDK_VERSION = "v0.6.34";
@@ -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.6.32";
4
+ exports.SDK_VERSION = "v0.6.34";
@@ -11,8 +11,8 @@ export class AirweaveSDKClient {
11
11
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
12
12
  "X-Fern-Language": "JavaScript",
13
13
  "X-Fern-SDK-Name": "@airweave/sdk",
14
- "X-Fern-SDK-Version": "v0.6.32",
15
- "User-Agent": "@airweave/sdk/v0.6.32",
14
+ "X-Fern-SDK-Version": "v0.6.34",
15
+ "User-Agent": "@airweave/sdk/v0.6.34",
16
16
  "X-Fern-Runtime": core.RUNTIME.type,
17
17
  "X-Fern-Runtime-Version": core.RUNTIME.version,
18
18
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -25,6 +25,6 @@ export interface Collection {
25
25
  created_by_email?: string;
26
26
  /** Email address of the user who last modified this collection. */
27
27
  modified_by_email?: string;
28
- /** Current operational status of the collection:<br/>• **NEEDS_SOURCE**: Collection exists but has no source connections configured yet<br/>• **ACTIVE**: All source connections are healthy and data is being synced successfully<br/>• **PARTIAL_ERROR**: Some source connections are failing but others are working<br/>• **ERROR**: All source connections are failing or in error state */
28
+ /** Current operational status of the collection:<br/>• **NEEDS_SOURCE**: Collection has no authenticated connections, or connections exist but haven't synced yet<br/>• **ACTIVE**: At least one connection has completed a sync or is currently syncing<br/>• **ERROR**: All connections have failed their last sync */
29
29
  status?: AirweaveSDK.CollectionStatus;
30
30
  }
@@ -4,10 +4,9 @@
4
4
  /**
5
5
  * Collection status enum.
6
6
  */
7
- export type CollectionStatus = "ACTIVE" | "PARTIAL ERROR" | "NEEDS SOURCE" | "ERROR";
7
+ export type CollectionStatus = "ACTIVE" | "NEEDS SOURCE" | "ERROR";
8
8
  export declare const CollectionStatus: {
9
9
  readonly Active: "ACTIVE";
10
- readonly PartialError: "PARTIAL ERROR";
11
10
  readonly NeedsSource: "NEEDS SOURCE";
12
11
  readonly Error: "ERROR";
13
12
  };
@@ -3,7 +3,6 @@
3
3
  */
4
4
  export const CollectionStatus = {
5
5
  Active: "ACTIVE",
6
- PartialError: "PARTIAL ERROR",
7
6
  NeedsSource: "NEEDS SOURCE",
8
7
  Error: "ERROR",
9
8
  };
@@ -3,12 +3,20 @@
3
3
  */
4
4
  /**
5
5
  * OAuth authentication via browser flow.
6
+ *
7
+ * Supports both OAuth2 and OAuth1 BYOC (Bring Your Own Client):
8
+ * - OAuth2 BYOC: Provide client_id + client_secret
9
+ * - OAuth1 BYOC: Provide consumer_key + consumer_secret
6
10
  */
7
11
  export interface OAuthBrowserAuthentication {
8
12
  /** OAuth redirect URI */
9
13
  redirect_uri?: string;
10
- /** OAuth client ID (for custom apps) */
14
+ /** OAuth2 client ID (for custom apps) */
11
15
  client_id?: string;
12
- /** OAuth client secret (for custom apps) */
16
+ /** OAuth2 client secret (for custom apps) */
13
17
  client_secret?: string;
18
+ /** OAuth1 consumer key (for custom apps) */
19
+ consumer_key?: string;
20
+ /** OAuth1 consumer secret (for custom apps) */
21
+ consumer_secret?: string;
14
22
  }
@@ -4,8 +4,9 @@
4
4
  /**
5
5
  * OAuth token types for sources.
6
6
  */
7
- export type OAuthType = "access_only" | "with_refresh" | "with_rotating_refresh";
7
+ export type OAuthType = "oauth1" | "access_only" | "with_refresh" | "with_rotating_refresh";
8
8
  export declare const OAuthType: {
9
+ readonly Oauth1: "oauth1";
9
10
  readonly AccessOnly: "access_only";
10
11
  readonly WithRefresh: "with_refresh";
11
12
  readonly WithRotatingRefresh: "with_rotating_refresh";
@@ -2,6 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export const OAuthType = {
5
+ Oauth1: "oauth1",
5
6
  AccessOnly: "access_only",
6
7
  WithRefresh: "with_refresh",
7
8
  WithRotatingRefresh: "with_rotating_refresh",
@@ -12,7 +12,6 @@ export interface SourceConnectionJob {
12
12
  started_at?: string;
13
13
  completed_at?: string;
14
14
  duration_seconds?: number;
15
- entities_processed?: number;
16
15
  entities_inserted?: number;
17
16
  entities_updated?: number;
18
17
  entities_deleted?: number;
@@ -11,7 +11,6 @@ export interface SyncJobDetails {
11
11
  started_at?: string;
12
12
  completed_at?: string;
13
13
  duration_seconds?: number;
14
- entities_processed?: number;
15
14
  entities_inserted?: number;
16
15
  entities_updated?: number;
17
16
  entities_deleted?: number;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.6.32";
1
+ export declare const SDK_VERSION = "v0.6.34";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.6.32";
1
+ export const SDK_VERSION = "v0.6.34";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.6.32",
3
+ "version": "v0.6.34",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",