@airweave/sdk 0.3.53 → 0.4.0

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 (103) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/Client.d.ts +2 -9
  3. package/dist/cjs/Client.js +3 -5
  4. package/dist/cjs/api/resources/collections/client/Client.d.ts +11 -20
  5. package/dist/cjs/api/resources/collections/client/Client.js +24 -53
  6. package/dist/cjs/api/resources/collections/client/requests/index.d.ts +0 -1
  7. package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +7 -22
  8. package/dist/cjs/api/resources/sourceConnections/client/Client.js +21 -59
  9. package/dist/cjs/api/resources/sourceConnections/client/requests/index.d.ts +0 -1
  10. package/dist/cjs/api/resources/sources/client/Client.d.ts +5 -9
  11. package/dist/cjs/api/resources/sources/client/Client.js +9 -9
  12. package/dist/cjs/api/resources/whiteLabels/client/Client.d.ts +12 -16
  13. package/dist/cjs/api/resources/whiteLabels/client/Client.js +24 -42
  14. package/dist/cjs/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.ts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.ts} +1 -1
  15. package/dist/cjs/api/resources/whiteLabels/client/requests/index.d.ts +1 -1
  16. package/dist/cjs/api/types/ActionCheckResponse.d.ts +23 -0
  17. package/dist/cjs/api/types/ActionCheckResponse.js +13 -0
  18. package/dist/cjs/api/types/BillingPeriodUsage.d.ts +27 -0
  19. package/dist/cjs/api/types/CancelSubscriptionRequest.d.ts +11 -0
  20. package/dist/cjs/api/types/CheckoutSessionRequest.d.ts +14 -0
  21. package/dist/cjs/api/types/CheckoutSessionRequest.js +5 -0
  22. package/dist/cjs/api/types/CheckoutSessionResponse.d.ts +10 -0
  23. package/dist/cjs/api/types/CheckoutSessionResponse.js +5 -0
  24. package/dist/cjs/api/types/CustomerPortalRequest.d.ts +10 -0
  25. package/dist/cjs/api/types/CustomerPortalRequest.js +5 -0
  26. package/dist/cjs/api/types/CustomerPortalResponse.d.ts +10 -0
  27. package/dist/cjs/api/types/CustomerPortalResponse.js +5 -0
  28. package/dist/cjs/api/types/MessageResponse.d.ts +10 -0
  29. package/dist/cjs/api/types/MessageResponse.js +5 -0
  30. package/dist/cjs/api/types/Organization.d.ts +1 -0
  31. package/dist/cjs/api/types/OrganizationCreate.d.ts +2 -0
  32. package/dist/cjs/api/types/OrganizationWithRole.d.ts +1 -0
  33. package/dist/cjs/api/types/SubscriptionInfo.d.ts +40 -0
  34. package/dist/cjs/api/types/SubscriptionInfo.js +5 -0
  35. package/dist/cjs/api/types/UpdatePlanRequest.d.ts +10 -0
  36. package/dist/cjs/api/types/UpdatePlanRequest.js +5 -0
  37. package/dist/cjs/api/types/UsageDashboard.d.ts +23 -0
  38. package/dist/cjs/api/types/UsageDashboard.js +5 -0
  39. package/dist/cjs/api/types/UsageSnapshot.d.ts +32 -0
  40. package/dist/cjs/api/types/UsageSnapshot.js +5 -0
  41. package/dist/cjs/api/types/UsageTrend.d.ts +14 -0
  42. package/dist/cjs/api/types/UsageTrend.js +5 -0
  43. package/dist/cjs/api/types/index.d.ts +13 -0
  44. package/dist/cjs/api/types/index.js +13 -0
  45. package/dist/cjs/version.d.ts +1 -1
  46. package/dist/cjs/version.js +1 -1
  47. package/dist/esm/Client.d.mts +2 -9
  48. package/dist/esm/Client.mjs +3 -5
  49. package/dist/esm/api/resources/collections/client/Client.d.mts +11 -20
  50. package/dist/esm/api/resources/collections/client/Client.mjs +24 -53
  51. package/dist/esm/api/resources/collections/client/requests/index.d.mts +0 -1
  52. package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +7 -22
  53. package/dist/esm/api/resources/sourceConnections/client/Client.mjs +21 -59
  54. package/dist/esm/api/resources/sourceConnections/client/requests/index.d.mts +0 -1
  55. package/dist/esm/api/resources/sources/client/Client.d.mts +5 -9
  56. package/dist/esm/api/resources/sources/client/Client.mjs +9 -9
  57. package/dist/esm/api/resources/whiteLabels/client/Client.d.mts +12 -16
  58. package/dist/esm/api/resources/whiteLabels/client/Client.mjs +24 -42
  59. package/dist/esm/api/resources/whiteLabels/client/requests/{BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.d.mts → BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.d.mts} +1 -1
  60. package/dist/esm/api/resources/whiteLabels/client/requests/index.d.mts +1 -1
  61. package/dist/esm/api/types/ActionCheckResponse.d.mts +23 -0
  62. package/dist/esm/api/types/ActionCheckResponse.mjs +10 -0
  63. package/dist/esm/api/types/BillingPeriodUsage.d.mts +27 -0
  64. package/dist/esm/api/types/CancelSubscriptionRequest.d.mts +11 -0
  65. package/dist/esm/api/types/CheckoutSessionRequest.d.mts +14 -0
  66. package/dist/esm/api/types/CheckoutSessionRequest.mjs +4 -0
  67. package/dist/esm/api/types/CheckoutSessionResponse.d.mts +10 -0
  68. package/dist/esm/api/types/CheckoutSessionResponse.mjs +4 -0
  69. package/dist/esm/api/types/CustomerPortalRequest.d.mts +10 -0
  70. package/dist/esm/api/types/CustomerPortalRequest.mjs +4 -0
  71. package/dist/esm/api/types/CustomerPortalResponse.d.mts +10 -0
  72. package/dist/esm/api/types/CustomerPortalResponse.mjs +4 -0
  73. package/dist/esm/api/types/MessageResponse.d.mts +10 -0
  74. package/dist/esm/api/types/MessageResponse.mjs +4 -0
  75. package/dist/esm/api/types/Organization.d.mts +1 -0
  76. package/dist/esm/api/types/OrganizationCreate.d.mts +2 -0
  77. package/dist/esm/api/types/OrganizationWithRole.d.mts +1 -0
  78. package/dist/esm/api/types/SubscriptionInfo.d.mts +40 -0
  79. package/dist/esm/api/types/SubscriptionInfo.mjs +4 -0
  80. package/dist/esm/api/types/UpdatePlanRequest.d.mts +10 -0
  81. package/dist/esm/api/types/UpdatePlanRequest.mjs +4 -0
  82. package/dist/esm/api/types/UsageDashboard.d.mts +23 -0
  83. package/dist/esm/api/types/UsageDashboard.mjs +4 -0
  84. package/dist/esm/api/types/UsageSnapshot.d.mts +32 -0
  85. package/dist/esm/api/types/UsageSnapshot.mjs +4 -0
  86. package/dist/esm/api/types/UsageTrend.d.mts +14 -0
  87. package/dist/esm/api/types/UsageTrend.mjs +4 -0
  88. package/dist/esm/api/types/index.d.mts +13 -0
  89. package/dist/esm/api/types/index.mjs +13 -0
  90. package/dist/esm/version.d.mts +1 -1
  91. package/dist/esm/version.mjs +1 -1
  92. package/package.json +1 -1
  93. package/reference.md +13 -43
  94. package/dist/cjs/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.ts +0 -13
  95. package/dist/cjs/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.ts +0 -13
  96. package/dist/esm/api/resources/collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.d.mts +0 -13
  97. package/dist/esm/api/resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.d.mts +0 -13
  98. /package/dist/cjs/api/resources/{collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.js → whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.js} +0 -0
  99. /package/dist/cjs/api/{resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.js → types/BillingPeriodUsage.js} +0 -0
  100. /package/dist/cjs/api/{resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.js → types/CancelSubscriptionRequest.js} +0 -0
  101. /package/dist/esm/api/resources/{collections/client/requests/DeleteCollectionCollectionsReadableIdDeleteRequest.mjs → whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodePost.mjs} +0 -0
  102. /package/dist/esm/api/{resources/sourceConnections/client/requests/DeleteSourceConnectionSourceConnectionsSourceConnectionIdDeleteRequest.mjs → types/BillingPeriodUsage.mjs} +0 -0
  103. /package/dist/esm/api/{resources/whiteLabels/client/requests/BodyExchangeWhiteLabelOauth2CodeWhiteLabelsWhiteLabelIdOauth2CodeOptions.mjs → types/CancelSubscriptionRequest.mjs} +0 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request to cancel subscription.
