@naturali/sdk 0.327.1 → 0.328.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/dist/index.cjs CHANGED
@@ -7131,26 +7131,26 @@ var Users = class {
7131
7131
  });
7132
7132
  }
7133
7133
  /**
7134
- * List the linked GitHub installations
7134
+ * List the code-host connections
7135
7135
  *
7136
- * The installations of the naturali GitHub App linked to this account, newest first. An installation leaves the list when it is uninstalled or suspended on GitHub.
7136
+ * The code hosts this account is connected to, newest first. A `github` connection is an installation of the naturali GitHub App; it leaves the list when the app is uninstalled or suspended on GitHub.
7137
7137
  *
7138
7138
  */
7139
- static listCurrentUserGithubInstallations(options) {
7139
+ static listCurrentUserCodeHostConnections(options) {
7140
7140
  return (options?.client ?? client).get({
7141
- url: "/v1/users/me/github-installations",
7141
+ url: "/v1/users/me/code-host-connections",
7142
7142
  ...options
7143
7143
  });
7144
7144
  }
7145
7145
  /**
7146
- * Link a GitHub installation
7146
+ * Connect a code host
7147
7147
  *
7148
- * Link an installation of the naturali GitHub App to this account. After installing the app, GitHub sends the browser to the app with `installation_id` and `code`; send both here. The link holds only when the GitHub user who authorized `code` can reach the installation. An installation belongs to one account at a time.
7148
+ * Connect this account to a code host with the fields the provider's callback carries. For `github`, after the naturali GitHub App is installed, GitHub sends the browser back with `installation_id` and `code`; the connection holds only when the GitHub user who authorized `code` can reach the installation. A code-host account belongs to one naturali account at a time.
7149
7149
  *
7150
7150
  */
7151
- static linkCurrentUserGithubInstallation(options) {
7151
+ static connectCurrentUserCodeHost(options) {
7152
7152
  return (options.client ?? client).post({
7153
- url: "/v1/users/me/github-installations",
7153
+ url: "/v1/users/me/code-host-connections",
7154
7154
  ...options,
7155
7155
  headers: {
7156
7156
  "Content-Type": "application/json",