@schematichq/schematic-typescript-node 1.6.2 → 1.6.4

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 (157) hide show
  1. package/README.md +18 -3
  2. package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  3. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +1 -0
  4. package/dist/api/resources/credits/client/Client.d.ts +24 -4
  5. package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +2 -0
  6. package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +1 -1
  7. package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +8 -4
  8. package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +2 -0
  9. package/dist/api/resources/credits/client/requests/GetCreditSpendPolicyUsageRequest.d.ts +13 -0
  10. package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +1 -1
  11. package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  12. package/dist/api/resources/credits/client/requests/index.d.ts +1 -0
  13. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +8 -0
  14. package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +6 -0
  15. package/dist/api/resources/credits/types/index.d.ts +2 -0
  16. package/dist/api/resources/entitlements/client/Client.d.ts +69 -0
  17. package/dist/api/resources/entitlements/client/requests/CountCompanyUserUsageRequest.d.ts +29 -0
  18. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +1 -1
  19. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
  20. package/dist/api/resources/entitlements/client/requests/GetCompanyUserUsageMetricsRequest.d.ts +16 -0
  21. package/dist/api/resources/entitlements/client/requests/ListCompanyUserUsageRequest.d.ts +29 -0
  22. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
  23. package/dist/api/resources/entitlements/client/requests/index.d.ts +3 -0
  24. package/dist/api/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +20 -0
  25. package/dist/api/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +6 -0
  26. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  27. package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +6 -0
  28. package/dist/api/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +20 -0
  29. package/dist/api/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +6 -0
  30. package/dist/api/resources/entitlements/types/index.d.ts +6 -0
  31. package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
  32. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  33. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  34. package/dist/api/resources/planmigrations/client/Client.d.ts +2 -0
  35. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -0
  36. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +3 -0
  37. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -0
  38. package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  39. package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  40. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -0
  41. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  42. package/dist/api/types/CaptureRawEvent.d.ts +2 -0
  43. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
  44. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
  45. package/dist/api/types/CheckFlagsResponseData.d.ts +2 -0
  46. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  47. package/dist/api/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +1 -0
  48. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  49. package/dist/api/types/CompanyUserUsageMetricsResponseData.d.ts +11 -0
  50. package/dist/api/types/CompanyUserUsageResponseData.d.ts +15 -0
  51. package/dist/api/types/CompanyUserUsageRowResponseData.d.ts +13 -0
  52. package/dist/api/types/ComponentDisplaySettings.d.ts +1 -0
  53. package/dist/api/types/ComponentSettingsResponseData.d.ts +1 -0
  54. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -1
  55. package/dist/api/types/CreditEventLedgerResponseData.d.ts +4 -1
  56. package/dist/api/types/CreditEventType.d.ts +3 -0
  57. package/dist/api/types/CreditLedgerEntryKind.d.ts +10 -0
  58. package/dist/api/types/CreditSpendPolicy.d.ts +21 -0
  59. package/dist/api/types/CreditSpendPolicyResponseData.d.ts +9 -0
  60. package/dist/api/types/CreditSpendWindow.d.ts +6 -0
  61. package/dist/api/types/CreditSpendWindowUnit.d.ts +6 -0
  62. package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
  63. package/dist/api/types/EnvironmentDetailResponseData.d.ts +1 -0
  64. package/dist/api/types/EnvironmentResponseData.d.ts +1 -0
  65. package/dist/api/types/EstimatedPlanTotal.d.ts +6 -0
  66. package/dist/api/types/InvoiceRequestBody.d.ts +1 -0
  67. package/dist/api/types/InvoiceResponseData.d.ts +2 -0
  68. package/dist/api/types/ManagePlanRequest.d.ts +2 -0
  69. package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
  70. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -1
  71. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  72. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
  73. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  74. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  75. package/dist/api/types/RulesengineCompany.d.ts +1 -0
  76. package/dist/api/types/RulesengineComparableOperator.d.ts +11 -0
  77. package/dist/api/types/RulesengineCondition.d.ts +1 -1
  78. package/dist/api/types/RulesengineCreditSpendPolicy.d.ts +21 -0
  79. package/dist/api/types/RulesengineCreditSpendPolicyScope.d.ts +6 -0
  80. package/dist/api/types/RulesengineCreditSpendWindow.d.ts +6 -0
  81. package/dist/api/types/RulesengineUser.d.ts +1 -0
  82. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +2 -0
  83. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
  84. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -1
  85. package/dist/api/types/UserUsageMetric.d.ts +5 -0
  86. package/dist/api/types/index.d.ts +13 -0
  87. package/dist/datastream/datastream-client.d.ts +2 -2
  88. package/dist/index.js +9 -9
  89. package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
  90. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +1 -0
  91. package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +1 -0
  92. package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +4 -1
  93. package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +1 -0
  94. package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
  95. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +11 -0
  96. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +12 -0
  97. package/dist/serialization/resources/credits/types/index.d.ts +2 -0
  98. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +16 -0
  99. package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +12 -0
  100. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
  101. package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +12 -0
  102. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +16 -0
  103. package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +12 -0
  104. package/dist/serialization/resources/entitlements/types/index.d.ts +6 -0
  105. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  106. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  107. package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -0
  108. package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
  109. package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
  110. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
  111. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
  112. package/dist/serialization/types/CaptureRawEvent.d.ts +2 -0
  113. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  114. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  115. package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
  116. package/dist/serialization/types/CompanyDetailResponseData.d.ts +1 -0
  117. package/dist/serialization/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +1 -1
  118. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  119. package/dist/serialization/types/CompanyUserUsageMetricsResponseData.d.ts +13 -0
  120. package/dist/serialization/types/CompanyUserUsageResponseData.d.ts +15 -0
  121. package/dist/serialization/types/CompanyUserUsageRowResponseData.d.ts +14 -0
  122. package/dist/serialization/types/ComponentDisplaySettings.d.ts +1 -0
  123. package/dist/serialization/types/ComponentSettingsResponseData.d.ts +1 -0
  124. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +5 -1
  125. package/dist/serialization/types/CreditEventType.d.ts +1 -1
  126. package/dist/serialization/types/CreditLedgerEntryKind.d.ts +7 -0
  127. package/dist/serialization/types/CreditSpendPolicy.d.ts +19 -0
  128. package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +7 -0
  129. package/dist/serialization/types/CreditSpendWindow.d.ts +10 -0
  130. package/dist/serialization/types/CreditSpendWindowUnit.d.ts +7 -0
  131. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
  132. package/dist/serialization/types/EnvironmentDetailResponseData.d.ts +1 -0
  133. package/dist/serialization/types/EnvironmentResponseData.d.ts +1 -0
  134. package/dist/serialization/types/EstimatedPlanTotal.d.ts +12 -0
  135. package/dist/serialization/types/InvoiceRequestBody.d.ts +1 -0
  136. package/dist/serialization/types/InvoiceResponseData.d.ts +1 -0
  137. package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
  138. package/dist/serialization/types/PendingMigrationResponseData.d.ts +5 -0
  139. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
  140. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
  141. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
  142. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  143. package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
  144. package/dist/serialization/types/RulesengineComparableOperator.d.ts +7 -0
  145. package/dist/serialization/types/RulesengineCondition.d.ts +2 -2
  146. package/dist/serialization/types/RulesengineCreditSpendPolicy.d.ts +19 -0
  147. package/dist/serialization/types/RulesengineCreditSpendPolicyScope.d.ts +7 -0
  148. package/dist/serialization/types/RulesengineCreditSpendWindow.d.ts +10 -0
  149. package/dist/serialization/types/RulesengineUser.d.ts +2 -0
  150. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +1 -0
  151. package/dist/serialization/types/UserUsageMetric.d.ts +7 -0
  152. package/dist/serialization/types/index.d.ts +13 -0
  153. package/dist/wasm/rulesengine.d.ts +1 -0
  154. package/dist/wasm/rulesengine.js +34 -4
  155. package/dist/wasm/rulesengine_bg.wasm.d.ts +2 -0
  156. package/dist/wrapper.d.ts +2 -2
  157. package/package.json +1 -1
