@rebilly/api 0.18.3 → 0.19.1
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/CHANGELOG.md
CHANGED
package/dist/core-client.d.ts
CHANGED
|
@@ -8832,7 +8832,7 @@ export type PutRolePath = {
|
|
|
8832
8832
|
*/
|
|
8833
8833
|
id: string;
|
|
8834
8834
|
};
|
|
8835
|
-
export type PutRoleBody = Omit<Role, "id" | "seniorIds" | "usersCount" | "_links" | "_embedded">;
|
|
8835
|
+
export type PutRoleBody = Omit<Role, "id" | "computedAllowedIps" | "seniorIds" | "usersCount" | "_links" | "_embedded">;
|
|
8836
8836
|
export type PutRoleResponseHeaders = {
|
|
8837
8837
|
rateLimitLimit?: number;
|
|
8838
8838
|
rateLimitRemaining?: number;
|
|
@@ -8942,7 +8942,7 @@ export type PutUserPath = {
|
|
|
8942
8942
|
*/
|
|
8943
8943
|
id: string;
|
|
8944
8944
|
};
|
|
8945
|
-
export type PutUserBody = Omit<User, "id" | "computedPermissions" | "loginTime" | "reportingCurrency" | "availableCurrencies" | "status" | "mfaEnabled">;
|
|
8945
|
+
export type PutUserBody = Omit<User, "id" | "computedPermissions" | "loginTime" | "reportingCurrency" | "availableCurrencies" | "status" | "computedAllowedIps" | "mfaEnabled">;
|
|
8946
8946
|
export type PutUserResponseHeaders = {
|
|
8947
8947
|
rateLimitLimit?: number;
|
|
8948
8948
|
rateLimitRemaining?: number;
|
|
@@ -9797,7 +9797,7 @@ export type GetCustomDomainCollectionVariables = {
|
|
|
9797
9797
|
query?: GetCustomDomainCollectionQuery;
|
|
9798
9798
|
};
|
|
9799
9799
|
export type PostCustomDomainResult = CustomDomain;
|
|
9800
|
-
export type PostCustomDomainBody = Omit<CustomDomain, "id" | "isVerified">;
|
|
9800
|
+
export type PostCustomDomainBody = Omit<CustomDomain, "id" | "isVerified" | "verificationFailure">;
|
|
9801
9801
|
export type PostCustomDomainResponseHeaders = {
|
|
9802
9802
|
location?: string;
|
|
9803
9803
|
rateLimitLimit?: number;
|
|
@@ -10351,7 +10351,7 @@ export type GetRoleCollectionVariables = {
|
|
|
10351
10351
|
query?: GetRoleCollectionQuery;
|
|
10352
10352
|
};
|
|
10353
10353
|
export type PostRoleResult = Role;
|
|
10354
|
-
export type PostRoleBody = Omit<Role, "id" | "seniorIds" | "usersCount" | "_links" | "_embedded">;
|
|
10354
|
+
export type PostRoleBody = Omit<Role, "id" | "computedAllowedIps" | "seniorIds" | "usersCount" | "_links" | "_embedded">;
|
|
10355
10355
|
export type PostRoleResponseHeaders = {
|
|
10356
10356
|
location?: string;
|
|
10357
10357
|
rateLimitLimit?: number;
|
|
@@ -10584,7 +10584,7 @@ export type GetUserCollectionVariables = {
|
|
|
10584
10584
|
query?: GetUserCollectionQuery;
|
|
10585
10585
|
};
|
|
10586
10586
|
export type PostUserResult = User;
|
|
10587
|
-
export type PostUserBody = Omit<User, "id" | "computedPermissions" | "loginTime" | "reportingCurrency" | "availableCurrencies" | "status" | "mfaEnabled">;
|
|
10587
|
+
export type PostUserBody = Omit<User, "id" | "computedPermissions" | "loginTime" | "reportingCurrency" | "availableCurrencies" | "status" | "computedAllowedIps" | "mfaEnabled">;
|
|
10588
10588
|
export type PostUserResponseHeaders = {
|
|
10589
10589
|
location?: string;
|
|
10590
10590
|
rateLimitLimit?: number;
|
|
@@ -2699,6 +2699,8 @@ export type File = {
|
|
|
2699
2699
|
* Specifies if the file is available publicly without authentication.
|
|
2700
2700
|
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
2701
2701
|
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
2702
|
+
* If the organization has a verified media domain with no verification failure, the `cdn` link uses that domain.
|
|
2703
|
+
* For more information, see [Configure a custom domain](https://www.rebilly.com/docs/settings/organizations-and-websites/#configure-a-custom-domain).
|
|
2702
2704
|
*/
|
|
2703
2705
|
isPublic?: boolean;
|
|
2704
2706
|
/**
|
|
@@ -2724,6 +2726,8 @@ export type FileCreateFromInline = {
|
|
|
2724
2726
|
* Specifies if the file is available publicly without authentication.
|
|
2725
2727
|
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
2726
2728
|
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
2729
|
+
* If the organization has a verified media domain with no verification failure, the `cdn` link uses that domain.
|
|
2730
|
+
* For more information, see [Configure a custom domain](https://www.rebilly.com/docs/settings/organizations-and-websites/#configure-a-custom-domain).
|
|
2727
2731
|
*/
|
|
2728
2732
|
isPublic?: boolean;
|
|
2729
2733
|
/**
|
|
@@ -2754,6 +2758,8 @@ export type FileCreateFromUrl = {
|
|
|
2754
2758
|
* Specifies if the file is available publicly without authentication.
|
|
2755
2759
|
* If this value is `true`, the `permalink` and `cdn` links in the `_links` section contain the public URLs.
|
|
2756
2760
|
* The `cdn` link is served from a cache and accepts the `imageSize` query parameter for images.
|
|
2761
|
+
* If the organization has a verified media domain with no verification failure, the `cdn` link uses that domain.
|
|
2762
|
+
* For more information, see [Configure a custom domain](https://www.rebilly.com/docs/settings/organizations-and-websites/#configure-a-custom-domain).
|
|
2757
2763
|
*/
|
|
2758
2764
|
isPublic?: boolean;
|
|
2759
2765
|
/**
|
|
@@ -8027,10 +8033,12 @@ export type UsageLimits = {
|
|
|
8027
8033
|
* For example, to notify the customer that their usage is near the hard limit of their metered billing plan.
|
|
8028
8034
|
* This notification informs the customer so that they can upgrade their plan before the hard limit is reached.
|
|
8029
8035
|
* When metered usage equals or exceeds the configured soft limit, the `soft-usage-limit-reached` event is triggered.
|
|
8036
|
+
*
|
|
8030
8037
|
* The quantity limit applies to the larger of the reported and billed quantity.
|
|
8031
8038
|
* If a minimum billable quantity results in a billed quantity that is higher than the reported quantity, the billed quantity applies to the limit.
|
|
8032
8039
|
* If a maximum billable quantity results in a billed quantity that is lower than the reported quantity, the reported quantity applies to the limit.
|
|
8033
8040
|
* The amount limit applies to the billed amount.
|
|
8041
|
+
*
|
|
8034
8042
|
* To notify the customer, a webhook and notification can be configured for this event.
|
|
8035
8043
|
* This field is useful for accounting and customer success purposes.
|
|
8036
8044
|
* The usage of metered billing plans can still be reported if the soft limit is reached.
|
|
@@ -8054,6 +8062,7 @@ export type UsageLimits = {
|
|
|
8054
8062
|
* When a soft limit is reached,
|
|
8055
8063
|
* a customer may receive a notification
|
|
8056
8064
|
* but the service can still be provided up to the hard limit value so that the customer can upgrade their plan.
|
|
8065
|
+
*
|
|
8057
8066
|
* When the reported usage reaches the configured limit,
|
|
8058
8067
|
* a specific event is triggered.
|
|
8059
8068
|
* To notify the customer in the merchant system,
|
|
@@ -8062,6 +8071,7 @@ export type UsageLimits = {
|
|
|
8062
8071
|
* When the total usage reaches the hard limit quantity,
|
|
8063
8072
|
* or amount values,
|
|
8064
8073
|
* metered billing plan usages can no longer be reported.
|
|
8074
|
+
*
|
|
8065
8075
|
* Plans with a minimum quantity, fixed fee, or flat stairstep bracket set a minimum billable quantity and amount.
|
|
8066
8076
|
* A `quantity` value below the minimum billable quantity is invalid.
|
|
8067
8077
|
* An `amount` value below the minimum billable amount is invalid.
|
|
@@ -14998,6 +15008,7 @@ export type CheckoutForm = {
|
|
|
14998
15008
|
websiteId: WebsiteId;
|
|
14999
15009
|
/**
|
|
15000
15010
|
* Custom domain for the checkout form.
|
|
15011
|
+
* Only a custom domain with the `purpose` field set to `hosted-pages` is accepted.
|
|
15001
15012
|
* @maxLength 255
|
|
15002
15013
|
*/
|
|
15003
15014
|
customDomain?: string | null;
|
|
@@ -15857,6 +15868,7 @@ export type BillingPortal = {
|
|
|
15857
15868
|
/**
|
|
15858
15869
|
* Custom domain for the billing portal.
|
|
15859
15870
|
* The default domain is: `portal.secure-payments.app`.
|
|
15871
|
+
* Only a custom domain with the `purpose` field set to `hosted-pages` is accepted.
|
|
15860
15872
|
* @maxLength 255
|
|
15861
15873
|
*/
|
|
15862
15874
|
customDomain?: string | null;
|
|
@@ -16914,10 +16926,24 @@ export type CustomDomain = {
|
|
|
16914
16926
|
* @maxLength 255
|
|
16915
16927
|
*/
|
|
16916
16928
|
domain: string;
|
|
16929
|
+
/**
|
|
16930
|
+
* Purpose of the custom domain.
|
|
16931
|
+
* Use `hosted-pages` for hosted pages, such as billing portals and checkout forms,
|
|
16932
|
+
* and `media` for the public files of the organization.
|
|
16933
|
+
* Each organization has at most one custom domain with the `purpose` field set to `media`.
|
|
16934
|
+
*/
|
|
16935
|
+
purpose?: "hosted-pages" | "media";
|
|
16917
16936
|
/**
|
|
16918
16937
|
* True if the domain is verified by Rebilly.
|
|
16919
16938
|
*/
|
|
16920
16939
|
readonly isVerified?: boolean;
|
|
16940
|
+
/**
|
|
16941
|
+
* Reason why the media domain cannot be verified,
|
|
16942
|
+
* or why a verified media domain fails its hourly check.
|
|
16943
|
+
* A verified media domain keeps `isVerified` set to `true` while it fails the check.
|
|
16944
|
+
* This value is `null` if verification is pending, or if the custom domain has no failure.
|
|
16945
|
+
*/
|
|
16946
|
+
readonly verificationFailure?: ("certificate-failed" | "hostname-taken" | "cname-missing") | null;
|
|
16921
16947
|
createdTime?: CreatedTime;
|
|
16922
16948
|
updatedTime?: UpdatedTime;
|
|
16923
16949
|
_links?: SelfLink;
|
|
@@ -25692,6 +25718,11 @@ export type Role = {
|
|
|
25692
25718
|
description?: string | null;
|
|
25693
25719
|
acl: Acl;
|
|
25694
25720
|
allowedIps?: AllowedIps;
|
|
25721
|
+
/**
|
|
25722
|
+
* IP addresses specified in `allowedIps` for this role and any roles included in it.
|
|
25723
|
+
* This value is `null` if no allowed IP addresses are configured for any of these roles.
|
|
25724
|
+
*/
|
|
25725
|
+
readonly computedAllowedIps?: string[] | null;
|
|
25695
25726
|
/**
|
|
25696
25727
|
* List of role IDs where this role is used.
|
|
25697
25728
|
* For example, a role called `user` may be used in the `admin` and `manager` roles.
|
|
@@ -26136,6 +26167,14 @@ export type User = {
|
|
|
26136
26167
|
*/
|
|
26137
26168
|
roleIds?: string[];
|
|
26138
26169
|
allowedIps?: AllowedIps;
|
|
26170
|
+
/**
|
|
26171
|
+
* IP addresses specified in `allowedIps` for the user,
|
|
26172
|
+
* the roles assigned to the user,
|
|
26173
|
+
* and any roles included in those roles.
|
|
26174
|
+
* This value is `null` if no allowed IP addresses are configured for any of them.
|
|
26175
|
+
* This value is also `null` when a Rebilly admin retrieves their own user.
|
|
26176
|
+
*/
|
|
26177
|
+
readonly computedAllowedIps?: string[] | null;
|
|
26139
26178
|
/**
|
|
26140
26179
|
* Specifies if the user has multi-factor authentication (MFA) set up.
|
|
26141
26180
|
* This value is present only in responses from the [Retrieve a list of users](https://www.rebilly.com/catalog/all/users/getusercollection) operation
|
|
@@ -625,10 +625,12 @@ export type StorefrontPatchOrderBody = {
|
|
|
625
625
|
* For example, to notify the customer that their usage is near the hard limit of their metered billing plan.
|
|
626
626
|
* This notification informs the customer so that they can upgrade their plan before the hard limit is reached.
|
|
627
627
|
* When metered usage equals or exceeds the configured soft limit, the `soft-usage-limit-reached` event is triggered.
|
|
628
|
+
*
|
|
628
629
|
* The quantity limit applies to the larger of the reported and billed quantity.
|
|
629
630
|
* If a minimum billable quantity results in a billed quantity that is higher than the reported quantity, the billed quantity applies to the limit.
|
|
630
631
|
* If a maximum billable quantity results in a billed quantity that is lower than the reported quantity, the reported quantity applies to the limit.
|
|
631
632
|
* The amount limit applies to the billed amount.
|
|
633
|
+
*
|
|
632
634
|
* To notify the customer, a webhook and notification can be configured for this event.
|
|
633
635
|
* This field is useful for accounting and customer success purposes.
|
|
634
636
|
* The usage of metered billing plans can still be reported if the soft limit is reached.
|
|
@@ -4416,10 +4416,12 @@ export type UsageLimits = {
|
|
|
4416
4416
|
* For example, to notify the customer that their usage is near the hard limit of their metered billing plan.
|
|
4417
4417
|
* This notification informs the customer so that they can upgrade their plan before the hard limit is reached.
|
|
4418
4418
|
* When metered usage equals or exceeds the configured soft limit, the `soft-usage-limit-reached` event is triggered.
|
|
4419
|
+
*
|
|
4419
4420
|
* The quantity limit applies to the larger of the reported and billed quantity.
|
|
4420
4421
|
* If a minimum billable quantity results in a billed quantity that is higher than the reported quantity, the billed quantity applies to the limit.
|
|
4421
4422
|
* If a maximum billable quantity results in a billed quantity that is lower than the reported quantity, the reported quantity applies to the limit.
|
|
4422
4423
|
* The amount limit applies to the billed amount.
|
|
4424
|
+
*
|
|
4423
4425
|
* To notify the customer, a webhook and notification can be configured for this event.
|
|
4424
4426
|
* This field is useful for accounting and customer success purposes.
|
|
4425
4427
|
* The usage of metered billing plans can still be reported if the soft limit is reached.
|
|
@@ -4443,6 +4445,7 @@ export type UsageLimits = {
|
|
|
4443
4445
|
* When a soft limit is reached,
|
|
4444
4446
|
* a customer may receive a notification
|
|
4445
4447
|
* but the service can still be provided up to the hard limit value so that the customer can upgrade their plan.
|
|
4448
|
+
*
|
|
4446
4449
|
* When the reported usage reaches the configured limit,
|
|
4447
4450
|
* a specific event is triggered.
|
|
4448
4451
|
* To notify the customer in the merchant system,
|
|
@@ -4451,6 +4454,7 @@ export type UsageLimits = {
|
|
|
4451
4454
|
* When the total usage reaches the hard limit quantity,
|
|
4452
4455
|
* or amount values,
|
|
4453
4456
|
* metered billing plan usages can no longer be reported.
|
|
4457
|
+
*
|
|
4454
4458
|
* Plans with a minimum quantity, fixed fee, or flat stairstep bracket set a minimum billable quantity and amount.
|
|
4455
4459
|
* A `quantity` value below the minimum billable quantity is invalid.
|
|
4456
4460
|
* An `amount` value below the minimum billable amount is invalid.
|
|
@@ -7340,10 +7344,12 @@ export type PostSubscription = {
|
|
|
7340
7344
|
* For example, to notify the customer that their usage is near the hard limit of their metered billing plan.
|
|
7341
7345
|
* This notification informs the customer so that they can upgrade their plan before the hard limit is reached.
|
|
7342
7346
|
* When metered usage equals or exceeds the configured soft limit, the `soft-usage-limit-reached` event is triggered.
|
|
7347
|
+
*
|
|
7343
7348
|
* The quantity limit applies to the larger of the reported and billed quantity.
|
|
7344
7349
|
* If a minimum billable quantity results in a billed quantity that is higher than the reported quantity, the billed quantity applies to the limit.
|
|
7345
7350
|
* If a maximum billable quantity results in a billed quantity that is lower than the reported quantity, the reported quantity applies to the limit.
|
|
7346
7351
|
* The amount limit applies to the billed amount.
|
|
7352
|
+
*
|
|
7347
7353
|
* To notify the customer, a webhook and notification can be configured for this event.
|
|
7348
7354
|
* This field is useful for accounting and customer success purposes.
|
|
7349
7355
|
* The usage of metered billing plans can still be reported if the soft limit is reached.
|