@openmeter/client 1.0.0-beta-4d26c6d3c7fe → 1.0.0-beta-e7a04be10ed8
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/LICENSE +202 -0
- package/README.md +316 -55
- package/dist/core.d.ts +0 -1
- package/dist/core.js +8 -1
- package/dist/funcs/addons.d.ts +49 -1
- package/dist/funcs/addons.js +50 -1
- package/dist/funcs/apps.d.ts +14 -1
- package/dist/funcs/apps.js +15 -1
- package/dist/funcs/billing.d.ts +46 -1
- package/dist/funcs/billing.js +47 -1
- package/dist/funcs/currencies.d.ts +30 -1
- package/dist/funcs/currencies.js +31 -1
- package/dist/funcs/customers.d.ts +148 -1
- package/dist/funcs/customers.js +149 -1
- package/dist/funcs/defaults.d.ts +10 -1
- package/dist/funcs/defaults.js +11 -1
- package/dist/funcs/entitlements.d.ts +5 -1
- package/dist/funcs/entitlements.js +6 -1
- package/dist/funcs/events.d.ts +14 -1
- package/dist/funcs/events.js +15 -1
- package/dist/funcs/features.d.ts +42 -1
- package/dist/funcs/features.js +43 -1
- package/dist/funcs/index.d.ts +0 -3
- package/dist/funcs/index.js +1 -3
- package/dist/funcs/llmCost.d.ts +36 -1
- package/dist/funcs/llmCost.js +37 -1
- package/dist/funcs/meters.d.ts +53 -1
- package/dist/funcs/meters.js +54 -1
- package/dist/funcs/planAddons.d.ts +35 -1
- package/dist/funcs/planAddons.js +36 -1
- package/dist/funcs/plans.d.ts +49 -1
- package/dist/funcs/plans.js +50 -1
- package/dist/funcs/subscriptions.d.ts +59 -1
- package/dist/funcs/subscriptions.js +60 -1
- package/dist/funcs/tax.d.ts +25 -1
- package/dist/funcs/tax.js +26 -1
- package/dist/index.d.ts +4 -8
- package/dist/index.js +4 -5
- package/dist/lib/config.d.ts +0 -1
- package/dist/lib/config.js +1 -1
- package/dist/lib/encodings.d.ts +0 -1
- package/dist/lib/encodings.js +1 -1
- package/dist/lib/paginate.d.ts +56 -0
- package/dist/lib/paginate.js +60 -0
- package/dist/lib/request.d.ts +0 -1
- package/dist/lib/request.js +1 -1
- package/dist/lib/to-error.d.ts +0 -1
- package/dist/lib/to-error.js +1 -1
- package/dist/lib/types.d.ts +0 -1
- package/dist/lib/types.js +1 -1
- package/dist/lib/version.d.ts +1 -0
- package/dist/lib/version.js +5 -0
- package/dist/lib/wire.d.ts +3 -1
- package/dist/lib/wire.js +93 -4
- package/dist/models/errors.d.ts +13 -2
- package/dist/models/errors.js +31 -4
- package/dist/models/operations/addons.d.ts +0 -1
- package/dist/models/operations/addons.js +1 -1
- package/dist/models/operations/apps.d.ts +2 -5
- package/dist/models/operations/apps.js +1 -1
- package/dist/models/operations/billing.d.ts +0 -1
- package/dist/models/operations/billing.js +1 -1
- package/dist/models/operations/currencies.d.ts +0 -1
- package/dist/models/operations/currencies.js +1 -1
- package/dist/models/operations/customers.d.ts +3 -6
- package/dist/models/operations/customers.js +1 -1
- package/dist/models/operations/defaults.d.ts +0 -1
- package/dist/models/operations/defaults.js +1 -1
- package/dist/models/operations/entitlements.d.ts +0 -1
- package/dist/models/operations/entitlements.js +1 -1
- package/dist/models/operations/events.d.ts +0 -1
- package/dist/models/operations/events.js +1 -1
- package/dist/models/operations/features.d.ts +0 -1
- package/dist/models/operations/features.js +1 -1
- package/dist/models/operations/llmCost.d.ts +0 -1
- package/dist/models/operations/llmCost.js +1 -1
- package/dist/models/operations/meters.d.ts +0 -1
- package/dist/models/operations/meters.js +1 -1
- package/dist/models/operations/planAddons.d.ts +0 -1
- package/dist/models/operations/planAddons.js +1 -1
- package/dist/models/operations/plans.d.ts +0 -1
- package/dist/models/operations/plans.js +1 -1
- package/dist/models/operations/subscriptions.d.ts +0 -1
- package/dist/models/operations/subscriptions.js +1 -1
- package/dist/models/operations/tax.d.ts +0 -1
- package/dist/models/operations/tax.js +1 -1
- package/dist/models/schemas.d.ts +4453 -6950
- package/dist/models/schemas.js +1 -73
- package/dist/models/types.d.ts +381 -566
- package/dist/models/types.js +1 -1
- package/dist/sdk/addons.d.ts +60 -1
- package/dist/sdk/addons.js +63 -1
- package/dist/sdk/apps.d.ts +25 -1
- package/dist/sdk/apps.js +28 -1
- package/dist/sdk/billing.d.ts +57 -1
- package/dist/sdk/billing.js +60 -1
- package/dist/sdk/customers.d.ts +194 -1
- package/dist/sdk/customers.js +203 -1
- package/dist/sdk/defaults.d.ts +10 -1
- package/dist/sdk/defaults.js +11 -1
- package/dist/sdk/entitlements.d.ts +5 -1
- package/dist/sdk/entitlements.js +6 -1
- package/dist/sdk/events.d.ts +25 -1
- package/dist/sdk/events.js +28 -1
- package/dist/sdk/features.d.ts +53 -1
- package/dist/sdk/features.js +56 -1
- package/dist/sdk/internal.d.ts +89 -0
- package/dist/sdk/internal.js +113 -0
- package/dist/sdk/llmCost.d.ts +57 -1
- package/dist/sdk/llmCost.js +62 -1
- package/dist/sdk/meters.d.ts +64 -1
- package/dist/sdk/meters.js +67 -1
- package/dist/sdk/planAddons.d.ts +46 -1
- package/dist/sdk/planAddons.js +49 -1
- package/dist/sdk/plans.d.ts +60 -1
- package/dist/sdk/plans.js +63 -1
- package/dist/sdk/sdk.d.ts +9 -10
- package/dist/sdk/sdk.js +11 -15
- package/dist/sdk/subscriptions.d.ts +72 -3
- package/dist/sdk/subscriptions.js +77 -5
- package/dist/sdk/tax.d.ts +34 -1
- package/dist/sdk/tax.js +37 -1
- package/package.json +28 -4
- package/dist/funcs/governance.d.ts +0 -5
- package/dist/funcs/governance.js +0 -34
- package/dist/funcs/invoices.d.ts +0 -8
- package/dist/funcs/invoices.js +0 -81
- package/dist/models/operations/governance.d.ts +0 -10
- package/dist/models/operations/governance.js +0 -2
- package/dist/models/operations/invoices.d.ts +0 -48
- package/dist/models/operations/invoices.js +0 -2
- package/dist/sdk/currencies.d.ts +0 -12
- package/dist/sdk/currencies.js +0 -21
- package/dist/sdk/governance.d.ts +0 -9
- package/dist/sdk/governance.js +0 -12
- package/dist/sdk/invoices.d.ts +0 -12
- package/dist/sdk/invoices.js +0 -21
package/dist/models/schemas.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
export const labels = z
|
|
3
4
|
.record(z.string(), z.string())
|
|
@@ -4533,37 +4534,6 @@ export const updateBillingProfileResponse = profile;
|
|
|
4533
4534
|
export const deleteBillingProfilePathParams = z.object({
|
|
4534
4535
|
id: ulid,
|
|
4535
4536
|
});
|
|
4536
|
-
export const listInvoicesQueryParams = z.object({
|
|
4537
|
-
page: z
|
|
4538
|
-
.object({
|
|
4539
|
-
size: z.coerce
|
|
4540
|
-
.number()
|
|
4541
|
-
.int()
|
|
4542
|
-
.optional()
|
|
4543
|
-
.describe('The number of items to include per page.'),
|
|
4544
|
-
number: z.coerce.number().int().optional().describe('The page number.'),
|
|
4545
|
-
})
|
|
4546
|
-
.optional()
|
|
4547
|
-
.describe('Determines which page of the collection to retrieve.'),
|
|
4548
|
-
sort: sortQuery.optional(),
|
|
4549
|
-
filter: listInvoicesParamsFilter.optional(),
|
|
4550
|
-
});
|
|
4551
|
-
export const listInvoicesResponse = z.object({
|
|
4552
|
-
data: z.array(invoice),
|
|
4553
|
-
meta: paginatedMeta,
|
|
4554
|
-
});
|
|
4555
|
-
export const getInvoicePathParams = z.object({
|
|
4556
|
-
invoiceId: ulid,
|
|
4557
|
-
});
|
|
4558
|
-
export const getInvoiceResponse = invoice;
|
|
4559
|
-
export const updateInvoicePathParams = z.object({
|
|
4560
|
-
invoiceId: ulid,
|
|
4561
|
-
});
|
|
4562
|
-
export const updateInvoiceBody = updateInvoiceRequest;
|
|
4563
|
-
export const updateInvoiceResponse = invoice;
|
|
4564
|
-
export const deleteInvoicePathParams = z.object({
|
|
4565
|
-
invoiceId: ulid,
|
|
4566
|
-
});
|
|
4567
4537
|
export const createTaxCodeBody = createTaxCodeRequest;
|
|
4568
4538
|
export const createTaxCodeResponse = taxCode;
|
|
4569
4539
|
export const getTaxCodePathParams = z.object({
|
|
@@ -4855,11 +4825,6 @@ export const deletePlanAddonPathParams = z.object({
|
|
|
4855
4825
|
export const getOrganizationDefaultTaxCodesResponse = organizationDefaultTaxCodes;
|
|
4856
4826
|
export const updateOrganizationDefaultTaxCodesBody = updateOrganizationDefaultTaxCodesRequest;
|
|
4857
4827
|
export const updateOrganizationDefaultTaxCodesResponse = organizationDefaultTaxCodes;
|
|
4858
|
-
export const queryGovernanceAccessQueryParams = z.object({
|
|
4859
|
-
page: cursorPaginationQueryPage.optional(),
|
|
4860
|
-
});
|
|
4861
|
-
export const queryGovernanceAccessBody = governanceQueryRequest;
|
|
4862
|
-
export const queryGovernanceAccessResponse = governanceQueryResponse;
|
|
4863
4828
|
export const labelsWire = z
|
|
4864
4829
|
.record(z.string(), z.string())
|
|
4865
4830
|
.describe('Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types. Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "\\_".');
|
|
@@ -9413,37 +9378,6 @@ export const updateBillingProfileResponseWire = profileWire;
|
|
|
9413
9378
|
export const deleteBillingProfilePathParamsWire = z.object({
|
|
9414
9379
|
id: ulidWire,
|
|
9415
9380
|
});
|
|
9416
|
-
export const listInvoicesQueryParamsWire = z.object({
|
|
9417
|
-
page: z
|
|
9418
|
-
.strictObject({
|
|
9419
|
-
size: z.coerce
|
|
9420
|
-
.number()
|
|
9421
|
-
.int()
|
|
9422
|
-
.optional()
|
|
9423
|
-
.describe('The number of items to include per page.'),
|
|
9424
|
-
number: z.coerce.number().int().optional().describe('The page number.'),
|
|
9425
|
-
})
|
|
9426
|
-
.optional()
|
|
9427
|
-
.describe('Determines which page of the collection to retrieve.'),
|
|
9428
|
-
sort: sortQueryWire.optional(),
|
|
9429
|
-
filter: listInvoicesParamsFilterWire.optional(),
|
|
9430
|
-
});
|
|
9431
|
-
export const listInvoicesResponseWire = z.strictObject({
|
|
9432
|
-
data: z.array(invoiceWire),
|
|
9433
|
-
meta: paginatedMetaWire,
|
|
9434
|
-
});
|
|
9435
|
-
export const getInvoicePathParamsWire = z.object({
|
|
9436
|
-
invoiceId: ulidWire,
|
|
9437
|
-
});
|
|
9438
|
-
export const getInvoiceResponseWire = invoiceWire;
|
|
9439
|
-
export const updateInvoicePathParamsWire = z.object({
|
|
9440
|
-
invoiceId: ulidWire,
|
|
9441
|
-
});
|
|
9442
|
-
export const updateInvoiceBodyWire = updateInvoiceRequestWire;
|
|
9443
|
-
export const updateInvoiceResponseWire = invoiceWire;
|
|
9444
|
-
export const deleteInvoicePathParamsWire = z.object({
|
|
9445
|
-
invoiceId: ulidWire,
|
|
9446
|
-
});
|
|
9447
9381
|
export const createTaxCodeBodyWire = createTaxCodeRequestWire;
|
|
9448
9382
|
export const createTaxCodeResponseWire = taxCodeWire;
|
|
9449
9383
|
export const getTaxCodePathParamsWire = z.object({
|
|
@@ -9735,9 +9669,3 @@ export const deletePlanAddonPathParamsWire = z.object({
|
|
|
9735
9669
|
export const getOrganizationDefaultTaxCodesResponseWire = organizationDefaultTaxCodesWire;
|
|
9736
9670
|
export const updateOrganizationDefaultTaxCodesBodyWire = updateOrganizationDefaultTaxCodesRequestWire;
|
|
9737
9671
|
export const updateOrganizationDefaultTaxCodesResponseWire = organizationDefaultTaxCodesWire;
|
|
9738
|
-
export const queryGovernanceAccessQueryParamsWire = z.object({
|
|
9739
|
-
page: cursorPaginationQueryPageWire.optional(),
|
|
9740
|
-
});
|
|
9741
|
-
export const queryGovernanceAccessBodyWire = governanceQueryRequestWire;
|
|
9742
|
-
export const queryGovernanceAccessResponseWire = governanceQueryResponseWire;
|
|
9743
|
-
//# sourceMappingURL=schemas.js.map
|