@@ -7,5 +7,6 @@ export declare namespace UpdateEnvironmentRequestBody {
7
7
  interface Raw {
8
8
  environment_type?: EnvironmentType.Raw | null;
9
9
  name?: string | null;
10
+ require_context_signature?: boolean | null;
10
11
  }
11
12
  }
@@ -19,6 +19,7 @@ export declare namespace CreateInvoiceRequestBody {
19
19
  status?: InvoiceStatus.Raw | null;
20
20
  subscription_external_id?: string | null;
21
21
  subtotal: number;
22
+ total?: number | null;
22
23
  url?: string | null;
23
24
  }
24
25
  }
@@ -8,5 +8,6 @@ export declare namespace AcquireCreditLeaseRequestBody {
8
8
  credit_type_id: string;
9
9
  expires_at?: string | null;
10
10
  requested_amount: number;
11
+ user_id?: string | null;
11
12
  }
12
13
  }
@@ -1,13 +1,16 @@
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 { CreditSpendWindowUnit } from "../../../../types/CreditSpendWindowUnit";
4
5
  export declare const CreateCreditSpendPolicyRequestBody: core.serialization.Schema<serializers.CreateCreditSpendPolicyRequestBody.Raw, Schematic.CreateCreditSpendPolicyRequestBody>;
