@schematichq/schematic-typescript-node 1.5.0 → 1.5.2
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/Client.d.ts +8 -0
- package/dist/api/resources/billing/client/Client.d.ts +47 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -0
- package/dist/api/resources/billing/types/DeleteBillingCouponResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/DeleteBillingCustomerResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/DeleteBillingInvoiceResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/index.d.ts +3 -0
- package/dist/api/resources/credits/client/Client.d.ts +0 -48
- package/dist/api/resources/credits/client/requests/index.d.ts +0 -2
- package/dist/api/resources/credits/types/index.d.ts +0 -4
- package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +4 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +4 -0
- package/dist/api/resources/plans/client/Client.d.ts +2 -10
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +1 -6
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -6
- package/dist/api/resources/webhooks/client/Client.d.ts +18 -0
- package/dist/api/resources/webhooks/client/requests/TestWebhookRequestBody.d.ts +10 -0
- package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/api/resources/webhooks/types/SendTestWebhookActionResponse.d.ts +6 -0
- package/dist/api/resources/webhooks/types/index.d.ts +1 -0
- package/dist/api/types/AccountMemberPermission.d.ts +0 -1
- package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/types/CheckFlagsResponseData.d.ts +2 -0
- package/dist/api/types/CheckoutSettingsResponseData.d.ts +3 -0
- package/dist/api/types/CompanyCreditBalance.d.ts +8 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -0
- package/dist/api/types/FeatureEntitlement.d.ts +9 -1
- package/dist/api/types/PlanChangeResponseData.d.ts +2 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +9 -1
- package/dist/api/types/TestWebhookResponseData.d.ts +4 -0
- package/dist/api/types/index.d.ts +2 -2
- package/dist/credits/check.d.ts +9 -5
- package/dist/credits/types.d.ts +11 -9
- package/dist/datastream/merge.d.ts +1 -1
- package/dist/index.js +9 -9
- package/dist/rules-engine.d.ts +4 -0
- package/dist/serialization/resources/billing/types/DeleteBillingCouponResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/DeleteBillingCustomerResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/DeleteBillingInvoiceResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/index.d.ts +3 -0
- package/dist/serialization/resources/credits/types/index.d.ts +0 -4
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +3 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +3 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +0 -2
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +0 -2
- package/dist/serialization/resources/webhooks/client/requests/TestWebhookRequestBody.d.ts +10 -0
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/webhooks/types/SendTestWebhookActionResponse.d.ts +11 -0
- package/dist/serialization/resources/webhooks/types/index.d.ts +1 -0
- package/dist/serialization/types/AccountMemberPermission.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
- package/dist/serialization/types/CheckoutSettingsResponseData.d.ts +3 -0
- package/dist/serialization/types/CompanyCreditBalance.d.ts +11 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureEntitlement.d.ts +4 -0
- package/dist/serialization/types/PlanChangeResponseData.d.ts +1 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +4 -0
- package/dist/serialization/types/TestWebhookResponseData.d.ts +10 -0
- package/dist/serialization/types/index.d.ts +2 -2
- package/dist/wasm/rulesengine.js +4 -4
- package/dist/wrapper.d.ts +0 -30
- package/package.json +1 -1
- package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +0 -26
- package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +0 -26
- package/dist/api/resources/credits/types/CountCreditLedgerParams.d.ts +0 -16
- package/dist/api/resources/credits/types/CountCreditLedgerResponse.d.ts +0 -6
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +0 -16
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +0 -6
- package/dist/api/types/CreditLedgerEnrichedEntryResponseData.d.ts +0 -25
- package/dist/api/types/CreditLedgerPeriod.d.ts +0 -7
- package/dist/serialization/resources/credits/types/CountCreditLedgerParams.d.ts +0 -17
- package/dist/serialization/resources/credits/types/CountCreditLedgerResponse.d.ts +0 -12
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +0 -17
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +0 -12
- package/dist/serialization/types/CreditLedgerEnrichedEntryResponseData.d.ts +0 -33
- package/dist/serialization/types/CreditLedgerPeriod.d.ts +0 -7
package/dist/rules-engine.d.ts
CHANGED
|
@@ -9,13 +9,17 @@ export interface WasmFeatureEntitlement {
|
|
|
9
9
|
softLimit?: number;
|
|
10
10
|
usage?: number;
|
|
11
11
|
eventName?: string;
|
|
12
|
+
eventSubtype?: string;
|
|
12
13
|
metricPeriod?: Schematic.RulesengineMetricPeriod;
|
|
13
14
|
monthReset?: Schematic.RulesengineMetricPeriodMonthReset;
|
|
14
15
|
metricResetAt?: string;
|
|
15
16
|
creditId?: string;
|
|
17
|
+
consumptionRate?: number;
|
|
16
18
|
creditTotal?: number;
|
|
17
19
|
creditUsed?: number;
|
|
18
20
|
creditRemaining?: number;
|
|
21
|
+
creditReserved?: number;
|
|
22
|
+
creditSettled?: number;
|
|
19
23
|
}
|
|
20
24
|
/** Result returned by the WASM rules engine */
|
|
21
25
|
export interface WasmCheckFlagResult {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { DeleteResponse } from "../../../types/DeleteResponse";
|
|
5
|
+
export declare const DeleteBillingCouponResponse: core.serialization.ObjectSchema<serializers.DeleteBillingCouponResponse.Raw, Schematic.DeleteBillingCouponResponse>;
|
|
6
|
+
export declare namespace DeleteBillingCouponResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: DeleteResponse.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { DeleteResponse } from "../../../types/DeleteResponse";
|
|
5
|
+
export declare const DeleteBillingCustomerResponse: core.serialization.ObjectSchema<serializers.DeleteBillingCustomerResponse.Raw, Schematic.DeleteBillingCustomerResponse>;
|
|
6
|
+
export declare namespace DeleteBillingCustomerResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: DeleteResponse.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { DeleteResponse } from "../../../types/DeleteResponse";
|
|
5
|
+
export declare const DeleteBillingInvoiceResponse: core.serialization.ObjectSchema<serializers.DeleteBillingInvoiceResponse.Raw, Schematic.DeleteBillingInvoiceResponse>;
|
|
6
|
+
export declare namespace DeleteBillingInvoiceResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: DeleteResponse.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -15,6 +15,7 @@ export declare namespace ListBillingProductPricesParams {
|
|
|
15
15
|
is_active?: boolean | null;
|
|
16
16
|
limit?: number | null;
|
|
17
17
|
offset?: number | null;
|
|
18
|
+
plan_version_id?: string | null;
|
|
18
19
|
price?: number | null;
|
|
19
20
|
product_id?: string | null;
|
|
20
21
|
product_ids?: string[] | null;
|
|
@@ -2,6 +2,9 @@ export * from "./CountBillingProductsParams";
|
|
|
2
2
|
export * from "./CountBillingProductsResponse";
|
|
3
3
|
export * from "./CountCustomersParams";
|
|
4
4
|
export * from "./CountCustomersResponse";
|
|
5
|
+
export * from "./DeleteBillingCouponResponse";
|
|
6
|
+
export * from "./DeleteBillingCustomerResponse";
|
|
7
|
+
export * from "./DeleteBillingInvoiceResponse";
|
|
5
8
|
export * from "./DeleteBillingProductResponse";
|
|
6
9
|
export * from "./DeletePaymentMethodByExternalIdResponse";
|
|
7
10
|
export * from "./DeleteProductPriceResponse";
|
|
@@ -11,8 +11,6 @@ export * from "./CountCreditBundlesParams";
|
|
|
11
11
|
export * from "./CountCreditBundlesResponse";
|
|
12
12
|
export * from "./CountCreditEventLedgerParams";
|
|
13
13
|
export * from "./CountCreditEventLedgerResponse";
|
|
14
|
-
export * from "./CountCreditLedgerParams";
|
|
15
|
-
export * from "./CountCreditLedgerResponse";
|
|
16
14
|
export * from "./CreateBillingCreditResponse";
|
|
17
15
|
export * from "./CreateBillingPlanCreditGrantResponse";
|
|
18
16
|
export * from "./CreateCreditBundleResponse";
|
|
@@ -21,8 +19,6 @@ export * from "./DeleteBillingPlanCreditGrantResponse";
|
|
|
21
19
|
export * from "./DeleteCreditBundleResponse";
|
|
22
20
|
export * from "./ExtendCreditLeaseResponse";
|
|
23
21
|
export * from "./GetCreditBundleResponse";
|
|
24
|
-
export * from "./GetEnrichedCreditLedgerParams";
|
|
25
|
-
export * from "./GetEnrichedCreditLedgerResponse";
|
|
26
22
|
export * from "./GetSingleBillingCreditResponse";
|
|
27
23
|
export * from "./GetSingleBillingPlanCreditGrantResponse";
|
|
28
24
|
export * from "./GrantBillingCreditsToCompanyResponse";
|
package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ export declare namespace CreatePlanGroupRequestBody {
|
|
|
23
23
|
fallback_plan_id?: string | null;
|
|
24
24
|
initial_plan_id?: string | null;
|
|
25
25
|
initial_plan_price_id?: string | null;
|
|
26
|
+
opt_in_enabled: boolean;
|
|
27
|
+
opt_in_text?: string | null;
|
|
28
|
+
opt_in_title?: string | null;
|
|
26
29
|
ordered_add_ons: OrderedPlansInGroup.Raw[];
|
|
27
30
|
ordered_bundle_list: PlanGroupBundleOrder.Raw[];
|
|
28
31
|
ordered_plans: OrderedPlansInGroup.Raw[];
|
package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ export declare namespace UpdatePlanGroupRequestBody {
|
|
|
23
23
|
fallback_plan_id?: string | null;
|
|
24
24
|
initial_plan_id?: string | null;
|
|
25
25
|
initial_plan_price_id?: string | null;
|
|
26
|
+
opt_in_enabled: boolean;
|
|
27
|
+
opt_in_text?: string | null;
|
|
28
|
+
opt_in_title?: string | null;
|
|
26
29
|
ordered_add_ons: OrderedPlansInGroup.Raw[];
|
|
27
30
|
ordered_bundle_list: PlanGroupBundleOrder.Raw[];
|
|
28
31
|
ordered_plans: OrderedPlansInGroup.Raw[];
|
package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import * as core from "../../../../../core";
|
|
|
3
3
|
import type * as serializers from "../../../../index";
|
|
4
4
|
import { CustomPlanActivationStrategy } from "../../../../types/CustomPlanActivationStrategy";
|
|
5
5
|
import { PlanVersionMigrationStrategy } from "../../../../types/PlanVersionMigrationStrategy";
|
|
6
|
-
import { UpdatePayInAdvanceRequestBody } from "../../../../types/UpdatePayInAdvanceRequestBody";
|
|
7
6
|
export declare const PublishPlanVersionRequestBody: core.serialization.Schema<serializers.PublishPlanVersionRequestBody.Raw, Schematic.PublishPlanVersionRequestBody>;
|
|
8
7
|
export declare namespace PublishPlanVersionRequestBody {
|
|
9
8
|
interface Raw {
|
|
@@ -12,6 +11,5 @@ export declare namespace PublishPlanVersionRequestBody {
|
|
|
12
11
|
days_until_due?: number | null;
|
|
13
12
|
excluded_company_ids: string[];
|
|
14
13
|
migration_strategy: PlanVersionMigrationStrategy.Raw;
|
|
15
|
-
pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
|
|
16
14
|
}
|
|
17
15
|
}
|
package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts
CHANGED
|
@@ -2,13 +2,11 @@ import type * as Schematic from "../../../../../api/index";
|
|
|
2
2
|
import * as core from "../../../../../core";
|
|
3
3
|
import type * as serializers from "../../../../index";
|
|
4
4
|
import { CustomPlanActivationStrategy } from "../../../../types/CustomPlanActivationStrategy";
|
|
5
|
-
import { UpdatePayInAdvanceRequestBody } from "../../../../types/UpdatePayInAdvanceRequestBody";
|
|
6
5
|
export declare const RetryCustomPlanBillingRequestBody: core.serialization.Schema<serializers.RetryCustomPlanBillingRequestBody.Raw, Schematic.RetryCustomPlanBillingRequestBody>;
|
|
7
6
|
export declare namespace RetryCustomPlanBillingRequestBody {
|
|
8
7
|
interface Raw {
|
|
9
8
|
activation_strategy?: CustomPlanActivationStrategy.Raw | null;
|
|
10
9
|
customer_email: string;
|
|
11
10
|
days_until_due?: number | null;
|
|
12
|
-
pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../index";
|
|
4
|
+
import { WebhookRequestType } from "../../../../types/WebhookRequestType";
|
|
5
|
+
export declare const TestWebhookRequestBody: core.serialization.Schema<serializers.TestWebhookRequestBody.Raw, Schematic.TestWebhookRequestBody>;
|
|
6
|
+
export declare namespace TestWebhookRequestBody {
|
|
7
|
+
interface Raw {
|
|
8
|
+
request_type: WebhookRequestType.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { TestWebhookResponseData } from "../../../types/TestWebhookResponseData";
|
|
5
|
+
export declare const SendTestWebhookActionResponse: core.serialization.ObjectSchema<serializers.SendTestWebhookActionResponse.Raw, Schematic.SendTestWebhookActionResponse>;
|
|
6
|
+
export declare namespace SendTestWebhookActionResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: TestWebhookResponseData.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -10,4 +10,5 @@ export * from "./ListWebhookEventsParams";
|
|
|
10
10
|
export * from "./ListWebhookEventsResponse";
|
|
11
11
|
export * from "./ListWebhooksParams";
|
|
12
12
|
export * from "./ListWebhooksResponse";
|
|
13
|
+
export * from "./SendTestWebhookActionResponse";
|
|
13
14
|
export * from "./UpdateWebhookResponse";
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const AccountMemberPermission: core.serialization.Schema<serializers.AccountMemberPermission.Raw, Schematic.AccountMemberPermission>;
|
|
5
5
|
export declare namespace AccountMemberPermission {
|
|
6
|
-
type Raw = "
|
|
6
|
+
type Raw = "companies_edit" | "company_users_edit" | "components_edit" | "data_exports_edit" | "features_edit" | "flag_rules_edit" | "flags_edit" | "overrides_edit" | "plan_billing_edit" | "plan_entitlements_edit" | "plan_versions_edit" | "plans_edit" | "webhooks_edit" | "webhooks_reveal_secret";
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const BillingCreditGrantZeroedOutReason: core.serialization.Schema<serializers.BillingCreditGrantZeroedOutReason.Raw, Schematic.BillingCreditGrantZeroedOutReason>;
|
|
5
5
|
export declare namespace BillingCreditGrantZeroedOutReason {
|
|
6
|
-
type Raw = "expired" | "manual" | "plan_change" | "plan_period_reset";
|
|
6
|
+
type Raw = "expired" | "manual" | "plan_change" | "plan_period_reset" | "reconciled";
|
|
7
7
|
}
|
|
@@ -17,6 +17,7 @@ export declare namespace ChangeSubscriptionInternalRequestBody {
|
|
|
17
17
|
custom_field_values: CheckoutFieldValue.Raw[];
|
|
18
18
|
new_plan_id: string;
|
|
19
19
|
new_price_id: string;
|
|
20
|
+
opt_in_accepted?: boolean | null;
|
|
20
21
|
pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
|
|
21
22
|
payment_method_id?: string | null;
|
|
22
23
|
promo_code?: string | null;
|
|
@@ -16,6 +16,7 @@ export declare namespace ChangeSubscriptionRequestBody {
|
|
|
16
16
|
custom_field_values: CheckoutFieldValue.Raw[];
|
|
17
17
|
new_plan_id: string;
|
|
18
18
|
new_price_id: string;
|
|
19
|
+
opt_in_accepted?: boolean | null;
|
|
19
20
|
pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
|
|
20
21
|
payment_method_id?: string | null;
|
|
21
22
|
promo_code?: string | null;
|
|
@@ -2,10 +2,12 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { CheckFlagResponseData } from "./CheckFlagResponseData";
|
|
5
|
+
import { CompanyCreditBalance } from "./CompanyCreditBalance";
|
|
5
6
|
import { DatastreamCompanyPlan } from "./DatastreamCompanyPlan";
|
|
6
7
|
export declare const CheckFlagsResponseData: core.serialization.ObjectSchema<serializers.CheckFlagsResponseData.Raw, Schematic.CheckFlagsResponseData>;
|
|
7
8
|
export declare namespace CheckFlagsResponseData {
|
|
8
9
|
interface Raw {
|
|
10
|
+
credit_balances?: Record<string, CompanyCreditBalance.Raw> | null;
|
|
9
11
|
flags: CheckFlagResponseData.Raw[];
|
|
10
12
|
plan?: DatastreamCompanyPlan.Raw | null;
|
|
11
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const CompanyCreditBalance: core.serialization.ObjectSchema<serializers.CompanyCreditBalance.Raw, Schematic.CompanyCreditBalance>;
|
|
5
|
+
export declare namespace CompanyCreditBalance {
|
|
6
|
+
interface Raw {
|
|
7
|
+
remaining: number;
|
|
8
|
+
reserved: number;
|
|
9
|
+
settled: number;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -16,6 +16,7 @@ export declare namespace CompanySubscriptionResponseData {
|
|
|
16
16
|
discounts: BillingSubscriptionDiscountView.Raw[];
|
|
17
17
|
expired_at?: string | null;
|
|
18
18
|
interval: string;
|
|
19
|
+
is_initial: boolean;
|
|
19
20
|
latest_invoice?: InvoiceResponseData.Raw | null;
|
|
20
21
|
payment_method?: PaymentMethodResponseData.Raw | null;
|
|
21
22
|
products: BillingProductForSubscriptionResponseData.Raw[];
|
|
@@ -8,11 +8,15 @@ export declare const FeatureEntitlement: core.serialization.ObjectSchema<seriali
|
|
|
8
8
|
export declare namespace FeatureEntitlement {
|
|
9
9
|
interface Raw {
|
|
10
10
|
allocation?: number | null;
|
|
11
|
+
consumption_rate?: number | null;
|
|
11
12
|
credit_id?: string | null;
|
|
12
13
|
credit_remaining?: number | null;
|
|
14
|
+
credit_reserved?: number | null;
|
|
15
|
+
credit_settled?: number | null;
|
|
13
16
|
credit_total?: number | null;
|
|
14
17
|
credit_used?: number | null;
|
|
15
18
|
event_name?: string | null;
|
|
19
|
+
event_subtype?: string | null;
|
|
16
20
|
feature_id: string;
|
|
17
21
|
feature_key: string;
|
|
18
22
|
metric_period?: MetricPeriod.Raw | null;
|
|
@@ -28,6 +28,7 @@ export declare namespace PlanChangeResponseData {
|
|
|
28
28
|
created_at: string;
|
|
29
29
|
environment_id: string;
|
|
30
30
|
id: string;
|
|
31
|
+
is_version_upgrade: boolean;
|
|
31
32
|
previous_base_plan?: PlanSnapshotView.Raw | null;
|
|
32
33
|
previous_base_plan_version?: PlanVersionSnapshotView.Raw | null;
|
|
33
34
|
request_id?: string | null;
|
|
@@ -11,6 +11,9 @@ export declare namespace PreviewSubscriptionChangeResponseData {
|
|
|
11
11
|
finance?: PreviewSubscriptionFinanceResponseData.Raw | null;
|
|
12
12
|
is_scheduled_downgrade: boolean;
|
|
13
13
|
new_charges: number;
|
|
14
|
+
opt_in_required: boolean;
|
|
15
|
+
opt_in_text?: string | null;
|
|
16
|
+
opt_in_title?: string | null;
|
|
14
17
|
payment_method_required: boolean;
|
|
15
18
|
percent_off: number;
|
|
16
19
|
period_start: string;
|
|
@@ -8,11 +8,15 @@ export declare const RulesengineFeatureEntitlement: core.serialization.ObjectSch
|
|
|
8
8
|
export declare namespace RulesengineFeatureEntitlement {
|
|
9
9
|
interface Raw {
|
|
10
10
|
allocation?: number | null;
|
|
11
|
+
consumption_rate?: number | null;
|
|
11
12
|
credit_id?: string | null;
|
|
12
13
|
credit_remaining?: number | null;
|
|
14
|
+
credit_reserved?: number | null;
|
|
15
|
+
credit_settled?: number | null;
|
|
13
16
|
credit_total?: number | null;
|
|
14
17
|
credit_used?: number | null;
|
|
15
18
|
event_name?: string | null;
|
|
19
|
+
event_subtype?: string | null;
|
|
16
20
|
feature_id: string;
|
|
17
21
|
feature_key: string;
|
|
18
22
|
metric_period?: RulesengineMetricPeriod.Raw | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const TestWebhookResponseData: core.serialization.ObjectSchema<serializers.TestWebhookResponseData.Raw, Schematic.TestWebhookResponseData>;
|
|
5
|
+
export declare namespace TestWebhookResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
response_code: number;
|
|
8
|
+
success: boolean;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -73,6 +73,7 @@ export * from "./CheckoutFieldWithValue";
|
|
|
73
73
|
export * from "./CheckoutSettingsResponseData";
|
|
74
74
|
export * from "./CheckoutSubscription";
|
|
75
75
|
export * from "./ClerkIntegrationConfig";
|
|
76
|
+
export * from "./CompanyCreditBalance";
|
|
76
77
|
export * from "./CompanyCreditBalanceResponseData";
|
|
77
78
|
export * from "./CompanyDetailResponseData";
|
|
78
79
|
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
@@ -137,8 +138,6 @@ export * from "./CreditGrantDetail";
|
|
|
137
138
|
export * from "./CreditGrantExpiryRequestBody";
|
|
138
139
|
export * from "./CreditGrantSortOrder";
|
|
139
140
|
export * from "./CreditLeaseResponseData";
|
|
140
|
-
export * from "./CreditLedgerEnrichedEntryResponseData";
|
|
141
|
-
export * from "./CreditLedgerPeriod";
|
|
142
141
|
export * from "./CreditsAutoTopupCompanySummary";
|
|
143
142
|
export * from "./CreditsAutoTopupCreditSummary";
|
|
144
143
|
export * from "./CreditsAutoTopupHardFailure";
|
|
@@ -341,6 +340,7 @@ export * from "./SubscriptionTraitUpdate";
|
|
|
341
340
|
export * from "./SubscriptionType";
|
|
342
341
|
export * from "./TemporaryAccessTokenResourceType";
|
|
343
342
|
export * from "./TemporaryAccessTokenResponseData";
|
|
343
|
+
export * from "./TestWebhookResponseData";
|
|
344
344
|
export * from "./TimeSeriesGranularity";
|
|
345
345
|
export * from "./TopFeatureByUsageResponseData";
|
|
346
346
|
export * from "./TopFeaturesByUsageResponseData";
|