@openmeter/sdk 1.0.0-beta.223 → 1.0.0-beta.224
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/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 +3 -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 +11 -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 +299 -13
- 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 +8 -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 +876 -615
- package/dist/cjs/src/zod/index.d.cts +906 -599
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/tsconfig.041f8f6a.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.c55e75d7.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 +3 -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 +11 -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 +299 -13
- 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 +8 -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 +906 -599
- package/dist/src/zod/index.js +795 -536
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.js';
|
|
2
3
|
import type { BillingProfileCreate, BillingProfileCustomerOverrideCreate, BillingProfileReplaceUpdateWithWorkflow, InvoicePendingLineCreateInput, InvoiceReplaceUpdate, InvoiceSimulationInput, operations, paths, VoidInvoiceActionInput } from './schemas.js';
|
|
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.js").components["schemas"]["BillingWorkflow"];
|
|
36
36
|
readonly apps: import("./schemas.js").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.js").components["schemas"]["BillingWorkflow"];
|
|
55
55
|
readonly apps: import("./schemas.js").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.js").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.js").components["schemas"]["BillingWorkflow"];
|
|
87
87
|
readonly apps: import("./schemas.js").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.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
149
149
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
150
150
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
187
187
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
188
188
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
232
232
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
233
233
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
269
269
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
270
270
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
305
305
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
306
306
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
344
344
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
345
345
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
380
380
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
381
381
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
416
416
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
417
417
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["InvoiceLine"][];
|
|
435
435
|
readonly invoice: import("./schemas.js").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.js").components["schemas"]["InvoicePaymentTerms"];
|
|
472
472
|
readonly validationIssues?: import("./schemas.js").components["schemas"]["ValidationIssue"][];
|
|
473
473
|
readonly externalIds?: import("./schemas.js").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.js").components["schemas"]["BillingCustomerProfile"];
|
|
493
493
|
customer?: import("./schemas.js").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.js").components["schemas"]["BillingCustomerProfile"];
|
|
505
505
|
customer?: import("./schemas.js").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.js").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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../../src/client/billing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../../src/client/billing.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C;;GAEG;AACH,MAAM,OAAO,OAAO;IAKE;IAJb,QAAQ,CAAiB;IACzB,QAAQ,CAAiB;IACzB,SAAS,CAAkB;IAElC,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACpD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,eAAe;IACN;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CACjB,cAAoC,EACpC,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,EAAE;YAC9D,IAAI,EAAE,cAAc;YACpB,GAAG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CAAC,cAAc,CACzB,EAA0F,EAC1F,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACnC,wCAAwC,EACxC;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;YACpC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF"}
|
|
@@ -12,15 +12,15 @@ export declare class HTTPError extends Error {
|
|
|
12
12
|
title: string;
|
|
13
13
|
status: number;
|
|
14
14
|
url: string;
|
|
15
|
-
protected __raw?: Record<string,
|
|
15
|
+
protected __raw?: Record<string, unknown> | undefined;
|
|
16
16
|
name: string;
|
|
17
17
|
client: string;
|
|
18
|
-
constructor(message: string, type: string, title: string, status: number, url: string, __raw?: Record<string,
|
|
18
|
+
constructor(message: string, type: string, title: string, status: number, url: string, __raw?: Record<string, unknown> | undefined);
|
|
19
19
|
static fromResponse(resp: {
|
|
20
20
|
response: Response;
|
|
21
21
|
error?: UnexpectedProblemResponse;
|
|
22
22
|
}): HTTPError;
|
|
23
|
-
getField(key: string):
|
|
23
|
+
getField(key: string): unknown;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if an error is an HTTPError
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/client/common.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAKzB;IACA;IACA;IACA;IACA;IACG;IATL,IAAI,GAAG,WAAW,CAAA;IAClB,MAAM,GAAG,WAAW,CAAA;IAE3B,YACS,OAAe,EACf,IAAY,EACZ,KAAa,EACb,MAAc,EACd,GAAW,EACR,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/client/common.ts"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,OAAO,SAAU,SAA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AC,GAAG,CAClB,CAAA;IACH,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAA;IAC1B,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,OAAO,KAAK,YAAY,SAAS,CAAA;AACnC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.js';
|
|
2
3
|
import type { CreateStripeCustomerPortalSessionParams, CustomerAppData, CustomerCreate, CustomerReplaceUpdate, operations, paths, StripeCustomerAppDataBase } from './schemas.js';
|
|
3
|
-
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Customers
|
|
6
6
|
* Manage customer subscription lifecycles and plan assignments.
|
|
@@ -34,7 +34,7 @@ export declare class Customers {
|
|
|
34
34
|
readonly currentSubscriptionId?: string;
|
|
35
35
|
readonly subscriptions?: import("./schemas.js").components["schemas"]["Subscription"][];
|
|
36
36
|
readonly annotations?: import("./schemas.js").components["schemas"]["Annotations"];
|
|
37
|
-
}>;
|
|
37
|
+
} | undefined>;
|
|
38
38
|
/**
|
|
39
39
|
* Get a customer by ID
|
|
40
40
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -57,7 +57,7 @@ export declare class Customers {
|
|
|
57
57
|
readonly currentSubscriptionId?: string;
|
|
58
58
|
readonly subscriptions?: import("./schemas.js").components["schemas"]["Subscription"][];
|
|
59
59
|
readonly annotations?: import("./schemas.js").components["schemas"]["Annotations"];
|
|
60
|
-
}>;
|
|
60
|
+
} | undefined>;
|
|
61
61
|
/**
|
|
62
62
|
* Update a customer
|
|
63
63
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -81,7 +81,7 @@ export declare class Customers {
|
|
|
81
81
|
readonly currentSubscriptionId?: string;
|
|
82
82
|
readonly subscriptions?: import("./schemas.js").components["schemas"]["Subscription"][];
|
|
83
83
|
readonly annotations?: import("./schemas.js").components["schemas"]["Annotations"];
|
|
84
|
-
}>;
|
|
84
|
+
} | undefined>;
|
|
85
85
|
/**
|
|
86
86
|
* Delete a customer
|
|
87
87
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -99,7 +99,7 @@ export declare class Customers {
|
|
|
99
99
|
page: number;
|
|
100
100
|
pageSize: number;
|
|
101
101
|
items: import("./schemas.js").components["schemas"]["Customer"][];
|
|
102
|
-
}>;
|
|
102
|
+
} | undefined>;
|
|
103
103
|
/**
|
|
104
104
|
* Get customer access
|
|
105
105
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -110,7 +110,7 @@ export declare class Customers {
|
|
|
110
110
|
readonly entitlements: {
|
|
111
111
|
[key: string]: import("./schemas.js").components["schemas"]["EntitlementValue"];
|
|
112
112
|
};
|
|
113
|
-
}>;
|
|
113
|
+
} | undefined>;
|
|
114
114
|
/**
|
|
115
115
|
* List customer subscriptions
|
|
116
116
|
* @param customerIdOrKey - The ID or key of the customer
|
|
@@ -123,7 +123,7 @@ export declare class Customers {
|
|
|
123
123
|
page: number;
|
|
124
124
|
pageSize: number;
|
|
125
125
|
items: import("./schemas.js").components["schemas"]["Subscription"][];
|
|
126
|
-
}>;
|
|
126
|
+
} | undefined>;
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* Customer Apps
|
|
@@ -154,7 +154,7 @@ export declare class CustomerApps {
|
|
|
154
154
|
readonly app?: import("./schemas.js").components["schemas"]["SandboxApp"];
|
|
155
155
|
id?: string;
|
|
156
156
|
type: "sandbox";
|
|
157
|
-
})[]>;
|
|
157
|
+
})[] | undefined>;
|
|
158
158
|
/**
|
|
159
159
|
* List customer app data
|
|
160
160
|
* @param customerIdOrKey - The ID or key of the customer
|
|
@@ -167,7 +167,7 @@ export declare class CustomerApps {
|
|
|
167
167
|
page: number;
|
|
168
168
|
pageSize: number;
|
|
169
169
|
items: import("./schemas.js").components["schemas"]["CustomerAppData"][];
|
|
170
|
-
}>;
|
|
170
|
+
} | undefined>;
|
|
171
171
|
/**
|
|
172
172
|
* Delete customer app data
|
|
173
173
|
* @param customerIdOrKey - The ID or key of the customer
|
|
@@ -197,7 +197,7 @@ export declare class CustomerStripe {
|
|
|
197
197
|
stripeCustomerId: string;
|
|
198
198
|
stripeDefaultPaymentMethodId?: string;
|
|
199
199
|
readonly app?: import("./schemas.js").components["schemas"]["StripeApp"];
|
|
200
|
-
}>;
|
|
200
|
+
} | undefined>;
|
|
201
201
|
/**
|
|
202
202
|
* Get customer stripe app data
|
|
203
203
|
* @param customerIdOrKey - The ID or key of the customer
|
|
@@ -210,7 +210,7 @@ export declare class CustomerStripe {
|
|
|
210
210
|
page: number;
|
|
211
211
|
pageSize: number;
|
|
212
212
|
items: import("./schemas.js").components["schemas"]["CustomerAppData"][];
|
|
213
|
-
}>;
|
|
213
|
+
} | undefined>;
|
|
214
214
|
/**
|
|
215
215
|
* Create a Stripe customer portal session
|
|
216
216
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -227,7 +227,7 @@ export declare class CustomerStripe {
|
|
|
227
227
|
returnUrl: string;
|
|
228
228
|
locale: string;
|
|
229
229
|
url: string;
|
|
230
|
-
}>;
|
|
230
|
+
} | undefined>;
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
233
|
* Customer Entitlements
|
|
@@ -248,7 +248,7 @@ export declare class CustomerEntitlements {
|
|
|
248
248
|
readonly usage?: number;
|
|
249
249
|
readonly overage?: number;
|
|
250
250
|
readonly config?: string;
|
|
251
|
-
}>;
|
|
251
|
+
} | undefined>;
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
254
|
* Customer Entitlements V2
|
|
@@ -269,7 +269,7 @@ export declare class CustomerEntitlementsV2 {
|
|
|
269
269
|
page: number;
|
|
270
270
|
pageSize: number;
|
|
271
271
|
items: import("./schemas.js").components["schemas"]["EntitlementV2"][];
|
|
272
|
-
}>;
|
|
272
|
+
} | undefined>;
|
|
273
273
|
/**
|
|
274
274
|
* Create a customer entitlement
|
|
275
275
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -350,7 +350,7 @@ export declare class CustomerEntitlementsV2 {
|
|
|
350
350
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
|
-
}, `${string}/${string}
|
|
353
|
+
}, `${string}/${string}`> | undefined>;
|
|
354
354
|
/**
|
|
355
355
|
* Get a specific customer entitlement
|
|
356
356
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -431,7 +431,7 @@ export declare class CustomerEntitlementsV2 {
|
|
|
431
431
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
432
432
|
};
|
|
433
433
|
};
|
|
434
|
-
}, `${string}/${string}
|
|
434
|
+
}, `${string}/${string}`> | undefined>;
|
|
435
435
|
/**
|
|
436
436
|
* Delete a customer entitlement
|
|
437
437
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -529,7 +529,7 @@ export declare class CustomerEntitlementsV2 {
|
|
|
529
529
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
530
530
|
};
|
|
531
531
|
};
|
|
532
|
-
}, `${string}/${string}
|
|
532
|
+
}, `${string}/${string}`> | undefined>;
|
|
533
533
|
/**
|
|
534
534
|
* List grants for a customer entitlement
|
|
535
535
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -543,8 +543,8 @@ export declare class CustomerEntitlementsV2 {
|
|
|
543
543
|
totalCount: number;
|
|
544
544
|
page: number;
|
|
545
545
|
pageSize: number;
|
|
546
|
-
items: import("./schemas.js").components["schemas"]["
|
|
547
|
-
}>;
|
|
546
|
+
items: import("./schemas.js").components["schemas"]["EntitlementGrantV2"][];
|
|
547
|
+
} | undefined>;
|
|
548
548
|
/**
|
|
549
549
|
* Create a grant for a customer entitlement
|
|
550
550
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -560,17 +560,18 @@ export declare class CustomerEntitlementsV2 {
|
|
|
560
560
|
amount: number;
|
|
561
561
|
priority?: number;
|
|
562
562
|
effectiveAt: Date;
|
|
563
|
-
expiration: import("./schemas.js").components["schemas"]["ExpirationPeriod"];
|
|
564
|
-
maxRolloverAmount?: number;
|
|
565
563
|
minRolloverAmount?: number;
|
|
566
564
|
metadata?: import("./schemas.js").components["schemas"]["Metadata"];
|
|
565
|
+
maxRolloverAmount?: number;
|
|
566
|
+
expiration?: import("./schemas.js").components["schemas"]["ExpirationPeriod"];
|
|
567
|
+
annotations?: import("./schemas.js").components["schemas"]["Annotations"];
|
|
567
568
|
readonly id: string;
|
|
568
569
|
readonly entitlementId: string;
|
|
569
570
|
nextRecurrence?: Date;
|
|
570
571
|
readonly expiresAt?: Date;
|
|
571
572
|
voidedAt?: Date;
|
|
572
573
|
recurrence?: import("./schemas.js").components["schemas"]["RecurringPeriod"];
|
|
573
|
-
}>;
|
|
574
|
+
} | undefined>;
|
|
574
575
|
/**
|
|
575
576
|
* Get the value of a customer entitlement
|
|
576
577
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -586,7 +587,7 @@ export declare class CustomerEntitlementsV2 {
|
|
|
586
587
|
readonly usage?: number;
|
|
587
588
|
readonly overage?: number;
|
|
588
589
|
readonly config?: string;
|
|
589
|
-
}>;
|
|
590
|
+
} | undefined>;
|
|
590
591
|
/**
|
|
591
592
|
* Get the history of a customer entitlement
|
|
592
593
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -600,7 +601,7 @@ export declare class CustomerEntitlementsV2 {
|
|
|
600
601
|
}): Promise<{
|
|
601
602
|
windowedHistory: import("./schemas.js").components["schemas"]["BalanceHistoryWindow"][];
|
|
602
603
|
burndownHistory: import("./schemas.js").components["schemas"]["GrantBurnDownHistorySegment"][];
|
|
603
|
-
}>;
|
|
604
|
+
} | undefined>;
|
|
604
605
|
/**
|
|
605
606
|
* Reset the usage of a customer entitlement
|
|
606
607
|
* @param customerIdOrKey - The ID or Key of the customer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/client/customers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/client/customers.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C;;;GAGG;AACH,MAAM,OAAO,SAAS;IAMA;IALb,IAAI,CAAc;IAClB,cAAc,CAAsB;IACpC,YAAY,CAAwB;IACpC,MAAM,CAAgB;IAE7B,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAA;QACpC,IAAI,CAAC,cAAc,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAA;QACtD,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAsB,CAAC,MAAM,CAAC,CAAA;QACtD,IAAI,CAAC,MAAM,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAA;IAC1C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CAAC,QAAwB,EAAE,OAAwB;QACpE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE;YACvD,IAAI,EAAE,QAAQ;YACd,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,eAAmF,EACnF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,EAAE;YACxE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,eAAe;iBAChB;aACF;YACD,GAAG,OAAO;SACX,CAAC,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AED,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,UAAU,CACrB,eAAuG,EACvG,yBAA2H,EAC3H,KAAkG,EAClG,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACjC,oFAAoF,EACpF;YACE,IAAI,EAAE,KAAK;YACX,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,eAAe,EAAE,yBAAyB,EAAE;aACrD;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.js';
|
|
2
3
|
import type { paths } from './schemas.js';
|
|
3
|
-
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Debug utilities for OpenMeter
|
|
6
6
|
*/
|
|
@@ -13,5 +13,5 @@ export declare class Debug {
|
|
|
13
13
|
* @param options - The request options
|
|
14
14
|
* @returns The debug metrics
|
|
15
15
|
*/
|
|
16
|
-
getMetrics(options?: RequestOptions): Promise<string>;
|
|
16
|
+
getMetrics(options?: RequestOptions): Promise<string | undefined>;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/client/debug.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/client/debug.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C;;GAEG;AACH,MAAM,OAAO,KAAK;IACI;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,UAAU,CAAC,OAAwB;QAC9C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE;YAC1D,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { Client } from 'openapi-fetch';
|
|
1
2
|
import type { RequestOptions } from './common.js';
|
|
2
3
|
import type { EntitlementCreateInputs, EntitlementGrantCreateInput, operations, paths, ResetEntitlementUsageInput } from './schemas.js';
|
|
3
|
-
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Entitlements
|
|
6
6
|
* @description With Entitlements, you can define and enforce usage limits, implement quota-based pricing, and manage access to features in your application.
|
|
@@ -98,7 +98,7 @@ export declare class Entitlements {
|
|
|
98
98
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
}, `${string}/${string}
|
|
101
|
+
}, `${string}/${string}`> | undefined>;
|
|
102
102
|
/**
|
|
103
103
|
* Get an entitlement by ID
|
|
104
104
|
*
|
|
@@ -179,7 +179,7 @@ export declare class Entitlements {
|
|
|
179
179
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
|
-
}, `${string}/${string}
|
|
182
|
+
}, `${string}/${string}`> | undefined>;
|
|
183
183
|
/**
|
|
184
184
|
* List entitlements
|
|
185
185
|
*
|
|
@@ -266,7 +266,7 @@ export declare class Entitlements {
|
|
|
266
266
|
readonly usage?: number;
|
|
267
267
|
readonly overage?: number;
|
|
268
268
|
readonly config?: string;
|
|
269
|
-
}>;
|
|
269
|
+
} | undefined>;
|
|
270
270
|
/**
|
|
271
271
|
* Get the history of an entitlement
|
|
272
272
|
* Returns historical balance and usage data for the entitlement. The queried history can span accross multiple reset events.
|
|
@@ -280,7 +280,7 @@ export declare class Entitlements {
|
|
|
280
280
|
history(subjectIdOrKey: operations['getEntitlementHistory']['parameters']['path']['subjectIdOrKey'], entitlementId: operations['getEntitlementHistory']['parameters']['path']['entitlementId'], query: operations['getEntitlementHistory']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
281
281
|
windowedHistory: import("./schemas.js").components["schemas"]["BalanceHistoryWindow"][];
|
|
282
282
|
burndownHistory: import("./schemas.js").components["schemas"]["GrantBurnDownHistorySegment"][];
|
|
283
|
-
}>;
|
|
283
|
+
} | undefined>;
|
|
284
284
|
/**
|
|
285
285
|
* Override an entitlement
|
|
286
286
|
* This is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
|
|
@@ -372,7 +372,7 @@ export declare class Entitlements {
|
|
|
372
372
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
373
373
|
};
|
|
374
374
|
};
|
|
375
|
-
}, `${string}/${string}
|
|
375
|
+
}, `${string}/${string}`> | undefined>;
|
|
376
376
|
/**
|
|
377
377
|
* Reset entitlement usage
|
|
378
378
|
* - Reset marks the start of a new usage period for the entitlement and initiates grant rollover. At the start of a period usage is zerod out and grants are rolled over based on their rollover settings. It would typically be synced with the subjects billing period to enforce usage based on their subscription.
|
|
@@ -415,7 +415,8 @@ export declare class Grants {
|
|
|
415
415
|
readonly expiresAt?: Date;
|
|
416
416
|
voidedAt?: Date;
|
|
417
417
|
recurrence?: import("./schemas.js").components["schemas"]["RecurringPeriod"];
|
|
418
|
-
|
|
418
|
+
annotations?: import("./schemas.js").components["schemas"]["Annotations"];
|
|
419
|
+
} | undefined>;
|
|
419
420
|
/**
|
|
420
421
|
* List grants for an entitlement
|
|
421
422
|
*
|
|
@@ -441,7 +442,8 @@ export declare class Grants {
|
|
|
441
442
|
readonly expiresAt?: Date;
|
|
442
443
|
voidedAt?: Date;
|
|
443
444
|
recurrence?: import("./schemas.js").components["schemas"]["RecurringPeriod"];
|
|
444
|
-
|
|
445
|
+
annotations?: import("./schemas.js").components["schemas"]["Annotations"];
|
|
446
|
+
}[] | undefined>;
|
|
445
447
|
/**
|
|
446
448
|
* List all grants
|
|
447
449
|
* List all grants for all the subjects and entitlements.
|
|
@@ -515,7 +517,7 @@ export declare class Grants {
|
|
|
515
517
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
516
518
|
};
|
|
517
519
|
};
|
|
518
|
-
}, `${string}/${string}
|
|
520
|
+
}, `${string}/${string}`> | undefined>;
|
|
519
521
|
/**
|
|
520
522
|
* Void a grant
|
|
521
523
|
* Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations.
|
|
@@ -550,7 +552,7 @@ export declare class EntitlementsV2 {
|
|
|
550
552
|
page: number;
|
|
551
553
|
pageSize: number;
|
|
552
554
|
items: import("./schemas.js").components["schemas"]["EntitlementV2"][];
|
|
553
|
-
}>;
|
|
555
|
+
} | undefined>;
|
|
554
556
|
/**
|
|
555
557
|
* Get entitlement by ID
|
|
556
558
|
* @param entitlementId - The ID of the entitlement
|
|
@@ -630,7 +632,7 @@ export declare class EntitlementsV2 {
|
|
|
630
632
|
"application/problem+json": import("./schemas.js").components["schemas"]["UnexpectedProblemResponse"];
|
|
631
633
|
};
|
|
632
634
|
};
|
|
633
|
-
}, `${string}/${string}
|
|
635
|
+
}, `${string}/${string}`> | undefined>;
|
|
634
636
|
}
|
|
635
637
|
/**
|
|
636
638
|
* Grants
|
|
@@ -651,8 +653,8 @@ export declare class GrantsV2 {
|
|
|
651
653
|
totalCount: number;
|
|
652
654
|
page: number;
|
|
653
655
|
pageSize: number;
|
|
654
|
-
items: import("./schemas.js").components["schemas"]["
|
|
655
|
-
}>;
|
|
656
|
+
items: import("./schemas.js").components["schemas"]["EntitlementGrantV2"][];
|
|
657
|
+
} | undefined>;
|
|
656
658
|
/**
|
|
657
659
|
* Void a grant (legacy method using V1 endpoint)
|
|
658
660
|
* @description Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/client/entitlements.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/client/entitlements.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C;;;GAGG;AACH,MAAM,OAAO,YAAY;IAGH;IAFb,MAAM,CAAQ;IAErB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,CAAA;IAClC,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACI,KAAK,CAAC,MAAM,CACjB,cAAuF,EACvF,WAAoC,EACpC,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACjC,gDAAgD,EAChD;YACE,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,cAAc,EAAE,cAAc;iBAC/B;aACF;YACD,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,EAAuE,EACvE,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sCAAsC,EAAE;YACzE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,aAAa,EAAE,EAAE;iBAClB;aACF;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,IAAI,CACf,KAGC,EACD,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,s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BAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,CACd,aAAwF,EACxF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,sCAAsC,EAAE;YACzE,MAAM,EAAE;gBACN,IAAI,EAAE,EAAE,aAAa,EAAE;aACxB;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,QAAQ;IACC;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;;OAMG;IACI,KAAK,CAAC,IAAI,CACf,OAEC;QAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,EAAE;YACnD,MAAM,EAAE;gBACN,KAAK,EAAE,OAAO,EAAE,KAAK;aACtB;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,IAAI,CACf,OAAiE,EACjE,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,0BAA0B,EAAE;YAChE,MAAM,EAAE;gBACN,IAAI,EAAE;oBACJ,OAAO;iBACR;aACF;YACD,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RequestOptions } from './common.js';
|
|
2
|
-
import type { operations, paths, Event } from './schemas.js';
|
|
3
1
|
import type { Client } from 'openapi-fetch';
|
|
2
|
+
import type { RequestOptions } from './common.js';
|
|
3
|
+
import type { Event, operations, paths } from './schemas.js';
|
|
4
4
|
/**
|
|
5
5
|
* Events are used to track usage of your product or service.
|
|
6
6
|
* Events are processed asynchronously by the meters, so they may not be immediately available for querying.
|
|
@@ -27,7 +27,7 @@ export declare class Events {
|
|
|
27
27
|
validationError?: string;
|
|
28
28
|
ingestedAt: Date;
|
|
29
29
|
storedAt: Date;
|
|
30
|
-
}[]>;
|
|
30
|
+
}[] | undefined>;
|
|
31
31
|
/**
|
|
32
32
|
* List events (V2)
|
|
33
33
|
* @description List ingested events with advanced filtering and cursor pagination.
|
|
@@ -38,7 +38,7 @@ export declare class Events {
|
|
|
38
38
|
listV2(params?: operations['listEventsV2']['parameters']['query'], options?: RequestOptions): Promise<{
|
|
39
39
|
items: import("./schemas.js").components["schemas"]["IngestedEvent"][];
|
|
40
40
|
nextCursor?: string;
|
|
41
|
-
}>;
|
|
41
|
+
} | undefined>;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Sets the defaults for an event
|