@schematichq/schematic-typescript-node 1.5.4 → 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.
- package/dist/Client.d.ts +6 -0
- package/dist/api/resources/accounts/client/Client.d.ts +2 -0
- package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +4 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +4 -0
- package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +3 -0
- package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +3 -0
- package/dist/api/resources/catalogs/client/Client.d.ts +232 -0
- package/dist/api/resources/catalogs/client/index.d.ts +1 -0
- package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +12 -0
- package/dist/api/resources/catalogs/client/requests/ListCatalogsRequest.d.ts +18 -0
- package/dist/api/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +16 -0
- package/dist/api/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +9 -0
- package/dist/api/resources/catalogs/client/requests/index.d.ts +4 -0
- package/dist/api/resources/catalogs/exports.d.ts +2 -0
- package/dist/api/resources/catalogs/index.d.ts +2 -0
- package/dist/api/resources/catalogs/types/CreateCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/DeleteCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetConfigurationResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
- package/dist/api/resources/catalogs/types/ListCatalogsResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/UpdateCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/UpdateConfigurationResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/index.d.ts +11 -0
- package/dist/api/resources/checkout/client/Client.d.ts +35 -0
- package/dist/api/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +16 -0
- package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/api/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +6 -0
- package/dist/api/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +6 -0
- package/dist/api/resources/checkout/types/index.d.ts +2 -0
- package/dist/api/resources/components/client/Client.d.ts +16 -0
- package/dist/api/resources/components/client/requests/BindCatalogRequestBody.d.ts +7 -0
- package/dist/api/resources/components/client/requests/index.d.ts +1 -0
- package/dist/api/resources/components/types/BindCatalogResponse.d.ts +6 -0
- package/dist/api/resources/components/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/Client.d.ts +36 -1
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +6 -2
- package/dist/api/resources/dataexports/client/requests/ListDataExportsRequest.d.ts +18 -0
- package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dataexports/types/GetDataExportResponse.d.ts +6 -0
- package/dist/api/resources/dataexports/types/ListDataExportsParams.d.ts +12 -0
- package/dist/api/resources/dataexports/types/ListDataExportsResponse.d.ts +6 -0
- package/dist/api/resources/dataexports/types/index.d.ts +3 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/licenses/client/Client.d.ts +69 -0
- package/dist/api/resources/licenses/client/index.d.ts +1 -0
- package/dist/api/resources/licenses/client/requests/CountLicensesRequest.d.ts +19 -0
- package/dist/api/resources/licenses/client/requests/ListLicensesRequest.d.ts +19 -0
- package/dist/api/resources/licenses/client/requests/index.d.ts +2 -0
- package/dist/api/resources/licenses/exports.d.ts +2 -0
- package/dist/api/resources/licenses/index.d.ts +2 -0
- package/dist/api/resources/licenses/types/CountLicensesParams.d.ts +12 -0
- package/dist/api/resources/licenses/types/CountLicensesResponse.d.ts +6 -0
- package/dist/api/resources/licenses/types/GetSingleLicenseResponse.d.ts +6 -0
- package/dist/api/resources/licenses/types/ListLicensesParams.d.ts +12 -0
- package/dist/api/resources/licenses/types/ListLicensesResponse.d.ts +6 -0
- package/dist/api/resources/licenses/types/index.d.ts +5 -0
- package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +1 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +16 -0
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/types/PreviewMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +1 -0
- package/dist/api/types/AuditLogExportMetadata.d.ts +12 -0
- package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
- package/dist/api/types/CatalogConfigOrderedBundle.d.ts +3 -0
- package/dist/api/types/CatalogConfigOrderedBundleResponseData.d.ts +3 -0
- package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +4 -0
- package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +4 -0
- package/dist/api/types/CatalogConfigOrderedPlan.d.ts +5 -0
- package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +5 -0
- package/dist/api/types/CatalogConfigurationResponseData.d.ts +14 -0
- package/dist/api/types/CatalogCreditBundleIDsResponseData.d.ts +3 -0
- package/dist/api/types/CatalogDerivedFeatureResponseData.d.ts +5 -0
- package/dist/api/types/CatalogDerivedFeaturesResponseData.d.ts +4 -0
- package/dist/api/types/CatalogPlanIDsResponseData.d.ts +3 -0
- package/dist/api/types/CatalogResponseData.d.ts +16 -0
- package/dist/api/types/CompanyBillingAddressView.d.ts +8 -0
- package/dist/api/types/CompanyBillingCheckoutSettings.d.ts +5 -0
- package/dist/api/types/CompanyBillingDetailsResponseData.d.ts +8 -0
- package/dist/api/types/CompanyBillingDetailsView.d.ts +8 -0
- package/dist/api/types/CompanyFeatureUsageExportMetadata.d.ts +36 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/ComponentResponseData.d.ts +1 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
- package/dist/api/types/CreditsAutoTopupSuccess.d.ts +7 -0
- package/dist/api/types/CreditsCreditPurchaseSuccess.d.ts +9 -0
- package/dist/api/types/CreditsWebhookCompanySummary.d.ts +4 -0
- package/dist/api/types/CreditsWebhookCreditSummary.d.ts +4 -0
- package/dist/api/types/CustomerBillingAddress.d.ts +8 -0
- package/dist/api/types/DataExportMetadata.d.ts +10 -0
- package/dist/api/types/DataExportOutputFileType.d.ts +5 -1
- package/dist/api/types/DataExportResponseData.d.ts +1 -1
- package/dist/api/types/DataExportType.d.ts +5 -1
- package/dist/api/types/FeatureDetailResponseData.d.ts +6 -0
- package/dist/api/types/FeatureEntitlement.d.ts +2 -0
- package/dist/api/types/FeatureInPlanResponseData.d.ts +4 -0
- package/dist/api/types/FeatureResponseData.d.ts +4 -0
- package/dist/api/types/FeatureType.d.ts +1 -0
- package/dist/api/types/FeatureView.d.ts +2 -0
- package/dist/api/types/LicenseResponseData.d.ts +6 -0
- package/dist/api/types/PlanCatalogMembershipResponseData.d.ts +4 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +8 -0
- package/dist/api/types/PlanVersionMigrationPreviewResponseData.d.ts +4 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
- package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +13 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
- package/dist/api/types/RulesengineWarningTier.d.ts +6 -0
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +4 -0
- package/dist/api/types/WarningTier.d.ts +6 -0
- package/dist/api/types/WebhookRequestType.d.ts +2 -0
- package/dist/api/types/index.d.ts +31 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +2 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +2 -0
- package/dist/serialization/resources/catalogs/client/index.d.ts +1 -0
- package/dist/serialization/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +11 -0
- package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +19 -0
- package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +11 -0
- package/dist/serialization/resources/catalogs/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/catalogs/index.d.ts +2 -0
- package/dist/serialization/resources/catalogs/types/CreateCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/DeleteCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetConfigurationResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
- package/dist/serialization/resources/catalogs/types/ListCatalogsResponse.d.ts +12 -0
- package/dist/serialization/resources/catalogs/types/UpdateCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/UpdateConfigurationResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/index.d.ts +11 -0
- package/dist/serialization/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +14 -0
- package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +11 -0
- package/dist/serialization/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +11 -0
- package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
- package/dist/serialization/resources/components/client/requests/BindCatalogRequestBody.d.ts +9 -0
- package/dist/serialization/resources/components/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/components/types/BindCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/components/types/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +6 -1
- package/dist/serialization/resources/dataexports/types/GetDataExportResponse.d.ts +11 -0
- package/dist/serialization/resources/dataexports/types/ListDataExportsParams.d.ts +14 -0
- package/dist/serialization/resources/dataexports/types/ListDataExportsResponse.d.ts +12 -0
- package/dist/serialization/resources/dataexports/types/index.d.ts +3 -0
- package/dist/serialization/resources/index.d.ts +5 -0
- package/dist/serialization/resources/licenses/index.d.ts +1 -0
- package/dist/serialization/resources/licenses/types/CountLicensesParams.d.ts +13 -0
- package/dist/serialization/resources/licenses/types/CountLicensesResponse.d.ts +12 -0
- package/dist/serialization/resources/licenses/types/GetSingleLicenseResponse.d.ts +11 -0
- package/dist/serialization/resources/licenses/types/ListLicensesParams.d.ts +13 -0
- package/dist/serialization/resources/licenses/types/ListLicensesResponse.d.ts +12 -0
- package/dist/serialization/resources/licenses/types/index.d.ts +5 -0
- package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +2 -0
- package/dist/serialization/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/PreviewMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +1 -0
- package/dist/serialization/types/AuditLogExportMetadata.d.ts +13 -0
- package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
- package/dist/serialization/types/CatalogConfigOrderedBundle.d.ts +9 -0
- package/dist/serialization/types/CatalogConfigOrderedBundleResponseData.d.ts +9 -0
- package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +10 -0
- package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +10 -0
- package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +11 -0
- package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +11 -0
- package/dist/serialization/types/CatalogConfigurationResponseData.d.ts +22 -0
- package/dist/serialization/types/CatalogCreditBundleIDsResponseData.d.ts +9 -0
- package/dist/serialization/types/CatalogDerivedFeatureResponseData.d.ts +11 -0
- package/dist/serialization/types/CatalogDerivedFeaturesResponseData.d.ts +10 -0
- package/dist/serialization/types/CatalogPlanIDsResponseData.d.ts +9 -0
- package/dist/serialization/types/CatalogResponseData.d.ts +22 -0
- package/dist/serialization/types/CompanyBillingAddressView.d.ts +14 -0
- package/dist/serialization/types/CompanyBillingCheckoutSettings.d.ts +11 -0
- package/dist/serialization/types/CompanyBillingDetailsResponseData.d.ts +16 -0
- package/dist/serialization/types/CompanyBillingDetailsView.d.ts +16 -0
- package/dist/serialization/types/CompanyFeatureUsageExportMetadata.d.ts +25 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentResponseData.d.ts +1 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreditsAutoTopupSuccess.d.ts +14 -0
- package/dist/serialization/types/CreditsCreditPurchaseSuccess.d.ts +16 -0
- package/dist/serialization/types/CreditsWebhookCompanySummary.d.ts +10 -0
- package/dist/serialization/types/CreditsWebhookCreditSummary.d.ts +10 -0
- package/dist/serialization/types/CustomerBillingAddress.d.ts +14 -0
- package/dist/serialization/types/DataExportMetadata.d.ts +15 -0
- package/dist/serialization/types/DataExportOutputFileType.d.ts +1 -1
- package/dist/serialization/types/DataExportResponseData.d.ts +2 -1
- package/dist/serialization/types/DataExportType.d.ts +1 -1
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/FeatureEntitlement.d.ts +2 -0
- package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureType.d.ts +1 -1
- package/dist/serialization/types/FeatureView.d.ts +3 -0
- package/dist/serialization/types/LicenseResponseData.d.ts +12 -0
- package/dist/serialization/types/PlanCatalogMembershipResponseData.d.ts +10 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanVersionMigrationPreviewResponseData.d.ts +10 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
- package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +19 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +2 -0
- package/dist/serialization/types/RulesengineWarningTier.d.ts +10 -0
- package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +2 -0
- package/dist/serialization/types/WarningTier.d.ts +10 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/index.d.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface CompanyFeatureUsageExportMetadata {
|
|
2
|
+
/** Restrict the export to these Schematic company IDs (starting with 'comp_') */
|
|
3
|
+
companyIds?: string[];
|
|
4
|
+
/** Restrict the export to companies with these billing credit type IDs */
|
|
5
|
+
creditTypeIds?: string[];
|
|
6
|
+
/** Schematic feature IDs (starting with 'feat_') to include as usage columns; at least one is required */
|
|
7
|
+
featureIds: string[];
|
|
8
|
+
/** Restrict the export to companies that do (or do not) have a scheduled downgrade */
|
|
9
|
+
hasScheduledDowngrade?: boolean;
|
|
10
|
+
/** Restrict the export to companies with (or without) a monetized subscription */
|
|
11
|
+
monetizedSubscriptions?: boolean;
|
|
12
|
+
/** Account member emails to notify when the export completes; empty means the artifact is only retrievable via the API */
|
|
13
|
+
notificationEmailRecipientEmailAddresses?: string[];
|
|
14
|
+
/** Restrict the export to companies on this plan ID (starting with 'plan_') */
|
|
15
|
+
planId?: string;
|
|
16
|
+
/** Restrict the export to companies on any of these plan IDs */
|
|
17
|
+
planIds?: string[];
|
|
18
|
+
/** Restrict the export to companies on this plan version ID */
|
|
19
|
+
planVersionId?: string;
|
|
20
|
+
/** Free-text search over company name and keys */
|
|
21
|
+
q?: string;
|
|
22
|
+
/** Restrict the export to companies whose subscription has one of these statuses */
|
|
23
|
+
subscriptionStatuses?: string[];
|
|
24
|
+
/** Restrict the export to companies whose subscription has one of these types */
|
|
25
|
+
subscriptionTypes?: string[];
|
|
26
|
+
/** Restrict the export to companies that have an entitlement for this feature ID */
|
|
27
|
+
withEntitlementFor?: string;
|
|
28
|
+
/** Restrict the export to companies with a subscription */
|
|
29
|
+
withSubscription?: boolean;
|
|
30
|
+
/** Restrict the export to companies without a company-level override for this feature ID */
|
|
31
|
+
withoutFeatureOverrideFor?: string;
|
|
32
|
+
/** Restrict the export to companies without a plan */
|
|
33
|
+
withoutPlan?: boolean;
|
|
34
|
+
/** Restrict the export to companies without a subscription */
|
|
35
|
+
withoutSubscription?: boolean;
|
|
36
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface CompanyPlanDetailResponseData {
|
|
|
6
6
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
7
7
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
8
8
|
billingStrategy: Schematic.BillingStrategy;
|
|
9
|
+
catalogs?: Schematic.PlanCatalogMembershipResponseData[];
|
|
9
10
|
chargeType: Schematic.ChargeType;
|
|
10
11
|
companyCanTrial: boolean;
|
|
11
12
|
companyCount: number;
|
|
@@ -31,6 +31,7 @@ export interface CreateEntitlementInBundleRequestBody {
|
|
|
31
31
|
valueNumeric?: number;
|
|
32
32
|
valueTraitId?: string;
|
|
33
33
|
valueType: Schematic.EntitlementValueType;
|
|
34
|
+
warningTiers?: Schematic.WarningTierRequestBody[];
|
|
34
35
|
yearlyMeteredPriceId?: string;
|
|
35
36
|
yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
36
37
|
yearlyUnitPrice?: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CreditsCreditPurchaseSuccess {
|
|
3
|
+
bundleId: string;
|
|
4
|
+
bundleName: string;
|
|
5
|
+
company?: Schematic.CreditsWebhookCompanySummary;
|
|
6
|
+
credit?: Schematic.CreditsWebhookCreditSummary;
|
|
7
|
+
grantIds: string[];
|
|
8
|
+
quantity: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export type DataExportMetadata = Schematic.DataExportMetadata.AuditLog | Schematic.DataExportMetadata.CompanyFeatureUsage;
|
|
3
|
+
export declare namespace DataExportMetadata {
|
|
4
|
+
interface AuditLog extends Schematic.AuditLogExportMetadata {
|
|
5
|
+
exportType: "audit-log";
|
|
6
|
+
}
|
|
7
|
+
interface CompanyFeatureUsage extends Schematic.CompanyFeatureUsageExportMetadata {
|
|
8
|
+
exportType: "company-feature-usage";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -5,7 +5,7 @@ export interface DataExportResponseData {
|
|
|
5
5
|
environmentId: string;
|
|
6
6
|
exportType: Schematic.DataExportType;
|
|
7
7
|
id: string;
|
|
8
|
-
metadata
|
|
8
|
+
metadata?: Schematic.DataExportMetadata;
|
|
9
9
|
outputFileType: Schematic.DataExportOutputFileType;
|
|
10
10
|
status: Schematic.DataExportStatus;
|
|
11
11
|
updatedAt: Date;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const DataExportType: {
|
|
2
|
+
readonly AuditLog: "audit-log";
|
|
3
|
+
readonly CompanyFeatureUsage: "company-feature-usage";
|
|
4
|
+
};
|
|
5
|
+
export type DataExportType = (typeof DataExportType)[keyof typeof DataExportType];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface FeatureDetailResponseData {
|
|
3
3
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
4
|
+
/** The billing provider product that sells this feature in the current environment. Set for license features once they have been priced in a plan; a feature priced in several environments has a different product in each. */
|
|
5
|
+
billingProduct?: Schematic.BillingProductResponseData;
|
|
4
6
|
createdAt: Date;
|
|
5
7
|
description: string;
|
|
6
8
|
eventSubtype?: string;
|
|
@@ -9,6 +11,8 @@ export interface FeatureDetailResponseData {
|
|
|
9
11
|
flags: Schematic.FlagDetailResponseData[];
|
|
10
12
|
icon: string;
|
|
11
13
|
id: string;
|
|
14
|
+
/** The license sold through this feature. Set only on features of type license, and created automatically with them. */
|
|
15
|
+
licenseId?: string;
|
|
12
16
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
13
17
|
maintainer?: Schematic.AccountMemberResponseData;
|
|
14
18
|
maintainerAccountMemberId?: string;
|
|
@@ -19,4 +23,6 @@ export interface FeatureDetailResponseData {
|
|
|
19
23
|
trait?: Schematic.EntityTraitDefinitionResponseData;
|
|
20
24
|
traitId?: string;
|
|
21
25
|
updatedAt: Date;
|
|
26
|
+
/** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
|
|
27
|
+
usageLimitTraitId?: string;
|
|
22
28
|
}
|
|
@@ -36,4 +36,6 @@ export interface FeatureEntitlement {
|
|
|
36
36
|
usage?: number;
|
|
37
37
|
/** The type of the entitlement value */
|
|
38
38
|
valueType: Schematic.EntitlementValueType;
|
|
39
|
+
/** Customer-defined usage warning thresholds configured on this entitlement */
|
|
40
|
+
warningTiers?: Schematic.WarningTier[];
|
|
39
41
|
}
|
|
@@ -9,6 +9,8 @@ export interface FeatureInPlanResponseData {
|
|
|
9
9
|
flags: Schematic.FlagInPlanResponseData[];
|
|
10
10
|
icon: string;
|
|
11
11
|
id: string;
|
|
12
|
+
/** The license sold through this feature. Set only on features of type license, and created automatically with them. */
|
|
13
|
+
licenseId?: string;
|
|
12
14
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
13
15
|
maintainerAccountMemberId?: string;
|
|
14
16
|
name: string;
|
|
@@ -18,4 +20,6 @@ export interface FeatureInPlanResponseData {
|
|
|
18
20
|
trait?: Schematic.EntityTraitDefinitionResponseData;
|
|
19
21
|
traitId?: string;
|
|
20
22
|
updatedAt: Date;
|
|
23
|
+
/** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
|
|
24
|
+
usageLimitTraitId?: string;
|
|
21
25
|
}
|
|
@@ -6,6 +6,8 @@ export interface FeatureResponseData {
|
|
|
6
6
|
featureType: Schematic.FeatureType;
|
|
7
7
|
icon: string;
|
|
8
8
|
id: string;
|
|
9
|
+
/** The license sold through this feature. Set only on features of type license, and created automatically with them. */
|
|
10
|
+
licenseId?: string;
|
|
9
11
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
10
12
|
maintainerAccountMemberId?: string;
|
|
11
13
|
name: string;
|
|
@@ -13,4 +15,6 @@ export interface FeatureResponseData {
|
|
|
13
15
|
singularName?: string;
|
|
14
16
|
traitId?: string;
|
|
15
17
|
updatedAt: Date;
|
|
18
|
+
/** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
|
|
19
|
+
usageLimitTraitId?: string;
|
|
16
20
|
}
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface FeatureView {
|
|
3
3
|
accountId: string;
|
|
4
4
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
5
|
+
billingProduct?: Schematic.BillingProductResponseData;
|
|
5
6
|
createdAt: Date;
|
|
6
7
|
description: string;
|
|
7
8
|
eventSubtype?: string;
|
|
@@ -10,6 +11,7 @@ export interface FeatureView {
|
|
|
10
11
|
flags: Schematic.FlagView[];
|
|
11
12
|
icon: string;
|
|
12
13
|
id: string;
|
|
14
|
+
licenseId?: string;
|
|
13
15
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
14
16
|
name: string;
|
|
15
17
|
plans: Schematic.PreviewObject[];
|
|
@@ -5,6 +5,7 @@ export interface PlanDetailResponseData {
|
|
|
5
5
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
6
6
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
7
7
|
billingStrategy: Schematic.BillingStrategy;
|
|
8
|
+
catalogs?: Schematic.PlanCatalogMembershipResponseData[];
|
|
8
9
|
chargeType: Schematic.ChargeType;
|
|
9
10
|
companyCount: number;
|
|
10
11
|
companyId?: string;
|
|
@@ -6,6 +6,7 @@ export interface PlanGroupPlanDetailResponseData {
|
|
|
6
6
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
7
7
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
8
8
|
billingStrategy: Schematic.BillingStrategy;
|
|
9
|
+
catalogs?: Schematic.PlanCatalogMembershipResponseData[];
|
|
9
10
|
chargeType: Schematic.ChargeType;
|
|
10
11
|
companyCount: number;
|
|
11
12
|
companyId?: string;
|
|
@@ -6,6 +6,7 @@ export interface PlanViewPublicResponseData {
|
|
|
6
6
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
7
7
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
8
8
|
billingStrategy: Schematic.BillingStrategy;
|
|
9
|
+
catalogs?: Schematic.PlanCatalogMembershipResponseData[];
|
|
9
10
|
chargeType: Schematic.ChargeType;
|
|
10
11
|
companyCount: number;
|
|
11
12
|
companyId?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PreviewSubscriptionDiscountResponseData {
|
|
2
|
+
amountOff?: number;
|
|
3
|
+
couponName: string;
|
|
4
|
+
currency?: string;
|
|
5
|
+
customerFacingCode?: string;
|
|
6
|
+
duration: string;
|
|
7
|
+
durationInMonths?: number;
|
|
8
|
+
endedAt?: Date;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
percentOff?: number;
|
|
11
|
+
promoCodeExternalId?: string;
|
|
12
|
+
startedAt: Date;
|
|
13
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface PreviewSubscriptionFinanceResponseData {
|
|
3
3
|
amountOff: number;
|
|
4
|
+
discounts: Schematic.PreviewSubscriptionDiscountResponseData[];
|
|
4
5
|
dueNow: number;
|
|
5
6
|
newCharges: number;
|
|
6
7
|
percentOff: number;
|
|
8
|
+
periodEnd: Date;
|
|
7
9
|
periodStart: Date;
|
|
8
10
|
promoCodeApplied: boolean;
|
|
9
11
|
proration: number;
|
|
@@ -36,4 +36,6 @@ export interface RulesengineFeatureEntitlement {
|
|
|
36
36
|
usage?: number;
|
|
37
37
|
/** The type of the entitlement value */
|
|
38
38
|
valueType: Schematic.RulesengineEntitlementValueType;
|
|
39
|
+
/** Customer-defined usage warning thresholds configured on this entitlement */
|
|
40
|
+
warningTiers?: Schematic.RulesengineWarningTier[];
|
|
39
41
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface UpsertCompanyRequestBody {
|
|
2
|
+
/** Assign this base plan when creating the company (starts with plan_). Takes precedence over the environment's initial plan and must be provisionable without a payment method. */
|
|
3
|
+
basePlanId?: string;
|
|
4
|
+
/** The Schematic price to provision for base_plan_id (starts with bilpp_). Required and must be $0 for a billing-linked plan; omit for a plan that is not billing-linked. */
|
|
5
|
+
basePlanPriceId?: string;
|
|
2
6
|
/** If you know the Schematic ID, you can use that here instead of keys */
|
|
3
7
|
id?: string;
|
|
4
8
|
/** See [Key Management](https://docs.schematichq.com/developer_resources/key_management) for more information */
|
|
@@ -11,6 +11,7 @@ export declare const WebhookRequestType: {
|
|
|
11
11
|
readonly CompanyUpdated: "company.updated";
|
|
12
12
|
readonly CreditLimitReached: "credit.limit.reached";
|
|
13
13
|
readonly CreditLimitWarning: "credit.limit.warning";
|
|
14
|
+
readonly CreditPurchaseSuccess: "credit.purchase.success";
|
|
14
15
|
readonly EntitlementLimitReached: "entitlement.limit.reached";
|
|
15
16
|
readonly EntitlementLimitWarning: "entitlement.limit.warning";
|
|
16
17
|
readonly EntitlementSoftLimitReached: "entitlement.soft_limit.reached";
|
|
@@ -38,5 +39,6 @@ export declare const WebhookRequestType: {
|
|
|
38
39
|
readonly UserUpdated: "user.updated";
|
|
39
40
|
readonly AutoTopupHardFailure: "auto.topup.hard.failure";
|
|
40
41
|
readonly AutoTopupRetryExceeded: "auto.topup.retry.exceeded";
|
|
42
|
+
readonly AutoTopupSuccess: "auto.topup.success";
|
|
41
43
|
};
|
|
42
44
|
export type WebhookRequestType = (typeof WebhookRequestType)[keyof typeof WebhookRequestType];
|
|
@@ -9,6 +9,7 @@ export * from "./ApiKeyCreateResponseData";
|
|
|
9
9
|
export * from "./ApiKeyIntegrationResponseData";
|
|
10
10
|
export * from "./ApiKeyResponseData";
|
|
11
11
|
export * from "./ApiKeyScope";
|
|
12
|
+
export * from "./AuditLogExportMetadata";
|
|
12
13
|
export * from "./AuditLogListResponseData";
|
|
13
14
|
export * from "./AuditLogResponseData";
|
|
14
15
|
export * from "./BillingCouponResponseData";
|
|
@@ -59,6 +60,18 @@ export * from "./BillingSubscriptionView";
|
|
|
59
60
|
export * from "./BillingTiersMode";
|
|
60
61
|
export * from "./CaptureRawEvent";
|
|
61
62
|
export * from "./CaptureRawEventBatch";
|
|
63
|
+
export * from "./CatalogConfigOrderedBundle";
|
|
64
|
+
export * from "./CatalogConfigOrderedBundleResponseData";
|
|
65
|
+
export * from "./CatalogConfigOrderedEntitlement";
|
|
66
|
+
export * from "./CatalogConfigOrderedEntitlementResponseData";
|
|
67
|
+
export * from "./CatalogConfigOrderedPlan";
|
|
68
|
+
export * from "./CatalogConfigOrderedPlanResponseData";
|
|
69
|
+
export * from "./CatalogConfigurationResponseData";
|
|
70
|
+
export * from "./CatalogCreditBundleIDsResponseData";
|
|
71
|
+
export * from "./CatalogDerivedFeatureResponseData";
|
|
72
|
+
export * from "./CatalogDerivedFeaturesResponseData";
|
|
73
|
+
export * from "./CatalogPlanIDsResponseData";
|
|
74
|
+
export * from "./CatalogResponseData";
|
|
62
75
|
export * from "./ChangeSubscriptionInternalRequestBody";
|
|
63
76
|
export * from "./ChangeSubscriptionRequestBody";
|
|
64
77
|
export * from "./ChargeType";
|
|
@@ -74,12 +87,17 @@ export * from "./CheckoutFieldWithValue";
|
|
|
74
87
|
export * from "./CheckoutSettingsResponseData";
|
|
75
88
|
export * from "./CheckoutSubscription";
|
|
76
89
|
export * from "./ClerkIntegrationConfig";
|
|
90
|
+
export * from "./CompanyBillingAddressView";
|
|
91
|
+
export * from "./CompanyBillingCheckoutSettings";
|
|
92
|
+
export * from "./CompanyBillingDetailsResponseData";
|
|
93
|
+
export * from "./CompanyBillingDetailsView";
|
|
77
94
|
export * from "./CompanyBillingEntityResponseData";
|
|
78
95
|
export * from "./CompanyBillingEntitySubscriptionResponseData";
|
|
79
96
|
export * from "./CompanyCreditBalance";
|
|
80
97
|
export * from "./CompanyCreditBalanceResponseData";
|
|
81
98
|
export * from "./CompanyDetailResponseData";
|
|
82
99
|
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
100
|
+
export * from "./CompanyFeatureUsageExportMetadata";
|
|
83
101
|
export * from "./CompanyLedgerResponseData";
|
|
84
102
|
export * from "./CompanyMatchingCriteria";
|
|
85
103
|
export * from "./CompanyMembershipDetailResponseData";
|
|
@@ -145,6 +163,10 @@ export * from "./CreditsAutoTopupCompanySummary";
|
|
|
145
163
|
export * from "./CreditsAutoTopupCreditSummary";
|
|
146
164
|
export * from "./CreditsAutoTopupHardFailure";
|
|
147
165
|
export * from "./CreditsAutoTopupRetryFailure";
|
|
166
|
+
export * from "./CreditsAutoTopupSuccess";
|
|
167
|
+
export * from "./CreditsCreditPurchaseSuccess";
|
|
168
|
+
export * from "./CreditsWebhookCompanySummary";
|
|
169
|
+
export * from "./CreditsWebhookCreditSummary";
|
|
148
170
|
export * from "./CreditTransferResponseData";
|
|
149
171
|
export * from "./CreditTransferView";
|
|
150
172
|
export * from "./CreditTriggerConfig";
|
|
@@ -152,12 +174,14 @@ export * from "./CreditUsage";
|
|
|
152
174
|
export * from "./CreditUsageAggregation";
|
|
153
175
|
export * from "./CreditUsageReason";
|
|
154
176
|
export * from "./CurrencyPriceRequestBody";
|
|
177
|
+
export * from "./CustomerBillingAddress";
|
|
155
178
|
export * from "./CustomPlanActivationStrategy";
|
|
156
179
|
export * from "./CustomPlanBillingResponseData";
|
|
157
180
|
export * from "./CustomPlanBillingStatus";
|
|
158
181
|
export * from "./CustomPlanConfig";
|
|
159
182
|
export * from "./CustomPlanViewConfigResponseData";
|
|
160
183
|
export * from "./DataEventPayload";
|
|
184
|
+
export * from "./DataExportMetadata";
|
|
161
185
|
export * from "./DataExportOutputFileType";
|
|
162
186
|
export * from "./DataExportResponseData";
|
|
163
187
|
export * from "./DataExportStatus";
|
|
@@ -235,6 +259,7 @@ export * from "./InvoiceResponseData";
|
|
|
235
259
|
export * from "./InvoiceStatus";
|
|
236
260
|
export * from "./IssueTemporaryAccessTokenResponseData";
|
|
237
261
|
export * from "./KeysRequestBody";
|
|
262
|
+
export * from "./LicenseResponseData";
|
|
238
263
|
export * from "./LimitTimeSeriesPointResponseData";
|
|
239
264
|
export * from "./ManagePlanPreviewResponseResponseData";
|
|
240
265
|
export * from "./ManagePlanRequest";
|
|
@@ -254,6 +279,7 @@ export * from "./PlanBundleAction";
|
|
|
254
279
|
export * from "./PlanBundleCreditGrantRequestBody";
|
|
255
280
|
export * from "./PlanBundleEntitlementRequestBody";
|
|
256
281
|
export * from "./PlanBundleResponseData";
|
|
282
|
+
export * from "./PlanCatalogMembershipResponseData";
|
|
257
283
|
export * from "./PlanChangeAction";
|
|
258
284
|
export * from "./PlanChangeBasePlanAction";
|
|
259
285
|
export * from "./PlanChangeResponseData";
|
|
@@ -281,6 +307,8 @@ export * from "./PlanTraitResponseData";
|
|
|
281
307
|
export * from "./PlanType";
|
|
282
308
|
export * from "./PlanVersionCompanyMigrationResponseData";
|
|
283
309
|
export * from "./PlanVersionCompanyMigrationStatus";
|
|
310
|
+
export * from "./PlanVersionMigrationPreviewCompanyResponseData";
|
|
311
|
+
export * from "./PlanVersionMigrationPreviewResponseData";
|
|
284
312
|
export * from "./PlanVersionMigrationResponseData";
|
|
285
313
|
export * from "./PlanVersionMigrationStatus";
|
|
286
314
|
export * from "./PlanVersionMigrationStrategy";
|
|
@@ -291,6 +319,7 @@ export * from "./PlanViewPublicResponseData";
|
|
|
291
319
|
export * from "./PreviewObject";
|
|
292
320
|
export * from "./PreviewObjectResponseData";
|
|
293
321
|
export * from "./PreviewSubscriptionChangeResponseData";
|
|
322
|
+
export * from "./PreviewSubscriptionDiscountResponseData";
|
|
294
323
|
export * from "./PreviewSubscriptionFinanceResponseData";
|
|
295
324
|
export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
|
|
296
325
|
export * from "./ProrationBehavior";
|
|
@@ -327,6 +356,7 @@ export * from "./RulesengineTrait";
|
|
|
327
356
|
export * from "./RulesengineTraitDefinition";
|
|
328
357
|
export * from "./RulesengineTraitDefinitionComparableType";
|
|
329
358
|
export * from "./RulesengineUser";
|
|
359
|
+
export * from "./RulesengineWarningTier";
|
|
330
360
|
export * from "./RuleType";
|
|
331
361
|
export * from "./RuleView";
|
|
332
362
|
export * from "./ScheduledCheckoutResponseData";
|
|
@@ -371,6 +401,7 @@ export * from "./UsageBasedEntitlementResponseData";
|
|
|
371
401
|
export * from "./UsageTimeSeriesPointResponseData";
|
|
372
402
|
export * from "./UserDetailResponseData";
|
|
373
403
|
export * from "./UserResponseData";
|
|
404
|
+
export * from "./WarningTier";
|
|
374
405
|
export * from "./WarningTierRequestBody";
|
|
375
406
|
export * from "./WarningTierResponseData";
|
|
376
407
|
export * from "./WebFeatureUsageWebhookOutput";
|