@schematichq/schematic-typescript-node 1.5.5 → 1.5.7
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 +3 -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/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +4 -0
- package/dist/api/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -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/billing/client/Client.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -0
- package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
- package/dist/api/resources/catalogs/client/Client.d.ts +0 -1
- package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -2
- package/dist/api/resources/checkout/client/Client.d.ts +35 -0
- package/dist/api/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +17 -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/entitlements/client/Client.d.ts +38 -0
- package/dist/api/resources/entitlements/client/requests/GetUserUsageByCompanyRequest.d.ts +19 -0
- package/dist/api/resources/entitlements/client/requests/GetUserUsageDetailRequest.d.ts +19 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +2 -0
- package/dist/api/resources/entitlements/types/GetUserUsageByCompanyParams.d.ts +13 -0
- package/dist/api/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/GetUserUsageDetailParams.d.ts +13 -0
- package/dist/api/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/index.d.ts +4 -0
- package/dist/api/resources/index.d.ts +3 -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/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/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +4 -0
- package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
- package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
- package/dist/api/types/CatalogResponseData.d.ts +0 -1
- 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 +9 -0
- package/dist/api/types/CompanyBillingDetailsView.d.ts +9 -0
- package/dist/api/types/CompanyPlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -2
- package/dist/api/types/CompanyTaxIdView.d.ts +7 -0
- package/dist/api/types/ComponentCheckoutSettings.d.ts +2 -0
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +4 -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/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/api/types/CustomerBillingAddress.d.ts +8 -0
- package/dist/api/types/FeatureDetailResponseData.d.ts +6 -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/PlanCreditGrantScaling.d.ts +5 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +2 -2
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -2
- 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 +2 -2
- package/dist/api/types/TaxIdInput.d.ts +5 -0
- package/dist/api/types/TaxIdType.d.ts +41 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +4 -0
- package/dist/api/types/UserCreditUsageResponseData.d.ts +14 -0
- package/dist/api/types/UserDailyCreditPointResponseData.d.ts +6 -0
- package/dist/api/types/UserDailyUsagePointResponseData.d.ts +8 -0
- package/dist/api/types/UserFeatureUsageResponseData.d.ts +14 -0
- package/dist/api/types/UserUsageByCompanyResponseData.d.ts +11 -0
- package/dist/api/types/UserUsageDetailResponseData.d.ts +16 -0
- package/dist/api/types/WebhookRequestType.d.ts +2 -0
- package/dist/api/types/index.d.ts +22 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -0
- 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/billing/types/ListBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
- package/dist/serialization/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -1
- package/dist/serialization/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +16 -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/entitlements/types/GetUserUsageByCompanyParams.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetUserUsageDetailParams.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/dist/serialization/resources/index.d.ts +2 -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/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/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +8 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
- package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
- package/dist/serialization/types/CatalogResponseData.d.ts +0 -1
- 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 +18 -0
- package/dist/serialization/types/CompanyBillingDetailsView.d.ts +18 -0
- package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +3 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/CompanyTaxIdView.d.ts +13 -0
- package/dist/serialization/types/ComponentCheckoutSettings.d.ts +2 -0
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -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/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/CustomerBillingAddress.d.ts +14 -0
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +4 -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/PlanCreditGrantScaling.d.ts +7 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +3 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +1 -1
- 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 +1 -1
- package/dist/serialization/types/TaxIdInput.d.ts +11 -0
- package/dist/serialization/types/TaxIdType.d.ts +7 -0
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/serialization/types/UserCreditUsageResponseData.d.ts +15 -0
- package/dist/serialization/types/UserDailyCreditPointResponseData.d.ts +10 -0
- package/dist/serialization/types/UserDailyUsagePointResponseData.d.ts +12 -0
- package/dist/serialization/types/UserFeatureUsageResponseData.d.ts +16 -0
- package/dist/serialization/types/UserUsageByCompanyResponseData.d.ts +14 -0
- package/dist/serialization/types/UserUsageDetailResponseData.d.ts +20 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/index.d.ts +22 -0
- package/dist/wasm/rulesengine.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface UserUsageDetailResponseData {
|
|
3
|
+
/** The user's net credit consumption within the window */
|
|
4
|
+
credits: Schematic.UserCreditUsageResponseData[];
|
|
5
|
+
/** The user's net credit consumption by UTC day */
|
|
6
|
+
dailyCreditPoints: Schematic.UserDailyCreditPointResponseData[];
|
|
7
|
+
/** The user's per-feature usage by UTC day */
|
|
8
|
+
dailyPoints: Schematic.UserDailyUsagePointResponseData[];
|
|
9
|
+
/** End of the usage window (exclusive) */
|
|
10
|
+
endTime: Date;
|
|
11
|
+
/** The user's per-feature usage totals within the window */
|
|
12
|
+
featureTotals: Schematic.UserFeatureUsageResponseData[];
|
|
13
|
+
/** Start of the usage window */
|
|
14
|
+
startTime: Date;
|
|
15
|
+
user?: Schematic.UserResponseData;
|
|
16
|
+
}
|
|
@@ -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];
|
|
@@ -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";
|
|
@@ -106,6 +110,7 @@ export * from "./CompanyPlanInvalidReason";
|
|
|
106
110
|
export * from "./CompanyPlanWithBillingSubView";
|
|
107
111
|
export * from "./CompanyResponseData";
|
|
108
112
|
export * from "./CompanySubscriptionResponseData";
|
|
113
|
+
export * from "./CompanyTaxIdView";
|
|
109
114
|
export * from "./ComparableOperator";
|
|
110
115
|
export * from "./CompatiblePlans";
|
|
111
116
|
export * from "./CompatiblePlansResponseData";
|
|
@@ -159,6 +164,10 @@ export * from "./CreditsAutoTopupCompanySummary";
|
|
|
159
164
|
export * from "./CreditsAutoTopupCreditSummary";
|
|
160
165
|
export * from "./CreditsAutoTopupHardFailure";
|
|
161
166
|
export * from "./CreditsAutoTopupRetryFailure";
|
|
167
|
+
export * from "./CreditsAutoTopupSuccess";
|
|
168
|
+
export * from "./CreditsCreditPurchaseSuccess";
|
|
169
|
+
export * from "./CreditsWebhookCompanySummary";
|
|
170
|
+
export * from "./CreditsWebhookCreditSummary";
|
|
162
171
|
export * from "./CreditTransferResponseData";
|
|
163
172
|
export * from "./CreditTransferView";
|
|
164
173
|
export * from "./CreditTriggerConfig";
|
|
@@ -166,6 +175,7 @@ export * from "./CreditUsage";
|
|
|
166
175
|
export * from "./CreditUsageAggregation";
|
|
167
176
|
export * from "./CreditUsageReason";
|
|
168
177
|
export * from "./CurrencyPriceRequestBody";
|
|
178
|
+
export * from "./CustomerBillingAddress";
|
|
169
179
|
export * from "./CustomPlanActivationStrategy";
|
|
170
180
|
export * from "./CustomPlanBillingResponseData";
|
|
171
181
|
export * from "./CustomPlanBillingStatus";
|
|
@@ -250,6 +260,7 @@ export * from "./InvoiceResponseData";
|
|
|
250
260
|
export * from "./InvoiceStatus";
|
|
251
261
|
export * from "./IssueTemporaryAccessTokenResponseData";
|
|
252
262
|
export * from "./KeysRequestBody";
|
|
263
|
+
export * from "./LicenseResponseData";
|
|
253
264
|
export * from "./LimitTimeSeriesPointResponseData";
|
|
254
265
|
export * from "./ManagePlanPreviewResponseResponseData";
|
|
255
266
|
export * from "./ManagePlanRequest";
|
|
@@ -274,6 +285,7 @@ export * from "./PlanChangeAction";
|
|
|
274
285
|
export * from "./PlanChangeBasePlanAction";
|
|
275
286
|
export * from "./PlanChangeResponseData";
|
|
276
287
|
export * from "./PlanChangeSubscriptionAction";
|
|
288
|
+
export * from "./PlanCreditGrantScaling";
|
|
277
289
|
export * from "./PlanCreditGrantView";
|
|
278
290
|
export * from "./PlanCurrencyPriceRequestBody";
|
|
279
291
|
export * from "./PlanCurrencyPricesResponseData";
|
|
@@ -297,6 +309,8 @@ export * from "./PlanTraitResponseData";
|
|
|
297
309
|
export * from "./PlanType";
|
|
298
310
|
export * from "./PlanVersionCompanyMigrationResponseData";
|
|
299
311
|
export * from "./PlanVersionCompanyMigrationStatus";
|
|
312
|
+
export * from "./PlanVersionMigrationPreviewCompanyResponseData";
|
|
313
|
+
export * from "./PlanVersionMigrationPreviewResponseData";
|
|
300
314
|
export * from "./PlanVersionMigrationResponseData";
|
|
301
315
|
export * from "./PlanVersionMigrationStatus";
|
|
302
316
|
export * from "./PlanVersionMigrationStrategy";
|
|
@@ -360,6 +374,8 @@ export * from "./StripeIntegrationConfig";
|
|
|
360
374
|
export * from "./SubscriptionStatus";
|
|
361
375
|
export * from "./SubscriptionTraitUpdate";
|
|
362
376
|
export * from "./SubscriptionType";
|
|
377
|
+
export * from "./TaxIdInput";
|
|
378
|
+
export * from "./TaxIdType";
|
|
363
379
|
export * from "./TemporaryAccessTokenResourceType";
|
|
364
380
|
export * from "./TemporaryAccessTokenResponseData";
|
|
365
381
|
export * from "./TestWebhookResponseData";
|
|
@@ -387,8 +403,14 @@ export * from "./UpsertUserSubRequestBody";
|
|
|
387
403
|
export * from "./UsageBasedEntitlementRequestBody";
|
|
388
404
|
export * from "./UsageBasedEntitlementResponseData";
|
|
389
405
|
export * from "./UsageTimeSeriesPointResponseData";
|
|
406
|
+
export * from "./UserCreditUsageResponseData";
|
|
407
|
+
export * from "./UserDailyCreditPointResponseData";
|
|
408
|
+
export * from "./UserDailyUsagePointResponseData";
|
|
390
409
|
export * from "./UserDetailResponseData";
|
|
410
|
+
export * from "./UserFeatureUsageResponseData";
|
|
391
411
|
export * from "./UserResponseData";
|
|
412
|
+
export * from "./UserUsageByCompanyResponseData";
|
|
413
|
+
export * from "./UserUsageDetailResponseData";
|
|
392
414
|
export * from "./WarningTier";
|
|
393
415
|
export * from "./WarningTierRequestBody";
|
|
394
416
|
export * from "./WarningTierResponseData";
|