@leaflow/sdk 0.208.0 → 0.210.0
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/canopy/v1/generated/functions.d.ts +73 -1
- package/dist/canopy/v1/generated/functions.js +92 -6
- package/dist/canopy/v1/generated/models.d.ts +148 -12
- package/dist/canopy/v1/generated/models.js +13 -0
- package/dist/canopy/v1/generated/schemas.zod.d.ts +49 -0
- package/dist/canopy/v1/generated/schemas.zod.js +28 -0
- package/dist/canopy/v1/generated/validators/cursorPageRequestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.d.ts +46 -0
- package/dist/canopy/v1/generated/validators/getVideoContentHeaders.zod.js +44 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.d.ts +61 -0
- package/dist/canopy/v1/generated/validators/mediaUsageDetails.zod.js +67 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.d.ts +10 -0
- package/dist/canopy/v1/generated/validators/requestResource.zod.js +2 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.d.ts +67 -0
- package/dist/canopy/v1/generated/validators/videoCreateRequest.zod.js +70 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.d.ts +53 -0
- package/dist/canopy/v1/generated/validators/videoReferenceMedia.zod.js +53 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.d.ts +71 -0
- package/dist/canopy/v1/generated/validators/videoTask.zod.js +64 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.d.ts +54 -0
- package/dist/canopy/v1/generated/validators/videoUsage.zod.js +62 -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/dist/routes.d.ts +24 -0
- package/dist/routes.js +27 -0
- package/package.json +1 -1
|
@@ -877,6 +877,11 @@ export interface ProjectAssignmentList {
|
|
|
877
877
|
export interface SetProjectAssignmentRequest {
|
|
878
878
|
billing_account_id: number;
|
|
879
879
|
}
|
|
880
|
+
export interface AccountIdentity {
|
|
881
|
+
id: number;
|
|
882
|
+
name: string;
|
|
883
|
+
currency: string;
|
|
884
|
+
}
|
|
880
885
|
/**
|
|
881
886
|
* `pending` until the payment gateway reaches a result; the balance increases on `succeeded`. `failed`: the gateway declined the payment, which is withdrawn at the gateway; create a new top-up to pay another way. `canceled`: withdrawn without collecting money, for the reason in `cancellation_reason`. Unknown gateway outcomes stay `pending`; a browser redirect is not proof of payment. `failed` and `canceled` are final; a payment the gateway collects afterwards is credited as a separate `succeeded` top-up.
|
|
882
887
|
*/
|
|
@@ -887,11 +892,6 @@ export declare const TopUpStatus: {
|
|
|
887
892
|
readonly failed: "failed";
|
|
888
893
|
readonly canceled: "canceled";
|
|
889
894
|
};
|
|
890
|
-
export interface AccountIdentity {
|
|
891
|
-
id: number;
|
|
892
|
-
name: string;
|
|
893
|
-
currency: string;
|
|
894
|
-
}
|
|
895
895
|
/**
|
|
896
896
|
* Why a gateway payment was withdrawn: `abandoned` when the customer did not complete it in time, `requested_by_customer` when the customer canceled it.
|
|
897
897
|
*/
|
|
@@ -932,7 +932,6 @@ export interface TopUp {
|
|
|
932
932
|
currency: string;
|
|
933
933
|
/** The part of this top-up still in the balance. Pending refunds may hold part of it, so not all of it is necessarily withdrawable. */
|
|
934
934
|
remaining_amount?: Money;
|
|
935
|
-
/** `pending` until the payment gateway reaches a result; the balance increases on `succeeded`. `failed`: the gateway declined the payment, which is withdrawn at the gateway; create a new top-up to pay another way. `canceled`: withdrawn without collecting money, for the reason in `cancellation_reason`. Unknown gateway outcomes stay `pending`; a browser redirect is not proof of payment. `failed` and `canceled` are final; a payment the gateway collects afterwards is credited as a separate `succeeded` top-up. */
|
|
936
935
|
status: TopUpStatus;
|
|
937
936
|
cancellation_reason?: PaymentCancellationReason;
|
|
938
937
|
/** Which payment gateway collected it. */
|
|
@@ -1169,7 +1168,6 @@ export interface Transaction {
|
|
|
1169
1168
|
refund_id?: string;
|
|
1170
1169
|
/** Present on refunds: where this part goes. `balance`: the account balance. `credit`: the credit grant that paid, keeping its original expiry. `gateway`: the payment method it was paid with. */
|
|
1171
1170
|
refund_destination?: TransactionRefundDestination;
|
|
1172
|
-
/** `failed`: the operation did not succeed; for a gateway payment, the gateway declined it. `canceled`: a gateway payment was withdrawn without collecting money. Either way, the invoice it was for stays open. */
|
|
1173
1171
|
status?: TransactionStatus;
|
|
1174
1172
|
cancellation_reason?: PaymentCancellationReason;
|
|
1175
1173
|
payment_gateway?: string;
|
|
@@ -1414,11 +1412,6 @@ export interface CreditGrantList {
|
|
|
1414
1412
|
items: CreditGrant[];
|
|
1415
1413
|
pagination: OffsetPagination;
|
|
1416
1414
|
}
|
|
1417
|
-
export type CreditNoteStatus = (typeof CreditNoteStatus)[keyof typeof CreditNoteStatus];
|
|
1418
|
-
export declare const CreditNoteStatus: {
|
|
1419
|
-
readonly issued: "issued";
|
|
1420
|
-
readonly void: "void";
|
|
1421
|
-
};
|
|
1422
1415
|
/**
|
|
1423
1416
|
* Why the note was issued. Notes for canceled, expired or failed orders carry the order's reason; `usage_true_up` returns a tier price reduction settled after the original invoice; `operator` was issued on request.
|
|
1424
1417
|
*/
|
|
@@ -1433,6 +1426,11 @@ export declare const CreditNoteReason: {
|
|
|
1433
1426
|
readonly usage_true_up: "usage_true_up";
|
|
1434
1427
|
readonly operator: "operator";
|
|
1435
1428
|
};
|
|
1429
|
+
export type CreditNoteStatus = (typeof CreditNoteStatus)[keyof typeof CreditNoteStatus];
|
|
1430
|
+
export declare const CreditNoteStatus: {
|
|
1431
|
+
readonly issued: "issued";
|
|
1432
|
+
readonly void: "void";
|
|
1433
|
+
};
|
|
1436
1434
|
/**
|
|
1437
1435
|
* A reduction of an issued invoice; the original invoice amounts do not change. The credited amount is pre_payment_amount plus post_payment_amount. A paid part creates a refund, identified by refund_id, whose outcome may still be pending.
|
|
1438
1436
|
*/
|
|
@@ -1565,18 +1563,6 @@ export interface Refund {
|
|
|
1565
1563
|
* @deprecated
|
|
1566
1564
|
*/
|
|
1567
1565
|
destination?: RefundDestination;
|
|
1568
|
-
/**
|
|
1569
|
-
* Summary of the parts in `transactions`.
|
|
1570
|
-
*
|
|
1571
|
-
* - `pending`: nothing has been returned yet, and at least one part is in progress.
|
|
1572
|
-
* - `processing`: some parts have been returned, and at least one is still in progress.
|
|
1573
|
-
* - `succeeded`: every part has been returned.
|
|
1574
|
-
* - `failed`: no part is in progress and at least one has failed. What was returned is in
|
|
1575
|
-
* settled_amount.
|
|
1576
|
-
*
|
|
1577
|
-
* Returns to the balance and to credit grants complete shortly after the refund is made; a
|
|
1578
|
-
* return to a payment method completes when the gateway confirms it.
|
|
1579
|
-
*/
|
|
1580
1566
|
status: RefundStatus;
|
|
1581
1567
|
/** When the last part was returned. Present with `succeeded`. */
|
|
1582
1568
|
settled_at?: string;
|
|
@@ -1796,7 +1782,6 @@ export interface Subscription {
|
|
|
1796
1782
|
current_period_end?: string | null;
|
|
1797
1783
|
/** Whether a licensed subscription renews automatically. A metered subscription continues until it is canceled; for it this is true until a cancellation is requested, and cannot be set. */
|
|
1798
1784
|
auto_renew: boolean;
|
|
1799
|
-
/** `pending`: the order has not been accepted. `provisioning`: the owning service accepted the order and is delivering. `active`: delivery was confirmed; payment alone does not make a subscription active. `suspended`: service is stopped while a lien restricts its use. `canceled`: cancellation completed, or an undelivered purchase was canceled or failed. `terminated`: an operator or the owning service ended it immediately. */
|
|
1800
1785
|
status: SubscriptionStatus;
|
|
1801
1786
|
/**
|
|
1802
1787
|
* When service started. Null until a new subscription becomes active, also after payment.
|
|
@@ -2298,16 +2283,6 @@ export interface OrderList {
|
|
|
2298
2283
|
items: Order[];
|
|
2299
2284
|
pagination: OffsetPagination;
|
|
2300
2285
|
}
|
|
2301
|
-
/**
|
|
2302
|
-
* `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn.
|
|
2303
|
-
*/
|
|
2304
|
-
export type DiscountStatus = (typeof DiscountStatus)[keyof typeof DiscountStatus];
|
|
2305
|
-
export declare const DiscountStatus: {
|
|
2306
|
-
readonly scheduled: "scheduled";
|
|
2307
|
-
readonly active: "active";
|
|
2308
|
-
readonly expired: "expired";
|
|
2309
|
-
readonly voided: "voided";
|
|
2310
|
-
};
|
|
2311
2286
|
export type DiscountType = (typeof DiscountType)[keyof typeof DiscountType];
|
|
2312
2287
|
export declare const DiscountType: {
|
|
2313
2288
|
readonly percentage: "percentage";
|
|
@@ -2324,6 +2299,16 @@ export declare const DiscountFrequency: {
|
|
|
2324
2299
|
readonly recurring: "recurring";
|
|
2325
2300
|
readonly forever: "forever";
|
|
2326
2301
|
};
|
|
2302
|
+
/**
|
|
2303
|
+
* `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn.
|
|
2304
|
+
*/
|
|
2305
|
+
export type DiscountStatus = (typeof DiscountStatus)[keyof typeof DiscountStatus];
|
|
2306
|
+
export declare const DiscountStatus: {
|
|
2307
|
+
readonly scheduled: "scheduled";
|
|
2308
|
+
readonly active: "active";
|
|
2309
|
+
readonly expired: "expired";
|
|
2310
|
+
readonly voided: "voided";
|
|
2311
|
+
};
|
|
2327
2312
|
/**
|
|
2328
2313
|
* A coupon held by the account for a period, applying without a code to the purchases and metered usage it covers.
|
|
2329
2314
|
*/
|
|
@@ -2332,7 +2317,6 @@ export interface Discount {
|
|
|
2332
2317
|
billing_account_id?: number;
|
|
2333
2318
|
coupon_id: string;
|
|
2334
2319
|
promotion_code_id?: string;
|
|
2335
|
-
/** `scheduled` before valid_from, `active` within the validity, `expired` after valid_until, or `voided` once withdrawn. */
|
|
2336
2320
|
status: DiscountStatus;
|
|
2337
2321
|
voided_at?: string;
|
|
2338
2322
|
type: DiscountType;
|
|
@@ -3420,6 +3404,12 @@ export type ListWithdrawalsParams = {
|
|
|
3420
3404
|
*/
|
|
3421
3405
|
page_size?: number;
|
|
3422
3406
|
billing_account_id?: number;
|
|
3407
|
+
/**
|
|
3408
|
+
* Only withdrawals in these statuses; omit for every status. Comma-separated, for example `status=pending,processing`.
|
|
3409
|
+
* @minItems 1
|
|
3410
|
+
* @maxItems 6
|
|
3411
|
+
*/
|
|
3412
|
+
status?: WithdrawalStatus[];
|
|
3423
3413
|
};
|
|
3424
3414
|
export type ListContactsParams = {
|
|
3425
3415
|
/**
|
|
@@ -3521,6 +3511,12 @@ export type ListTopUpsParams = {
|
|
|
3521
3511
|
* Only this account; all of yours when omitted.
|
|
3522
3512
|
*/
|
|
3523
3513
|
billing_account_id?: AccountIdQueryParameter;
|
|
3514
|
+
/**
|
|
3515
|
+
* Only top-ups in these statuses; omit for every status. Comma-separated, for example `status=pending,succeeded`.
|
|
3516
|
+
* @minItems 1
|
|
3517
|
+
* @maxItems 4
|
|
3518
|
+
*/
|
|
3519
|
+
status?: TopUpStatus[];
|
|
3524
3520
|
};
|
|
3525
3521
|
export type ListPaymentMethodsParams = {
|
|
3526
3522
|
/**
|
|
@@ -3539,6 +3535,17 @@ export type ListPaymentMethodsParams = {
|
|
|
3539
3535
|
* Only this account; all of yours when omitted.
|
|
3540
3536
|
*/
|
|
3541
3537
|
billing_account_id?: AccountIdQueryParameter;
|
|
3538
|
+
/**
|
|
3539
|
+
* Only payment methods in these statuses; omit for both. Removed payment methods are not listed. Comma-separated.
|
|
3540
|
+
* @minItems 1
|
|
3541
|
+
* @maxItems 2
|
|
3542
|
+
*/
|
|
3543
|
+
status?: ListPaymentMethodsStatusItem[];
|
|
3544
|
+
};
|
|
3545
|
+
export type ListPaymentMethodsStatusItem = (typeof ListPaymentMethodsStatusItem)[keyof typeof ListPaymentMethodsStatusItem];
|
|
3546
|
+
export declare const ListPaymentMethodsStatusItem: {
|
|
3547
|
+
readonly active: "active";
|
|
3548
|
+
readonly expired: "expired";
|
|
3542
3549
|
};
|
|
3543
3550
|
export type PreviewInvoicePaymentParams = {
|
|
3544
3551
|
/**
|
|
@@ -3567,7 +3574,12 @@ export type ListInvoicesParams = {
|
|
|
3567
3574
|
* Only this account; all of yours when omitted.
|
|
3568
3575
|
*/
|
|
3569
3576
|
billing_account_id?: AccountIdQueryParameter;
|
|
3570
|
-
|
|
3577
|
+
/**
|
|
3578
|
+
* Only invoices in these statuses; omit for every status. Comma-separated, for example `status=open,paid`.
|
|
3579
|
+
* @minItems 1
|
|
3580
|
+
* @maxItems 3
|
|
3581
|
+
*/
|
|
3582
|
+
status?: InvoiceStatus[];
|
|
3571
3583
|
/**
|
|
3572
3584
|
* Only invoices with a charge from this subscription; amounts are for the whole invoice.
|
|
3573
3585
|
*/
|
|
@@ -3614,6 +3626,18 @@ export type ListTransactionsParams = {
|
|
|
3614
3626
|
* Exclusive.
|
|
3615
3627
|
*/
|
|
3616
3628
|
to?: ToParameter;
|
|
3629
|
+
/**
|
|
3630
|
+
* Only transactions of these types; omit for every type. Comma-separated, for example `type=topup,refund`.
|
|
3631
|
+
* @minItems 1
|
|
3632
|
+
* @maxItems 5
|
|
3633
|
+
*/
|
|
3634
|
+
type?: TransactionType[];
|
|
3635
|
+
/**
|
|
3636
|
+
* Only transactions in these statuses; omit for every status. Comma-separated, for example `status=pending,failed`.
|
|
3637
|
+
* @minItems 1
|
|
3638
|
+
* @maxItems 4
|
|
3639
|
+
*/
|
|
3640
|
+
status?: TransactionStatus[];
|
|
3617
3641
|
};
|
|
3618
3642
|
export type ListAccountDiscountsParams = {
|
|
3619
3643
|
/**
|
|
@@ -3632,6 +3656,12 @@ export type ListAccountDiscountsParams = {
|
|
|
3632
3656
|
* Only this account; all of yours when omitted.
|
|
3633
3657
|
*/
|
|
3634
3658
|
billing_account_id?: AccountIdQueryParameter;
|
|
3659
|
+
/**
|
|
3660
|
+
* Only discounts in these statuses; omit for every status. Comma-separated, for example `status=scheduled,active`.
|
|
3661
|
+
* @minItems 1
|
|
3662
|
+
* @maxItems 4
|
|
3663
|
+
*/
|
|
3664
|
+
status?: DiscountStatus[];
|
|
3635
3665
|
};
|
|
3636
3666
|
export type ListCreditGrantsParams = {
|
|
3637
3667
|
/**
|
|
@@ -3650,14 +3680,12 @@ export type ListCreditGrantsParams = {
|
|
|
3650
3680
|
* Only this account; all of yours when omitted.
|
|
3651
3681
|
*/
|
|
3652
3682
|
billing_account_id?: AccountIdQueryParameter;
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
readonly expired: "expired";
|
|
3660
|
-
readonly voided: "voided";
|
|
3683
|
+
/**
|
|
3684
|
+
* Only credit grants in these statuses; omit for every status. Comma-separated, for example `status=active,depleted`.
|
|
3685
|
+
* @minItems 1
|
|
3686
|
+
* @maxItems 4
|
|
3687
|
+
*/
|
|
3688
|
+
status?: CreditGrantStatus[];
|
|
3661
3689
|
};
|
|
3662
3690
|
export type ListCreditNotesParams = {
|
|
3663
3691
|
/**
|
|
@@ -3680,6 +3708,12 @@ export type ListCreditNotesParams = {
|
|
|
3680
3708
|
* Only the notes for this invoice.
|
|
3681
3709
|
*/
|
|
3682
3710
|
invoice_id?: string;
|
|
3711
|
+
/**
|
|
3712
|
+
* Only credit notes in these statuses; omit for both. Comma-separated.
|
|
3713
|
+
* @minItems 1
|
|
3714
|
+
* @maxItems 2
|
|
3715
|
+
*/
|
|
3716
|
+
status?: CreditNoteStatus[];
|
|
3683
3717
|
};
|
|
3684
3718
|
export type ListCreditNoteItemsParams = {
|
|
3685
3719
|
/**
|
|
@@ -3720,6 +3754,12 @@ export type ListRefundsParams = {
|
|
|
3720
3754
|
* 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.
|
|
3721
3755
|
*/
|
|
3722
3756
|
order_id?: string;
|
|
3757
|
+
/**
|
|
3758
|
+
* Only refunds in these statuses; omit for every status. Comma-separated, for example `status=pending,processing`.
|
|
3759
|
+
* @minItems 1
|
|
3760
|
+
* @maxItems 4
|
|
3761
|
+
*/
|
|
3762
|
+
status?: RefundStatus[];
|
|
3723
3763
|
};
|
|
3724
3764
|
export type ListUsageChargesParams = {
|
|
3725
3765
|
/**
|
|
@@ -3782,6 +3822,12 @@ export type ListSubscriptionsParams = {
|
|
|
3782
3822
|
* @maxItems 100
|
|
3783
3823
|
*/
|
|
3784
3824
|
project_ids?: ProjectIdsQueryParameter;
|
|
3825
|
+
/**
|
|
3826
|
+
* Only subscriptions in these statuses; omit for every status. Comma-separated, for example `status=active,suspended`.
|
|
3827
|
+
* @minItems 1
|
|
3828
|
+
* @maxItems 6
|
|
3829
|
+
*/
|
|
3830
|
+
status?: SubscriptionStatus[];
|
|
3785
3831
|
};
|
|
3786
3832
|
export type ListCancellationsParams = {
|
|
3787
3833
|
/**
|
|
@@ -3805,9 +3851,11 @@ export type ListCancellationsParams = {
|
|
|
3805
3851
|
*/
|
|
3806
3852
|
subscription_id?: string;
|
|
3807
3853
|
/**
|
|
3808
|
-
* Only cancellations in
|
|
3854
|
+
* Only cancellations in these statuses; omit for every status. `open` means requested, scheduled or releasing. Comma-separated, for example `status=open,failed`.
|
|
3855
|
+
* @minItems 1
|
|
3856
|
+
* @maxItems 7
|
|
3809
3857
|
*/
|
|
3810
|
-
status?:
|
|
3858
|
+
status?: ListCancellationsStatusItem[];
|
|
3811
3859
|
/**
|
|
3812
3860
|
* 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.
|
|
3813
3861
|
* @minItems 1
|
|
@@ -3815,8 +3863,8 @@ export type ListCancellationsParams = {
|
|
|
3815
3863
|
*/
|
|
3816
3864
|
project_ids?: ProjectIdsQueryParameter;
|
|
3817
3865
|
};
|
|
3818
|
-
export type
|
|
3819
|
-
export declare const
|
|
3866
|
+
export type ListCancellationsStatusItem = (typeof ListCancellationsStatusItem)[keyof typeof ListCancellationsStatusItem];
|
|
3867
|
+
export declare const ListCancellationsStatusItem: {
|
|
3820
3868
|
readonly open: "open";
|
|
3821
3869
|
readonly requested: "requested";
|
|
3822
3870
|
readonly scheduled: "scheduled";
|
|
@@ -3860,7 +3908,12 @@ export type ListAllowancesParams = {
|
|
|
3860
3908
|
* Filter by the meter UUID.
|
|
3861
3909
|
*/
|
|
3862
3910
|
meter_id?: string;
|
|
3863
|
-
|
|
3911
|
+
/**
|
|
3912
|
+
* Only allowances in these statuses; omit for every status. Comma-separated, for example `status=active,depleted`.
|
|
3913
|
+
* @minItems 1
|
|
3914
|
+
* @maxItems 4
|
|
3915
|
+
*/
|
|
3916
|
+
status?: AllowanceStatus[];
|
|
3864
3917
|
product_id?: ProductID;
|
|
3865
3918
|
/**
|
|
3866
3919
|
* 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.
|
|
@@ -3869,13 +3922,6 @@ export type ListAllowancesParams = {
|
|
|
3869
3922
|
*/
|
|
3870
3923
|
project_ids?: ProjectIdsQueryParameter;
|
|
3871
3924
|
};
|
|
3872
|
-
export type ListAllowancesStatus = (typeof ListAllowancesStatus)[keyof typeof ListAllowancesStatus];
|
|
3873
|
-
export declare const ListAllowancesStatus: {
|
|
3874
|
-
readonly active: "active";
|
|
3875
|
-
readonly depleted: "depleted";
|
|
3876
|
-
readonly expired: "expired";
|
|
3877
|
-
readonly voided: "voided";
|
|
3878
|
-
};
|
|
3879
3925
|
export type ListCheckoutSessionsParams = {
|
|
3880
3926
|
/**
|
|
3881
3927
|
* 1-based page number. Defaults to 1.
|
|
@@ -3893,7 +3939,12 @@ export type ListCheckoutSessionsParams = {
|
|
|
3893
3939
|
* Only this account; all of yours when omitted.
|
|
3894
3940
|
*/
|
|
3895
3941
|
billing_account_id?: AccountIdQueryParameter;
|
|
3896
|
-
|
|
3942
|
+
/**
|
|
3943
|
+
* Only sessions in these statuses; omit for every status. Comma-separated, for example `status=open,expired`.
|
|
3944
|
+
* @minItems 1
|
|
3945
|
+
* @maxItems 3
|
|
3946
|
+
*/
|
|
3947
|
+
status?: CheckoutSessionStatus[];
|
|
3897
3948
|
/**
|
|
3898
3949
|
* 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.
|
|
3899
3950
|
* @minItems 1
|
|
@@ -3939,7 +3990,12 @@ export type ListOrdersParams = {
|
|
|
3939
3990
|
* Only this account; all of yours when omitted.
|
|
3940
3991
|
*/
|
|
3941
3992
|
billing_account_id?: AccountIdQueryParameter;
|
|
3942
|
-
|
|
3993
|
+
/**
|
|
3994
|
+
* Only orders in these statuses; omit for every status. Comma-separated, for example `status=pending,accepted`.
|
|
3995
|
+
* @minItems 1
|
|
3996
|
+
* @maxItems 6
|
|
3997
|
+
*/
|
|
3998
|
+
status?: OrderStatus[];
|
|
3943
3999
|
from?: FromParameter;
|
|
3944
4000
|
/**
|
|
3945
4001
|
* Exclusive.
|
|
@@ -4017,7 +4073,12 @@ export type ListFeatureGrantsParams = {
|
|
|
4017
4073
|
*/
|
|
4018
4074
|
billing_account_id?: AccountIdQueryParameter;
|
|
4019
4075
|
product_id?: ProductID;
|
|
4020
|
-
|
|
4076
|
+
/**
|
|
4077
|
+
* Only feature grants in these statuses; omit for every status. Comma-separated, for example `status=scheduled,active`.
|
|
4078
|
+
* @minItems 1
|
|
4079
|
+
* @maxItems 4
|
|
4080
|
+
*/
|
|
4081
|
+
status?: FeatureGrantStatus[];
|
|
4021
4082
|
};
|
|
4022
4083
|
export type ListPricesParams = {
|
|
4023
4084
|
/**
|
|
@@ -4168,14 +4229,12 @@ export type ListActiveResourcesParams = {
|
|
|
4168
4229
|
project_ids?: ProjectIdsQueryParameter;
|
|
4169
4230
|
meter_id?: string;
|
|
4170
4231
|
product_id?: ProductID;
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
readonly closing: "closing";
|
|
4178
|
-
readonly closed: "closed";
|
|
4232
|
+
/**
|
|
4233
|
+
* Only metering in these statuses; omit for every status. Comma-separated, for example `status=active,suspended`.
|
|
4234
|
+
* @minItems 1
|
|
4235
|
+
* @maxItems 4
|
|
4236
|
+
*/
|
|
4237
|
+
status?: ActiveResourceStatus[];
|
|
4179
4238
|
};
|
|
4180
4239
|
export type ListSpendParams = {
|
|
4181
4240
|
from: FromRequiredParameter;
|
|
@@ -4246,7 +4305,12 @@ export type ListMonthlyStatementsParams = {
|
|
|
4246
4305
|
};
|
|
4247
4306
|
export type ListStatementsParams = {
|
|
4248
4307
|
billing_account_id?: number;
|
|
4249
|
-
|
|
4308
|
+
/**
|
|
4309
|
+
* Only statements in these statuses; omit for every status. Comma-separated.
|
|
4310
|
+
* @minItems 1
|
|
4311
|
+
* @maxItems 2
|
|
4312
|
+
*/
|
|
4313
|
+
status?: StatementStatus[];
|
|
4250
4314
|
from?: string;
|
|
4251
4315
|
to?: string;
|
|
4252
4316
|
/**
|
|
@@ -175,10 +175,6 @@ export const CreditGrantStatus = {
|
|
|
175
175
|
expired: "expired",
|
|
176
176
|
voided: "voided",
|
|
177
177
|
};
|
|
178
|
-
export const CreditNoteStatus = {
|
|
179
|
-
issued: "issued",
|
|
180
|
-
void: "void",
|
|
181
|
-
};
|
|
182
178
|
export const CreditNoteReason = {
|
|
183
179
|
provisioning_failed: "provisioning_failed",
|
|
184
180
|
order_expired: "order_expired",
|
|
@@ -189,6 +185,10 @@ export const CreditNoteReason = {
|
|
|
189
185
|
usage_true_up: "usage_true_up",
|
|
190
186
|
operator: "operator",
|
|
191
187
|
};
|
|
188
|
+
export const CreditNoteStatus = {
|
|
189
|
+
issued: "issued",
|
|
190
|
+
void: "void",
|
|
191
|
+
};
|
|
192
192
|
export const RefundDestination = {
|
|
193
193
|
balance: "balance",
|
|
194
194
|
gateway: "gateway",
|
|
@@ -302,12 +302,6 @@ export const OrderItemStatus = {
|
|
|
302
302
|
failed: "failed",
|
|
303
303
|
canceled: "canceled",
|
|
304
304
|
};
|
|
305
|
-
export const DiscountStatus = {
|
|
306
|
-
scheduled: "scheduled",
|
|
307
|
-
active: "active",
|
|
308
|
-
expired: "expired",
|
|
309
|
-
voided: "voided",
|
|
310
|
-
};
|
|
311
305
|
export const DiscountType = {
|
|
312
306
|
percentage: "percentage",
|
|
313
307
|
fixed_amount: "fixed_amount",
|
|
@@ -319,6 +313,12 @@ export const DiscountFrequency = {
|
|
|
319
313
|
recurring: "recurring",
|
|
320
314
|
forever: "forever",
|
|
321
315
|
};
|
|
316
|
+
export const DiscountStatus = {
|
|
317
|
+
scheduled: "scheduled",
|
|
318
|
+
active: "active",
|
|
319
|
+
expired: "expired",
|
|
320
|
+
voided: "voided",
|
|
321
|
+
};
|
|
322
322
|
export const AllowanceCategory = {
|
|
323
323
|
paid: "paid",
|
|
324
324
|
promotional: "promotional",
|
|
@@ -412,13 +412,11 @@ export const StatementSummaryGroupBy = {
|
|
|
412
412
|
product: "product",
|
|
413
413
|
meter: "meter",
|
|
414
414
|
};
|
|
415
|
-
export const
|
|
415
|
+
export const ListPaymentMethodsStatusItem = {
|
|
416
416
|
active: "active",
|
|
417
|
-
depleted: "depleted",
|
|
418
417
|
expired: "expired",
|
|
419
|
-
voided: "voided",
|
|
420
418
|
};
|
|
421
|
-
export const
|
|
419
|
+
export const ListCancellationsStatusItem = {
|
|
422
420
|
open: "open",
|
|
423
421
|
requested: "requested",
|
|
424
422
|
scheduled: "scheduled",
|
|
@@ -427,18 +425,6 @@ export const ListCancellationsStatus = {
|
|
|
427
425
|
canceled: "canceled",
|
|
428
426
|
failed: "failed",
|
|
429
427
|
};
|
|
430
|
-
export const ListAllowancesStatus = {
|
|
431
|
-
active: "active",
|
|
432
|
-
depleted: "depleted",
|
|
433
|
-
expired: "expired",
|
|
434
|
-
voided: "voided",
|
|
435
|
-
};
|
|
436
|
-
export const ListActiveResourcesStatus = {
|
|
437
|
-
active: "active",
|
|
438
|
-
suspended: "suspended",
|
|
439
|
-
closing: "closing",
|
|
440
|
-
closed: "closed",
|
|
441
|
-
};
|
|
442
428
|
export const ListSpendGroupBy = {
|
|
443
429
|
product: "product",
|
|
444
430
|
plan: "plan",
|