@openmeter/sdk 1.0.0-beta-8dde17a280ab → 1.0.0-beta-45385d8c2fdb
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 +3 -3
- package/dist/cjs/src/client/schemas.d.cts +9 -3
- package/dist/cjs/src/zod/index.cjs +9 -6
- package/dist/cjs/src/zod/index.d.cts +30 -30
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.126fc6e3.tsbuildinfo → tsconfig.2bde2949.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.c2c3e7d1.tsbuildinfo → tsconfig.eab9533b.tsbuildinfo} +1 -1
- package/dist/src/client/customers.d.ts +3 -3
- package/dist/src/client/schemas.d.ts +9 -3
- package/dist/src/zod/index.d.ts +30 -30
- package/dist/src/zod/index.js +9 -6
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export declare class Customers {
|
|
|
27
27
|
readonly updatedAt: Date;
|
|
28
28
|
readonly deletedAt?: Date;
|
|
29
29
|
key?: string;
|
|
30
|
-
usageAttribution
|
|
30
|
+
usageAttribution?: import("./schemas.cjs").components["schemas"]["CustomerUsageAttribution"];
|
|
31
31
|
primaryEmail?: string;
|
|
32
32
|
currency?: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
33
33
|
billingAddress?: import("./schemas.cjs").components["schemas"]["Address"];
|
|
@@ -50,7 +50,7 @@ export declare class Customers {
|
|
|
50
50
|
readonly updatedAt: Date;
|
|
51
51
|
readonly deletedAt?: Date;
|
|
52
52
|
key?: string;
|
|
53
|
-
usageAttribution
|
|
53
|
+
usageAttribution?: import("./schemas.cjs").components["schemas"]["CustomerUsageAttribution"];
|
|
54
54
|
primaryEmail?: string;
|
|
55
55
|
currency?: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
56
56
|
billingAddress?: import("./schemas.cjs").components["schemas"]["Address"];
|
|
@@ -74,7 +74,7 @@ export declare class Customers {
|
|
|
74
74
|
readonly updatedAt: Date;
|
|
75
75
|
readonly deletedAt?: Date;
|
|
76
76
|
key?: string;
|
|
77
|
-
usageAttribution
|
|
77
|
+
usageAttribution?: import("./schemas.cjs").components["schemas"]["CustomerUsageAttribution"];
|
|
78
78
|
primaryEmail?: string;
|
|
79
79
|
currency?: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
80
80
|
billingAddress?: import("./schemas.cjs").components["schemas"]["Address"];
|
|
@@ -4060,6 +4060,7 @@ export interface components {
|
|
|
4060
4060
|
/**
|
|
4061
4061
|
* Key
|
|
4062
4062
|
* @description An optional unique key of the customer.
|
|
4063
|
+
* Either key or usageAttribution.subjectKeys must be provided.
|
|
4063
4064
|
* Useful to reference the customer in external systems.
|
|
4064
4065
|
* For example, your database ID.
|
|
4065
4066
|
*/
|
|
@@ -4067,8 +4068,9 @@ export interface components {
|
|
|
4067
4068
|
/**
|
|
4068
4069
|
* Usage Attribution
|
|
4069
4070
|
* @description Mapping to attribute metered usage to the customer
|
|
4071
|
+
* Either key or usageAttribution.subjectKeys must be provided.
|
|
4070
4072
|
*/
|
|
4071
|
-
usageAttribution
|
|
4073
|
+
usageAttribution?: components['schemas']['CustomerUsageAttribution'];
|
|
4072
4074
|
/**
|
|
4073
4075
|
* Primary Email
|
|
4074
4076
|
* @description The primary email address of the customer.
|
|
@@ -4160,6 +4162,7 @@ export interface components {
|
|
|
4160
4162
|
/**
|
|
4161
4163
|
* Key
|
|
4162
4164
|
* @description An optional unique key of the customer.
|
|
4165
|
+
* Either key or usageAttribution.subjectKeys must be provided.
|
|
4163
4166
|
* Useful to reference the customer in external systems.
|
|
4164
4167
|
* For example, your database ID.
|
|
4165
4168
|
*/
|
|
@@ -4167,8 +4170,9 @@ export interface components {
|
|
|
4167
4170
|
/**
|
|
4168
4171
|
* Usage Attribution
|
|
4169
4172
|
* @description Mapping to attribute metered usage to the customer
|
|
4173
|
+
* Either key or usageAttribution.subjectKeys must be provided.
|
|
4170
4174
|
*/
|
|
4171
|
-
usageAttribution
|
|
4175
|
+
usageAttribution?: components['schemas']['CustomerUsageAttribution'];
|
|
4172
4176
|
/**
|
|
4173
4177
|
* Primary Email
|
|
4174
4178
|
* @description The primary email address of the customer.
|
|
@@ -4249,6 +4253,7 @@ export interface components {
|
|
|
4249
4253
|
/**
|
|
4250
4254
|
* Key
|
|
4251
4255
|
* @description An optional unique key of the customer.
|
|
4256
|
+
* Either key or usageAttribution.subjectKeys must be provided.
|
|
4252
4257
|
* Useful to reference the customer in external systems.
|
|
4253
4258
|
* For example, your database ID.
|
|
4254
4259
|
*/
|
|
@@ -4256,8 +4261,9 @@ export interface components {
|
|
|
4256
4261
|
/**
|
|
4257
4262
|
* Usage Attribution
|
|
4258
4263
|
* @description Mapping to attribute metered usage to the customer
|
|
4264
|
+
* Either key or usageAttribution.subjectKeys must be provided.
|
|
4259
4265
|
*/
|
|
4260
|
-
usageAttribution
|
|
4266
|
+
usageAttribution?: components['schemas']['CustomerUsageAttribution'];
|
|
4261
4267
|
/**
|
|
4262
4268
|
* Primary Email
|
|
4263
4269
|
* @description The primary email address of the customer.
|
|
@@ -4539,7 +4539,7 @@ exports.createCustomerBody = zod_1.z
|
|
|
4539
4539
|
.min(1)
|
|
4540
4540
|
.max(exports.createCustomerBodyKeyMax)
|
|
4541
4541
|
.optional()
|
|
4542
|
-
.describe('An optional unique key of the customer.\nUseful to reference the customer in external systems.\nFor example, your database ID.'),
|
|
4542
|
+
.describe('An optional unique key of the customer.\nEither key or usageAttribution.subjectKeys must be provided.\nUseful to reference the customer in external systems.\nFor example, your database ID.'),
|
|
4543
4543
|
metadata: zod_1.z
|
|
4544
4544
|
.record(zod_1.z.string(), zod_1.z.coerce.string())
|
|
4545
4545
|
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
@@ -4565,7 +4565,8 @@ exports.createCustomerBody = zod_1.z
|
|
|
4565
4565
|
.describe('The subjects that are attributed to the customer.\nCan be empty when no subjects are associated with the customer.'),
|
|
4566
4566
|
})
|
|
4567
4567
|
.describe('Mapping to attribute metered usage to the customer.\nOne customer can have zero or more subjects,\nbut one subject can only belong to one customer.')
|
|
4568
|
-
.
|
|
4568
|
+
.optional()
|
|
4569
|
+
.describe('Mapping to attribute metered usage to the customer\nEither key or usageAttribution.subjectKeys must be provided.'),
|
|
4569
4570
|
})
|
|
4570
4571
|
.describe('Resource create operation model.');
|
|
4571
4572
|
/**
|
|
@@ -4726,7 +4727,7 @@ exports.updateCustomerBody = zod_1.z
|
|
|
4726
4727
|
.min(1)
|
|
4727
4728
|
.max(exports.updateCustomerBodyKeyMax)
|
|
4728
4729
|
.optional()
|
|
4729
|
-
.describe('An optional unique key of the customer.\nUseful to reference the customer in external systems.\nFor example, your database ID.'),
|
|
4730
|
+
.describe('An optional unique key of the customer.\nEither key or usageAttribution.subjectKeys must be provided.\nUseful to reference the customer in external systems.\nFor example, your database ID.'),
|
|
4730
4731
|
metadata: zod_1.z
|
|
4731
4732
|
.record(zod_1.z.string(), zod_1.z.coerce.string())
|
|
4732
4733
|
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
@@ -4752,7 +4753,8 @@ exports.updateCustomerBody = zod_1.z
|
|
|
4752
4753
|
.describe('The subjects that are attributed to the customer.\nCan be empty when no subjects are associated with the customer.'),
|
|
4753
4754
|
})
|
|
4754
4755
|
.describe('Mapping to attribute metered usage to the customer.\nOne customer can have zero or more subjects,\nbut one subject can only belong to one customer.')
|
|
4755
|
-
.
|
|
4756
|
+
.optional()
|
|
4757
|
+
.describe('Mapping to attribute metered usage to the customer\nEither key or usageAttribution.subjectKeys must be provided.'),
|
|
4756
4758
|
})
|
|
4757
4759
|
.describe('Resource update operation model.');
|
|
4758
4760
|
/**
|
|
@@ -8632,7 +8634,7 @@ exports.createStripeCheckoutSessionBody = zod_1.z
|
|
|
8632
8634
|
.min(1)
|
|
8633
8635
|
.max(exports.createStripeCheckoutSessionBodyCustomerKeyMaxOne)
|
|
8634
8636
|
.optional()
|
|
8635
|
-
.describe('An optional unique key of the customer.\nUseful to reference the customer in external systems.\nFor example, your database ID.'),
|
|
8637
|
+
.describe('An optional unique key of the customer.\nEither key or usageAttribution.subjectKeys must be provided.\nUseful to reference the customer in external systems.\nFor example, your database ID.'),
|
|
8636
8638
|
metadata: zod_1.z
|
|
8637
8639
|
.record(zod_1.z.string(), zod_1.z.coerce.string())
|
|
8638
8640
|
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
@@ -8658,7 +8660,8 @@ exports.createStripeCheckoutSessionBody = zod_1.z
|
|
|
8658
8660
|
.describe('The subjects that are attributed to the customer.\nCan be empty when no subjects are associated with the customer.'),
|
|
8659
8661
|
})
|
|
8660
8662
|
.describe('Mapping to attribute metered usage to the customer.\nOne customer can have zero or more subjects,\nbut one subject can only belong to one customer.')
|
|
8661
|
-
.
|
|
8663
|
+
.optional()
|
|
8664
|
+
.describe('Mapping to attribute metered usage to the customer\nEither key or usageAttribution.subjectKeys must be provided.'),
|
|
8662
8665
|
})
|
|
8663
8666
|
.describe('Resource create operation model.'),
|
|
8664
8667
|
])
|
|
@@ -7506,18 +7506,15 @@ export declare const createCustomerBody: zod.ZodObject<{
|
|
|
7506
7506
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
7507
7507
|
name: zod.ZodString;
|
|
7508
7508
|
primaryEmail: zod.ZodOptional<zod.ZodString>;
|
|
7509
|
-
usageAttribution: zod.ZodObject<{
|
|
7509
|
+
usageAttribution: zod.ZodOptional<zod.ZodObject<{
|
|
7510
7510
|
subjectKeys: zod.ZodArray<zod.ZodString, "many">;
|
|
7511
7511
|
}, "strip", zod.ZodTypeAny, {
|
|
7512
7512
|
subjectKeys: string[];
|
|
7513
7513
|
}, {
|
|
7514
7514
|
subjectKeys: string[];
|
|
7515
|
-
}
|
|
7515
|
+
}>>;
|
|
7516
7516
|
}, "strip", zod.ZodTypeAny, {
|
|
7517
7517
|
name: string;
|
|
7518
|
-
usageAttribution: {
|
|
7519
|
-
subjectKeys: string[];
|
|
7520
|
-
};
|
|
7521
7518
|
key?: string | undefined;
|
|
7522
7519
|
description?: string | undefined;
|
|
7523
7520
|
currency?: string | undefined;
|
|
@@ -7532,11 +7529,11 @@ export declare const createCustomerBody: zod.ZodObject<{
|
|
|
7532
7529
|
state?: string | undefined;
|
|
7533
7530
|
} | undefined;
|
|
7534
7531
|
primaryEmail?: string | undefined;
|
|
7532
|
+
usageAttribution?: {
|
|
7533
|
+
subjectKeys: string[];
|
|
7534
|
+
} | undefined;
|
|
7535
7535
|
}, {
|
|
7536
7536
|
name: string;
|
|
7537
|
-
usageAttribution: {
|
|
7538
|
-
subjectKeys: string[];
|
|
7539
|
-
};
|
|
7540
7537
|
key?: string | undefined;
|
|
7541
7538
|
description?: string | undefined;
|
|
7542
7539
|
currency?: string | undefined;
|
|
@@ -7551,6 +7548,9 @@ export declare const createCustomerBody: zod.ZodObject<{
|
|
|
7551
7548
|
state?: string | undefined;
|
|
7552
7549
|
} | undefined;
|
|
7553
7550
|
primaryEmail?: string | undefined;
|
|
7551
|
+
usageAttribution?: {
|
|
7552
|
+
subjectKeys: string[];
|
|
7553
|
+
} | undefined;
|
|
7554
7554
|
}>;
|
|
7555
7555
|
/**
|
|
7556
7556
|
* List customers.
|
|
@@ -7672,18 +7672,15 @@ export declare const updateCustomerBody: zod.ZodObject<{
|
|
|
7672
7672
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
7673
7673
|
name: zod.ZodString;
|
|
7674
7674
|
primaryEmail: zod.ZodOptional<zod.ZodString>;
|
|
7675
|
-
usageAttribution: zod.ZodObject<{
|
|
7675
|
+
usageAttribution: zod.ZodOptional<zod.ZodObject<{
|
|
7676
7676
|
subjectKeys: zod.ZodArray<zod.ZodString, "many">;
|
|
7677
7677
|
}, "strip", zod.ZodTypeAny, {
|
|
7678
7678
|
subjectKeys: string[];
|
|
7679
7679
|
}, {
|
|
7680
7680
|
subjectKeys: string[];
|
|
7681
|
-
}
|
|
7681
|
+
}>>;
|
|
7682
7682
|
}, "strip", zod.ZodTypeAny, {
|
|
7683
7683
|
name: string;
|
|
7684
|
-
usageAttribution: {
|
|
7685
|
-
subjectKeys: string[];
|
|
7686
|
-
};
|
|
7687
7684
|
key?: string | undefined;
|
|
7688
7685
|
description?: string | undefined;
|
|
7689
7686
|
currency?: string | undefined;
|
|
@@ -7698,11 +7695,11 @@ export declare const updateCustomerBody: zod.ZodObject<{
|
|
|
7698
7695
|
state?: string | undefined;
|
|
7699
7696
|
} | undefined;
|
|
7700
7697
|
primaryEmail?: string | undefined;
|
|
7698
|
+
usageAttribution?: {
|
|
7699
|
+
subjectKeys: string[];
|
|
7700
|
+
} | undefined;
|
|
7701
7701
|
}, {
|
|
7702
7702
|
name: string;
|
|
7703
|
-
usageAttribution: {
|
|
7704
|
-
subjectKeys: string[];
|
|
7705
|
-
};
|
|
7706
7703
|
key?: string | undefined;
|
|
7707
7704
|
description?: string | undefined;
|
|
7708
7705
|
currency?: string | undefined;
|
|
@@ -7717,6 +7714,9 @@ export declare const updateCustomerBody: zod.ZodObject<{
|
|
|
7717
7714
|
state?: string | undefined;
|
|
7718
7715
|
} | undefined;
|
|
7719
7716
|
primaryEmail?: string | undefined;
|
|
7717
|
+
usageAttribution?: {
|
|
7718
|
+
subjectKeys: string[];
|
|
7719
|
+
} | undefined;
|
|
7720
7720
|
}>;
|
|
7721
7721
|
/**
|
|
7722
7722
|
* Delete a customer by ID.
|
|
@@ -13021,18 +13021,15 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
|
|
|
13021
13021
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
13022
13022
|
name: zod.ZodString;
|
|
13023
13023
|
primaryEmail: zod.ZodOptional<zod.ZodString>;
|
|
13024
|
-
usageAttribution: zod.ZodObject<{
|
|
13024
|
+
usageAttribution: zod.ZodOptional<zod.ZodObject<{
|
|
13025
13025
|
subjectKeys: zod.ZodArray<zod.ZodString, "many">;
|
|
13026
13026
|
}, "strip", zod.ZodTypeAny, {
|
|
13027
13027
|
subjectKeys: string[];
|
|
13028
13028
|
}, {
|
|
13029
13029
|
subjectKeys: string[];
|
|
13030
|
-
}
|
|
13030
|
+
}>>;
|
|
13031
13031
|
}, "strip", zod.ZodTypeAny, {
|
|
13032
13032
|
name: string;
|
|
13033
|
-
usageAttribution: {
|
|
13034
|
-
subjectKeys: string[];
|
|
13035
|
-
};
|
|
13036
13033
|
key?: string | undefined;
|
|
13037
13034
|
description?: string | undefined;
|
|
13038
13035
|
currency?: string | undefined;
|
|
@@ -13047,11 +13044,11 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
|
|
|
13047
13044
|
state?: string | undefined;
|
|
13048
13045
|
} | undefined;
|
|
13049
13046
|
primaryEmail?: string | undefined;
|
|
13047
|
+
usageAttribution?: {
|
|
13048
|
+
subjectKeys: string[];
|
|
13049
|
+
} | undefined;
|
|
13050
13050
|
}, {
|
|
13051
13051
|
name: string;
|
|
13052
|
-
usageAttribution: {
|
|
13053
|
-
subjectKeys: string[];
|
|
13054
|
-
};
|
|
13055
13052
|
key?: string | undefined;
|
|
13056
13053
|
description?: string | undefined;
|
|
13057
13054
|
currency?: string | undefined;
|
|
@@ -13066,6 +13063,9 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
|
|
|
13066
13063
|
state?: string | undefined;
|
|
13067
13064
|
} | undefined;
|
|
13068
13065
|
primaryEmail?: string | undefined;
|
|
13066
|
+
usageAttribution?: {
|
|
13067
|
+
subjectKeys: string[];
|
|
13068
|
+
} | undefined;
|
|
13069
13069
|
}>]>;
|
|
13070
13070
|
options: zod.ZodObject<{
|
|
13071
13071
|
billingAddressCollection: zod.ZodOptional<zod.ZodEnum<["auto", "required"]>>;
|
|
@@ -13277,9 +13277,6 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
|
|
|
13277
13277
|
key: string;
|
|
13278
13278
|
} | {
|
|
13279
13279
|
name: string;
|
|
13280
|
-
usageAttribution: {
|
|
13281
|
-
subjectKeys: string[];
|
|
13282
|
-
};
|
|
13283
13280
|
key?: string | undefined;
|
|
13284
13281
|
description?: string | undefined;
|
|
13285
13282
|
currency?: string | undefined;
|
|
@@ -13294,6 +13291,9 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
|
|
|
13294
13291
|
state?: string | undefined;
|
|
13295
13292
|
} | undefined;
|
|
13296
13293
|
primaryEmail?: string | undefined;
|
|
13294
|
+
usageAttribution?: {
|
|
13295
|
+
subjectKeys: string[];
|
|
13296
|
+
} | undefined;
|
|
13297
13297
|
};
|
|
13298
13298
|
options: {
|
|
13299
13299
|
currency?: string | undefined;
|
|
@@ -13348,9 +13348,6 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
|
|
|
13348
13348
|
key: string;
|
|
13349
13349
|
} | {
|
|
13350
13350
|
name: string;
|
|
13351
|
-
usageAttribution: {
|
|
13352
|
-
subjectKeys: string[];
|
|
13353
|
-
};
|
|
13354
13351
|
key?: string | undefined;
|
|
13355
13352
|
description?: string | undefined;
|
|
13356
13353
|
currency?: string | undefined;
|
|
@@ -13365,6 +13362,9 @@ export declare const createStripeCheckoutSessionBody: zod.ZodObject<{
|
|
|
13365
13362
|
state?: string | undefined;
|
|
13366
13363
|
} | undefined;
|
|
13367
13364
|
primaryEmail?: string | undefined;
|
|
13365
|
+
usageAttribution?: {
|
|
13366
|
+
subjectKeys: string[];
|
|
13367
|
+
} | undefined;
|
|
13368
13368
|
};
|
|
13369
13369
|
options: {
|
|
13370
13370
|
currency?: string | undefined;
|