@openmeter/client 1.0.0-beta-41290324d36d → 1.0.0-beta-9b1736df5373
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/funcs/customers.js
CHANGED
|
@@ -675,7 +675,7 @@ export function resetCustomerEntitlementUsage(client, req, options) {
|
|
|
675
675
|
return encodeURIComponent(String(pathParams.entitlementId));
|
|
676
676
|
})()}/reset`;
|
|
677
677
|
const body = toWire(req.body, schemas.resetCustomerEntitlementUsageBody);
|
|
678
|
-
if (client._options.validate) {
|
|
678
|
+
if (client._options.validate && body !== undefined) {
|
|
679
679
|
assertValid(schemas.resetCustomerEntitlementUsageBodyWire, body);
|
|
680
680
|
}
|
|
681
681
|
await http(client).post(path, { ...options, json: body });
|
|
@@ -1080,7 +1080,7 @@ export function voidCreditGrant(client, req, options) {
|
|
|
1080
1080
|
return encodeURIComponent(String(pathParams.creditGrantId));
|
|
1081
1081
|
})()}/void`;
|
|
1082
1082
|
const body = toWire(req.body, schemas.voidCreditGrantBody);
|
|
1083
|
-
if (client._options.validate) {
|
|
1083
|
+
if (client._options.validate && body !== undefined) {
|
|
1084
1084
|
assertValid(schemas.voidCreditGrantBodyWire, body);
|
|
1085
1085
|
}
|
|
1086
1086
|
return http(client)
|
package/dist/funcs/features.js
CHANGED
|
@@ -186,7 +186,7 @@ export function queryFeatureCost(client, req, options) {
|
|
|
186
186
|
return encodeURIComponent(String(pathParams.featureId));
|
|
187
187
|
})()}/cost/query`;
|
|
188
188
|
const body = toWire(req.body, schemas.queryFeatureCostBody);
|
|
189
|
-
if (client._options.validate) {
|
|
189
|
+
if (client._options.validate && body !== undefined) {
|
|
190
190
|
assertValid(schemas.queryFeatureCostBodyWire, body);
|
|
191
191
|
}
|
|
192
192
|
return http(client)
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta-9b1736df5373";
|
package/dist/lib/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// The committed value is a dev placeholder. The publish flow
|
|
3
3
|
// (`make -C api/spec publish-aip-sdk`) stamps the real release version here
|
|
4
4
|
// before `pnpm publish`, after `pnpm version` updates package.json.
|
|
5
|
-
export const SDK_VERSION = '1.0.0-beta-
|
|
5
|
+
export const SDK_VERSION = '1.0.0-beta-9b1736df5373';
|
|
@@ -138,7 +138,7 @@ export type ListCustomerEntitlementsResponse = EntitlementPagePaginatedResponse;
|
|
|
138
138
|
export type ResetCustomerEntitlementUsageRequest = AcceptDateStrings<{
|
|
139
139
|
customerId: string;
|
|
140
140
|
entitlementId: string;
|
|
141
|
-
body
|
|
141
|
+
body?: ResetCustomerEntitlementUsageRequestInput;
|
|
142
142
|
}>;
|
|
143
143
|
export type ResetCustomerEntitlementUsageResponse = void;
|
|
144
144
|
export type DeleteCustomerEntitlementRequest = {
|
|
@@ -231,7 +231,7 @@ export type CreateCreditAdjustmentResponse = CreditAdjustment;
|
|
|
231
231
|
export type VoidCreditGrantRequest = AcceptDateStrings<{
|
|
232
232
|
customerId: string;
|
|
233
233
|
creditGrantId: string;
|
|
234
|
-
body
|
|
234
|
+
body?: VoidCreditGrantRequestInput;
|
|
235
235
|
}>;
|
|
236
236
|
export type VoidCreditGrantResponse = CreditGrant;
|
|
237
237
|
export type UpdateCreditGrantExternalSettlementRequest = AcceptDateStrings<{
|
|
@@ -45,6 +45,6 @@ export type DeleteFeatureRequest = {
|
|
|
45
45
|
export type DeleteFeatureResponse = void;
|
|
46
46
|
export type QueryFeatureCostRequest = AcceptDateStrings<{
|
|
47
47
|
featureId: string;
|
|
48
|
-
body
|
|
48
|
+
body?: MeterQueryRequestInput;
|
|
49
49
|
}>;
|
|
50
50
|
export type QueryFeatureCostResponse = FeatureCostQueryResult;
|