@openmeter/client 1.0.0-beta-8b9649eab215 → 1.0.0-beta-4e7660203681
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 +4 -3
- package/dist/funcs/invoices.d.ts +2 -1
- package/dist/funcs/invoices.js +11 -1
- package/dist/index.d.ts +1 -1
- package/dist/models/operations/invoices.d.ts +31 -0
- package/dist/models/schemas.d.ts +999 -245
- package/dist/models/schemas.js +34 -0
- package/dist/models/types.d.ts +48 -0
- package/dist/sdk/invoices.d.ts +2 -1
- package/dist/sdk/invoices.js +4 -1
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -2011,6 +2011,39 @@ export declare const listEventsParamsFilter: z.ZodObject<{
|
|
|
2011
2011
|
gte: z.ZodOptional<z.ZodString>;
|
|
2012
2012
|
}, z.core.$strip>]>>;
|
|
2013
2013
|
}, z.core.$strip>;
|
|
2014
|
+
export declare const listInvoicesParamsFilter: z.ZodObject<{
|
|
2015
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2016
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2017
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2018
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
2019
|
+
}, z.core.$strip>]>>;
|
|
2020
|
+
customer_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2021
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2022
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2023
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
2024
|
+
}, z.core.$strip>]>>;
|
|
2025
|
+
issued_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2026
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2027
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
2028
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
2029
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
2030
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
2031
|
+
}, z.core.$strip>]>>;
|
|
2032
|
+
service_period_start: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2033
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2034
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
2035
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
2036
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
2037
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
2038
|
+
}, z.core.$strip>]>>;
|
|
2039
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2040
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
2042
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
2045
|
+
}, z.core.$strip>]>>;
|
|
2046
|
+
}, z.core.$strip>;
|
|
2014
2047
|
export declare const resourceFilters: z.ZodObject<{
|
|
2015
2048
|
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
2016
2049
|
eq: z.ZodOptional<z.ZodString>;
|
|
@@ -8586,193 +8619,353 @@ export declare const invoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8586
8619
|
}, z.core.$strip>>;
|
|
8587
8620
|
}, z.core.$strip>], "type">>>;
|
|
8588
8621
|
}, z.core.$strip>], "type">;
|
|
8589
|
-
export declare const
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
lt: z.ZodOptional<z.ZodString>;
|
|
8617
|
-
lte: z.ZodOptional<z.ZodString>;
|
|
8618
|
-
exists: z.ZodOptional<z.ZodBoolean>;
|
|
8619
|
-
}, z.core.$strip>]>>;
|
|
8620
|
-
subject: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8621
|
-
eq: z.ZodOptional<z.ZodString>;
|
|
8622
|
-
neq: z.ZodOptional<z.ZodString>;
|
|
8623
|
-
contains: z.ZodOptional<z.ZodString>;
|
|
8624
|
-
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8625
|
-
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8626
|
-
gt: z.ZodOptional<z.ZodString>;
|
|
8627
|
-
gte: z.ZodOptional<z.ZodString>;
|
|
8628
|
-
lt: z.ZodOptional<z.ZodString>;
|
|
8629
|
-
lte: z.ZodOptional<z.ZodString>;
|
|
8630
|
-
exists: z.ZodOptional<z.ZodBoolean>;
|
|
8631
|
-
}, z.core.$strip>]>>;
|
|
8632
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8633
|
-
eq: z.ZodOptional<z.ZodString>;
|
|
8634
|
-
neq: z.ZodOptional<z.ZodString>;
|
|
8635
|
-
contains: z.ZodOptional<z.ZodString>;
|
|
8636
|
-
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8637
|
-
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8638
|
-
gt: z.ZodOptional<z.ZodString>;
|
|
8639
|
-
gte: z.ZodOptional<z.ZodString>;
|
|
8640
|
-
lt: z.ZodOptional<z.ZodString>;
|
|
8641
|
-
lte: z.ZodOptional<z.ZodString>;
|
|
8642
|
-
exists: z.ZodOptional<z.ZodBoolean>;
|
|
8643
|
-
}, z.core.$strip>]>>;
|
|
8644
|
-
customer_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8645
|
-
eq: z.ZodOptional<z.ZodString>;
|
|
8646
|
-
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8647
|
-
neq: z.ZodOptional<z.ZodString>;
|
|
8648
|
-
}, z.core.$strip>]>>;
|
|
8649
|
-
time: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8650
|
-
eq: z.ZodOptional<z.ZodString>;
|
|
8651
|
-
lt: z.ZodOptional<z.ZodString>;
|
|
8652
|
-
lte: z.ZodOptional<z.ZodString>;
|
|
8653
|
-
gt: z.ZodOptional<z.ZodString>;
|
|
8654
|
-
gte: z.ZodOptional<z.ZodString>;
|
|
8655
|
-
}, z.core.$strip>]>>;
|
|
8656
|
-
ingested_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8657
|
-
eq: z.ZodOptional<z.ZodString>;
|
|
8658
|
-
lt: z.ZodOptional<z.ZodString>;
|
|
8659
|
-
lte: z.ZodOptional<z.ZodString>;
|
|
8660
|
-
gt: z.ZodOptional<z.ZodString>;
|
|
8661
|
-
gte: z.ZodOptional<z.ZodString>;
|
|
8662
|
-
}, z.core.$strip>]>>;
|
|
8663
|
-
stored_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8664
|
-
eq: z.ZodOptional<z.ZodString>;
|
|
8665
|
-
lt: z.ZodOptional<z.ZodString>;
|
|
8666
|
-
lte: z.ZodOptional<z.ZodString>;
|
|
8667
|
-
gt: z.ZodOptional<z.ZodString>;
|
|
8668
|
-
gte: z.ZodOptional<z.ZodString>;
|
|
8669
|
-
}, z.core.$strip>]>>;
|
|
8670
|
-
}, z.core.$strip>>;
|
|
8671
|
-
sort: z.ZodOptional<z.ZodObject<{
|
|
8672
|
-
by: z.ZodString;
|
|
8673
|
-
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
8674
|
-
}, z.core.$strip>>;
|
|
8675
|
-
}, z.core.$strip>;
|
|
8676
|
-
export declare const listMeteringEventsResponse: z.ZodObject<{
|
|
8677
|
-
data: z.ZodArray<z.ZodObject<{
|
|
8678
|
-
event: z.ZodObject<{
|
|
8679
|
-
id: z.ZodString;
|
|
8680
|
-
source: z.ZodString;
|
|
8681
|
-
specversion: z.ZodDefault<z.ZodString>;
|
|
8682
|
-
type: z.ZodString;
|
|
8683
|
-
datacontenttype: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"application/json">, z.ZodNull]>>;
|
|
8684
|
-
dataschema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
8685
|
-
subject: z.ZodString;
|
|
8686
|
-
time: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
8687
|
-
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
|
|
8622
|
+
export declare const invoicePagePaginatedResponse: z.ZodObject<{
|
|
8623
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8624
|
+
id: z.ZodString;
|
|
8625
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8626
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8627
|
+
created_at: z.ZodString;
|
|
8628
|
+
updated_at: z.ZodString;
|
|
8629
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8630
|
+
number: z.ZodString;
|
|
8631
|
+
currency: z.ZodString;
|
|
8632
|
+
supplier: z.ZodObject<{
|
|
8633
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8634
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8635
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
8636
|
+
code: z.ZodOptional<z.ZodString>;
|
|
8637
|
+
}, z.core.$strip>>;
|
|
8638
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
8639
|
+
billing_address: z.ZodObject<{
|
|
8640
|
+
country: z.ZodOptional<z.ZodString>;
|
|
8641
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
8642
|
+
state: z.ZodOptional<z.ZodString>;
|
|
8643
|
+
city: z.ZodOptional<z.ZodString>;
|
|
8644
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
8645
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
8646
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
8647
|
+
}, z.core.$strip>;
|
|
8648
|
+
}, z.core.$strip>>;
|
|
8688
8649
|
}, z.core.$strip>;
|
|
8689
|
-
customer: z.
|
|
8650
|
+
customer: z.ZodObject<{
|
|
8690
8651
|
id: z.ZodString;
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8652
|
+
name: z.ZodString;
|
|
8653
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
8654
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
8655
|
+
}, z.core.$strip>>;
|
|
8656
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
8657
|
+
country: z.ZodOptional<z.ZodString>;
|
|
8658
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
8659
|
+
state: z.ZodOptional<z.ZodString>;
|
|
8660
|
+
city: z.ZodOptional<z.ZodString>;
|
|
8661
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
8662
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
8663
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
8664
|
+
}, z.core.$strip>>;
|
|
8665
|
+
key: z.ZodOptional<z.ZodString>;
|
|
8666
|
+
}, z.core.$strip>;
|
|
8667
|
+
totals: z.ZodObject<{
|
|
8668
|
+
amount: z.ZodString;
|
|
8669
|
+
taxes_total: z.ZodString;
|
|
8670
|
+
taxes_inclusive_total: z.ZodString;
|
|
8671
|
+
taxes_exclusive_total: z.ZodString;
|
|
8672
|
+
charges_total: z.ZodString;
|
|
8673
|
+
discounts_total: z.ZodString;
|
|
8674
|
+
credits_total: z.ZodString;
|
|
8675
|
+
total: z.ZodString;
|
|
8676
|
+
}, z.core.$strip>;
|
|
8677
|
+
service_period: z.ZodObject<{
|
|
8678
|
+
from: z.ZodString;
|
|
8679
|
+
to: z.ZodString;
|
|
8680
|
+
}, z.core.$strip>;
|
|
8681
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8695
8682
|
code: z.ZodString;
|
|
8696
8683
|
message: z.ZodString;
|
|
8697
8684
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8685
|
+
severity: z.ZodEnum<{
|
|
8686
|
+
critical: "critical";
|
|
8687
|
+
warning: "warning";
|
|
8688
|
+
}>;
|
|
8689
|
+
field: z.ZodOptional<z.ZodString>;
|
|
8698
8690
|
}, z.core.$strip>>>;
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8691
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8692
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8693
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
8694
|
+
}, z.core.$strip>>;
|
|
8695
|
+
type: z.ZodLiteral<"standard">;
|
|
8696
|
+
status: z.ZodEnum<{
|
|
8697
|
+
voided: "voided";
|
|
8698
|
+
draft: "draft";
|
|
8699
|
+
issuing: "issuing";
|
|
8700
|
+
issued: "issued";
|
|
8701
|
+
payment_processing: "payment_processing";
|
|
8702
|
+
overdue: "overdue";
|
|
8703
|
+
paid: "paid";
|
|
8704
|
+
uncollectible: "uncollectible";
|
|
8705
|
+
}>;
|
|
8706
|
+
status_details: z.ZodObject<{
|
|
8707
|
+
immutable: z.ZodBoolean;
|
|
8708
|
+
failed: z.ZodBoolean;
|
|
8709
|
+
extended_status: z.ZodString;
|
|
8710
|
+
available_actions: z.ZodObject<{
|
|
8711
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
8712
|
+
resulting_state: z.ZodString;
|
|
8713
|
+
}, z.core.$strip>>;
|
|
8714
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
8715
|
+
resulting_state: z.ZodString;
|
|
8716
|
+
}, z.core.$strip>>;
|
|
8717
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
8718
|
+
resulting_state: z.ZodString;
|
|
8719
|
+
}, z.core.$strip>>;
|
|
8720
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
8721
|
+
resulting_state: z.ZodString;
|
|
8722
|
+
}, z.core.$strip>>;
|
|
8723
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
8724
|
+
resulting_state: z.ZodString;
|
|
8725
|
+
}, z.core.$strip>>;
|
|
8726
|
+
}, z.core.$strip>;
|
|
8707
8727
|
}, z.core.$strip>;
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8744
|
-
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8728
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
8729
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
8730
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
8731
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
8732
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
8733
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
8734
|
+
workflow: z.ZodObject<{
|
|
8735
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
8736
|
+
tax: z.ZodObject<{
|
|
8737
|
+
id: z.ZodString;
|
|
8738
|
+
}, z.core.$strip>;
|
|
8739
|
+
invoicing: z.ZodObject<{
|
|
8740
|
+
id: z.ZodString;
|
|
8741
|
+
}, z.core.$strip>;
|
|
8742
|
+
payment: z.ZodObject<{
|
|
8743
|
+
id: z.ZodString;
|
|
8744
|
+
}, z.core.$strip>;
|
|
8745
|
+
}, z.core.$strip>>;
|
|
8746
|
+
source_billing_profile: z.ZodObject<{
|
|
8747
|
+
id: z.ZodString;
|
|
8748
|
+
}, z.core.$strip>;
|
|
8749
|
+
workflow: z.ZodObject<{
|
|
8750
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
8751
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8752
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8753
|
+
}, z.core.$strip>>;
|
|
8754
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8755
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
8756
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8757
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
8758
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8759
|
+
}, z.core.$strip>], "collection_method">>;
|
|
8760
|
+
}, z.core.$strip>;
|
|
8761
|
+
}, z.core.$strip>;
|
|
8762
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8763
|
+
id: z.ZodString;
|
|
8764
|
+
name: z.ZodString;
|
|
8765
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8766
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8767
|
+
created_at: z.ZodString;
|
|
8768
|
+
updated_at: z.ZodString;
|
|
8769
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8770
|
+
type: z.ZodLiteral<"standard_line">;
|
|
8771
|
+
lifecycle_controller: z.ZodEnum<{
|
|
8772
|
+
manual: "manual";
|
|
8773
|
+
system: "system";
|
|
8774
|
+
}>;
|
|
8775
|
+
service_period: z.ZodObject<{
|
|
8776
|
+
from: z.ZodString;
|
|
8777
|
+
to: z.ZodString;
|
|
8778
|
+
}, z.core.$strip>;
|
|
8779
|
+
totals: z.ZodObject<{
|
|
8780
|
+
amount: z.ZodString;
|
|
8781
|
+
taxes_total: z.ZodString;
|
|
8782
|
+
taxes_inclusive_total: z.ZodString;
|
|
8783
|
+
taxes_exclusive_total: z.ZodString;
|
|
8784
|
+
charges_total: z.ZodString;
|
|
8785
|
+
discounts_total: z.ZodString;
|
|
8786
|
+
credits_total: z.ZodString;
|
|
8787
|
+
total: z.ZodString;
|
|
8788
|
+
}, z.core.$strip>;
|
|
8789
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8790
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8791
|
+
id: z.ZodString;
|
|
8792
|
+
reason: z.ZodEnum<{
|
|
8793
|
+
maximum_spend: "maximum_spend";
|
|
8794
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8795
|
+
ratecard_usage: "ratecard_usage";
|
|
8796
|
+
}>;
|
|
8797
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8798
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8799
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8800
|
+
}, z.core.$strip>>;
|
|
8801
|
+
amount: z.ZodString;
|
|
8802
|
+
}, z.core.$strip>>>;
|
|
8803
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8804
|
+
id: z.ZodString;
|
|
8805
|
+
reason: z.ZodEnum<{
|
|
8806
|
+
maximum_spend: "maximum_spend";
|
|
8807
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8808
|
+
ratecard_usage: "ratecard_usage";
|
|
8809
|
+
}>;
|
|
8810
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8811
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8812
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8813
|
+
}, z.core.$strip>>;
|
|
8814
|
+
quantity: z.ZodString;
|
|
8815
|
+
}, z.core.$strip>>>;
|
|
8816
|
+
}, z.core.$strip>>;
|
|
8817
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8818
|
+
amount: z.ZodString;
|
|
8819
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8820
|
+
}, z.core.$strip>>>;
|
|
8821
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8822
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8823
|
+
}, z.core.$strip>>;
|
|
8824
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
8825
|
+
id: z.ZodString;
|
|
8826
|
+
phase: z.ZodObject<{
|
|
8827
|
+
id: z.ZodString;
|
|
8828
|
+
item: z.ZodObject<{
|
|
8829
|
+
id: z.ZodString;
|
|
8830
|
+
}, z.core.$strip>;
|
|
8831
|
+
}, z.core.$strip>;
|
|
8832
|
+
}, z.core.$strip>>;
|
|
8833
|
+
rate_card: z.ZodObject<{
|
|
8834
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8835
|
+
type: z.ZodLiteral<"free">;
|
|
8836
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8837
|
+
type: z.ZodLiteral<"flat">;
|
|
8838
|
+
amount: z.ZodString;
|
|
8839
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8840
|
+
type: z.ZodLiteral<"unit">;
|
|
8841
|
+
amount: z.ZodString;
|
|
8842
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8843
|
+
type: z.ZodLiteral<"graduated">;
|
|
8844
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8845
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8846
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8847
|
+
type: z.ZodLiteral<"flat">;
|
|
8848
|
+
amount: z.ZodString;
|
|
8849
|
+
}, z.core.$strip>>;
|
|
8850
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8851
|
+
type: z.ZodLiteral<"unit">;
|
|
8852
|
+
amount: z.ZodString;
|
|
8853
|
+
}, z.core.$strip>>;
|
|
8854
|
+
}, z.core.$strip>>;
|
|
8855
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8856
|
+
type: z.ZodLiteral<"volume">;
|
|
8857
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8858
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8859
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8860
|
+
type: z.ZodLiteral<"flat">;
|
|
8861
|
+
amount: z.ZodString;
|
|
8862
|
+
}, z.core.$strip>>;
|
|
8863
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8864
|
+
type: z.ZodLiteral<"unit">;
|
|
8865
|
+
amount: z.ZodString;
|
|
8866
|
+
}, z.core.$strip>>;
|
|
8867
|
+
}, z.core.$strip>>;
|
|
8868
|
+
}, z.core.$strip>], "type">;
|
|
8869
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
8870
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8871
|
+
exclusive: "exclusive";
|
|
8872
|
+
inclusive: "inclusive";
|
|
8873
|
+
}>>;
|
|
8874
|
+
code: z.ZodObject<{
|
|
8875
|
+
id: z.ZodString;
|
|
8876
|
+
}, z.core.$strip>;
|
|
8877
|
+
}, z.core.$strip>>;
|
|
8878
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
8879
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8880
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8881
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
8882
|
+
}, z.core.$strip>>;
|
|
8883
|
+
}, z.core.$strip>;
|
|
8884
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
8885
|
+
id: z.ZodString;
|
|
8886
|
+
name: z.ZodString;
|
|
8887
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8888
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8889
|
+
created_at: z.ZodString;
|
|
8890
|
+
updated_at: z.ZodString;
|
|
8891
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8892
|
+
service_period: z.ZodObject<{
|
|
8893
|
+
from: z.ZodString;
|
|
8894
|
+
to: z.ZodString;
|
|
8895
|
+
}, z.core.$strip>;
|
|
8896
|
+
totals: z.ZodObject<{
|
|
8897
|
+
amount: z.ZodString;
|
|
8898
|
+
taxes_total: z.ZodString;
|
|
8899
|
+
taxes_inclusive_total: z.ZodString;
|
|
8900
|
+
taxes_exclusive_total: z.ZodString;
|
|
8901
|
+
charges_total: z.ZodString;
|
|
8902
|
+
discounts_total: z.ZodString;
|
|
8903
|
+
credits_total: z.ZodString;
|
|
8904
|
+
total: z.ZodString;
|
|
8905
|
+
}, z.core.$strip>;
|
|
8906
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
8907
|
+
regular: "regular";
|
|
8908
|
+
commitment: "commitment";
|
|
8909
|
+
}>>;
|
|
8910
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8911
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8912
|
+
id: z.ZodString;
|
|
8913
|
+
reason: z.ZodEnum<{
|
|
8914
|
+
maximum_spend: "maximum_spend";
|
|
8915
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8916
|
+
ratecard_usage: "ratecard_usage";
|
|
8917
|
+
}>;
|
|
8918
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8919
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8920
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8921
|
+
}, z.core.$strip>>;
|
|
8922
|
+
amount: z.ZodString;
|
|
8923
|
+
}, z.core.$strip>>>;
|
|
8924
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8925
|
+
id: z.ZodString;
|
|
8926
|
+
reason: z.ZodEnum<{
|
|
8927
|
+
maximum_spend: "maximum_spend";
|
|
8928
|
+
ratecard_percentage: "ratecard_percentage";
|
|
8929
|
+
ratecard_usage: "ratecard_usage";
|
|
8930
|
+
}>;
|
|
8931
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8932
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8933
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8934
|
+
}, z.core.$strip>>;
|
|
8935
|
+
quantity: z.ZodString;
|
|
8936
|
+
}, z.core.$strip>>>;
|
|
8937
|
+
}, z.core.$strip>>;
|
|
8938
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8939
|
+
amount: z.ZodString;
|
|
8940
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8941
|
+
}, z.core.$strip>>>;
|
|
8942
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
8943
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
8944
|
+
}, z.core.$strip>>;
|
|
8945
|
+
quantity: z.ZodString;
|
|
8946
|
+
unit_price: z.ZodString;
|
|
8947
|
+
}, z.core.$strip>>;
|
|
8948
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
8949
|
+
id: z.ZodString;
|
|
8950
|
+
}, z.core.$strip>>;
|
|
8951
|
+
}, z.core.$strip>], "type">>>;
|
|
8952
|
+
}, z.core.$strip>], "type">>;
|
|
8953
|
+
meta: z.ZodObject<{
|
|
8954
|
+
page: z.ZodObject<{
|
|
8955
|
+
number: z.ZodNumber;
|
|
8956
|
+
size: z.ZodNumber;
|
|
8957
|
+
total: z.ZodNumber;
|
|
8958
|
+
}, z.core.$strip>;
|
|
8959
|
+
}, z.core.$strip>;
|
|
8764
8960
|
}, z.core.$strip>;
|
|
8765
|
-
export declare const
|
|
8961
|
+
export declare const listMeteringEventsQueryParams: z.ZodObject<{
|
|
8766
8962
|
page: z.ZodOptional<z.ZodObject<{
|
|
8767
|
-
size: z.ZodOptional<z.
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
sort: z.ZodOptional<z.ZodObject<{
|
|
8771
|
-
by: z.ZodString;
|
|
8772
|
-
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
8963
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
8964
|
+
after: z.ZodOptional<z.ZodString>;
|
|
8965
|
+
before: z.ZodOptional<z.ZodString>;
|
|
8773
8966
|
}, z.core.$strip>>;
|
|
8774
8967
|
filter: z.ZodOptional<z.ZodObject<{
|
|
8775
|
-
|
|
8968
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8776
8969
|
eq: z.ZodOptional<z.ZodString>;
|
|
8777
8970
|
neq: z.ZodOptional<z.ZodString>;
|
|
8778
8971
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -8784,7 +8977,7 @@ export declare const listMetersQueryParams: z.ZodObject<{
|
|
|
8784
8977
|
lte: z.ZodOptional<z.ZodString>;
|
|
8785
8978
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
8786
8979
|
}, z.core.$strip>]>>;
|
|
8787
|
-
|
|
8980
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8788
8981
|
eq: z.ZodOptional<z.ZodString>;
|
|
8789
8982
|
neq: z.ZodOptional<z.ZodString>;
|
|
8790
8983
|
contains: z.ZodOptional<z.ZodString>;
|
|
@@ -8796,77 +8989,256 @@ export declare const listMetersQueryParams: z.ZodObject<{
|
|
|
8796
8989
|
lte: z.ZodOptional<z.ZodString>;
|
|
8797
8990
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
8798
8991
|
}, z.core.$strip>]>>;
|
|
8799
|
-
|
|
8800
|
-
}, z.core.$strip>;
|
|
8801
|
-
export declare const listMetersResponse: z.ZodObject<{
|
|
8802
|
-
data: z.ZodArray<z.ZodObject<{
|
|
8803
|
-
id: z.ZodString;
|
|
8804
|
-
name: z.ZodString;
|
|
8805
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8806
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8807
|
-
created_at: z.ZodString;
|
|
8808
|
-
updated_at: z.ZodString;
|
|
8809
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8810
|
-
key: z.ZodString;
|
|
8811
|
-
aggregation: z.ZodUnion<readonly [z.ZodLiteral<"sum">, z.ZodLiteral<"count">, z.ZodLiteral<"unique_count">, z.ZodLiteral<"avg">, z.ZodLiteral<"min">, z.ZodLiteral<"max">, z.ZodLiteral<"latest">]>;
|
|
8812
|
-
event_type: z.ZodString;
|
|
8813
|
-
events_from: z.ZodOptional<z.ZodString>;
|
|
8814
|
-
value_property: z.ZodOptional<z.ZodString>;
|
|
8815
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8816
|
-
}, z.core.$strip>>;
|
|
8817
|
-
meta: z.ZodObject<{
|
|
8818
|
-
page: z.ZodObject<{
|
|
8819
|
-
number: z.ZodNumber;
|
|
8820
|
-
size: z.ZodNumber;
|
|
8821
|
-
total: z.ZodNumber;
|
|
8822
|
-
}, z.core.$strip>;
|
|
8823
|
-
}, z.core.$strip>;
|
|
8824
|
-
}, z.core.$strip>;
|
|
8825
|
-
export declare const updateMeterPathParams: z.ZodObject<{
|
|
8826
|
-
meterId: z.ZodString;
|
|
8827
|
-
}, z.core.$strip>;
|
|
8828
|
-
export declare const updateMeterBody: z.ZodObject<{
|
|
8829
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8830
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8831
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8832
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8833
|
-
}, z.core.$strip>;
|
|
8834
|
-
export declare const updateMeterResponse: z.ZodObject<{
|
|
8835
|
-
id: z.ZodString;
|
|
8836
|
-
name: z.ZodString;
|
|
8837
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8838
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8839
|
-
created_at: z.ZodString;
|
|
8840
|
-
updated_at: z.ZodString;
|
|
8841
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8842
|
-
key: z.ZodString;
|
|
8843
|
-
aggregation: z.ZodUnion<readonly [z.ZodLiteral<"sum">, z.ZodLiteral<"count">, z.ZodLiteral<"unique_count">, z.ZodLiteral<"avg">, z.ZodLiteral<"min">, z.ZodLiteral<"max">, z.ZodLiteral<"latest">]>;
|
|
8844
|
-
event_type: z.ZodString;
|
|
8845
|
-
events_from: z.ZodOptional<z.ZodString>;
|
|
8846
|
-
value_property: z.ZodOptional<z.ZodString>;
|
|
8847
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8848
|
-
}, z.core.$strip>;
|
|
8849
|
-
export declare const deleteMeterPathParams: z.ZodObject<{
|
|
8850
|
-
meterId: z.ZodString;
|
|
8851
|
-
}, z.core.$strip>;
|
|
8852
|
-
export declare const queryMeterPathParams: z.ZodObject<{
|
|
8853
|
-
meterId: z.ZodString;
|
|
8854
|
-
}, z.core.$strip>;
|
|
8855
|
-
export declare const queryMeterBody: z.ZodObject<{
|
|
8856
|
-
from: z.ZodOptional<z.ZodString>;
|
|
8857
|
-
to: z.ZodOptional<z.ZodString>;
|
|
8858
|
-
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"PT1M">, z.ZodLiteral<"PT1H">, z.ZodLiteral<"P1D">, z.ZodLiteral<"P1M">]>>;
|
|
8859
|
-
time_zone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8860
|
-
group_by_dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8861
|
-
filters: z.ZodOptional<z.ZodObject<{
|
|
8862
|
-
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8863
|
-
exists: z.ZodOptional<z.ZodBoolean>;
|
|
8992
|
+
subject: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8864
8993
|
eq: z.ZodOptional<z.ZodString>;
|
|
8865
8994
|
neq: z.ZodOptional<z.ZodString>;
|
|
8866
|
-
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8867
|
-
nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8868
8995
|
contains: z.ZodOptional<z.ZodString>;
|
|
8869
|
-
|
|
8996
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8997
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8998
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
8999
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9000
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9001
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9002
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
9003
|
+
}, z.core.$strip>]>>;
|
|
9004
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9005
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9006
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
9007
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
9008
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9009
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9010
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
9011
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9012
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9013
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9014
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
9015
|
+
}, z.core.$strip>]>>;
|
|
9016
|
+
customer_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9017
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9018
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9019
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
9020
|
+
}, z.core.$strip>]>>;
|
|
9021
|
+
time: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9022
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9023
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9024
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9025
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
9026
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9027
|
+
}, z.core.$strip>]>>;
|
|
9028
|
+
ingested_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9029
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9030
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9031
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9032
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
9033
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9034
|
+
}, z.core.$strip>]>>;
|
|
9035
|
+
stored_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9036
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9037
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9038
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9039
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
9040
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9041
|
+
}, z.core.$strip>]>>;
|
|
9042
|
+
}, z.core.$strip>>;
|
|
9043
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
9044
|
+
by: z.ZodString;
|
|
9045
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
9046
|
+
}, z.core.$strip>>;
|
|
9047
|
+
}, z.core.$strip>;
|
|
9048
|
+
export declare const listMeteringEventsResponse: z.ZodObject<{
|
|
9049
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9050
|
+
event: z.ZodObject<{
|
|
9051
|
+
id: z.ZodString;
|
|
9052
|
+
source: z.ZodString;
|
|
9053
|
+
specversion: z.ZodDefault<z.ZodString>;
|
|
9054
|
+
type: z.ZodString;
|
|
9055
|
+
datacontenttype: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"application/json">, z.ZodNull]>>;
|
|
9056
|
+
dataschema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
9057
|
+
subject: z.ZodString;
|
|
9058
|
+
time: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
9059
|
+
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
|
|
9060
|
+
}, z.core.$strip>;
|
|
9061
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
9062
|
+
id: z.ZodString;
|
|
9063
|
+
}, z.core.$strip>>;
|
|
9064
|
+
ingested_at: z.ZodString;
|
|
9065
|
+
stored_at: z.ZodString;
|
|
9066
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9067
|
+
code: z.ZodString;
|
|
9068
|
+
message: z.ZodString;
|
|
9069
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9070
|
+
}, z.core.$strip>>>;
|
|
9071
|
+
}, z.core.$strip>>;
|
|
9072
|
+
meta: z.ZodObject<{
|
|
9073
|
+
page: z.ZodObject<{
|
|
9074
|
+
first: z.ZodOptional<z.ZodString>;
|
|
9075
|
+
last: z.ZodOptional<z.ZodString>;
|
|
9076
|
+
next: z.ZodOptional<z.ZodString>;
|
|
9077
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
9078
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
9079
|
+
}, z.core.$strip>;
|
|
9080
|
+
}, z.core.$strip>;
|
|
9081
|
+
}, z.core.$strip>;
|
|
9082
|
+
export declare const ingestMeteringEventsBody: z.ZodObject<{
|
|
9083
|
+
id: z.ZodString;
|
|
9084
|
+
source: z.ZodString;
|
|
9085
|
+
specversion: z.ZodDefault<z.ZodString>;
|
|
9086
|
+
type: z.ZodString;
|
|
9087
|
+
datacontenttype: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"application/json">, z.ZodNull]>>;
|
|
9088
|
+
dataschema: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
9089
|
+
subject: z.ZodString;
|
|
9090
|
+
time: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
9091
|
+
data: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
|
|
9092
|
+
}, z.core.$strip>;
|
|
9093
|
+
export declare const createMeterBody: z.ZodObject<{
|
|
9094
|
+
name: z.ZodString;
|
|
9095
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9096
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9097
|
+
key: z.ZodString;
|
|
9098
|
+
aggregation: z.ZodUnion<readonly [z.ZodLiteral<"sum">, z.ZodLiteral<"count">, z.ZodLiteral<"unique_count">, z.ZodLiteral<"avg">, z.ZodLiteral<"min">, z.ZodLiteral<"max">, z.ZodLiteral<"latest">]>;
|
|
9099
|
+
event_type: z.ZodString;
|
|
9100
|
+
events_from: z.ZodOptional<z.ZodString>;
|
|
9101
|
+
value_property: z.ZodOptional<z.ZodString>;
|
|
9102
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9103
|
+
}, z.core.$strip>;
|
|
9104
|
+
export declare const createMeterResponse: z.ZodObject<{
|
|
9105
|
+
id: z.ZodString;
|
|
9106
|
+
name: z.ZodString;
|
|
9107
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9108
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9109
|
+
created_at: z.ZodString;
|
|
9110
|
+
updated_at: z.ZodString;
|
|
9111
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
9112
|
+
key: z.ZodString;
|
|
9113
|
+
aggregation: z.ZodUnion<readonly [z.ZodLiteral<"sum">, z.ZodLiteral<"count">, z.ZodLiteral<"unique_count">, z.ZodLiteral<"avg">, z.ZodLiteral<"min">, z.ZodLiteral<"max">, z.ZodLiteral<"latest">]>;
|
|
9114
|
+
event_type: z.ZodString;
|
|
9115
|
+
events_from: z.ZodOptional<z.ZodString>;
|
|
9116
|
+
value_property: z.ZodOptional<z.ZodString>;
|
|
9117
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9118
|
+
}, z.core.$strip>;
|
|
9119
|
+
export declare const getMeterPathParams: z.ZodObject<{
|
|
9120
|
+
meterId: z.ZodString;
|
|
9121
|
+
}, z.core.$strip>;
|
|
9122
|
+
export declare const getMeterResponse: z.ZodObject<{
|
|
9123
|
+
id: z.ZodString;
|
|
9124
|
+
name: z.ZodString;
|
|
9125
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9126
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9127
|
+
created_at: z.ZodString;
|
|
9128
|
+
updated_at: z.ZodString;
|
|
9129
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
9130
|
+
key: z.ZodString;
|
|
9131
|
+
aggregation: z.ZodUnion<readonly [z.ZodLiteral<"sum">, z.ZodLiteral<"count">, z.ZodLiteral<"unique_count">, z.ZodLiteral<"avg">, z.ZodLiteral<"min">, z.ZodLiteral<"max">, z.ZodLiteral<"latest">]>;
|
|
9132
|
+
event_type: z.ZodString;
|
|
9133
|
+
events_from: z.ZodOptional<z.ZodString>;
|
|
9134
|
+
value_property: z.ZodOptional<z.ZodString>;
|
|
9135
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9136
|
+
}, z.core.$strip>;
|
|
9137
|
+
export declare const listMetersQueryParams: z.ZodObject<{
|
|
9138
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
9139
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
9140
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
9141
|
+
}, z.core.$strip>>;
|
|
9142
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
9143
|
+
by: z.ZodString;
|
|
9144
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
9145
|
+
}, z.core.$strip>>;
|
|
9146
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
9147
|
+
key: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9148
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9149
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
9150
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
9151
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9152
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9153
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
9154
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9155
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9156
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9157
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
9158
|
+
}, z.core.$strip>]>>;
|
|
9159
|
+
name: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9160
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9161
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
9162
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
9163
|
+
ocontains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9164
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9165
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
9166
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
9167
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
9168
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
9169
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
9170
|
+
}, z.core.$strip>]>>;
|
|
9171
|
+
}, z.core.$strip>>;
|
|
9172
|
+
}, z.core.$strip>;
|
|
9173
|
+
export declare const listMetersResponse: z.ZodObject<{
|
|
9174
|
+
data: z.ZodArray<z.ZodObject<{
|
|
9175
|
+
id: z.ZodString;
|
|
9176
|
+
name: z.ZodString;
|
|
9177
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9178
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9179
|
+
created_at: z.ZodString;
|
|
9180
|
+
updated_at: z.ZodString;
|
|
9181
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
9182
|
+
key: z.ZodString;
|
|
9183
|
+
aggregation: z.ZodUnion<readonly [z.ZodLiteral<"sum">, z.ZodLiteral<"count">, z.ZodLiteral<"unique_count">, z.ZodLiteral<"avg">, z.ZodLiteral<"min">, z.ZodLiteral<"max">, z.ZodLiteral<"latest">]>;
|
|
9184
|
+
event_type: z.ZodString;
|
|
9185
|
+
events_from: z.ZodOptional<z.ZodString>;
|
|
9186
|
+
value_property: z.ZodOptional<z.ZodString>;
|
|
9187
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9188
|
+
}, z.core.$strip>>;
|
|
9189
|
+
meta: z.ZodObject<{
|
|
9190
|
+
page: z.ZodObject<{
|
|
9191
|
+
number: z.ZodNumber;
|
|
9192
|
+
size: z.ZodNumber;
|
|
9193
|
+
total: z.ZodNumber;
|
|
9194
|
+
}, z.core.$strip>;
|
|
9195
|
+
}, z.core.$strip>;
|
|
9196
|
+
}, z.core.$strip>;
|
|
9197
|
+
export declare const updateMeterPathParams: z.ZodObject<{
|
|
9198
|
+
meterId: z.ZodString;
|
|
9199
|
+
}, z.core.$strip>;
|
|
9200
|
+
export declare const updateMeterBody: z.ZodObject<{
|
|
9201
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9202
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9203
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9204
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9205
|
+
}, z.core.$strip>;
|
|
9206
|
+
export declare const updateMeterResponse: z.ZodObject<{
|
|
9207
|
+
id: z.ZodString;
|
|
9208
|
+
name: z.ZodString;
|
|
9209
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9210
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9211
|
+
created_at: z.ZodString;
|
|
9212
|
+
updated_at: z.ZodString;
|
|
9213
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
9214
|
+
key: z.ZodString;
|
|
9215
|
+
aggregation: z.ZodUnion<readonly [z.ZodLiteral<"sum">, z.ZodLiteral<"count">, z.ZodLiteral<"unique_count">, z.ZodLiteral<"avg">, z.ZodLiteral<"min">, z.ZodLiteral<"max">, z.ZodLiteral<"latest">]>;
|
|
9216
|
+
event_type: z.ZodString;
|
|
9217
|
+
events_from: z.ZodOptional<z.ZodString>;
|
|
9218
|
+
value_property: z.ZodOptional<z.ZodString>;
|
|
9219
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9220
|
+
}, z.core.$strip>;
|
|
9221
|
+
export declare const deleteMeterPathParams: z.ZodObject<{
|
|
9222
|
+
meterId: z.ZodString;
|
|
9223
|
+
}, z.core.$strip>;
|
|
9224
|
+
export declare const queryMeterPathParams: z.ZodObject<{
|
|
9225
|
+
meterId: z.ZodString;
|
|
9226
|
+
}, z.core.$strip>;
|
|
9227
|
+
export declare const queryMeterBody: z.ZodObject<{
|
|
9228
|
+
from: z.ZodOptional<z.ZodString>;
|
|
9229
|
+
to: z.ZodOptional<z.ZodString>;
|
|
9230
|
+
granularity: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"PT1M">, z.ZodLiteral<"PT1H">, z.ZodLiteral<"P1D">, z.ZodLiteral<"P1M">]>>;
|
|
9231
|
+
time_zone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9232
|
+
group_by_dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9233
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
9234
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9235
|
+
exists: z.ZodOptional<z.ZodBoolean>;
|
|
9236
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
9237
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
9238
|
+
in: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9239
|
+
nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9240
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
9241
|
+
ncontains: z.ZodOptional<z.ZodString>;
|
|
8870
9242
|
and: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8871
9243
|
eq: z.ZodOptional<z.ZodString>;
|
|
8872
9244
|
neq: z.ZodOptional<z.ZodString>;
|
|
@@ -11766,6 +12138,388 @@ export declare const updateBillingProfileResponse: z.ZodObject<{
|
|
|
11766
12138
|
export declare const deleteBillingProfilePathParams: z.ZodObject<{
|
|
11767
12139
|
id: z.ZodString;
|
|
11768
12140
|
}, z.core.$strip>;
|
|
12141
|
+
export declare const listInvoicesQueryParams: z.ZodObject<{
|
|
12142
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
12143
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
12144
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
12145
|
+
}, z.core.$strip>>;
|
|
12146
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
12147
|
+
by: z.ZodString;
|
|
12148
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
12149
|
+
}, z.core.$strip>>;
|
|
12150
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
12151
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
12152
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
12153
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12154
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
12155
|
+
}, z.core.$strip>]>>;
|
|
12156
|
+
customer_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
12157
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
12158
|
+
oeq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12159
|
+
neq: z.ZodOptional<z.ZodString>;
|
|
12160
|
+
}, z.core.$strip>]>>;
|
|
12161
|
+
issued_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
12162
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
12163
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
12164
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
12165
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
12166
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
12167
|
+
}, z.core.$strip>]>>;
|
|
12168
|
+
service_period_start: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
12169
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
12170
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
12171
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
12172
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
12173
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
12174
|
+
}, z.core.$strip>]>>;
|
|
12175
|
+
created_at: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
12176
|
+
eq: z.ZodOptional<z.ZodString>;
|
|
12177
|
+
lt: z.ZodOptional<z.ZodString>;
|
|
12178
|
+
lte: z.ZodOptional<z.ZodString>;
|
|
12179
|
+
gt: z.ZodOptional<z.ZodString>;
|
|
12180
|
+
gte: z.ZodOptional<z.ZodString>;
|
|
12181
|
+
}, z.core.$strip>]>>;
|
|
12182
|
+
}, z.core.$strip>>;
|
|
12183
|
+
}, z.core.$strip>;
|
|
12184
|
+
export declare const listInvoicesResponse: z.ZodObject<{
|
|
12185
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12186
|
+
id: z.ZodString;
|
|
12187
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12188
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12189
|
+
created_at: z.ZodString;
|
|
12190
|
+
updated_at: z.ZodString;
|
|
12191
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
12192
|
+
number: z.ZodString;
|
|
12193
|
+
currency: z.ZodString;
|
|
12194
|
+
supplier: z.ZodObject<{
|
|
12195
|
+
id: z.ZodOptional<z.ZodString>;
|
|
12196
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12197
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
12198
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12199
|
+
}, z.core.$strip>>;
|
|
12200
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
12201
|
+
billing_address: z.ZodObject<{
|
|
12202
|
+
country: z.ZodOptional<z.ZodString>;
|
|
12203
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
12204
|
+
state: z.ZodOptional<z.ZodString>;
|
|
12205
|
+
city: z.ZodOptional<z.ZodString>;
|
|
12206
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
12207
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
12208
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
12209
|
+
}, z.core.$strip>;
|
|
12210
|
+
}, z.core.$strip>>;
|
|
12211
|
+
}, z.core.$strip>;
|
|
12212
|
+
customer: z.ZodObject<{
|
|
12213
|
+
id: z.ZodString;
|
|
12214
|
+
name: z.ZodString;
|
|
12215
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
12216
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
12217
|
+
}, z.core.$strip>>;
|
|
12218
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
12219
|
+
country: z.ZodOptional<z.ZodString>;
|
|
12220
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
12221
|
+
state: z.ZodOptional<z.ZodString>;
|
|
12222
|
+
city: z.ZodOptional<z.ZodString>;
|
|
12223
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
12224
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
12225
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
12226
|
+
}, z.core.$strip>>;
|
|
12227
|
+
key: z.ZodOptional<z.ZodString>;
|
|
12228
|
+
}, z.core.$strip>;
|
|
12229
|
+
totals: z.ZodObject<{
|
|
12230
|
+
amount: z.ZodString;
|
|
12231
|
+
taxes_total: z.ZodString;
|
|
12232
|
+
taxes_inclusive_total: z.ZodString;
|
|
12233
|
+
taxes_exclusive_total: z.ZodString;
|
|
12234
|
+
charges_total: z.ZodString;
|
|
12235
|
+
discounts_total: z.ZodString;
|
|
12236
|
+
credits_total: z.ZodString;
|
|
12237
|
+
total: z.ZodString;
|
|
12238
|
+
}, z.core.$strip>;
|
|
12239
|
+
service_period: z.ZodObject<{
|
|
12240
|
+
from: z.ZodString;
|
|
12241
|
+
to: z.ZodString;
|
|
12242
|
+
}, z.core.$strip>;
|
|
12243
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12244
|
+
code: z.ZodString;
|
|
12245
|
+
message: z.ZodString;
|
|
12246
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12247
|
+
severity: z.ZodEnum<{
|
|
12248
|
+
critical: "critical";
|
|
12249
|
+
warning: "warning";
|
|
12250
|
+
}>;
|
|
12251
|
+
field: z.ZodOptional<z.ZodString>;
|
|
12252
|
+
}, z.core.$strip>>>;
|
|
12253
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
12254
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
12255
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
12256
|
+
}, z.core.$strip>>;
|
|
12257
|
+
type: z.ZodLiteral<"standard">;
|
|
12258
|
+
status: z.ZodEnum<{
|
|
12259
|
+
voided: "voided";
|
|
12260
|
+
draft: "draft";
|
|
12261
|
+
issuing: "issuing";
|
|
12262
|
+
issued: "issued";
|
|
12263
|
+
payment_processing: "payment_processing";
|
|
12264
|
+
overdue: "overdue";
|
|
12265
|
+
paid: "paid";
|
|
12266
|
+
uncollectible: "uncollectible";
|
|
12267
|
+
}>;
|
|
12268
|
+
status_details: z.ZodObject<{
|
|
12269
|
+
immutable: z.ZodBoolean;
|
|
12270
|
+
failed: z.ZodBoolean;
|
|
12271
|
+
extended_status: z.ZodString;
|
|
12272
|
+
available_actions: z.ZodObject<{
|
|
12273
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
12274
|
+
resulting_state: z.ZodString;
|
|
12275
|
+
}, z.core.$strip>>;
|
|
12276
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
12277
|
+
resulting_state: z.ZodString;
|
|
12278
|
+
}, z.core.$strip>>;
|
|
12279
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
12280
|
+
resulting_state: z.ZodString;
|
|
12281
|
+
}, z.core.$strip>>;
|
|
12282
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
12283
|
+
resulting_state: z.ZodString;
|
|
12284
|
+
}, z.core.$strip>>;
|
|
12285
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
12286
|
+
resulting_state: z.ZodString;
|
|
12287
|
+
}, z.core.$strip>>;
|
|
12288
|
+
}, z.core.$strip>;
|
|
12289
|
+
}, z.core.$strip>;
|
|
12290
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
12291
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
12292
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
12293
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
12294
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
12295
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
12296
|
+
workflow: z.ZodObject<{
|
|
12297
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
12298
|
+
tax: z.ZodObject<{
|
|
12299
|
+
id: z.ZodString;
|
|
12300
|
+
}, z.core.$strip>;
|
|
12301
|
+
invoicing: z.ZodObject<{
|
|
12302
|
+
id: z.ZodString;
|
|
12303
|
+
}, z.core.$strip>;
|
|
12304
|
+
payment: z.ZodObject<{
|
|
12305
|
+
id: z.ZodString;
|
|
12306
|
+
}, z.core.$strip>;
|
|
12307
|
+
}, z.core.$strip>>;
|
|
12308
|
+
source_billing_profile: z.ZodObject<{
|
|
12309
|
+
id: z.ZodString;
|
|
12310
|
+
}, z.core.$strip>;
|
|
12311
|
+
workflow: z.ZodObject<{
|
|
12312
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
12313
|
+
auto_advance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12314
|
+
draft_period: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12315
|
+
}, z.core.$strip>>;
|
|
12316
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12317
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
12318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12319
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
12320
|
+
due_after: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12321
|
+
}, z.core.$strip>], "collection_method">>;
|
|
12322
|
+
}, z.core.$strip>;
|
|
12323
|
+
}, z.core.$strip>;
|
|
12324
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12325
|
+
id: z.ZodString;
|
|
12326
|
+
name: z.ZodString;
|
|
12327
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12328
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12329
|
+
created_at: z.ZodString;
|
|
12330
|
+
updated_at: z.ZodString;
|
|
12331
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
12332
|
+
type: z.ZodLiteral<"standard_line">;
|
|
12333
|
+
lifecycle_controller: z.ZodEnum<{
|
|
12334
|
+
manual: "manual";
|
|
12335
|
+
system: "system";
|
|
12336
|
+
}>;
|
|
12337
|
+
service_period: z.ZodObject<{
|
|
12338
|
+
from: z.ZodString;
|
|
12339
|
+
to: z.ZodString;
|
|
12340
|
+
}, z.core.$strip>;
|
|
12341
|
+
totals: z.ZodObject<{
|
|
12342
|
+
amount: z.ZodString;
|
|
12343
|
+
taxes_total: z.ZodString;
|
|
12344
|
+
taxes_inclusive_total: z.ZodString;
|
|
12345
|
+
taxes_exclusive_total: z.ZodString;
|
|
12346
|
+
charges_total: z.ZodString;
|
|
12347
|
+
discounts_total: z.ZodString;
|
|
12348
|
+
credits_total: z.ZodString;
|
|
12349
|
+
total: z.ZodString;
|
|
12350
|
+
}, z.core.$strip>;
|
|
12351
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
12352
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12353
|
+
id: z.ZodString;
|
|
12354
|
+
reason: z.ZodEnum<{
|
|
12355
|
+
maximum_spend: "maximum_spend";
|
|
12356
|
+
ratecard_percentage: "ratecard_percentage";
|
|
12357
|
+
ratecard_usage: "ratecard_usage";
|
|
12358
|
+
}>;
|
|
12359
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12360
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
12361
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
12362
|
+
}, z.core.$strip>>;
|
|
12363
|
+
amount: z.ZodString;
|
|
12364
|
+
}, z.core.$strip>>>;
|
|
12365
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12366
|
+
id: z.ZodString;
|
|
12367
|
+
reason: z.ZodEnum<{
|
|
12368
|
+
maximum_spend: "maximum_spend";
|
|
12369
|
+
ratecard_percentage: "ratecard_percentage";
|
|
12370
|
+
ratecard_usage: "ratecard_usage";
|
|
12371
|
+
}>;
|
|
12372
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12373
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
12374
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
12375
|
+
}, z.core.$strip>>;
|
|
12376
|
+
quantity: z.ZodString;
|
|
12377
|
+
}, z.core.$strip>>>;
|
|
12378
|
+
}, z.core.$strip>>;
|
|
12379
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12380
|
+
amount: z.ZodString;
|
|
12381
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12382
|
+
}, z.core.$strip>>>;
|
|
12383
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
12384
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
12385
|
+
}, z.core.$strip>>;
|
|
12386
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
12387
|
+
id: z.ZodString;
|
|
12388
|
+
phase: z.ZodObject<{
|
|
12389
|
+
id: z.ZodString;
|
|
12390
|
+
item: z.ZodObject<{
|
|
12391
|
+
id: z.ZodString;
|
|
12392
|
+
}, z.core.$strip>;
|
|
12393
|
+
}, z.core.$strip>;
|
|
12394
|
+
}, z.core.$strip>>;
|
|
12395
|
+
rate_card: z.ZodObject<{
|
|
12396
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12397
|
+
type: z.ZodLiteral<"free">;
|
|
12398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12399
|
+
type: z.ZodLiteral<"flat">;
|
|
12400
|
+
amount: z.ZodString;
|
|
12401
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12402
|
+
type: z.ZodLiteral<"unit">;
|
|
12403
|
+
amount: z.ZodString;
|
|
12404
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12405
|
+
type: z.ZodLiteral<"graduated">;
|
|
12406
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12407
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
12408
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
12409
|
+
type: z.ZodLiteral<"flat">;
|
|
12410
|
+
amount: z.ZodString;
|
|
12411
|
+
}, z.core.$strip>>;
|
|
12412
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
12413
|
+
type: z.ZodLiteral<"unit">;
|
|
12414
|
+
amount: z.ZodString;
|
|
12415
|
+
}, z.core.$strip>>;
|
|
12416
|
+
}, z.core.$strip>>;
|
|
12417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12418
|
+
type: z.ZodLiteral<"volume">;
|
|
12419
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12420
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
12421
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
12422
|
+
type: z.ZodLiteral<"flat">;
|
|
12423
|
+
amount: z.ZodString;
|
|
12424
|
+
}, z.core.$strip>>;
|
|
12425
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
12426
|
+
type: z.ZodLiteral<"unit">;
|
|
12427
|
+
amount: z.ZodString;
|
|
12428
|
+
}, z.core.$strip>>;
|
|
12429
|
+
}, z.core.$strip>>;
|
|
12430
|
+
}, z.core.$strip>], "type">;
|
|
12431
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
12432
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
12433
|
+
exclusive: "exclusive";
|
|
12434
|
+
inclusive: "inclusive";
|
|
12435
|
+
}>>;
|
|
12436
|
+
code: z.ZodObject<{
|
|
12437
|
+
id: z.ZodString;
|
|
12438
|
+
}, z.core.$strip>;
|
|
12439
|
+
}, z.core.$strip>>;
|
|
12440
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
12441
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
12442
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
12443
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
12444
|
+
}, z.core.$strip>>;
|
|
12445
|
+
}, z.core.$strip>;
|
|
12446
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
12447
|
+
id: z.ZodString;
|
|
12448
|
+
name: z.ZodString;
|
|
12449
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12450
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12451
|
+
created_at: z.ZodString;
|
|
12452
|
+
updated_at: z.ZodString;
|
|
12453
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
12454
|
+
service_period: z.ZodObject<{
|
|
12455
|
+
from: z.ZodString;
|
|
12456
|
+
to: z.ZodString;
|
|
12457
|
+
}, z.core.$strip>;
|
|
12458
|
+
totals: z.ZodObject<{
|
|
12459
|
+
amount: z.ZodString;
|
|
12460
|
+
taxes_total: z.ZodString;
|
|
12461
|
+
taxes_inclusive_total: z.ZodString;
|
|
12462
|
+
taxes_exclusive_total: z.ZodString;
|
|
12463
|
+
charges_total: z.ZodString;
|
|
12464
|
+
discounts_total: z.ZodString;
|
|
12465
|
+
credits_total: z.ZodString;
|
|
12466
|
+
total: z.ZodString;
|
|
12467
|
+
}, z.core.$strip>;
|
|
12468
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
12469
|
+
regular: "regular";
|
|
12470
|
+
commitment: "commitment";
|
|
12471
|
+
}>>;
|
|
12472
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
12473
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12474
|
+
id: z.ZodString;
|
|
12475
|
+
reason: z.ZodEnum<{
|
|
12476
|
+
maximum_spend: "maximum_spend";
|
|
12477
|
+
ratecard_percentage: "ratecard_percentage";
|
|
12478
|
+
ratecard_usage: "ratecard_usage";
|
|
12479
|
+
}>;
|
|
12480
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12481
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
12482
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
12483
|
+
}, z.core.$strip>>;
|
|
12484
|
+
amount: z.ZodString;
|
|
12485
|
+
}, z.core.$strip>>>;
|
|
12486
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12487
|
+
id: z.ZodString;
|
|
12488
|
+
reason: z.ZodEnum<{
|
|
12489
|
+
maximum_spend: "maximum_spend";
|
|
12490
|
+
ratecard_percentage: "ratecard_percentage";
|
|
12491
|
+
ratecard_usage: "ratecard_usage";
|
|
12492
|
+
}>;
|
|
12493
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12494
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
12495
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
12496
|
+
}, z.core.$strip>>;
|
|
12497
|
+
quantity: z.ZodString;
|
|
12498
|
+
}, z.core.$strip>>>;
|
|
12499
|
+
}, z.core.$strip>>;
|
|
12500
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12501
|
+
amount: z.ZodString;
|
|
12502
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12503
|
+
}, z.core.$strip>>>;
|
|
12504
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
12505
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
12506
|
+
}, z.core.$strip>>;
|
|
12507
|
+
quantity: z.ZodString;
|
|
12508
|
+
unit_price: z.ZodString;
|
|
12509
|
+
}, z.core.$strip>>;
|
|
12510
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
12511
|
+
id: z.ZodString;
|
|
12512
|
+
}, z.core.$strip>>;
|
|
12513
|
+
}, z.core.$strip>], "type">>>;
|
|
12514
|
+
}, z.core.$strip>], "type">>;
|
|
12515
|
+
meta: z.ZodObject<{
|
|
12516
|
+
page: z.ZodObject<{
|
|
12517
|
+
number: z.ZodNumber;
|
|
12518
|
+
size: z.ZodNumber;
|
|
12519
|
+
total: z.ZodNumber;
|
|
12520
|
+
}, z.core.$strip>;
|
|
12521
|
+
}, z.core.$strip>;
|
|
12522
|
+
}, z.core.$strip>;
|
|
11769
12523
|
export declare const getInvoicePathParams: z.ZodObject<{
|
|
11770
12524
|
invoiceId: z.ZodString;
|
|
11771
12525
|
}, z.core.$strip>;
|