@openmeter/sdk 1.0.0-beta.121 → 1.0.0-beta.123
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/clients/entitlement.cjs +0 -2
- package/dist/cjs/clients/entitlement.d.cts +2 -3
- package/dist/cjs/clients/entitlement.js.map +1 -1
- package/dist/cjs/clients/feature.d.cts +2 -1
- package/dist/cjs/clients/feature.js.map +1 -1
- package/dist/cjs/clients/grant.d.cts +2 -1
- package/dist/cjs/clients/grant.js.map +1 -1
- package/dist/cjs/clients/pagination.cjs +3 -0
- package/dist/cjs/clients/pagination.d.cts +6 -0
- package/dist/cjs/clients/pagination.js.map +1 -0
- package/dist/cjs/schemas/openapi.d.cts +791 -10
- package/dist/cjs/tsconfig.1d1ec8d8.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.53e1ef41.tsbuildinfo +1 -0
- package/dist/clients/entitlement.d.ts +2 -3
- package/dist/clients/entitlement.js +0 -2
- package/dist/clients/entitlement.js.map +1 -1
- package/dist/clients/feature.d.ts +2 -1
- package/dist/clients/feature.js.map +1 -1
- package/dist/clients/grant.d.ts +2 -1
- package/dist/clients/grant.js.map +1 -1
- package/dist/clients/pagination.d.ts +6 -0
- package/dist/clients/pagination.js +2 -0
- package/dist/clients/pagination.js.map +1 -0
- package/dist/schemas/openapi.d.ts +791 -10
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/cjs/tsconfig.4d5c2062.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.c974a7ac.tsbuildinfo +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { components, operations } from '../schemas/openapi.cjs';
|
|
2
2
|
import { RequestOptions, BaseClient, OpenMeterConfig } from './client.cjs';
|
|
3
|
+
import { Paginated } from './pagination.cjs';
|
|
3
4
|
export type Entitlement = EntitlementMetered | EntitlementStatic | EntitlementBoolean;
|
|
4
5
|
export type EntitlementMetered = components['schemas']['EntitlementMetered'];
|
|
5
6
|
export type EntitlementStatic = components['schemas']['EntitlementStatic'];
|
|
@@ -18,10 +19,8 @@ export declare class EntitlementClient extends BaseClient {
|
|
|
18
19
|
constructor(config: OpenMeterConfig);
|
|
19
20
|
/**
|
|
20
21
|
* List all entitlements regardless of subject.
|
|
21
|
-
* @description
|
|
22
|
-
* Most useful for administrative purposes.
|
|
23
22
|
* @example
|
|
24
23
|
* const entitlement = await openmeter.entitlements.list()
|
|
25
24
|
*/
|
|
26
|
-
list(params?: ListEntitlementQueryParams, options?: RequestOptions): Promise<Entitlement[]
|
|
25
|
+
list(params?: ListEntitlementQueryParams, options?: RequestOptions): Promise<Entitlement[] | Paginated<Entitlement>>;
|
|
27
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlement.js","sourceRoot":"","sources":["../../../clients/entitlement.ts"],"names":[],"mappings":";;;AACA,2CAAyE;
|
|
1
|
+
{"version":3,"file":"entitlement.js","sourceRoot":"","sources":["../../../clients/entitlement.ts"],"names":[],"mappings":";;;AACA,2CAAyE;AA+BzE,MAAa,iBAAkB,SAAQ,sBAAU;IAC/C,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI,CACf,MAAmC,EACnC,OAAwB;QAExB,MAAM,YAAY,GAAG,MAAM;YACzB,CAAC,CAAC,sBAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC;YACtC,CAAC,CAAC,SAAS,CAAA;QACb,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,sBAAsB;YAC5B,MAAM,EAAE,KAAK;YACb,YAAY;YACZ,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF;AAxBD,8CAwBC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { components, operations } from '../schemas/openapi.cjs';
|
|
2
2
|
import { RequestOptions, BaseClient, OpenMeterConfig } from './client.cjs';
|
|
3
|
+
import { Paginated } from './pagination.cjs';
|
|
3
4
|
export type Feature = components['schemas']['Feature'];
|
|
4
5
|
export type FeatureCreateInputs = components['schemas']['FeatureCreateInputs'];
|
|
5
6
|
export type ListFeatureQueryParams = operations['listFeatures']['parameters']['query'];
|
|
@@ -33,7 +34,7 @@ export declare class FeatureClient extends BaseClient {
|
|
|
33
34
|
* @example
|
|
34
35
|
* const feature = await openmeter.features.list()
|
|
35
36
|
*/
|
|
36
|
-
list(params?: ListFeatureQueryParams, options?: RequestOptions): Promise<Feature[]
|
|
37
|
+
list(params?: ListFeatureQueryParams, options?: RequestOptions): Promise<Feature[] | Paginated<Feature>>;
|
|
37
38
|
/**
|
|
38
39
|
* Archive a feature
|
|
39
40
|
* @description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../clients/feature.ts"],"names":[],"mappings":";;;AACA,2CAAyE;
|
|
1
|
+
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../clients/feature.ts"],"names":[],"mappings":";;;AACA,2CAAyE;AAQzE,MAAa,aAAc,SAAQ,sBAAU;IAC3C,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACI,KAAK,CAAC,MAAM,CACjB,KAA0B,EAC1B,OAAwB;QAExB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,kBAAkB;YACxB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;YACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;YAC3B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CAAC,EAAU,EAAE,OAAwB;QACnD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,oBAAoB,EAAE,EAAE;YAC9B,MAAM,EAAE,KAAK;YACb,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI,CACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,YAAY,GAAG,MAAM;YACzB,CAAC,CAAC,sBAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC;YACtC,CAAC,CAAC,SAAS,CAAA;QACb,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,kBAAkB;YACxB,MAAM,EAAE,KAAK;YACb,YAAY;YACZ,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAwB;QACtD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,oBAAoB,EAAE,EAAE;YAC9B,MAAM,EAAE,QAAQ;YAChB,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF;AAnFD,sCAmFC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { components, operations } from '../schemas/openapi.cjs';
|
|
2
2
|
import { RequestOptions, BaseClient, OpenMeterConfig } from './client.cjs';
|
|
3
|
+
import { Paginated } from './pagination.cjs';
|
|
3
4
|
export type EntitlementGrant = components['schemas']['EntitlementGrant'];
|
|
4
5
|
export type EntitlementGrantCreateInput = components['schemas']['EntitlementGrantCreateInput'];
|
|
5
6
|
export type ListGrantQueryParams = operations['listGrants']['parameters']['query'];
|
|
@@ -11,7 +12,7 @@ export declare class GrantClient extends BaseClient {
|
|
|
11
12
|
* @example
|
|
12
13
|
* const grant = await openmeter.grants.list()
|
|
13
14
|
*/
|
|
14
|
-
list(params?: ListGrantQueryParams, options?: RequestOptions): Promise<EntitlementGrant[]
|
|
15
|
+
list(params?: ListGrantQueryParams, options?: RequestOptions): Promise<EntitlementGrant[] | Paginated<EntitlementGrant>>;
|
|
15
16
|
/**
|
|
16
17
|
* Void a grant
|
|
17
18
|
* @description
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grant.js","sourceRoot":"","sources":["../../../clients/grant.ts"],"names":[],"mappings":";;;AACA,2CAAyE;
|
|
1
|
+
{"version":3,"file":"grant.js","sourceRoot":"","sources":["../../../clients/grant.ts"],"names":[],"mappings":";;;AACA,2CAAyE;AAWzE,MAAa,WAAY,SAAQ,sBAAU;IACzC,YAAY,MAAuB;QACjC,KAAK,CAAC,MAAM,CAAC,CAAA;IACf,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI,CACf,MAA6B,EAC7B,OAAwB;QAExB,MAAM,YAAY,GAAG,MAAM;YACzB,CAAC,CAAC,sBAAU,CAAC,iBAAiB,CAAC,MAAM,CAAC;YACtC,CAAC,CAAC,SAAS,CAAA;QACb,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,KAAK;YACb,YAAY;YACZ,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,EAAU,EACV,OAAwB;QAExB,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;YACxB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,kBAAkB,EAAE,EAAE;YAC5B,OAAO;SACR,CAAC,CAAA;IACJ,CAAC;CACF;AA1CD,kCA0CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../clients/pagination.ts"],"names":[],"mappings":""}
|