@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.
Files changed (31) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/types/FeatureFlag.d.ts +2 -1
  3. package/dist/cjs/api/types/FeatureFlag.js +1 -0
  4. package/dist/cjs/api/types/Source.d.ts +2 -0
  5. package/dist/cjs/api/types/SourceRateLimit.d.ts +18 -0
  6. package/dist/cjs/api/types/SourceRateLimit.js +5 -0
  7. package/dist/cjs/api/types/SourceRateLimitResponse.d.ts +17 -0
  8. package/dist/cjs/api/types/SourceRateLimitResponse.js +5 -0
  9. package/dist/cjs/api/types/SourceRateLimitUpdateRequest.d.ts +12 -0
  10. package/dist/cjs/api/types/SourceRateLimitUpdateRequest.js +5 -0
  11. package/dist/cjs/api/types/User.d.ts +1 -0
  12. package/dist/cjs/api/types/index.d.ts +3 -0
  13. package/dist/cjs/api/types/index.js +3 -0
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/Client.mjs +2 -2
  17. package/dist/esm/api/types/FeatureFlag.d.mts +2 -1
  18. package/dist/esm/api/types/FeatureFlag.mjs +1 -0
  19. package/dist/esm/api/types/Source.d.mts +2 -0
  20. package/dist/esm/api/types/SourceRateLimit.d.mts +18 -0
  21. package/dist/esm/api/types/SourceRateLimit.mjs +4 -0
  22. package/dist/esm/api/types/SourceRateLimitResponse.d.mts +17 -0
  23. package/dist/esm/api/types/SourceRateLimitResponse.mjs +4 -0
  24. package/dist/esm/api/types/SourceRateLimitUpdateRequest.d.mts +12 -0
  25. package/dist/esm/api/types/SourceRateLimitUpdateRequest.mjs +4 -0
  26. package/dist/esm/api/types/User.d.mts +1 -0
  27. package/dist/esm/api/types/index.d.mts +3 -0
  28. package/dist/esm/api/types/index.mjs +3 -0
  29. package/dist/esm/version.d.mts +1 -1
  30. package/dist/esm/version.mjs +1 -1
  31. package/package.json +1 -1
@@ -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.89",
53
- "User-Agent": "@airweave/sdk/v0.6.89",
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
  };
@@ -7,4 +7,5 @@ exports.FeatureFlag = void 0;
7
7
  exports.FeatureFlag = {
8
8
  S3Destination: "s3_destination",
9
9
  PrioritySupport: "priority_support",
10
+ SourceRateLimiting: "source_rate_limiting",
10
11
  };
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,5 +13,6 @@ export interface User {
13
13
  primary_organization_id?: string;
14
14
  user_organizations?: AirweaveSDK.UserOrganization[];
15
15
  is_admin?: boolean;
16
+ is_superuser?: boolean;
16
17
  last_active_at?: string;
17
18
  }
@@ -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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.6.89";
1
+ export declare const SDK_VERSION = "v0.6.91";
@@ -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.89";
4
+ exports.SDK_VERSION = "v0.6.91";
@@ -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.89",
17
- "User-Agent": "@airweave/sdk/v0.6.89",
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
  };
@@ -4,4 +4,5 @@
4
4
  export const FeatureFlag = {
5
5
  S3Destination: "s3_destination",
6
6
  PrioritySupport: "priority_support",
7
+ SourceRateLimiting: "source_rate_limiting",
7
8
  };
@@ -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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -13,5 +13,6 @@ export interface User {
13
13
  primary_organization_id?: string;
14
14
  user_organizations?: AirweaveSDK.UserOrganization[];
15
15
  is_admin?: boolean;
16
+ is_superuser?: boolean;
16
17
  last_active_at?: string;
17
18
  }
@@ -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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.6.89";
1
+ export declare const SDK_VERSION = "v0.6.91";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.6.89";
1
+ export const SDK_VERSION = "v0.6.91";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.6.89",
3
+ "version": "v0.6.91",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",