@schematichq/schematic-typescript-node 1.5.5 → 1.5.6

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 (94) hide show
  1. package/dist/Client.d.ts +3 -0
  2. package/dist/api/resources/accounts/client/Client.d.ts +2 -0
  3. package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +4 -0
  4. package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +4 -0
  5. package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +3 -0
  6. package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +3 -0
  7. package/dist/api/resources/checkout/client/Client.d.ts +35 -0
  8. package/dist/api/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +16 -0
  9. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  10. package/dist/api/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +6 -0
  11. package/dist/api/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +6 -0
  12. package/dist/api/resources/checkout/types/index.d.ts +2 -0
  13. package/dist/api/resources/index.d.ts +3 -0
  14. package/dist/api/resources/licenses/client/Client.d.ts +69 -0
  15. package/dist/api/resources/licenses/client/index.d.ts +1 -0
  16. package/dist/api/resources/licenses/client/requests/CountLicensesRequest.d.ts +19 -0
  17. package/dist/api/resources/licenses/client/requests/ListLicensesRequest.d.ts +19 -0
  18. package/dist/api/resources/licenses/client/requests/index.d.ts +2 -0
  19. package/dist/api/resources/licenses/exports.d.ts +2 -0
  20. package/dist/api/resources/licenses/index.d.ts +2 -0
  21. package/dist/api/resources/licenses/types/CountLicensesParams.d.ts +12 -0
  22. package/dist/api/resources/licenses/types/CountLicensesResponse.d.ts +6 -0
  23. package/dist/api/resources/licenses/types/GetSingleLicenseResponse.d.ts +6 -0
  24. package/dist/api/resources/licenses/types/ListLicensesParams.d.ts +12 -0
  25. package/dist/api/resources/licenses/types/ListLicensesResponse.d.ts +6 -0
  26. package/dist/api/resources/licenses/types/index.d.ts +5 -0
  27. package/dist/api/resources/planmigrations/client/Client.d.ts +20 -0
  28. package/dist/api/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +16 -0
  29. package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
  30. package/dist/api/resources/planmigrations/types/PreviewMigrationResponse.d.ts +6 -0
  31. package/dist/api/resources/planmigrations/types/index.d.ts +1 -0
  32. package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
  33. package/dist/api/types/CompanyBillingAddressView.d.ts +8 -0
  34. package/dist/api/types/CompanyBillingCheckoutSettings.d.ts +5 -0
  35. package/dist/api/types/CompanyBillingDetailsResponseData.d.ts +8 -0
  36. package/dist/api/types/CompanyBillingDetailsView.d.ts +8 -0
  37. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
  38. package/dist/api/types/CreditsAutoTopupSuccess.d.ts +7 -0
  39. package/dist/api/types/CreditsCreditPurchaseSuccess.d.ts +9 -0
  40. package/dist/api/types/CreditsWebhookCompanySummary.d.ts +4 -0
  41. package/dist/api/types/CreditsWebhookCreditSummary.d.ts +4 -0
  42. package/dist/api/types/CustomerBillingAddress.d.ts +8 -0
  43. package/dist/api/types/FeatureDetailResponseData.d.ts +6 -0
  44. package/dist/api/types/FeatureInPlanResponseData.d.ts +4 -0
  45. package/dist/api/types/FeatureResponseData.d.ts +4 -0
  46. package/dist/api/types/FeatureType.d.ts +1 -0
  47. package/dist/api/types/FeatureView.d.ts +2 -0
  48. package/dist/api/types/LicenseResponseData.d.ts +6 -0
  49. package/dist/api/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +8 -0
  50. package/dist/api/types/PlanVersionMigrationPreviewResponseData.d.ts +4 -0
  51. package/dist/api/types/WebhookRequestType.d.ts +2 -0
  52. package/dist/api/types/index.d.ts +12 -0
  53. package/dist/index.js +9 -9
  54. package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +2 -0
  55. package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +2 -0
  56. package/dist/serialization/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +14 -0
  57. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  58. package/dist/serialization/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +11 -0
  59. package/dist/serialization/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +11 -0
  60. package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
  61. package/dist/serialization/resources/index.d.ts +2 -0
  62. package/dist/serialization/resources/licenses/index.d.ts +1 -0
  63. package/dist/serialization/resources/licenses/types/CountLicensesParams.d.ts +13 -0
  64. package/dist/serialization/resources/licenses/types/CountLicensesResponse.d.ts +12 -0
  65. package/dist/serialization/resources/licenses/types/GetSingleLicenseResponse.d.ts +11 -0
  66. package/dist/serialization/resources/licenses/types/ListLicensesParams.d.ts +13 -0
  67. package/dist/serialization/resources/licenses/types/ListLicensesResponse.d.ts +12 -0
  68. package/dist/serialization/resources/licenses/types/index.d.ts +5 -0
  69. package/dist/serialization/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +13 -0
  70. package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
  71. package/dist/serialization/resources/planmigrations/types/PreviewMigrationResponse.d.ts +11 -0
  72. package/dist/serialization/resources/planmigrations/types/index.d.ts +1 -0
  73. package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
  74. package/dist/serialization/types/CompanyBillingAddressView.d.ts +14 -0
  75. package/dist/serialization/types/CompanyBillingCheckoutSettings.d.ts +11 -0
  76. package/dist/serialization/types/CompanyBillingDetailsResponseData.d.ts +16 -0
  77. package/dist/serialization/types/CompanyBillingDetailsView.d.ts +16 -0
  78. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
  79. package/dist/serialization/types/CreditsAutoTopupSuccess.d.ts +14 -0
  80. package/dist/serialization/types/CreditsCreditPurchaseSuccess.d.ts +16 -0
  81. package/dist/serialization/types/CreditsWebhookCompanySummary.d.ts +10 -0
  82. package/dist/serialization/types/CreditsWebhookCreditSummary.d.ts +10 -0
  83. package/dist/serialization/types/CustomerBillingAddress.d.ts +14 -0
  84. package/dist/serialization/types/FeatureDetailResponseData.d.ts +4 -0
  85. package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
  86. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  87. package/dist/serialization/types/FeatureType.d.ts +1 -1
  88. package/dist/serialization/types/FeatureView.d.ts +3 -0
  89. package/dist/serialization/types/LicenseResponseData.d.ts +12 -0
  90. package/dist/serialization/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +14 -0
  91. package/dist/serialization/types/PlanVersionMigrationPreviewResponseData.d.ts +10 -0
  92. package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
  93. package/dist/serialization/types/index.d.ts +12 -0
  94. package/package.json +1 -1
