@airweave/sdk 0.6.89 → 0.6.91
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/FeatureFlag.d.ts +2 -1
- package/dist/cjs/api/types/FeatureFlag.js +1 -0
- package/dist/cjs/api/types/Source.d.ts +2 -0
- package/dist/cjs/api/types/SourceRateLimit.d.ts +18 -0
- package/dist/cjs/api/types/SourceRateLimit.js +5 -0
- package/dist/cjs/api/types/SourceRateLimitResponse.d.ts +17 -0
- package/dist/cjs/api/types/SourceRateLimitResponse.js +5 -0
- package/dist/cjs/api/types/SourceRateLimitUpdateRequest.d.ts +12 -0
- package/dist/cjs/api/types/SourceRateLimitUpdateRequest.js +5 -0
- package/dist/cjs/api/types/User.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -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/FeatureFlag.d.mts +2 -1
- package/dist/esm/api/types/FeatureFlag.mjs +1 -0
- package/dist/esm/api/types/Source.d.mts +2 -0
- package/dist/esm/api/types/SourceRateLimit.d.mts +18 -0
- package/dist/esm/api/types/SourceRateLimit.mjs +4 -0
- package/dist/esm/api/types/SourceRateLimitResponse.d.mts +17 -0
- package/dist/esm/api/types/SourceRateLimitResponse.mjs +4 -0
- package/dist/esm/api/types/SourceRateLimitUpdateRequest.d.mts +12 -0
- package/dist/esm/api/types/SourceRateLimitUpdateRequest.mjs +4 -0
- package/dist/esm/api/types/User.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- 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
|
@@ -49,8 +49,8 @@ class AirweaveSDKClient {
|
|
|
49
49
|
"X-Framework-Version": _options === null || _options === void 0 ? void 0 : _options.frameworkVersion,
|
|
50
50
|
"X-Fern-Language": "JavaScript",
|
|
51
51
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
52
|
-
"X-Fern-SDK-Version": "v0.6.
|
|
53
|
-
"User-Agent": "@airweave/sdk/v0.6.
|
|
52
|
+
"X-Fern-SDK-Version": "v0.6.91",
|
|
53
|
+
"User-Agent": "@airweave/sdk/v0.6.91",
|
|
54
54
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
55
55
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
56
56
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Add new flags here to enable feature gating at the organization level.
|
|
8
8
|
*/
|
|
9
|
-
export type FeatureFlag = "s3_destination" | "priority_support";
|
|
9
|
+
export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting";
|
|
10
10
|
export declare const FeatureFlag: {
|
|
11
11
|
readonly S3Destination: "s3_destination";
|
|
12
12
|
readonly PrioritySupport: "priority_support";
|
|
13
|
+
readonly SourceRateLimiting: "source_rate_limiting";
|
|
13
14
|
};
|
|
@@ -34,6 +34,8 @@ export interface Source {
|
|
|
34
34
|
federated_search?: boolean;
|
|
35
35
|
/** Whether this source's entities have timestamps that enable recency-based ranking. Sources without file-level timestamps (e.g., code repositories) cannot use temporal relevance for search result weighting. */
|
|
36
36
|
supports_temporal_relevance?: boolean;
|
|
37
|
+
/** Rate limiting level for this source: 'org' (organization-wide), 'connection' (per-connection/per-user), or None (no rate limiting). */
|
|
38
|
+
rate_limit_level?: string;
|
|
37
39
|
/** Unique system identifier for this source type. Generated automatically when the source is registered. */
|
|
38
40
|
id: string;
|
|
39
41
|
/** Timestamp when this source type was registered in the system (ISO 8601 format). */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Complete source rate limit schema.
|
|
6
|
+
*/
|
|
7
|
+
export interface SourceRateLimit {
|
|
8
|
+
/** Source identifier (e.g., 'google_drive', 'notion') */
|
|
9
|
+
source_short_name: string;
|
|
10
|
+
/** Maximum requests allowed per window */
|
|
11
|
+
limit: number;
|
|
12
|
+
/** Time window in seconds (60=per minute, 86400=per day, etc.) */
|
|
13
|
+
window_seconds?: number;
|
|
14
|
+
id: string;
|
|
15
|
+
organization_id: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
modified_at: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Response schema with source metadata merged for UI display.
|
|
6
|
+
*/
|
|
7
|
+
export interface SourceRateLimitResponse {
|
|
8
|
+
source_short_name: string;
|
|
9
|
+
/** 'org' (organization-wide), 'connection' (per-user), or None (not supported) */
|
|
10
|
+
rate_limit_level?: string;
|
|
11
|
+
/** Configured limit, None if not set */
|
|
12
|
+
limit?: number;
|
|
13
|
+
/** Configured window, None if not set */
|
|
14
|
+
window_seconds?: number;
|
|
15
|
+
/** DB record ID, None if not configured */
|
|
16
|
+
id?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Request schema for updating rate limits via API.
|
|
6
|
+
*/
|
|
7
|
+
export interface SourceRateLimitUpdateRequest {
|
|
8
|
+
/** Maximum requests allowed per window */
|
|
9
|
+
limit: number;
|
|
10
|
+
/** Time window in seconds */
|
|
11
|
+
window_seconds: number;
|
|
12
|
+
}
|
|
@@ -99,6 +99,9 @@ export * from "./SourceConnection.js";
|
|
|
99
99
|
export * from "./SourceConnectionJob.js";
|
|
100
100
|
export * from "./SourceConnectionListItem.js";
|
|
101
101
|
export * from "./SourceConnectionStatus.js";
|
|
102
|
+
export * from "./SourceRateLimit.js";
|
|
103
|
+
export * from "./SourceRateLimitResponse.js";
|
|
104
|
+
export * from "./SourceRateLimitUpdateRequest.js";
|
|
102
105
|
export * from "./SubscriptionInfo.js";
|
|
103
106
|
export * from "./Sync.js";
|
|
104
107
|
export * from "./SyncCreate.js";
|
|
@@ -115,6 +115,9 @@ __exportStar(require("./SourceConnection.js"), exports);
|
|
|
115
115
|
__exportStar(require("./SourceConnectionJob.js"), exports);
|
|
116
116
|
__exportStar(require("./SourceConnectionListItem.js"), exports);
|
|
117
117
|
__exportStar(require("./SourceConnectionStatus.js"), exports);
|
|
118
|
+
__exportStar(require("./SourceRateLimit.js"), exports);
|
|
119
|
+
__exportStar(require("./SourceRateLimitResponse.js"), exports);
|
|
120
|
+
__exportStar(require("./SourceRateLimitUpdateRequest.js"), exports);
|
|
118
121
|
__exportStar(require("./SubscriptionInfo.js"), exports);
|
|
119
122
|
__exportStar(require("./Sync.js"), exports);
|
|
120
123
|
__exportStar(require("./SyncCreate.js"), exports);
|
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.91";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -13,8 +13,8 @@ export class AirweaveSDKClient {
|
|
|
13
13
|
"X-Framework-Version": _options === null || _options === void 0 ? void 0 : _options.frameworkVersion,
|
|
14
14
|
"X-Fern-Language": "JavaScript",
|
|
15
15
|
"X-Fern-SDK-Name": "@airweave/sdk",
|
|
16
|
-
"X-Fern-SDK-Version": "v0.6.
|
|
17
|
-
"User-Agent": "@airweave/sdk/v0.6.
|
|
16
|
+
"X-Fern-SDK-Version": "v0.6.91",
|
|
17
|
+
"User-Agent": "@airweave/sdk/v0.6.91",
|
|
18
18
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
19
19
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
20
20
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Add new flags here to enable feature gating at the organization level.
|
|
8
8
|
*/
|
|
9
|
-
export type FeatureFlag = "s3_destination" | "priority_support";
|
|
9
|
+
export type FeatureFlag = "s3_destination" | "priority_support" | "source_rate_limiting";
|
|
10
10
|
export declare const FeatureFlag: {
|
|
11
11
|
readonly S3Destination: "s3_destination";
|
|
12
12
|
readonly PrioritySupport: "priority_support";
|
|
13
|
+
readonly SourceRateLimiting: "source_rate_limiting";
|
|
13
14
|
};
|
|
@@ -34,6 +34,8 @@ export interface Source {
|
|
|
34
34
|
federated_search?: boolean;
|
|
35
35
|
/** Whether this source's entities have timestamps that enable recency-based ranking. Sources without file-level timestamps (e.g., code repositories) cannot use temporal relevance for search result weighting. */
|
|
36
36
|
supports_temporal_relevance?: boolean;
|
|
37
|
+
/** Rate limiting level for this source: 'org' (organization-wide), 'connection' (per-connection/per-user), or None (no rate limiting). */
|
|
38
|
+
rate_limit_level?: string;
|
|
37
39
|
/** Unique system identifier for this source type. Generated automatically when the source is registered. */
|
|
38
40
|
id: string;
|
|
39
41
|
/** Timestamp when this source type was registered in the system (ISO 8601 format). */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Complete source rate limit schema.
|
|
6
|
+
*/
|
|
7
|
+
export interface SourceRateLimit {
|
|
8
|
+
/** Source identifier (e.g., 'google_drive', 'notion') */
|
|
9
|
+
source_short_name: string;
|
|
10
|
+
/** Maximum requests allowed per window */
|
|
11
|
+
limit: number;
|
|
12
|
+
/** Time window in seconds (60=per minute, 86400=per day, etc.) */
|
|
13
|
+
window_seconds?: number;
|
|
14
|
+
id: string;
|
|
15
|
+
organization_id: string;
|
|
16
|
+
created_at: string;
|
|
17
|
+
modified_at: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Response schema with source metadata merged for UI display.
|
|
6
|
+
*/
|
|
7
|
+
export interface SourceRateLimitResponse {
|
|
8
|
+
source_short_name: string;
|
|
9
|
+
/** 'org' (organization-wide), 'connection' (per-user), or None (not supported) */
|
|
10
|
+
rate_limit_level?: string;
|
|
11
|
+
/** Configured limit, None if not set */
|
|
12
|
+
limit?: number;
|
|
13
|
+
/** Configured window, None if not set */
|
|
14
|
+
window_seconds?: number;
|
|
15
|
+
/** DB record ID, None if not configured */
|
|
16
|
+
id?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Request schema for updating rate limits via API.
|
|
6
|
+
*/
|
|
7
|
+
export interface SourceRateLimitUpdateRequest {
|
|
8
|
+
/** Maximum requests allowed per window */
|
|
9
|
+
limit: number;
|
|
10
|
+
/** Time window in seconds */
|
|
11
|
+
window_seconds: number;
|
|
12
|
+
}
|
|
@@ -99,6 +99,9 @@ export * from "./SourceConnection.mjs";
|
|
|
99
99
|
export * from "./SourceConnectionJob.mjs";
|
|
100
100
|
export * from "./SourceConnectionListItem.mjs";
|
|
101
101
|
export * from "./SourceConnectionStatus.mjs";
|
|
102
|
+
export * from "./SourceRateLimit.mjs";
|
|
103
|
+
export * from "./SourceRateLimitResponse.mjs";
|
|
104
|
+
export * from "./SourceRateLimitUpdateRequest.mjs";
|
|
102
105
|
export * from "./SubscriptionInfo.mjs";
|
|
103
106
|
export * from "./Sync.mjs";
|
|
104
107
|
export * from "./SyncCreate.mjs";
|
|
@@ -99,6 +99,9 @@ export * from "./SourceConnection.mjs";
|
|
|
99
99
|
export * from "./SourceConnectionJob.mjs";
|
|
100
100
|
export * from "./SourceConnectionListItem.mjs";
|
|
101
101
|
export * from "./SourceConnectionStatus.mjs";
|
|
102
|
+
export * from "./SourceRateLimit.mjs";
|
|
103
|
+
export * from "./SourceRateLimitResponse.mjs";
|
|
104
|
+
export * from "./SourceRateLimitUpdateRequest.mjs";
|
|
102
105
|
export * from "./SubscriptionInfo.mjs";
|
|
103
106
|
export * from "./Sync.mjs";
|
|
104
107
|
export * from "./SyncCreate.mjs";
|
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.91";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.6.
|
|
1
|
+
export const SDK_VERSION = "v0.6.91";
|