@openmeter/client 1.0.0-beta-89ad46498d71 → 1.0.0-beta-8da3e943bb2c
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 +10 -4
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/sdk/entitlements.d.ts +1 -9
- package/dist/sdk/entitlements.js +1 -11
- package/dist/sdk/internal.d.ts +15 -0
- package/dist/sdk/internal.js +21 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,6 +36,7 @@ TypeSpec definitions and ships fully-typed request and response models.
|
|
|
36
36
|
- [Defaults](#defaults)
|
|
37
37
|
- [Internal Operations](#internal-operations)
|
|
38
38
|
- [Internal Customers](#internal-customers)
|
|
39
|
+
- [Internal Entitlements](#internal-entitlements)
|
|
39
40
|
- [Internal Subscriptions](#internal-subscriptions)
|
|
40
41
|
- [Internal Apps](#internal-apps)
|
|
41
42
|
- [Internal Invoices](#internal-invoices)
|
|
@@ -305,10 +306,9 @@ The full call path, HTTP route, and a short description are listed below.
|
|
|
305
306
|
|
|
306
307
|
### Entitlements
|
|
307
308
|
|
|
308
|
-
| Method | HTTP
|
|
309
|
-
| ---------------------------------------- |
|
|
310
|
-
| `client.entitlements.listCustomerAccess` | `GET /openmeter/customers/{customerId}/entitlement-access`
|
|
311
|
-
| `client.entitlements.getCustomerAccess` | `GET /openmeter/customers/{customerId}/entitlement-access/features/{featureKey}` | Get the customer's access to a single feature. |
|
|
309
|
+
| Method | HTTP | Description |
|
|
310
|
+
| ---------------------------------------- | ---------------------------------------------------------- | -------------------------------- |
|
|
311
|
+
| `client.entitlements.listCustomerAccess` | `GET /openmeter/customers/{customerId}/entitlement-access` | List customer entitlement access |
|
|
312
312
|
|
|
313
313
|
### Subscriptions
|
|
314
314
|
|
|
@@ -428,6 +428,12 @@ they can change or be removed without notice or semver consideration.
|
|
|
428
428
|
| `client.internal.customers.charges.list` | `GET /openmeter/customers/{customerId}/charges` | List customer charges. Returns the customer's charges that are represented as either flat fee or usage-based charges. |
|
|
429
429
|
| `client.internal.customers.charges.create` | `POST /openmeter/customers/{customerId}/charges` | Create customer charge. |
|
|
430
430
|
|
|
431
|
+
### Internal Entitlements
|
|
432
|
+
|
|
433
|
+
| Method | HTTP | Description |
|
|
434
|
+
| ------------------------------------------------ | -------------------------------------------------------------------------------- | ---------------------------------------------- |
|
|
435
|
+
| `client.internal.entitlements.getCustomerAccess` | `GET /openmeter/customers/{customerId}/entitlement-access/features/{featureKey}` | Get the customer's access to a single feature. |
|
|
436
|
+
|
|
431
437
|
### Internal Subscriptions
|
|
432
438
|
|
|
433
439
|
| Method | HTTP | Description |
|
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-8da3e943bb2c";
|
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-8da3e943bb2c';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type { ListCustomerEntitlementAccessRequest, ListCustomerEntitlementAccessResponse
|
|
3
|
+
import type { ListCustomerEntitlementAccessRequest, ListCustomerEntitlementAccessResponse } from '../models/operations/entitlements.js';
|
|
4
4
|
export declare class Entitlements {
|
|
5
5
|
private readonly _client;
|
|
6
6
|
constructor(_client: Client);
|
|
@@ -10,12 +10,4 @@ export declare class Entitlements {
|
|
|
10
10
|
* GET /openmeter/customers/{customerId}/entitlement-access
|
|
11
11
|
*/
|
|
12
12
|
listCustomerAccess(request: ListCustomerEntitlementAccessRequest, options?: RequestOptions): Promise<ListCustomerEntitlementAccessResponse>;
|
|
13
|
-
/**
|
|
14
|
-
* Get customer entitlement access
|
|
15
|
-
*
|
|
16
|
-
* Get the customer's access to a single feature.
|
|
17
|
-
*
|
|
18
|
-
* GET /openmeter/customers/{customerId}/entitlement-access/features/{featureKey}
|
|
19
|
-
*/
|
|
20
|
-
getCustomerAccess(request: GetCustomerEntitlementAccessRequest, options?: RequestOptions): Promise<GetCustomerEntitlementAccessResponse>;
|
|
21
13
|
}
|
package/dist/sdk/entitlements.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
2
|
import { unwrap } from '../lib/types.js';
|
|
3
|
-
import { listCustomerEntitlementAccess
|
|
3
|
+
import { listCustomerEntitlementAccess } from '../funcs/entitlements.js';
|
|
4
4
|
export class Entitlements {
|
|
5
5
|
_client;
|
|
6
6
|
constructor(_client) {
|
|
@@ -14,14 +14,4 @@ export class Entitlements {
|
|
|
14
14
|
async listCustomerAccess(request, options) {
|
|
15
15
|
return unwrap(await listCustomerEntitlementAccess(this._client, request, options));
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Get customer entitlement access
|
|
19
|
-
*
|
|
20
|
-
* Get the customer's access to a single feature.
|
|
21
|
-
*
|
|
22
|
-
* GET /openmeter/customers/{customerId}/entitlement-access/features/{featureKey}
|
|
23
|
-
*/
|
|
24
|
-
async getCustomerAccess(request, options) {
|
|
25
|
-
return unwrap(await getCustomerEntitlementAccess(this._client, request, options));
|
|
26
|
-
}
|
|
27
17
|
}
|
package/dist/sdk/internal.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
3
|
import type { CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
|
|
4
|
+
import type { GetCustomerEntitlementAccessRequest, GetCustomerEntitlementAccessResponse } from '../models/operations/entitlements.js';
|
|
4
5
|
import type { UnscheduleSubscriptionRequest, UnscheduleSubscriptionResponse, RestoreSubscriptionRequest, RestoreSubscriptionResponse, MigrateSubscriptionRequest, MigrateSubscriptionResponse, CreateSubscriptionAddonRequest, CreateSubscriptionAddonResponse, UpdateSubscriptionAddonRequest, UpdateSubscriptionAddonResponse } from '../models/operations/subscriptions.js';
|
|
5
6
|
import type { UninstallAppRequest, UninstallAppResponse, UpdateAppRequest, UpdateAppResponse, ListAppCatalogRequest, ListAppCatalogResponse, GetAppCatalogItemRequest, GetAppCatalogItemResponse, InstallAppRequest, InstallAppResponse } from '../models/operations/apps.js';
|
|
6
7
|
import type { ListInvoicesRequest, ListInvoicesResponse, GetInvoiceRequest, GetInvoiceResponse, UpdateInvoiceRequest, UpdateInvoiceResponse, DeleteInvoiceRequest, DeleteInvoiceResponse, AdvanceInvoiceRequest, AdvanceInvoiceResponse, ApproveInvoiceRequest, ApproveInvoiceResponse, RetryInvoiceRequest, RetryInvoiceResponse, SnapshotQuantitiesInvoiceRequest, SnapshotQuantitiesInvoiceResponse } from '../models/operations/invoices.js';
|
|
@@ -19,6 +20,8 @@ export declare class Internal {
|
|
|
19
20
|
constructor(_client: Client);
|
|
20
21
|
private _customers?;
|
|
21
22
|
get customers(): InternalCustomers;
|
|
23
|
+
private _entitlements?;
|
|
24
|
+
get entitlements(): InternalEntitlements;
|
|
22
25
|
private _subscriptions?;
|
|
23
26
|
get subscriptions(): InternalSubscriptions;
|
|
24
27
|
private _apps?;
|
|
@@ -122,6 +125,18 @@ export declare class InternalCustomersCharges {
|
|
|
122
125
|
*/
|
|
123
126
|
create(request: CreateCustomerChargesRequest, options?: RequestOptions): Promise<CreateCustomerChargesResponse>;
|
|
124
127
|
}
|
|
128
|
+
export declare class InternalEntitlements {
|
|
129
|
+
private readonly _client;
|
|
130
|
+
constructor(_client: Client);
|
|
131
|
+
/**
|
|
132
|
+
* Get customer entitlement access
|
|
133
|
+
*
|
|
134
|
+
* Get the customer's access to a single feature.
|
|
135
|
+
*
|
|
136
|
+
* GET /openmeter/customers/{customerId}/entitlement-access/features/{featureKey}
|
|
137
|
+
*/
|
|
138
|
+
getCustomerAccess(request: GetCustomerEntitlementAccessRequest, options?: RequestOptions): Promise<GetCustomerEntitlementAccessResponse>;
|
|
139
|
+
}
|
|
125
140
|
export declare class InternalSubscriptions {
|
|
126
141
|
private readonly _client;
|
|
127
142
|
constructor(_client: Client);
|
package/dist/sdk/internal.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { unwrap } from '../lib/types.js';
|
|
3
3
|
import { paginatePages } from '../lib/paginate.js';
|
|
4
4
|
import { createCustomerEntitlement, voidCreditGrant, listCustomerCharges, createCustomerCharges, } from '../funcs/customers.js';
|
|
5
|
+
import { getCustomerEntitlementAccess } from '../funcs/entitlements.js';
|
|
5
6
|
import { unscheduleSubscription, restoreSubscription, migrateSubscription, createSubscriptionAddon, updateSubscriptionAddon, } from '../funcs/subscriptions.js';
|
|
6
7
|
import { uninstallApp, updateApp, listAppCatalog, getAppCatalogItem, installApp, } from '../funcs/apps.js';
|
|
7
8
|
import { listInvoices, getInvoice, updateInvoice, deleteInvoice, advanceInvoice, approveInvoice, retryInvoice, snapshotQuantitiesInvoice, } from '../funcs/invoices.js';
|
|
@@ -23,6 +24,10 @@ export class Internal {
|
|
|
23
24
|
get customers() {
|
|
24
25
|
return (this._customers ??= new InternalCustomers(this._client));
|
|
25
26
|
}
|
|
27
|
+
_entitlements;
|
|
28
|
+
get entitlements() {
|
|
29
|
+
return (this._entitlements ??= new InternalEntitlements(this._client));
|
|
30
|
+
}
|
|
26
31
|
_subscriptions;
|
|
27
32
|
get subscriptions() {
|
|
28
33
|
return (this._subscriptions ??= new InternalSubscriptions(this._client));
|
|
@@ -168,6 +173,22 @@ export class InternalCustomersCharges {
|
|
|
168
173
|
return unwrap(await createCustomerCharges(this._client, request, options));
|
|
169
174
|
}
|
|
170
175
|
}
|
|
176
|
+
export class InternalEntitlements {
|
|
177
|
+
_client;
|
|
178
|
+
constructor(_client) {
|
|
179
|
+
this._client = _client;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Get customer entitlement access
|
|
183
|
+
*
|
|
184
|
+
* Get the customer's access to a single feature.
|
|
185
|
+
*
|
|
186
|
+
* GET /openmeter/customers/{customerId}/entitlement-access/features/{featureKey}
|
|
187
|
+
*/
|
|
188
|
+
async getCustomerAccess(request, options) {
|
|
189
|
+
return unwrap(await getCustomerEntitlementAccess(this._client, request, options));
|
|
190
|
+
}
|
|
191
|
+
}
|
|
171
192
|
export class InternalSubscriptions {
|
|
172
193
|
_client;
|
|
173
194
|
constructor(_client) {
|