@openmeter/sdk 1.0.0-beta-d70d7b9f82ee → 1.0.0-beta-795d91a9c84e
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/cjs/src/client/customers.d.cts +1 -1
- package/dist/cjs/src/client/entitlements.d.cts +2 -0
- package/dist/cjs/src/client/schemas.d.cts +25 -20
- package/dist/cjs/src/zod/index.cjs +3 -3
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.7fa32390.tsbuildinfo → tsconfig.1ed2d848.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.98c46baf.tsbuildinfo → tsconfig.b07c3282.tsbuildinfo} +1 -1
- package/dist/src/client/customers.d.ts +1 -1
- package/dist/src/client/entitlements.d.ts +2 -0
- package/dist/src/client/schemas.d.ts +25 -20
- package/dist/src/zod/index.js +3 -3
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -561,9 +561,9 @@ export declare class CustomerEntitlementsV2 {
|
|
|
561
561
|
priority?: number;
|
|
562
562
|
effectiveAt: Date;
|
|
563
563
|
minRolloverAmount?: number;
|
|
564
|
+
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
564
565
|
maxRolloverAmount?: number;
|
|
565
566
|
expiration?: import("./schemas.cjs").components["schemas"]["ExpirationPeriod"];
|
|
566
|
-
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"];
|
|
567
567
|
annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
568
568
|
readonly id: string;
|
|
569
569
|
readonly entitlementId: string;
|
|
@@ -415,6 +415,7 @@ export declare class Grants {
|
|
|
415
415
|
readonly expiresAt?: Date;
|
|
416
416
|
voidedAt?: Date;
|
|
417
417
|
recurrence?: import("./schemas.cjs").components["schemas"]["RecurringPeriod"];
|
|
418
|
+
annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
418
419
|
}>;
|
|
419
420
|
/**
|
|
420
421
|
* List grants for an entitlement
|
|
@@ -441,6 +442,7 @@ export declare class Grants {
|
|
|
441
442
|
readonly expiresAt?: Date;
|
|
442
443
|
voidedAt?: Date;
|
|
443
444
|
recurrence?: import("./schemas.cjs").components["schemas"]["RecurringPeriod"];
|
|
445
|
+
annotations?: import("./schemas.cjs").components["schemas"]["Annotations"];
|
|
444
446
|
}[]>;
|
|
445
447
|
/**
|
|
446
448
|
* List all grants
|
|
@@ -4641,6 +4641,13 @@ export interface components {
|
|
|
4641
4641
|
voidedAt?: Date;
|
|
4642
4642
|
/** @description The recurrence period of the grant. */
|
|
4643
4643
|
recurrence?: components['schemas']['RecurringPeriod'];
|
|
4644
|
+
/**
|
|
4645
|
+
* @description Grant annotations
|
|
4646
|
+
* @example {
|
|
4647
|
+
* "issueAfterReset": true
|
|
4648
|
+
* }
|
|
4649
|
+
*/
|
|
4650
|
+
annotations?: components['schemas']['Annotations'];
|
|
4644
4651
|
};
|
|
4645
4652
|
/** @description The grant creation input. */
|
|
4646
4653
|
EntitlementGrantCreateInput: {
|
|
@@ -4728,6 +4735,13 @@ export interface components {
|
|
|
4728
4735
|
* @example 100
|
|
4729
4736
|
*/
|
|
4730
4737
|
minRolloverAmount?: number;
|
|
4738
|
+
/**
|
|
4739
|
+
* @description The grant metadata.
|
|
4740
|
+
* @example {
|
|
4741
|
+
* "stripePaymentId": "pi_4OrAkhLvyihio9p51h9iiFnB"
|
|
4742
|
+
* }
|
|
4743
|
+
*/
|
|
4744
|
+
metadata?: components['schemas']['Metadata'];
|
|
4731
4745
|
/** @description The subject of the grant. */
|
|
4732
4746
|
recurrence?: components['schemas']['RecurringPeriodCreateInput'];
|
|
4733
4747
|
/**
|
|
@@ -4740,17 +4754,9 @@ export interface components {
|
|
|
4740
4754
|
/** @description The grant expiration definition. If no expiration is provided, the grant can be active indefinitely. */
|
|
4741
4755
|
expiration?: components['schemas']['ExpirationPeriod'];
|
|
4742
4756
|
/**
|
|
4743
|
-
* @
|
|
4744
|
-
* @description The grant metadata.
|
|
4757
|
+
* @description Grant annotations
|
|
4745
4758
|
* @example {
|
|
4746
|
-
* "
|
|
4747
|
-
* }
|
|
4748
|
-
*/
|
|
4749
|
-
metadata?: components['schemas']['Metadata'];
|
|
4750
|
-
/**
|
|
4751
|
-
* @description The grant metadata.
|
|
4752
|
-
* @example {
|
|
4753
|
-
* "stripePaymentId": "pi_4OrAkhLvyihio9p51h9iiFnB"
|
|
4759
|
+
* "internal_reference": "internal_reference"
|
|
4754
4760
|
* }
|
|
4755
4761
|
*/
|
|
4756
4762
|
annotations?: components['schemas']['Annotations'];
|
|
@@ -4809,6 +4815,13 @@ export interface components {
|
|
|
4809
4815
|
* @example 100
|
|
4810
4816
|
*/
|
|
4811
4817
|
minRolloverAmount?: number;
|
|
4818
|
+
/**
|
|
4819
|
+
* @description The grant metadata.
|
|
4820
|
+
* @example {
|
|
4821
|
+
* "stripePaymentId": "pi_4OrAkhLvyihio9p51h9iiFnB"
|
|
4822
|
+
* }
|
|
4823
|
+
*/
|
|
4824
|
+
metadata?: components['schemas']['Metadata'];
|
|
4812
4825
|
/**
|
|
4813
4826
|
* Format: double
|
|
4814
4827
|
* @description Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.
|
|
@@ -4819,17 +4832,9 @@ export interface components {
|
|
|
4819
4832
|
/** @description The grant expiration definition. If no expiration is provided, the grant can be active indefinitely. */
|
|
4820
4833
|
expiration?: components['schemas']['ExpirationPeriod'];
|
|
4821
4834
|
/**
|
|
4822
|
-
* @
|
|
4823
|
-
* @description The grant metadata.
|
|
4835
|
+
* @description Grant annotations
|
|
4824
4836
|
* @example {
|
|
4825
|
-
* "
|
|
4826
|
-
* }
|
|
4827
|
-
*/
|
|
4828
|
-
metadata?: components['schemas']['Metadata'];
|
|
4829
|
-
/**
|
|
4830
|
-
* @description The grant metadata.
|
|
4831
|
-
* @example {
|
|
4832
|
-
* "stripePaymentId": "pi_4OrAkhLvyihio9p51h9iiFnB"
|
|
4837
|
+
* "internal_reference": "internal_reference"
|
|
4833
4838
|
* }
|
|
4834
4839
|
*/
|
|
4835
4840
|
annotations?: components['schemas']['Annotations'];
|
|
@@ -11568,7 +11568,7 @@ exports.createCustomerEntitlementV2Body = zod_1.z
|
|
|
11568
11568
|
.record(zod_1.z.string(), zod_1.z.any())
|
|
11569
11569
|
.describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
|
|
11570
11570
|
.optional()
|
|
11571
|
-
.describe('
|
|
11571
|
+
.describe('Grant annotations'),
|
|
11572
11572
|
effectiveAt: zod_1.z.coerce
|
|
11573
11573
|
.date()
|
|
11574
11574
|
.describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
|
|
@@ -11997,7 +11997,7 @@ exports.createCustomerEntitlementGrantV2Body = zod_1.z
|
|
|
11997
11997
|
.record(zod_1.z.string(), zod_1.z.any())
|
|
11998
11998
|
.describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
|
|
11999
11999
|
.optional()
|
|
12000
|
-
.describe('
|
|
12000
|
+
.describe('Grant annotations'),
|
|
12001
12001
|
effectiveAt: zod_1.z.coerce
|
|
12002
12002
|
.date()
|
|
12003
12003
|
.describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
|
|
@@ -12182,7 +12182,7 @@ exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
|
12182
12182
|
.record(zod_1.z.string(), zod_1.z.any())
|
|
12183
12183
|
.describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
|
|
12184
12184
|
.optional()
|
|
12185
|
-
.describe('
|
|
12185
|
+
.describe('Grant annotations'),
|
|
12186
12186
|
effectiveAt: zod_1.z.coerce
|
|
12187
12187
|
.date()
|
|
12188
12188
|
.describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
|