## Unreleased

## 0.23.4

* feat(organizations): add `bulkCreateInvitations()` method to invite several people to join an organization at once
* feat(organizations): add `limits` to the `Organization` model

## 0.23.3

* feat(organizations): add `createInvitation()` method to invite a person to join an organization
* feat(organizations): add `show()` method to get an organization by ID or slug

## 0.23.2

* feat(organizations): add `invitations()` method to list the invitations of an organization
* feat(organizations): add `destroyInvitation()` method to cancel or delete an invitation

## 0.23.1

* feat(organizations): add `members()` method to list the members of an organization
* feat(organizations): add `destroy()` method to delete an organization

## 0.23.0

* feat(app-firewall-rules) Add support for application firewall rules

## 0.22.3

* feat(organizations): Enrich Organization events types (#620)

## 0.22.2

* feat(organizations) Add organization_id to project create/update payloads (PR #618)

## 0.22.1

* feat(organizations): Add organization IDs to resources (PR #611)
* feat(e-invoicing): add `first_name` `siren` and `profile_type` fields to `BillingProfile`
* feat(organizations): Add organization events endpoint (PR #614)

## 0.22.0

* feat(organizations): add `can()` method to check whether the current user is authorized to perform an action.

## 0.21.1

* feat(organizations): add optional `organization_id` query parameters to apps, projects, collaborators, and databases list methods.

## 0.21.0

* feat(organizations): add `create()` method to create a new organization for the current user.
* feat(organizations): add `update()` method to rename an organization.

## 0.20.0

* feat(organizations): add `Organizations` API client with `all()` method to list organizations the current user is a member of
* fix(scm-integrations)!: rename exported `Organization`/`OrganizationsMeta` types to `SCMOrganization`/`SCMOrganizationsMeta` to avoid a naming collision with the new Organizations feature (BREAKING CHANGE)

### Migration guide

If you were importing `Organization` or `OrganizationsMeta` types from the SCM integrations module, update your imports:

```diff
- import { Organization, OrganizationsMeta } from "scalingo/SCMIntegrations";
+ import { SCMOrganization, SCMOrganizationsMeta } from "scalingo/SCMIntegrations";
```

## 0.19.2

* feat(databases): Add post-provisioning configuration on databases dr

## 0.19.1

* feat(misc): Add operations type and dbFeatureIs() to databases.ts

## 0.19.0

* feat(container-sizes): Add appId to container `availableSizes` (PR #562)

## 0.18.9

* feat(databases): fix action empty params

## 0.18.8

* feat(databases): add backup restoration show route

## 0.18.7

* feat: add database feature methods (`apiDatabaseFeatureEnable`, `apiDatabaseFeatureDisable`)

## 0.18.6
* fix: make `Databases.backups().restore()` parse raw API payload (no `backup_restoration` wrapper) to match `database-api-service` restore response
* feat(databases): add `apiShowPlan(planId, type)` to fetch plan details from `GET /api/plans/:id`

## 0.18.5

* feat: add `apiPitrRestore()` method to trigger a PITR for addon

## 0.18.4

* feat: extend `Databases.backups()` client with `show()`, `archiveUrl()`, and `restore()`
* feat: add DBaaS firewall rules support in `Databases` client
* feat: add database users methods (`apiDatabaseUsers`, `apiDatabaseUserCreate`, `apiDatabaseUserDelete`, `apiDatabaseUserResetPassword`)

## 0.18.3

* feat: add `apiInstanceMetrics()` method to fetch per-instance time-series metrics

## 0.18.2

* feat: add `apiOperationShow()` method to fetch a single database operation by ID

## 0.18.1

* feat: add `Backups` all() & create(), `Database` backups() and `Backup` model

## 0.18.0

* feat: Add database Ca Certificate download URL by @aurelien-reeves-scalingo in https://github.com/Scalingo/scalingo.js/pull/541

## 0.17.17

*feat: add apiPing, apiUpgrade, and apiAction methods to Databases class with corresponding tests

## 0.17.16

* feat: add apiUpdate method to update database configuration via dbaas API
* feat: add API methods for database plan, metrics, health, instances status, lag, logs, and logs archives

## 0.17.15

* chore(deps-dev): bump the development group with 7 updates by @dependabot[bot] in https://github.com/Scalingo/scalingo.js/pull/532
* chore(deps): bump picomatch from 2.3.1 to 2.3.2 by @dependabot[bot] in https://github.com/Scalingo/scalingo.js/pull/534
* chore(deps): bump the production-minor group across 1 directory with 2 updates by @dependabot[bot] in https://github.com/Scalingo/scalingo.js/pull/531
* feat: Add database maintenances by @aurelien-reeves-scalingo in https://github.com/Scalingo/scalingo.js/pull/536

## 0.17.14

* feat: add `listDatabaseTypes()` method (`GET /api/database_types`)
* feat: add `showDatabaseType()` method (`GET /api/database_types/:id`)
* feat: add `showDatabaseTypeVersion()` method (`GET /api/database_type_versions/:id`)

## 0.17.13

* feat: add DatabaseFeature interface and update features type in ApiDatabase

## 0.17.12

* feat: add `apiShow()` method for dbaas databases endpoint (`GET /api/databases/{addonId}`)

## 0.17.11

* improv: Enable trusted npm publishing

## 0.17.0

* feat: add `ProjectTransferInvitation` interface
* feat: add project transfer invitations endpoints (index, show, create, accept, decline, cancel)
* feat: add `in_free_trial` to `AppOwner` interface
* feat: add events endpoint on `Project`
* chore: bump dependencies

## 0.16.1

* feat: add `databases` to `Databases` index

## 0.16

* feat: add `properties` to `Plan` interface

## 0.15.6

* feat: extend show endpoint for databases

## 0.15.5

* feat: add `to_be_discontinued` to `AddonPlan` interface
* feat: add `trial_available` to `AddonPlan` interface
* feat: add show endpoint for databases

## 0.15.4

* feat: add `updated_at` to `Addon` interface
* feat: add `last_event` to `App` interface
* chore: bump dependencies

## 0.15.3

* feat: add app get `private_network_domain_names` endpoint
* chore: bump dependencies

## 0.15.2

* feat: add project deletion

## 0.15.1

* feat: support new technology/plan params for database
* chore: bump dependencies

## 0.15.0

* feat: Enhance `Collaborator` interfaces (https://github.com/Scalingo/scalingo.js/pull/487)
  Note (breaking change): `CollaboratorInvitation` has been removed in the process.

## 0.14.8

* fix: rename `database_name` into `name` in `Database` `CreateParams`

## 0.14.7

* feat: add addon to `DatabaseAppDashboard`

## 0.14.6

* feat: update `Database` interface to match the new API index
* chore: bump dependencies

## 0.14.5

* feat: support for `Database` interface
* feat: add index and create endpoints for databases

## 0.14.4

* feat: add `project_id` to `App` create params

## 0.14.3

* feat: add `project_id` and `project_name` to `Event` interface
* chore: bump dependencies

## 0.14.2

* feat: add `project_id` to `App` update params

## 0.14.1

* feat: add `flags` to `Project` interface
* feat: accept `Collaborator payload` in `Collaborators` invitation endpoint

## 0.14.0

* feat: support for `Project` model
* feat: add `AppProject` to `App` interface
* feat: add projects endpoints
* feat: add collaborators.update endpoint

## 0.13.1

* feat: add `is_limited` to `Collaborator` interface

## 0.13.0

* chore: bump dependencies

## 0.12.0

* feat: include `attempt` to `TwoFactorAuth` delete api call

## 0.11.0

* feat: add the `role` field in `User` model
* feat: add the users.roles endpoint

## 0.10.0

* chore: bump dependencies
* feat(scm_organizations): add pagination support

## 0.9.0

* chore: bump dependencies
* chore: linter violations following update
* versions: dropping node 14 and 16, no longer maintained. Adds 20.x and 22.x to test matrix
* tooling: switch from yarn to npm
* feat: add the `private_networks_ids` field to the model
* feat: added collaborators.all endpoint

## 0.8.2

* chore: bump esbuild from 0.15.6 to 0.17.5. Might be changes in the output
* chore: bump axios from 0.x to 1.3.x. Might be breaking in some cases
* chore: bump dependencies
* feat(stacks): deployments have stack base image property
* feat(accounting): add in billing profile a field for a custom text on invoices
* feat(review-app): scm repo links have a fork allowed property
* feat(review-app): pull requests contains information about source repository

## 0.8.1

* feat: stacks API
* chore: bump dependencies

## 0.8.0

* chore: bump dependencies
* feat/breaking: contracts API has been changed. It is expected to be stable now.

## 0.7.0

* chore: bump dependencies
* feat(data consent): update modelisation and signature calls (preview endpoint)

## 0.6.4

* improv: update HDS Contact signature/model

## 0.6.3

* chore: bump dependencies
* feature: support HDS endpoints and fields

## 0.6.2

* feature: support for data access consents

## 0.6.1

* feature: support for contracts and agreements

## 0.6.0

* feature: support for regions endpoint
* breaking change: `Environment.bulkDestroy` returns an array of ids instead of an object (with an array of ids)
* feature: list processes, run and stop one-off containers
* Improved type definitions
* Bump dependencies (dev and runtime)
* drop support for node 12.x, add 18.x to test matrix

## 0.5.2

* Fix broken build to the user agent. No longer contains the version for now.

## 0.5.1 (broken)

* New endpoint: cron tasks
* User Agent now contains client version
* Slight change in typings

## 0.5.0

* Bump dependencies versions (axios, ws)
* Bump devDependencies (typescript, eslint, test utils)
* Remove rollup in favor of esbuild
* Update the default endpoint of the regional API
* Change the script names/organisation

## 0.4.0

* App#transfer: based in the ID rather than the user email
* types: update user

## 0.3.12

* Log archives: support for pagination

## 0.3.11

* Containers: scaling can be a no-op (no operations return)

## 0.3.10

* Typo

## 0.3.9

* Deployments: create from archive

## 0.3.8

* Domains: updated typings

## 0.3.7

* Addons: resume endpoint

## 0.3.6

* Users: account deletion confirmation

## 0.3.5

* Types: improve Alerts types
* Addons: allow fetching addon providers with authentication

## 0.3.4

* User preferences: add `logs_font_size` and `theme` fields

## 0.3.3

* Events: add `find` endpoint to get a given event
* Domains: add ssl_status field

## 0.3.2

* Types: add user preferences
* Add support for audit logs

## 0.3.1

* An incorrect build was uploaded for 0.3.0. This one replaces it.

## 0.3.0

* More alerts endpoints
* Deployments: purge cache endpoint
* Internal: bump dependencies

## 0.2.9

* Type: Regional/apps

## 0.2.8

* Bugfix: Forgot to add autoscalers entrypoint

## 0.2.7

* Bugfix: SCM repo link missing field in type

## 0.2.6

* Bugfix: wrong import path

## 0.2.5

* New: SCM Repo links : get review apps for a repo link. Also improved typings.

## 0.2.4

* Types: update Addon

## 0.2.3

* New: autoscalers endpoint

## 0.2.2

* Improv: user typings, missing deployment status

## 0.2.1

* Bugfix: Alerts endpoint was not added to the main client

## 0.2.0

* Chore: upgrade typescript/tsdoc
* Chore: upgrade linter ecosystem & styleguide
* Breaking: move params types to src/params
* Breaking: change signature of Apps#create, Addons#create
* Breaking: compile destination is now `lib`
* Breaking: move models (types and consts) to src/models
* Breaking: Log archive response has changed
* Users: stop free trial
* New: App alerts endpoint
* New: get repo branches for a SCM integration

## 0.1.4

* Users: request account deletion
* Deployments: new status "queued"

## 0.1.3

* Tooling: bump `dependencies`, typescript & typedoc
* Improv: Better deployment listener
* Fix: Misuse of promise typings (b8ad8f4, e9dd910)
* Fix: Wront typing for deployments#for (1654c9c)
* New: deployment status constants (0032a7c)
* New: App status field + status constants (ac33eef)