5
6
  export declare namespace CreateCreditSpendPolicyRequestBody {
6
7
  interface Raw {
7
8
  billing_credit_id: string;
8
9
  company_id?: string | null;
9
10
  label?: string | null;
10
- max_per_draw: number;
11
+ max_per_draw?: number | null;
11
12
  user_id?: string | null;
13
+ window_amount?: number | null;
14
+ window_unit?: CreditSpendWindowUnit.Raw | null;
12
15
  }
13
16
  }
@@ -7,5 +7,6 @@ export declare namespace ExtendCreditLeaseRequestBody {
7
7
  additional_amount: number;
8
8
  expires_at?: string | null;
9
9
  idempotency_key?: string | null;
10
+ user_id?: string | null;
10
11
  }
11
12
  }
@@ -1,10 +1,13 @@
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 { CreditSpendWindowUnit } from "../../../../types/CreditSpendWindowUnit";
4
5
  export declare const UpdateCreditSpendPolicyRequestBody: core.serialization.Schema<serializers.UpdateCreditSpendPolicyRequestBody.Raw, Schematic.UpdateCreditSpendPolicyRequestBody>;
5
6
  export declare namespace UpdateCreditSpendPolicyRequestBody {
6
7
  interface Raw {
7
8
  label?: string | null;
8
9
  max_per_draw?: number | null;
10
+ window_amount?: number | null;
11
+ window_unit?: CreditSpendWindowUnit.Raw | null;
9
12
  }
10
13
  }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ export declare const GetCreditSpendPolicyUsageParams: core.serialization.ObjectSchema<serializers.GetCreditSpendPolicyUsageParams.Raw, Schematic.GetCreditSpendPolicyUsageParams>;
5
+ export declare namespace GetCreditSpendPolicyUsageParams {
6
+ interface Raw {
7
+ billing_credit_id?: string | null;
8
+ company_id?: string | null;
9
+ user_ids?: string[] | null;
10
+ }
11
+ }
@@ -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 { CreditSpendPolicyResponseData } from "../../../types/CreditSpendPolicyResponseData";
5
+ import { GetCreditSpendPolicyUsageParams } from "./GetCreditSpendPolicyUsageParams";
6
+ export declare const GetCreditSpendPolicyUsageResponse: core.serialization.ObjectSchema<serializers.GetCreditSpendPolicyUsageResponse.Raw, Schematic.GetCreditSpendPolicyUsageResponse>;
7
+ export declare namespace GetCreditSpendPolicyUsageResponse {
8
+ interface Raw {
9
+ data: CreditSpendPolicyResponseData.Raw[];
10
+ params: GetCreditSpendPolicyUsageParams.Raw;
11
+ }
12
+ }
@@ -24,6 +24,8 @@ export * from "./DeleteCreditSpendPolicyResponse";
24
24
  export * from "./ExtendCreditLeaseResponse";
25
25
  export * from "./GetCreditBundleResponse";
26
26
  export * from "./GetCreditSpendPolicyResponse";
27
+ export * from "./GetCreditSpendPolicyUsageParams";
28
+ export * from "./GetCreditSpendPolicyUsageResponse";
27
29
  export * from "./GetSingleBillingCreditResponse";
28
30
  export * from "./GetSingleBillingPlanCreditGrantResponse";
29
31
  export * from "./GrantBillingCreditsToCompanyResponse";
