@schematichq/schematic-typescript-node 1.5.12 → 1.6.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.
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/Client.d.ts +41 -5
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/ReserveCreditsRequestBody.d.ts +18 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +1 -0
- package/dist/api/resources/credits/types/ReleaseCreditReservationResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ReserveCreditsResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +2 -0
- package/dist/api/resources/features/client/Client.d.ts +18 -0
- package/dist/api/resources/features/client/requests/CheckAndReserveFlagRequestBody.d.ts +15 -0
- package/dist/api/resources/features/client/requests/index.d.ts +1 -0
- package/dist/api/resources/features/types/CheckAndReserveFlagResponse.d.ts +6 -0
- package/dist/api/resources/features/types/index.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plans/client/Client.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +3 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/api/types/BillingArrearsAnchor.d.ts +5 -0
- package/dist/api/types/BillingArrearsCadence.d.ts +5 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +7 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +12 -0
- package/dist/api/types/CheckAndReserveFlagResponseData.d.ts +35 -0
- package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanCreditGrantView.d.ts +6 -0
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +12 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +7 -0
- package/dist/api/types/CreditReservationResponseData.d.ts +15 -0
- package/dist/api/types/CreditUsageReason.d.ts +2 -0
- package/dist/api/types/EventBodyTrack.d.ts +2 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -0
- package/dist/api/types/EventResponseData.d.ts +1 -0
- package/dist/api/types/FlagCheckReservationResponseData.d.ts +15 -0
- package/dist/api/types/GetOnboardingStateResp.d.ts +2 -0
- package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +2 -1
- package/dist/api/types/OnboardingRequirement.d.ts +1 -0
- package/dist/api/types/OnboardingRoadmapView.d.ts +4 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +6 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +1 -0
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCompany.d.ts +1 -0
- package/dist/api/types/RulesengineCreditPostpaidConfig.d.ts +3 -0
- package/dist/api/types/SlackConnectInviteStatus.d.ts +8 -0
- package/dist/api/types/SlackConnectInviteView.d.ts +7 -0
- package/dist/api/types/TemporaryAccessTokenIssuerType.d.ts +5 -0
- package/dist/api/types/TemporaryAccessTokenResponseData.d.ts +2 -1
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +12 -0
- package/dist/api/types/WebhookEventDetailResponseData.d.ts +1 -0
- package/dist/api/types/WebhookEventResponseData.d.ts +1 -0
- package/dist/api/types/index.d.ts +10 -1
- package/dist/index.js +9 -9
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/ReserveCreditsRequestBody.d.ts +13 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ReleaseCreditReservationResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/ReserveCreditsResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/CheckAndReserveFlagRequestBody.d.ts +14 -0
- package/dist/serialization/resources/features/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/features/types/CheckAndReserveFlagResponse.d.ts +11 -0
- package/dist/serialization/resources/features/types/index.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/serialization/types/BillingArrearsAnchor.d.ts +7 -0
- package/dist/serialization/types/BillingArrearsCadence.d.ts +7 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +4 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +8 -0
- package/dist/serialization/types/CheckAndReserveFlagResponseData.d.ts +28 -0
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +8 -0
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +8 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +8 -0
- package/dist/serialization/types/CreditReservationResponseData.d.ts +17 -0
- package/dist/serialization/types/CreditUsageReason.d.ts +1 -1
- package/dist/serialization/types/EventBodyTrack.d.ts +1 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/EventResponseData.d.ts +1 -0
- package/dist/serialization/types/FlagCheckReservationResponseData.d.ts +16 -0
- package/dist/serialization/types/GetOnboardingStateResp.d.ts +4 -0
- package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.d.ts +3 -1
- package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
- package/dist/serialization/types/OnboardingRoadmapView.d.ts +10 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +8 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +1 -0
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
- package/dist/serialization/types/RulesengineCreditPostpaidConfig.d.ts +9 -0
- package/dist/serialization/types/SlackConnectInviteStatus.d.ts +7 -0
- package/dist/serialization/types/SlackConnectInviteView.d.ts +13 -0
- package/dist/serialization/types/TemporaryAccessTokenIssuerType.d.ts +7 -0
- package/dist/serialization/types/TemporaryAccessTokenResponseData.d.ts +3 -1
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +8 -0
- package/dist/serialization/types/WebhookEventDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/WebhookEventResponseData.d.ts +1 -0
- package/dist/serialization/types/index.d.ts +10 -1
- package/dist/wasm/rulesengine.js +1 -1
- package/package.json +5 -4
- package/dist/api/types/ReleaseCreditLeaseRequestBody.d.ts +0 -1
- package/dist/serialization/types/ReleaseCreditLeaseRequestBody.d.ts +0 -7
|
@@ -24,6 +24,7 @@ export declare namespace CreateBillingSubscriptionRequestBody {
|
|
|
24
24
|
period_start?: number | null;
|
|
25
25
|
product_external_ids: BillingProductPricing.Raw[];
|
|
26
26
|
provider_type?: BillingProviderType.Raw | null;
|
|
27
|
+
started_at?: string | null;
|
|
27
28
|
status?: string | null;
|
|
28
29
|
subscription_external_id: string;
|
|
29
30
|
total_price: number;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 ReserveCreditsRequestBody: core.serialization.Schema<serializers.ReserveCreditsRequestBody.Raw, Schematic.ReserveCreditsRequestBody>;
|
|
5
|
+
export declare namespace ReserveCreditsRequestBody {
|
|
6
|
+
interface Raw {
|
|
7
|
+
amount: number;
|
|
8
|
+
company_id: string;
|
|
9
|
+
credit_type_id: string;
|
|
10
|
+
expires_at?: string | null;
|
|
11
|
+
idempotency_key?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -4,6 +4,7 @@ export { CreateCompanyCreditGrant } from "./CreateCompanyCreditGrant";
|
|
|
4
4
|
export { CreateCreditBundleRequestBody } from "./CreateCreditBundleRequestBody";
|
|
5
5
|
export { CreateCreditSpendPolicyRequestBody } from "./CreateCreditSpendPolicyRequestBody";
|
|
6
6
|
export { ExtendCreditLeaseRequestBody } from "./ExtendCreditLeaseRequestBody";
|
|
7
|
+
export { ReserveCreditsRequestBody } from "./ReserveCreditsRequestBody";
|
|
7
8
|
export { UpdateBillingCreditRequestBody } from "./UpdateBillingCreditRequestBody";
|
|
8
9
|
export { UpdateCreditBundleDetailsRequestBody } from "./UpdateCreditBundleDetailsRequestBody";
|
|
9
10
|
export { UpdateCreditSpendPolicyRequestBody } from "./UpdateCreditSpendPolicyRequestBody";
|
|
@@ -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 { CreditReservationResponseData } from "../../../types/CreditReservationResponseData";
|
|
5
|
+
export declare const ReleaseCreditReservationResponse: core.serialization.ObjectSchema<serializers.ReleaseCreditReservationResponse.Raw, Schematic.ReleaseCreditReservationResponse>;
|
|
6
|
+
export declare namespace ReleaseCreditReservationResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: CreditReservationResponseData.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 { CreditReservationResponseData } from "../../../types/CreditReservationResponseData";
|
|
5
|
+
export declare const ReserveCreditsResponse: core.serialization.ObjectSchema<serializers.ReserveCreditsResponse.Raw, Schematic.ReserveCreditsResponse>;
|
|
6
|
+
export declare namespace ReserveCreditsResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: CreditReservationResponseData.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -44,6 +44,8 @@ export * from "./ListCreditSpendPoliciesResponse";
|
|
|
44
44
|
export * from "./ListGrantsForCreditParams";
|
|
45
45
|
export * from "./ListGrantsForCreditResponse";
|
|
46
46
|
export * from "./ReleaseCreditLeaseResponse";
|
|
47
|
+
export * from "./ReleaseCreditReservationResponse";
|
|
48
|
+
export * from "./ReserveCreditsResponse";
|
|
47
49
|
export * from "./SoftDeleteBillingCreditResponse";
|
|
48
50
|
export * from "./UpdateBillingCreditResponse";
|
|
49
51
|
export * from "./UpdateBillingPlanCreditGrantResponse";
|
package/dist/serialization/resources/features/client/requests/CheckAndReserveFlagRequestBody.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../../api/index";
|
|
2
|
+
import * as core from "../../../../../core";
|
|
3
|
+
import type * as serializers from "../../../../index";
|
|
4
|
+
import { PreflightRequestBody } from "../../../../types/PreflightRequestBody";
|
|
5
|
+
export declare const CheckAndReserveFlagRequestBody: core.serialization.Schema<serializers.CheckAndReserveFlagRequestBody.Raw, Schematic.CheckAndReserveFlagRequestBody>;
|
|
6
|
+
export declare namespace CheckAndReserveFlagRequestBody {
|
|
7
|
+
interface Raw {
|
|
8
|
+
company?: Record<string, string> | null;
|
|
9
|
+
expires_at?: string | null;
|
|
10
|
+
preflight?: PreflightRequestBody.Raw | null;
|
|
11
|
+
quantity?: number | null;
|
|
12
|
+
user?: Record<string, string> | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { CheckAndReserveFlagRequestBody } from "./CheckAndReserveFlagRequestBody";
|
|
1
2
|
export { CheckFlagsBulkRequestBody } from "./CheckFlagsBulkRequestBody";
|
|
2
3
|
export { CreateBillingLinkedFeatureRequestBody } from "./CreateBillingLinkedFeatureRequestBody";
|
|
3
4
|
export { CreateFeatureRequestBody } from "./CreateFeatureRequestBody";
|
|
@@ -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 { CheckAndReserveFlagResponseData } from "../../../types/CheckAndReserveFlagResponseData";
|
|
5
|
+
export declare const CheckAndReserveFlagResponse: core.serialization.ObjectSchema<serializers.CheckAndReserveFlagResponse.Raw, Schematic.CheckAndReserveFlagResponse>;
|
|
6
|
+
export declare namespace CheckAndReserveFlagResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: CheckAndReserveFlagResponseData.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare namespace CreatePlanGroupRequestBody {
|
|
|
47
47
|
show_zero_price_as_free: boolean;
|
|
48
48
|
sync_customer_billing_details: boolean;
|
|
49
49
|
trial_days?: number | null;
|
|
50
|
+
trial_eligibility_per_plan?: boolean | null;
|
|
50
51
|
trial_expiry_plan_id?: string | null;
|
|
51
52
|
trial_expiry_plan_price_id?: string | null;
|
|
52
53
|
trial_payment_method_required?: boolean | null;
|
package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare namespace UpdatePlanGroupRequestBody {
|
|
|
47
47
|
show_zero_price_as_free: boolean;
|
|
48
48
|
sync_customer_billing_details: boolean;
|
|
49
49
|
trial_days?: number | null;
|
|
50
|
+
trial_eligibility_per_plan?: boolean | null;
|
|
50
51
|
trial_expiry_plan_id?: string | null;
|
|
51
52
|
trial_expiry_plan_price_id?: string | null;
|
|
52
53
|
trial_payment_method_required?: boolean | null;
|
|
@@ -8,6 +8,7 @@ export declare namespace CountPlansParams {
|
|
|
8
8
|
company_id?: string | null;
|
|
9
9
|
company_scoped_only?: boolean | null;
|
|
10
10
|
exclude_company_scoped?: boolean | null;
|
|
11
|
+
exclude_unused?: boolean | null;
|
|
11
12
|
for_fallback_plan?: boolean | null;
|
|
12
13
|
for_initial_plan?: boolean | null;
|
|
13
14
|
for_trial_expiry_plan?: boolean | null;
|
|
@@ -8,6 +8,7 @@ export declare namespace ListPlansParams {
|
|
|
8
8
|
company_id?: string | null;
|
|
9
9
|
company_scoped_only?: boolean | null;
|
|
10
10
|
exclude_company_scoped?: boolean | null;
|
|
11
|
+
exclude_unused?: boolean | null;
|
|
11
12
|
for_fallback_plan?: boolean | null;
|
|
12
13
|
for_initial_plan?: boolean | null;
|
|
13
14
|
for_trial_expiry_plan?: boolean | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
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 BillingArrearsAnchor: core.serialization.Schema<serializers.BillingArrearsAnchor.Raw, Schematic.BillingArrearsAnchor>;
|
|
5
|
+
export declare namespace BillingArrearsAnchor {
|
|
6
|
+
type Raw = "billing_period_start" | "month_end";
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 BillingArrearsCadence: core.serialization.Schema<serializers.BillingArrearsCadence.Raw, Schematic.BillingArrearsCadence>;
|
|
5
|
+
export declare namespace BillingArrearsCadence {
|
|
6
|
+
type Raw = "end_of_billing_period" | "monthly";
|
|
7
|
+
}
|
|
@@ -13,6 +13,7 @@ export declare namespace BillingCreditGrantResponseData {
|
|
|
13
13
|
company_license_id?: string | null;
|
|
14
14
|
company_name: string;
|
|
15
15
|
created_at: string;
|
|
16
|
+
credit_bundle_id?: string | null;
|
|
16
17
|
credit_icon?: string | null;
|
|
17
18
|
credit_id: string;
|
|
18
19
|
credit_name: string;
|
|
@@ -23,6 +24,9 @@ export declare namespace BillingCreditGrantResponseData {
|
|
|
23
24
|
license_name?: string | null;
|
|
24
25
|
plan_id?: string | null;
|
|
25
26
|
plan_name?: string | null;
|
|
27
|
+
postpaid_charge_amount?: number | null;
|
|
28
|
+
postpaid_charge_currency?: string | null;
|
|
29
|
+
postpaid_charged_credits?: number | null;
|
|
26
30
|
price?: BillingPriceResponseData.Raw | null;
|
|
27
31
|
quantity: number;
|
|
28
32
|
quantity_remaining: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ import { PreviewObjectResponseData } from "./PreviewObjectResponseData";
|
|
|
13
15
|
export declare const BillingPlanCreditGrantResponseData: core.serialization.ObjectSchema<serializers.BillingPlanCreditGrantResponseData.Raw, Schematic.BillingPlanCreditGrantResponseData>;
|
|
14
16
|
export declare namespace BillingPlanCreditGrantResponseData {
|
|
15
17
|
interface Raw {
|
|
18
|
+
arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
auto_topup_amount?: number | null;
|
|
17
21
|
auto_topup_amount_type?: string | null;
|
|
18
22
|
auto_topup_availability: BillingCreditAutoTopupAvailability.Raw;
|
|
@@ -37,10 +41,14 @@ export declare namespace BillingPlanCreditGrantResponseData {
|
|
|
37
41
|
expiry_unit_count?: number | null;
|
|
38
42
|
id: string;
|
|
39
43
|
license_id?: string | null;
|
|
44
|
+
overdraft_limit?: number | null;
|
|
40
45
|
plan?: PreviewObjectResponseData.Raw | null;
|
|
41
46
|
plan_id: string;
|
|
42
47
|
plan_name: string;
|
|
43
48
|
plan_version_id?: string | null;
|
|
49
|
+
postpaid_enabled: boolean;
|
|
50
|
+
postpaid_rate_per_unit?: number | null;
|
|
51
|
+
postpaid_rate_per_unit_decimal?: string | null;
|
|
44
52
|
reset_cadence?: BillingPlanCreditGrantResetCadence.Raw | null;
|
|
45
53
|
reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
|
|
46
54
|
reset_type?: BillingPlanCreditGrantResetType.Raw | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { FeatureEntitlement } from "./FeatureEntitlement";
|
|
5
|
+
import { FlagCheckReservationResponseData } from "./FlagCheckReservationResponseData";
|
|
6
|
+
import { MetricPeriod } from "./MetricPeriod";
|
|
7
|
+
import { RuleType } from "./RuleType";
|
|
8
|
+
export declare const CheckAndReserveFlagResponseData: core.serialization.ObjectSchema<serializers.CheckAndReserveFlagResponseData.Raw, Schematic.CheckAndReserveFlagResponseData>;
|
|
9
|
+
export declare namespace CheckAndReserveFlagResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
company_id?: string | null;
|
|
12
|
+
entitlement?: FeatureEntitlement.Raw | null;
|
|
13
|
+
error?: string | null;
|
|
14
|
+
feature_allocation?: number | null;
|
|
15
|
+
feature_usage?: number | null;
|
|
16
|
+
feature_usage_event?: string | null;
|
|
17
|
+
feature_usage_period?: MetricPeriod.Raw | null;
|
|
18
|
+
feature_usage_reset_at?: string | null;
|
|
19
|
+
flag: string;
|
|
20
|
+
flag_id?: string | null;
|
|
21
|
+
reason: string;
|
|
22
|
+
reservation?: FlagCheckReservationResponseData.Raw | null;
|
|
23
|
+
rule_id?: string | null;
|
|
24
|
+
rule_type?: RuleType.Raw | null;
|
|
25
|
+
user_id?: string | null;
|
|
26
|
+
value: boolean;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -17,10 +17,12 @@ export declare namespace CheckoutDataResponseData {
|
|
|
17
17
|
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
18
18
|
available_credit_bundles: BillingCreditBundleResponseData.Raw[];
|
|
19
19
|
company?: CompanyDetailResponseData.Raw | null;
|
|
20
|
+
company_can_trial_selected_plan: boolean;
|
|
20
21
|
custom_checkout_fields: CheckoutFieldWithValue.Raw[];
|
|
21
22
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
22
23
|
selected_credit_bundles: CreditBundlePurchaseResponseData.Raw[];
|
|
23
24
|
selected_plan?: PlanDetailResponseData.Raw | null;
|
|
25
|
+
selected_plan_already_trialed: boolean;
|
|
24
26
|
selected_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
25
27
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
26
28
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ import { PlanCreditGrantScaling } from "./PlanCreditGrantScaling";
|
|
|
13
15
|
export declare const CompanyPlanCreditGrantView: core.serialization.ObjectSchema<serializers.CompanyPlanCreditGrantView.Raw, Schematic.CompanyPlanCreditGrantView>;
|
|
14
16
|
export declare namespace CompanyPlanCreditGrantView {
|
|
15
17
|
interface Raw {
|
|
18
|
+
billing_credit_arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
billing_credit_arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
billing_credit_auto_topup_amount?: number | null;
|
|
17
21
|
billing_credit_auto_topup_amount_type?: string | null;
|
|
18
22
|
billing_credit_auto_topup_availability?: BillingCreditAutoTopupAvailability.Raw | null;
|
|
@@ -24,6 +28,10 @@ export declare namespace CompanyPlanCreditGrantView {
|
|
|
24
28
|
billing_credit_auto_topup_threshold_credits?: number | null;
|
|
25
29
|
billing_credit_auto_topup_threshold_percent?: number | null;
|
|
26
30
|
billing_credit_can_buy_bundles: boolean;
|
|
31
|
+
billing_credit_overdraft_limit?: number | null;
|
|
32
|
+
billing_credit_postpaid_enabled: boolean;
|
|
33
|
+
billing_credit_postpaid_rate_per_unit?: number | null;
|
|
34
|
+
billing_credit_postpaid_rate_per_unit_decimal?: string | null;
|
|
27
35
|
company_auto_topup_amount?: number | null;
|
|
28
36
|
company_auto_topup_enabled?: boolean | null;
|
|
29
37
|
company_auto_topup_threshold_credits?: number | null;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ export declare const CreateBillingPlanCreditGrantRequestBody: core.serialization
|
|
|
13
15
|
export declare namespace CreateBillingPlanCreditGrantRequestBody {
|
|
14
16
|
interface Raw {
|
|
15
17
|
apply_to_existing?: boolean | null;
|
|
18
|
+
arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
auto_topup_amount?: number | null;
|
|
17
21
|
auto_topup_amount_type?: CreditAutoTopupAmountType.Raw | null;
|
|
18
22
|
auto_topup_availability?: BillingCreditAutoTopupAvailability.Raw | null;
|
|
@@ -31,8 +35,12 @@ export declare namespace CreateBillingPlanCreditGrantRequestBody {
|
|
|
31
35
|
expiry_unit?: BillingCreditExpiryUnit.Raw | null;
|
|
32
36
|
expiry_unit_count?: number | null;
|
|
33
37
|
license_id?: string | null;
|
|
38
|
+
overdraft_limit?: number | null;
|
|
34
39
|
plan_id: string;
|
|
35
40
|
plan_version_id?: string | null;
|
|
41
|
+
postpaid_enabled?: boolean | null;
|
|
42
|
+
postpaid_rate_per_unit?: number | null;
|
|
43
|
+
postpaid_rate_per_unit_decimal?: string | null;
|
|
36
44
|
reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
|
|
37
45
|
reset_start: BillingPlanCreditGrantResetStart.Raw;
|
|
38
46
|
reset_type?: BillingPlanCreditGrantResetType.Raw | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
5
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
5
6
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
6
7
|
import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
|
|
@@ -11,6 +12,7 @@ import { CreditTransferView } from "./CreditTransferView";
|
|
|
11
12
|
export declare const CreditCompanyGrantView: core.serialization.ObjectSchema<serializers.CreditCompanyGrantView.Raw, Schematic.CreditCompanyGrantView>;
|
|
12
13
|
export declare namespace CreditCompanyGrantView {
|
|
13
14
|
interface Raw {
|
|
15
|
+
arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
14
16
|
billing_credit_bundle_id?: string | null;
|
|
15
17
|
billing_credit_id: string;
|
|
16
18
|
company_id: string;
|
|
@@ -32,6 +34,12 @@ export declare namespace CreditCompanyGrantView {
|
|
|
32
34
|
plan_id?: string | null;
|
|
33
35
|
plan_name?: string | null;
|
|
34
36
|
plural_name?: string | null;
|
|
37
|
+
postpaid_charge_amount?: number | null;
|
|
38
|
+
postpaid_charge_currency?: string | null;
|
|
39
|
+
postpaid_charged_credits?: number | null;
|
|
40
|
+
postpaid_period_end?: string | null;
|
|
41
|
+
postpaid_rate?: number | null;
|
|
42
|
+
postpaid_rate_decimal?: string | null;
|
|
35
43
|
price?: BillingProductPriceResponseData.Raw | null;
|
|
36
44
|
quantity: number;
|
|
37
45
|
quantity_remaining: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 CreditReservationResponseData: core.serialization.ObjectSchema<serializers.CreditReservationResponseData.Raw, Schematic.CreditReservationResponseData>;
|
|
5
|
+
export declare namespace CreditReservationResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
company_id: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
credit_type_id: string;
|
|
10
|
+
expires_at: string;
|
|
11
|
+
id: string;
|
|
12
|
+
released_at?: string | null;
|
|
13
|
+
reserved_amount: number;
|
|
14
|
+
settled_amount: number;
|
|
15
|
+
updated_at: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const CreditUsageReason: core.serialization.Schema<serializers.CreditUsageReason.Raw, Schematic.CreditUsageReason>;
|
|
5
5
|
export declare namespace CreditUsageReason {
|
|
6
|
-
type Raw = "lease_hold" | "lease_release" | "manual_adjustment" | "reconciliation" | "track";
|
|
6
|
+
type Raw = "lease_hold" | "lease_release" | "manual_adjustment" | "reconciliation" | "reservation_hold" | "reservation_release" | "track";
|
|
7
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 FlagCheckReservationResponseData: core.serialization.ObjectSchema<serializers.FlagCheckReservationResponseData.Raw, Schematic.FlagCheckReservationResponseData>;
|
|
5
|
+
export declare namespace FlagCheckReservationResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
company_id: string;
|
|
8
|
+
consumption_rate: number;
|
|
9
|
+
credit_type_id: string;
|
|
10
|
+
credits_reserved: number;
|
|
11
|
+
event_subtype?: string | null;
|
|
12
|
+
expires_at: string;
|
|
13
|
+
id: string;
|
|
14
|
+
quantity_reserved: number;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -5,8 +5,10 @@ import { OnboardingMilestoneView } from "./OnboardingMilestoneView";
|
|
|
5
5
|
import { OnboardingPath } from "./OnboardingPath";
|
|
6
6
|
import { OnboardingRequirement } from "./OnboardingRequirement";
|
|
7
7
|
import { OnboardingRequirementView } from "./OnboardingRequirementView";
|
|
8
|
+
import { OnboardingRoadmapView } from "./OnboardingRoadmapView";
|
|
8
9
|
import { OnboardingStripeImport } from "./OnboardingStripeImport";
|
|
9
10
|
import { OnboardingTrack } from "./OnboardingTrack";
|
|
11
|
+
import { SlackConnectInviteView } from "./SlackConnectInviteView";
|
|
10
12
|
export declare const GetOnboardingStateResp: core.serialization.ObjectSchema<serializers.GetOnboardingStateResp.Raw, Schematic.GetOnboardingStateResp>;
|
|
11
13
|
export declare namespace GetOnboardingStateResp {
|
|
12
14
|
interface Raw {
|
|
@@ -18,6 +20,8 @@ export declare namespace GetOnboardingStateResp {
|
|
|
18
20
|
path?: OnboardingPath.Raw | null;
|
|
19
21
|
pricing_page_url?: string | null;
|
|
20
22
|
requirements: OnboardingRequirementView.Raw[];
|
|
23
|
+
roadmap?: OnboardingRoadmapView.Raw | null;
|
|
24
|
+
slack_connect?: SlackConnectInviteView.Raw | null;
|
|
21
25
|
stripe_import?: OnboardingStripeImport.Raw | null;
|
|
22
26
|
suggested_next: OnboardingRequirement.Raw[];
|
|
23
27
|
track?: OnboardingTrack.Raw | null;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { TemporaryAccessTokenIssuerType } from "./TemporaryAccessTokenIssuerType";
|
|
4
5
|
import { TemporaryAccessTokenResourceType } from "./TemporaryAccessTokenResourceType";
|
|
5
6
|
export declare const IssueTemporaryAccessTokenResponseData: core.serialization.ObjectSchema<serializers.IssueTemporaryAccessTokenResponseData.Raw, Schematic.IssueTemporaryAccessTokenResponseData>;
|
|
6
7
|
export declare namespace IssueTemporaryAccessTokenResponseData {
|
|
7
8
|
interface Raw {
|
|
8
|
-
api_key_id
|
|
9
|
+
api_key_id?: string | null;
|
|
9
10
|
created_at: string;
|
|
10
11
|
environment_id: string;
|
|
11
12
|
expired_at: string;
|
|
12
13
|
id: string;
|
|
14
|
+
issuer_type: TemporaryAccessTokenIssuerType.Raw;
|
|
13
15
|
resource_type: TemporaryAccessTokenResourceType.Raw;
|
|
14
16
|
token: string;
|
|
15
17
|
updated_at: string;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const OnboardingRequirement: core.serialization.Schema<serializers.OnboardingRequirement.Raw, Schematic.OnboardingRequirement>;
|
|
5
5
|
export declare namespace OnboardingRequirement {
|
|
6
|
-
type Raw = "connect_agent" | "connect_billing" | "create_api_key" | "first_flag_check" | "import_companies" | "model_packaging" | "send_events";
|
|
6
|
+
type Raw = "connect_agent" | "connect_billing" | "create_api_key" | "first_flag_check" | "generate_roadmap" | "import_companies" | "model_packaging" | "send_events";
|
|
7
7
|
}
|
|
@@ -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 OnboardingRoadmapView: core.serialization.ObjectSchema<serializers.OnboardingRoadmapView.Raw, Schematic.OnboardingRoadmapView>;
|
|
5
|
+
export declare namespace OnboardingRoadmapView {
|
|
6
|
+
interface Raw {
|
|
7
|
+
published_at?: string | null;
|
|
8
|
+
slug: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ import { PlanCreditGrantScaling } from "./PlanCreditGrantScaling";
|
|
|
13
15
|
export declare const PlanCreditGrantView: core.serialization.ObjectSchema<serializers.PlanCreditGrantView.Raw, Schematic.PlanCreditGrantView>;
|
|
14
16
|
export declare namespace PlanCreditGrantView {
|
|
15
17
|
interface Raw {
|
|
18
|
+
billing_credit_arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
billing_credit_arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
billing_credit_auto_topup_amount?: number | null;
|
|
17
21
|
billing_credit_auto_topup_amount_type?: string | null;
|
|
18
22
|
billing_credit_auto_topup_availability?: BillingCreditAutoTopupAvailability.Raw | null;
|
|
@@ -24,6 +28,10 @@ export declare namespace PlanCreditGrantView {
|
|
|
24
28
|
billing_credit_auto_topup_threshold_credits?: number | null;
|
|
25
29
|
billing_credit_auto_topup_threshold_percent?: number | null;
|
|
26
30
|
billing_credit_can_buy_bundles: boolean;
|
|
31
|
+
billing_credit_overdraft_limit?: number | null;
|
|
32
|
+
billing_credit_postpaid_enabled: boolean;
|
|
33
|
+
billing_credit_postpaid_rate_per_unit?: number | null;
|
|
34
|
+
billing_credit_postpaid_rate_per_unit_decimal?: string | null;
|
|
27
35
|
company_credit_amount: number;
|
|
28
36
|
created_at: string;
|
|
29
37
|
credit?: BillingCreditView.Raw | null;
|
|
@@ -45,6 +45,7 @@ export declare namespace PlanGroupDetailResponseData {
|
|
|
45
45
|
sync_customer_billing_details: boolean;
|
|
46
46
|
tax_collection_enabled: boolean;
|
|
47
47
|
trial_days?: number | null;
|
|
48
|
+
trial_eligibility_per_plan: boolean;
|
|
48
49
|
trial_expiry_plan?: PlanGroupPlanDetailResponseData.Raw | null;
|
|
49
50
|
trial_expiry_plan_id?: string | null;
|
|
50
51
|
trial_expiry_plan_price?: BillingPriceView.Raw | null;
|
|
@@ -33,6 +33,7 @@ export declare namespace PlanGroupResponseData {
|
|
|
33
33
|
sync_customer_billing_details: boolean;
|
|
34
34
|
tax_collection_enabled: boolean;
|
|
35
35
|
trial_days?: number | null;
|
|
36
|
+
trial_eligibility_per_plan: boolean;
|
|
36
37
|
trial_expiry_plan_id?: string | null;
|
|
37
38
|
trial_expiry_plan_price_id?: string | null;
|
|
38
39
|
trial_payment_method_required?: boolean | null;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const RulesEngineSchemaVersion: core.serialization.Schema<serializers.RulesEngineSchemaVersion.Raw, Schematic.RulesEngineSchemaVersion>;
|
|
5
5
|
export declare namespace RulesEngineSchemaVersion {
|
|
6
|
-
type Raw = "
|
|
6
|
+
type Raw = "v94b8f7a7" | "placeholder-for-fern-compatibility";
|
|
7
7
|
}
|
|
@@ -2,6 +2,7 @@ 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 { RulesengineCompanyMetric } from "./RulesengineCompanyMetric";
|
|
5
|
+
import { RulesengineCreditPostpaidConfig } from "./RulesengineCreditPostpaidConfig";
|
|
5
6
|
import { RulesengineFeatureEntitlement } from "./RulesengineFeatureEntitlement";
|
|
6
7
|
import { RulesengineRule } from "./RulesengineRule";
|
|
7
8
|
import { RulesengineSubscription } from "./RulesengineSubscription";
|
|
@@ -13,6 +14,7 @@ export declare namespace RulesengineCompany {
|
|
|
13
14
|
base_plan_id?: string | null;
|
|
14
15
|
billing_product_ids: string[];
|
|
15
16
|
credit_balances: Record<string, number>;
|
|
17
|
+
credit_postpaid?: Record<string, RulesengineCreditPostpaidConfig.Raw> | null;
|
|
16
18
|
entitlements?: RulesengineFeatureEntitlement.Raw[] | null;
|
|
17
19
|
environment_id: string;
|
|
18
20
|
id: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 RulesengineCreditPostpaidConfig: core.serialization.ObjectSchema<serializers.RulesengineCreditPostpaidConfig.Raw, Schematic.RulesengineCreditPostpaidConfig>;
|
|
5
|
+
export declare namespace RulesengineCreditPostpaidConfig {
|
|
6
|
+
interface Raw {
|
|
7
|
+
overdraft_limit?: number | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 SlackConnectInviteStatus: core.serialization.Schema<serializers.SlackConnectInviteStatus.Raw, Schematic.SlackConnectInviteStatus>;
|
|
5
|
+
export declare namespace SlackConnectInviteStatus {
|
|
6
|
+
type Raw = "accepted" | "declined" | "dismissed" | "expired" | "pending";
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { SlackConnectInviteStatus } from "./SlackConnectInviteStatus";
|
|
5
|
+
export declare const SlackConnectInviteView: core.serialization.ObjectSchema<serializers.SlackConnectInviteView.Raw, Schematic.SlackConnectInviteView>;
|
|
6
|
+
export declare namespace SlackConnectInviteView {
|
|
7
|
+
interface Raw {
|
|
8
|
+
can_resend_at?: string | null;
|
|
9
|
+
email: string;
|
|
10
|
+
sent_at: string;
|
|
11
|
+
status: SlackConnectInviteStatus.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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 TemporaryAccessTokenIssuerType: core.serialization.Schema<serializers.TemporaryAccessTokenIssuerType.Raw, Schematic.TemporaryAccessTokenIssuerType>;
|
|
5
|
+
export declare namespace TemporaryAccessTokenIssuerType {
|
|
6
|
+
type Raw = "api_key" | "pricing_roadmap";
|
|
7
|
+
}
|