@naturali/cli 0.232.0 → 0.233.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 +285 -25
- package/package.json +3 -3
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.233.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -5316,6 +5316,72 @@ var Playbooks = class {
|
|
|
5316
5316
|
});
|
|
5317
5317
|
}
|
|
5318
5318
|
};
|
|
5319
|
+
var Policies = class {
|
|
5320
|
+
/**
|
|
5321
|
+
* List policies
|
|
5322
|
+
*
|
|
5323
|
+
* Returns the policies of the project `project_id` names, or of the project a project-scoped credential is bound to. Without either, the unrestricted admin lists every policy, global and project ones. Pass `user_id` (unrestricted admin only) to list only the policies attached to that user.
|
|
5324
|
+
*
|
|
5325
|
+
*/
|
|
5326
|
+
static listPolicies(options) {
|
|
5327
|
+
return (options.client ?? client).get({
|
|
5328
|
+
url: "/v1/projects/{project_id}/policies",
|
|
5329
|
+
...options
|
|
5330
|
+
});
|
|
5331
|
+
}
|
|
5332
|
+
/**
|
|
5333
|
+
* Create a policy
|
|
5334
|
+
*
|
|
5335
|
+
* Creates a project policy when `project_id` is given or the credential is bound to a project: its `Allow` statements may name only that project's resources (`srn:<project_id>:<type>:<id>`), else `400`. Without a project, creates a global policy, which only the unrestricted admin may.
|
|
5336
|
+
*/
|
|
5337
|
+
static createPolicy(options) {
|
|
5338
|
+
return (options.client ?? client).post({
|
|
5339
|
+
url: "/v1/projects/{project_id}/policies",
|
|
5340
|
+
...options,
|
|
5341
|
+
headers: {
|
|
5342
|
+
"Content-Type": "application/json",
|
|
5343
|
+
...options.headers
|
|
5344
|
+
}
|
|
5345
|
+
});
|
|
5346
|
+
}
|
|
5347
|
+
/**
|
|
5348
|
+
* Delete a policy
|
|
5349
|
+
*
|
|
5350
|
+
* Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent or webhook names it in its `policy_ids`.
|
|
5351
|
+
*/
|
|
5352
|
+
static deletePolicy(options) {
|
|
5353
|
+
return (options.client ?? client).delete({
|
|
5354
|
+
url: "/v1/projects/{project_id}/policies/{policy_id}",
|
|
5355
|
+
...options
|
|
5356
|
+
});
|
|
5357
|
+
}
|
|
5358
|
+
/**
|
|
5359
|
+
* Get a policy
|
|
5360
|
+
*
|
|
5361
|
+
* Returns a policy. A project policy needs `policies:GetPolicy` in its project; a global one, the unrestricted admin.
|
|
5362
|
+
*/
|
|
5363
|
+
static getPolicy(options) {
|
|
5364
|
+
return (options.client ?? client).get({
|
|
5365
|
+
url: "/v1/projects/{project_id}/policies/{policy_id}",
|
|
5366
|
+
...options
|
|
5367
|
+
});
|
|
5368
|
+
}
|
|
5369
|
+
/**
|
|
5370
|
+
* Update a policy
|
|
5371
|
+
*
|
|
5372
|
+
* Updates a policy. A project policy needs `policies:UpdatePolicy` in its project and its `Allow` statements stay within that project; a global one, the unrestricted admin. The project never changes.
|
|
5373
|
+
*/
|
|
5374
|
+
static updatePolicy(options) {
|
|
5375
|
+
return (options.client ?? client).put({
|
|
5376
|
+
url: "/v1/projects/{project_id}/policies/{policy_id}",
|
|
5377
|
+
...options,
|
|
5378
|
+
headers: {
|
|
5379
|
+
"Content-Type": "application/json",
|
|
5380
|
+
...options.headers
|
|
5381
|
+
}
|
|
5382
|
+
});
|
|
5383
|
+
}
|
|
5384
|
+
};
|
|
5319
5385
|
var Projects = class {
|
|
5320
5386
|
/**
|
|
5321
5387
|
* List projects
|
|
@@ -6195,6 +6261,8 @@ var Tools = class {
|
|
|
6195
6261
|
*
|
|
6196
6262
|
* A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.
|
|
6197
6263
|
*
|
|
6264
|
+
* `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.
|
|
6265
|
+
*
|
|
6198
6266
|
*/
|
|
6199
6267
|
static callTool(options) {
|
|
6200
6268
|
return (options.client ?? client).post({
|
|
@@ -7037,6 +7105,7 @@ var NaturaliClient = class {
|
|
|
7037
7105
|
models;
|
|
7038
7106
|
orchestrations;
|
|
7039
7107
|
playbooks;
|
|
7108
|
+
policies;
|
|
7040
7109
|
projects;
|
|
7041
7110
|
secrets;
|
|
7042
7111
|
sessions;
|
|
@@ -7097,6 +7166,7 @@ var NaturaliClient = class {
|
|
|
7097
7166
|
this.models = bindResource(Models, this.http);
|
|
7098
7167
|
this.orchestrations = bindResource(Orchestrations, this.http);
|
|
7099
7168
|
this.playbooks = bindResource(Playbooks, this.http);
|
|
7169
|
+
this.policies = bindResource(Policies, this.http);
|
|
7100
7170
|
this.projects = bindResource(Projects, this.http);
|
|
7101
7171
|
this.secrets = bindResource(Secrets, this.http);
|
|
7102
7172
|
this.sessions = bindResource(Sessions, this.http);
|
|
@@ -7152,6 +7222,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
7152
7222
|
OauthConnections: () => OauthConnections,
|
|
7153
7223
|
Orchestrations: () => Orchestrations,
|
|
7154
7224
|
Playbooks: () => Playbooks,
|
|
7225
|
+
Policies: () => Policies,
|
|
7155
7226
|
Projects: () => Projects,
|
|
7156
7227
|
Quotas: () => Quotas,
|
|
7157
7228
|
Secrets: () => Secrets,
|
|
@@ -8163,7 +8234,7 @@ const routes = {
|
|
|
8163
8234
|
},
|
|
8164
8235
|
{
|
|
8165
8236
|
"name": "tags",
|
|
8166
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
8237
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
8167
8238
|
"required": false,
|
|
8168
8239
|
"type": "object",
|
|
8169
8240
|
"in": "body"
|
|
@@ -8245,7 +8316,7 @@ const routes = {
|
|
|
8245
8316
|
},
|
|
8246
8317
|
{
|
|
8247
8318
|
"name": "tags",
|
|
8248
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
8319
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
8249
8320
|
"required": true,
|
|
8250
8321
|
"type": "object",
|
|
8251
8322
|
"in": "body-root"
|
|
@@ -8279,7 +8350,7 @@ const routes = {
|
|
|
8279
8350
|
},
|
|
8280
8351
|
{
|
|
8281
8352
|
"name": "tags",
|
|
8282
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
8353
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
8283
8354
|
"required": true,
|
|
8284
8355
|
"type": "object",
|
|
8285
8356
|
"in": "body-root"
|
|
@@ -12625,7 +12696,7 @@ const routes = {
|
|
|
12625
12696
|
},
|
|
12626
12697
|
{
|
|
12627
12698
|
"name": "tags",
|
|
12628
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
12699
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
12629
12700
|
"required": true,
|
|
12630
12701
|
"type": "object",
|
|
12631
12702
|
"in": "body-root"
|
|
@@ -12670,7 +12741,7 @@ const routes = {
|
|
|
12670
12741
|
},
|
|
12671
12742
|
{
|
|
12672
12743
|
"name": "tags",
|
|
12673
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
12744
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
12674
12745
|
"required": true,
|
|
12675
12746
|
"type": "object",
|
|
12676
12747
|
"in": "body-root"
|
|
@@ -13139,7 +13210,7 @@ const routes = {
|
|
|
13139
13210
|
},
|
|
13140
13211
|
{
|
|
13141
13212
|
"name": "tags",
|
|
13142
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
13213
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
13143
13214
|
"required": true,
|
|
13144
13215
|
"type": "object",
|
|
13145
13216
|
"in": "body-root"
|
|
@@ -13173,7 +13244,7 @@ const routes = {
|
|
|
13173
13244
|
},
|
|
13174
13245
|
{
|
|
13175
13246
|
"name": "tags",
|
|
13176
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
13247
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
13177
13248
|
"required": true,
|
|
13178
13249
|
"type": "object",
|
|
13179
13250
|
"in": "body-root"
|
|
@@ -13857,7 +13928,7 @@ const routes = {
|
|
|
13857
13928
|
},
|
|
13858
13929
|
{
|
|
13859
13930
|
"name": "tags",
|
|
13860
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
13931
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
13861
13932
|
"required": false,
|
|
13862
13933
|
"type": "object",
|
|
13863
13934
|
"in": "body"
|
|
@@ -13926,7 +13997,7 @@ const routes = {
|
|
|
13926
13997
|
},
|
|
13927
13998
|
{
|
|
13928
13999
|
"name": "tags",
|
|
13929
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
14000
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
13930
14001
|
"required": false,
|
|
13931
14002
|
"type": "object",
|
|
13932
14003
|
"in": "body"
|
|
@@ -14095,7 +14166,7 @@ const routes = {
|
|
|
14095
14166
|
},
|
|
14096
14167
|
{
|
|
14097
14168
|
"name": "tags",
|
|
14098
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
14169
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
14099
14170
|
"required": false,
|
|
14100
14171
|
"type": "object",
|
|
14101
14172
|
"in": "body"
|
|
@@ -14670,7 +14741,7 @@ const routes = {
|
|
|
14670
14741
|
},
|
|
14671
14742
|
{
|
|
14672
14743
|
"name": "tags",
|
|
14673
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
14744
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
14674
14745
|
"required": true,
|
|
14675
14746
|
"type": "object",
|
|
14676
14747
|
"in": "body-root"
|
|
@@ -14711,7 +14782,7 @@ const routes = {
|
|
|
14711
14782
|
},
|
|
14712
14783
|
{
|
|
14713
14784
|
"name": "tags",
|
|
14714
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
14785
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
14715
14786
|
"required": true,
|
|
14716
14787
|
"type": "object",
|
|
14717
14788
|
"in": "body-root"
|
|
@@ -16126,7 +16197,7 @@ const routes = {
|
|
|
16126
16197
|
},
|
|
16127
16198
|
{
|
|
16128
16199
|
"name": "tags",
|
|
16129
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
16200
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
16130
16201
|
"required": true,
|
|
16131
16202
|
"type": "object",
|
|
16132
16203
|
"in": "body-root"
|
|
@@ -16160,7 +16231,7 @@ const routes = {
|
|
|
16160
16231
|
},
|
|
16161
16232
|
{
|
|
16162
16233
|
"name": "tags",
|
|
16163
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
16234
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
16164
16235
|
"required": true,
|
|
16165
16236
|
"type": "object",
|
|
16166
16237
|
"in": "body-root"
|
|
@@ -18835,7 +18906,7 @@ const routes = {
|
|
|
18835
18906
|
},
|
|
18836
18907
|
{
|
|
18837
18908
|
"name": "tags",
|
|
18838
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
18909
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
18839
18910
|
"required": true,
|
|
18840
18911
|
"type": "object",
|
|
18841
18912
|
"in": "body-root"
|
|
@@ -18876,7 +18947,7 @@ const routes = {
|
|
|
18876
18947
|
},
|
|
18877
18948
|
{
|
|
18878
18949
|
"name": "tags",
|
|
18879
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
18950
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
18880
18951
|
"required": true,
|
|
18881
18952
|
"type": "object",
|
|
18882
18953
|
"in": "body-root"
|
|
@@ -19556,7 +19627,7 @@ const routes = {
|
|
|
19556
19627
|
},
|
|
19557
19628
|
{
|
|
19558
19629
|
"name": "tags",
|
|
19559
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
19630
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
19560
19631
|
"required": true,
|
|
19561
19632
|
"type": "object",
|
|
19562
19633
|
"in": "body-root"
|
|
@@ -19590,7 +19661,7 @@ const routes = {
|
|
|
19590
19661
|
},
|
|
19591
19662
|
{
|
|
19592
19663
|
"name": "tags",
|
|
19593
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
19664
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
19594
19665
|
"required": true,
|
|
19595
19666
|
"type": "object",
|
|
19596
19667
|
"in": "body-root"
|
|
@@ -22575,6 +22646,188 @@ const routes = {
|
|
|
22575
22646
|
}
|
|
22576
22647
|
]
|
|
22577
22648
|
},
|
|
22649
|
+
"list-policies": {
|
|
22650
|
+
serviceClass: "Policies",
|
|
22651
|
+
operationId: "listPolicies",
|
|
22652
|
+
description: "Returns the policies of the project `project_id` names, or of the project a project-scoped credential is bound to. Without either, the unrestricted admin lists every policy, global and project ones. Pass `user_id` (unrestricted admin only) to list only the policies attached to that user.",
|
|
22653
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/policies",
|
|
22654
|
+
httpMethod: "get",
|
|
22655
|
+
pathParams: ["project_id"],
|
|
22656
|
+
queryParams: [
|
|
22657
|
+
"user_id",
|
|
22658
|
+
"limit",
|
|
22659
|
+
"cursor"
|
|
22660
|
+
],
|
|
22661
|
+
headerParams: [],
|
|
22662
|
+
cookieParams: [],
|
|
22663
|
+
flags: [
|
|
22664
|
+
{
|
|
22665
|
+
"name": "project_id",
|
|
22666
|
+
"description": "Project public ID (proj_ prefix).",
|
|
22667
|
+
"required": true,
|
|
22668
|
+
"type": "string",
|
|
22669
|
+
"in": "path"
|
|
22670
|
+
},
|
|
22671
|
+
{
|
|
22672
|
+
"name": "user_id",
|
|
22673
|
+
"description": "Return only policies attached to this user (user_...)",
|
|
22674
|
+
"required": false,
|
|
22675
|
+
"type": "string",
|
|
22676
|
+
"in": "query"
|
|
22677
|
+
},
|
|
22678
|
+
{
|
|
22679
|
+
"name": "limit",
|
|
22680
|
+
"description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
|
|
22681
|
+
"required": false,
|
|
22682
|
+
"type": "integer",
|
|
22683
|
+
"in": "query"
|
|
22684
|
+
},
|
|
22685
|
+
{
|
|
22686
|
+
"name": "cursor",
|
|
22687
|
+
"description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
|
|
22688
|
+
"required": false,
|
|
22689
|
+
"type": "string",
|
|
22690
|
+
"in": "query"
|
|
22691
|
+
}
|
|
22692
|
+
]
|
|
22693
|
+
},
|
|
22694
|
+
"create-policy": {
|
|
22695
|
+
serviceClass: "Policies",
|
|
22696
|
+
operationId: "createPolicy",
|
|
22697
|
+
description: "Creates a project policy when `project_id` is given or the credential is bound to a project: its `Allow` statements may name only that project's resources (`srn:<project_id>:<type>:<id>`), else `400`. Without a project, creates a global policy, which only the unrestricted admin may.",
|
|
22698
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/policies",
|
|
22699
|
+
httpMethod: "post",
|
|
22700
|
+
pathParams: ["project_id"],
|
|
22701
|
+
queryParams: [],
|
|
22702
|
+
headerParams: [],
|
|
22703
|
+
cookieParams: [],
|
|
22704
|
+
flags: [
|
|
22705
|
+
{
|
|
22706
|
+
"name": "project_id",
|
|
22707
|
+
"description": "Project public ID (proj_ prefix).",
|
|
22708
|
+
"required": true,
|
|
22709
|
+
"type": "string",
|
|
22710
|
+
"in": "path"
|
|
22711
|
+
},
|
|
22712
|
+
{
|
|
22713
|
+
"name": "name",
|
|
22714
|
+
"description": "",
|
|
22715
|
+
"required": false,
|
|
22716
|
+
"type": "string",
|
|
22717
|
+
"in": "body"
|
|
22718
|
+
},
|
|
22719
|
+
{
|
|
22720
|
+
"name": "description",
|
|
22721
|
+
"description": "",
|
|
22722
|
+
"required": false,
|
|
22723
|
+
"type": "string",
|
|
22724
|
+
"in": "body"
|
|
22725
|
+
},
|
|
22726
|
+
{
|
|
22727
|
+
"name": "document",
|
|
22728
|
+
"description": "",
|
|
22729
|
+
"required": true,
|
|
22730
|
+
"type": "object",
|
|
22731
|
+
"in": "body"
|
|
22732
|
+
}
|
|
22733
|
+
]
|
|
22734
|
+
},
|
|
22735
|
+
"get-policy": {
|
|
22736
|
+
serviceClass: "Policies",
|
|
22737
|
+
operationId: "getPolicy",
|
|
22738
|
+
description: "Returns a policy. A project policy needs `policies:GetPolicy` in its project; a global one, the unrestricted admin.",
|
|
22739
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/policies",
|
|
22740
|
+
httpMethod: "get",
|
|
22741
|
+
pathParams: ["project_id", "policy_id"],
|
|
22742
|
+
queryParams: [],
|
|
22743
|
+
headerParams: [],
|
|
22744
|
+
cookieParams: [],
|
|
22745
|
+
flags: [{
|
|
22746
|
+
"name": "project_id",
|
|
22747
|
+
"description": "Project public ID (proj_ prefix).",
|
|
22748
|
+
"required": true,
|
|
22749
|
+
"type": "string",
|
|
22750
|
+
"in": "path"
|
|
22751
|
+
}, {
|
|
22752
|
+
"name": "policy_id",
|
|
22753
|
+
"description": "Policy public ID (pol_ prefix)",
|
|
22754
|
+
"required": true,
|
|
22755
|
+
"type": "string",
|
|
22756
|
+
"in": "path"
|
|
22757
|
+
}]
|
|
22758
|
+
},
|
|
22759
|
+
"update-policy": {
|
|
22760
|
+
serviceClass: "Policies",
|
|
22761
|
+
operationId: "updatePolicy",
|
|
22762
|
+
description: "Updates a policy. A project policy needs `policies:UpdatePolicy` in its project and its `Allow` statements stay within that project; a global one, the unrestricted admin. The project never changes.",
|
|
22763
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/policies",
|
|
22764
|
+
httpMethod: "put",
|
|
22765
|
+
pathParams: ["project_id", "policy_id"],
|
|
22766
|
+
queryParams: [],
|
|
22767
|
+
headerParams: [],
|
|
22768
|
+
cookieParams: [],
|
|
22769
|
+
flags: [
|
|
22770
|
+
{
|
|
22771
|
+
"name": "project_id",
|
|
22772
|
+
"description": "Project public ID (proj_ prefix).",
|
|
22773
|
+
"required": true,
|
|
22774
|
+
"type": "string",
|
|
22775
|
+
"in": "path"
|
|
22776
|
+
},
|
|
22777
|
+
{
|
|
22778
|
+
"name": "policy_id",
|
|
22779
|
+
"description": "Policy public ID (pol_ prefix)",
|
|
22780
|
+
"required": true,
|
|
22781
|
+
"type": "string",
|
|
22782
|
+
"in": "path"
|
|
22783
|
+
},
|
|
22784
|
+
{
|
|
22785
|
+
"name": "name",
|
|
22786
|
+
"description": "",
|
|
22787
|
+
"required": false,
|
|
22788
|
+
"type": "string",
|
|
22789
|
+
"in": "body"
|
|
22790
|
+
},
|
|
22791
|
+
{
|
|
22792
|
+
"name": "description",
|
|
22793
|
+
"description": "",
|
|
22794
|
+
"required": false,
|
|
22795
|
+
"type": "string",
|
|
22796
|
+
"in": "body"
|
|
22797
|
+
},
|
|
22798
|
+
{
|
|
22799
|
+
"name": "document",
|
|
22800
|
+
"description": "",
|
|
22801
|
+
"required": true,
|
|
22802
|
+
"type": "object",
|
|
22803
|
+
"in": "body"
|
|
22804
|
+
}
|
|
22805
|
+
]
|
|
22806
|
+
},
|
|
22807
|
+
"delete-policy": {
|
|
22808
|
+
serviceClass: "Policies",
|
|
22809
|
+
operationId: "deletePolicy",
|
|
22810
|
+
description: "Deletes a policy. A project policy needs `policies:DeletePolicy` in its project; a global one, the unrestricted admin. Refused with `409 POLICY_HAS_DEPENDENTS` while a trigger, agent or webhook names it in its `policy_ids`.",
|
|
22811
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/policies",
|
|
22812
|
+
httpMethod: "delete",
|
|
22813
|
+
pathParams: ["project_id", "policy_id"],
|
|
22814
|
+
queryParams: [],
|
|
22815
|
+
headerParams: [],
|
|
22816
|
+
cookieParams: [],
|
|
22817
|
+
flags: [{
|
|
22818
|
+
"name": "project_id",
|
|
22819
|
+
"description": "Project public ID (proj_ prefix).",
|
|
22820
|
+
"required": true,
|
|
22821
|
+
"type": "string",
|
|
22822
|
+
"in": "path"
|
|
22823
|
+
}, {
|
|
22824
|
+
"name": "policy_id",
|
|
22825
|
+
"description": "Policy public ID (pol_ prefix)",
|
|
22826
|
+
"required": true,
|
|
22827
|
+
"type": "string",
|
|
22828
|
+
"in": "path"
|
|
22829
|
+
}]
|
|
22830
|
+
},
|
|
22578
22831
|
"list-projects": {
|
|
22579
22832
|
serviceClass: "Projects",
|
|
22580
22833
|
operationId: "listProjects",
|
|
@@ -23892,7 +24145,7 @@ const routes = {
|
|
|
23892
24145
|
},
|
|
23893
24146
|
{
|
|
23894
24147
|
"name": "tags",
|
|
23895
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
24148
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
23896
24149
|
"required": false,
|
|
23897
24150
|
"type": "object",
|
|
23898
24151
|
"in": "body"
|
|
@@ -24264,7 +24517,7 @@ const routes = {
|
|
|
24264
24517
|
},
|
|
24265
24518
|
{
|
|
24266
24519
|
"name": "tags",
|
|
24267
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
24520
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
24268
24521
|
"required": false,
|
|
24269
24522
|
"type": "object",
|
|
24270
24523
|
"in": "body"
|
|
@@ -24370,7 +24623,7 @@ const routes = {
|
|
|
24370
24623
|
},
|
|
24371
24624
|
{
|
|
24372
24625
|
"name": "tags",
|
|
24373
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
24626
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
24374
24627
|
"required": true,
|
|
24375
24628
|
"type": "object",
|
|
24376
24629
|
"in": "body-root"
|
|
@@ -24404,7 +24657,7 @@ const routes = {
|
|
|
24404
24657
|
},
|
|
24405
24658
|
{
|
|
24406
24659
|
"name": "tags",
|
|
24407
|
-
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter and
|
|
24660
|
+
"description": "Key-value labels on a resource. A flat object of string values — an array, a nested object or a number is rejected with `400 VALIDATION_FAILED`, never coerced. Keys are opaque and stored verbatim, so `cost_center` and `costCenter` are two different tags. Matched by JSONB containment wherever tags are read: the `?tags=` filter, knowledge search, and the IAM `iam:ResourceTag/<key>` condition.\n\nKeys beginning `system.` are reserved: the platform writes them to record which conversation, actor, agent and role a row came from, and a write naming one is refused with `400 RESERVED_TAG_KEY`. They are read and filtered like any other tag.\n\nThe bag is bounded, because every pair reaches the IAM context of every access check on the resource: at most 50 keys, each key at most 128 characters and each value at most 256. A write past a bound — including a merge that would grow the stored bag past the key count — is `400 VALIDATION_FAILED` with `meta.limit` naming the bound it crossed. `system.*` keys are the platform's and do not count against the 50.",
|
|
24408
24661
|
"required": true,
|
|
24409
24662
|
"type": "object",
|
|
24410
24663
|
"in": "body-root"
|
|
@@ -25249,7 +25502,7 @@ const routes = {
|
|
|
25249
25502
|
"call-tool": {
|
|
25250
25503
|
serviceClass: "Tools",
|
|
25251
25504
|
operationId: "callTool",
|
|
25252
|
-
description: "Directly invokes a tool and returns its output. Supported for `http`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input. For `mcp` tools the `action` field is required and identifies which tool name to invoke. For `http` tools `action` is ignored. When an `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` (\"not available on this tool\") before any outbound request is made. `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent. Guardrails attached to the tool or to its project adjudicate the call before dispatch, composing project + tool scope. A call this route cannot await a decision on — class C (human sign-off), class D, or a class-B tripwire — is refused with `422 TOOL_DISPATCH_FAILED`, whose `meta` carries the `tool_id` and the `outcome`. A `pipeline` tool is adjudicated before its first step runs, and every step is adjudicated as the call of that tool it is. A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key.",
|
|
25505
|
+
description: "Directly invokes a tool and returns its output. Supported for `http`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input. For `mcp` tools the `action` field is required and identifies which tool name to invoke. For `http` tools `action` is ignored. When an `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` (\"not available on this tool\") before any outbound request is made. `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent. Guardrails attached to the tool or to its project adjudicate the call before dispatch, composing project + tool scope. A call this route cannot await a decision on — class C (human sign-off), class D, or a class-B tripwire — is refused with `422 TOOL_DISPATCH_FAILED`, whose `meta` carries the `tool_id` and the `outcome`. A `pipeline` tool is adjudicated before its first step runs, and every step is adjudicated as the call of that tool it is. A credential scoped to a project the tool is shared with, through an accepted share, calls it in that project: the calling project's guardrails adjudicate it, it is metered there with `publisher_project_id`, and the tool receives the calling project as the `calling_project_id` tool context key. `actor_id` runs the call for an actor without a session or a generation, such as a scheduled sync reading each user's own data through their OAuth connection.",
|
|
25253
25506
|
moduleDocsUrl: "https://naturali.ai/docs/modules/tools",
|
|
25254
25507
|
httpMethod: "post",
|
|
25255
25508
|
pathParams: ["project_id", "tool_id"],
|
|
@@ -25287,10 +25540,17 @@ const routes = {
|
|
|
25287
25540
|
},
|
|
25288
25541
|
{
|
|
25289
25542
|
"name": "tool_context",
|
|
25290
|
-
"description": "Key/value context for this call, forwarded to the tool as `X-Naturali-Context-<key>` request headers and resolving any `{{context:<key>}}` token in the tool's `execute.headers`, `mcp.headers` or `preset_parameters`. Narrowed by the tool's `context_keys` allowlist when it sets one.\
|
|
25543
|
+
"description": "Key/value context for this call, forwarded to the tool as `X-Naturali-Context-<key>` request headers and resolving any `{{context:<key>}}` token in the tool's `execute.headers`, `mcp.headers` or `preset_parameters`. Narrowed by the tool's `context_keys` allowlist when it sets one.\nThe reserved keys `session_id`, `actor_id` and `actor_external_id` are dropped from this bag (in any casing) rather than forwarded, so a downstream tool can still trust that a context header naming one is server-derived; `actor_id` and `actor_external_id` are stamped only from the `actor_id` field. Every other key becomes an HTTP header name and must match that grammar, or the call fails with `INVALID_TOOL_CONTEXT_KEY`.\n",
|
|
25291
25544
|
"required": false,
|
|
25292
25545
|
"type": "object",
|
|
25293
25546
|
"in": "body"
|
|
25547
|
+
},
|
|
25548
|
+
{
|
|
25549
|
+
"name": "actor_id",
|
|
25550
|
+
"description": "Runs the call for this actor, as a session for the actor would: an `http` tool with `auth.type: oauth_connection` sends the actor's connection token, and the tool receives `actor_id` and `actor_external_id` as tool context keys. The actor must belong to the calling project, or the call fails with `400 ACTOR_NOT_FOUND`; using its connection still needs `oauth-connections:UseOauthConnection`.\n",
|
|
25551
|
+
"required": false,
|
|
25552
|
+
"type": "string",
|
|
25553
|
+
"in": "body"
|
|
25294
25554
|
}
|
|
25295
25555
|
]
|
|
25296
25556
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.233.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.
|
|
35
|
-
"@ttoss/openapi-codegen": "^0.10.
|
|
34
|
+
"@naturali/sdk": "0.233.0",
|
|
35
|
+
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|
|
38
38
|
"tsx": "^4.23.13",
|