@rebilly/api 0.8.1 → 0.9.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
@@ -1,5 +1,3 @@
1
- ## 0.8.1 (2026-10-26)
1
+ ## 0.9.1 (2026-10-27)
2
2
 
3
- ### 🧱 Updated Dependencies
4
-
5
- - Updated eslint-config to 4.32.14
3
+ This was a version bump only for rebilly-api to align it with other projects, there were no code changes.
@@ -10361,7 +10361,7 @@ export type PostRoleVariables = {
10361
10361
  };
10362
10362
  export type GetSecuritySettingsResult = SecuritySettings;
10363
10363
  export type PutSecuritySettingsResult = SecuritySettings;
10364
- export type PutSecuritySettingsBody = Omit<SecuritySettings, "mfaAdoption">;
10364
+ export type PutSecuritySettingsBody = Omit<SecuritySettings, "currentIpAddress" | "mfaAdoption">;
10365
10365
  export type PutSecuritySettingsResponseHeaders = {
10366
10366
  rateLimitLimit?: number;
10367
10367
  rateLimitRemaining?: number;
@@ -497,6 +497,13 @@ export type Unauthorized = unknown & {
497
497
  */
498
498
  status?: number;
499
499
  } & BaseProblem;
500
+ /**
501
+ * Unique organization identifier.
502
+ * An organization is an entity that represents a company.
503
+ * For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
504
+ * @maxLength 50
505
+ */
506
+ export type OrganizationId = string;
500
507
  export type Forbidden = unknown & {
501
508
  /**
502
509
  * HTTP status code.
@@ -509,8 +516,15 @@ export type Forbidden = unknown & {
509
516
  * Most responses use a descriptive message, such as `Not allowed to change security settings`.
510
517
  * If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
511
518
  * If the request sets `requireMfa` to `true` and MFA verification has not been completed for the session, this value is `mfa_required_for_caller`.
519
+ * If the organization restricts access to a list of IP addresses and the request comes from an IP address that is not in the list, this value is `ip_not_allowed`.
512
520
  */
513
521
  error?: string;
522
+ /**
523
+ * ID of the organization that does not allow the IP address of the request.
524
+ * This property is present only if `error` is `ip_not_allowed`.
525
+ * The organization is the organization of the request or another organization that the request acts on.
526
+ */
527
+ organizationId?: OrganizationId;
514
528
  } & BaseProblem;
515
529
  export type NotFound = {
516
530
  /**
@@ -2072,13 +2086,6 @@ export type CustomerLifetimeRevenue = {
2072
2086
  */
2073
2087
  amountUsd?: number;
2074
2088
  };
2075
- /**
2076
- * Unique organization identifier.
2077
- * An organization is an entity that represents a company.
2078
- * For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
2079
- * @maxLength 50
2080
- */
2081
- export type OrganizationId = string;
2082
2089
  export type TaxNumber = {
2083
2090
  /**
2084
2091
  * Type of the tax number.
@@ -3970,6 +3977,20 @@ export type Invoice = {
3970
3977
  * @format double
3971
3978
  */
3972
3979
  readonly discountAmount?: number;
3980
+ /**
3981
+ * Shipping settings of the invoice.
3982
+ * The `calculator` property is `manual` when the shipping amount is provided
3983
+ * and `rebilly` when the amount is calculated from shipping rates.
3984
+ * If `calculator` is `manual` and an issued invoice is recalculated or its items change,
3985
+ * the shipping amount is not changed, even if no invoice item requires shipping.
3986
+ * If `calculator` is `manual` and no invoice item requires shipping, the shipping amount is 0 in these cases:
3987
+ *
3988
+ * - A draft invoice is issued with the [Issue an invoice](https://www.rebilly.com/catalog/all/invoices/postinvoiceissuance) operation, a renewal invoice is issued, or a scheduled draft invoice is recalculated.
3989
+ * - An order is created or previewed, a quote is created, or a `pending` order is updated.
3990
+ * This applies to the order invoice. The order keeps its shipping amount.
3991
+ *
3992
+ * To change the shipping amount of an issued invoice, use the [Upsert an invoice](https://www.rebilly.com/catalog/all/invoices/putinvoice) operation.
3993
+ */
3973
3994
  shipping?: Shipping;
3974
3995
  tax?: Taxes;
3975
3996
  /**
@@ -15196,8 +15217,14 @@ export type ApiKey = {
15196
15217
  */
15197
15218
  type?: "secret" | "publishable";
15198
15219
  /**
15199
- * Specify access control list here if creating a restricted API key.
15200
- * Send all matching permission with an empty scope to allow all permissions.
15220
+ * Permissions for this API key.
15221
+ *
15222
+ * A request is authorized only when these permissions include the permission for the operation,
15223
+ * and the associated user has that permission.
15224
+ * If these permissions include `*`, each operation is limited to the permissions of the associated user.
15225
+ * If the associated user loses a permission and these permissions still include that permission, a request that requires that permission is not authorized.
15226
+ * If the associated user gains a permission, a request that requires that permission is authorized only when these permissions include that permission or `*`.
15227
+ * For more information, see [Ownership of an API key](https://www.rebilly.com/docs/dev-docs/api-keys/#ownership-of-an-api-key).
15201
15228
  */
15202
15229
  acl?: Acl;
15203
15230
  allowedIps?: AllowedIps;
@@ -25419,6 +25446,22 @@ export type SecuritySettings = {
25419
25446
  * Specifies if users must pass multi-factor authentication (MFA) to use this organization in the Rebilly UI.
25420
25447
  */
25421
25448
  requireMfa: boolean;
25449
+ /**
25450
+ * List of IP addresses and Classless Inter-Domain Routing (CIDR) ranges from which users can use this organization in the Rebilly UI.
25451
+ * This setting does not apply to API keys.
25452
+ * This setting applies to the current environment only: live and sandbox are configured separately.
25453
+ * If an IP address has no prefix length, only that address is allowed.
25454
+ * Wildcards, such as `198.51.*.*`, are not accepted.
25455
+ * To remove the restriction, set this value to `null` or an empty array.
25456
+ * To retain the current list, omit this property.
25457
+ */
25458
+ allowedIps?: AllowedIps;
25459
+ /**
25460
+ * IP address of the client that sent the request.
25461
+ * This value is `null` if the IP address of the client cannot be determined.
25462
+ * @format ip
25463
+ */
25464
+ readonly currentIpAddress?: string | null;
25422
25465
  /**
25423
25466
  * Number of users who have set up multi-factor authentication (MFA), excluding Rebilly staff.
25424
25467
  * Pending invitations are counted as users without MFA.
@@ -428,6 +428,13 @@ export type Unauthorized = unknown & {
428
428
  */
429
429
  status?: number;
430
430
  } & BaseProblem;
431
+ /**
432
+ * Unique organization identifier.
433
+ * An organization is an entity that represents a company.
434
+ * For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
435
+ * @maxLength 50
436
+ */
437
+ export type OrganizationId = string;
431
438
  export type Forbidden = unknown & {
432
439
  /**
433
440
  * HTTP status code.
@@ -440,8 +447,15 @@ export type Forbidden = unknown & {
440
447
  * Most responses use a descriptive message, such as `Not allowed to change security settings`.
441
448
  * If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
442
449
  * If the request sets `requireMfa` to `true` and MFA verification has not been completed for the session, this value is `mfa_required_for_caller`.
450
+ * If the organization restricts access to a list of IP addresses and the request comes from an IP address that is not in the list, this value is `ip_not_allowed`.
443
451
  */
444
452
  error?: string;
453
+ /**
454
+ * ID of the organization that does not allow the IP address of the request.
455
+ * This property is present only if `error` is `ip_not_allowed`.
456
+ * The organization is the organization of the request or another organization that the request acts on.
457
+ */
458
+ organizationId?: OrganizationId;
445
459
  } & BaseProblem;
446
460
  /**
447
461
  * Invalid field details.
@@ -7349,13 +7363,6 @@ export type PostSubscription = {
7349
7363
  */
7350
7364
  deliveryAddress?: ContactObject | null;
7351
7365
  };
7352
- /**
7353
- * Unique organization identifier.
7354
- * An organization is an entity that represents a company.
7355
- * For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
7356
- * @maxLength 50
7357
- */
7358
- export type OrganizationId = string;
7359
7366
  export type Website = {
7360
7367
  readonly id?: WebsiteId;
7361
7368
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/api",
3
- "version": "0.8.1",
3
+ "version": "0.9.1",
4
4
  "description": "Rebilly Core and Storefront API clients generated from the OpenAPI definitions",
5
5
  "type": "module",
6
6
  "sideEffects": false,