@airweave/sdk 0.6.33 → 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/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/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) });
|
|
@@ -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) });
|
|
@@ -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";
|