@@ -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 { AccountMemberRole } from "../../../types/AccountMemberRole";
4
5
  export declare const CountAccountMembersParams: core.serialization.ObjectSchema<serializers.CountAccountMembersParams.Raw, Schematic.CountAccountMembersParams>;
5
6
  export declare namespace CountAccountMembersParams {
6
7
  interface Raw {
@@ -8,5 +9,6 @@ export declare namespace CountAccountMembersParams {
8
9
  limit?: number | null;
9
10
  offset?: number | null;
10
11
  q?: string | null;
12
+ role?: AccountMemberRole.Raw | null;
11
13
  }
12
14
  }
@@ -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 { AccountMemberRole } from "../../../types/AccountMemberRole";
4
5
  export declare const ListAccountMembersParams: core.serialization.ObjectSchema<serializers.ListAccountMembersParams.Raw, Schematic.ListAccountMembersParams>;
5
6
  export declare namespace ListAccountMembersParams {
6
7
  interface Raw {
@@ -8,5 +9,6 @@ export declare namespace ListAccountMembersParams {
8
9
  limit?: number | null;
9
10
  offset?: number | null;
10
11
  q?: string | null;
12
+ role?: AccountMemberRole.Raw | null;
11
13
  }
12
14
  }
@@ -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 { CheckoutFieldValue } from "../../../../types/CheckoutFieldValue";
5
+ import { CustomerBillingAddress } from "../../../../types/CustomerBillingAddress";
6
+ export declare const UpdateCompanyBillingDetailsRequestBody: core.serialization.Schema<serializers.UpdateCompanyBillingDetailsRequestBody.Raw, Schematic.UpdateCompanyBillingDetailsRequestBody>;
7
+ export declare namespace UpdateCompanyBillingDetailsRequestBody {
8
+ interface Raw {
9
+ address?: CustomerBillingAddress.Raw | null;
10
+ email?: string | null;
11
+ phone?: string | null;
12
+ values: CheckoutFieldValue.Raw[];
13
+ }
14
+ }
@@ -1,3 +1,4 @@
1
1
  export { CancelSubscriptionRequest } from "./CancelSubscriptionRequest";
2
2
  export { CheckoutDataRequestBody } from "./CheckoutDataRequestBody";
3
+ export { UpdateCompanyBillingDetailsRequestBody } from "./UpdateCompanyBillingDetailsRequestBody";
3
4
  export { UpdateTrialEndRequestBody } from "./UpdateTrialEndRequestBody";
@@ -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 { CompanyBillingDetailsResponseData } from "../../../types/CompanyBillingDetailsResponseData";
5
+ export declare const GetCompanyBillingDetailsResponse: core.serialization.ObjectSchema<serializers.GetCompanyBillingDetailsResponse.Raw, Schematic.GetCompanyBillingDetailsResponse>;
6
+ export declare namespace GetCompanyBillingDetailsResponse {
7
+ interface Raw {
8
+ data: CompanyBillingDetailsResponseData.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 { CompanyBillingDetailsResponseData } from "../../../types/CompanyBillingDetailsResponseData";
5
+ export declare const UpdateCompanyBillingDetailsResponse: core.serialization.ObjectSchema<serializers.UpdateCompanyBillingDetailsResponse.Raw, Schematic.UpdateCompanyBillingDetailsResponse>;
6
+ export declare namespace UpdateCompanyBillingDetailsResponse {
7
+ interface Raw {
8
+ data: CompanyBillingDetailsResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -1,7 +1,9 @@
1
1
  export * from "./CancelSubscriptionResponse";
2
2
  export * from "./CheckoutInternalResponse";
3
3
  export * from "./GetCheckoutDataResponse";
4
+ export * from "./GetCompanyBillingDetailsResponse";
4
5
  export * from "./ManagePlanResponse";
5
6
  export * from "./PreviewCheckoutInternalResponse";
6
7
  export * from "./PreviewManagePlanResponse";
8
+ export * from "./UpdateCompanyBillingDetailsResponse";
7
9
  export * from "./UpdateCustomerSubscriptionTrialEndResponse";
@@ -41,6 +41,8 @@ export * from "./insights/types";
41
41
  export * as integrationsapi from "./integrationsapi";
42
42
  export * from "./integrationsapi/client/requests";
43
43
  export * from "./integrationsapi/types";
44
+ export * as licenses from "./licenses";
45
+ export * from "./licenses/types";
44
46
  export * as planbundle from "./planbundle";
45
47
  export * from "./planbundle/client/requests";
46
48
  export * from "./planbundle/types";
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -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 CountLicensesParams: core.serialization.ObjectSchema<serializers.CountLicensesParams.Raw, Schematic.CountLicensesParams>;
5
+ export declare namespace CountLicensesParams {
6
+ interface Raw {
7
+ feature_ids?: string[] | null;
8
+ ids?: string[] | null;
9
+ limit?: number | null;
10
+ name?: string | null;
11
+ offset?: number | null;
12
+ }
13
+ }
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { CountResponse } from "../../../types/CountResponse";
5
+ import { CountLicensesParams } from "./CountLicensesParams";
6
+ export declare const CountLicensesResponse: core.serialization.ObjectSchema<serializers.CountLicensesResponse.Raw, Schematic.CountLicensesResponse>;
7
+ export declare namespace CountLicensesResponse {
8
+ interface Raw {
9
+ data: CountResponse.Raw;
10
+ params: CountLicensesParams.Raw;
11
+ }
12
+ }
@@ -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 { LicenseResponseData } from "../../../types/LicenseResponseData";
5
+ export declare const GetSingleLicenseResponse: core.serialization.ObjectSchema<serializers.GetSingleLicenseResponse.Raw, Schematic.GetSingleLicenseResponse>;
6
+ export declare namespace GetSingleLicenseResponse {
7
+ interface Raw {
8
+ data: LicenseResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -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 ListLicensesParams: core.serialization.ObjectSchema<serializers.ListLicensesParams.Raw, Schematic.ListLicensesParams>;
5
+ export declare namespace ListLicensesParams {
6
+ interface Raw {
7
+ feature_ids?: string[] | null;
8
+ ids?: string[] | null;
9
+ limit?: number | null;
10
+ name?: string | null;
11
+ offset?: number | null;
12
+ }
13
+ }
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { LicenseResponseData } from "../../../types/LicenseResponseData";
5
+ import { ListLicensesParams } from "./ListLicensesParams";
6
+ export declare const ListLicensesResponse: core.serialization.ObjectSchema<serializers.ListLicensesResponse.Raw, Schematic.ListLicensesResponse>;
7
+ export declare namespace ListLicensesResponse {
8
+ interface Raw {
9
+ data: LicenseResponseData.Raw[];
10
+ params: ListLicensesParams.Raw;
11
+ }
12
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./CountLicensesParams";
2
+ export * from "./CountLicensesResponse";
3
+ export * from "./GetSingleLicenseResponse";
4
+ export * from "./ListLicensesParams";
5
+ export * from "./ListLicensesResponse";
@@ -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 { PlanType } from "../../../../types/PlanType";
5
+ export declare const PreviewMigrationRequestBody: core.serialization.Schema<serializers.PreviewMigrationRequestBody.Raw, Schematic.PreviewMigrationRequestBody>;
6
+ export declare namespace PreviewMigrationRequestBody {
7
+ interface Raw {
8
+ company_ids: string[];
9
+ plan_id: string;
10
+ plan_version_id_to: string;
11
+ target_plan_type: PlanType.Raw;
12
+ }
13
+ }
@@ -1,2 +1,3 @@
1
1
  export { CreateMigrationInput } from "./CreateMigrationInput";
2
+ export { PreviewMigrationRequestBody } from "./PreviewMigrationRequestBody";
2
3
  export { RetryMigrationRequestBody } from "./RetryMigrationRequestBody";
@@ -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 { PlanVersionMigrationPreviewResponseData } from "../../../types/PlanVersionMigrationPreviewResponseData";
5
+ export declare const PreviewMigrationResponse: core.serialization.ObjectSchema<serializers.PreviewMigrationResponse.Raw, Schematic.PreviewMigrationResponse>;
6
+ export declare namespace PreviewMigrationResponse {
7
+ interface Raw {
8
+ data: PlanVersionMigrationPreviewResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -8,5 +8,6 @@ export * from "./ListCompanyMigrationsParams";
8
8
  export * from "./ListCompanyMigrationsResponse";
9
9
  export * from "./ListMigrationsParams";
10
10
  export * from "./ListMigrationsResponse";
11
+ export * from "./PreviewMigrationResponse";
11
12
  export * from "./RetryCompanyMigrationResponse";
12
13
  export * from "./RetryMigrationResponse";
@@ -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 = "customer_archived" | "expired" | "integration_uninstalled" | "manual" | "plan_change" | "plan_period_reset" | "reconciled";
6
+ type Raw = "customer_archived" | "expired" | "integration_uninstalled" | "license_retired" | "manual" | "plan_change" | "plan_period_reset" | "reconciled";
7
7
  }
@@ -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
+ export declare const CompanyBillingAddressView: core.serialization.ObjectSchema<serializers.CompanyBillingAddressView.Raw, Schematic.CompanyBillingAddressView>;
5
+ export declare namespace CompanyBillingAddressView {
6
+ interface Raw {
7
+ city: string;
8
+ country: string;
9
+ line1: string;
10
+ line2: string;
11
+ postal_code: string;
12
+ state: string;
13
+ }
14
+ }
@@ -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 CompanyBillingCheckoutSettings: core.serialization.ObjectSchema<serializers.CompanyBillingCheckoutSettings.Raw, Schematic.CompanyBillingCheckoutSettings>;
5
+ export declare namespace CompanyBillingCheckoutSettings {
6
+ interface Raw {
7
+ collect_address: boolean;
8
+ collect_email: boolean;
9
+ collect_phone: boolean;
10
+ }
11
+ }
@@ -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
+ import { CheckoutFieldWithValue } from "./CheckoutFieldWithValue";
5
+ import { CompanyBillingAddressView } from "./CompanyBillingAddressView";
6
+ import { CompanyBillingCheckoutSettings } from "./CompanyBillingCheckoutSettings";
7
+ export declare const CompanyBillingDetailsResponseData: core.serialization.ObjectSchema<serializers.CompanyBillingDetailsResponseData.Raw, Schematic.CompanyBillingDetailsResponseData>;
8
+ export declare namespace CompanyBillingDetailsResponseData {
9
+ interface Raw {
10
+ address?: CompanyBillingAddressView.Raw | null;
11
+ checkout_settings: CompanyBillingCheckoutSettings.Raw;
12
+ custom_fields: CheckoutFieldWithValue.Raw[];
13
+ email?: string | null;
14
+ phone?: string | null;
15
+ }
16
+ }
@@ -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
+ import { CheckoutFieldWithValue } from "./CheckoutFieldWithValue";
5
+ import { CompanyBillingAddressView } from "./CompanyBillingAddressView";
6
+ import { CompanyBillingCheckoutSettings } from "./CompanyBillingCheckoutSettings";
7
+ export declare const CompanyBillingDetailsView: core.serialization.ObjectSchema<serializers.CompanyBillingDetailsView.Raw, Schematic.CompanyBillingDetailsView>;
8
+ export declare namespace CompanyBillingDetailsView {
9
+ interface Raw {
10
+ address?: CompanyBillingAddressView.Raw | null;
11
+ checkout_settings: CompanyBillingCheckoutSettings.Raw;
12
+ custom_fields: CheckoutFieldWithValue.Raw[];
13
+ email?: string | null;
14
+ phone?: string | null;
15
+ }
16
+ }
@@ -8,6 +8,7 @@ import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
8
8
  import { EntitlementValueType } from "./EntitlementValueType";
9
9
  import { MetricPeriod } from "./MetricPeriod";
10
10
  import { MetricPeriodMonthReset } from "./MetricPeriodMonthReset";
11
+ import { WarningTierRequestBody } from "./WarningTierRequestBody";
11
12
  export declare const CreateEntitlementInBundleRequestBody: core.serialization.ObjectSchema<serializers.CreateEntitlementInBundleRequestBody.Raw, Schematic.CreateEntitlementInBundleRequestBody>;
12
13
  export declare namespace CreateEntitlementInBundleRequestBody {
13
14
  interface Raw {
@@ -40,6 +41,7 @@ export declare namespace CreateEntitlementInBundleRequestBody {
40
41
  value_numeric?: number | null;
41
42
  value_trait_id?: string | null;
42
43
  value_type: EntitlementValueType.Raw;
44
+ warning_tiers?: WarningTierRequestBody.Raw[] | null;
43
45
  yearly_metered_price_id?: string | null;
44
46
  yearly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
45
47
  yearly_unit_price?: number | null;
@@ -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 { CreditsAutoTopupCompanySummary } from "./CreditsAutoTopupCompanySummary";
5
+ import { CreditsAutoTopupCreditSummary } from "./CreditsAutoTopupCreditSummary";
6
+ export declare const CreditsAutoTopupSuccess: core.serialization.ObjectSchema<serializers.CreditsAutoTopupSuccess.Raw, Schematic.CreditsAutoTopupSuccess>;
7
+ export declare namespace CreditsAutoTopupSuccess {
8
+ interface Raw {
9
+ company?: CreditsAutoTopupCompanySummary.Raw | null;
10
+ credit?: CreditsAutoTopupCreditSummary.Raw | null;
11
+ grant_id: string;
12
+ quantity: number;
13
+ }
14
+ }
@@ -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
+ import { CreditsWebhookCompanySummary } from "./CreditsWebhookCompanySummary";
5
+ import { CreditsWebhookCreditSummary } from "./CreditsWebhookCreditSummary";
6
+ export declare const CreditsCreditPurchaseSuccess: core.serialization.ObjectSchema<serializers.CreditsCreditPurchaseSuccess.Raw, Schematic.CreditsCreditPurchaseSuccess>;
7
+ export declare namespace CreditsCreditPurchaseSuccess {
8
+ interface Raw {
9
+ bundle_id: string;
10
+ bundle_name: string;
11
+ company?: CreditsWebhookCompanySummary.Raw | null;
12
+ credit?: CreditsWebhookCreditSummary.Raw | null;
13
+ grant_ids: string[];
14
+ quantity: number;
15
+ }
16
+ }
@@ -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 CreditsWebhookCompanySummary: core.serialization.ObjectSchema<serializers.CreditsWebhookCompanySummary.Raw, Schematic.CreditsWebhookCompanySummary>;
5
+ export declare namespace CreditsWebhookCompanySummary {
6
+ interface Raw {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ }
@@ -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 CreditsWebhookCreditSummary: core.serialization.ObjectSchema<serializers.CreditsWebhookCreditSummary.Raw, Schematic.CreditsWebhookCreditSummary>;
5
+ export declare namespace CreditsWebhookCreditSummary {
6
+ interface Raw {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ }
@@ -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
+ export declare const CustomerBillingAddress: core.serialization.ObjectSchema<serializers.CustomerBillingAddress.Raw, Schematic.CustomerBillingAddress>;
5
+ export declare namespace CustomerBillingAddress {
6
+ interface Raw {
7
+ city: string;
8
+ country: string;
9
+ line1: string;
10
+ line2: string;
11
+ postal_code: string;
12
+ state: string;
13
+ }
14
+ }
@@ -3,6 +3,7 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { AccountMemberResponseData } from "./AccountMemberResponseData";
5
5
  import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
6
+ import { BillingProductResponseData } from "./BillingProductResponseData";
6
7
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
7
8
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
8
9
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
@@ -13,6 +14,7 @@ export declare const FeatureDetailResponseData: core.serialization.ObjectSchema<
13
14
  export declare namespace FeatureDetailResponseData {
14
15
  interface Raw {
15
16
  billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
17
+ billing_product?: BillingProductResponseData.Raw | null;
16
18
  created_at: string;
17
19
  description: string;
18
20
  event_subtype?: string | null;
@@ -21,6 +23,7 @@ export declare namespace FeatureDetailResponseData {
21
23
  flags: FlagDetailResponseData.Raw[];
22
24
  icon: string;
23
25
  id: string;
26
+ license_id?: string | null;
24
27
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
25
28
  maintainer?: AccountMemberResponseData.Raw | null;
26
29
  maintainer_account_member_id?: string | null;
@@ -31,5 +34,6 @@ export declare namespace FeatureDetailResponseData {
31
34
  trait?: EntityTraitDefinitionResponseData.Raw | null;
32
35
  trait_id?: string | null;
33
36
  updated_at: string;
37
+ usage_limit_trait_id?: string | null;
34
38
  }
35
39
  }
@@ -20,6 +20,7 @@ export declare namespace FeatureInPlanResponseData {
20
20
  flags: FlagInPlanResponseData.Raw[];
21
21
  icon: string;
22
22
  id: string;
23
+ license_id?: string | null;
23
24
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
24
25
  maintainer_account_member_id?: string | null;
25
26
  name: string;
@@ -29,5 +30,6 @@ export declare namespace FeatureInPlanResponseData {
29
30
  trait?: EntityTraitDefinitionResponseData.Raw | null;
30
31
  trait_id?: string | null;
31
32
  updated_at: string;
33
+ usage_limit_trait_id?: string | null;
32
34
  }
33
35
  }
@@ -12,6 +12,7 @@ export declare namespace FeatureResponseData {
12
12
  feature_type: FeatureType.Raw;
13
13
  icon: string;
14
14
  id: string;
15
+ license_id?: string | null;
15
16
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
16
17
  maintainer_account_member_id?: string | null;
17
18
  name: string;
@@ -19,5 +20,6 @@ export declare namespace FeatureResponseData {
19
20
  singular_name?: string | null;
20
21
  trait_id?: string | null;
21
22
  updated_at: string;
23
+ usage_limit_trait_id?: string | null;
22
24
  }
23
25
  }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const FeatureType: core.serialization.Schema<serializers.FeatureType.Raw, Schematic.FeatureType>;
5
5
  export declare namespace FeatureType {
6
- type Raw = "boolean" | "event" | "trait";
6
+ type Raw = "boolean" | "event" | "license" | "trait";
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 { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
5
+ import { BillingProductResponseData } from "./BillingProductResponseData";
5
6
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
6
7
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
7
8
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
@@ -13,6 +14,7 @@ export declare namespace FeatureView {
13
14
  interface Raw {
14
15
  account_id: string;
15
16
  billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
17
+ billing_product?: BillingProductResponseData.Raw | null;
16
18
  created_at: string;
17
19
  description: string;
18
20
  event_subtype?: string | null;
@@ -21,6 +23,7 @@ export declare namespace FeatureView {
21
23
  flags: FlagView.Raw[];
22
24
  icon: string;
23
25
  id: string;
26
+ license_id?: string | null;
24
27
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
25
28
  name: string;
26
29
  plans: PreviewObject.Raw[];
@@ -0,0 +1,12 @@
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 LicenseResponseData: core.serialization.ObjectSchema<serializers.LicenseResponseData.Raw, Schematic.LicenseResponseData>;
5
+ export declare namespace LicenseResponseData {
6
+ interface Raw {
7
+ created_at: string;
8
+ id: string;
9
+ name: string;
10
+ updated_at: string;
11
+ }
12
+ }
@@ -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
+ export declare const PlanVersionMigrationPreviewCompanyResponseData: core.serialization.ObjectSchema<serializers.PlanVersionMigrationPreviewCompanyResponseData.Raw, Schematic.PlanVersionMigrationPreviewCompanyResponseData>;
5
+ export declare namespace PlanVersionMigrationPreviewCompanyResponseData {
6
+ interface Raw {
7
+ company_id: string;
8
+ has_billing_changes: boolean;
9
+ has_custom_pricing: boolean;
10
+ note?: string | null;
11
+ plan_version_id_from?: string | null;
12
+ will_update_subscription: boolean;
13
+ }
14
+ }
@@ -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 { PlanVersionMigrationPreviewCompanyResponseData } from "./PlanVersionMigrationPreviewCompanyResponseData";
5
+ export declare const PlanVersionMigrationPreviewResponseData: core.serialization.ObjectSchema<serializers.PlanVersionMigrationPreviewResponseData.Raw, Schematic.PlanVersionMigrationPreviewResponseData>;
6
+ export declare namespace PlanVersionMigrationPreviewResponseData {
7
+ interface Raw {
8
+ companies: PlanVersionMigrationPreviewCompanyResponseData.Raw[];
9
+ }
10
+ }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const WebhookRequestType: core.serialization.Schema<serializers.WebhookRequestType.Raw, Schematic.WebhookRequestType>;
5
5
  export declare namespace WebhookRequestType {
6
- type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.scheduled_downgrade" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "plan_version.deleted" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded";
6
+ type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.scheduled_downgrade" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "credit.purchase.success" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "plan_version.deleted" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded" | "auto.topup.success";
7
7
  }
@@ -87,6 +87,10 @@ export * from "./CheckoutFieldWithValue";
87
87
  export * from "./CheckoutSettingsResponseData";
88
88
  export * from "./CheckoutSubscription";
89
89
  export * from "./ClerkIntegrationConfig";
90
+ export * from "./CompanyBillingAddressView";
91
+ export * from "./CompanyBillingCheckoutSettings";
92
+ export * from "./CompanyBillingDetailsResponseData";
93
+ export * from "./CompanyBillingDetailsView";
90
94
  export * from "./CompanyBillingEntityResponseData";
91
95
  export * from "./CompanyBillingEntitySubscriptionResponseData";
92
96
  export * from "./CompanyCreditBalance";
@@ -159,6 +163,10 @@ export * from "./CreditsAutoTopupCompanySummary";
159
163
  export * from "./CreditsAutoTopupCreditSummary";
160
164
  export * from "./CreditsAutoTopupHardFailure";
161
165
  export * from "./CreditsAutoTopupRetryFailure";
166
+ export * from "./CreditsAutoTopupSuccess";
167
+ export * from "./CreditsCreditPurchaseSuccess";
168
+ export * from "./CreditsWebhookCompanySummary";
169
+ export * from "./CreditsWebhookCreditSummary";
162
170
  export * from "./CreditTransferResponseData";
163
171
  export * from "./CreditTransferView";
164
172
  export * from "./CreditTriggerConfig";
@@ -166,6 +174,7 @@ export * from "./CreditUsage";
166
174
  export * from "./CreditUsageAggregation";
167
175
  export * from "./CreditUsageReason";
168
176
  export * from "./CurrencyPriceRequestBody";
177
+ export * from "./CustomerBillingAddress";
169
178
  export * from "./CustomPlanActivationStrategy";
170
179
  export * from "./CustomPlanBillingResponseData";
171
180
  export * from "./CustomPlanBillingStatus";
@@ -250,6 +259,7 @@ export * from "./InvoiceResponseData";
250
259
  export * from "./InvoiceStatus";
251
260
  export * from "./IssueTemporaryAccessTokenResponseData";
252
261
  export * from "./KeysRequestBody";
262
+ export * from "./LicenseResponseData";
253
263
  export * from "./LimitTimeSeriesPointResponseData";
254
264
  export * from "./ManagePlanPreviewResponseResponseData";
255
265
  export * from "./ManagePlanRequest";
@@ -297,6 +307,8 @@ export * from "./PlanTraitResponseData";
297
307
  export * from "./PlanType";
298
308
  export * from "./PlanVersionCompanyMigrationResponseData";
299
309
  export * from "./PlanVersionCompanyMigrationStatus";
310
+ export * from "./PlanVersionMigrationPreviewCompanyResponseData";
311
+ export * from "./PlanVersionMigrationPreviewResponseData";
300
312
  export * from "./PlanVersionMigrationResponseData";
301
313
  export * from "./PlanVersionMigrationStatus";
302
314
  export * from "./PlanVersionMigrationStrategy";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-typescript-node",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",