@schematichq/schematic-typescript-node 1.6.3 → 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.
- package/README.md +18 -3
- package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/Client.d.ts +24 -4
- package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +2 -0
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +8 -4
- package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +2 -0
- package/dist/api/resources/credits/client/requests/GetCreditSpendPolicyUsageRequest.d.ts +13 -0
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +1 -0
- package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +8 -0
- package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +2 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +69 -0
- package/dist/api/resources/entitlements/client/requests/CountCompanyUserUsageRequest.d.ts +29 -0
- package/dist/api/resources/entitlements/client/requests/GetCompanyUserUsageMetricsRequest.d.ts +16 -0
- package/dist/api/resources/entitlements/client/requests/ListCompanyUserUsageRequest.d.ts +29 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +3 -0
- package/dist/api/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +20 -0
- package/dist/api/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
- package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +20 -0
- package/dist/api/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/index.d.ts +6 -0
- package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +3 -0
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -0
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
- package/dist/api/types/CaptureRawEvent.d.ts +2 -0
- package/dist/api/types/CheckFlagsResponseData.d.ts +2 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyUserUsageMetricsResponseData.d.ts +11 -0
- package/dist/api/types/CompanyUserUsageResponseData.d.ts +15 -0
- package/dist/api/types/CompanyUserUsageRowResponseData.d.ts +13 -0
- package/dist/api/types/ComponentDisplaySettings.d.ts +1 -0
- package/dist/api/types/ComponentSettingsResponseData.d.ts +1 -0
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +3 -1
- package/dist/api/types/CreditEventType.d.ts +3 -0
- package/dist/api/types/CreditLedgerEntryKind.d.ts +10 -0
- package/dist/api/types/CreditSpendPolicy.d.ts +21 -0
- package/dist/api/types/CreditSpendPolicyResponseData.d.ts +9 -0
- package/dist/api/types/CreditSpendWindow.d.ts +6 -0
- package/dist/api/types/CreditSpendWindowUnit.d.ts +6 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
- package/dist/api/types/EnvironmentDetailResponseData.d.ts +1 -0
- package/dist/api/types/EnvironmentResponseData.d.ts +1 -0
- package/dist/api/types/EstimatedPlanTotal.d.ts +6 -0
- package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCompany.d.ts +1 -0
- package/dist/api/types/RulesengineCreditSpendPolicy.d.ts +21 -0
- package/dist/api/types/RulesengineCreditSpendPolicyScope.d.ts +6 -0
- package/dist/api/types/RulesengineCreditSpendWindow.d.ts +6 -0
- package/dist/api/types/RulesengineUser.d.ts +1 -0
- package/dist/api/types/UserUsageMetric.d.ts +5 -0
- package/dist/api/types/index.d.ts +12 -0
- package/dist/datastream/datastream-client.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +4 -1
- package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
- package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +11 -0
- package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/index.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +16 -0
- package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
- package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +16 -0
- package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +6 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
- package/dist/serialization/types/CaptureRawEvent.d.ts +2 -0
- package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyUserUsageMetricsResponseData.d.ts +13 -0
- package/dist/serialization/types/CompanyUserUsageResponseData.d.ts +15 -0
- package/dist/serialization/types/CompanyUserUsageRowResponseData.d.ts +14 -0
- package/dist/serialization/types/ComponentDisplaySettings.d.ts +1 -0
- package/dist/serialization/types/ComponentSettingsResponseData.d.ts +1 -0
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +4 -1
- package/dist/serialization/types/CreditEventType.d.ts +1 -1
- package/dist/serialization/types/CreditLedgerEntryKind.d.ts +7 -0
- package/dist/serialization/types/CreditSpendPolicy.d.ts +19 -0
- package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +7 -0
- package/dist/serialization/types/CreditSpendWindow.d.ts +10 -0
- package/dist/serialization/types/CreditSpendWindowUnit.d.ts +7 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/EnvironmentDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/EnvironmentResponseData.d.ts +1 -0
- package/dist/serialization/types/EstimatedPlanTotal.d.ts +12 -0
- package/dist/serialization/types/PendingMigrationResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
- package/dist/serialization/types/RulesengineCreditSpendPolicy.d.ts +19 -0
- package/dist/serialization/types/RulesengineCreditSpendPolicyScope.d.ts +7 -0
- package/dist/serialization/types/RulesengineCreditSpendWindow.d.ts +10 -0
- package/dist/serialization/types/RulesengineUser.d.ts +2 -0
- package/dist/serialization/types/UserUsageMetric.d.ts +7 -0
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/wrapper.d.ts +2 -2
- package/package.json +3 -3
|
@@ -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 { RulesengineCreditSpendPolicyScope } from "./RulesengineCreditSpendPolicyScope";
|
|
5
|
+
import { RulesengineCreditSpendWindow } from "./RulesengineCreditSpendWindow";
|
|
6
|
+
export declare const RulesengineCreditSpendPolicy: core.serialization.ObjectSchema<serializers.RulesengineCreditSpendPolicy.Raw, Schematic.RulesengineCreditSpendPolicy>;
|
|
7
|
+
export declare namespace RulesengineCreditSpendPolicy {
|
|
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: RulesengineCreditSpendPolicyScope.Raw;
|
|
17
|
+
window?: RulesengineCreditSpendWindow.Raw | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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 RulesengineCreditSpendPolicyScope: core.serialization.Schema<serializers.RulesengineCreditSpendPolicyScope.Raw, Schematic.RulesengineCreditSpendPolicyScope>;
|
|
5
|
+
export declare namespace RulesengineCreditSpendPolicyScope {
|
|
6
|
+
type Raw = "company" | "user" | "group";
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const RulesengineCreditSpendWindow: core.serialization.ObjectSchema<serializers.RulesengineCreditSpendWindow.Raw, Schematic.RulesengineCreditSpendWindow>;
|
|
5
|
+
export declare namespace RulesengineCreditSpendWindow {
|
|
6
|
+
interface Raw {
|
|
7
|
+
count: number;
|
|
8
|
+
unit: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
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 { RulesengineCreditSpendPolicy } from "./RulesengineCreditSpendPolicy";
|
|
4
5
|
import { RulesengineRule } from "./RulesengineRule";
|
|
5
6
|
import { RulesengineTrait } from "./RulesengineTrait";
|
|
6
7
|
export declare const RulesengineUser: core.serialization.ObjectSchema<serializers.RulesengineUser.Raw, Schematic.RulesengineUser>;
|
|
7
8
|
export declare namespace RulesengineUser {
|
|
8
9
|
interface Raw {
|
|
9
10
|
account_id: string;
|
|
11
|
+
credit_spend_policies?: RulesengineCreditSpendPolicy.Raw[] | null;
|
|
10
12
|
environment_id: string;
|
|
11
13
|
id: string;
|
|
12
14
|
keys: Record<string, string>;
|
|
@@ -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 UserUsageMetric: core.serialization.Schema<serializers.UserUsageMetric.Raw, Schematic.UserUsageMetric>;
|
|
5
|
+
export declare namespace UserUsageMetric {
|
|
6
|
+
type Raw = "credits" | "feature";
|
|
7
|
+
}
|
|
@@ -123,6 +123,9 @@ export * from "./CompanyPlanWithBillingSubView";
|
|
|
123
123
|
export * from "./CompanyResponseData";
|
|
124
124
|
export * from "./CompanySubscriptionResponseData";
|
|
125
125
|
export * from "./CompanyTaxIdView";
|
|
126
|
+
export * from "./CompanyUserUsageMetricsResponseData";
|
|
127
|
+
export * from "./CompanyUserUsageResponseData";
|
|
128
|
+
export * from "./CompanyUserUsageRowResponseData";
|
|
126
129
|
export * from "./ComparableOperator";
|
|
127
130
|
export * from "./CompatiblePlans";
|
|
128
131
|
export * from "./CompatiblePlansResponseData";
|
|
@@ -173,9 +176,13 @@ export * from "./CreditGrantExpiryRequestBody";
|
|
|
173
176
|
export * from "./CreditGrantPriceTierRequestBody";
|
|
174
177
|
export * from "./CreditGrantSortOrder";
|
|
175
178
|
export * from "./CreditLeaseResponseData";
|
|
179
|
+
export * from "./CreditLedgerEntryKind";
|
|
176
180
|
export * from "./CreditReservationResponseData";
|
|
181
|
+
export * from "./CreditSpendPolicy";
|
|
177
182
|
export * from "./CreditSpendPolicyResponseData";
|
|
178
183
|
export * from "./CreditSpendPolicyScope";
|
|
184
|
+
export * from "./CreditSpendWindow";
|
|
185
|
+
export * from "./CreditSpendWindowUnit";
|
|
179
186
|
export * from "./CreditsAutoTopupCompanySummary";
|
|
180
187
|
export * from "./CreditsAutoTopupCreditSummary";
|
|
181
188
|
export * from "./CreditsAutoTopupHardFailure";
|
|
@@ -229,6 +236,7 @@ export * from "./EnvironmentResponseData";
|
|
|
229
236
|
export * from "./EnvironmentTraitUsageTimeSeriesResponseData";
|
|
230
237
|
export * from "./EnvironmentType";
|
|
231
238
|
export * from "./EnvironmentUsagePointResponseData";
|
|
239
|
+
export * from "./EstimatedPlanTotal";
|
|
232
240
|
export * from "./EventBody";
|
|
233
241
|
export * from "./EventBodyFlagCheck";
|
|
234
242
|
export * from "./EventBodyIdentify";
|
|
@@ -385,6 +393,9 @@ export * from "./RulesengineCondition";
|
|
|
385
393
|
export * from "./RulesengineConditionGroup";
|
|
386
394
|
export * from "./RulesengineConditionType";
|
|
387
395
|
export * from "./RulesengineCreditPostpaidConfig";
|
|
396
|
+
export * from "./RulesengineCreditSpendPolicy";
|
|
397
|
+
export * from "./RulesengineCreditSpendPolicyScope";
|
|
398
|
+
export * from "./RulesengineCreditSpendWindow";
|
|
388
399
|
export * from "./RulesengineEntitlementValueType";
|
|
389
400
|
export * from "./RulesengineEntityType";
|
|
390
401
|
export * from "./RulesengineFeatureEntitlement";
|
|
@@ -459,6 +470,7 @@ export * from "./UserFeatureUsageResponseData";
|
|
|
459
470
|
export * from "./UserResponseData";
|
|
460
471
|
export * from "./UserUsageByCompanyResponseData";
|
|
461
472
|
export * from "./UserUsageDetailResponseData";
|
|
473
|
+
export * from "./UserUsageMetric";
|
|
462
474
|
export * from "./WarningTier";
|
|
463
475
|
export * from "./WarningTierRequestBody";
|
|
464
476
|
export * from "./WarningTierResponseData";
|
package/dist/wrapper.d.ts
CHANGED
|
@@ -29,9 +29,9 @@ export interface SchematicOptions {
|
|
|
29
29
|
redisKeyPrefix?: string;
|
|
30
30
|
/** Enable replicator mode for external data synchronization */
|
|
31
31
|
replicatorMode?: boolean;
|
|
32
|
-
/** Health check URL for replicator mode */
|
|
32
|
+
/** Health check URL for replicator mode (default: http://localhost:8090/ready) */
|
|
33
33
|
replicatorHealthURL?: string;
|
|
34
|
-
/** Health check interval for replicator mode in milliseconds */
|
|
34
|
+
/** Health check interval for replicator mode in milliseconds (default: 30 seconds) */
|
|
35
35
|
replicatorHealthCheck?: number;
|
|
36
36
|
};
|
|
37
37
|
/** If using an API key that is not environment-specific, use this option to specify the environment */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-typescript-node",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"resolutions": {
|
|
61
61
|
"sharp": "^0.35.4",
|
|
62
|
-
"undici": "7.29.
|
|
62
|
+
"undici": "7.29.0"
|
|
63
63
|
},
|
|
64
64
|
"packageManager": "yarn@1.22.22",
|
|
65
65
|
"engines": {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"license": "MIT",
|
|
70
70
|
"resolutions": {
|
|
71
71
|
"sharp": "^0.35.4",
|
|
72
|
-
"undici": "7.29.
|
|
72
|
+
"undici": "7.29.0"
|
|
73
73
|
},
|
|
74
74
|
"files": [
|
|
75
75
|
"dist/**/*.js",
|