@airweave/sdk 0.6.46 → 0.6.48
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/README.md +21 -1
- package/dist/cjs/Client.d.ts +8 -0
- package/dist/cjs/Client.js +4 -2
- package/dist/cjs/api/resources/collections/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/collections/client/Client.js +21 -21
- package/dist/cjs/api/resources/sourceConnections/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/sourceConnections/client/Client.js +24 -24
- package/dist/cjs/api/resources/sources/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/sources/client/Client.js +6 -6
- package/dist/cjs/api/types/BillingPeriod.d.ts +30 -0
- package/dist/cjs/api/types/BillingPeriod.js +5 -0
- package/dist/cjs/api/types/BillingPeriodStatus.d.ts +14 -0
- package/dist/cjs/api/types/BillingPeriodStatus.js +13 -0
- package/dist/cjs/api/types/BillingPlan.d.ts +14 -0
- package/dist/cjs/api/types/BillingPlan.js +13 -0
- package/dist/cjs/api/types/BillingStatus.d.ts +16 -0
- package/dist/cjs/api/types/BillingStatus.js +15 -0
- package/dist/cjs/api/types/BillingTransition.d.ts +15 -0
- package/dist/cjs/api/types/BillingTransition.js +14 -0
- package/dist/cjs/api/types/Organization.d.ts +12 -1
- package/dist/cjs/api/types/OrganizationBilling.d.ts +44 -0
- package/dist/cjs/api/types/OrganizationBilling.js +5 -0
- package/dist/cjs/api/types/OrganizationWithRole.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +8 -0
- package/dist/esm/Client.mjs +4 -2
- package/dist/esm/api/resources/collections/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/collections/client/Client.mjs +21 -21
- package/dist/esm/api/resources/sourceConnections/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/sourceConnections/client/Client.mjs +24 -24
- package/dist/esm/api/resources/sources/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/sources/client/Client.mjs +6 -6
- package/dist/esm/api/types/BillingPeriod.d.mts +30 -0
- package/dist/esm/api/types/BillingPeriod.mjs +4 -0
- package/dist/esm/api/types/BillingPeriodStatus.d.mts +14 -0
- package/dist/esm/api/types/BillingPeriodStatus.mjs +10 -0
- package/dist/esm/api/types/BillingPlan.d.mts +14 -0
- package/dist/esm/api/types/BillingPlan.mjs +10 -0
- package/dist/esm/api/types/BillingStatus.d.mts +16 -0
- package/dist/esm/api/types/BillingStatus.mjs +12 -0
- package/dist/esm/api/types/BillingTransition.d.mts +15 -0
- package/dist/esm/api/types/BillingTransition.mjs +11 -0
- package/dist/esm/api/types/Organization.d.mts +12 -1
- package/dist/esm/api/types/OrganizationBilling.d.mts +44 -0
- package/dist/esm/api/types/OrganizationBilling.mjs +4 -0
- package/dist/esm/api/types/OrganizationWithRole.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Billing plan tiers.
|
|
6
|
+
*/
|
|
7
|
+
export type BillingPlan = "trial" | "developer" | "pro" | "team" | "enterprise";
|
|
8
|
+
export declare const BillingPlan: {
|
|
9
|
+
readonly Trial: "trial";
|
|
10
|
+
readonly Developer: "developer";
|
|
11
|
+
readonly Pro: "pro";
|
|
12
|
+
readonly Team: "team";
|
|
13
|
+
readonly Enterprise: "enterprise";
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Billing subscription status.
|
|
6
|
+
*/
|
|
7
|
+
export type BillingStatus = "active" | "past_due" | "canceled" | "paused" | "trialing" | "trial_expired" | "grace_period";
|
|
8
|
+
export declare const BillingStatus: {
|
|
9
|
+
readonly Active: "active";
|
|
10
|
+
readonly PastDue: "past_due";
|
|
11
|
+
readonly Canceled: "canceled";
|
|
12
|
+
readonly Paused: "paused";
|
|
13
|
+
readonly Trialing: "trialing";
|
|
14
|
+
readonly TrialExpired: "trial_expired";
|
|
15
|
+
readonly GracePeriod: "grace_period";
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export const BillingStatus = {
|
|
5
|
+
Active: "active",
|
|
6
|
+
PastDue: "past_due",
|
|
7
|
+
Canceled: "canceled",
|
|
8
|
+
Paused: "paused",
|
|
9
|
+
Trialing: "trialing",
|
|
10
|
+
TrialExpired: "trial_expired",
|
|
11
|
+
GracePeriod: "grace_period",
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* How this billing period was created.
|
|
6
|
+
*/
|
|
7
|
+
export type BillingTransition = "initial_signup" | "renewal" | "upgrade" | "downgrade" | "reactivation" | "trial_conversion";
|
|
8
|
+
export declare const BillingTransition: {
|
|
9
|
+
readonly InitialSignup: "initial_signup";
|
|
10
|
+
readonly Renewal: "renewal";
|
|
11
|
+
readonly Upgrade: "upgrade";
|
|
12
|
+
readonly Downgrade: "downgrade";
|
|
13
|
+
readonly Reactivation: "reactivation";
|
|
14
|
+
readonly TrialConversion: "trial_conversion";
|
|
15
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export const BillingTransition = {
|
|
5
|
+
InitialSignup: "initial_signup",
|
|
6
|
+
Renewal: "renewal",
|
|
7
|
+
Upgrade: "upgrade",
|
|
8
|
+
Downgrade: "downgrade",
|
|
9
|
+
Reactivation: "reactivation",
|
|
10
|
+
TrialConversion: "trial_conversion",
|
|
11
|
+
};
|
|
@@ -3,7 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as AirweaveSDK from "../index.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* Organization schema.
|
|
6
|
+
* Organization schema with billing and feature information.
|
|
7
|
+
*
|
|
8
|
+
* This is the primary organization schema used in API contexts, enriched with
|
|
9
|
+
* billing (including current period) and feature flags for efficient access
|
|
10
|
+
* without additional database queries.
|
|
11
|
+
*
|
|
12
|
+
* Access billing info compositionally:
|
|
13
|
+
* - organization.billing.plan
|
|
14
|
+
* - organization.billing.status
|
|
15
|
+
* - organization.billing.current_period
|
|
7
16
|
*/
|
|
8
17
|
export interface Organization {
|
|
9
18
|
name: string;
|
|
@@ -15,4 +24,6 @@ export interface Organization {
|
|
|
15
24
|
org_metadata?: Record<string, unknown>;
|
|
16
25
|
/** List of enabled feature flags for this organization */
|
|
17
26
|
enabled_features?: AirweaveSDK.FeatureFlag[];
|
|
27
|
+
/** Complete billing information including current period */
|
|
28
|
+
billing?: AirweaveSDK.OrganizationBilling;
|
|
18
29
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AirweaveSDK from "../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Organization billing schema with current period information.
|
|
7
|
+
*
|
|
8
|
+
* This schema is enriched with the current active billing period for
|
|
9
|
+
* efficient access to rate limits and billing status without additional queries.
|
|
10
|
+
*/
|
|
11
|
+
export interface OrganizationBilling {
|
|
12
|
+
/** Current billing plan */
|
|
13
|
+
billing_plan?: AirweaveSDK.BillingPlan;
|
|
14
|
+
/** Current billing status */
|
|
15
|
+
billing_status?: AirweaveSDK.BillingStatus;
|
|
16
|
+
/** Billing contact email */
|
|
17
|
+
billing_email: string;
|
|
18
|
+
id: string;
|
|
19
|
+
organization_id: string;
|
|
20
|
+
stripe_customer_id: string;
|
|
21
|
+
stripe_subscription_id?: string;
|
|
22
|
+
trial_ends_at?: string;
|
|
23
|
+
grace_period_ends_at?: string;
|
|
24
|
+
payment_method_added?: boolean;
|
|
25
|
+
current_period_start?: string;
|
|
26
|
+
current_period_end?: string;
|
|
27
|
+
cancel_at_period_end?: boolean;
|
|
28
|
+
pending_plan_change?: AirweaveSDK.BillingPlan;
|
|
29
|
+
pending_plan_change_at?: string;
|
|
30
|
+
payment_method_id?: string;
|
|
31
|
+
last_payment_status?: string;
|
|
32
|
+
last_payment_at?: string;
|
|
33
|
+
billing_metadata?: Record<string, unknown>;
|
|
34
|
+
has_yearly_prepay?: boolean;
|
|
35
|
+
yearly_prepay_started_at?: string;
|
|
36
|
+
yearly_prepay_expires_at?: string;
|
|
37
|
+
yearly_prepay_amount_cents?: number;
|
|
38
|
+
yearly_prepay_coupon_id?: string;
|
|
39
|
+
yearly_prepay_payment_intent_id?: string;
|
|
40
|
+
created_at: string;
|
|
41
|
+
modified_at: string;
|
|
42
|
+
/** Current active billing period */
|
|
43
|
+
current_period?: AirweaveSDK.BillingPeriod;
|
|
44
|
+
}
|
|
@@ -17,4 +17,6 @@ export interface OrganizationWithRole {
|
|
|
17
17
|
org_metadata?: Record<string, unknown>;
|
|
18
18
|
/** List of enabled feature flags for this organization */
|
|
19
19
|
enabled_features?: AirweaveSDK.FeatureFlag[];
|
|
20
|
+
/** Complete billing information including current period */
|
|
21
|
+
billing?: AirweaveSDK.OrganizationBilling;
|
|
20
22
|
}
|
|
@@ -9,7 +9,12 @@ export * from "./AuthProviderConnectionCreate.mjs";
|
|
|
9
9
|
export * from "./AuthProviderConnectionUpdate.mjs";
|
|
10
10
|
export * from "./AuthenticationDetails.mjs";
|
|
11
11
|
export * from "./AuthenticationMethod.mjs";
|
|
12
|
+
export * from "./BillingPeriod.mjs";
|
|
13
|
+
export * from "./BillingPeriodStatus.mjs";
|
|
12
14
|
export * from "./BillingPeriodUsage.mjs";
|
|
15
|
+
export * from "./BillingPlan.mjs";
|
|
16
|
+
export * from "./BillingStatus.mjs";
|
|
17
|
+
export * from "./BillingTransition.mjs";
|
|
13
18
|
export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.mjs";
|
|
14
19
|
export * from "./CheckoutSessionRequest.mjs";
|
|
15
20
|
export * from "./CheckoutSessionResponse.mjs";
|
|
@@ -77,6 +82,7 @@ export * from "./OAuthBrowserAuthentication.mjs";
|
|
|
77
82
|
export * from "./OAuthTokenAuthentication.mjs";
|
|
78
83
|
export * from "./OAuthType.mjs";
|
|
79
84
|
export * from "./Organization.mjs";
|
|
85
|
+
export * from "./OrganizationBilling.mjs";
|
|
80
86
|
export * from "./OrganizationCreate.mjs";
|
|
81
87
|
export * from "./OrganizationMetrics.mjs";
|
|
82
88
|
export * from "./OrganizationWithRole.mjs";
|
|
@@ -9,7 +9,12 @@ export * from "./AuthProviderConnectionCreate.mjs";
|
|
|
9
9
|
export * from "./AuthProviderConnectionUpdate.mjs";
|
|
10
10
|
export * from "./AuthenticationDetails.mjs";
|
|
11
11
|
export * from "./AuthenticationMethod.mjs";
|
|
12
|
+
export * from "./BillingPeriod.mjs";
|
|
13
|
+
export * from "./BillingPeriodStatus.mjs";
|
|
12
14
|
export * from "./BillingPeriodUsage.mjs";
|
|
15
|
+
export * from "./BillingPlan.mjs";
|
|
16
|
+
export * from "./BillingStatus.mjs";
|
|
17
|
+
export * from "./BillingTransition.mjs";
|
|
13
18
|
export * from "./BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost.mjs";
|
|
14
19
|
export * from "./CheckoutSessionRequest.mjs";
|
|
15
20
|
export * from "./CheckoutSessionResponse.mjs";
|
|
@@ -77,6 +82,7 @@ export * from "./OAuthBrowserAuthentication.mjs";
|
|
|
77
82
|
export * from "./OAuthTokenAuthentication.mjs";
|
|
78
83
|
export * from "./OAuthType.mjs";
|
|
79
84
|
export * from "./Organization.mjs";
|
|
85
|
+
export * from "./OrganizationBilling.mjs";
|
|
80
86
|
export * from "./OrganizationCreate.mjs";
|
|
81
87
|
export * from "./OrganizationMetrics.mjs";
|
|
82
88
|
export * from "./OrganizationWithRole.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.48";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "v0.6.
|
|
1
|
+
export const SDK_VERSION = "v0.6.48";
|