@leaflow/sdk 0.0.0-dev.516.g28eeab9 → 0.0.0-dev.519.g9e3ae08
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/dist/billing/v1/generated/models.d.ts +133 -69
- package/dist/billing/v1/generated/models.js +12 -26
- package/dist/billing/v1/generated/schemas.zod.d.ts +91 -18
- package/dist/billing/v1/generated/schemas.zod.js +132 -14
- package/dist/billing/v1/generated/validators/activeResource.zod.js +2 -1
- package/dist/billing/v1/generated/validators/activeResourceStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/activeResourceStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/allowance.zod.js +2 -1
- package/dist/billing/v1/generated/validators/allowanceStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/allowanceStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/creditGrant.zod.js +2 -1
- package/dist/billing/v1/generated/validators/creditGrantStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/creditGrantStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/creditNote.zod.js +2 -1
- package/dist/billing/v1/generated/validators/creditNoteStatus.zod.d.ts +14 -0
- package/dist/billing/v1/generated/validators/creditNoteStatus.zod.js +9 -0
- package/dist/billing/v1/generated/validators/discount.zod.js +2 -3
- package/dist/billing/v1/generated/validators/discountStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/discountStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.d.ts +7 -0
- package/dist/billing/v1/generated/validators/listAccountDiscountsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listActiveResourcesParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listAllowancesParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listCancellationsParams.zod.js +4 -1
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listCheckoutSessionsParams.zod.js +6 -1
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listCreditGrantsParams.zod.js +3 -1
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.d.ts +5 -0
- package/dist/billing/v1/generated/validators/listCreditNotesParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listFeatureGrantsParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listInvoicesParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listOrdersParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.d.ts +5 -0
- package/dist/billing/v1/generated/validators/listPaymentMethodsParams.zod.js +6 -0
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.d.ts +7 -0
- package/dist/billing/v1/generated/validators/listRefundsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.d.ts +3 -2
- package/dist/billing/v1/generated/validators/listStatementsParams.zod.js +2 -1
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.d.ts +9 -0
- package/dist/billing/v1/generated/validators/listSubscriptionsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.d.ts +7 -0
- package/dist/billing/v1/generated/validators/listTopUpsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.d.ts +15 -0
- package/dist/billing/v1/generated/validators/listTransactionsParams.zod.js +6 -0
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.d.ts +9 -0
- package/dist/billing/v1/generated/validators/listWithdrawalsParams.zod.js +3 -0
- package/dist/billing/v1/generated/validators/refund.zod.js +2 -3
- package/dist/billing/v1/generated/validators/refundStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/refundStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/subscription.zod.js +2 -3
- package/dist/billing/v1/generated/validators/subscriptionStatus.zod.d.ts +18 -0
- package/dist/billing/v1/generated/validators/subscriptionStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/topUp.zod.js +2 -3
- package/dist/billing/v1/generated/validators/topUpStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/topUpStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/transaction.zod.js +2 -4
- package/dist/billing/v1/generated/validators/transactionStatus.zod.d.ts +16 -0
- package/dist/billing/v1/generated/validators/transactionStatus.zod.js +11 -0
- package/dist/billing/v1/generated/validators/withdrawal.zod.js +2 -8
- package/dist/billing/v1/generated/validators/withdrawalStatus.zod.d.ts +18 -0
- package/dist/billing/v1/generated/validators/withdrawalStatus.zod.js +16 -0
- package/dist/compute/v2/generated/models.d.ts +1 -1
- package/dist/compute/v2/generated/validators/createSecurityGroupRuleRequestBody.zod.js +1 -1
- package/dist/proto/leaflow/fleet/virtualdesktop/datatransfer/v1/datatransfer_pb.d.ts +10 -5
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { ActiveResourceStatus } from "./validators/activeResourceStatus.zod.js";
|
|
10
|
+
import { AllowanceStatus } from "./validators/allowanceStatus.zod.js";
|
|
9
11
|
import { AutoRenewSet } from "./validators/autoRenewSet.zod.js";
|
|
10
12
|
import { BillingAccountCreate } from "./validators/billingAccountCreate.zod.js";
|
|
11
13
|
import { BillingAccountStatus } from "./validators/billingAccountStatus.zod.js";
|
|
@@ -14,16 +16,30 @@ import { CancelSubscriptionRequest } from "./validators/cancelSubscriptionReques
|
|
|
14
16
|
import { CancellationCreate } from "./validators/cancellationCreate.zod.js";
|
|
15
17
|
import { CheckoutSessionConfirm } from "./validators/checkoutSessionConfirm.zod.js";
|
|
16
18
|
import { CheckoutSessionCreate } from "./validators/checkoutSessionCreate.zod.js";
|
|
19
|
+
import { CheckoutSessionStatus } from "./validators/checkoutSessionStatus.zod.js";
|
|
17
20
|
import { ContactCreate } from "./validators/contactCreate.zod.js";
|
|
18
21
|
import { ContactUpdate } from "./validators/contactUpdate.zod.js";
|
|
22
|
+
import { CreditGrantStatus } from "./validators/creditGrantStatus.zod.js";
|
|
23
|
+
import { CreditNoteStatus } from "./validators/creditNoteStatus.zod.js";
|
|
24
|
+
import { DiscountStatus } from "./validators/discountStatus.zod.js";
|
|
25
|
+
import { FeatureGrantStatus } from "./validators/featureGrantStatus.zod.js";
|
|
26
|
+
import { InvoiceStatus } from "./validators/invoiceStatus.zod.js";
|
|
19
27
|
import { OrderCancel } from "./validators/orderCancel.zod.js";
|
|
28
|
+
import { OrderStatus } from "./validators/orderStatus.zod.js";
|
|
20
29
|
import { PayInvoiceRequest } from "./validators/payInvoiceRequest.zod.js";
|
|
21
30
|
import { PayTogetherRequest } from "./validators/payTogetherRequest.zod.js";
|
|
22
31
|
import { PaymentMethodSetup } from "./validators/paymentMethodSetup.zod.js";
|
|
32
|
+
import { RefundStatus } from "./validators/refundStatus.zod.js";
|
|
23
33
|
import { RenewRequest } from "./validators/renewRequest.zod.js";
|
|
24
34
|
import { SetProjectAssignmentRequest } from "./validators/setProjectAssignmentRequest.zod.js";
|
|
35
|
+
import { StatementStatus } from "./validators/statementStatus.zod.js";
|
|
36
|
+
import { SubscriptionStatus } from "./validators/subscriptionStatus.zod.js";
|
|
25
37
|
import { TopUpCreate } from "./validators/topUpCreate.zod.js";
|
|
38
|
+
import { TopUpStatus } from "./validators/topUpStatus.zod.js";
|
|
39
|
+
import { TransactionStatus } from "./validators/transactionStatus.zod.js";
|
|
40
|
+
import { TransactionType } from "./validators/transactionType.zod.js";
|
|
26
41
|
import { WithdrawalCreate } from "./validators/withdrawalCreate.zod.js";
|
|
42
|
+
import { WithdrawalStatus } from "./validators/withdrawalStatus.zod.js";
|
|
27
43
|
/**
|
|
28
44
|
* The withdrawal's items and their outcomes. A failed item does not undo refunds completed through other items.
|
|
29
45
|
* @summary List withdrawal items
|
|
@@ -57,6 +73,7 @@ export const listWithdrawalsQueryPageDefault = 1;
|
|
|
57
73
|
export const listWithdrawalsQueryPageMax = 2147483647;
|
|
58
74
|
export const listWithdrawalsQueryPageSizeDefault = 50;
|
|
59
75
|
export const listWithdrawalsQueryPageSizeMax = 200;
|
|
76
|
+
export const listWithdrawalsQueryStatusMax = 6;
|
|
60
77
|
export const ListWithdrawalsQueryParams = zod.strictObject({
|
|
61
78
|
page: zod
|
|
62
79
|
.int()
|
|
@@ -71,6 +88,12 @@ export const ListWithdrawalsQueryParams = zod.strictObject({
|
|
|
71
88
|
.default(listWithdrawalsQueryPageSizeDefault)
|
|
72
89
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
73
90
|
billing_account_id: zod.int().optional(),
|
|
91
|
+
status: zod
|
|
92
|
+
.array(WithdrawalStatus)
|
|
93
|
+
.min(1)
|
|
94
|
+
.max(listWithdrawalsQueryStatusMax)
|
|
95
|
+
.optional()
|
|
96
|
+
.describe("Only withdrawals in these statuses; omit for every status. Comma-separated, for example `status=pending,processing`."),
|
|
74
97
|
});
|
|
75
98
|
/**
|
|
76
99
|
* Withdraws the requested balance through the original top-ups, oldest first, with fees calculated per source. expected_items and expected_refund_amount must match the preview. Reusing the ID with different terms fails. Only successful items are charged a fee.
|
|
@@ -331,6 +354,7 @@ export const listTopUpsQueryPageDefault = 1;
|
|
|
331
354
|
export const listTopUpsQueryPageMax = 2147483647;
|
|
332
355
|
export const listTopUpsQueryPageSizeDefault = 50;
|
|
333
356
|
export const listTopUpsQueryPageSizeMax = 200;
|
|
357
|
+
export const listTopUpsQueryStatusMax = 4;
|
|
334
358
|
export const ListTopUpsQueryParams = zod.strictObject({
|
|
335
359
|
page: zod
|
|
336
360
|
.int()
|
|
@@ -348,6 +372,12 @@ export const ListTopUpsQueryParams = zod.strictObject({
|
|
|
348
372
|
.int()
|
|
349
373
|
.optional()
|
|
350
374
|
.describe("Only this account; all of yours when omitted."),
|
|
375
|
+
status: zod
|
|
376
|
+
.array(TopUpStatus)
|
|
377
|
+
.min(1)
|
|
378
|
+
.max(listTopUpsQueryStatusMax)
|
|
379
|
+
.optional()
|
|
380
|
+
.describe("Only top-ups in these statuses; omit for every status. Comma-separated, for example `status=pending,succeeded`."),
|
|
351
381
|
});
|
|
352
382
|
/**
|
|
353
383
|
* Creates a top-up for an account of the authenticated user and returns its payment information. The balance increases when the gateway confirms receipt. Keep the supplied ID to read the attempt after a lost response; creating it again conflicts.
|
|
@@ -383,6 +413,7 @@ export const listPaymentMethodsQueryPageDefault = 1;
|
|
|
383
413
|
export const listPaymentMethodsQueryPageMax = 2147483647;
|
|
384
414
|
export const listPaymentMethodsQueryPageSizeDefault = 50;
|
|
385
415
|
export const listPaymentMethodsQueryPageSizeMax = 200;
|
|
416
|
+
export const listPaymentMethodsQueryStatusMax = 2;
|
|
386
417
|
export const ListPaymentMethodsQueryParams = zod.strictObject({
|
|
387
418
|
page: zod
|
|
388
419
|
.int()
|
|
@@ -400,6 +431,12 @@ export const ListPaymentMethodsQueryParams = zod.strictObject({
|
|
|
400
431
|
.int()
|
|
401
432
|
.optional()
|
|
402
433
|
.describe("Only this account; all of yours when omitted."),
|
|
434
|
+
status: zod
|
|
435
|
+
.array(zod.enum(["active", "expired"]))
|
|
436
|
+
.min(1)
|
|
437
|
+
.max(listPaymentMethodsQueryStatusMax)
|
|
438
|
+
.optional()
|
|
439
|
+
.describe("Only payment methods in these statuses; omit for both. Removed payment methods are not listed. Comma-separated."),
|
|
403
440
|
});
|
|
404
441
|
/**
|
|
405
442
|
* Returns what the browser needs to open the payment gateway's card form. Nothing is charged; the method is listed once the gateway confirms it. Card numbers never reach this service.
|
|
@@ -497,6 +534,7 @@ export const listInvoicesQueryPageDefault = 1;
|
|
|
497
534
|
export const listInvoicesQueryPageMax = 2147483647;
|
|
498
535
|
export const listInvoicesQueryPageSizeDefault = 50;
|
|
499
536
|
export const listInvoicesQueryPageSizeMax = 200;
|
|
537
|
+
export const listInvoicesQueryStatusMax = 3;
|
|
500
538
|
export const ListInvoicesQueryParams = zod.strictObject({
|
|
501
539
|
page: zod
|
|
502
540
|
.int()
|
|
@@ -515,9 +553,11 @@ export const ListInvoicesQueryParams = zod.strictObject({
|
|
|
515
553
|
.optional()
|
|
516
554
|
.describe("Only this account; all of yours when omitted."),
|
|
517
555
|
status: zod
|
|
518
|
-
.
|
|
556
|
+
.array(InvoiceStatus)
|
|
557
|
+
.min(1)
|
|
558
|
+
.max(listInvoicesQueryStatusMax)
|
|
519
559
|
.optional()
|
|
520
|
-
.describe("
|
|
560
|
+
.describe("Only invoices in these statuses; omit for every status. Comma-separated, for example `status=open,paid`."),
|
|
521
561
|
subscription_id: zod
|
|
522
562
|
.uuid()
|
|
523
563
|
.optional()
|
|
@@ -565,6 +605,8 @@ export const listTransactionsQueryPageDefault = 1;
|
|
|
565
605
|
export const listTransactionsQueryPageMax = 2147483647;
|
|
566
606
|
export const listTransactionsQueryPageSizeDefault = 50;
|
|
567
607
|
export const listTransactionsQueryPageSizeMax = 200;
|
|
608
|
+
export const listTransactionsQueryTypeMax = 5;
|
|
609
|
+
export const listTransactionsQueryStatusMax = 4;
|
|
568
610
|
export const ListTransactionsQueryParams = zod.strictObject({
|
|
569
611
|
page: zod
|
|
570
612
|
.int()
|
|
@@ -584,6 +626,18 @@ export const ListTransactionsQueryParams = zod.strictObject({
|
|
|
584
626
|
.describe("Only this account; all of yours when omitted."),
|
|
585
627
|
from: zod.iso.datetime({ offset: true }).optional(),
|
|
586
628
|
to: zod.iso.datetime({ offset: true }).optional().describe("Exclusive."),
|
|
629
|
+
type: zod
|
|
630
|
+
.array(TransactionType)
|
|
631
|
+
.min(1)
|
|
632
|
+
.max(listTransactionsQueryTypeMax)
|
|
633
|
+
.optional()
|
|
634
|
+
.describe("Only transactions of these types; omit for every type. Comma-separated, for example `type=topup,refund`."),
|
|
635
|
+
status: zod
|
|
636
|
+
.array(TransactionStatus)
|
|
637
|
+
.min(1)
|
|
638
|
+
.max(listTransactionsQueryStatusMax)
|
|
639
|
+
.optional()
|
|
640
|
+
.describe("Only transactions in these statuses; omit for every status. Comma-separated, for example `status=pending,failed`."),
|
|
587
641
|
});
|
|
588
642
|
/**
|
|
589
643
|
* Coupons held by the account, applied at checkout without a code. Coupons reached through a code are not listed.
|
|
@@ -593,6 +647,7 @@ export const listAccountDiscountsQueryPageDefault = 1;
|
|
|
593
647
|
export const listAccountDiscountsQueryPageMax = 2147483647;
|
|
594
648
|
export const listAccountDiscountsQueryPageSizeDefault = 50;
|
|
595
649
|
export const listAccountDiscountsQueryPageSizeMax = 200;
|
|
650
|
+
export const listAccountDiscountsQueryStatusMax = 4;
|
|
596
651
|
export const ListAccountDiscountsQueryParams = zod.strictObject({
|
|
597
652
|
page: zod
|
|
598
653
|
.int()
|
|
@@ -610,6 +665,12 @@ export const ListAccountDiscountsQueryParams = zod.strictObject({
|
|
|
610
665
|
.int()
|
|
611
666
|
.optional()
|
|
612
667
|
.describe("Only this account; all of yours when omitted."),
|
|
668
|
+
status: zod
|
|
669
|
+
.array(DiscountStatus)
|
|
670
|
+
.min(1)
|
|
671
|
+
.max(listAccountDiscountsQueryStatusMax)
|
|
672
|
+
.optional()
|
|
673
|
+
.describe("Only discounts in these statuses; omit for every status. Comma-separated, for example `status=scheduled,active`."),
|
|
613
674
|
});
|
|
614
675
|
/**
|
|
615
676
|
* Credit grants with what remains and what each may pay for. Credit is spent before balance and cannot be withdrawn.
|
|
@@ -619,6 +680,7 @@ export const listCreditGrantsQueryPageDefault = 1;
|
|
|
619
680
|
export const listCreditGrantsQueryPageMax = 2147483647;
|
|
620
681
|
export const listCreditGrantsQueryPageSizeDefault = 50;
|
|
621
682
|
export const listCreditGrantsQueryPageSizeMax = 200;
|
|
683
|
+
export const listCreditGrantsQueryStatusMax = 4;
|
|
622
684
|
export const ListCreditGrantsQueryParams = zod.strictObject({
|
|
623
685
|
page: zod
|
|
624
686
|
.int()
|
|
@@ -636,7 +698,12 @@ export const ListCreditGrantsQueryParams = zod.strictObject({
|
|
|
636
698
|
.int()
|
|
637
699
|
.optional()
|
|
638
700
|
.describe("Only this account; all of yours when omitted."),
|
|
639
|
-
status: zod
|
|
701
|
+
status: zod
|
|
702
|
+
.array(CreditGrantStatus)
|
|
703
|
+
.min(1)
|
|
704
|
+
.max(listCreditGrantsQueryStatusMax)
|
|
705
|
+
.optional()
|
|
706
|
+
.describe("Only credit grants in these statuses; omit for every status. Comma-separated, for example `status=active,depleted`."),
|
|
640
707
|
});
|
|
641
708
|
/**
|
|
642
709
|
* Credit notes, newest first. Filters apply within the billing accounts you are authorized for.
|
|
@@ -646,6 +713,7 @@ export const listCreditNotesQueryPageDefault = 1;
|
|
|
646
713
|
export const listCreditNotesQueryPageMax = 2147483647;
|
|
647
714
|
export const listCreditNotesQueryPageSizeDefault = 50;
|
|
648
715
|
export const listCreditNotesQueryPageSizeMax = 200;
|
|
716
|
+
export const listCreditNotesQueryStatusMax = 2;
|
|
649
717
|
export const ListCreditNotesQueryParams = zod.strictObject({
|
|
650
718
|
page: zod
|
|
651
719
|
.int()
|
|
@@ -664,6 +732,12 @@ export const ListCreditNotesQueryParams = zod.strictObject({
|
|
|
664
732
|
.optional()
|
|
665
733
|
.describe("Only this account; all of yours when omitted."),
|
|
666
734
|
invoice_id: zod.uuid().optional().describe("Only the notes for this invoice."),
|
|
735
|
+
status: zod
|
|
736
|
+
.array(CreditNoteStatus)
|
|
737
|
+
.min(1)
|
|
738
|
+
.max(listCreditNotesQueryStatusMax)
|
|
739
|
+
.optional()
|
|
740
|
+
.describe("Only credit notes in these statuses; omit for both. Comma-separated."),
|
|
667
741
|
});
|
|
668
742
|
/**
|
|
669
743
|
* Requires authorization for the invoice's billing account.
|
|
@@ -705,6 +779,7 @@ export const listRefundsQueryPageDefault = 1;
|
|
|
705
779
|
export const listRefundsQueryPageMax = 2147483647;
|
|
706
780
|
export const listRefundsQueryPageSizeDefault = 50;
|
|
707
781
|
export const listRefundsQueryPageSizeMax = 200;
|
|
782
|
+
export const listRefundsQueryStatusMax = 4;
|
|
708
783
|
export const ListRefundsQueryParams = zod.strictObject({
|
|
709
784
|
page: zod
|
|
710
785
|
.int()
|
|
@@ -727,6 +802,12 @@ export const ListRefundsQueryParams = zod.strictObject({
|
|
|
727
802
|
.uuid()
|
|
728
803
|
.optional()
|
|
729
804
|
.describe("Refunds of this order: those of its invoice, such as for an undeliverable purchase, and those it caused on an earlier invoice, such as a downgrade difference."),
|
|
805
|
+
status: zod
|
|
806
|
+
.array(RefundStatus)
|
|
807
|
+
.min(1)
|
|
808
|
+
.max(listRefundsQueryStatusMax)
|
|
809
|
+
.optional()
|
|
810
|
+
.describe("Only refunds in these statuses; omit for every status. Comma-separated, for example `status=pending,processing`."),
|
|
730
811
|
});
|
|
731
812
|
/**
|
|
732
813
|
* Priced usage charges in the requested scope; members with the project permission `billing:finance.manage` list a project's charges with `project_ids`. Usage that had no price when it occurred is never charged later.
|
|
@@ -788,6 +869,7 @@ export const listSubscriptionsQueryPageMax = 2147483647;
|
|
|
788
869
|
export const listSubscriptionsQueryPageSizeDefault = 50;
|
|
789
870
|
export const listSubscriptionsQueryPageSizeMax = 200;
|
|
790
871
|
export const listSubscriptionsQueryProjectIdsMax = 100;
|
|
872
|
+
export const listSubscriptionsQueryStatusMax = 6;
|
|
791
873
|
export const ListSubscriptionsQueryParams = zod.strictObject({
|
|
792
874
|
expiring_before: zod.iso.datetime({ offset: true }).optional(),
|
|
793
875
|
page: zod
|
|
@@ -812,6 +894,12 @@ export const ListSubscriptionsQueryParams = zod.strictObject({
|
|
|
812
894
|
.max(listSubscriptionsQueryProjectIdsMax)
|
|
813
895
|
.optional()
|
|
814
896
|
.describe("Only records of these projects. Omit for all projects and account-level records of your billing accounts. Where an operation is open to project members, each project must be assigned to a billing account you own or have you as a member, and a member sees the records of the project that the owner of its current billing account sees."),
|
|
897
|
+
status: zod
|
|
898
|
+
.array(SubscriptionStatus)
|
|
899
|
+
.min(1)
|
|
900
|
+
.max(listSubscriptionsQueryStatusMax)
|
|
901
|
+
.optional()
|
|
902
|
+
.describe("Only subscriptions in these statuses; omit for every status. Comma-separated, for example `status=active,suspended`."),
|
|
815
903
|
});
|
|
816
904
|
/**
|
|
817
905
|
* A subscription paid by your billing account or of a project you are a member of. Deleted subscriptions are reported as not found.
|
|
@@ -852,6 +940,7 @@ export const listCancellationsQueryPageDefault = 1;
|
|
|
852
940
|
export const listCancellationsQueryPageMax = 2147483647;
|
|
853
941
|
export const listCancellationsQueryPageSizeDefault = 50;
|
|
854
942
|
export const listCancellationsQueryPageSizeMax = 200;
|
|
943
|
+
export const listCancellationsQueryStatusMax = 7;
|
|
855
944
|
export const listCancellationsQueryProjectIdsMax = 100;
|
|
856
945
|
export const ListCancellationsQueryParams = zod.strictObject({
|
|
857
946
|
page: zod
|
|
@@ -875,9 +964,11 @@ export const ListCancellationsQueryParams = zod.strictObject({
|
|
|
875
964
|
.optional()
|
|
876
965
|
.describe("Only cancellations that include this subscription."),
|
|
877
966
|
status: zod
|
|
878
|
-
.enum(["open", "requested", "scheduled", "releasing", "completed", "canceled", "failed"])
|
|
967
|
+
.array(zod.enum(["open", "requested", "scheduled", "releasing", "completed", "canceled", "failed"]))
|
|
968
|
+
.min(1)
|
|
969
|
+
.max(listCancellationsQueryStatusMax)
|
|
879
970
|
.optional()
|
|
880
|
-
.describe("Only cancellations in
|
|
971
|
+
.describe("Only cancellations in these statuses; omit for every status. `open` means requested, scheduled or releasing. Comma-separated, for example `status=open,failed`."),
|
|
881
972
|
project_ids: zod
|
|
882
973
|
.array(zod.uuid())
|
|
883
974
|
.min(1)
|
|
@@ -995,6 +1086,7 @@ export const listAllowancesQueryPageDefault = 1;
|
|
|
995
1086
|
export const listAllowancesQueryPageMax = 2147483647;
|
|
996
1087
|
export const listAllowancesQueryPageSizeDefault = 50;
|
|
997
1088
|
export const listAllowancesQueryPageSizeMax = 200;
|
|
1089
|
+
export const listAllowancesQueryStatusMax = 4;
|
|
998
1090
|
export const listAllowancesQueryProductIdMax = 64;
|
|
999
1091
|
export const listAllowancesQueryProductIdRegExp = new RegExp("^[a-z][a-z0-9]*(-[a-z0-9]+)*$");
|
|
1000
1092
|
export const listAllowancesQueryProjectIdsMax = 100;
|
|
@@ -1016,7 +1108,12 @@ export const ListAllowancesQueryParams = zod.strictObject({
|
|
|
1016
1108
|
.optional()
|
|
1017
1109
|
.describe("Only this account; all of yours when omitted."),
|
|
1018
1110
|
meter_id: zod.uuid().optional().describe("Filter by the meter UUID."),
|
|
1019
|
-
status: zod
|
|
1111
|
+
status: zod
|
|
1112
|
+
.array(AllowanceStatus)
|
|
1113
|
+
.min(1)
|
|
1114
|
+
.max(listAllowancesQueryStatusMax)
|
|
1115
|
+
.optional()
|
|
1116
|
+
.describe("Only allowances in these statuses; omit for every status. Comma-separated, for example `status=active,depleted`."),
|
|
1020
1117
|
product_id: zod
|
|
1021
1118
|
.string()
|
|
1022
1119
|
.min(1)
|
|
@@ -1039,6 +1136,7 @@ export const listCheckoutSessionsQueryPageDefault = 1;
|
|
|
1039
1136
|
export const listCheckoutSessionsQueryPageMax = 2147483647;
|
|
1040
1137
|
export const listCheckoutSessionsQueryPageSizeDefault = 50;
|
|
1041
1138
|
export const listCheckoutSessionsQueryPageSizeMax = 200;
|
|
1139
|
+
export const listCheckoutSessionsQueryStatusMax = 3;
|
|
1042
1140
|
export const listCheckoutSessionsQueryProjectIdsMax = 100;
|
|
1043
1141
|
export const ListCheckoutSessionsQueryParams = zod.strictObject({
|
|
1044
1142
|
page: zod
|
|
@@ -1058,9 +1156,11 @@ export const ListCheckoutSessionsQueryParams = zod.strictObject({
|
|
|
1058
1156
|
.optional()
|
|
1059
1157
|
.describe("Only this account; all of yours when omitted."),
|
|
1060
1158
|
status: zod
|
|
1061
|
-
.
|
|
1159
|
+
.array(CheckoutSessionStatus)
|
|
1160
|
+
.min(1)
|
|
1161
|
+
.max(listCheckoutSessionsQueryStatusMax)
|
|
1062
1162
|
.optional()
|
|
1063
|
-
.describe("
|
|
1163
|
+
.describe("Only sessions in these statuses; omit for every status. Comma-separated, for example `status=open,expired`."),
|
|
1064
1164
|
project_ids: zod
|
|
1065
1165
|
.array(zod.uuid())
|
|
1066
1166
|
.min(1)
|
|
@@ -1166,6 +1266,7 @@ export const listOrdersQueryPageDefault = 1;
|
|
|
1166
1266
|
export const listOrdersQueryPageMax = 2147483647;
|
|
1167
1267
|
export const listOrdersQueryPageSizeDefault = 50;
|
|
1168
1268
|
export const listOrdersQueryPageSizeMax = 200;
|
|
1269
|
+
export const listOrdersQueryStatusMax = 6;
|
|
1169
1270
|
export const listOrdersQueryProjectIdsMax = 100;
|
|
1170
1271
|
export const ListOrdersQueryParams = zod.strictObject({
|
|
1171
1272
|
page: zod
|
|
@@ -1185,9 +1286,11 @@ export const ListOrdersQueryParams = zod.strictObject({
|
|
|
1185
1286
|
.optional()
|
|
1186
1287
|
.describe("Only this account; all of yours when omitted."),
|
|
1187
1288
|
status: zod
|
|
1188
|
-
.
|
|
1289
|
+
.array(OrderStatus)
|
|
1290
|
+
.min(1)
|
|
1291
|
+
.max(listOrdersQueryStatusMax)
|
|
1189
1292
|
.optional()
|
|
1190
|
-
.describe("
|
|
1293
|
+
.describe("Only orders in these statuses; omit for every status. Comma-separated, for example `status=pending,accepted`."),
|
|
1191
1294
|
from: zod.iso.datetime({ offset: true }).optional(),
|
|
1192
1295
|
to: zod.iso.datetime({ offset: true }).optional().describe("Exclusive."),
|
|
1193
1296
|
project_ids: zod
|
|
@@ -1316,6 +1419,7 @@ export const listFeatureGrantsQueryPageSizeDefault = 50;
|
|
|
1316
1419
|
export const listFeatureGrantsQueryPageSizeMax = 200;
|
|
1317
1420
|
export const listFeatureGrantsQueryProductIdMax = 64;
|
|
1318
1421
|
export const listFeatureGrantsQueryProductIdRegExp = new RegExp("^[a-z][a-z0-9]*(-[a-z0-9]+)*$");
|
|
1422
|
+
export const listFeatureGrantsQueryStatusMax = 4;
|
|
1319
1423
|
export const ListFeatureGrantsQueryParams = zod.strictObject({
|
|
1320
1424
|
page: zod
|
|
1321
1425
|
.int()
|
|
@@ -1341,9 +1445,11 @@ export const ListFeatureGrantsQueryParams = zod.strictObject({
|
|
|
1341
1445
|
.optional()
|
|
1342
1446
|
.describe("The platform service's fixed identifier, such as compute, canopy or assistant."),
|
|
1343
1447
|
status: zod
|
|
1344
|
-
.
|
|
1448
|
+
.array(FeatureGrantStatus)
|
|
1449
|
+
.min(1)
|
|
1450
|
+
.max(listFeatureGrantsQueryStatusMax)
|
|
1345
1451
|
.optional()
|
|
1346
|
-
.describe("
|
|
1452
|
+
.describe("Only feature grants in these statuses; omit for every status. Comma-separated, for example `status=scheduled,active`."),
|
|
1347
1453
|
});
|
|
1348
1454
|
/**
|
|
1349
1455
|
* Every active price in the currency, one entry per plan and price. Archived prices are not listed; existing subscriptions keep the terms they were bought at.
|
|
@@ -1546,6 +1652,7 @@ export const listActiveResourcesQueryPageSizeMax = 200;
|
|
|
1546
1652
|
export const listActiveResourcesQueryProjectIdsMax = 100;
|
|
1547
1653
|
export const listActiveResourcesQueryProductIdMax = 64;
|
|
1548
1654
|
export const listActiveResourcesQueryProductIdRegExp = new RegExp("^[a-z][a-z0-9]*(-[a-z0-9]+)*$");
|
|
1655
|
+
export const listActiveResourcesQueryStatusMax = 4;
|
|
1549
1656
|
export const ListActiveResourcesQueryParams = zod.strictObject({
|
|
1550
1657
|
page: zod
|
|
1551
1658
|
.int()
|
|
@@ -1578,7 +1685,12 @@ export const ListActiveResourcesQueryParams = zod.strictObject({
|
|
|
1578
1685
|
.regex(listActiveResourcesQueryProductIdRegExp)
|
|
1579
1686
|
.optional()
|
|
1580
1687
|
.describe("The platform service's fixed identifier, such as compute, canopy or assistant."),
|
|
1581
|
-
status: zod
|
|
1688
|
+
status: zod
|
|
1689
|
+
.array(ActiveResourceStatus)
|
|
1690
|
+
.min(1)
|
|
1691
|
+
.max(listActiveResourcesQueryStatusMax)
|
|
1692
|
+
.optional()
|
|
1693
|
+
.describe("Only metering in these statuses; omit for every status. Comma-separated, for example `status=active,suspended`."),
|
|
1582
1694
|
});
|
|
1583
1695
|
/**
|
|
1584
1696
|
* Sums priced usage for one billing account by UTC day, including usage not yet invoiced. Amounts are
|
|
@@ -1666,13 +1778,19 @@ export const ListMonthlyStatementsQueryParams = zod.strictObject({
|
|
|
1666
1778
|
* Statements of your billing accounts, filtered by billing_account_id, open or closed and period start. A closed statement does not mean the month is complete.
|
|
1667
1779
|
* @summary List statements
|
|
1668
1780
|
*/
|
|
1781
|
+
export const listStatementsQueryStatusMax = 2;
|
|
1669
1782
|
export const listStatementsQueryPageDefault = 1;
|
|
1670
1783
|
export const listStatementsQueryPageMax = 2147483647;
|
|
1671
1784
|
export const listStatementsQueryPageSizeDefault = 50;
|
|
1672
1785
|
export const listStatementsQueryPageSizeMax = 200;
|
|
1673
1786
|
export const ListStatementsQueryParams = zod.strictObject({
|
|
1674
1787
|
billing_account_id: zod.int().optional(),
|
|
1675
|
-
status: zod
|
|
1788
|
+
status: zod
|
|
1789
|
+
.array(StatementStatus)
|
|
1790
|
+
.min(1)
|
|
1791
|
+
.max(listStatementsQueryStatusMax)
|
|
1792
|
+
.optional()
|
|
1793
|
+
.describe("Only statements in these statuses; omit for every status. Comma-separated."),
|
|
1676
1794
|
from: zod.iso.datetime({ offset: true }).optional(),
|
|
1677
1795
|
to: zod.iso.datetime({ offset: true }).optional(),
|
|
1678
1796
|
page: zod
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { ActiveResourceStatus } from "./activeResourceStatus.zod.js";
|
|
9
10
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
10
11
|
import { Product } from "./product.zod.js";
|
|
11
12
|
export const ActiveResource = zod
|
|
@@ -29,7 +30,7 @@ export const ActiveResource = zod
|
|
|
29
30
|
.string()
|
|
30
31
|
.describe("How much is held, such as cores, MiB or cards; not how much was used."),
|
|
31
32
|
dimensions: zod.record(zod.string(), zod.string()).optional(),
|
|
32
|
-
status:
|
|
33
|
+
status: ActiveResourceStatus,
|
|
33
34
|
started_at: zod.iso.datetime({ offset: true }),
|
|
34
35
|
project_id: zod.uuid().optional(),
|
|
35
36
|
usage_generated_until: zod.iso
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const ActiveResourceStatus: zod.ZodEnum<{
|
|
10
|
+
active: "active";
|
|
11
|
+
suspended: "suspended";
|
|
12
|
+
closed: "closed";
|
|
13
|
+
closing: "closing";
|
|
14
|
+
}>;
|
|
15
|
+
export type ActiveResourceStatus = zod.input<typeof ActiveResourceStatus>;
|
|
16
|
+
export type ActiveResourceStatusOutput = zod.output<typeof ActiveResourceStatus>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const ActiveResourceStatus = zod.enum(["active", "suspended", "closing", "closed"]);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { AllowanceStatus } from "./allowanceStatus.zod.js";
|
|
9
10
|
import { ObjectIdentity } from "./objectIdentity.zod.js";
|
|
10
11
|
import { Product } from "./product.zod.js";
|
|
11
12
|
export const Allowance = zod.strictObject({
|
|
@@ -32,7 +33,7 @@ export const Allowance = zod.strictObject({
|
|
|
32
33
|
.int()
|
|
33
34
|
.optional()
|
|
34
35
|
.describe("Lower values are consumed first; at equal priority, earlier expiry and then earlier issuance."),
|
|
35
|
-
status:
|
|
36
|
+
status: AllowanceStatus,
|
|
36
37
|
valid_from: zod.iso.datetime({ offset: true }),
|
|
37
38
|
valid_until: zod.iso
|
|
38
39
|
.datetime({ offset: true })
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const AllowanceStatus: zod.ZodEnum<{
|
|
10
|
+
active: "active";
|
|
11
|
+
expired: "expired";
|
|
12
|
+
depleted: "depleted";
|
|
13
|
+
voided: "voided";
|
|
14
|
+
}>;
|
|
15
|
+
export type AllowanceStatus = zod.input<typeof AllowanceStatus>;
|
|
16
|
+
export type AllowanceStatusOutput = zod.output<typeof AllowanceStatus>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const AllowanceStatus = zod.enum(["active", "depleted", "expired", "voided"]);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { Applicability } from "./applicability.zod.js";
|
|
10
|
+
import { CreditGrantStatus } from "./creditGrantStatus.zod.js";
|
|
10
11
|
import { Money } from "./money.zod.js";
|
|
11
12
|
export const CreditGrant = zod.strictObject({
|
|
12
13
|
min_amount: zod.string().optional(),
|
|
@@ -21,7 +22,7 @@ export const CreditGrant = zod.strictObject({
|
|
|
21
22
|
.boolean()
|
|
22
23
|
.optional()
|
|
23
24
|
.describe("Restricted to your first purchase of anything it applies to."),
|
|
24
|
-
status:
|
|
25
|
+
status: CreditGrantStatus,
|
|
25
26
|
valid_from: zod.iso.datetime({ offset: true }),
|
|
26
27
|
valid_until: zod.iso.datetime({ offset: true }).nullish(),
|
|
27
28
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const CreditGrantStatus: zod.ZodEnum<{
|
|
10
|
+
active: "active";
|
|
11
|
+
expired: "expired";
|
|
12
|
+
depleted: "depleted";
|
|
13
|
+
voided: "voided";
|
|
14
|
+
}>;
|
|
15
|
+
export type CreditGrantStatus = zod.input<typeof CreditGrantStatus>;
|
|
16
|
+
export type CreditGrantStatusOutput = zod.output<typeof CreditGrantStatus>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const CreditGrantStatus = zod.enum(["active", "depleted", "expired", "voided"]);
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* OpenAPI spec version: v1
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
|
+
import { CreditNoteStatus } from "./creditNoteStatus.zod.js";
|
|
9
10
|
import { Money } from "./money.zod.js";
|
|
10
11
|
export const CreditNote = zod
|
|
11
12
|
.strictObject({
|
|
@@ -13,7 +14,7 @@ export const CreditNote = zod
|
|
|
13
14
|
invoice_id: zod.uuid(),
|
|
14
15
|
currency: zod.string(),
|
|
15
16
|
issued_at: zod.iso.datetime({ offset: true }),
|
|
16
|
-
status:
|
|
17
|
+
status: CreditNoteStatus,
|
|
17
18
|
voided_at: zod.iso
|
|
18
19
|
.datetime({ offset: true })
|
|
19
20
|
.nullable()
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const CreditNoteStatus: zod.ZodEnum<{
|
|
10
|
+
void: "void";
|
|
11
|
+
issued: "issued";
|
|
12
|
+
}>;
|
|
13
|
+
export type CreditNoteStatus = zod.input<typeof CreditNoteStatus>;
|
|
14
|
+
export type CreditNoteStatusOutput = zod.output<typeof CreditNoteStatus>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const CreditNoteStatus = zod.enum(["issued", "void"]);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as zod from "zod";
|
|
9
9
|
import { Applicability } from "./applicability.zod.js";
|
|
10
|
+
import { DiscountStatus } from "./discountStatus.zod.js";
|
|
10
11
|
import { Money } from "./money.zod.js";
|
|
11
12
|
export const Discount = zod
|
|
12
13
|
.strictObject({
|
|
@@ -14,9 +15,7 @@ export const Discount = zod
|
|
|
14
15
|
billing_account_id: zod.int().optional(),
|
|
15
16
|
coupon_id: zod.uuid(),
|
|
16
17
|
promotion_code_id: zod.uuid().optional(),
|
|
17
|
-
status:
|
|
18
|
-
.enum(["scheduled", "active", "expired", "voided"])
|
|
19
|
-
.describe("`scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn."),
|
|
18
|
+
status: DiscountStatus,
|
|
20
19
|
voided_at: zod.iso.datetime({ offset: true }).optional(),
|
|
21
20
|
type: zod.enum(["percentage", "fixed_amount", "price_override", "free_setup"]),
|
|
22
21
|
frequency: zod
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const DiscountStatus: zod.ZodEnum<{
|
|
10
|
+
scheduled: "scheduled";
|
|
11
|
+
active: "active";
|
|
12
|
+
expired: "expired";
|
|
13
|
+
voided: "voided";
|
|
14
|
+
}>;
|
|
15
|
+
export type DiscountStatus = zod.input<typeof DiscountStatus>;
|
|
16
|
+
export type DiscountStatusOutput = zod.output<typeof DiscountStatus>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Billing API
|
|
5
|
+
* Products, prices, orders, subscriptions and account billing. Operations on a billing account require an account access token. The account, its balance, payment options and quotes are also readable by members of the projects it currently pays for; changing the account and moving its funds need the owner. Members of a project, as each operation states, can also read the project's billing account, subscriptions and orders, complete and pay for its purchases, quote purchases, changes and renewals, preview cancellations, and, with the project permission `billing:finance.manage` granted in IAM, renew, cancel and turn automatic renewal of its subscriptions on or off, change its billing account and read its costs. A member without the permission an operation needs is refused with 403 `PERMISSION_DENIED` and `meta.permission`; a caller who is not a member, with 403 `IAM_NOT_PROJECT_MEMBER`. Public catalogue operations declare no security requirement.
|
|
6
|
+
* OpenAPI spec version: v1
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const DiscountStatus = zod
|
|
10
|
+
.enum(["scheduled", "active", "expired", "voided"])
|
|
11
|
+
.describe("`scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn.");
|