@openmeter/client 1.0.0-beta-8eb475ed10bc → 1.0.0-beta-89a54f59c65e
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 +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/lib/wire.d.ts +4 -0
- package/dist/lib/wire.js +71 -15
- package/dist/models/operations/addons.d.ts +5 -4
- package/dist/models/operations/apps.d.ts +2 -1
- package/dist/models/operations/billing.d.ts +5 -4
- package/dist/models/operations/currencies.d.ts +7 -6
- package/dist/models/operations/customers.d.ts +30 -29
- package/dist/models/operations/defaults.d.ts +2 -1
- package/dist/models/operations/events.d.ts +3 -2
- package/dist/models/operations/features.d.ts +7 -6
- package/dist/models/operations/governance.d.ts +3 -2
- package/dist/models/operations/invoices.d.ts +4 -3
- package/dist/models/operations/llmCost.d.ts +4 -3
- package/dist/models/operations/meters.d.ts +9 -8
- package/dist/models/operations/planAddons.d.ts +7 -6
- package/dist/models/operations/plans.d.ts +5 -4
- package/dist/models/operations/subscriptions.d.ts +11 -10
- package/dist/models/operations/tax.d.ts +5 -4
- package/dist/models/schemas.d.ts +1072 -1072
- package/dist/models/schemas.js +1 -2
- package/dist/models/types.d.ts +254 -254
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
1
2
|
import type { CreatePlanRequestInput, ListPlansParamsFilter, Plan, PlanPagePaginatedResponse, SortQueryInput, UpsertPlanRequestInput } from '../types.js';
|
|
2
3
|
export interface ListPlansQuery {
|
|
3
4
|
/** Determines which page of the collection to retrieve. */
|
|
@@ -18,14 +19,14 @@ export interface ListPlansQuery {
|
|
|
18
19
|
/** Filter plans returned in the response. */
|
|
19
20
|
filter?: ListPlansParamsFilter;
|
|
20
21
|
}
|
|
21
|
-
export type ListPlansRequest = ListPlansQuery
|
|
22
|
+
export type ListPlansRequest = AcceptDateStrings<ListPlansQuery>;
|
|
22
23
|
export type ListPlansResponse = PlanPagePaginatedResponse;
|
|
23
|
-
export type CreatePlanRequest = CreatePlanRequestInput
|
|
24
|
+
export type CreatePlanRequest = AcceptDateStrings<CreatePlanRequestInput>;
|
|
24
25
|
export type CreatePlanResponse = Plan;
|
|
25
|
-
export type UpdatePlanRequest = {
|
|
26
|
+
export type UpdatePlanRequest = AcceptDateStrings<{
|
|
26
27
|
planId: string;
|
|
27
28
|
body: UpsertPlanRequestInput;
|
|
28
|
-
}
|
|
29
|
+
}>;
|
|
29
30
|
export type UpdatePlanResponse = Plan;
|
|
30
31
|
export type GetPlanRequest = {
|
|
31
32
|
planId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
1
2
|
import type { CreateSubscriptionAddonRequest as CreateSubscriptionAddonRequestBody, ListSubscriptionsParamsFilter, SortQueryInput, Subscription, SubscriptionAddon, SubscriptionAddonPagePaginatedResponse, SubscriptionCancelInput, SubscriptionChange, SubscriptionChangeResponse, SubscriptionCreate, SubscriptionPagePaginatedResponse } from '../types.js';
|
|
2
|
-
export type CreateSubscriptionRequest = SubscriptionCreate
|
|
3
|
+
export type CreateSubscriptionRequest = AcceptDateStrings<SubscriptionCreate>;
|
|
3
4
|
export type CreateSubscriptionResponse = Subscription;
|
|
4
5
|
export interface ListSubscriptionsQuery {
|
|
5
6
|
/** Determines which page of the collection to retrieve. */
|
|
@@ -21,30 +22,30 @@ export interface ListSubscriptionsQuery {
|
|
|
21
22
|
/** Filter subscriptions. */
|
|
22
23
|
filter?: ListSubscriptionsParamsFilter;
|
|
23
24
|
}
|
|
24
|
-
export type ListSubscriptionsRequest = ListSubscriptionsQuery
|
|
25
|
+
export type ListSubscriptionsRequest = AcceptDateStrings<ListSubscriptionsQuery>;
|
|
25
26
|
export type ListSubscriptionsResponse = SubscriptionPagePaginatedResponse;
|
|
26
27
|
export type GetSubscriptionRequest = {
|
|
27
28
|
subscriptionId: string;
|
|
28
29
|
};
|
|
29
30
|
export type GetSubscriptionResponse = Subscription;
|
|
30
|
-
export type CancelSubscriptionRequest = {
|
|
31
|
+
export type CancelSubscriptionRequest = AcceptDateStrings<{
|
|
31
32
|
subscriptionId: string;
|
|
32
33
|
body: SubscriptionCancelInput;
|
|
33
|
-
}
|
|
34
|
+
}>;
|
|
34
35
|
export type CancelSubscriptionResponse = Subscription;
|
|
35
36
|
export type UnscheduleCancelationRequest = {
|
|
36
37
|
subscriptionId: string;
|
|
37
38
|
};
|
|
38
39
|
export type UnscheduleCancelationResponse = Subscription;
|
|
39
|
-
export type ChangeSubscriptionRequest = {
|
|
40
|
+
export type ChangeSubscriptionRequest = AcceptDateStrings<{
|
|
40
41
|
subscriptionId: string;
|
|
41
42
|
body: SubscriptionChange;
|
|
42
|
-
}
|
|
43
|
+
}>;
|
|
43
44
|
export type ChangeSubscriptionResponse = SubscriptionChangeResponse;
|
|
44
|
-
export type CreateSubscriptionAddonRequest = {
|
|
45
|
+
export type CreateSubscriptionAddonRequest = AcceptDateStrings<{
|
|
45
46
|
subscriptionId: string;
|
|
46
47
|
body: CreateSubscriptionAddonRequestBody;
|
|
47
|
-
}
|
|
48
|
+
}>;
|
|
48
49
|
export type CreateSubscriptionAddonResponse = SubscriptionAddon;
|
|
49
50
|
export interface ListSubscriptionAddonsQuery {
|
|
50
51
|
/** Determines which page of the collection to retrieve. */
|
|
@@ -65,9 +66,9 @@ export interface ListSubscriptionAddonsQuery {
|
|
|
65
66
|
*/
|
|
66
67
|
sort?: SortQueryInput;
|
|
67
68
|
}
|
|
68
|
-
export type ListSubscriptionAddonsRequest = ListSubscriptionAddonsQuery & {
|
|
69
|
+
export type ListSubscriptionAddonsRequest = AcceptDateStrings<ListSubscriptionAddonsQuery & {
|
|
69
70
|
subscriptionId: string;
|
|
70
|
-
}
|
|
71
|
+
}>;
|
|
71
72
|
export type ListSubscriptionAddonsResponse = SubscriptionAddonPagePaginatedResponse;
|
|
72
73
|
export type GetSubscriptionAddonRequest = {
|
|
73
74
|
subscriptionId: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
1
2
|
import type { CreateTaxCodeRequest as CreateTaxCodeRequestBody, TaxCode, TaxCodePagePaginatedResponse, UpsertTaxCodeRequest as UpsertTaxCodeRequestBody } from '../types.js';
|
|
2
|
-
export type CreateTaxCodeRequest = CreateTaxCodeRequestBody
|
|
3
|
+
export type CreateTaxCodeRequest = AcceptDateStrings<CreateTaxCodeRequestBody>;
|
|
3
4
|
export type CreateTaxCodeResponse = TaxCode;
|
|
4
5
|
export type GetTaxCodeRequest = {
|
|
5
6
|
taxCodeId: string;
|
|
@@ -14,12 +15,12 @@ export interface ListTaxCodesQuery {
|
|
|
14
15
|
/** Include deleted tax codes in the response. */
|
|
15
16
|
includeDeleted?: boolean;
|
|
16
17
|
}
|
|
17
|
-
export type ListTaxCodesRequest = ListTaxCodesQuery
|
|
18
|
+
export type ListTaxCodesRequest = AcceptDateStrings<ListTaxCodesQuery>;
|
|
18
19
|
export type ListTaxCodesResponse = TaxCodePagePaginatedResponse;
|
|
19
|
-
export type UpsertTaxCodeRequest = {
|
|
20
|
+
export type UpsertTaxCodeRequest = AcceptDateStrings<{
|
|
20
21
|
taxCodeId: string;
|
|
21
22
|
body: UpsertTaxCodeRequestBody;
|
|
22
|
-
}
|
|
23
|
+
}>;
|
|
23
24
|
export type UpsertTaxCodeResponse = TaxCode;
|
|
24
25
|
export type DeleteTaxCodeRequest = {
|
|
25
26
|
taxCodeId: string;
|