@openmeter/client 1.0.0-beta.233 → 1.0.0-beta.234
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 +52 -14
- package/dist/funcs/customers.d.ts +112 -1
- package/dist/funcs/customers.js +430 -0
- package/dist/funcs/entitlements.d.ts +38 -1
- package/dist/funcs/entitlements.js +169 -6
- package/dist/funcs/grants.d.ts +24 -0
- package/dist/funcs/grants.js +78 -0
- package/dist/funcs/index.d.ts +2 -0
- package/dist/funcs/index.js +2 -0
- package/dist/funcs/notifications.d.ts +43 -0
- package/dist/funcs/notifications.js +163 -0
- package/dist/index.d.ts +3 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/customers.d.ts +109 -1
- package/dist/models/operations/entitlements.d.ts +59 -4
- package/dist/models/operations/grants.d.ts +43 -0
- package/dist/models/operations/grants.js +2 -0
- package/dist/models/operations/notifications.d.ts +46 -0
- package/dist/models/operations/notifications.js +2 -0
- package/dist/models/schemas.d.ts +6549 -2716
- package/dist/models/schemas.js +1795 -360
- package/dist/models/types.d.ts +1175 -228
- package/dist/sdk/apps.d.ts +20 -1
- package/dist/sdk/apps.js +24 -1
- package/dist/sdk/entitlements.d.ts +1 -9
- package/dist/sdk/entitlements.js +1 -11
- package/dist/sdk/internal.d.ts +324 -22
- package/dist/sdk/internal.js +397 -25
- package/dist/sdk/notifications.d.ts +58 -0
- package/dist/sdk/notifications.js +72 -0
- package/dist/sdk/subscriptions.d.ts +1 -9
- package/dist/sdk/subscriptions.js +1 -11
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Client } from '../core.js';
|
|
2
|
+
import { type Result, type RequestOptions } from '../lib/types.js';
|
|
3
|
+
import type { ListGrantsRequest, ListGrantsResponse, VoidGrantRequest, VoidGrantResponse } from '../models/operations/grants.js';
|
|
4
|
+
/**
|
|
5
|
+
* List grants
|
|
6
|
+
*
|
|
7
|
+
* List the grants of all customers and entitlements. To list the grants of a
|
|
8
|
+
* single entitlement, use the customer entitlement grants endpoint.
|
|
9
|
+
*
|
|
10
|
+
* Deleted grants are excluded unless `include_deleted` is set. Voided and expired
|
|
11
|
+
* grants are always included, as they are part of the balance history.
|
|
12
|
+
*
|
|
13
|
+
* GET /openmeter/grants
|
|
14
|
+
*/
|
|
15
|
+
export declare function listGrants(client: Client, req?: ListGrantsRequest, options?: RequestOptions): Promise<Result<ListGrantsResponse>>;
|
|
16
|
+
/**
|
|
17
|
+
* Void grant
|
|
18
|
+
*
|
|
19
|
+
* Void a grant so it no longer adds to the balance. Usage already deducted from
|
|
20
|
+
* the grant is kept.
|
|
21
|
+
*
|
|
22
|
+
* DELETE /openmeter/grants/{grantId}
|
|
23
|
+
*/
|
|
24
|
+
export declare function voidGrant(client: Client, req: VoidGrantRequest, options?: RequestOptions): Promise<Result<VoidGrantResponse>>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
|
+
import { http } from '../core.js';
|
|
3
|
+
import { request } from '../lib/request.js';
|
|
4
|
+
import { toURLSearchParams, encodeSort } from '../lib/encodings.js';
|
|
5
|
+
import { toWire, toPathWire, fromWire, assertValid, toSnakeCase, } from '../lib/wire.js';
|
|
6
|
+
import * as schemas from '../models/schemas.js';
|
|
7
|
+
/**
|
|
8
|
+
* List grants
|
|
9
|
+
*
|
|
10
|
+
* List the grants of all customers and entitlements. To list the grants of a
|
|
11
|
+
* single entitlement, use the customer entitlement grants endpoint.
|
|
12
|
+
*
|
|
13
|
+
* Deleted grants are excluded unless `include_deleted` is set. Voided and expired
|
|
14
|
+
* grants are always included, as they are part of the balance history.
|
|
15
|
+
*
|
|
16
|
+
* GET /openmeter/grants
|
|
17
|
+
*/
|
|
18
|
+
export function listGrants(client, req = {}, options) {
|
|
19
|
+
return request(() => {
|
|
20
|
+
if (client._options.validate && req.sort !== undefined) {
|
|
21
|
+
assertValid(schemas.listGrantsQueryParams.shape.sort, req.sort);
|
|
22
|
+
}
|
|
23
|
+
const query = toWire({
|
|
24
|
+
page: req.page,
|
|
25
|
+
sort: encodeSort(req.sort, toSnakeCase),
|
|
26
|
+
filter: req.filter,
|
|
27
|
+
includeDeleted: req.includeDeleted,
|
|
28
|
+
}, schemas.listGrantsQueryParams);
|
|
29
|
+
if (client._options.validate) {
|
|
30
|
+
assertValid(schemas.listGrantsQueryParamsWire, query);
|
|
31
|
+
}
|
|
32
|
+
const searchParams = toURLSearchParams(query);
|
|
33
|
+
return http(client)
|
|
34
|
+
.get('openmeter/grants', { ...options, searchParams })
|
|
35
|
+
.json()
|
|
36
|
+
.then((data) => {
|
|
37
|
+
if (client._options.validate) {
|
|
38
|
+
assertValid(schemas.listGrantsResponseWire, data);
|
|
39
|
+
}
|
|
40
|
+
return fromWire(data, schemas.listGrantsResponse);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Void grant
|
|
46
|
+
*
|
|
47
|
+
* Void a grant so it no longer adds to the balance. Usage already deducted from
|
|
48
|
+
* the grant is kept.
|
|
49
|
+
*
|
|
50
|
+
* DELETE /openmeter/grants/{grantId}
|
|
51
|
+
*/
|
|
52
|
+
export function voidGrant(client, req, options) {
|
|
53
|
+
return request(async () => {
|
|
54
|
+
const pathParamsInput = {
|
|
55
|
+
grantId: req.grantId,
|
|
56
|
+
};
|
|
57
|
+
const pathParams = client._options.validate
|
|
58
|
+
? toPathWire(pathParamsInput, schemas.voidGrantPathParams)
|
|
59
|
+
: pathParamsInput;
|
|
60
|
+
if (client._options.validate) {
|
|
61
|
+
assertValid(schemas.voidGrantPathParamsWire, pathParams);
|
|
62
|
+
}
|
|
63
|
+
const path = `openmeter/grants/${(() => {
|
|
64
|
+
if (pathParams.grantId === undefined) {
|
|
65
|
+
throw new Error('missing path parameter: grantId');
|
|
66
|
+
}
|
|
67
|
+
return encodeURIComponent(String(pathParams.grantId));
|
|
68
|
+
})()}`;
|
|
69
|
+
const query = toWire({
|
|
70
|
+
voidedAt: req.voidedAt,
|
|
71
|
+
}, schemas.voidGrantQueryParams);
|
|
72
|
+
if (client._options.validate) {
|
|
73
|
+
assertValid(schemas.voidGrantQueryParamsWire, query);
|
|
74
|
+
}
|
|
75
|
+
const searchParams = toURLSearchParams(query);
|
|
76
|
+
await http(client).delete(path, { ...options, searchParams });
|
|
77
|
+
});
|
|
78
|
+
}
|
package/dist/funcs/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './events.js';
|
|
|
2
2
|
export * from './meters.js';
|
|
3
3
|
export * from './customers.js';
|
|
4
4
|
export * from './entitlements.js';
|
|
5
|
+
export * from './grants.js';
|
|
5
6
|
export * from './subscriptions.js';
|
|
6
7
|
export * from './apps.js';
|
|
7
8
|
export * from './billing.js';
|
|
@@ -16,3 +17,4 @@ export * from './addons.js';
|
|
|
16
17
|
export * from './planAddons.js';
|
|
17
18
|
export * from './defaults.js';
|
|
18
19
|
export * from './entitlementAccess.js';
|
|
20
|
+
export * from './notifications.js';
|
package/dist/funcs/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './events.js';
|
|
|
3
3
|
export * from './meters.js';
|
|
4
4
|
export * from './customers.js';
|
|
5
5
|
export * from './entitlements.js';
|
|
6
|
+
export * from './grants.js';
|
|
6
7
|
export * from './subscriptions.js';
|
|
7
8
|
export * from './apps.js';
|
|
8
9
|
export * from './billing.js';
|
|
@@ -17,3 +18,4 @@ export * from './addons.js';
|
|
|
17
18
|
export * from './planAddons.js';
|
|
18
19
|
export * from './defaults.js';
|
|
19
20
|
export * from './entitlementAccess.js';
|
|
21
|
+
export * from './notifications.js';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type Client } from '../core.js';
|
|
2
|
+
import { type Result, type RequestOptions } from '../lib/types.js';
|
|
3
|
+
import type { ListNotificationChannelsRequest, ListNotificationChannelsResponse, CreateNotificationChannelRequest, CreateNotificationChannelResponse, GetNotificationChannelRequest, GetNotificationChannelResponse, UpdateNotificationChannelRequest, UpdateNotificationChannelResponse, DeleteNotificationChannelRequest, DeleteNotificationChannelResponse } from '../models/operations/notifications.js';
|
|
4
|
+
/**
|
|
5
|
+
* List notification channels
|
|
6
|
+
*
|
|
7
|
+
* List all notification channels.
|
|
8
|
+
*
|
|
9
|
+
* GET /openmeter/notification/channels
|
|
10
|
+
*/
|
|
11
|
+
export declare function listNotificationChannels(client: Client, req?: ListNotificationChannelsRequest, options?: RequestOptions): Promise<Result<ListNotificationChannelsResponse>>;
|
|
12
|
+
/**
|
|
13
|
+
* Create notification channel
|
|
14
|
+
*
|
|
15
|
+
* Create a notification channel.
|
|
16
|
+
*
|
|
17
|
+
* POST /openmeter/notification/channels
|
|
18
|
+
*/
|
|
19
|
+
export declare function createNotificationChannel(client: Client, req: CreateNotificationChannelRequest, options?: RequestOptions): Promise<Result<CreateNotificationChannelResponse>>;
|
|
20
|
+
/**
|
|
21
|
+
* Get notification channel
|
|
22
|
+
*
|
|
23
|
+
* Get a notification channel by id.
|
|
24
|
+
*
|
|
25
|
+
* GET /openmeter/notification/channels/{notificationChannelId}
|
|
26
|
+
*/
|
|
27
|
+
export declare function getNotificationChannel(client: Client, req: GetNotificationChannelRequest, options?: RequestOptions): Promise<Result<GetNotificationChannelResponse>>;
|
|
28
|
+
/**
|
|
29
|
+
* Update notification channel
|
|
30
|
+
*
|
|
31
|
+
* Update a notification channel by id.
|
|
32
|
+
*
|
|
33
|
+
* PUT /openmeter/notification/channels/{notificationChannelId}
|
|
34
|
+
*/
|
|
35
|
+
export declare function updateNotificationChannel(client: Client, req: UpdateNotificationChannelRequest, options?: RequestOptions): Promise<Result<UpdateNotificationChannelResponse>>;
|
|
36
|
+
/**
|
|
37
|
+
* Delete notification channel
|
|
38
|
+
*
|
|
39
|
+
* Delete a notification channel by id.
|
|
40
|
+
*
|
|
41
|
+
* DELETE /openmeter/notification/channels/{notificationChannelId}
|
|
42
|
+
*/
|
|
43
|
+
export declare function deleteNotificationChannel(client: Client, req: DeleteNotificationChannelRequest, options?: RequestOptions): Promise<Result<DeleteNotificationChannelResponse>>;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
|
+
import { http } from '../core.js';
|
|
3
|
+
import { request } from '../lib/request.js';
|
|
4
|
+
import { toURLSearchParams, encodeSort } from '../lib/encodings.js';
|
|
5
|
+
import { toWire, toPathWire, fromWire, assertValid, toSnakeCase, } from '../lib/wire.js';
|
|
6
|
+
import * as schemas from '../models/schemas.js';
|
|
7
|
+
/**
|
|
8
|
+
* List notification channels
|
|
9
|
+
*
|
|
10
|
+
* List all notification channels.
|
|
11
|
+
*
|
|
12
|
+
* GET /openmeter/notification/channels
|
|
13
|
+
*/
|
|
14
|
+
export function listNotificationChannels(client, req = {}, options) {
|
|
15
|
+
return request(() => {
|
|
16
|
+
if (client._options.validate && req.sort !== undefined) {
|
|
17
|
+
assertValid(schemas.listNotificationChannelsQueryParams.shape.sort, req.sort);
|
|
18
|
+
}
|
|
19
|
+
const query = toWire({
|
|
20
|
+
page: req.page,
|
|
21
|
+
sort: encodeSort(req.sort, toSnakeCase),
|
|
22
|
+
filter: req.filter,
|
|
23
|
+
}, schemas.listNotificationChannelsQueryParams);
|
|
24
|
+
if (client._options.validate) {
|
|
25
|
+
assertValid(schemas.listNotificationChannelsQueryParamsWire, query);
|
|
26
|
+
}
|
|
27
|
+
const searchParams = toURLSearchParams(query);
|
|
28
|
+
return http(client)
|
|
29
|
+
.get('openmeter/notification/channels', { ...options, searchParams })
|
|
30
|
+
.json()
|
|
31
|
+
.then((data) => {
|
|
32
|
+
if (client._options.validate) {
|
|
33
|
+
assertValid(schemas.listNotificationChannelsResponseWire, data);
|
|
34
|
+
}
|
|
35
|
+
return fromWire(data, schemas.listNotificationChannelsResponse);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Create notification channel
|
|
41
|
+
*
|
|
42
|
+
* Create a notification channel.
|
|
43
|
+
*
|
|
44
|
+
* POST /openmeter/notification/channels
|
|
45
|
+
*/
|
|
46
|
+
export function createNotificationChannel(client, req, options) {
|
|
47
|
+
return request(() => {
|
|
48
|
+
const body = toWire(req, schemas.createNotificationChannelBody);
|
|
49
|
+
if (client._options.validate) {
|
|
50
|
+
assertValid(schemas.createNotificationChannelBodyWire, body);
|
|
51
|
+
}
|
|
52
|
+
return http(client)
|
|
53
|
+
.post('openmeter/notification/channels', { ...options, json: body })
|
|
54
|
+
.json()
|
|
55
|
+
.then((data) => {
|
|
56
|
+
if (client._options.validate) {
|
|
57
|
+
assertValid(schemas.createNotificationChannelResponseWire, data);
|
|
58
|
+
}
|
|
59
|
+
return fromWire(data, schemas.createNotificationChannelResponse);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get notification channel
|
|
65
|
+
*
|
|
66
|
+
* Get a notification channel by id.
|
|
67
|
+
*
|
|
68
|
+
* GET /openmeter/notification/channels/{notificationChannelId}
|
|
69
|
+
*/
|
|
70
|
+
export function getNotificationChannel(client, req, options) {
|
|
71
|
+
return request(() => {
|
|
72
|
+
const pathParamsInput = {
|
|
73
|
+
notificationChannelId: req.notificationChannelId,
|
|
74
|
+
};
|
|
75
|
+
const pathParams = client._options.validate
|
|
76
|
+
? toPathWire(pathParamsInput, schemas.getNotificationChannelPathParams)
|
|
77
|
+
: pathParamsInput;
|
|
78
|
+
if (client._options.validate) {
|
|
79
|
+
assertValid(schemas.getNotificationChannelPathParamsWire, pathParams);
|
|
80
|
+
}
|
|
81
|
+
const path = `openmeter/notification/channels/${(() => {
|
|
82
|
+
if (pathParams.notificationChannelId === undefined) {
|
|
83
|
+
throw new Error('missing path parameter: notificationChannelId');
|
|
84
|
+
}
|
|
85
|
+
return encodeURIComponent(String(pathParams.notificationChannelId));
|
|
86
|
+
})()}`;
|
|
87
|
+
return http(client)
|
|
88
|
+
.get(path, options)
|
|
89
|
+
.json()
|
|
90
|
+
.then((data) => {
|
|
91
|
+
if (client._options.validate) {
|
|
92
|
+
assertValid(schemas.getNotificationChannelResponseWire, data);
|
|
93
|
+
}
|
|
94
|
+
return fromWire(data, schemas.getNotificationChannelResponse);
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Update notification channel
|
|
100
|
+
*
|
|
101
|
+
* Update a notification channel by id.
|
|
102
|
+
*
|
|
103
|
+
* PUT /openmeter/notification/channels/{notificationChannelId}
|
|
104
|
+
*/
|
|
105
|
+
export function updateNotificationChannel(client, req, options) {
|
|
106
|
+
return request(() => {
|
|
107
|
+
const pathParamsInput = {
|
|
108
|
+
notificationChannelId: req.notificationChannelId,
|
|
109
|
+
};
|
|
110
|
+
const pathParams = client._options.validate
|
|
111
|
+
? toPathWire(pathParamsInput, schemas.updateNotificationChannelPathParams)
|
|
112
|
+
: pathParamsInput;
|
|
113
|
+
if (client._options.validate) {
|
|
114
|
+
assertValid(schemas.updateNotificationChannelPathParamsWire, pathParams);
|
|
115
|
+
}
|
|
116
|
+
const path = `openmeter/notification/channels/${(() => {
|
|
117
|
+
if (pathParams.notificationChannelId === undefined) {
|
|
118
|
+
throw new Error('missing path parameter: notificationChannelId');
|
|
119
|
+
}
|
|
120
|
+
return encodeURIComponent(String(pathParams.notificationChannelId));
|
|
121
|
+
})()}`;
|
|
122
|
+
const body = toWire(req.body, schemas.updateNotificationChannelBody);
|
|
123
|
+
if (client._options.validate) {
|
|
124
|
+
assertValid(schemas.updateNotificationChannelBodyWire, body);
|
|
125
|
+
}
|
|
126
|
+
return http(client)
|
|
127
|
+
.put(path, { ...options, json: body })
|
|
128
|
+
.json()
|
|
129
|
+
.then((data) => {
|
|
130
|
+
if (client._options.validate) {
|
|
131
|
+
assertValid(schemas.updateNotificationChannelResponseWire, data);
|
|
132
|
+
}
|
|
133
|
+
return fromWire(data, schemas.updateNotificationChannelResponse);
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Delete notification channel
|
|
139
|
+
*
|
|
140
|
+
* Delete a notification channel by id.
|
|
141
|
+
*
|
|
142
|
+
* DELETE /openmeter/notification/channels/{notificationChannelId}
|
|
143
|
+
*/
|
|
144
|
+
export function deleteNotificationChannel(client, req, options) {
|
|
145
|
+
return request(async () => {
|
|
146
|
+
const pathParamsInput = {
|
|
147
|
+
notificationChannelId: req.notificationChannelId,
|
|
148
|
+
};
|
|
149
|
+
const pathParams = client._options.validate
|
|
150
|
+
? toPathWire(pathParamsInput, schemas.deleteNotificationChannelPathParams)
|
|
151
|
+
: pathParamsInput;
|
|
152
|
+
if (client._options.validate) {
|
|
153
|
+
assertValid(schemas.deleteNotificationChannelPathParamsWire, pathParams);
|
|
154
|
+
}
|
|
155
|
+
const path = `openmeter/notification/channels/${(() => {
|
|
156
|
+
if (pathParams.notificationChannelId === undefined) {
|
|
157
|
+
throw new Error('missing path parameter: notificationChannelId');
|
|
158
|
+
}
|
|
159
|
+
return encodeURIComponent(String(pathParams.notificationChannelId));
|
|
160
|
+
})()}`;
|
|
161
|
+
await http(client).delete(path, options);
|
|
162
|
+
});
|
|
163
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export type * from './models/operations/events.js';
|
|
|
28
28
|
export type * from './models/operations/meters.js';
|
|
29
29
|
export type * from './models/operations/customers.js';
|
|
30
30
|
export type * from './models/operations/entitlements.js';
|
|
31
|
+
export type * from './models/operations/grants.js';
|
|
31
32
|
export type * from './models/operations/subscriptions.js';
|
|
32
33
|
export type * from './models/operations/apps.js';
|
|
33
34
|
export type * from './models/operations/billing.js';
|
|
@@ -42,4 +43,5 @@ export type * from './models/operations/addons.js';
|
|
|
42
43
|
export type * from './models/operations/planAddons.js';
|
|
43
44
|
export type * from './models/operations/defaults.js';
|
|
44
45
|
export type * from './models/operations/entitlementAccess.js';
|
|
45
|
-
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, FeatureReference, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ChargeResolvedCostBasis, ClosedPeriod, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, RecurringPeriod, ListCreditGrantsParamsFilter, ValidationIssue, GetCreditBalanceParamsFilter, ListPlansParamsFilter, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, CreditBalance, ListCreditTransactionsParamsFilter, CreditTransaction, CurrencyAmount, EntitlementAccessResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateCreditGrantTaxConfig, CreditGrantTaxConfig, RateCardTaxConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateRateCardTaxConfig, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, SubscriptionEditAddPhase, WorkflowCollectionAlignmentAnchored, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, CustomerData, UpsertCustomerBillingDataRequest, CreditBalances, CreditTransactionPaginatedResponse, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, StringFieldFilterExact, PricePaymentTerm, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, WorkflowCollectionAlignment, Price, PriceUsageBased, UpdatePrice, App, BillingInstallAppResponse, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EventInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, IngestedEventInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
|
46
|
+
export type * from './models/operations/notifications.js';
|
|
47
|
+
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, CurrencyCustomReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ListCreditGrantsParamsFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, CreditBalance, CreditTransaction, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, CreditBalances, CreditTransactionPaginatedResponse, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateNotificationChannelRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v1.0.0-beta.
|
|
1
|
+
export declare const SDK_VERSION = "v1.0.0-beta.234";
|
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 = 'v1.0.0-beta.
|
|
5
|
+
export const SDK_VERSION = 'v1.0.0-beta.234';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type { AppCustomerData, AppStripeCreateCheckoutSessionResult, AppStripeCreateCustomerPortalSessionResult, Charge, ChargePagePaginatedResponse, CreateChargeRequestInput, CreateCreditAdjustmentRequest as CreateCreditAdjustmentRequestBody, CreateCreditGrantRequestInput, CreateCustomerRequest as CreateCustomerRequestBody, CreditAdjustment, CreditBalances, CreditGrant, CreditGrantPagePaginatedResponse, CreditTransactionPaginatedResponse, CursorPaginationQueryPage, Customer, CustomerData, CustomerPagePaginatedResponse, CustomerStripeCreateCheckoutSessionRequestInput, CustomerStripeCreateCustomerPortalSessionRequest, GetCreditBalanceParamsFilter, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, ListCustomerChargesParamsFilter, ListCustomersParamsFilter, SortQueryInput, UpdateCreditGrantExternalSettlementRequest as UpdateCreditGrantExternalSettlementRequestBody, UpsertAppCustomerDataRequest, UpsertCustomerBillingDataRequest, UpsertCustomerRequest as UpsertCustomerRequestBody, VoidCreditGrantRequestInput } from '../types.js';
|
|
2
|
+
import type { AppCustomerData, AppStripeCreateCheckoutSessionResult, AppStripeCreateCustomerPortalSessionResult, Charge, ChargePagePaginatedResponse, CreateChargeRequestInput, CreateCreditAdjustmentRequest as CreateCreditAdjustmentRequestBody, CreateCreditGrantRequestInput, CreateCustomerRequest as CreateCustomerRequestBody, CreateEntitlementRequestInput, CreditAdjustment, CreditBalances, CreditGrant, CreditGrantPagePaginatedResponse, CreditTransactionPaginatedResponse, CursorPaginationQueryPage, Customer, CustomerData, CustomerPagePaginatedResponse, CustomerStripeCreateCheckoutSessionRequestInput, CustomerStripeCreateCustomerPortalSessionRequest, Entitlement, EntitlementGrant, EntitlementGrantCreateRequest, EntitlementGrantPagePaginatedResponse, EntitlementHistory, EntitlementHistoryWindowSize, EntitlementPagePaginatedResponse, GetCreditBalanceParamsFilter, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, ListCustomerChargesParamsFilter, ListCustomerEntitlementsParamsFilter, ListCustomersParamsFilter, ResetCustomerEntitlementUsageRequestInput, SortQueryInput, UpdateCreditGrantExternalSettlementRequest as UpdateCreditGrantExternalSettlementRequestBody, UpsertAppCustomerDataRequest, UpsertCustomerBillingDataRequest, UpsertCustomerRequest as UpsertCustomerRequestBody, VoidCreditGrantRequestInput } from '../types.js';
|
|
3
3
|
export type CreateCustomerRequest = AcceptDateStrings<CreateCustomerRequestBody>;
|
|
4
4
|
export type CreateCustomerResponse = Customer;
|
|
5
5
|
export type GetCustomerRequest = {
|
|
@@ -65,6 +65,114 @@ export type CreateCustomerStripePortalSessionRequest = AcceptDateStrings<{
|
|
|
65
65
|
body: CustomerStripeCreateCustomerPortalSessionRequest;
|
|
66
66
|
}>;
|
|
67
67
|
export type CreateCustomerStripePortalSessionResponse = AppStripeCreateCustomerPortalSessionResult;
|
|
68
|
+
export type CreateCustomerEntitlementRequest = AcceptDateStrings<{
|
|
69
|
+
customerId: string;
|
|
70
|
+
body: CreateEntitlementRequestInput;
|
|
71
|
+
}>;
|
|
72
|
+
export type CreateCustomerEntitlementResponse = Entitlement;
|
|
73
|
+
export type OverrideCustomerEntitlementRequest = AcceptDateStrings<{
|
|
74
|
+
customerId: string;
|
|
75
|
+
entitlementId: string;
|
|
76
|
+
body: CreateEntitlementRequestInput;
|
|
77
|
+
}>;
|
|
78
|
+
export type OverrideCustomerEntitlementResponse = Entitlement;
|
|
79
|
+
export interface GetCustomerEntitlementHistoryQuery {
|
|
80
|
+
/**
|
|
81
|
+
* The start of the queried range. Defaults to the last reset. Truncated to the
|
|
82
|
+
* minute. The range may span at most 1000 windows.
|
|
83
|
+
*/
|
|
84
|
+
from?: Date;
|
|
85
|
+
/**
|
|
86
|
+
* The end of the queried range. Defaults to the current time. Truncated to the
|
|
87
|
+
* minute unless it is the current time.
|
|
88
|
+
*/
|
|
89
|
+
to?: Date;
|
|
90
|
+
/** The size of the windows the usage is grouped into. */
|
|
91
|
+
windowSize: EntitlementHistoryWindowSize;
|
|
92
|
+
/** The IANA time zone the windows are aligned to. */
|
|
93
|
+
timeZone?: string;
|
|
94
|
+
}
|
|
95
|
+
export type GetCustomerEntitlementHistoryRequest = AcceptDateStrings<GetCustomerEntitlementHistoryQuery & {
|
|
96
|
+
customerId: string;
|
|
97
|
+
entitlementId: string;
|
|
98
|
+
}>;
|
|
99
|
+
export type GetCustomerEntitlementHistoryResponse = EntitlementHistory;
|
|
100
|
+
export type GetCustomerEntitlementRequest = {
|
|
101
|
+
customerId: string;
|
|
102
|
+
entitlementId: string;
|
|
103
|
+
};
|
|
104
|
+
export type GetCustomerEntitlementResponse = Entitlement;
|
|
105
|
+
export interface ListCustomerEntitlementsQuery {
|
|
106
|
+
/** Determines which page of the collection to retrieve. */
|
|
107
|
+
page?: {
|
|
108
|
+
size?: number;
|
|
109
|
+
number?: number;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Sort entitlements returned in the response. Supported sort attributes are:
|
|
113
|
+
*
|
|
114
|
+
* - `created_at` (default)
|
|
115
|
+
* - `updated_at`
|
|
116
|
+
*
|
|
117
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
118
|
+
* suffix is used to specify a descending order.
|
|
119
|
+
*/
|
|
120
|
+
sort?: SortQueryInput;
|
|
121
|
+
/**
|
|
122
|
+
* Filter entitlements returned in the response.
|
|
123
|
+
*
|
|
124
|
+
* To filter entitlements by feature key add the following query param:
|
|
125
|
+
* `filter[feature_key]=my-feature`
|
|
126
|
+
*/
|
|
127
|
+
filter?: ListCustomerEntitlementsParamsFilter;
|
|
128
|
+
}
|
|
129
|
+
export type ListCustomerEntitlementsRequest = AcceptDateStrings<ListCustomerEntitlementsQuery & {
|
|
130
|
+
customerId: string;
|
|
131
|
+
}>;
|
|
132
|
+
export type ListCustomerEntitlementsResponse = EntitlementPagePaginatedResponse;
|
|
133
|
+
export type ResetCustomerEntitlementUsageRequest = AcceptDateStrings<{
|
|
134
|
+
customerId: string;
|
|
135
|
+
entitlementId: string;
|
|
136
|
+
body: ResetCustomerEntitlementUsageRequestInput;
|
|
137
|
+
}>;
|
|
138
|
+
export type ResetCustomerEntitlementUsageResponse = void;
|
|
139
|
+
export type DeleteCustomerEntitlementRequest = {
|
|
140
|
+
customerId: string;
|
|
141
|
+
entitlementId: string;
|
|
142
|
+
};
|
|
143
|
+
export type DeleteCustomerEntitlementResponse = void;
|
|
144
|
+
export type CreateCustomerEntitlementGrantRequest = AcceptDateStrings<{
|
|
145
|
+
customerId: string;
|
|
146
|
+
entitlementId: string;
|
|
147
|
+
body: EntitlementGrantCreateRequest;
|
|
148
|
+
}>;
|
|
149
|
+
export type CreateCustomerEntitlementGrantResponse = EntitlementGrant;
|
|
150
|
+
export interface ListCustomerEntitlementGrantsQuery {
|
|
151
|
+
/** Determines which page of the collection to retrieve. */
|
|
152
|
+
page?: {
|
|
153
|
+
size?: number;
|
|
154
|
+
number?: number;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Sort grants returned in the response. Supported sort attributes are:
|
|
158
|
+
*
|
|
159
|
+
* - `created_at` (default)
|
|
160
|
+
* - `updated_at`
|
|
161
|
+
* - `effective_at`
|
|
162
|
+
* - `expires_at`
|
|
163
|
+
*
|
|
164
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
165
|
+
* suffix is used to specify a descending order.
|
|
166
|
+
*/
|
|
167
|
+
sort?: SortQueryInput;
|
|
168
|
+
/** Include deleted grants in the response. */
|
|
169
|
+
includeDeleted?: boolean;
|
|
170
|
+
}
|
|
171
|
+
export type ListCustomerEntitlementGrantsRequest = AcceptDateStrings<ListCustomerEntitlementGrantsQuery & {
|
|
172
|
+
customerId: string;
|
|
173
|
+
entitlementId: string;
|
|
174
|
+
}>;
|
|
175
|
+
export type ListCustomerEntitlementGrantsResponse = EntitlementGrantPagePaginatedResponse;
|
|
68
176
|
export type CreateCreditGrantRequest = AcceptDateStrings<{
|
|
69
177
|
customerId: string;
|
|
70
178
|
body: CreateCreditGrantRequestInput;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Entitlement, EntitlementAccessCheckResult, EntitlementFeatureValueResult, EntitlementPagePaginatedResponse, EntitlementValueResult, ListCustomerEntitlementAccessResponseData, ListEntitlementsParamsFilter, SortQueryInput } from '../types.js';
|
|
3
3
|
export type ListCustomerEntitlementAccessRequest = {
|
|
4
4
|
customerId: string;
|
|
5
5
|
};
|
|
6
6
|
export type ListCustomerEntitlementAccessResponse = ListCustomerEntitlementAccessResponseData;
|
|
7
|
-
export
|
|
7
|
+
export type GetCustomerEntitlementAccessRequest = {
|
|
8
|
+
customerId: string;
|
|
9
|
+
featureKey: string;
|
|
10
|
+
};
|
|
11
|
+
export type GetCustomerEntitlementAccessResponse = EntitlementAccessCheckResult;
|
|
12
|
+
export interface GetCustomerEntitlementValueByFeatureKeyQuery {
|
|
8
13
|
/**
|
|
9
14
|
* Expand computed fields.
|
|
10
15
|
*
|
|
@@ -14,9 +19,59 @@ export interface GetCustomerEntitlementAccessQuery {
|
|
|
14
19
|
* `value` field.
|
|
15
20
|
*/
|
|
16
21
|
expand?: 'value'[];
|
|
22
|
+
/** The point in time to evaluate the entitlement at. Defaults to the current time. */
|
|
23
|
+
at?: Date;
|
|
17
24
|
}
|
|
18
|
-
export type
|
|
25
|
+
export type GetCustomerEntitlementValueByFeatureKeyRequest = AcceptDateStrings<GetCustomerEntitlementValueByFeatureKeyQuery & {
|
|
19
26
|
customerId: string;
|
|
20
27
|
featureKey: string;
|
|
21
28
|
}>;
|
|
22
|
-
export type
|
|
29
|
+
export type GetCustomerEntitlementValueByFeatureKeyResponse = EntitlementFeatureValueResult;
|
|
30
|
+
export interface ListEntitlementsQuery {
|
|
31
|
+
/** Determines which page of the collection to retrieve. */
|
|
32
|
+
page?: {
|
|
33
|
+
size?: number;
|
|
34
|
+
number?: number;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Sort entitlements returned in the response. Supported sort attributes are:
|
|
38
|
+
*
|
|
39
|
+
* - `created_at` (default)
|
|
40
|
+
* - `updated_at`
|
|
41
|
+
*
|
|
42
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
43
|
+
* suffix is used to specify a descending order.
|
|
44
|
+
*/
|
|
45
|
+
sort?: SortQueryInput;
|
|
46
|
+
/**
|
|
47
|
+
* Filter entitlements returned in the response.
|
|
48
|
+
*
|
|
49
|
+
* To filter entitlements by customer, add the following query param:
|
|
50
|
+
* `filter[customer_id]=01K4WAQ0J99ZZ0MD75HXR112H8`
|
|
51
|
+
*/
|
|
52
|
+
filter?: ListEntitlementsParamsFilter;
|
|
53
|
+
}
|
|
54
|
+
export type ListEntitlementsRequest = AcceptDateStrings<ListEntitlementsQuery>;
|
|
55
|
+
export type ListEntitlementsResponse = EntitlementPagePaginatedResponse;
|
|
56
|
+
export type GetEntitlementRequest = {
|
|
57
|
+
entitlementId: string;
|
|
58
|
+
};
|
|
59
|
+
export type GetEntitlementResponse = Entitlement;
|
|
60
|
+
export interface GetCustomerEntitlementValueQuery {
|
|
61
|
+
/**
|
|
62
|
+
* Expand computed fields.
|
|
63
|
+
*
|
|
64
|
+
* Supported values are:
|
|
65
|
+
*
|
|
66
|
+
* - `value`: Expand the balance details of a metered entitlement; it sets the
|
|
67
|
+
* `value` field.
|
|
68
|
+
*/
|
|
69
|
+
expand?: 'value'[];
|
|
70
|
+
/** The point in time to evaluate the entitlement at. Defaults to the current time. */
|
|
71
|
+
at?: Date;
|
|
72
|
+
}
|
|
73
|
+
export type GetCustomerEntitlementValueRequest = AcceptDateStrings<GetCustomerEntitlementValueQuery & {
|
|
74
|
+
customerId: string;
|
|
75
|
+
entitlementId: string;
|
|
76
|
+
}>;
|
|
77
|
+
export type GetCustomerEntitlementValueResponse = EntitlementValueResult;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
+
import type { EntitlementGrantPagePaginatedResponse, ListGrantsParamsFilter, SortQueryInput } from '../types.js';
|
|
3
|
+
export interface ListGrantsQuery {
|
|
4
|
+
/** Determines which page of the collection to retrieve. */
|
|
5
|
+
page?: {
|
|
6
|
+
size?: number;
|
|
7
|
+
number?: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Sort grants returned in the response. Supported sort attributes are:
|
|
11
|
+
*
|
|
12
|
+
* - `created_at` (default)
|
|
13
|
+
* - `updated_at`
|
|
14
|
+
* - `effective_at`
|
|
15
|
+
* - `expires_at`
|
|
16
|
+
*
|
|
17
|
+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
|
|
18
|
+
* suffix is used to specify a descending order.
|
|
19
|
+
*/
|
|
20
|
+
sort?: SortQueryInput;
|
|
21
|
+
/**
|
|
22
|
+
* Filter grants returned in the response.
|
|
23
|
+
*
|
|
24
|
+
* To filter grants by customer, add the following query param:
|
|
25
|
+
* `filter[customer_id]=01K4WAQ0J99ZZ0MD75HXR112H8`
|
|
26
|
+
*/
|
|
27
|
+
filter?: ListGrantsParamsFilter;
|
|
28
|
+
/** Include deleted grants in the response. */
|
|
29
|
+
includeDeleted?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export type ListGrantsRequest = AcceptDateStrings<ListGrantsQuery>;
|
|
32
|
+
export type ListGrantsResponse = EntitlementGrantPagePaginatedResponse;
|
|
33
|
+
export interface VoidGrantQuery {
|
|
34
|
+
/**
|
|
35
|
+
* The time the grant is voided from. Defaults to now; it cannot be in the future
|
|
36
|
+
* or before the start of the current usage period.
|
|
37
|
+
*/
|
|
38
|
+
voidedAt?: Date;
|
|
39
|
+
}
|
|
40
|
+
export type VoidGrantRequest = AcceptDateStrings<VoidGrantQuery & {
|
|
41
|
+
grantId: string;
|
|
42
|
+
}>;
|
|
43
|
+
export type VoidGrantResponse = void;
|