@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.mjs
CHANGED
|
@@ -7130,26 +7130,26 @@ var Users = class {
|
|
|
7130
7130
|
});
|
|
7131
7131
|
}
|
|
7132
7132
|
/**
|
|
7133
|
-
* List the
|
|
7133
|
+
* List the code-host connections
|
|
7134
7134
|
*
|
|
7135
|
-
* The
|
|
7135
|
+
* 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.
|
|
7136
7136
|
*
|
|
7137
7137
|
*/
|
|
7138
|
-
static
|
|
7138
|
+
static listCurrentUserCodeHostConnections(options) {
|
|
7139
7139
|
return (options?.client ?? client).get({
|
|
7140
|
-
url: "/v1/users/me/
|
|
7140
|
+
url: "/v1/users/me/code-host-connections",
|
|
7141
7141
|
...options
|
|
7142
7142
|
});
|
|
7143
7143
|
}
|
|
7144
7144
|
/**
|
|
7145
|
-
*
|
|
7145
|
+
* Connect a code host
|
|
7146
7146
|
*
|
|
7147
|
-
*
|
|
7147
|
+
* 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.
|
|
7148
7148
|
*
|
|
7149
7149
|
*/
|
|
7150
|
-
static
|
|
7150
|
+
static connectCurrentUserCodeHost(options) {
|
|
7151
7151
|
return (options.client ?? client).post({
|
|
7152
|
-
url: "/v1/users/me/
|
|
7152
|
+
url: "/v1/users/me/code-host-connections",
|
|
7153
7153
|
...options,
|
|
7154
7154
|
headers: {
|
|
7155
7155
|
"Content-Type": "application/json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.328.1",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.
|
|
41
|
+
"@naturali/api": "0.328.1",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|