@naturali/sdk 0.208.10 → 0.209.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -4
- package/dist/index.d.cts +511 -766
- package/dist/index.d.mts +511 -766
- package/dist/index.mjs +15 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -617,7 +617,7 @@ var Activity = class {
|
|
|
617
617
|
/**
|
|
618
618
|
* List activity feed entries
|
|
619
619
|
*
|
|
620
|
-
* Returns activity entries for a project, newest first, filterable by kind, severity, agent, generation and orchestration run — every filter composable with the rest.
|
|
620
|
+
* 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.
|
|
621
621
|
*/
|
|
622
622
|
static listActivity(options) {
|
|
623
623
|
return (options.client ?? client).get({
|
|
@@ -1071,7 +1071,7 @@ var Channels = class {
|
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Read a conversation's transcript
|
|
1073
1073
|
*
|
|
1074
|
-
* 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
|
+
* 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.
|
|
1075
1075
|
*
|
|
1076
1076
|
*/
|
|
1077
1077
|
static listChannelConversationMessages(options) {
|
|
@@ -1532,7 +1532,7 @@ var AiProviders = class {
|
|
|
1532
1532
|
* 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.
|
|
1533
1533
|
* 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`.
|
|
1534
1534
|
* 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.
|
|
1535
|
-
* The provider answers its whole catalogue in one call; `q`, `limit` and `
|
|
1535
|
+
* 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.
|
|
1536
1536
|
*
|
|
1537
1537
|
*/
|
|
1538
1538
|
static listAiProviderModels(options) {
|
|
@@ -1837,7 +1837,7 @@ var Assistant = class {
|
|
|
1837
1837
|
/**
|
|
1838
1838
|
* Read a conversation
|
|
1839
1839
|
*
|
|
1840
|
-
* A page of one conversation, oldest first
|
|
1840
|
+
* 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`.
|
|
1841
1841
|
*
|
|
1842
1842
|
*/
|
|
1843
1843
|
static listAssistantSessionMessages(options) {
|
|
@@ -5839,6 +5839,17 @@ var Triggers = class {
|
|
|
5839
5839
|
});
|
|
5840
5840
|
}
|
|
5841
5841
|
/**
|
|
5842
|
+
* Count triggers
|
|
5843
|
+
*
|
|
5844
|
+
* Counts the triggers `GET /v1/projects/{project_id}/triggers` pages through under the same project and filters.
|
|
5845
|
+
*/
|
|
5846
|
+
static countTriggers(options) {
|
|
5847
|
+
return (options.client ?? client).get({
|
|
5848
|
+
url: "/v1/projects/{project_id}/triggers/count",
|
|
5849
|
+
...options
|
|
5850
|
+
});
|
|
5851
|
+
}
|
|
5852
|
+
/**
|
|
5842
5853
|
* Delete a trigger
|
|
5843
5854
|
*
|
|
5844
5855
|
* Deletes a trigger
|