@@ -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 { UserUsageMetric } from "../../../types/UserUsageMetric";
5
+ export declare const CountCompanyUserUsageParams: core.serialization.ObjectSchema<serializers.CountCompanyUserUsageParams.Raw, Schematic.CountCompanyUserUsageParams>;
6
+ export declare namespace CountCompanyUserUsageParams {
7
+ interface Raw {
8
+ company_id?: string | null;
9
+ end_time?: string | null;
10
+ feature_id?: string | null;
11
+ limit?: number | null;
12
+ metric?: UserUsageMetric.Raw | null;
13
+ offset?: number | null;
14
+ start_time?: string | null;
15
+ }
16
+ }
@@ -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 { CountCompanyUserUsageParams } from "./CountCompanyUserUsageParams";
6
+ export declare const CountCompanyUserUsageResponse: core.serialization.ObjectSchema<serializers.CountCompanyUserUsageResponse.Raw, Schematic.CountCompanyUserUsageResponse>;
7
+ export declare namespace CountCompanyUserUsageResponse {
8
+ interface Raw {
9
+ data: CountResponse.Raw;
10
+ params: CountCompanyUserUsageParams.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
+ export declare const GetCompanyUserUsageMetricsParams: core.serialization.ObjectSchema<serializers.GetCompanyUserUsageMetricsParams.Raw, Schematic.GetCompanyUserUsageMetricsParams>;
5
+ export declare namespace GetCompanyUserUsageMetricsParams {
6
+ interface Raw {
7
+ company_id?: string | null;
8
+ end_time?: string | null;
9
+ start_time?: string | null;
10
+ }
11
+ }
@@ -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 { CompanyUserUsageMetricsResponseData } from "../../../types/CompanyUserUsageMetricsResponseData";
5
+ import { GetCompanyUserUsageMetricsParams } from "./GetCompanyUserUsageMetricsParams";
6
+ export declare const GetCompanyUserUsageMetricsResponse: core.serialization.ObjectSchema<serializers.GetCompanyUserUsageMetricsResponse.Raw, Schematic.GetCompanyUserUsageMetricsResponse>;
7
+ export declare namespace GetCompanyUserUsageMetricsResponse {
8
+ interface Raw {
9
+ data: CompanyUserUsageMetricsResponseData.Raw;
10
+ params: GetCompanyUserUsageMetricsParams.Raw;
11
+ }
12
+ }
@@ -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 { UserUsageMetric } from "../../../types/UserUsageMetric";
5
+ export declare const ListCompanyUserUsageParams: core.serialization.ObjectSchema<serializers.ListCompanyUserUsageParams.Raw, Schematic.ListCompanyUserUsageParams>;
6
+ export declare namespace ListCompanyUserUsageParams {
7
+ interface Raw {
8
+ company_id?: string | null;
9
+ end_time?: string | null;
10
+ feature_id?: string | null;
11
+ limit?: number | null;
12
+ metric?: UserUsageMetric.Raw | null;
13
+ offset?: number | null;
14
+ start_time?: string | null;
15
+ }
16
+ }
@@ -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 { CompanyUserUsageResponseData } from "../../../types/CompanyUserUsageResponseData";
5
+ import { ListCompanyUserUsageParams } from "./ListCompanyUserUsageParams";
6
+ export declare const ListCompanyUserUsageResponse: core.serialization.ObjectSchema<serializers.ListCompanyUserUsageResponse.Raw, Schematic.ListCompanyUserUsageResponse>;
7
+ export declare namespace ListCompanyUserUsageResponse {
8
+ interface Raw {
9
+ data: CompanyUserUsageResponseData.Raw;
10
+ params: ListCompanyUserUsageParams.Raw;
11
+ }
12
+ }
@@ -1,5 +1,7 @@
1
1
  export * from "./CountCompanyOverridesParams";
2
2
  export * from "./CountCompanyOverridesResponse";
3
+ export * from "./CountCompanyUserUsageParams";
4
+ export * from "./CountCompanyUserUsageResponse";
3
5
  export * from "./CountFeatureCompaniesParams";
4
6
  export * from "./CountFeatureCompaniesResponse";
5
7
  export * from "./CountFeatureUsageParams";
@@ -14,6 +16,8 @@ export * from "./DeleteCompanyOverrideResponse";
14
16
  export * from "./DeletePlanEntitlementResponse";
15
17
  export * from "./DuplicatePlanEntitlementsResponse";
16
18
  export * from "./GetCompanyOverrideResponse";
19
+ export * from "./GetCompanyUserUsageMetricsParams";
20
+ export * from "./GetCompanyUserUsageMetricsResponse";
17
21
  export * from "./GetFeatureUsageByCompanyParams";
18
22
  export * from "./GetFeatureUsageByCompanyResponse";
19
23
  export * from "./GetFeatureUsageTimeSeriesParams";
@@ -25,6 +29,8 @@ export * from "./GetUserUsageDetailParams";
25
29
  export * from "./GetUserUsageDetailResponse";
26
30
  export * from "./ListCompanyOverridesParams";
27
31
  export * from "./ListCompanyOverridesResponse";
32
+ export * from "./ListCompanyUserUsageParams";
33
+ export * from "./ListCompanyUserUsageResponse";
28
34
  export * from "./ListFeatureCompaniesParams";
29
35
  export * from "./ListFeatureCompaniesResponse";
30
36
  export * from "./ListFeatureUsageHistoryParams";
@@ -41,6 +41,7 @@ export declare namespace CreatePlanGroupRequestBody {
41
41
  scheduled_downgrade_prevent_when_over_limit?: boolean | null;
42
42
  show_as_monthly_prices: boolean;
43
43
  show_credits: boolean;
44
+ show_estimated_total: boolean;
44
45
  show_feature_description: boolean;
45
46
  show_hard_limit: boolean;
46
47
  show_period_toggle: boolean;
@@ -41,6 +41,7 @@ export declare namespace UpdatePlanGroupRequestBody {
41
41
  scheduled_downgrade_prevent_when_over_limit?: boolean | null;
42
42
  show_as_monthly_prices: boolean;
43
43
  show_credits: boolean;
44
+ show_estimated_total: boolean;
44
45
  show_feature_description: boolean;
45
46
  show_hard_limit: boolean;
46
47
  show_period_toggle: boolean;
@@ -13,6 +13,7 @@ export declare namespace CreateMigrationInput {
13
13
  plan_version_id_to: string;
14
14
  plan_version_ids_from?: string[] | null;
15
15
  proration_behavior?: MigrationProrationBehavior.Raw | null;
16
+ scheduled_at?: string | null;
16
17
  strategy: PlanVersionMigrationStrategy.Raw;
17
18
  target_plan_type: PlanType.Raw;
18
19
  }
@@ -6,6 +6,7 @@ export declare const CountMigrationsParams: core.serialization.ObjectSchema<seri
6
6
  export declare namespace CountMigrationsParams {
7
7
  interface Raw {
8
8
  feature_id?: string | null;
9
+ feature_plan_rollout_id?: string | null;
9
10
  limit?: number | null;
10
11
  offset?: number | null;
11
12
  plan_version_id?: string | null;
@@ -6,6 +6,7 @@ export declare const ListMigrationsParams: core.serialization.ObjectSchema<seria
6
6
  export declare namespace ListMigrationsParams {
7
7
  interface Raw {
8
8
  feature_id?: string | null;
9
+ feature_plan_rollout_id?: string | null;
9
10
  limit?: number | null;
10
11
  offset?: number | null;
11
12
  plan_version_id?: string | null;
@@ -13,6 +13,7 @@ export declare namespace PublishPlanVersionRequestBody {
13
13
  activation_strategy?: CustomPlanActivationStrategy.Raw | null;
14
14
  address?: CustomerBillingAddress.Raw | null;
15
15
  billing_cycle_anchor?: string | null;
16
+ billing_start_date?: string | null;
16
17
  coupon_external_id?: string | null;
17
18
  custom_field_values?: CheckoutFieldValue.Raw[] | null;
18
19
  customer_email?: string | null;
@@ -23,6 +24,7 @@ export declare namespace PublishPlanVersionRequestBody {
23
24
  prorate_first_period?: boolean | null;
24
25
  proration_behavior?: MigrationProrationBehavior.Raw | null;
25
26
  require_no_migration?: boolean | null;
27
+ scheduled_at?: string | null;
26
28
  send_invoice?: boolean | null;
27
29
  tax_id?: TaxIdInput.Raw | null;
28
30
  }
@@ -7,6 +7,7 @@ export declare namespace RetryCustomPlanBillingRequestBody {
7
7
  interface Raw {
8
8
  activation_strategy?: CustomPlanActivationStrategy.Raw | null;
9
9
  billing_cycle_anchor?: string | null;
10
+ billing_start_date?: string | null;
10
11
  customer_email: string;
11
12
  days_until_due?: number | null;
12
13
  prorate_first_period?: boolean | null;
@@ -5,6 +5,8 @@ export declare const CaptureRawEvent: core.serialization.ObjectSchema<serializer
5
5
  export declare namespace CaptureRawEvent {
6
6
  interface Raw {
7
7
  captured_at: string;
8
+ context_signature?: string | null;
9
+ context_signature_checked?: boolean | null;
8
10
  event_id?: string | null;
9
11
  raw_bytes: string;
10
12
  remote_ip: string;
@@ -15,6 +15,7 @@ export declare namespace ChangeSubscriptionInternalRequestBody {
15
15
  company_id: string;
16
16
  coupon_external_id?: string | null;
17
17
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
18
+ currency?: string | null;
18
19
  custom_field_values: CheckoutFieldValue.Raw[];
19
20
  new_plan_id: string;
20
21
  new_price_id: string;
@@ -14,6 +14,7 @@ export declare namespace ChangeSubscriptionRequestBody {
14
14
  billing_entity_id?: string | null;
15
15
  coupon_external_id?: string | null;
16
16
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
17
+ currency?: string | null;
17
18
  custom_field_values: CheckoutFieldValue.Raw[];
18
19
  new_plan_id: string;
19
20
  new_price_id: string;
@@ -3,11 +3,13 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { CheckFlagResponseData } from "./CheckFlagResponseData";
5
5
  import { CompanyCreditBalance } from "./CompanyCreditBalance";
6
+ import { CreditSpendPolicy } from "./CreditSpendPolicy";
6
7
  import { DatastreamCompanyPlan } from "./DatastreamCompanyPlan";
7
8
  export declare const CheckFlagsResponseData: core.serialization.ObjectSchema<serializers.CheckFlagsResponseData.Raw, Schematic.CheckFlagsResponseData>;
8
9
  export declare namespace CheckFlagsResponseData {
9
10
  interface Raw {
10
11
  credit_balances?: Record<string, CompanyCreditBalance.Raw> | null;
12
+ credit_spend_policies: CreditSpendPolicy.Raw[];
11
13
  flags: CheckFlagResponseData.Raw[];
12
14
  plan?: DatastreamCompanyPlan.Raw | null;
13
15
  }
@@ -19,6 +19,7 @@ export declare namespace CompanyDetailResponseData {
19
19
  interface Raw {
20
20
  add_ons: CompanyPlanWithBillingSubView.Raw[];
21
21
  billing_credit_balances?: Record<string, number> | null;
22
+ billing_email?: string | null;
22
23
  billing_profile?: CompanyBillingProfileResponseData.Raw | null;
23
24
  billing_profiles?: CompanyBillingProfileResponseData.Raw[] | null;
24
25
  billing_subscription?: BillingSubscriptionView.Raw | null;
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const CompanyFeatureUsageExportMetadataVisibleColumnsItem: core.serialization.Schema<serializers.CompanyFeatureUsageExportMetadataVisibleColumnsItem.Raw, Schematic.CompanyFeatureUsageExportMetadataVisibleColumnsItem>;
5
5
  export declare namespace CompanyFeatureUsageExportMetadataVisibleColumnsItem {
6
- type Raw = "plan" | "subscription" | "users" | "last_seen_at";
6
+ type Raw = "plan" | "subscription" | "users" | "last_seen_at" | "created_at";
7
7
  }
@@ -10,6 +10,7 @@ import { BillingStrategy } from "./BillingStrategy";
10
10
  import { ChargeType } from "./ChargeType";
11
11
  import { CompanyPlanInvalidReason } from "./CompanyPlanInvalidReason";
12
12
  import { CustomPlanConfig } from "./CustomPlanConfig";
13
+ import { EstimatedPlanTotal } from "./EstimatedPlanTotal";
13
14
  import { FeatureInPlanResponseData } from "./FeatureInPlanResponseData";
14
15
  import { FeatureUsageResponseData } from "./FeatureUsageResponseData";
15
16
  import { PlanCatalogMembershipResponseData } from "./PlanCatalogMembershipResponseData";
@@ -48,6 +49,7 @@ export declare namespace CompanyPlanDetailResponseData {
48
49
  description: string;
49
50
  draft_version?: PlanVersionResponseData.Raw | null;
50
51
  entitlements?: PlanEntitlementResponseData.Raw[] | null;
52
+ estimated_totals?: EstimatedPlanTotal.Raw[] | null;
51
53
  features: FeatureInPlanResponseData.Raw[];
52
54
  icon: PlanIcon.Raw;
53
55
  id: string;
@@ -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 { FeatureResponseData } from "./FeatureResponseData";
5
+ export declare const CompanyUserUsageMetricsResponseData: core.serialization.ObjectSchema<serializers.CompanyUserUsageMetricsResponseData.Raw, Schematic.CompanyUserUsageMetricsResponseData>;
6
+ export declare namespace CompanyUserUsageMetricsResponseData {
7
+ interface Raw {
8
+ end_time: string;
9
+ features: FeatureResponseData.Raw[];
10
+ has_credits: boolean;
11
+ start_time: string;
12
+ }
13
+ }
@@ -0,0 +1,15 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CompanyUserUsageRowResponseData } from "./CompanyUserUsageRowResponseData";
5
+ export declare const CompanyUserUsageResponseData: core.serialization.ObjectSchema<serializers.CompanyUserUsageResponseData.Raw, Schematic.CompanyUserUsageResponseData>;
6
+ export declare namespace CompanyUserUsageResponseData {
7
+ interface Raw {
8
+ end_time: string;
9
+ rows: CompanyUserUsageRowResponseData.Raw[];
10
+ start_time: string;
11
+ top_user_share: number;
12
+ total: number;
13
+ unattributed?: CompanyUserUsageRowResponseData.Raw | null;
14
+ }
15
+ }
@@ -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 { UserResponseData } from "./UserResponseData";
5
+ export declare const CompanyUserUsageRowResponseData: core.serialization.ObjectSchema<serializers.CompanyUserUsageRowResponseData.Raw, Schematic.CompanyUserUsageRowResponseData>;
6
+ export declare namespace CompanyUserUsageRowResponseData {
7
+ interface Raw {
8
+ last_seen?: string | null;
9
+ share: number;
10
+ user?: UserResponseData.Raw | null;
11
+ user_id?: string | null;
12
+ value: number;
13
+ }
14
+ }
@@ -6,6 +6,7 @@ export declare namespace ComponentDisplaySettings {
6
6
  interface Raw {
7
7
  show_as_monthly_prices: boolean;
8
8
  show_credits: boolean;
9
+ show_estimated_total: boolean;
9
10
  show_feature_description: boolean;
10
11
  show_hard_limit: boolean;
11
12
  show_period_toggle: boolean;
@@ -6,6 +6,7 @@ export declare namespace ComponentSettingsResponseData {
6
6
  interface Raw {
7
7
  show_as_monthly_prices: boolean;
8
8
  show_credits: boolean;
9
+ show_estimated_total: boolean;
9
10
  show_feature_description: boolean;
10
11
  show_hard_limit: boolean;
11
12
  show_period_toggle: boolean;
@@ -8,6 +8,7 @@ import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOut
8
8
  import { BillingCreditLedgerResponseData } from "./BillingCreditLedgerResponseData";
9
9
  import { CompanyLedgerResponseData } from "./CompanyLedgerResponseData";
10
10
  import { CreditEventType } from "./CreditEventType";
11
+ import { CreditLedgerEntryKind } from "./CreditLedgerEntryKind";
11
12
  import { CreditTransferReason } from "./CreditTransferReason";
12
13
  import { CreditUsageReason } from "./CreditUsageReason";
13
14
  import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
@@ -17,11 +18,12 @@ export declare namespace CreditEventLedgerResponseData {
17
18
  amount: number;
18
19
  auto_topup_log_id?: string | null;
19
20
  billing_credit_bundle_id?: string | null;
20
- billing_credit_id: string;
21
+ billing_credit_id?: string | null;
21
22
  company?: CompanyLedgerResponseData.Raw | null;
22
23
  company_id: string;
23
24
  credit?: BillingCreditLedgerResponseData.Raw | null;
24
25
  credit_name: string;
26
+ currency?: string | null;
25
27
  environment_id: string;
26
28
  event_at: string;
27
29
  event_id: string;
@@ -38,6 +40,7 @@ export declare namespace CreditEventLedgerResponseData {
38
40
  grant_quantity_remaining?: number | null;
39
41
  grant_reason?: BillingCreditGrantReason.Raw | null;
40
42
  grant_valid_from?: string | null;
43
+ kind: CreditLedgerEntryKind.Raw;
41
44
  plan_id?: string | null;
42
45
  quantity_consumed?: number | null;
43
46
  quantity_remaining_at_zero_out?: number | null;
@@ -46,6 +49,7 @@ export declare namespace CreditEventLedgerResponseData {
46
49
  transfer_reason?: CreditTransferReason.Raw | null;
47
50
  usage_event_id?: string | null;
48
51
  usage_reason?: CreditUsageReason.Raw | null;
52
+ user_id?: string | null;
49
53
  zeroed_out_reason?: BillingCreditGrantZeroedOutReason.Raw | null;
50
54
  }
51
55
  }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const CreditEventType: core.serialization.Schema<serializers.CreditEventType.Raw, Schematic.CreditEventType>;
5
5
  export declare namespace CreditEventType {
6
- type Raw = "grant" | "transfer" | "usage" | "zero_out";
6
+ type Raw = "adjustment" | "charge" | "grant" | "settlement" | "transfer" | "usage" | "zero_out";
7
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 CreditLedgerEntryKind: core.serialization.Schema<serializers.CreditLedgerEntryKind.Raw, Schematic.CreditLedgerEntryKind>;
5
+ export declare namespace CreditLedgerEntryKind {
6
+ type Raw = "adjustment" | "charge" | "drawdown" | "grant" | "settlement" | "transfer" | "zero_out";
7
+ }
@@ -0,0 +1,19 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CreditSpendPolicyScope } from "./CreditSpendPolicyScope";
5
+ import { CreditSpendWindow } from "./CreditSpendWindow";
6
+ export declare const CreditSpendPolicy: core.serialization.ObjectSchema<serializers.CreditSpendPolicy.Raw, Schematic.CreditSpendPolicy>;
7
+ export declare namespace CreditSpendPolicy {
8
+ interface Raw {
9
+ consumed?: number | null;
10
+ credit_id: string;
11
+ id: string;
12
+ kind: string;
13
+ label?: string | null;
14
+ limit: number;
15
+ resets_at?: string | null;
16
+ scope: CreditSpendPolicyScope.Raw;
17
+ window?: CreditSpendWindow.Raw | null;
18
+ }
19
+ }
@@ -2,17 +2,24 @@ 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 { CreditSpendPolicyScope } from "./CreditSpendPolicyScope";
5
+ import { CreditSpendWindowUnit } from "./CreditSpendWindowUnit";
5
6
  export declare const CreditSpendPolicyResponseData: core.serialization.ObjectSchema<serializers.CreditSpendPolicyResponseData.Raw, Schematic.CreditSpendPolicyResponseData>;
6
7
  export declare namespace CreditSpendPolicyResponseData {
7
8
  interface Raw {
8
9
  billing_credit_id: string;
9
10
  company_id?: string | null;
11
+ consumed?: number | null;
10
12
  created_at: string;
13
+ headroom?: number | null;
11
14
  id: string;
12
15
  label?: string | null;
13
16
  max_per_draw?: number | null;
17
+ resets_at?: string | null;
14
18
  scope_type: CreditSpendPolicyScope.Raw;
15
19
  updated_at: string;
16
20
  user_id?: string | null;
21
+ window_amount?: number | null;
22
+ window_count: number;
23
+ window_unit?: CreditSpendWindowUnit.Raw | null;
17
24
  }
18
25
  }
@@ -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 CreditSpendWindow: core.serialization.ObjectSchema<serializers.CreditSpendWindow.Raw, Schematic.CreditSpendWindow>;
5
+ export declare namespace CreditSpendWindow {
6
+ interface Raw {
7
+ count: number;
8
+ unit: string;
9
+ }
10
+ }
@@ -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 CreditSpendWindowUnit: core.serialization.Schema<serializers.CreditSpendWindowUnit.Raw, Schematic.CreditSpendWindowUnit>;
5
+ export declare namespace CreditSpendWindowUnit {
6
+ type Raw = "hour" | "day" | "billing_period";
7
+ }
@@ -9,6 +9,7 @@ export declare namespace CustomPlanBillingResponseData {
9
9
  interface Raw {
10
10
  activation_strategy: CustomPlanActivationStrategy.Raw;
11
11
  billing_cycle_anchor?: string | null;
12
+ billing_start_date?: string | null;
12
13
  company_id: string;
13
14
  created_at: string;
14
15
  days_until_due: number;
@@ -11,6 +11,7 @@ export declare namespace EnvironmentDetailResponseData {
11
11
  environment_type: EnvironmentType.Raw;
12
12
  id: string;
13
13
  name: string;
14
+ require_context_signature: boolean;
14
15
  updated_at: string;
15
16
  }
16
17
  }
@@ -9,6 +9,7 @@ export declare namespace EnvironmentResponseData {
9
9
  environment_type: EnvironmentType.Raw;
10
10
  id: string;
11
11
  name: string;
12
+ require_context_signature: boolean;
12
13
  updated_at: string;
13
14
  }
14
15
  }
@@ -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 { PlanPriceCadence } from "./PlanPriceCadence";
5
+ export declare const EstimatedPlanTotal: core.serialization.ObjectSchema<serializers.EstimatedPlanTotal.Raw, Schematic.EstimatedPlanTotal>;
6
+ export declare namespace EstimatedPlanTotal {
7
+ interface Raw {
8
+ amount: number;
9
+ currency: string;
10
+ period: PlanPriceCadence.Raw;
11
+ }
12
+ }
@@ -18,6 +18,7 @@ export declare namespace InvoiceRequestBody {
18
18
  status?: InvoiceStatus.Raw | null;
19
19
  subscription_external_id?: string | null;
20
20
  subtotal: number;
21
+ total?: number | null;
21
22
  url?: string | null;
22
23
  }
23
24
  }
@@ -25,6 +25,7 @@ export declare namespace InvoiceResponseData {
25
25
  status?: InvoiceStatus.Raw | null;
26
26
  subscription_external_id?: string | null;
27
27
  subtotal: number;
28
+ total?: number | null;
28
29
  updated_at: string;
29
30
  url?: string | null;
30
31
  }
@@ -22,6 +22,7 @@ export declare namespace ManagePlanRequest {
22
22
  company_id: string;
23
23
  coupon_external_id?: string | null;
24
24
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
25
+ currency?: string | null;
25
26
  custom_field_values: CheckoutFieldValue.Raw[];
26
27
  days_until_due?: number | null;
27
28
  pay_in_advance_entitlements: UpdatePayInAdvanceRequestBody.Raw[];