@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 +8 -8
- package/dist/index.d.cts +46 -47
- package/dist/index.d.mts +46 -47
- package/dist/index.mjs +8 -8
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -7131,26 +7131,26 @@ var Users = class {
|
|
|
7131
7131
|
});
|
|
7132
7132
|
}
|
|
7133
7133
|
/**
|
|
7134
|
-
* List the
|
|
7134
|
+
* List the code-host connections
|
|
7135
7135
|
*
|
|
7136
|
-
* The
|
|
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
|
|
7139
|
+
static listCurrentUserCodeHostConnections(options) {
|
|
7140
7140
|
return (options?.client ?? client).get({
|
|
7141
|
-
url: "/v1/users/me/
|
|
7141
|
+
url: "/v1/users/me/code-host-connections",
|
|
7142
7142
|
...options
|
|
7143
7143
|
});
|
|
7144
7144
|
}
|
|
7145
7145
|
/**
|
|
7146
|
-
*
|
|
7146
|
+
* Connect a code host
|
|
7147
7147
|
*
|
|
7148
|
-
*
|
|
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
|
|
7151
|
+
static connectCurrentUserCodeHost(options) {
|
|
7152
7152
|
return (options.client ?? client).post({
|
|
7153
|
-
url: "/v1/users/me/
|
|
7153
|
+
url: "/v1/users/me/code-host-connections",
|
|
7154
7154
|
...options,
|
|
7155
7155
|
headers: {
|
|
7156
7156
|
"Content-Type": "application/json",
|