@naturali/sdk 0.208.9 → 0.209.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.cjs +15 -4
- package/dist/index.d.cts +515 -766
- package/dist/index.d.mts +515 -766
- package/dist/index.mjs +15 -4
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -616,7 +616,7 @@ var Activity = class {
|
|
|
616
616
|
/**
|
|
617
617
|
* List activity feed entries
|
|
618
618
|
*
|
|
619
|
-
* Returns activity entries for a project, newest first, filterable by kind, severity, agent, generation and orchestration run — every filter composable with the rest.
|
|
619
|
+
* Returns activity entries for a project, newest first, filterable by kind, severity, agent, generation and orchestration run — every filter composable with the rest. Pass the previous page's `next_cursor` as `cursor` to fetch the next one; a `null` `next_cursor` means there is no more data.
|
|
620
620
|
*/
|
|
621
621
|
static listActivity(options) {
|
|
622
622
|
return (options.client ?? client).get({
|
|
@@ -1070,7 +1070,7 @@ var Channels = class {
|
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Read a conversation's transcript
|
|
1072
1072
|
*
|
|
1073
|
-
* The conversation's messages, oldest first. naturali stores no message bodies — the dialogue lives in the runtime session the conversation maps to, so this reads through to the runtime.
|
|
1073
|
+
* The conversation's messages, oldest first. naturali stores no message bodies — the dialogue lives in the runtime session the conversation maps to, so this reads through to the runtime.
|
|
1074
1074
|
*
|
|
1075
1075
|
*/
|
|
1076
1076
|
static listChannelConversationMessages(options) {
|
|
@@ -1531,7 +1531,7 @@ var AiProviders = class {
|
|
|
1531
1531
|
* Listing resolves credentials the same way generation does, so a record that can generate can list. The API-key types (`openai`, `groq`, `xai`, `gateway`, `custom`, `anthropic`, `google`) use the record's linked secret and cannot list without one. `bedrock` and `vertex` use the linked secret — IAM keys or a Bedrock API key, a Google service-account key. A record with no `secret_id` would fall back to the server's own credentials (the AWS default credential chain, Google Application Default Credentials); it can list only on a deployment that allows a record to use them, and returns `400 AI_PROVIDER_MISCONFIGURED` otherwise.
|
|
1532
1532
|
* A Vertex record needs no `config.project` when its secret is a service-account key, since the key file names its own project. A Vertex record in express mode (API key) cannot list at all: the publisher-model listing rejects API keys and needs a credential that asserts a principal, so it returns `400 MODEL_LISTING_UNSUPPORTED`.
|
|
1533
1533
|
* The Vertex answer is the publisher catalogue the record's `config.location` region serves. The project behind the credential is billed and quota'd for the call but does not filter the result, so a listed model may still be unavailable to that project at generation time.
|
|
1534
|
-
* The provider answers its whole catalogue in one call; `q`, `limit` and `
|
|
1534
|
+
* The provider answers its whole catalogue in one call; `q`, `limit` and `cursor` narrow and page what it returned. A request without `limit` gets the first 50 models.
|
|
1535
1535
|
*
|
|
1536
1536
|
*/
|
|
1537
1537
|
static listAiProviderModels(options) {
|
|
@@ -1836,7 +1836,7 @@ var Assistant = class {
|
|
|
1836
1836
|
/**
|
|
1837
1837
|
* Read a conversation
|
|
1838
1838
|
*
|
|
1839
|
-
* A page of one conversation, oldest first
|
|
1839
|
+
* A page of one conversation, oldest first unless `order=desc`. The list leaves out tool-only turns, so a page can hold fewer than `limit` and still have a `next_cursor`.
|
|
1840
1840
|
*
|
|
1841
1841
|
*/
|
|
1842
1842
|
static listAssistantSessionMessages(options) {
|
|
@@ -5838,6 +5838,17 @@ var Triggers = class {
|
|
|
5838
5838
|
});
|
|
5839
5839
|
}
|
|
5840
5840
|
/**
|
|
5841
|
+
* Count triggers
|
|
5842
|
+
*
|
|
5843
|
+
* Counts the triggers `GET /v1/projects/{project_id}/triggers` pages through under the same project and filters.
|
|
5844
|
+
*/
|
|
5845
|
+
static countTriggers(options) {
|
|
5846
|
+
return (options.client ?? client).get({
|
|
5847
|
+
url: "/v1/projects/{project_id}/triggers/count",
|
|
5848
|
+
...options
|
|
5849
|
+
});
|
|
5850
|
+
}
|
|
5851
|
+
/**
|
|
5841
5852
|
* Delete a trigger
|
|
5842
5853
|
*
|
|
5843
5854
|
* Deletes a trigger
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.209.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.
|
|
42
|
-
"@ttoss/openapi-codegen": "^0.
|
|
41
|
+
"@naturali/api": "0.209.0",
|
|
42
|
+
"@ttoss/openapi-codegen": "^0.10.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|
|
45
45
|
"tsx": "^4.23.13",
|