@naturali/sdk 0.111.0 → 0.111.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 +2 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1435,6 +1435,7 @@ var ApiKeys = class {
|
|
|
1435
1435
|
*
|
|
1436
1436
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
1437
1437
|
* A project-scoped key requires the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
|
|
1438
|
+
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
1438
1439
|
*
|
|
1439
1440
|
*/
|
|
1440
1441
|
static createApiKey(options) {
|
|
@@ -1488,6 +1489,7 @@ var ApiKeys = class {
|
|
|
1488
1489
|
* Rotate an API key
|
|
1489
1490
|
*
|
|
1490
1491
|
* Issues a new secret for the same key record (same id, scope and capabilities) and invalidates the previous secret. The new raw `key` is returned only in this response.
|
|
1492
|
+
* Refused for a connected app, like creation: rotation returns a raw secret for a key the caller need never have held, so it reaches the same place by another door.
|
|
1491
1493
|
*
|
|
1492
1494
|
*/
|
|
1493
1495
|
static rotateApiKey(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -19277,6 +19277,7 @@ declare class ApiKeys {
|
|
|
19277
19277
|
*
|
|
19278
19278
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
19279
19279
|
* A project-scoped key requires the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
|
|
19280
|
+
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
19280
19281
|
*
|
|
19281
19282
|
*/
|
|
19282
19283
|
static createApiKey<ThrowOnError extends boolean = false>(options: Options<CreateApiKeyData, ThrowOnError>): RequestResult<CreateApiKeyResponses, CreateApiKeyErrors, ThrowOnError>;
|
|
@@ -19302,6 +19303,7 @@ declare class ApiKeys {
|
|
|
19302
19303
|
* Rotate an API key
|
|
19303
19304
|
*
|
|
19304
19305
|
* Issues a new secret for the same key record (same id, scope and capabilities) and invalidates the previous secret. The new raw `key` is returned only in this response.
|
|
19306
|
+
* Refused for a connected app, like creation: rotation returns a raw secret for a key the caller need never have held, so it reaches the same place by another door.
|
|
19305
19307
|
*
|
|
19306
19308
|
*/
|
|
19307
19309
|
static rotateApiKey<ThrowOnError extends boolean = false>(options: Options<RotateApiKeyData, ThrowOnError>): RequestResult<RotateApiKeyResponses, RotateApiKeyErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -19277,6 +19277,7 @@ declare class ApiKeys {
|
|
|
19277
19277
|
*
|
|
19278
19278
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
19279
19279
|
* A project-scoped key requires the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
|
|
19280
|
+
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
19280
19281
|
*
|
|
19281
19282
|
*/
|
|
19282
19283
|
static createApiKey<ThrowOnError extends boolean = false>(options: Options<CreateApiKeyData, ThrowOnError>): RequestResult<CreateApiKeyResponses, CreateApiKeyErrors, ThrowOnError>;
|
|
@@ -19302,6 +19303,7 @@ declare class ApiKeys {
|
|
|
19302
19303
|
* Rotate an API key
|
|
19303
19304
|
*
|
|
19304
19305
|
* Issues a new secret for the same key record (same id, scope and capabilities) and invalidates the previous secret. The new raw `key` is returned only in this response.
|
|
19306
|
+
* Refused for a connected app, like creation: rotation returns a raw secret for a key the caller need never have held, so it reaches the same place by another door.
|
|
19305
19307
|
*
|
|
19306
19308
|
*/
|
|
19307
19309
|
static rotateApiKey<ThrowOnError extends boolean = false>(options: Options<RotateApiKeyData, ThrowOnError>): RequestResult<RotateApiKeyResponses, RotateApiKeyErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -1434,6 +1434,7 @@ var ApiKeys = class {
|
|
|
1434
1434
|
*
|
|
1435
1435
|
* Creates an API key. When `project_id` is set the key is scoped to that project (the default and recommended stance); omit it for an account-scoped key. `capabilities` narrows what the key may do; when omitted the key inherits the creator's capabilities. The raw `key` (nat_sk_…) is returned only in this response.
|
|
1436
1436
|
* A project-scoped key requires the `admin` role in that project: the key is a standing credential for everything the project can do, so handing one out is an administrative act rather than something a read-only `member` can do for themselves. An account-scoped key requires a credential that is not itself confined to one project.
|
|
1437
|
+
* A connected app cannot create keys at all: a grant is revocable and a key is not, so a key minted under a grant would still work after the app was disconnected. Reading and revoking keys stay available.
|
|
1437
1438
|
*
|
|
1438
1439
|
*/
|
|
1439
1440
|
static createApiKey(options) {
|
|
@@ -1487,6 +1488,7 @@ var ApiKeys = class {
|
|
|
1487
1488
|
* Rotate an API key
|
|
1488
1489
|
*
|
|
1489
1490
|
* Issues a new secret for the same key record (same id, scope and capabilities) and invalidates the previous secret. The new raw `key` is returned only in this response.
|
|
1491
|
+
* Refused for a connected app, like creation: rotation returns a raw secret for a key the caller need never have held, so it reaches the same place by another door.
|
|
1490
1492
|
*
|
|
1491
1493
|
*/
|
|
1492
1494
|
static rotateApiKey(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.111.
|
|
3
|
+
"version": "0.111.1",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tsx": "^4.23.1",
|
|
38
38
|
"typescript": "~6.0.3",
|
|
39
39
|
"vitest": "^4.1.10",
|
|
40
|
-
"@naturali/api": "0.111.
|
|
40
|
+
"@naturali/api": "0.111.1"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"generate": "tsx scripts/generate.ts",
|