@naturali/cli 0.229.1 → 0.230.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 +68 -26
- 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.230.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -6220,7 +6220,7 @@ var Triggers = class {
|
|
|
6220
6220
|
/**
|
|
6221
6221
|
* Update a trigger
|
|
6222
6222
|
*
|
|
6223
|
-
* Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing
|
|
6223
|
+
* Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`.
|
|
6224
6224
|
*
|
|
6225
6225
|
*/
|
|
6226
6226
|
static updateTrigger(options) {
|
|
@@ -6236,7 +6236,7 @@ var Triggers = class {
|
|
|
6236
6236
|
/**
|
|
6237
6237
|
* Fire a trigger
|
|
6238
6238
|
*
|
|
6239
|
-
* Fires a trigger synchronously and returns the terminal firing record. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.
|
|
6239
|
+
* Fires a trigger synchronously and returns the terminal firing record. The firing acts as the caller ∩ the trigger's `policy_ids`, which must allow starting the target, else `403`. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.
|
|
6240
6240
|
*/
|
|
6241
6241
|
static fireTrigger(options) {
|
|
6242
6242
|
return (options.client ?? client).post({
|
|
@@ -6454,7 +6454,7 @@ var Users = class {
|
|
|
6454
6454
|
*
|
|
6455
6455
|
* With `saved_card: true` the saved card is charged at once and the answer is `status: paid`. When the card needs authentication or is declined, nothing is charged and the answer falls back to a checkout.
|
|
6456
6456
|
*
|
|
6457
|
-
* A checkout (`status: checkout`) is a hosted page: send the caller to `checkout_url`. Creating it charges nothing, and one left unpaid lapses at `expires_at`. The card paid with there becomes the account's saved card, replacing any other. After paying, the browser returns to the
|
|
6457
|
+
* A checkout (`status: checkout`) is a hosted page: send the caller to `checkout_url`. Creating it charges nothing, and one left unpaid lapses at `expires_at`. The card paid with there becomes the account's saved card, replacing any other. After paying, the browser returns to the app's billing page.
|
|
6458
6458
|
*
|
|
6459
6459
|
*/
|
|
6460
6460
|
static createCurrentUserTopUp(options) {
|
|
@@ -8857,10 +8857,10 @@ const routes = {
|
|
|
8857
8857
|
"in": "body"
|
|
8858
8858
|
},
|
|
8859
8859
|
{
|
|
8860
|
-
"name": "
|
|
8861
|
-
"description": "
|
|
8860
|
+
"name": "policy_ids",
|
|
8861
|
+
"description": "Policies capping every generation: it runs as the caller's permissions intersected with these. The caller must hold every grant they carry inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`. See [Execution Identity](/docs/modules/agents#execution-identity).",
|
|
8862
8862
|
"required": false,
|
|
8863
|
-
"type": "
|
|
8863
|
+
"type": "array",
|
|
8864
8864
|
"in": "body"
|
|
8865
8865
|
},
|
|
8866
8866
|
{
|
|
@@ -9083,10 +9083,10 @@ const routes = {
|
|
|
9083
9083
|
"in": "body"
|
|
9084
9084
|
},
|
|
9085
9085
|
{
|
|
9086
|
-
"name": "
|
|
9087
|
-
"description": "
|
|
9086
|
+
"name": "policy_ids",
|
|
9087
|
+
"description": "Replaces the policies capping every generation; `null` removes the cap. The caller must hold every grant of each policy it adds inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`. See [Execution Identity](/docs/modules/agents#execution-identity).",
|
|
9088
9088
|
"required": false,
|
|
9089
|
-
"type": "
|
|
9089
|
+
"type": "array",
|
|
9090
9090
|
"in": "body"
|
|
9091
9091
|
},
|
|
9092
9092
|
{
|
|
@@ -9292,10 +9292,10 @@ const routes = {
|
|
|
9292
9292
|
"in": "body"
|
|
9293
9293
|
},
|
|
9294
9294
|
{
|
|
9295
|
-
"name": "
|
|
9296
|
-
"description": "
|
|
9295
|
+
"name": "policy_ids",
|
|
9296
|
+
"description": "Replaces the policies capping every generation; `null` removes the cap. The caller must hold every grant of each policy it adds inside the agent's project, else `403 POLICY_GRANT_NOT_HELD`. See [Execution Identity](/docs/modules/agents#execution-identity).",
|
|
9297
9297
|
"required": false,
|
|
9298
|
-
"type": "
|
|
9298
|
+
"type": "array",
|
|
9299
9299
|
"in": "body"
|
|
9300
9300
|
},
|
|
9301
9301
|
{
|
|
@@ -24461,7 +24461,7 @@ const routes = {
|
|
|
24461
24461
|
},
|
|
24462
24462
|
{
|
|
24463
24463
|
"name": "execute",
|
|
24464
|
-
"description": "Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.\n\n`auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:\n\n- `aws_sigv4` — signs the request with AWS Signature Version 4. Requires `region`, `service`, `access_key_id` and `secret_access_key`; `session_token` is optional (temporary credentials). Incompatible with `body_mode: multipart`, whose body bytes are not known at signing time.\n- `gcp_service_account` — mints a Google OAuth 2.0 access token from a signed service account assertion and sends it as a bearer token. Requires `credentials` (the service account key file JSON, as a string) and `scopes` (a non-empty array). Tokens are cached per service account and scope set until shortly before they expire.\n\nCredential fields accept `{{secret:...}}` references and should use them — a tool is readable by anyone who can `GET /tools`, and the stored reference is what is echoed back, never the resolved value.\n\nA credential slot takes a reference, never a literal: a literal `secret_access_key`, `session_token` or `credentials` under `auth`, a literal credential-named `headers` value (`Authorization`, `Cookie`, or a name containing `api-key`/`token`/`secret`/`password`), or a `url` carrying a password or a literal credential-named query parameter (those names, plus `key` and `sig`/`signature`) is refused with `400 LITERAL_CREDENTIAL`, `meta.paths` naming each one. A stored literal reads back as `{\"no_echo\": true}` (a `url` holding one is masked whole), an object rather than a string so a read-edit-write round trip fails the schema check instead of writing the placeholder in as the credential. A value carrying a `{{secret:...}}` reference is the wiring, not the credential, and stays readable.\n\n`headers` values additionally accept `{{context:<key>}}` references, resolved per call from the caller's `tool_context`, so a per-user credential can be placed in the real header the target expects (`Authorization: Bearer {{context:ocaToken}}`) instead of only in an `X-Naturali-Context-<key>` header. Valid **only** inside `headers` — a context value is caller-supplied, so it may not steer the `url` — and a key missing from the `tool_context` at call time fails the tool call with `MISSING_TOOL_CONTEXT_KEY` rather than sending an empty credential. See the Tool Context reference.\n",
|
|
24464
|
+
"description": "Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.\n\n`auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:\n\n- `aws_sigv4` — signs the request with AWS Signature Version 4. Requires `region`, `service`, `access_key_id` and `secret_access_key`; `session_token` is optional (temporary credentials). Incompatible with `body_mode: multipart`, whose body bytes are not known at signing time.\n- `gcp_service_account` — mints a Google OAuth 2.0 access token from a signed service account assertion and sends it as a bearer token. Requires `credentials` (the service account key file JSON, as a string) and `scopes` (a non-empty array). Tokens are cached per service account and scope set until shortly before they expire.\n- `oauth_connection` — sends the access token of the OAuth connection the turn's actor holds through `oauth_client_id`, refreshing it when it expires. The call is refused unless both the caller and the agent's `policy_ids` allow `oauth-connections:UseOauthConnection` on the connection; with no actor, or no connected connection, it fails with `TOOL_AUTH_FAILED` naming how to reconnect.\n\nCredential fields accept `{{secret:...}}` references and should use them — a tool is readable by anyone who can `GET /tools`, and the stored reference is what is echoed back, never the resolved value.\n\nA credential slot takes a reference, never a literal: a literal `secret_access_key`, `session_token` or `credentials` under `auth`, a literal credential-named `headers` value (`Authorization`, `Cookie`, or a name containing `api-key`/`token`/`secret`/`password`), or a `url` carrying a password or a literal credential-named query parameter (those names, plus `key` and `sig`/`signature`) is refused with `400 LITERAL_CREDENTIAL`, `meta.paths` naming each one. A stored literal reads back as `{\"no_echo\": true}` (a `url` holding one is masked whole), an object rather than a string so a read-edit-write round trip fails the schema check instead of writing the placeholder in as the credential. A value carrying a `{{secret:...}}` reference is the wiring, not the credential, and stays readable.\n\n`headers` values additionally accept `{{context:<key>}}` references, resolved per call from the caller's `tool_context`, so a per-user credential can be placed in the real header the target expects (`Authorization: Bearer {{context:ocaToken}}`) instead of only in an `X-Naturali-Context-<key>` header. Valid **only** inside `headers` — a context value is caller-supplied, so it may not steer the `url` — and a key missing from the `tool_context` at call time fails the tool call with `MISSING_TOOL_CONTEXT_KEY` rather than sending an empty credential. See the Tool Context reference.\n",
|
|
24465
24465
|
"required": false,
|
|
24466
24466
|
"type": "object",
|
|
24467
24467
|
"in": "body"
|
|
@@ -24603,7 +24603,7 @@ const routes = {
|
|
|
24603
24603
|
},
|
|
24604
24604
|
{
|
|
24605
24605
|
"name": "execute",
|
|
24606
|
-
"description": "Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.\n\n`auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:\n\n- `aws_sigv4` — signs the request with AWS Signature Version 4. Requires `region`, `service`, `access_key_id` and `secret_access_key`; `session_token` is optional (temporary credentials). Incompatible with `body_mode: multipart`, whose body bytes are not known at signing time.\n- `gcp_service_account` — mints a Google OAuth 2.0 access token from a signed service account assertion and sends it as a bearer token. Requires `credentials` (the service account key file JSON, as a string) and `scopes` (a non-empty array). Tokens are cached per service account and scope set until shortly before they expire.\n\nCredential fields accept `{{secret:...}}` references and should use them — a tool is readable by anyone who can `GET /tools`, and the stored reference is what is echoed back, never the resolved value.\n\nA credential slot takes a reference, never a literal: a literal `secret_access_key`, `session_token` or `credentials` under `auth`, a literal credential-named `headers` value (`Authorization`, `Cookie`, or a name containing `api-key`/`token`/`secret`/`password`), or a `url` carrying a password or a literal credential-named query parameter (those names, plus `key` and `sig`/`signature`) is refused with `400 LITERAL_CREDENTIAL`, `meta.paths` naming each one. A stored literal reads back as `{\"no_echo\": true}` (a `url` holding one is masked whole), an object rather than a string so a read-edit-write round trip fails the schema check instead of writing the placeholder in as the credential. A value carrying a `{{secret:...}}` reference is the wiring, not the credential, and stays readable.\n\n`headers` values additionally accept `{{context:<key>}}` references, resolved per call from the caller's `tool_context`, so a per-user credential can be placed in the real header the target expects (`Authorization: Bearer {{context:ocaToken}}`) instead of only in an `X-Naturali-Context-<key>` header. Valid **only** inside `headers` — a context value is caller-supplied, so it may not steer the `url` — and a key missing from the `tool_context` at call time fails the tool call with `MISSING_TOOL_CONTEXT_KEY` rather than sending an empty credential. See the Tool Context reference.\n",
|
|
24606
|
+
"description": "Execution config for http tools. An `http` tool without a non-empty `url` is `400 VALIDATION_FAILED`, on create and on an update that would leave it without one. Supported fields: `url` (required), `method` (default `POST`), `headers`, `body_mode` and `response_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself). `response_mode` is `json` (default: the body parsed as JSON, else returned as text) or `base64`, which returns a 2xx body as `{ content_type, filename, data_base64 }` — the same file shape `multipart` accepts, so a pipeline step can relay a downloaded file. `filename` comes from `Content-Disposition` and is omitted when the target names none. In either mode a 2xx body over `TOOL_RESPONSE_MAX_BYTES` is `502 TOOL_RESPONSE_TOO_LARGE`; a non-2xx body over it is cut to it.\n\n`auth` adds a computed request credential, for targets whose `Authorization` value cannot be expressed as a static header. Supported `auth.type` values:\n\n- `aws_sigv4` — signs the request with AWS Signature Version 4. Requires `region`, `service`, `access_key_id` and `secret_access_key`; `session_token` is optional (temporary credentials). Incompatible with `body_mode: multipart`, whose body bytes are not known at signing time.\n- `gcp_service_account` — mints a Google OAuth 2.0 access token from a signed service account assertion and sends it as a bearer token. Requires `credentials` (the service account key file JSON, as a string) and `scopes` (a non-empty array). Tokens are cached per service account and scope set until shortly before they expire.\n- `oauth_connection` — sends the access token of the OAuth connection the turn's actor holds through `oauth_client_id`, refreshing it when it expires. The call is refused unless both the caller and the agent's `policy_ids` allow `oauth-connections:UseOauthConnection` on the connection; with no actor, or no connected connection, it fails with `TOOL_AUTH_FAILED` naming how to reconnect.\n\nCredential fields accept `{{secret:...}}` references and should use them — a tool is readable by anyone who can `GET /tools`, and the stored reference is what is echoed back, never the resolved value.\n\nA credential slot takes a reference, never a literal: a literal `secret_access_key`, `session_token` or `credentials` under `auth`, a literal credential-named `headers` value (`Authorization`, `Cookie`, or a name containing `api-key`/`token`/`secret`/`password`), or a `url` carrying a password or a literal credential-named query parameter (those names, plus `key` and `sig`/`signature`) is refused with `400 LITERAL_CREDENTIAL`, `meta.paths` naming each one. A stored literal reads back as `{\"no_echo\": true}` (a `url` holding one is masked whole), an object rather than a string so a read-edit-write round trip fails the schema check instead of writing the placeholder in as the credential. A value carrying a `{{secret:...}}` reference is the wiring, not the credential, and stays readable.\n\n`headers` values additionally accept `{{context:<key>}}` references, resolved per call from the caller's `tool_context`, so a per-user credential can be placed in the real header the target expects (`Authorization: Bearer {{context:ocaToken}}`) instead of only in an `X-Naturali-Context-<key>` header. Valid **only** inside `headers` — a context value is caller-supplied, so it may not steer the `url` — and a key missing from the `tool_context` at call time fails the tool call with `MISSING_TOOL_CONTEXT_KEY` rather than sending an empty credential. See the Tool Context reference.\n",
|
|
24607
24607
|
"required": false,
|
|
24608
24608
|
"type": "object",
|
|
24609
24609
|
"in": "body"
|
|
@@ -25040,13 +25040,34 @@ const routes = {
|
|
|
25040
25040
|
"type": "string",
|
|
25041
25041
|
"in": "body"
|
|
25042
25042
|
},
|
|
25043
|
+
{
|
|
25044
|
+
"name": "events",
|
|
25045
|
+
"description": "Required when type is event, rejected otherwise. The event type patterns that fire the trigger.",
|
|
25046
|
+
"required": false,
|
|
25047
|
+
"type": "array",
|
|
25048
|
+
"in": "body"
|
|
25049
|
+
},
|
|
25043
25050
|
{
|
|
25044
25051
|
"name": "event_pattern",
|
|
25045
|
-
"description": "
|
|
25052
|
+
"description": "One event type pattern, the same as `events: [event_pattern]`. Send `events` or this, not both.",
|
|
25046
25053
|
"required": false,
|
|
25047
25054
|
"type": "string",
|
|
25048
25055
|
"in": "body"
|
|
25049
25056
|
},
|
|
25057
|
+
{
|
|
25058
|
+
"name": "event_resources",
|
|
25059
|
+
"description": "Event triggers only. Resource patterns the event must match; omitted matches any resource in the project.",
|
|
25060
|
+
"required": false,
|
|
25061
|
+
"type": "array",
|
|
25062
|
+
"in": "body"
|
|
25063
|
+
},
|
|
25064
|
+
{
|
|
25065
|
+
"name": "event_data",
|
|
25066
|
+
"description": "Event triggers only. A filter the event's `data` must match.",
|
|
25067
|
+
"required": false,
|
|
25068
|
+
"type": "object",
|
|
25069
|
+
"in": "body"
|
|
25070
|
+
},
|
|
25050
25071
|
{
|
|
25051
25072
|
"name": "active",
|
|
25052
25073
|
"description": "",
|
|
@@ -25055,10 +25076,10 @@ const routes = {
|
|
|
25055
25076
|
"in": "body"
|
|
25056
25077
|
},
|
|
25057
25078
|
{
|
|
25058
|
-
"name": "
|
|
25059
|
-
"description": "",
|
|
25079
|
+
"name": "policy_ids",
|
|
25080
|
+
"description": "The policies every firing acts under. The caller must hold every grant they carry inside the trigger's project, else `403 POLICY_GRANT_NOT_HELD`.",
|
|
25060
25081
|
"required": false,
|
|
25061
|
-
"type": "
|
|
25082
|
+
"type": "array",
|
|
25062
25083
|
"in": "body"
|
|
25063
25084
|
}
|
|
25064
25085
|
]
|
|
@@ -25124,7 +25145,7 @@ const routes = {
|
|
|
25124
25145
|
"update-trigger": {
|
|
25125
25146
|
serviceClass: "Triggers",
|
|
25126
25147
|
operationId: "updateTrigger",
|
|
25127
|
-
description: "Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing
|
|
25148
|
+
description: "Updates an existing trigger's configuration. The type is immutable. Changing `target_type` or `target_id` re-checks that the caller may start the resulting target, because a firing acts under the trigger's `policy_ids` rather than the updater's grant. A caller who could not start the new target is answered `403` and the trigger keeps the target it had. A `{{secret:...}}` reference in a written `tool_context`, or in the stored one when the target changes, also needs `secrets:UseSecret` on that secret, else `403`.",
|
|
25128
25149
|
moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
|
|
25129
25150
|
httpMethod: "patch",
|
|
25130
25151
|
pathParams: ["project_id", "trigger_id"],
|
|
@@ -25202,13 +25223,34 @@ const routes = {
|
|
|
25202
25223
|
"type": "string",
|
|
25203
25224
|
"in": "body"
|
|
25204
25225
|
},
|
|
25226
|
+
{
|
|
25227
|
+
"name": "events",
|
|
25228
|
+
"description": "Replaces the event type patterns; event triggers only.",
|
|
25229
|
+
"required": false,
|
|
25230
|
+
"type": "array",
|
|
25231
|
+
"in": "body"
|
|
25232
|
+
},
|
|
25205
25233
|
{
|
|
25206
25234
|
"name": "event_pattern",
|
|
25207
|
-
"description": "",
|
|
25235
|
+
"description": "The same as `events: [event_pattern]`.",
|
|
25208
25236
|
"required": false,
|
|
25209
25237
|
"type": "string",
|
|
25210
25238
|
"in": "body"
|
|
25211
25239
|
},
|
|
25240
|
+
{
|
|
25241
|
+
"name": "event_resources",
|
|
25242
|
+
"description": "Replaces the resource patterns; `null` matches any resource.",
|
|
25243
|
+
"required": false,
|
|
25244
|
+
"type": "array",
|
|
25245
|
+
"in": "body"
|
|
25246
|
+
},
|
|
25247
|
+
{
|
|
25248
|
+
"name": "event_data",
|
|
25249
|
+
"description": "Replaces the data filter; `null` clears it.",
|
|
25250
|
+
"required": false,
|
|
25251
|
+
"type": "object",
|
|
25252
|
+
"in": "body"
|
|
25253
|
+
},
|
|
25212
25254
|
{
|
|
25213
25255
|
"name": "active",
|
|
25214
25256
|
"description": "",
|
|
@@ -25217,10 +25259,10 @@ const routes = {
|
|
|
25217
25259
|
"in": "body"
|
|
25218
25260
|
},
|
|
25219
25261
|
{
|
|
25220
|
-
"name": "
|
|
25221
|
-
"description": "",
|
|
25262
|
+
"name": "policy_ids",
|
|
25263
|
+
"description": "Replaces the policies every firing acts under. The caller must hold every grant of each one added, else `403 POLICY_GRANT_NOT_HELD`.",
|
|
25222
25264
|
"required": false,
|
|
25223
|
-
"type": "
|
|
25265
|
+
"type": "array",
|
|
25224
25266
|
"in": "body"
|
|
25225
25267
|
}
|
|
25226
25268
|
]
|
|
@@ -25252,7 +25294,7 @@ const routes = {
|
|
|
25252
25294
|
"fire-trigger": {
|
|
25253
25295
|
serviceClass: "Triggers",
|
|
25254
25296
|
operationId: "fireTrigger",
|
|
25255
|
-
description: "Fires a trigger synchronously and returns the terminal firing record. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.",
|
|
25297
|
+
description: "Fires a trigger synchronously and returns the terminal firing record. The firing acts as the caller ∩ the trigger's `policy_ids`, which must allow starting the target, else `403`. The firing itself always settles here; an `eval` target's run is queued rather than executed inline, so the record names a `queued` run to poll.",
|
|
25256
25298
|
moduleDocsUrl: "https://naturali.ai/docs/modules/triggers",
|
|
25257
25299
|
httpMethod: "post",
|
|
25258
25300
|
pathParams: ["project_id", "trigger_id"],
|
|
@@ -25610,7 +25652,7 @@ const routes = {
|
|
|
25610
25652
|
"create-current-user-top-up": {
|
|
25611
25653
|
serviceClass: "Users",
|
|
25612
25654
|
operationId: "createCurrentUserTopUp",
|
|
25613
|
-
description: "Buys model credit for the caller's account. Once the card is charged the full amount is added to `credit_balance_usd` as purchased credit, which never expires. The card fee is not deducted. `amount_usd` is what is credited; a card issued in Brazil is charged its equivalent in Brazilian reais at the Banco Central's latest closing PTAX selling rate, and a checkout shows reais to a payer in Brazil. With `saved_card: true` the saved card is charged at once and the answer is `status: paid`. When the card needs authentication or is declined, nothing is charged and the answer falls back to a checkout. A checkout (`status: checkout`) is a hosted page: send the caller to `checkout_url`. Creating it charges nothing, and one left unpaid lapses at `expires_at`. The card paid with there becomes the account's saved card, replacing any other. After paying, the browser returns to the
|
|
25655
|
+
description: "Buys model credit for the caller's account. Once the card is charged the full amount is added to `credit_balance_usd` as purchased credit, which never expires. The card fee is not deducted. `amount_usd` is what is credited; a card issued in Brazil is charged its equivalent in Brazilian reais at the Banco Central's latest closing PTAX selling rate, and a checkout shows reais to a payer in Brazil. With `saved_card: true` the saved card is charged at once and the answer is `status: paid`. When the card needs authentication or is declined, nothing is charged and the answer falls back to a checkout. A checkout (`status: checkout`) is a hosted page: send the caller to `checkout_url`. Creating it charges nothing, and one left unpaid lapses at `expires_at`. The card paid with there becomes the account's saved card, replacing any other. After paying, the browser returns to the app's billing page.",
|
|
25614
25656
|
moduleDocsUrl: "https://naturali.ai/docs/modules/users",
|
|
25615
25657
|
httpMethod: "post",
|
|
25616
25658
|
pathParams: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.230.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.
|
|
34
|
+
"@naturali/sdk": "0.230.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|