@schematichq/schematic-typescript-node 1.5.12 → 1.5.13

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 (70) hide show
  1. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  2. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  3. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  4. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  5. package/dist/api/resources/plans/client/Client.d.ts +2 -0
  6. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
  7. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +3 -0
  8. package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  9. package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  10. package/dist/api/types/BillingArrearsAnchor.d.ts +5 -0
  11. package/dist/api/types/BillingArrearsCadence.d.ts +5 -0
  12. package/dist/api/types/BillingCreditGrantResponseData.d.ts +7 -0
  13. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +12 -0
  14. package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
  15. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +6 -0
  16. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +12 -0
  17. package/dist/api/types/CreditCompanyGrantView.d.ts +7 -0
  18. package/dist/api/types/GetOnboardingStateResp.d.ts +2 -0
  19. package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +2 -1
  20. package/dist/api/types/OnboardingRequirement.d.ts +1 -0
  21. package/dist/api/types/OnboardingRoadmapView.d.ts +4 -0
  22. package/dist/api/types/PlanCreditGrantView.d.ts +6 -0
  23. package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
  24. package/dist/api/types/PlanGroupResponseData.d.ts +1 -0
  25. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  26. package/dist/api/types/RulesengineCompany.d.ts +1 -0
  27. package/dist/api/types/RulesengineCreditPostpaidConfig.d.ts +3 -0
  28. package/dist/api/types/SlackConnectInviteStatus.d.ts +8 -0
  29. package/dist/api/types/SlackConnectInviteView.d.ts +7 -0
  30. package/dist/api/types/TemporaryAccessTokenIssuerType.d.ts +5 -0
  31. package/dist/api/types/TemporaryAccessTokenResponseData.d.ts +2 -1
  32. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +12 -0
  33. package/dist/api/types/WebhookEventDetailResponseData.d.ts +1 -0
  34. package/dist/api/types/WebhookEventResponseData.d.ts +1 -0
  35. package/dist/api/types/index.d.ts +7 -0
  36. package/dist/index.js +9 -9
  37. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  38. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  39. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  40. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  41. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  42. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  43. package/dist/serialization/types/BillingArrearsAnchor.d.ts +7 -0
  44. package/dist/serialization/types/BillingArrearsCadence.d.ts +7 -0
  45. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +4 -0
  46. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +8 -0
  47. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  48. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +8 -0
  49. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  50. package/dist/serialization/types/CreditCompanyGrantView.d.ts +8 -0
  51. package/dist/serialization/types/GetOnboardingStateResp.d.ts +4 -0
  52. package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.d.ts +3 -1
  53. package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
  54. package/dist/serialization/types/OnboardingRoadmapView.d.ts +10 -0
  55. package/dist/serialization/types/PlanCreditGrantView.d.ts +8 -0
  56. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +1 -0
  57. package/dist/serialization/types/PlanGroupResponseData.d.ts +1 -0
  58. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  59. package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
  60. package/dist/serialization/types/RulesengineCreditPostpaidConfig.d.ts +9 -0
  61. package/dist/serialization/types/SlackConnectInviteStatus.d.ts +7 -0
  62. package/dist/serialization/types/SlackConnectInviteView.d.ts +13 -0
  63. package/dist/serialization/types/TemporaryAccessTokenIssuerType.d.ts +7 -0
  64. package/dist/serialization/types/TemporaryAccessTokenResponseData.d.ts +3 -1
  65. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  66. package/dist/serialization/types/WebhookEventDetailResponseData.d.ts +1 -0
  67. package/dist/serialization/types/WebhookEventResponseData.d.ts +1 -0
  68. package/dist/serialization/types/index.d.ts +7 -0
  69. package/dist/wasm/rulesengine.js +1 -1
  70. package/package.json +1 -4
