@openmeter/sdk 1.0.0-beta.223 → 1.0.0-beta.225
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 +200 -0
- package/biome.json +67 -0
- package/dist/cjs/src/client/addons.d.cts +8 -8
- package/dist/cjs/src/client/addons.js.map +1 -1
- package/dist/cjs/src/client/apps.d.cts +10 -10
- package/dist/cjs/src/client/apps.js.map +1 -1
- package/dist/cjs/src/client/billing.d.cts +19 -19
- package/dist/cjs/src/client/billing.js.map +1 -1
- package/dist/cjs/src/client/common.d.cts +3 -3
- package/dist/cjs/src/client/common.js.map +1 -1
- package/dist/cjs/src/client/customers.d.cts +25 -24
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/debug.d.cts +2 -2
- package/dist/cjs/src/client/debug.js.map +1 -1
- package/dist/cjs/src/client/entitlements.d.cts +15 -13
- package/dist/cjs/src/client/entitlements.js.map +1 -1
- package/dist/cjs/src/client/events.d.cts +4 -4
- package/dist/cjs/src/client/events.js.map +1 -1
- package/dist/cjs/src/client/features.d.cts +12 -3
- package/dist/cjs/src/client/features.js.map +1 -1
- package/dist/cjs/src/client/index.cjs +1 -1
- package/dist/cjs/src/client/index.d.cts +2 -2
- package/dist/cjs/src/client/index.js.map +1 -1
- package/dist/cjs/src/client/info.d.cts +3 -3
- package/dist/cjs/src/client/info.js.map +1 -1
- package/dist/cjs/src/client/meters.d.cts +5 -5
- package/dist/cjs/src/client/meters.js.map +1 -1
- package/dist/cjs/src/client/notifications.d.cts +17 -11
- package/dist/cjs/src/client/notifications.js.map +1 -1
- package/dist/cjs/src/client/plans.d.cts +12 -12
- package/dist/cjs/src/client/plans.js.map +1 -1
- package/dist/cjs/src/client/portal.d.cts +4 -4
- package/dist/cjs/src/client/portal.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +1046 -139
- package/dist/cjs/src/client/subjects.d.cts +4 -4
- package/dist/cjs/src/client/subjects.js.map +1 -1
- package/dist/cjs/src/client/subscription-addons.d.cts +5 -5
- package/dist/cjs/src/client/subscription-addons.js.map +1 -1
- package/dist/cjs/src/client/subscriptions.d.cts +13 -8
- package/dist/cjs/src/client/subscriptions.js.map +1 -1
- package/dist/cjs/src/client/utils.cjs +1 -3
- package/dist/cjs/src/client/utils.d.cts +1 -1
- package/dist/cjs/src/client/utils.js.map +1 -1
- package/dist/cjs/src/portal/index.d.cts +1 -1
- package/dist/cjs/src/portal/index.js.map +1 -1
- package/dist/cjs/src/zod/index.cjs +1230 -634
- package/dist/cjs/src/zod/index.d.cts +1304 -615
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/tsconfig.7db92107.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.94dd8c51.tsbuildinfo +1 -0
- package/dist/src/client/addons.d.ts +8 -8
- package/dist/src/client/addons.js.map +1 -1
- package/dist/src/client/apps.d.ts +10 -10
- package/dist/src/client/apps.js.map +1 -1
- package/dist/src/client/billing.d.ts +19 -19
- package/dist/src/client/billing.js.map +1 -1
- package/dist/src/client/common.d.ts +3 -3
- package/dist/src/client/common.js.map +1 -1
- package/dist/src/client/customers.d.ts +25 -24
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/debug.d.ts +2 -2
- package/dist/src/client/debug.js.map +1 -1
- package/dist/src/client/entitlements.d.ts +15 -13
- package/dist/src/client/entitlements.js.map +1 -1
- package/dist/src/client/events.d.ts +4 -4
- package/dist/src/client/events.js.map +1 -1
- package/dist/src/client/features.d.ts +12 -3
- package/dist/src/client/features.js.map +1 -1
- package/dist/src/client/index.d.ts +2 -2
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/info.d.ts +3 -3
- package/dist/src/client/info.js.map +1 -1
- package/dist/src/client/meters.d.ts +5 -5
- package/dist/src/client/meters.js.map +1 -1
- package/dist/src/client/notifications.d.ts +17 -11
- package/dist/src/client/notifications.js.map +1 -1
- package/dist/src/client/plans.d.ts +12 -12
- package/dist/src/client/plans.js.map +1 -1
- package/dist/src/client/portal.d.ts +4 -4
- package/dist/src/client/portal.js.map +1 -1
- package/dist/src/client/schemas.d.ts +1046 -139
- package/dist/src/client/subjects.d.ts +4 -4
- package/dist/src/client/subjects.js.map +1 -1
- package/dist/src/client/subscription-addons.d.ts +5 -5
- package/dist/src/client/subscription-addons.js.map +1 -1
- package/dist/src/client/subscriptions.d.ts +13 -8
- package/dist/src/client/subscriptions.js.map +1 -1
- package/dist/src/client/utils.d.ts +1 -1
- package/dist/src/client/utils.js +1 -3
- package/dist/src/client/utils.js.map +1 -1
- package/dist/src/portal/index.d.ts +1 -1
- package/dist/src/portal/index.js.map +1 -1
- package/dist/src/zod/index.d.ts +1304 -615
- package/dist/src/zod/index.js +1147 -554
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/orval.config.ts +2 -6
- package/package.json +21 -35
- package/dist/cjs/tsconfig.07c9b9a6.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.5c5dbdc6.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -65,3 +65,203 @@ function UsageComponent() {
|
|
|
65
65
|
// ...
|
|
66
66
|
}
|
|
67
67
|
```
|
|
68
|
+
|
|
69
|
+
## Ingest usage events
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
// Ingest a single AI token usage event
|
|
73
|
+
await openmeter.events.ingest({
|
|
74
|
+
type: 'ai-tokens',
|
|
75
|
+
subject: 'customer-acme-corp',
|
|
76
|
+
id: 'evt_01234567', // optional: auto-generated if not provided
|
|
77
|
+
source: 'llm-api-gateway', // optional: defaults to '@openmeter/sdk'
|
|
78
|
+
time: new Date(), // optional: defaults to current time
|
|
79
|
+
data: {
|
|
80
|
+
model: 'gpt-4',
|
|
81
|
+
type: 'input',
|
|
82
|
+
tokens: 1250,
|
|
83
|
+
},
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
// Ingest multiple events in a batch for better performance
|
|
87
|
+
await openmeter.events.ingest([
|
|
88
|
+
{
|
|
89
|
+
type: 'ai-tokens',
|
|
90
|
+
subject: 'customer-acme-corp',
|
|
91
|
+
data: { model: 'gpt-4', type: 'input', tokens: 850 },
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: 'ai-tokens',
|
|
95
|
+
subject: 'customer-acme-corp',
|
|
96
|
+
data: { model: 'gpt-4', type: 'output', tokens: 850 },
|
|
97
|
+
},
|
|
98
|
+
])
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Client API Reference
|
|
102
|
+
|
|
103
|
+
The OpenMeter SDK provides a comprehensive client interface organized into logical groups. Below is a complete reference of all available methods.
|
|
104
|
+
|
|
105
|
+
### Overview
|
|
106
|
+
|
|
107
|
+
| Namespace | Resource | Operation | Method | Description |
|
|
108
|
+
|-----------|----------|-----------|--------|-------------|
|
|
109
|
+
| **[Events](#events)** | | | | Track usage by ingesting events |
|
|
110
|
+
| | Events | Create | [`openmeter.events.ingest(events)`](./src/client/events.ts#L19) | Ingest a single event or batch of events |
|
|
111
|
+
| | Events | Read | [`openmeter.events.list(params?)`](./src/client/events.ts#L41) | List ingested events with advanced filtering |
|
|
112
|
+
| | Events | Read | [`openmeter.events.listV2(params?)`](./src/client/events.ts#L60) | List ingested events with advanced filtering (V2) |
|
|
113
|
+
| **[Meters](#meters)** | | | | Track and aggregate usage data from events |
|
|
114
|
+
| | Meters | Create | [`openmeter.meters.create(meter)`](./src/client/meters.ts#L19) | Create a new meter |
|
|
115
|
+
| | Meters | Read | [`openmeter.meters.get(idOrSlug)`](./src/client/meters.ts#L34) | Get a meter by ID or slug |
|
|
116
|
+
| | Meters | Read | [`openmeter.meters.list()`](./src/client/meters.ts#L55) | List all meters |
|
|
117
|
+
| | Meters | Read | [`openmeter.meters.query(idOrSlug, query?)`](./src/client/meters.ts#L70) | Query usage data |
|
|
118
|
+
| | Meters | Update | [`openmeter.meters.update(idOrSlug, meter)`](./src/client/meters.ts#L100) | Update a meter by ID or slug |
|
|
119
|
+
| | Meters | Delete | [`openmeter.meters.delete(idOrSlug)`](./src/client/meters.ts#L124) | Delete a meter by ID or slug |
|
|
120
|
+
| **[Subjects](#subjects)** | | | | Manage entities that consume resources |
|
|
121
|
+
| | Subjects | Create | [`openmeter.subjects.upsert(subjects)`](./src/client/subjects.ts#L21) | Create or update one or multiple subjects |
|
|
122
|
+
| | Subjects | Read | [`openmeter.subjects.get(idOrKey)`](./src/client/subjects.ts#L39) | Get a subject by ID or key |
|
|
123
|
+
| | Subjects | Read | [`openmeter.subjects.list()`](./src/client/subjects.ts#L60) | List all subjects |
|
|
124
|
+
| | Subjects | Delete | [`openmeter.subjects.delete(idOrKey)`](./src/client/subjects.ts#L74) | Delete a subject by ID or key |
|
|
125
|
+
| **[Customers](#customers)** | | | | Manage customer subscription lifecycles and plan assignments |
|
|
126
|
+
| | Customers | Create | [`openmeter.customers.create(customer)`](./src/client/customers.ts#L37) | Create a new customer |
|
|
127
|
+
| | Customers | Read | [`openmeter.customers.get(customerIdOrKey)`](./src/client/customers.ts#L52) | Get a customer by ID or key |
|
|
128
|
+
| | Customers | Read | [`openmeter.customers.list(query?)`](./src/client/customers.ts#L123) | List all customers |
|
|
129
|
+
| | Customers | Read | [`openmeter.customers.getAccess(customerIdOrKey)`](./src/client/customers.ts#L143) | Get customer access information |
|
|
130
|
+
| | Customers | Read | [`openmeter.customers.listSubscriptions(customerIdOrKey, query?)`](./src/client/customers.ts#L169) | List customer subscriptions |
|
|
131
|
+
| | Customers | Update | [`openmeter.customers.update(customerIdOrKey, customer)`](./src/client/customers.ts#L75) | Update a customer |
|
|
132
|
+
| | Customers | Delete | [`openmeter.customers.delete(customerIdOrKey)`](./src/client/customers.ts#L99) | Delete a customer |
|
|
133
|
+
| | Apps | Update | [`openmeter.customers.apps.upsert(customerIdOrKey, appData)`](./src/client/customers.ts#L200) | Upsert app data |
|
|
134
|
+
| | Apps | Read | [`openmeter.customers.apps.list(customerIdOrKey)`](./src/client/customers.ts#L228) | List app data |
|
|
135
|
+
| | Apps | Delete | [`openmeter.customers.apps.delete(customerIdOrKey, appId)`](./src/client/customers.ts#L254) | Delete app data |
|
|
136
|
+
| | Stripe | Update | [`openmeter.customers.stripe.upsert(customerIdOrKey, appDataBase)`](./src/client/customers.ts#L285) | Upsert Stripe app data |
|
|
137
|
+
| | Stripe | Read | [`openmeter.customers.stripe.get(customerIdOrKey)`](./src/client/customers.ts#L313) | Get Stripe app data |
|
|
138
|
+
| | Stripe | Create | [`openmeter.customers.stripe.createPortalSession(customerIdOrKey, params)`](./src/client/customers.ts#L337) | Create a Stripe customer portal session |
|
|
139
|
+
| | Entitlements V1 | Read | [`openmeter.customers.entitlementsV1.value(customerIdOrKey, featureKey)`](./src/client/customers.ts#L372) | Get entitlement value (V1 API) |
|
|
140
|
+
| | Entitlements | Read | [`openmeter.customers.entitlements.list(customerIdOrKey)`](./src/client/customers.ts#L401) | List entitlements |
|
|
141
|
+
| | Entitlements | Create | [`openmeter.customers.entitlements.create(customerIdOrKey, entitlement)`](./src/client/customers.ts#L428) | Create an entitlement |
|
|
142
|
+
| | Entitlements | Read | [`openmeter.customers.entitlements.get(customerIdOrKey, featureKeyOrId)`](./src/client/customers.ts#L454) | Get an entitlement |
|
|
143
|
+
| | Entitlements | Delete | [`openmeter.customers.entitlements.delete(customerIdOrKey, entitlementId)`](./src/client/customers.ts#L479) | Delete an entitlement |
|
|
144
|
+
| | Entitlements | Update | [`openmeter.customers.entitlements.override(customerIdOrKey, featureKeyOrId, entitlement)`](./src/client/customers.ts#L505) | Override an entitlement |
|
|
145
|
+
| | Entitlements | Read | [`openmeter.customers.entitlements.value(customerIdOrKey, featureKeyOrId, query?)`](./src/client/customers.ts#L588) | Get entitlement value |
|
|
146
|
+
| | Entitlements | Read | [`openmeter.customers.entitlements.history(customerIdOrKey, featureKeyOrId, query?)`](./src/client/customers.ts#L617) | Get entitlement history |
|
|
147
|
+
| | Entitlements | Update | [`openmeter.customers.entitlements.resetUsage(customerIdOrKey, entitlementId, body?)`](./src/client/customers.ts#L653) | Reset usage |
|
|
148
|
+
| | Entitlements | Read | [`openmeter.customers.entitlements.listGrants(customerIdOrKey, featureKeyOrId, query?)`](./src/client/customers.ts#L532) | List grants |
|
|
149
|
+
| | Entitlements | Create | [`openmeter.customers.entitlements.createGrant(customerIdOrKey, featureKeyOrId, grant)`](./src/client/customers.ts#L561) | Create a grant |
|
|
150
|
+
| **[Features](#features)** | | | | Define application capabilities and services |
|
|
151
|
+
| | Features | Create | [`openmeter.features.create(feature)`](./src/client/features.ts#L24) | Create a new feature |
|
|
152
|
+
| | Features | Read | [`openmeter.features.get(featureIdOrKey)`](./src/client/features.ts#L39) | Get a feature by ID |
|
|
153
|
+
| | Features | Read | [`openmeter.features.list(params?)`](./src/client/features.ts#L61) | List all features |
|
|
154
|
+
| | Features | Delete | [`openmeter.features.delete(featureIdOrKey)`](./src/client/features.ts#L84) | Delete a feature by ID |
|
|
155
|
+
| **[Entitlements (V1)](#entitlements-v1)** | | | | Subject-based usage limits and access controls |
|
|
156
|
+
| | Entitlements | Create | [`openmeter.entitlementsV1.create(subjectIdOrKey, entitlement)`](./src/client/entitlements.ts#L40) | Create an entitlement for a subject |
|
|
157
|
+
| | Entitlements | Read | [`openmeter.entitlementsV1.get(entitlementId)`](./src/client/entitlements.ts#L68) | Get an entitlement by ID |
|
|
158
|
+
| | Entitlements | Read | [`openmeter.entitlementsV1.list(query?)`](./src/client/entitlements.ts#L91) | List all entitlements |
|
|
159
|
+
| | Entitlements | Read | [`openmeter.entitlementsV1.value(subjectIdOrKey, featureIdOrKey, query?)`](./src/client/entitlements.ts#L147) | Get the value of an entitlement |
|
|
160
|
+
| | Entitlements | Read | [`openmeter.entitlementsV1.history(subjectIdOrKey, entitlementIdOrFeatureKey, query?)`](./src/client/entitlements.ts#L180) | Get the history of an entitlement |
|
|
161
|
+
| | Entitlements | Update | [`openmeter.entitlementsV1.override(subjectIdOrKey, entitlementIdOrFeatureKey, override)`](./src/client/entitlements.ts#L213) | Override an entitlement |
|
|
162
|
+
| | Entitlements | Update | [`openmeter.entitlementsV1.reset(subjectIdOrKey, entitlementIdOrFeatureKey, reset?)`](./src/client/entitlements.ts#L247) | Reset entitlement usage |
|
|
163
|
+
| | Entitlements | Delete | [`openmeter.entitlementsV1.delete(subjectIdOrKey, entitlementId)`](./src/client/entitlements.ts#L116) | Delete an entitlement |
|
|
164
|
+
| | Grants | Create | [`openmeter.entitlementsV1.grants.create(subjectIdOrKey, entitlementIdOrFeatureKey, grant)`](./src/client/entitlements.ts#L283) | Create a grant for an entitlement |
|
|
165
|
+
| | Grants | Read | [`openmeter.entitlementsV1.grants.list(subjectIdOrKey, entitlementIdOrFeatureKey, query?)`](./src/client/entitlements.ts#L314) | List grants for an entitlement |
|
|
166
|
+
| | Grants | Read | [`openmeter.entitlementsV1.grants.listAll(query?)`](./src/client/entitlements.ts#L345) | List all grants |
|
|
167
|
+
| | Grants | Delete | [`openmeter.entitlementsV1.grants.void(entitlementId, grantId)`](./src/client/entitlements.ts#L369) | Void a grant |
|
|
168
|
+
| **[Entitlements](#entitlements)** | | | | Customer-based entitlements and access controls |
|
|
169
|
+
| | Entitlements | Read | [`openmeter.entitlements.list(query?)`](./src/client/entitlements.ts#L404) | List all entitlements (admin purposes) |
|
|
170
|
+
| | Entitlements | Read | [`openmeter.entitlements.get(entitlementId)`](./src/client/entitlements.ts#L425) | Get an entitlement by ID |
|
|
171
|
+
| | Grants | Read | [`openmeter.entitlements.grants.list(query?)`](./src/client/entitlements.ts#L453) | List all grants (admin purposes) |
|
|
172
|
+
| | Grants | Delete | [`openmeter.entitlements.grants.void(grantId)`](./src/client/entitlements.ts#L478) | Void a grant |
|
|
173
|
+
| **[Plans](#plans)** | | | | Manage subscription plans and pricing|
|
|
174
|
+
| | Plans | Create | [`openmeter.plans.create(plan)`](./src/client/plans.ts#L28) | Create a new plan|
|
|
175
|
+
| | Plans | Read | [`openmeter.plans.get(planId)`](./src/client/plans.ts#L44) | Get a plan by ID|
|
|
176
|
+
| | Plans | Read | [`openmeter.plans.list(query?)`](./src/client/plans.ts#L66) | List all plans|
|
|
177
|
+
| | Plans | Update | [`openmeter.plans.update(planId, plan)`](./src/client/plans.ts#L85) | Update a plan|
|
|
178
|
+
| | Plans | Delete | [`openmeter.plans.delete(planId)`](./src/client/plans.ts#L105) | Delete a plan by ID|
|
|
179
|
+
| | Plans | Other | [`openmeter.plans.archive(planId)`](./src/client/plans.ts#L123) | Archive a plan|
|
|
180
|
+
| | Plans | Other | [`openmeter.plans.publish(planId)`](./src/client/plans.ts#L141) | Publish a plan|
|
|
181
|
+
| | Addons | Read | [`openmeter.plans.addons.list(planId)`](./src/client/plans.ts#L168) | List addons|
|
|
182
|
+
| | Addons | Create | [`openmeter.plans.addons.create(planId, addon)`](./src/client/plans.ts#L191) | Create an addon|
|
|
183
|
+
| | Addons | Read | [`openmeter.plans.addons.get(planId, planAddonId)`](./src/client/plans.ts#L212) | Get an addon by ID|
|
|
184
|
+
| | Addons | Update | [`openmeter.plans.addons.update(planId, planAddonId, addon)`](./src/client/plans.ts#L238) | Update an addon|
|
|
185
|
+
| | Addons | Delete | [`openmeter.plans.addons.delete(planId, planAddonId)`](./src/client/plans.ts#L263) | Delete an addon by ID|
|
|
186
|
+
| **[Addons](#addons)** | | | | Manage standalone addons available across plans|
|
|
187
|
+
| | Addons | Create | [`openmeter.addons.create(addon)`](./src/client/addons.ts#L15) | Create a new addon|
|
|
188
|
+
| | Addons | Read | [`openmeter.addons.get(addonId)`](./src/client/addons.ts#L48) | Get an addon by ID|
|
|
189
|
+
| | Addons | Read | [`openmeter.addons.list(query?)`](./src/client/addons.ts#L30) | List all addons|
|
|
190
|
+
| | Addons | Update | [`openmeter.addons.update(addonId, addon)`](./src/client/addons.ts#L64) | Update an addon|
|
|
191
|
+
| | Addons | Delete | [`openmeter.addons.delete(addonId)`](./src/client/addons.ts#L84) | Delete an addon by ID|
|
|
192
|
+
| | Addons | Other | [`openmeter.addons.publish(addonId)`](./src/client/addons.ts#L99) | Publish an addon|
|
|
193
|
+
| | Addons | Other | [`openmeter.addons.archive(addonId)`](./src/client/addons.ts#L114) | Archive an addon|
|
|
194
|
+
| **[Subscriptions](#subscriptions)** | | | | Manage customer subscriptions|
|
|
195
|
+
| | Subscriptions | Create | [`openmeter.subscriptions.create(body)`](./src/client/subscriptions.ts#L24) | Create a new subscription|
|
|
196
|
+
| | Subscriptions | Read | [`openmeter.subscriptions.get(subscriptionId)`](./src/client/subscriptions.ts#L39) | Get a subscription by ID|
|
|
197
|
+
| | Subscriptions | Update | [`openmeter.subscriptions.edit(subscriptionId, body)`](./src/client/subscriptions.ts#L61) | Edit a subscription|
|
|
198
|
+
| | Subscriptions | Delete | [`openmeter.subscriptions.delete(subscriptionId)`](./src/client/subscriptions.ts#L180) | Delete a subscription (only scheduled)|
|
|
199
|
+
| | Subscriptions | Other | [`openmeter.subscriptions.cancel(subscriptionId, body?)`](./src/client/subscriptions.ts#L85) | Cancel a subscription|
|
|
200
|
+
| | Subscriptions | Other | [`openmeter.subscriptions.change(subscriptionId, body)`](./src/client/subscriptions.ts#L110) | Change a subscription (upgrade/downgrade)|
|
|
201
|
+
| | Subscriptions | Other | [`openmeter.subscriptions.migrate(subscriptionId, body)`](./src/client/subscriptions.ts#L135) | Migrate to a new plan version|
|
|
202
|
+
| | Subscriptions | Other | [`openmeter.subscriptions.unscheduleCancelation(subscriptionId)`](./src/client/subscriptions.ts#L158) | Unschedule a subscription cancelation|
|
|
203
|
+
| **[Subscription Addons](#subscription-addons)** | | | | Manage addons attached to specific subscriptions|
|
|
204
|
+
| | Subscription Addons | Create | [`openmeter.subscriptionAddons.create(subscriptionId, body)`](./src/client/subscription-addons.ts#L16) | Create a new subscription addon|
|
|
205
|
+
| | Subscription Addons | Read | [`openmeter.subscriptionAddons.get(subscriptionId, subscriptionAddonId)`](./src/client/subscription-addons.ts#L58) | Get a subscription addon by ID|
|
|
206
|
+
| | Subscription Addons | Read | [`openmeter.subscriptionAddons.list(subscriptionId)`](./src/client/subscription-addons.ts#L39) | List all addons of a subscription|
|
|
207
|
+
| | Subscription Addons | Update | [`openmeter.subscriptionAddons.update(subscriptionId, subscriptionAddonId, body)`](./src/client/subscription-addons.ts#L82) | Update a subscription addon|
|
|
208
|
+
| **[Billing](#billing)** | | | | Comprehensive billing management (profiles, invoices, overrides)|
|
|
209
|
+
| | Profiles | Create | [`openmeter.billing.profiles.create(profile)`](./src/client/billing.ts#L42) | Create a billing profile|
|
|
210
|
+
| | Profiles | Read | [`openmeter.billing.profiles.get(id)`](./src/client/billing.ts#L60) | Get a billing profile by ID|
|
|
211
|
+
| | Profiles | Read | [`openmeter.billing.profiles.list(query?)`](./src/client/billing.ts#L80) | List billing profiles|
|
|
212
|
+
| | Profiles | Update | [`openmeter.billing.profiles.update(id, profile)`](./src/client/billing.ts#L101) | Update a billing profile|
|
|
213
|
+
| | Profiles | Delete | [`openmeter.billing.profiles.delete(id)`](./src/client/billing.ts#L123) | Delete a billing profile|
|
|
214
|
+
| | Invoices | Read | [`openmeter.billing.invoices.list(query?)`](./src/client/billing.ts#L150) | List invoices|
|
|
215
|
+
| | Invoices | Read | [`openmeter.billing.invoices.get(id, query?)`](./src/client/billing.ts#L170) | Get an invoice by ID|
|
|
216
|
+
| | Invoices | Update | [`openmeter.billing.invoices.update(id, invoice)`](./src/client/billing.ts#L192) | Update an invoice (draft or earlier)|
|
|
217
|
+
| | Invoices | Delete | [`openmeter.billing.invoices.delete(id)`](./src/client/billing.ts#L213) | Delete an invoice (draft or earlier)|
|
|
218
|
+
| | Invoices | Other | [`openmeter.billing.invoices.advance(id)`](./src/client/billing.ts#L235) | Advance invoice to next status|
|
|
219
|
+
| | Invoices | Other | [`openmeter.billing.invoices.approve(id)`](./src/client/billing.ts#L257) | Approve an invoice (sends to customer)|
|
|
220
|
+
| | Invoices | Other | [`openmeter.billing.invoices.retry(id, body?)`](./src/client/billing.ts#L278) | Retry advancing after failure|
|
|
221
|
+
| | Invoices | Other | [`openmeter.billing.invoices.void(id)`](./src/client/billing.ts#L302) | Void an invoice|
|
|
222
|
+
| | Invoices | Other | [`openmeter.billing.invoices.recalculateTax(id)`](./src/client/billing.ts#L325) | Recalculate invoice tax amounts|
|
|
223
|
+
| | Invoices | Other | [`openmeter.billing.invoices.simulate(customerId, query?)`](./src/client/billing.ts#L346) | Simulate an invoice for a customer|
|
|
224
|
+
| | Invoices | Create | [`openmeter.billing.invoices.createLineItems(customerId, body)`](./src/client/billing.ts#L377) | Create pending line items|
|
|
225
|
+
| | Invoices | Create | [`openmeter.billing.invoices.invoicePendingLines(customerId)`](./src/client/billing.ts#L401) | Invoice pending lines|
|
|
226
|
+
| | Customers | Create | [`openmeter.billing.customers.createOverride(customerId, body)`](./src/client/billing.ts#L427) | Create or update a customer override|
|
|
227
|
+
| | Customers | Read | [`openmeter.billing.customers.getOverride(customerId, id)`](./src/client/billing.ts#L450) | Get a customer override|
|
|
228
|
+
| | Customers | Read | [`openmeter.billing.customers.listOverrides(customerId)`](./src/client/billing.ts#L471) | List customer overrides|
|
|
229
|
+
| | Customers | Delete | [`openmeter.billing.customers.deleteOverride(customerId, id)`](./src/client/billing.ts#L489) | Delete a customer override|
|
|
230
|
+
| **[Apps](#apps)** | | | | Manage integrations and app marketplace|
|
|
231
|
+
| | Apps | Read | [`openmeter.apps.list(query?)`](./src/client/apps.ts#L32) | List installed apps|
|
|
232
|
+
| | Apps | Read | [`openmeter.apps.get(id)`](./src/client/apps.ts#L50) | Get an app by ID|
|
|
233
|
+
| | Apps | Update | [`openmeter.apps.update(id, body)`](./src/client/apps.ts#L69) | Update an app|
|
|
234
|
+
| | Apps | Delete | [`openmeter.apps.uninstall(id)`](./src/client/apps.ts#L89) | Uninstall an app|
|
|
235
|
+
| | Marketplace | Read | [`openmeter.apps.marketplace.list(query?)`](./src/client/apps.ts#L115) | List available marketplace apps|
|
|
236
|
+
| | Marketplace | Read | [`openmeter.apps.marketplace.get(id)`](./src/client/apps.ts#L133) | Get marketplace listing details|
|
|
237
|
+
| | Marketplace | Read | [`openmeter.apps.marketplace.getOauth2InstallUrl(id, redirectUrl)`](./src/client/apps.ts#L151) | Get OAuth2 install URL|
|
|
238
|
+
| | Marketplace | Other | [`openmeter.apps.marketplace.authorizeOauth2(id, body)`](./src/client/apps.ts#L172) | Authorize OAuth2 code|
|
|
239
|
+
| | Marketplace | Create | [`openmeter.apps.marketplace.installWithAPIKey(id, body)`](./src/client/apps.ts#L193) | Install app with API key|
|
|
240
|
+
| | Stripe | Create | [`openmeter.apps.stripe.createCheckoutSession(body)`](./src/client/apps.ts#L223) | Create a Stripe checkout session|
|
|
241
|
+
| | Stripe | Update | [`openmeter.apps.stripe.updateApiKey(body)`](./src/client/apps.ts#L243) | Update Stripe API key|
|
|
242
|
+
| | Custom Invoicing | Other | [`openmeter.apps.customInvoicing.draftSynchronized(body)`](./src/client/apps.ts#L271) | Submit draft synchronization results|
|
|
243
|
+
| | Custom Invoicing | Other | [`openmeter.apps.customInvoicing.issuingSynchronized(body)`](./src/client/apps.ts#L295) | Submit issuing synchronization results|
|
|
244
|
+
| | Custom Invoicing | Update | [`openmeter.apps.customInvoicing.updatePaymentStatus(invoiceId, body)`](./src/client/apps.ts#L319) | Update payment status|
|
|
245
|
+
| **[Notifications](#notifications)** | | | | Set up automated notifications for usage thresholds|
|
|
246
|
+
| | Channels | Create | [`openmeter.notifications.channels.create(channel)`](./src/client/notifications.ts#L40) | Create a notification channel|
|
|
247
|
+
| | Channels | Read | [`openmeter.notifications.channels.get(channelId)`](./src/client/notifications.ts#L58) | Get a notification channel by ID|
|
|
248
|
+
| | Channels | Update | [`openmeter.notifications.channels.update(channelId, channel)`](./src/client/notifications.ts#L84) | Update a notification channel|
|
|
249
|
+
| | Channels | Read | [`openmeter.notifications.channels.list(query?)`](./src/client/notifications.ts#L111) | List notification channels|
|
|
250
|
+
| | Channels | Delete | [`openmeter.notifications.channels.delete(channelId)`](./src/client/notifications.ts#L131) | Delete a notification channel|
|
|
251
|
+
| | Rules | Create | [`openmeter.notifications.rules.create(rule)`](./src/client/notifications.ts#L164) | Create a notification rule|
|
|
252
|
+
| | Rules | Read | [`openmeter.notifications.rules.get(ruleId)`](./src/client/notifications.ts#L182) | Get a notification rule by ID|
|
|
253
|
+
| | Rules | Update | [`openmeter.notifications.rules.update(ruleId, rule)`](./src/client/notifications.ts#L205) | Update a notification rule|
|
|
254
|
+
| | Rules | Read | [`openmeter.notifications.rules.list(query?)`](./src/client/notifications.ts#L229) | List notification rules|
|
|
255
|
+
| | Rules | Delete | [`openmeter.notifications.rules.delete(ruleId)`](./src/client/notifications.ts#L249) | Delete a notification rule|
|
|
256
|
+
| | Events | Read | [`openmeter.notifications.events.get(eventId)`](./src/client/notifications.ts#L282) | Get a notification event by ID|
|
|
257
|
+
| | Events | Read | [`openmeter.notifications.events.list(query?)`](./src/client/notifications.ts#L307) | List notification events|
|
|
258
|
+
| **[Portal](#portal)** | | | | Manage consumer portal tokens for customer-facing interfaces|
|
|
259
|
+
| | Portal | Create | [`openmeter.portal.create(body)`](./src/client/portal.ts#L19) | Create a consumer portal token|
|
|
260
|
+
| | Portal | Read | [`openmeter.portal.list(query?)`](./src/client/portal.ts#L34) | List consumer portal tokens|
|
|
261
|
+
| | Portal | Other | [`openmeter.portal.invalidate(query?)`](./src/client/portal.ts#L52) | Invalidate consumer portal tokens|
|
|
262
|
+
| **[Info](#info)** | | | | Utility endpoints for system information|
|
|
263
|
+
| | Info | Read | [`openmeter.info.listCurrencies()`](./src/client/info.ts#L18) | List all supported currencies|
|
|
264
|
+
| | Info | Read | [`openmeter.info.getProgress(id)`](./src/client/info.ts#L32) | Get progress of a long-running operation|
|
|
265
|
+
| **[Debug](#debug)** | | | | Debug utilities for monitoring and troubleshooting|
|
|
266
|
+
| | Debug | Read | [`openmeter.debug.getMetrics()`](./src/client/debug.ts#L18) | Get event ingestion metrics (OpenMetrics format)|
|
|
267
|
+
|
package/biome.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
+
"assist": {
|
|
4
|
+
"actions": {
|
|
5
|
+
"source": {
|
|
6
|
+
"organizeImports": "on",
|
|
7
|
+
"useSortedKeys": "on"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"files": {
|
|
12
|
+
"ignoreUnknown": false,
|
|
13
|
+
"includes": ["**"],
|
|
14
|
+
"maxSize": 20000000
|
|
15
|
+
},
|
|
16
|
+
"formatter": {
|
|
17
|
+
"enabled": true,
|
|
18
|
+
"indentStyle": "space",
|
|
19
|
+
"useEditorconfig": true
|
|
20
|
+
},
|
|
21
|
+
"javascript": {
|
|
22
|
+
"formatter": {
|
|
23
|
+
"arrowParentheses": "always",
|
|
24
|
+
"attributePosition": "auto",
|
|
25
|
+
"lineWidth": 80,
|
|
26
|
+
"quoteStyle": "single",
|
|
27
|
+
"semicolons": "asNeeded",
|
|
28
|
+
"trailingCommas": "all"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"linter": {
|
|
32
|
+
"enabled": true,
|
|
33
|
+
"rules": {
|
|
34
|
+
"recommended": true,
|
|
35
|
+
"style": {
|
|
36
|
+
"noInferrableTypes": "error",
|
|
37
|
+
"noParameterAssign": "error",
|
|
38
|
+
"noUnusedTemplateLiteral": "error",
|
|
39
|
+
"noUselessElse": "error",
|
|
40
|
+
"useAsConstAssertion": "error",
|
|
41
|
+
"useConst": "error",
|
|
42
|
+
"useDefaultParameterLast": "error",
|
|
43
|
+
"useEnumInitializers": "error",
|
|
44
|
+
"useNumberNamespace": "error",
|
|
45
|
+
"useSelfClosingElements": "error",
|
|
46
|
+
"useSingleVarDeclarator": "error"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"overrides": [
|
|
51
|
+
{
|
|
52
|
+
"assist": {
|
|
53
|
+
"actions": {
|
|
54
|
+
"source": {
|
|
55
|
+
"useSortedKeys": "off"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"includes": ["package.json"]
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"vcs": {
|
|
63
|
+
"clientKind": "git",
|
|
64
|
+
"enabled": true,
|
|
65
|
+
"useIgnoreFile": true
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RequestOptions } from './common.cjs';
|
|
2
|
-
import type { paths, AddonCreate, operations } from './schemas.cjs';
|
|
3
1
|
import type { Client } from 'openapi-fetch';
|
|
2
|
+
import type { RequestOptions } from './common.cjs';
|
|
3
|
+
import type { AddonCreate, operations, paths } from './schemas.cjs';
|
|
4
4
|
export declare class Addons {
|
|
5
5
|
private client;
|
|
6
6
|
constructor(client: Client<paths, `${string}/${string}`>);
|
|
@@ -28,7 +28,7 @@ export declare class Addons {
|
|
|
28
28
|
readonly status: import("./schemas.cjs").components["schemas"]["AddonStatus"];
|
|
29
29
|
rateCards: import("./schemas.cjs").components["schemas"]["RateCard"][];
|
|
30
30
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
31
|
-
}>;
|
|
31
|
+
} | undefined>;
|
|
32
32
|
/**
|
|
33
33
|
* List addons
|
|
34
34
|
* @param params - Optional parameters for listing addons
|
|
@@ -40,7 +40,7 @@ export declare class Addons {
|
|
|
40
40
|
page: number;
|
|
41
41
|
pageSize: number;
|
|
42
42
|
items: import("./schemas.cjs").components["schemas"]["Addon"][];
|
|
43
|
-
}>;
|
|
43
|
+
} | undefined>;
|
|
44
44
|
/**
|
|
45
45
|
* Get an addon by ID
|
|
46
46
|
* @param addonId - The ID of the addon to retrieve
|
|
@@ -65,7 +65,7 @@ export declare class Addons {
|
|
|
65
65
|
readonly status: import("./schemas.cjs").components["schemas"]["AddonStatus"];
|
|
66
66
|
rateCards: import("./schemas.cjs").components["schemas"]["RateCard"][];
|
|
67
67
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
68
|
-
}>;
|
|
68
|
+
} | undefined>;
|
|
69
69
|
/**
|
|
70
70
|
* Update an addon
|
|
71
71
|
* @param addonId - The ID of the addon to update
|
|
@@ -91,7 +91,7 @@ export declare class Addons {
|
|
|
91
91
|
readonly status: import("./schemas.cjs").components["schemas"]["AddonStatus"];
|
|
92
92
|
rateCards: import("./schemas.cjs").components["schemas"]["RateCard"][];
|
|
93
93
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
94
|
-
}>;
|
|
94
|
+
} | undefined>;
|
|
95
95
|
/**
|
|
96
96
|
* Delete an addon by ID
|
|
97
97
|
* @param addonId - The ID of the addon to delete
|
|
@@ -123,7 +123,7 @@ export declare class Addons {
|
|
|
123
123
|
readonly status: import("./schemas.cjs").components["schemas"]["AddonStatus"];
|
|
124
124
|
rateCards: import("./schemas.cjs").components["schemas"]["RateCard"][];
|
|
125
125
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
126
|
-
}>;
|
|
126
|
+
} | undefined>;
|
|
127
127
|
/**
|
|
128
128
|
* Archive an addon
|
|
129
129
|
* @param addonId - The ID of the addon to archive
|
|
@@ -148,5 +148,5 @@ export declare class Addons {
|
|
|
148
148
|
readonly status: import("./schemas.cjs").components["schemas"]["AddonStatus"];
|
|
149
149
|
rateCards: import("./schemas.cjs").components["schemas"]["RateCard"][];
|
|
150
150
|
readonly validationErrors: import("./schemas.cjs").components["schemas"]["ValidationError"][] | null;
|
|
151
|
-
}>;
|
|
151
|
+
} | undefined>;
|
|
152
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addons.js","sourceRoot":"","sources":["../../../../src/client/addons.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"addons.js","sourceRoot":"","sources":["../../../../src/client/addons.ts"],"names":[],"mappings":";;;AAGA,yCAA8C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;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC3D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,0BAA0B,EAAE;YAChE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE;YAC7B,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,OAAwB;QAC5D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE;YAC7B,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,OAAwB;QAC5D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACtE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE;YAC7B,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AApHD,wBAoHC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.cjs';
|
|
2
3
|
import type { AppReplaceUpdate, CreateStripeCheckoutSessionRequest, operations, paths } from './schemas.cjs';
|
|
3
|
-
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Apps
|
|
6
6
|
* Manage integrations for extending OpenMeter's functionality.
|
|
@@ -22,7 +22,7 @@ export declare class Apps {
|
|
|
22
22
|
page: number;
|
|
23
23
|
pageSize: number;
|
|
24
24
|
items: import("./schemas.cjs").components["schemas"]["App"][];
|
|
25
|
-
}>;
|
|
25
|
+
} | undefined>;
|
|
26
26
|
/**
|
|
27
27
|
* Get an app
|
|
28
28
|
* @param id - The ID of the app
|
|
@@ -102,7 +102,7 @@ export declare class Apps {
|
|
|
102
102
|
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
103
103
|
};
|
|
104
104
|
};
|
|
105
|
-
}, `${string}/${string}
|
|
105
|
+
}, `${string}/${string}`> | undefined>;
|
|
106
106
|
/**
|
|
107
107
|
* Update an app
|
|
108
108
|
* @param id - The ID of the app
|
|
@@ -183,7 +183,7 @@ export declare class Apps {
|
|
|
183
183
|
"application/problem+json": import("./schemas.cjs").components["schemas"]["UnexpectedProblemResponse"];
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
|
-
}, `${string}/${string}
|
|
186
|
+
}, `${string}/${string}`> | undefined>;
|
|
187
187
|
/**
|
|
188
188
|
* Uninstall an app
|
|
189
189
|
* @param id - The ID of the app
|
|
@@ -210,7 +210,7 @@ export declare class AppMarketplace {
|
|
|
210
210
|
page: number;
|
|
211
211
|
pageSize: number;
|
|
212
212
|
items: import("./schemas.cjs").components["schemas"]["MarketplaceListing"][];
|
|
213
|
-
}>;
|
|
213
|
+
} | undefined>;
|
|
214
214
|
/**
|
|
215
215
|
* Get details for a listing
|
|
216
216
|
* @param type - The type of the listing
|
|
@@ -223,7 +223,7 @@ export declare class AppMarketplace {
|
|
|
223
223
|
description: string;
|
|
224
224
|
capabilities: import("./schemas.cjs").components["schemas"]["AppCapability"][];
|
|
225
225
|
installMethods: import("./schemas.cjs").components["schemas"]["InstallMethod"][];
|
|
226
|
-
}>;
|
|
226
|
+
} | undefined>;
|
|
227
227
|
/**
|
|
228
228
|
* Install an app via OAuth. Returns a URL to start the OAuth 2.0 flow.
|
|
229
229
|
* @param type - The type of the listing
|
|
@@ -232,14 +232,14 @@ export declare class AppMarketplace {
|
|
|
232
232
|
*/
|
|
233
233
|
getOauth2InstallUrl(type: operations['marketplaceOAuth2InstallGetURL']['parameters']['path']['type'], options?: RequestOptions): Promise<{
|
|
234
234
|
url: string;
|
|
235
|
-
}>;
|
|
235
|
+
} | undefined>;
|
|
236
236
|
/**
|
|
237
237
|
* Authorize OAuth2 code. Verifies the OAuth code and exchanges it for a token and refresh token
|
|
238
238
|
* @param type - The type of the listing
|
|
239
239
|
* @param signal - An optional abort signal
|
|
240
240
|
* @returns The authorization URL
|
|
241
241
|
*/
|
|
242
|
-
authorizeOauth2(type: operations['marketplaceOAuth2InstallAuthorize']['parameters']['path']['type'], options?: RequestOptions): Promise<
|
|
242
|
+
authorizeOauth2(type: operations['marketplaceOAuth2InstallAuthorize']['parameters']['path']['type'], options?: RequestOptions): Promise<undefined>;
|
|
243
243
|
/**
|
|
244
244
|
* Install an app via API key.
|
|
245
245
|
* @param type - The type of the listing
|
|
@@ -249,7 +249,7 @@ export declare class AppMarketplace {
|
|
|
249
249
|
installWithAPIKey(type: operations['marketplaceAppAPIKeyInstall']['parameters']['path']['type'], body: operations['marketplaceAppAPIKeyInstall']['requestBody']['content']['application/json'], options?: RequestOptions): Promise<{
|
|
250
250
|
app: import("./schemas.cjs").components["schemas"]["App"];
|
|
251
251
|
defaultForCapabilityTypes: import("./schemas.cjs").components["schemas"]["AppCapabilityType"][];
|
|
252
|
-
}>;
|
|
252
|
+
} | undefined>;
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
255
|
* Stripe App
|
|
@@ -283,7 +283,7 @@ export declare class AppStripe {
|
|
|
283
283
|
cancelURL?: string;
|
|
284
284
|
successURL?: string;
|
|
285
285
|
returnURL?: string;
|
|
286
|
-
}>;
|
|
286
|
+
} | undefined>;
|
|
287
287
|
/**
|
|
288
288
|
* Update Stripe API key
|
|
289
289
|
* @param id - The ID of the app
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../../../src/client/apps.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../../../src/client/apps.ts"],"names":[],"mappings":";;;AAQA,yCAA8C;AAE9C;;;GAGG;AACH,MAAa,IAAI;IAKK;IAJb,WAAW,CAAgB;IAC3B,MAAM,CAAW;IACjB,eAAe,CAAoB;IAE1C,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,WAAW,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,eAAe,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACvD,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,IAAI,CACf,KAAqD,EACrD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,cAAc,EAAE;YACjD,MAAM,EAAE,EAAE,KAAK,EAAE;YACjB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,EAAoD,EACpD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE;YACtD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE;YACxB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,MAAM,CACjB,EAAuD,EACvD,IAAsB,EAC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CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,mBAAmB,CAC9B,SAAiB,EACjB,IAAuG,EACvG,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACjC,0DAA0D,EAC1D;YACE,IAAI;YACJ,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,EAAE;YAC/B,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AA1ED,gDA0EC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.cjs';
|
|
2
3
|
import type { BillingProfileCreate, BillingProfileCustomerOverrideCreate, BillingProfileReplaceUpdateWithWorkflow, InvoicePendingLineCreateInput, InvoiceReplaceUpdate, InvoiceSimulationInput, operations, paths, VoidInvoiceActionInput } from './schemas.cjs';
|
|
3
|
-
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Billing
|
|
6
6
|
*/
|
|
@@ -35,7 +35,7 @@ export declare class BillingProfiles {
|
|
|
35
35
|
readonly workflow: import("./schemas.cjs").components["schemas"]["BillingWorkflow"];
|
|
36
36
|
readonly apps: import("./schemas.cjs").components["schemas"]["BillingProfileAppsOrReference"];
|
|
37
37
|
default: boolean;
|
|
38
|
-
}>;
|
|
38
|
+
} | undefined>;
|
|
39
39
|
/**
|
|
40
40
|
* Get a billing profile by ID
|
|
41
41
|
* @param id - The ID of the billing profile to get
|
|
@@ -54,7 +54,7 @@ export declare class BillingProfiles {
|
|
|
54
54
|
readonly workflow: import("./schemas.cjs").components["schemas"]["BillingWorkflow"];
|
|
55
55
|
readonly apps: import("./schemas.cjs").components["schemas"]["BillingProfileAppsOrReference"];
|
|
56
56
|
default: boolean;
|
|
57
|
-
}>;
|
|
57
|
+
} | undefined>;
|
|
58
58
|
/**
|
|
59
59
|
* List billing profiles
|
|
60
60
|
* @param query - The query parameters
|
|
@@ -66,7 +66,7 @@ export declare class BillingProfiles {
|
|
|
66
66
|
page: number;
|
|
67
67
|
pageSize: number;
|
|
68
68
|
items: import("./schemas.cjs").components["schemas"]["BillingProfile"][];
|
|
69
|
-
}>;
|
|
69
|
+
} | undefined>;
|
|
70
70
|
/**
|
|
71
71
|
* Update a billing profile
|
|
72
72
|
* @param id - The ID of the billing profile to update
|
|
@@ -86,7 +86,7 @@ export declare class BillingProfiles {
|
|
|
86
86
|
readonly workflow: import("./schemas.cjs").components["schemas"]["BillingWorkflow"];
|
|
87
87
|
readonly apps: import("./schemas.cjs").components["schemas"]["BillingProfileAppsOrReference"];
|
|
88
88
|
default: boolean;
|
|
89
|
-
}>;
|
|
89
|
+
} | undefined>;
|
|
90
90
|
/**
|
|
91
91
|
* Delete a billing profile
|
|
92
92
|
* @param id - The ID of the billing profile to delete
|
|
@@ -112,7 +112,7 @@ export declare class BillingInvoices {
|
|
|
112
112
|
page: number;
|
|
113
113
|
pageSize: number;
|
|
114
114
|
items: import("./schemas.cjs").components["schemas"]["Invoice"][];
|
|
115
|
-
}>;
|
|
115
|
+
} | undefined>;
|
|
116
116
|
/**
|
|
117
117
|
* Get an invoice by ID
|
|
118
118
|
* @param id - The ID of the invoice to get
|
|
@@ -148,7 +148,7 @@ export declare class BillingInvoices {
|
|
|
148
148
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
149
149
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
150
150
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
151
|
-
}>;
|
|
151
|
+
} | undefined>;
|
|
152
152
|
/**
|
|
153
153
|
* Update an invoice
|
|
154
154
|
* @description Only invoices in draft or earlier status can be updated.
|
|
@@ -186,7 +186,7 @@ export declare class BillingInvoices {
|
|
|
186
186
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
187
187
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
188
188
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
189
|
-
}>;
|
|
189
|
+
} | undefined>;
|
|
190
190
|
/**
|
|
191
191
|
* Delete an invoice
|
|
192
192
|
* @description Only invoices that are in the draft (or earlier) status can be deleted.
|
|
@@ -231,7 +231,7 @@ export declare class BillingInvoices {
|
|
|
231
231
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
232
232
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
233
233
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
234
|
-
}>;
|
|
234
|
+
} | undefined>;
|
|
235
235
|
/**
|
|
236
236
|
* Approve an invoice
|
|
237
237
|
* @description This call instantly sends the invoice to the customer using the configured billing profile app.
|
|
@@ -268,7 +268,7 @@ export declare class BillingInvoices {
|
|
|
268
268
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
269
269
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
270
270
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
271
|
-
}>;
|
|
271
|
+
} | undefined>;
|
|
272
272
|
/**
|
|
273
273
|
* Retry advancing the invoice after a failed attempt.
|
|
274
274
|
* @param id - The ID of the invoice to retry
|
|
@@ -304,7 +304,7 @@ export declare class BillingInvoices {
|
|
|
304
304
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
305
305
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
306
306
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
307
|
-
}>;
|
|
307
|
+
} | undefined>;
|
|
308
308
|
/**
|
|
309
309
|
* Void an invoice
|
|
310
310
|
* @description Void an invoice
|
|
@@ -343,7 +343,7 @@ export declare class BillingInvoices {
|
|
|
343
343
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
344
344
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
345
345
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
346
|
-
}>;
|
|
346
|
+
} | undefined>;
|
|
347
347
|
/**
|
|
348
348
|
* Recalculate an invoice's tax amounts
|
|
349
349
|
* @param id - The ID of the invoice to recalculate
|
|
@@ -379,7 +379,7 @@ export declare class BillingInvoices {
|
|
|
379
379
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
380
380
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
381
381
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
382
|
-
}>;
|
|
382
|
+
} | undefined>;
|
|
383
383
|
/**
|
|
384
384
|
* Simulate an invoice for a customer
|
|
385
385
|
* @param id - The ID of the customer to simulate the invoice for
|
|
@@ -415,7 +415,7 @@ export declare class BillingInvoices {
|
|
|
415
415
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
416
416
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
417
417
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
418
|
-
}>;
|
|
418
|
+
} | undefined>;
|
|
419
419
|
/**
|
|
420
420
|
* Create pending line items
|
|
421
421
|
* @description Create new pending line items (charges).
|
|
@@ -434,7 +434,7 @@ export declare class BillingInvoices {
|
|
|
434
434
|
readonly lines: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
435
435
|
readonly invoice: import("./schemas.cjs").components["schemas"]["Invoice"];
|
|
436
436
|
readonly isInvoiceNew: boolean;
|
|
437
|
-
}>;
|
|
437
|
+
} | undefined>;
|
|
438
438
|
/**
|
|
439
439
|
* Invoice a customer based on the pending line items
|
|
440
440
|
* @description Create a new invoice from the pending line items. This should only be called if for some reason we need to invoice a customer outside of the normal billing cycle.
|
|
@@ -471,7 +471,7 @@ export declare class BillingInvoices {
|
|
|
471
471
|
readonly payment?: import("./schemas.cjs").components["schemas"]["InvoicePaymentTerms"];
|
|
472
472
|
readonly validationIssues?: import("./schemas.cjs").components["schemas"]["ValidationIssue"][];
|
|
473
473
|
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceAppExternalIds"];
|
|
474
|
-
}[]>;
|
|
474
|
+
}[] | undefined>;
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
477
|
* Billing Customer Invoices and Overrides
|
|
@@ -491,7 +491,7 @@ export declare class BillingCustomers {
|
|
|
491
491
|
baseBillingProfileId: string;
|
|
492
492
|
customerProfile?: import("./schemas.cjs").components["schemas"]["BillingCustomerProfile"];
|
|
493
493
|
customer?: import("./schemas.cjs").components["schemas"]["Customer"];
|
|
494
|
-
}>;
|
|
494
|
+
} | undefined>;
|
|
495
495
|
/**
|
|
496
496
|
* Get a customer override
|
|
497
497
|
* @param id - The ID of the customer to get the override for
|
|
@@ -503,7 +503,7 @@ export declare class BillingCustomers {
|
|
|
503
503
|
baseBillingProfileId: string;
|
|
504
504
|
customerProfile?: import("./schemas.cjs").components["schemas"]["BillingCustomerProfile"];
|
|
505
505
|
customer?: import("./schemas.cjs").components["schemas"]["Customer"];
|
|
506
|
-
}>;
|
|
506
|
+
} | undefined>;
|
|
507
507
|
/**
|
|
508
508
|
* List customer overrides
|
|
509
509
|
* @param query - The query parameters
|
|
@@ -515,7 +515,7 @@ export declare class BillingCustomers {
|
|
|
515
515
|
page: number;
|
|
516
516
|
pageSize: number;
|
|
517
517
|
items: import("./schemas.cjs").components["schemas"]["BillingProfileCustomerOverrideWithDetails"][];
|
|
518
|
-
}>;
|
|
518
|
+
} | undefined>;
|
|
519
519
|
/**
|
|
520
520
|
* Delete a customer override
|
|
521
521
|
* @param id - The ID of the customer to delete the override for
|