@naturali/cli 0.174.0 → 0.176.0
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.mjs +35 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "0.
|
|
20
|
+
var version = "0.176.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1852,6 +1852,22 @@ var Auth = class {
|
|
|
1852
1852
|
});
|
|
1853
1853
|
}
|
|
1854
1854
|
/**
|
|
1855
|
+
* Sign in with Google
|
|
1856
|
+
*
|
|
1857
|
+
* Exchanges a Google ID token, issued to this deployment's web client, for a session. The account is the one for the token's address: an address that signed in with an emailed code reaches the same account, and a new address gets one. Google must have verified the address.
|
|
1858
|
+
*
|
|
1859
|
+
*/
|
|
1860
|
+
static signInWithGoogle(options) {
|
|
1861
|
+
return (options.client ?? client).post({
|
|
1862
|
+
url: "/v1/auth/google",
|
|
1863
|
+
...options,
|
|
1864
|
+
headers: {
|
|
1865
|
+
"Content-Type": "application/json",
|
|
1866
|
+
...options.headers
|
|
1867
|
+
}
|
|
1868
|
+
});
|
|
1869
|
+
}
|
|
1870
|
+
/**
|
|
1855
1871
|
* Refresh a session
|
|
1856
1872
|
*
|
|
1857
1873
|
* Exchanges a valid refresh token for a new access JWT and a rotated refresh token, taken from the body or from the `refresh_token` cookie set at sign-in — a browser sends an empty body and the cookie carries the credential. Refresh tokens are single-use; presenting a previously-rotated token is treated as reuse and revokes the whole session family (createRefreshRotation reuse detection), except within a few seconds of the rotation, where it is treated as two tabs racing on one cookie and rotated again.
|
|
@@ -9668,6 +9684,24 @@ const routes = {
|
|
|
9668
9684
|
"in": "body"
|
|
9669
9685
|
}]
|
|
9670
9686
|
},
|
|
9687
|
+
"sign-in-with-google": {
|
|
9688
|
+
serviceClass: "Auth",
|
|
9689
|
+
operationId: "signInWithGoogle",
|
|
9690
|
+
description: "Exchanges a Google ID token, issued to this deployment's web client, for a session. The account is the one for the token's address: an address that signed in with an emailed code reaches the same account, and a new address gets one. Google must have verified the address.",
|
|
9691
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/auth",
|
|
9692
|
+
httpMethod: "post",
|
|
9693
|
+
pathParams: [],
|
|
9694
|
+
queryParams: [],
|
|
9695
|
+
headerParams: [],
|
|
9696
|
+
cookieParams: [],
|
|
9697
|
+
flags: [{
|
|
9698
|
+
"name": "id_token",
|
|
9699
|
+
"description": "The `credential` Google Identity Services returns to the page.",
|
|
9700
|
+
"required": true,
|
|
9701
|
+
"type": "string",
|
|
9702
|
+
"in": "body"
|
|
9703
|
+
}]
|
|
9704
|
+
},
|
|
9671
9705
|
"refresh-session": {
|
|
9672
9706
|
serviceClass: "Auth",
|
|
9673
9707
|
operationId: "refreshSession",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.176.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"yaml": "^2.9.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@naturali/sdk": "0.
|
|
28
|
+
"@naturali/sdk": "0.176.0",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|