@@ -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;
@@ -10,6 +10,7 @@ export declare namespace CreateCompanyCreditGrant {
10
10
  interface Raw {
11
11
  billing_periods_count?: number | null;
12
12
  company_id: string;
13
+ credit_bundle_id?: string | null;
13
14
  credit_id: string;
14
15
  currency?: string | null;
15
16
  expires_at?: string | null;
@@ -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;
@@ -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;
@@ -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;
@@ -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: string;
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 = "vc8eb8df4" | "placeholder-for-fern-compatibility";
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
+ }
@@ -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 TemporaryAccessTokenResponseData: core.serialization.ObjectSchema<serializers.TemporaryAccessTokenResponseData.Raw, Schematic.TemporaryAccessTokenResponseData>;
6
7
  export declare namespace TemporaryAccessTokenResponseData {
7
8
  interface Raw {
8
- api_key_id: string;
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
  updated_at: string;
15
17
  }
@@ -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 UpdateBillingPlanCreditGrantRequestBody: core.serialization
13
15
  export declare namespace UpdateBillingPlanCreditGrantRequestBody {
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;
@@ -30,6 +34,10 @@ export declare namespace UpdateBillingPlanCreditGrantRequestBody {
30
34
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
31
35
  expiry_unit_count?: number | null;
32
36
  license_id?: string | null;
37
+ overdraft_limit?: number | null;
38
+ postpaid_enabled?: boolean | null;
39
+ postpaid_rate_per_unit?: number | null;
40
+ postpaid_rate_per_unit_decimal?: string | null;
33
41
  reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
34
42
  reset_start: BillingPlanCreditGrantResetStart.Raw;
35
43
  reset_type?: BillingPlanCreditGrantResetType.Raw | null;
@@ -7,6 +7,7 @@ import { WebhookResponseData } from "./WebhookResponseData";
7
7
  export declare const WebhookEventDetailResponseData: core.serialization.ObjectSchema<serializers.WebhookEventDetailResponseData.Raw, Schematic.WebhookEventDetailResponseData>;
8
8
  export declare namespace WebhookEventDetailResponseData {
9
9
  interface Raw {
10
+ attempt_count: number;
10
11
  created_at: string;
11
12
  id: string;
12
13
  payload?: string | null;
@@ -6,6 +6,7 @@ import { WebhookRequestType } from "./WebhookRequestType";
6
6
  export declare const WebhookEventResponseData: core.serialization.ObjectSchema<serializers.WebhookEventResponseData.Raw, Schematic.WebhookEventResponseData>;
7
7
  export declare namespace WebhookEventResponseData {
8
8
  interface Raw {
9
+ attempt_count: number;
9
10
  created_at: string;
10
11
  id: string;
11
12
  payload?: string | null;
@@ -12,6 +12,8 @@ export * from "./ApiKeyScope";
12
12
  export * from "./AuditLogExportMetadata";
13
13
  export * from "./AuditLogListResponseData";
14
14
  export * from "./AuditLogResponseData";
15
+ export * from "./BillingArrearsAnchor";
16
+ export * from "./BillingArrearsCadence";
15
17
  export * from "./BillingCollectionMethod";
16
18
  export * from "./BillingCouponResponseData";
17
19
  export * from "./BillingCreditAutoTopupAvailability";
@@ -293,6 +295,7 @@ export * from "./OnboardingPath";
293
295
  export * from "./OnboardingRequirement";
294
296
  export * from "./OnboardingRequirementStatus";
295
297
  export * from "./OnboardingRequirementView";
298
+ export * from "./OnboardingRoadmapView";
296
299
  export * from "./OnboardingStripeImport";
297
300
  export * from "./OnboardingTrack";
298
301
  export * from "./OrbIntegrationConfig";
@@ -374,6 +377,7 @@ export * from "./RulesengineCompanyMetric";
374
377
  export * from "./RulesengineCondition";
375
378
  export * from "./RulesengineConditionGroup";
376
379
  export * from "./RulesengineConditionType";
380
+ export * from "./RulesengineCreditPostpaidConfig";
377
381
  export * from "./RulesengineEntitlementValueType";
378
382
  export * from "./RulesengineEntityType";
379
383
  export * from "./RulesengineFeatureEntitlement";
@@ -397,6 +401,8 @@ export * from "./ScheduledDowngradeResponseData";
397
401
  export * from "./SegmentStatusResp";
398
402
  export * from "./SkippedEntitlementErrorResponseData";
399
403
  export * from "./SkippedEntitlementResponseData";
404
+ export * from "./SlackConnectInviteStatus";
405
+ export * from "./SlackConnectInviteView";
400
406
  export * from "./SortDirection";
401
407
  export * from "./StripeEmbedInfo";
402
408
  export * from "./StripeIntegrationConfig";
@@ -409,6 +415,7 @@ export * from "./SubscriptionTraitUpdate";
409
415
  export * from "./SubscriptionType";
410
416
  export * from "./TaxIdInput";
411
417
  export * from "./TaxIdType";
418
+ export * from "./TemporaryAccessTokenIssuerType";
412
419
  export * from "./TemporaryAccessTokenResourceType";
413
420
  export * from "./TemporaryAccessTokenResponseData";
414
421
  export * from "./TestWebhookResponseData";