6
+ *
7
+ * Subscription will be canceled at the end of the current billing period.
8
+ * For immediate cancellation, delete the organization instead.
9
+ */
10
+ export interface CancelSubscriptionRequest {
11
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request to create a checkout session.
6
+ */
7
+ export interface CheckoutSessionRequest {
8
+ /** Plan to subscribe to (developer, startup) */
9
+ plan: string;
10
+ /** URL to redirect on successful payment */
11
+ success_url: string;
12
+ /** URL to redirect on cancellation */
13
+ cancel_url: string;
14
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response with checkout session URL.
6
+ */
7
+ export interface CheckoutSessionResponse {
8
+ /** Stripe checkout URL */
9
+ checkout_url: string;
10
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request to create customer portal session.
6
+ */
7
+ export interface CustomerPortalRequest {
8
+ /** URL to return to after portal session */
9
+ return_url: string;
10
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response with customer portal URL.
6
+ */
7
+ export interface CustomerPortalResponse {
8
+ /** Stripe customer portal URL */
9
+ portal_url: string;
10
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Generic message response.
6
+ */
7
+ export interface MessageResponse {
8
+ /** Response message */
9
+ message: string;
10
+ }
@@ -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 });
@@ -11,4 +11,5 @@ export interface Organization {
11
11
  id: string;
12
12
  created_at: string;
13
13
  modified_at: string;
14
+ org_metadata?: Record<string, unknown>;
14
15
  }
@@ -11,4 +11,6 @@ export interface OrganizationCreate {
11
11
  description?: string;
12
12
  /** Auth0 organization ID */
13
13
  auth0_org_id?: string;
14
+ /** Additional organization metadata */
15
+ org_metadata?: Record<string, unknown>;
14
16
  }
@@ -13,4 +13,5 @@ export interface OrganizationWithRole {
13
13
  role: string;
14
14
  is_primary: boolean;
15
15
  auth0_org_id?: string;
16
+ org_metadata?: Record<string, unknown>;
16
17
  }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Subscription information response.
6
+ */
7
+ export interface SubscriptionInfo {
8
+ /** Current billing plan */
9
+ plan: string;
10
+ /** Subscription status */
11
+ status: string;
12
+ /** Trial end date */
13
+ trial_ends_at?: string;
14
+ /** Grace period end date */
15
+ grace_period_ends_at?: string;
16
+ /** Current billing period start */
17
+ current_period_start?: string;
18
+ /** Current billing period end */
19
+ current_period_end?: string;
20
+ /** Whether subscription will cancel at period end */
21
+ cancel_at_period_end?: boolean;
22
+ /** Plan limits */
23
+ limits: Record<string, unknown>;
24
+ /** Whether using OSS version */
25
+ is_oss?: boolean;
26
+ /** Whether has active Stripe subscription */
27
+ has_active_subscription?: boolean;
28
+ /** Whether currently in trial period */
29
+ in_trial?: boolean;
30
+ /** Whether currently in grace period */
31
+ in_grace_period?: boolean;
32
+ /** Whether payment method is added */
33
+ payment_method_added?: boolean;
34
+ /** Whether payment method is required now */
35
+ requires_payment_method?: boolean;
36
+ /** Plan that will take effect at period end */
37
+ pending_plan_change?: string;
38
+ /** When the pending plan change takes effect */
39
+ pending_plan_change_at?: string;
40
+ }
@@ -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,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request to update subscription plan.
6
+ */
7
+ export interface UpdatePlanRequest {
8
+ /** New plan (developer, startup) */
9
+ plan: string;
10
+ }
@@ -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,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AirweaveSDK from "../index.js";
5
+ /**
6
+ * Complete dashboard data.
7
+ */
8
+ export interface UsageDashboard {
9
+ /** Current billing period usage */
10
+ current_period: AirweaveSDK.BillingPeriodUsage;
11
+ /** Historical billing periods */
12
+ previous_periods?: AirweaveSDK.BillingPeriodUsage[];
13
+ /** Total entities processed all time */
14
+ total_entities_all_time?: number;
15
+ /** Total queries executed all time */
16
+ total_queries_all_time?: number;
17
+ /** Average entities per day (current period) */
18
+ average_daily_entities?: number;
19
+ /** Average queries per day (current period) */
20
+ average_daily_queries?: number;
21
+ /** Usage trends compared to previous period */
22
+ trends?: AirweaveSDK.UsageTrend[];
23
+ }
@@ -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,32 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Point-in-time usage data with limits.
6
+ */
7
+ export interface UsageSnapshot {
8
+ /** Number of syncs executed */
9
+ syncs: number;
10
+ /** Total entities processed */
11
+ entities: number;
12
+ /** Search queries executed */
13
+ queries: number;
14
+ /** Collections created */
15
+ collections: number;
16
+ /** Source connections configured */
17
+ source_connections: number;
18
+ /** Maximum syncs allowed */
19
+ max_syncs?: number;
20
+ /** Maximum entities allowed */
21
+ max_entities?: number;
22
+ /** Maximum queries allowed */
23
+ max_queries?: number;
24
+ /** Maximum collections allowed */
25
+ max_collections?: number;
26
+ /** Maximum source connections allowed */
27
+ max_source_connections?: number;
28
+ /** When this snapshot was taken */
29
+ timestamp: string;
30
+ /** Associated billing period */
31
+ billing_period_id: string;
32
+ }
@@ -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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Usage trend information.
6
+ */
7
+ export interface UsageTrend {
8
+ /** Metric name (syncs, entities, etc) */
9
+ metric: string;
10
+ /** Trend direction: up, down, or stable */
11
+ direction: string;
12
+ /** Percentage change from previous period */
13
+ percentage_change: number;
14
+ }
@@ -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 });
@@ -1,18 +1,25 @@
1
1
  export * from "./ApiKey.js";
2
2
  export * from "./ApiKeyCreate.js";
3
+ export * from "./ActionCheckResponse.js";
3
4
  export * from "./AuthProvider.js";
4
5
  export * from "./AuthProviderConnection.js";
5
6
  export * from "./AuthProviderConnectionCreate.js";
6
7
  export * from "./AuthProviderConnectionUpdate.js";
7
8
  export * from "./AuthType.js";
9
+ export * from "./BillingPeriodUsage.js";
8
10
  export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js";
9
11
  export * from "./BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js";
12
+ export * from "./CancelSubscriptionRequest.js";
13
+ export * from "./CheckoutSessionRequest.js";
14
+ export * from "./CheckoutSessionResponse.js";
10
15
  export * from "./Collection.js";
11
16
  export * from "./CollectionStatus.js";
12
17
  export * from "./ConfigField.js";
13
18
  export * from "./ConfigValues.js";
14
19
  export * from "./Connection.js";
15
20
  export * from "./ConnectionStatus.js";
21
+ export * from "./CustomerPortalRequest.js";
22
+ export * from "./CustomerPortalResponse.js";
16
23
  export * from "./DagEdge.js";
17
24
  export * from "./DagEdgeCreate.js";
18
25
  export * from "./DagNode.js";
@@ -51,6 +58,7 @@ export * from "./MatchExcept.js";
51
58
  export * from "./MatchText.js";
52
59
  export * from "./MatchValue.js";
53
60
  export * from "./MemberResponse.js";
61
+ export * from "./MessageResponse.js";
54
62
  export * from "./MinShould.js";
55
63
  export * from "./Nested.js";
56
64
  export * from "./NestedCondition.js";
@@ -71,6 +79,7 @@ export * from "./SourceConnectionCreateWithWhiteLabel.js";
71
79
  export * from "./SourceConnectionJob.js";
72
80
  export * from "./SourceConnectionListItem.js";
73
81
  export * from "./SourceConnectionStatus.js";
82
+ export * from "./SubscriptionInfo.js";
74
83
  export * from "./Sync.js";
75
84
  export * from "./SyncCreate.js";
76
85
  export * from "./SyncDag.js";
@@ -84,6 +93,10 @@ export * from "./SyncWithSourceConnection.js";
84
93
  export * from "./Transformer.js";
85
94
  export * from "./TransformerCreate.js";
86
95
  export * from "./TransformerUpdate.js";
96
+ export * from "./UpdatePlanRequest.js";
97
+ export * from "./UsageDashboard.js";
98
+ export * from "./UsageSnapshot.js";
99
+ export * from "./UsageTrend.js";
87
100
  export * from "./User.js";
88
101
  export * from "./UserCreate.js";
89
102
  export * from "./UserOrganization.js";
@@ -16,19 +16,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApiKey.js"), exports);
18
18
  __exportStar(require("./ApiKeyCreate.js"), exports);
19
+ __exportStar(require("./ActionCheckResponse.js"), exports);
19
20
  __exportStar(require("./AuthProvider.js"), exports);
20
21
  __exportStar(require("./AuthProviderConnection.js"), exports);
21
22
  __exportStar(require("./AuthProviderConnectionCreate.js"), exports);
22
23
  __exportStar(require("./AuthProviderConnectionUpdate.js"), exports);
23
24
  __exportStar(require("./AuthType.js"), exports);
25
+ __exportStar(require("./BillingPeriodUsage.js"), exports);
24
26
  __exportStar(require("./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.js"), exports);
25
27
  __exportStar(require("./BodyCreateCredentialsFromAuthorizationCodeSourceConnectionsSourceShortNameCodeToTokenCredentialsPost.js"), exports);
28
+ __exportStar(require("./CancelSubscriptionRequest.js"), exports);
29
+ __exportStar(require("./CheckoutSessionRequest.js"), exports);
30
+ __exportStar(require("./CheckoutSessionResponse.js"), exports);
26
31
  __exportStar(require("./Collection.js"), exports);
27
32
  __exportStar(require("./CollectionStatus.js"), exports);
28
33
  __exportStar(require("./ConfigField.js"), exports);
29
34
  __exportStar(require("./ConfigValues.js"), exports);
30
35
  __exportStar(require("./Connection.js"), exports);
31
36
  __exportStar(require("./ConnectionStatus.js"), exports);
37
+ __exportStar(require("./CustomerPortalRequest.js"), exports);
38
+ __exportStar(require("./CustomerPortalResponse.js"), exports);
32
39
  __exportStar(require("./DagEdge.js"), exports);
33
40
  __exportStar(require("./DagEdgeCreate.js"), exports);
34
41
  __exportStar(require("./DagNode.js"), exports);
@@ -67,6 +74,7 @@ __exportStar(require("./MatchExcept.js"), exports);
67
74
  __exportStar(require("./MatchText.js"), exports);
68
75
  __exportStar(require("./MatchValue.js"), exports);
69
76
  __exportStar(require("./MemberResponse.js"), exports);
77
+ __exportStar(require("./MessageResponse.js"), exports);
70
78
  __exportStar(require("./MinShould.js"), exports);
71
79
  __exportStar(require("./Nested.js"), exports);
72
80
  __exportStar(require("./NestedCondition.js"), exports);
@@ -87,6 +95,7 @@ __exportStar(require("./SourceConnectionCreateWithWhiteLabel.js"), exports);
87
95
  __exportStar(require("./SourceConnectionJob.js"), exports);
88
96
  __exportStar(require("./SourceConnectionListItem.js"), exports);
89
97
  __exportStar(require("./SourceConnectionStatus.js"), exports);
98
+ __exportStar(require("./SubscriptionInfo.js"), exports);
90
99
  __exportStar(require("./Sync.js"), exports);
91
100
  __exportStar(require("./SyncCreate.js"), exports);
92
101
  __exportStar(require("./SyncDag.js"), exports);
@@ -100,6 +109,10 @@ __exportStar(require("./SyncWithSourceConnection.js"), exports);
100
109
  __exportStar(require("./Transformer.js"), exports);
101
110
  __exportStar(require("./TransformerCreate.js"), exports);
102
111
  __exportStar(require("./TransformerUpdate.js"), exports);
112
+ __exportStar(require("./UpdatePlanRequest.js"), exports);
113
+ __exportStar(require("./UsageDashboard.js"), exports);
114
+ __exportStar(require("./UsageSnapshot.js"), exports);
115
+ __exportStar(require("./UsageTrend.js"), exports);
103
116
  __exportStar(require("./User.js"), exports);
104
117
  __exportStar(require("./UserCreate.js"), exports);
105
118
  __exportStar(require("./UserOrganization.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.3.53";
1
+ export declare const SDK_VERSION = "v0.4.0";
@@ -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.3.53";
4
+ exports.SDK_VERSION = "v0.4.0";
@@ -12,10 +12,7 @@ export declare namespace AirweaveSDKClient {
12
12
  environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
13
13
  /** Specify a custom URL to connect the client to. */
14
14
  baseUrl?: core.Supplier<string>;
15
- /** Override the X-API-Key header */
16
- apiKey?: core.Supplier<string | undefined>;
17
- /** Override the X-Organization-ID header */
18
- organizationId?: core.Supplier<string | undefined>;
15
+ apiKey: core.Supplier<string>;
19
16
  /** Additional headers to include in requests. */
20
17
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
21
18
  }
@@ -26,10 +23,6 @@ export declare namespace AirweaveSDKClient {
26
23
  maxRetries?: number;
27
24
  /** A hook to abort the request. */
28
25
  abortSignal?: AbortSignal;
29
- /** Override the X-API-Key header */
30
- apiKey?: string | undefined;
31
- /** Override the X-Organization-ID header */
32
- organizationId?: string | undefined;
33
26
  /** Additional headers to include in the request. */
34
27
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
35
28
  }
@@ -40,7 +33,7 @@ export declare class AirweaveSDKClient {
40
33
  protected _collections: Collections | undefined;
41
34
  protected _sourceConnections: SourceConnections | undefined;
42
35
  protected _whiteLabels: WhiteLabels | undefined;
43
- constructor(_options?: AirweaveSDKClient.Options);
36
+ constructor(_options: AirweaveSDKClient.Options);
44
37
  get sources(): Sources;
45
38
  get collections(): Collections;
46
39
  get sourceConnections(): SourceConnections;
@@ -8,14 +8,12 @@ import { Collections } from "./api/resources/collections/client/Client.mjs";
8
8
  import { SourceConnections } from "./api/resources/sourceConnections/client/Client.mjs";
9
9
  import { WhiteLabels } from "./api/resources/whiteLabels/client/Client.mjs";
10
10
  export class AirweaveSDKClient {
11
- constructor(_options = {}) {
11
+ constructor(_options) {
12
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
13
- "X-API-Key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
14
- "X-Organization-ID": _options === null || _options === void 0 ? void 0 : _options.organizationId,
15
13
  "X-Fern-Language": "JavaScript",
16
14
  "X-Fern-SDK-Name": "@airweave/sdk",
17
- "X-Fern-SDK-Version": "v0.3.53",
18
- "User-Agent": "@airweave/sdk/v0.3.53",
15
+ "X-Fern-SDK-Version": "v0.4.0",
16
+ "User-Agent": "@airweave/sdk/v0.4.0",
19
17
  "X-Fern-Runtime": core.RUNTIME.type,
20
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
21
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -9,10 +9,7 @@ export declare namespace Collections {
9
9
  environment?: core.Supplier<environments.AirweaveSDKEnvironment | string>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- /** Override the X-API-Key header */
13
- apiKey?: core.Supplier<string | undefined>;
14
- /** Override the X-Organization-ID header */
15
- organizationId?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
16
13
  /** Additional headers to include in requests. */
17
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
18
15
  }
@@ -23,10 +20,6 @@ export declare namespace Collections {
23
20
  maxRetries?: number;
24
21
  /** A hook to abort the request. */
25
22
  abortSignal?: AbortSignal;
26
- /** Override the X-API-Key header */
27
- apiKey?: string | undefined;
28
- /** Override the X-Organization-ID header */
29
- organizationId?: string | undefined;
30
23
  /** Additional headers to include in the request. */
31
24
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
32
25
  }
@@ -36,7 +29,7 @@ export declare namespace Collections {
36
29
  */
37
30
  export declare class Collections {
38
31
  protected readonly _options: Collections.Options;
39
- constructor(_options?: Collections.Options);
32
+ constructor(_options: Collections.Options);
40
33
  /**
41
34
  * List all collections that belong to your organization.
42
35
  *
@@ -53,7 +46,6 @@ export declare class Collections {
53
46
  /**
54
47
  * Create a new collection.
55
48
  *
56
- * <br/><br/>
57
49
  * The newly created collection is initially empty and does not contain any data
58
50
  * until you explicitly add source connections to it.
59
51
  *
@@ -86,7 +78,6 @@ export declare class Collections {
86
78
  /**
87
79
  * Update a collection's properties.
88
80
  *
89
- * <br/><br/>
90
81
  * Modifies the display name of an existing collection.
91
82
  * Note that the readable ID cannot be changed after creation to maintain stable
92
83
  * API endpoints and preserve any existing integrations or bookmarks.
@@ -105,16 +96,13 @@ export declare class Collections {
105
96
  updateCollection(readableId: string, request?: AirweaveSDK.CollectionUpdate, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
106
97
  private __updateCollection;
107
98
  /**
108
- * Delete a collection and optionally its associated data.
99
+ * Delete a collection and all associated data.
109
100
  *
110
- * <br/><br/>
111
- * Permanently removes a collection from your organization. By default, this only
112
- * deletes the collection metadata while preserving the actual data in the
113
- * destination systems.<br/><br/>All source connections within this collection
114
- * will also be deleted as part of the cleanup process.
101
+ * Permanently removes a collection from your organization including all synced data
102
+ * from the destination systems. All source connections within this collection
103
+ * will also be deleted as part of the cleanup process. This action cannot be undone.
115
104
  *
116
105
  * @param {string} readableId - The unique readable identifier of the collection to delete
117
- * @param {AirweaveSDK.DeleteCollectionCollectionsReadableIdDeleteRequest} request
118
106
  * @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
119
107
  *
120
108
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
@@ -122,7 +110,7 @@ export declare class Collections {
122
110
  * @example
123
111
  * await client.collections.deleteCollection("readable_id")
124
112
  */
125
- deleteCollection(readableId: string, request?: AirweaveSDK.DeleteCollectionCollectionsReadableIdDeleteRequest, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
113
+ deleteCollection(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.Collection>;
126
114
  private __deleteCollection;
127
115
  /**
128
116
  * Search across all data sources within the specified collection.
@@ -176,7 +164,7 @@ export declare class Collections {
176
164
  /**
177
165
  * Trigger data synchronization for all source connections in the collection.
178
166
  *
179
- * <br/><br/>The sync jobs run asynchronously in the background, so this endpoint
167
+ * The sync jobs run asynchronously in the background, so this endpoint
180
168
  * returns immediately with job details that you can use to track progress. You can
181
169
  * monitor the status of individual data synchronization using the source connection
182
170
  * endpoints.
@@ -191,4 +179,7 @@ export declare class Collections {
191
179
  */
192
180
  refreshAllSourceConnections(readableId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<AirweaveSDK.SourceConnectionJob[]>;
193
181
  private __refreshAllSourceConnections;
182
+ protected _getCustomAuthorizationHeaders(): Promise<{
183
+ "x-api-key": string;
184
+ }>;
194
185
  }