@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/types/Collection.d.ts +1 -1
- package/dist/cjs/api/types/CollectionStatus.d.ts +1 -2
- package/dist/cjs/api/types/CollectionStatus.js +0 -1
- package/dist/cjs/api/types/OAuthBrowserAuthentication.d.ts +10 -2
- package/dist/cjs/api/types/OAuthType.d.ts +2 -1
- package/dist/cjs/api/types/OAuthType.js +1 -0
- package/dist/cjs/api/types/SourceConnectionJob.d.ts +0 -1
- package/dist/cjs/api/types/SyncJobDetails.d.ts +0 -1
- 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/Collection.d.mts +1 -1
- package/dist/esm/api/types/CollectionStatus.d.mts +1 -2
- package/dist/esm/api/types/CollectionStatus.mjs +0 -1
- package/dist/esm/api/types/OAuthBrowserAuthentication.d.mts +10 -2
- package/dist/esm/api/types/OAuthType.d.mts +2 -1
- package/dist/esm/api/types/OAuthType.mjs +1 -0
- package/dist/esm/api/types/SourceConnectionJob.d.mts +0 -1
- package/dist/esm/api/types/SyncJobDetails.d.mts +0 -1
- 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
|
@@ -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.
|
|
51
|
-
"User-Agent": "@airweave/sdk/v0.6.
|
|
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
|
|
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" | "
|
|
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,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
|
-
/**
|
|
14
|
+
/** OAuth2 client ID (for custom apps) */
|
|
11
15
|
client_id?: string;
|
|
12
|
-
/**
|
|
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";
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.6.
|
|
1
|
+
export declare const SDK_VERSION = "v0.6.34";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
15
|
-
"User-Agent": "@airweave/sdk/v0.6.
|
|
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
|
|
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" | "
|
|
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,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
|
-
/**
|
|
14
|
+
/** OAuth2 client ID (for custom apps) */
|
|
11
15
|
client_id?: string;
|
|
12
|
-
/**
|
|
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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v0.6.
|
|
1
|
+
export declare const SDK_VERSION = "v0.6.34";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.6.
|
|
1
|
+
export const SDK_VERSION = "v0.6.34";
|